tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Len Popp" <len.p...@gmail.com>
Subject Re: Use converter for bean property inside normal html tag
Date Mon, 03 Sep 2007 14:52:33 GMT
<converter> and DateTimeConverter are features of JSF, so perhaps this
isn't the best place to ask about them.

But if I wanted to do this without JSF, I can think of a couple of ways:

1. Add a property to your bean, ${diagnose.diagnoseDatumAsString}, to
return the date as a String (using DateFormat).

2. Define a custom JSP tag to format dates, e.g. <mytags:date
date="${diagnose.diagnoseDatum}"/>
-- 
Len

On 9/3/07, Trumml <Martin.Trummer@systema.info> wrote:
>
> I'd like to use the DateTimeConverter inside the following tr tag (for the
> bean property diagnoseDatum):
> <tr onmouseover="Tip('Erfasst am: ${diagnose.diagnoseDatum}')">
>
> How can I achieve this? I've registered my own converter but it is only
> applied if I use a jsf tag (e.g. h:outputText...)
> <converter>
>   <converter-for-class>java.util.Date</converter-for-class>
>   <converter-class>
>     at.co.systema.web.utils.jsf.component.CustomDateTimeConverter
>   </converter-class>
> </converter>
>
> --
> View this message in context: http://www.nabble.com/Use-converter-for-bean-property-inside-normal-html-tag-tf4372376.html#a12462250
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message