Jsf Reading Dynamic Input Element In A Managed Bean
I have a pretty complex JSF page (we use JSF2 with facelet) in which I have to 'plug-in' a pure html form section (it represents a WYSIWYG template for an document that will be cre
Solution 1:
It's the input's name=value
pair which get sent as request parameter name=value
, not the id=value
. You need to set the name
attribute instead.
<inputid="ft2" name="ft2"type="text" value="foo"/>
Unrelated to the concrete problem, I suggest to use @ManagedProperty
instead to set the value:
@ManagedProperty("#{param.ft2}")private String ft2;
Post a Comment for "Jsf Reading Dynamic Input Element In A Managed Bean"