I need to put the converter from backing bean because the inputDate component is being created dynamically based upon the number of records in the database.Why can't we put sort of <tr:validateDateTime >in the backing bean????
I further tried to make a sample application that contained a class implementing Converter class. It was registered in faces-config.There was a JSF page with a button and inputDate. I the action method of the button I created an instance of the converter class and set it as follows:- inputDate1.setConverter(new myConverter()); But here as well the calendar component gave up working(====rant====)!! Please specify what u mean by cross-postings...... Thanks, Dushyant --- On Thu, 3/7/08, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: From: Matthias Wessendorf <[EMAIL PROTECTED]> Subject: Re: [TRINIDAD] Unable to use Converter with tr:inputDate To: "MyFaces Discussion" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Date: Thursday, 3 July, 2008, 5:55 PM 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 Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/