RE: HTML bean - class and style attrbutes????

2002-09-04 Thread Joe Barefoot

I'm not sure what documentation you were looking at, but all of the form elements 
(that I know of) support style and styleClass:

http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html

The bean tag library does not support styles.  This is because you want the value from 
a JavaBean written out as a literal, perhaps for use in a JavaScript method or 
something else.  This would not be possible if the tag were spitting out html  
tags, which is what it would have to do to create a styleClass for a given piece of 
text (without applying extra formatting rules).  You would just put the styleClass in 
an enclosing  or  tag.


peace,
Joe

> -Original Message-
> From: neal [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 04, 2002 3:28 PM
> To: Struts Users Mailing List
> Subject: HTML bean - class and style attrbutes
> 
> 
> I was looking at some documentation for the HTML beans and 
> the class and
> style attributes seemed conspicuously missing.  Are these not 
> available? Can
> you not set CSS styles or classes on form fields being 
> controlled by Struts?
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: HTML bean - class and style attrbutes????

2002-09-04 Thread Bryan Hilterbrand

I'm new to Struts, but I think you're right.  A lot of the html tags allow
class and style attributes, but bean:write certainly doesn't seems to have
them.  We'll have to use an HTML span tag or something similar...

Bryan

- Original Message -
From: "neal" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 4:28 PM
Subject: HTML bean - class and style attrbutes


I was looking at some documentation for the HTML beans and the class and
style attributes seemed conspicuously missing.  Are these not available? Can
you not set CSS styles or classes on form fields being controlled by Struts?


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




HTML bean - class and style attrbutes????

2002-09-04 Thread neal

I was looking at some documentation for the HTML beans and the class and
style attributes seemed conspicuously missing.  Are these not available? Can
you not set CSS styles or classes on form fields being controlled by Struts?


--
To unsubscribe, e-mail:   
For additional commands, e-mail: