Please do no cross-postings...

On Thu, Jul 3, 2008 at 2:14 PM, dushyant agarwal
<[EMAIL PROTECTED]> wrote:
> Hi,
> I have JSF page which contains a tr:inputDate component as given below:-
>
> <tr:inputDate binding="#{BB.inputDate1}"/>
> 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.
>
is the scope of the BB bean request ?

> pl. consider that I strictly need to set the converter from  the backing
> bean.

why?

>
> Thanks,
> Dushyant
>
>
>
>
> ________________________________
> Bollywood, fun, friendship, sports and more. You name it, we have it.



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Reply via email to