Firat, it depends on the component you are using. Each component
determines what attributes are supported and how, since you're trying to
use h:outputText, I went to google and searched for: "h:outputText
documentation". The first link was:
http://www.jsftoolbox.com/documentation/help/12-TagReference/html/h_outputText.html
This shows all the attributes of the tag, examples, and a description of
each attribute. "styleClass" controls the css class, onmouseover is not
supported by h:outputText. You might look into a better component set,
maybe RichFaces, IceFaces, Woodstock (although I know Woodstock supports
this feature, support for the WS project is low -- no active developers)
-- there are others as well.
In addition to being able to set these attributes directly, you can
using the "binding" attribute and set them via code on the server. Read
the "binding" documentation if you aren't sure what I mean. I would
avoid using this, however, unless you really think you need it.
Good luck!
Ken
Fırat KÜÇÜK wrote:
> Hi,
> May we access html elements programatically?
> For instance in asp.net:
> <span id="foo" runat="server" />
>
> if we use runat="server" attribute we may access html elements from codebehind.
>
> i used:
> <span id="deneme" jsfc="h:outputText" value="#{Foo.text}" />
>
> but how may i change css class or onmouseover attributes?
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
users-unsubscribe@...
For additional commands, e-mail:
users-help@...