Re: FormComponentPanel and list edit

2010-08-06 Thread Joseph Pachod
hi ListContact convertedInput ; public void convertInput(){ ListContact list= new ArrayListContact() // how to compose the list ? listeditor.convertinput(); setConvertedInput(listeditor.getconvertedinput()); -igorlisteditor isn't a FormComponent, so there's no

Re: FormComponentPanel and list edit

2010-08-06 Thread Igor Vaynberg
so make it extend it. the same way formcomponentpanel does but minus the markup bits. -igor On Fri, Aug 6, 2010 at 6:01 AM, Joseph Pachod josephpac...@thomas-daily.de wrote: hi     ListContact convertedInput ;     public void convertInput(){    ListContact list= new ArrayListContact()    

Re: FormComponentPanel and list edit

2010-08-04 Thread Joseph Pachod
Igor Vaynberg wrote: visit all the children, check if they are a FormComponent and call convertinput() followed by getconvertedinput() -igor hi thanks igor we thought of that, but the issue is that we need to handle the getconvertedinput For example, if I've a ContactListEdit, with

Re: FormComponentPanel and list edit

2010-08-04 Thread Igor Vaynberg
why not? convertinput() will cascade down to all components that need them. -igor On Wed, Aug 4, 2010 at 12:03 AM, Joseph Pachod j...@thomas-daily.de wrote: Igor Vaynberg wrote: visit all the children, check if they are a FormComponent and call convertinput() followed by getconvertedinput()

Re: FormComponentPanel and list edit

2010-08-04 Thread Joseph Pachod
Igor Vaynberg wrote: why not? convertinput() will cascade down to all components that need them. -igor I feel like the issue is not with the components in the list item, but with the wrapper around the list item. For example (pseudo code): public class ContactListEdit extends

Re: FormComponentPanel and list edit

2010-08-04 Thread Igor Vaynberg
On Wed, Aug 4, 2010 at 1:00 AM, Joseph Pachod j...@thomas-daily.de wrote: Igor Vaynberg wrote: why not? convertinput() will cascade down to all components that need them. -igor I feel like the issue is not with the components in the list item, but with the wrapper around the list item.

FormComponentPanel and list edit

2010-08-03 Thread Joseph Pachod
hi IF we're heavily reusing the edit components we do, and as such we wanted them to behave as good form citizen. On our way, we spotted the FormComponentPanel, which seems to achieve our goal. Yet, a question has popped up: how to deal with List edit ? Indeed, none of the class extending

Re: FormComponentPanel and list edit

2010-08-03 Thread Igor Vaynberg
visit all the children, check if they are a FormComponent and call convertinput() followed by getconvertedinput() -igor On Tue, Aug 3, 2010 at 2:42 PM, Joseph Pachod josephpac...@thomas-daily.de wrote: hi IF we're heavily reusing the edit components we do, and as such we wanted them to