This content has been marked as final.
Show 3 replies
-
1. Re: how to set default value
asookazian Jul 14, 2009 3:45 PM (in response to laxmiram)How can the onblur event be triggered from a hidden element?
-
2. Re: how to set default value
laxmiram Jul 14, 2009 3:55 PM (in response to laxmiram)sry, that shloud be like this
<h:inputHidden id="createdDate"
value="#{Myclass.instance.createdDate}"
size="29">
</h:inputHidden> -
3. Re: how to set default value
cash1981 Jul 14, 2009 9:15 PM (in response to laxmiram)In your Myclass component, just set the value on createdDate and you have the date set.
@Name("Myclass") public class Myclass { private Date createdDate = new Date(); //getters and setters }
You can also do it in the @Create method, or @PostConstruct and set the value there.