please find the content in blue. Thanks, Dushyant
--- On Thu, 3/7/08, Volker Weber <[EMAIL PROTECTED]> wrote: From: Volker Weber <[EMAIL PROTECTED]> Subject: Re: [TRINIDAD] Unable to use Converter with tr:inputDate To: "MyFaces Discussion" <[email protected]>, [EMAIL PROTECTED] Date: Thursday, 3 July, 2008, 6:10 PM 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> The components in my case are being generated dynamically based upon the records in my database. Their instance is generated at runtime in an action method .. After their instance is created I wish to put the converter on them. How can I bring this about?? 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; } Yeah I tried using this but still the same runtime javascript error comes along on clicking on a date in the calendar.... > 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 Bollywood, fun, friendship, sports and more. You name it, we have it on http://in.promos.yahoo.com/groups/bestofyahoo/

