[jboss-user] [JBoss Seam] - convert parameter f:param with s:convertdatetime
jfrankman
do-not-reply at jboss.com
Fri Jul 27 20:28:51 EDT 2007
I have a simple page that I am trying to pass a date parameter to:
| <s:button view="/RptphdmgbinderEdit.xhtml"
| id="create"
| value="Create rptphdmgbinder">
| <f:param name="policyeffdate" value="#{policy.effectiveDate.time}" rendered="#{policy.effectiveDate!=null}"></f:param>
| </s:button>
|
The date does get passed to the next page, but it is not in the format I want. I have tried to do something like:
| <f:param name="policyeffdate" value="#{policy.effectiveDate.time}" rendered="#{policy.effectiveDate!=null}">
| <s:convertDateTime pattern="MM/dd/yyyy"/>
| </f:param>
|
But this does not work. Other than adding a conversion method to my policy class is there any way and can make the date get passed according to the "MM/dd/yyyy" pattern. It seems like a pretty simple problem to solve, but I just can't figure this out. I was thinking there might be a way to do this with EL, but I am still a bit new at this. Any thoughts would be appreciated.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068405#4068405
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068405
More information about the jboss-user
mailing list