[jboss-user] [JBoss Seam] - Date format with parameter
rengar
do-not-reply at jboss.com
Fri Feb 2 12:37:22 EST 2007
If i put <s:converdatetime pattern="dd/MM/yyyy">, the date is showed well.
| <h:inputText id="diaLlegada" value="#{lstEstablecimientos.diaLlegada}" required="true">
| <s:convertDateTime pattern="dd/MM/yyyy"/>
| </h:inputText>
|
But this parameter is at this format in url : "diaLlegada=Feb%202,%202007"
I tried :
| <converter>
| <converter-for-class>java.util.Date</converter-for-class>
| <converter-class>javax.faces.convert.DateTimeConverter</converter-class>
| <property>
| <property-name>pattern</property-name>
| <property-class>java.lang.String</property-class>
| <default-value>dd/MM/yyyy</default-value>
| </property>
| </converter>
|
and
| <converter>
| <converter-for-class>java.util.Date</converter-for-class>
| <converter-class>org.jboss.seam.ui.ConvertDateTime</converter-class>
| <property>
| <property-name>pattern</property-name>
| <property-class>java.lang.String</property-class>
| <default-value>dd/MM/yyyy</default-value>
| </property>
| </converter>
|
| <converter>
| <converter-id>org.jboss.seam.ui.ConvertDateTime</converter-id>
| <converter-class>org.jboss.seam.ui.ConvertDateTime</converter-class>
| <property>
| <property-name>pattern</property-name>
| <property-class>java.lang.String</property-class>
| <default-value>dd/MM/yyyy</default-value>
| </property>
|
| </converter>
|
But the date format don't change.
How change format date for parameters url?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010141#4010141
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010141
More information about the jboss-user
mailing list