I created a component I'd like to contribute to myfaces. If I stick it in JIRA 
will 
someone merge it into the code base?

It extends inputHidden by adding an attribute, paramValue, which allows value 
binding 
predefined form values to a managed bean. For example, if you have a managed 
bean 
named searchBean with a setLastModified(Date d) method you can create a hidden 
form 
element with a preset date:
 
 <x:inputParam value="#{searchBean.lastModified}" paramValue="04/05/2005">
   <f:convertDateTime type="date" dateStyle="short"/>  
 </x:inputParam>

renders:

 <input type="hidden" value="04/05/2005"/>

When the form is submitted searchBean.setLastModified is called with the Date 
object.


--
Rob

@objectsource.org

Reply via email to