formatted values in param

2006-02-09 Thread Peter Maas
Hi all,

I wondered how to store formatted values in a parameter. Say I would like to set a formatted date as a message property... 

Something like this:

//---//

h:outputFormat value=#{messages['searchresults.lastModified']}
 f:param value=#{searchObject.lastModified}
 f:convertDateTime pattern=d MMM  locale=nl_NL /
 /f:param
/h:outputFormat 

//---//

this doesn't work since the param tag doesn't allow body content... and it doesn't seem to have support for using converters

Is it possible to temporarely store the results of a conversion into a reusable variable?

-P


Re: formatted values in param

2006-02-09 Thread Andrew Robinson
If you are using facelets, you could use an EL function to format the valueOn 2/9/06, Peter Maas [EMAIL PROTECTED]
 wrote:Hi all,

I wondered how to store formatted values in a parameter. Say I would like to set a formatted date as a message property... 

Something like this:

//---//

h:outputFormat value=#{messages['searchresults.lastModified']}
 f:param value=#{searchObject.lastModified}
 f:convertDateTime pattern=d MMM  locale=nl_NL /
 /f:param
/h:outputFormat 

//---//

this doesn't work since the param tag doesn't allow body content... and it doesn't seem to have support for using converters

Is it possible to temporarely store the results of a conversion into a reusable variable?

-P




Re: formatted values in param

2006-02-09 Thread Laurie Harper

Or use c:set to store it into a bean.

Andrew Robinson wrote:

If you are using facelets, you could use an EL function to format the value

On 2/9/06, Peter Maas [EMAIL PROTECTED] wrote:

Hi all,

I wondered how to store formatted values in a parameter. Say I would like
to set a formatted date as a message property...

Something like this:

//---//

h:outputFormat value=#{messages['searchresults.lastModified']}
   f:param value=#{searchObject.lastModified}
 f:convertDateTime pattern=d MMM  locale=nl_NL /
   /f:param
/h:outputFormat

//---//

this doesn't work since the param tag doesn't allow body content... and it
doesn't seem to have support for using converters

Is it possible to temporarely store the results of a conversion into a
reusable variable?

-P