Custom converter - parameters not always work.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, May 17, 2008 04:12 PM

Hi, I have a web page, which part looks like this: is my custom converter, with parameter length (it has setLength, getLength methods). Content of #{list} depends on parameter set in page bean. There are also links on the page, which change this parameter and refresh the page: After clicking link, page content changes as it should, but converter works with its default "length" parameter. My setting (length="125") is not used. There is new converter instance created, but setLength method is not called (I checked it by debug).    More>>


Hi,



I have a web page, which part looks like this:



			









is my custom converter, with parameter length (it has setLength, getLength methods).



Content of #{list} depends on parameter set in page bean. There are also links on the page, which change this parameter and refresh the page:


			







After clicking link, page content changes as it should, but converter works with its default "length" parameter. My setting (length="125") is not used. There is new converter instance created, but setLength method is not called (I checked it by debug).



Anybody knows how to solve this problem?



Best regards

Pawel Stawicki

   <<Less

Re: Custom converter - parameters not always work.

Posted By:   Anonymous  
Posted On:   Monday, May 19, 2008 06:10 PM

Hi Pawel

I'm working right now on a quite similar converter. But I don't get it to work to pass parameters.


I tried to copy the DateTimeConverter.java which seems to be a good example.


Could you post maybe your converter class here as anexample?
Thank you very much for your help.

Best regards

Alan Gross
About | Sitemap | Contact