Hi!
<IMO>
You should not use binding if you can avoid it !
If you need the component in the bean it is better to do a lookup
via clientId.
</IMO>
2008/7/3 dushyant agarwal <[EMAIL PROTECTED]>:
> Hi,
> I have JSF page which contains a tr:inputDate component as given below:-
>
> <tr:inputDate binding="#{BB.inputDate1}"/>
have you tried:
<tr:inputDate converter="#{BB.dateConverter}" />
public Converter getDateConverter() {
DateTimeConverter converter = new DateTimeConverter();//the Trinidad
DateTime Converter
converter.setPattern("dd/MM/yyyy");
return converter;
}
> As well as there is a commandButton
> <tr:commandButton action="#{BB.action}">
>
> In the Backing bean the action method is as follows:-
> public String action(){
>
> DateTimeConverter converter = new DateTimeConverter();//the Trinidad
> DateTime Converter
> converter.setPattern("dd/MM/yyyy");
> inputDate1.setConverter(converter);
> return null;
>
> }
>
> While running the JSF page, on clicking the button the converter does get
> applied, But after the Page gets rendered if the user again clicks on the
> calendar button to select a new date then a javascript error appears
> (/**incomprehensible**/). How else can I set the above mentioned converter
> on the inputDate cpmponent from the backing bean.
>
> pl. consider that I strictly need to set the converter from the backing
> bean.
in the action? why?
Regards,
Volker
>
> Thanks,
> Dushyant
>
>
>
>
> ________________________________
> Bollywood, fun, friendship, sports and more. You name it, we have it.
--
inexso - information exchange solutions GmbH
Bismarckstraße 13 | 26122 Oldenburg
Tel.: +49 441 4082 356 |
FAX: +49 441 4082 355 | www.inexso.de