Hi Helmut, Thanks for your fast reply. The intent of this feature is to avoid adding and maintaining js listeners (and mainly because we are human, forgetting some comps when changing the form).
So thanks again. I'll add a feature request. Regards, Zied 2008/1/9, Helmut Swaczinna <[EMAIL PROTECTED]>: > > Hi, > > I think this should be a feature of the form and not of the layout > components. And yes, it would be nice > to have a feature like this. > > In the meantime you can do this with javascript. Iterate over all elements > of the form and add > an onchange listener to each input element. > > Regards > Helmut > > ----- Original Message ----- > *From:* Zied Hamdi <[EMAIL PROTECTED]> > *To:* MyFaces <[email protected]> > *Sent:* Wednesday, January 09, 2008 10:55 AM > *Subject:* [tobago] tc:panel, tc:box, and maybe tc:sheet onChange > attribute > > > Hi pioneers, > > Before submitting a feature request I'd like to be sure there's no way to > do what I want today: > > I need to keep do an action on any change inside a panel, this is a > frequent case in UI developement: e.g: to enable a save button or open a > popup 'do you want to save changes'. > > A few years ago I made an analogous mecanism in swing: I extended > Panel.add() (and remove()) and made it add a listener to the added > component to check if changes has occured). The extended panel must it self > implement the onChange event features and interfaces to respond to nested > panels events (and forward them to its parent). > > Is a feature like this available in Tobago (maybe through a facelet)? If > not, do you think it's a good idea to add a feature request in this sens? > > Regards, > Zied > > -- Zied Hamdi zatreex.sourceforge.net

