applying style to html textarea

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

applying style to html textarea

Jency Thomas

Hi,

 

I have a textarea whose style is set as follows:

 

<xforms:textarea style="width: 478px;height: 81px;" ref="instance('PremiumDetailsInstance')/PremiumDetails/PANE1/footertext" >

                          

                           <xforms:label></xforms:label>

                           

</xforms:textarea>

 

I need an html textarea which has format buttons like Font, size etc. So, I added the attribute mediatype=”text/html” in the <xforms:textarea>. But when I add the mediatype attribute, the style elements are lost. I could not get the height and width set for the textarea. Is there any way to retain the style of the control?

 

Thanks

Jency

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: applying style to html textarea

fl.schmitt
Hi Jency,

> I could not get the height and width set for the
> textarea. Is there any way to retain the style of the control?

You could put the xforms:textarea inside a xhtml:div and add the style
information to that div element. This should work, if i remeber correctly.

florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: applying style to html textarea

Jency Thomas
In reply to this post by Jency Thomas

Thanks Florian, it works; but except for the height attribute. The width
of the html textarea can be set by giving the style attribute to the
div. But the height can't be set. Seems it always takes its default
height. Is there any way to set the height too?

Thanks
Jency

-----Original Message-----
From: Florian Schmitt [mailto:[hidden email]] On Behalf Of
Florian Schmitt
Sent: Friday, November 23, 2007 11:26 PM
To: [hidden email]
Subject: Re: [ops-users] applying style to html textarea

Hi Jency,

> I could not get the height and width set for the
> textarea. Is there any way to retain the style of the control?

You could put the xforms:textarea inside a xhtml:div and add the style
information to that div element. This should work, if i remeber
correctly.

florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: applying style to html textarea

fl.schmitt
Hi,

2007/11/27, Jency Thomas <[hidden email]>:

Thanks Florian, it works; but except for the height attribute. The width
of the html textarea can be set by giving the style attribute to the
div. But the height can't be set. Seems it always takes its default
height. Is there any way to set the height too?

I just checked my code and found that i set the height via CSS - my textarea has:

<xforms:textarea
                    class="textarea-big"
                    ref="textdialog/inhalt"
                    mediatype="text/html"
                    style="width: 95%;"/>

and in orbeon.css, i put

.textarea-big {
    height: 600px;
}

But changing orbeon.css is maybe not the best way to do this.


HTH
florian



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: applying style to html textarea

Erik Bruchez
Administrator
> and in orbeon.css, i put
>
> .textarea-big {
>     height: 600px;
> }
>
> But changing orbeon.css is maybe not the best way to do this.

Yes ;-) One good reason is that orbeon.css is really just there to  
style the Orbeon Forms example apps, and it may change everytime you  
update Orbeon Forms.

I think that better solutions include: including your own CSS file in  
the theme stylesheet, adding the CSS inline in your theme stylesheet,  
or adding it inline in your individual XHTML pages.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: applying style to html textarea

Jency Thomas
In reply to this post by Jency Thomas
Thank you...css worked for setting height attribute.

-----Original Message-----
From: Erik Bruchez [mailto:[hidden email]] On Behalf Of Erik Bruchez
Sent: Wednesday, November 28, 2007 3:22 AM
To: [hidden email]
Subject: Re: [ops-users] applying style to html textarea

> and in orbeon.css, i put
>
> .textarea-big {
>     height: 600px;
> }
>
> But changing orbeon.css is maybe not the best way to do this.

Yes ;-) One good reason is that orbeon.css is really just there to  
style the Orbeon Forms example apps, and it may change everytime you  
update Orbeon Forms.

I think that better solutions include: including your own CSS file in  
the theme stylesheet, adding the CSS inline in your theme stylesheet,  
or adding it inline in your individual XHTML pages.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws