How to get element from javascript in JSF 2.0
Posted
by amorfis
on Stack Overflow
See other posts from Stack Overflow
or by amorfis
Published on 2010-03-26T22:06:39Z
Indexed on
2010/03/26
22:23 UTC
Read the original article
Hit count: 385
jsf2
|JavaScript
I have JSF code like:
<h:inputText id="from" value="#{fromToMBean.fromName}"/>
I would like to get this element from JavaScript by ID (from
), but I can't, because in generated HTML it is j_idt8:from
How can I get this element in e.g. jQuery? Is there any way to force JSF2 not to change ids?
© Stack Overflow or respective owner