hi all.. is there any example of simple form, for input date of birth in jsf.. thank you very much
+3
A:
You can use Tomahawk's <t:inputDate>
.
Using it is as simple as:
<t:inputDate type="date"
popupCalendar="false" value="#{yourBean.yourDateValue}" />
You should add the tomahawk jar file to your classpath in order to use it, and import the tomahawk namespace:
xmlns:t="http://myfaces.apache.org/tomahawk"
Bozho
2010-09-28 05:50:56
can you give me an example for imlement it?
irwan
2010-09-28 05:55:04
implement i meant
irwan
2010-09-28 06:03:01
ought i to add any library for implement it?
irwan
2010-09-28 06:20:25
@irwan it is as simple as in the example shown in the link I gave. Yes, you should add the tomahawk jar to your classpath
Bozho
2010-09-28 06:21:51
where i can get the classpath of tomhawk jar? i try to browse it but i can't find that..
irwan
2010-09-28 06:34:07
@irwan http://myfaces.apache.org/tomahawk/download.html
Bozho
2010-09-28 06:37:12
ok i found it.. thank you very much... nice to meet you..
irwan
2010-09-28 06:37:13
@irwan - if my answer works for you, come back and mark the answer as accepted (tick below the vote counter)
Bozho
2010-09-28 06:37:44
I've tried to using tomahawk, but there is error occured. here an error result: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. Resource mapping missing. Resources cant be delivered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html what must i do for resolve it?
irwan
2010-09-29 02:25:12
@irwan - well, just map the filter as shown
Bozho
2010-09-29 05:09:05