tags:

views:

39

answers:

1

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
can you give me an example for imlement it?
irwan
implement i meant
irwan
ought i to add any library for implement it?
irwan
@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
where i can get the classpath of tomhawk jar? i try to browse it but i can't find that..
irwan
@irwan http://myfaces.apache.org/tomahawk/download.html
Bozho
ok i found it.. thank you very much... nice to meet you..
irwan
@irwan - if my answer works for you, come back and mark the answer as accepted (tick below the vote counter)
Bozho
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
@irwan - well, just map the filter as shown
Bozho