This content has been marked as final.
Show 5 replies
-
1. Re: Default value for <rich:calendar> component and <h:inpuText>
ilya40umov Jan 4, 2011 8:15 AM (in response to dhivyast)rich:calendar has the following attribute:
see http://livedemo.exadel.com/richfaces-demo/richfaces/calendar.jsf?tab=info for detailsdefaultTime false false javax.el.ValueExpression
(must evaluate tojava.lang.Object
)Defines time that will be used: 1) to set time when the value is empty 2) to set time when date changes and flag "resetTimeOnDateSelect" is true. Default value is "getDefaultValueOfDefaultTime()" -
2. Re: Default value for <rich:calendar> component and <h:inpuText>
ilya40umov Jan 4, 2011 8:17 AM (in response to ilya40umov)I'm afraid that h:inputText does not have a such attribute nut you can look at this link for a workaround:
http://stackoverflow.com/questions/3180265/default-value-for-hinputtext
-
3. Re: Default value for <rich:calendar> component and <h:inpuText>
krbaburaj Jan 5, 2011 2:45 AM (in response to dhivyast)Alternative idea --> For default value for inputtext --> u can create your own custom compoennt which will extend UIInput and add an attribute called defaultValue.
-
4. Re: Default value for <rich:calendar> component and <h:inpuText>
dhivyast Jan 5, 2011 3:56 AM (in response to ilya40umov)Thanks IIya. Seems to work
-
5. Re: Default value for <rich:calendar> component and <h:inpuText>
ilya40umov Jan 5, 2011 4:04 AM (in response to dhivyast)Please mark question answered if it's really answered. I helps monitor answered/not answered questions.