Hi Michael,
2008/6/30 Michael Heinen <[EMAIL PROTECTED]>:
> I have to format a date inside a tooltip (or title attribute).
>
> Is there any way to apply a converter for a tooltip ?
afaik no.
>
> Or is it possible to call a converter via EL ?
afaik no.
>
>
>
> I fear that converters are always used with the value attribute of the outer
> tag.
>
> Any ideas ?
just one:
You can do many things using a managedBean implementing a java.util.Map.
class MyDateConverter extends AbstractMap {
private SimpleDateFormat format = new SimpleDateFormat("dd.MM.yyyy hh:mm");
public Object get(Object key) {
if (key instanceof Date) {
return format.format((Date)key);
}
return null;
}
public Set entrySet() {}
}
tip="The date is #{myDateConverter[userBean.date]}"
>
>
>
> Michael
Regards,
Volker
--
inexso - information exchange solutions GmbH
Bismarckstraße 13 | 26122 Oldenburg
Tel.: +49 441 4082 356 |
FAX: +49 441 4082 355 | www.inexso.de