Re: [TRINIDAD] Unable to use Converter with tr:inputDate

2008-07-04 Thread Matthias Wessendorf
On Fri, Jul 4, 2008 at 10:43 AM, dushyant agarwal
<[EMAIL PROTECTED]> wrote:
> 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 in the backing
> bean

some don't like bindings, but in some cases, it is OK.

>
> 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)!!

you may file an issue and/or provide a patch for that ?

>
> Please specify what u mean by cross-postings..

sending one email to two mailing lists
(user and dev)

>
> 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:-
>>
>> 
>> As well as there is a commandButton
>> 
>>
>> 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/");
>> 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
>
> 
> Best Jokes, Best Friends, Best Food. Get all this and more on Best of Yahoo!
> Groups.



-- 
Matthias Wessendorf

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


Fw: Re: [TRINIDAD] Unable to use Converter with tr:inputDate

2008-07-04 Thread dushyant agarwal





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 in the backing bean

And yes the BB bean is request scoped

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:-
>
> 
> As well as there is a commandButton
> 
>
> 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/");
> 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



   Best Jokes, Best Friends, Best Food. Get all this and more on  Best of 
Yahoo! Groups.


  Bollywood, fun, friendship, sports and more.. You name it, we have it on 
http://in.promos.yahoo.com/groups/bestofyahoo/

Re: [TRINIDAD] Unable to use Converter with tr:inputDate

2008-07-04 Thread dushyant agarwal
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 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:-
>
> 
> As well as there is a commandButton
> 
>
> 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/");
> 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/

[TRINIDAD] Unable to use Converter with tr:inputDate

2008-07-03 Thread dushyant agarwal
Hi,
I have JSF page which contains a tr:inputDate component as given below:-


As well as there is a commandButton 


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/");
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.

Thanks,
Dushyant






  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups/