Re: Re[2]: SelectItem's constructor's "value" parameter and selectOneListBox

2007-09-17 Thread Volker Weber
ou, but I don't really understand why I should use any converter at > all? Why I must convert my object to anything? > > -Original Message- > From: David Delbecq <[EMAIL PROTECTED]> > To: MyFaces Discussion > Date: Mon, 17 Sep 2007 18:27:04 +0200 > Subje

Re[2]: SelectItem's constructor's "value" parameter and selectOneListBox

2007-09-17 Thread Evgeniy Karimov
;s constructor's "value" parameter and selectOneListBox > > You must either define an implicit converter "for-class" MyObject in > your jsf-config.xml, or use and explicit converter in your > h:selectOneListBox. > > In case of implicit convertion, type of #

Re: SelectItem's constructor's "value" parameter and selectOneListBox

2007-09-17 Thread David Delbecq
You must either define an implicit converter "for-class" MyObject in your jsf-config.xml, or use and explicit converter in your h:selectOneListBox. In case of implicit convertion, type of #{myBackingBean.listBoxValue} will be used to decide what converter to use. Regards, David Delbecq Evge

Re: SelectItem's constructor's "value" parameter and selectOneListBox

2007-09-17 Thread Volker Weber
Hi, every Object exept String needs a converter from and to String. Standard Converters (Number/Date) are included in the lib, but for custom classes you must provide a converter. Regards, Volker 2007/9/17, Evgeniy Karimov <[EMAIL PROTECTED]>: > Hi, I have some problem: > Say I have > >

SelectItem's constructor's "value" parameter and selectOneListBox

2007-09-17 Thread Evgeniy Karimov
Hi, I have some problem: Say I have Where myBackingBean.listBoxValue is of type MyObject. And myBackingBean.listBoxValuesList is ArrayList, which items are constructed as: new SelectItem(myObj, myObj.getDescription(), myObj.getDescription()), where myObj is type of MyObject. Everything