This content has been marked as final.
Show 1 reply
-
1. Re: InputHidden field's value binding to seam component's property
tmalatinszki Jan 21, 2010 11:40 AM (in response to pramanish)Hi Manish,
If You want to bind only the value of this h:inputHidden to duration variable (which is an Integer or String, or something like that), You can do it this way:
<h:inputHidden value="#{mySeamComponent.duration}"/>
private String duration = "30"; // getters-setters
Using the binding attribute the duration variable's type should be HtmlInputHidden, in this case You can get its value this way:
<h:inputHidden value="30" binding="#{mySeamComponent.duration}"/>
private HtmlInputHidden duration = new HtmlInputHidden(); // getters-setters Object value=duration.getValue();
I hope I not misunderstand Your question.
Regards,
Tamas