Hi, >From the docs;
addValueChangeListener(javax.faces.event.ValueChangeListener listener) Add a new ValueChangeListener to the set of listeners interested in being notified when ValueChangeEvents occur. In addition check if the listener is not already added to the listeners list before using this. Cagatay On Nov 12, 2007 4:10 PM, <[EMAIL PROTECTED]> wrote: > Hi Cheers, but if a componenet already has a ValueChangeListener setted > by the programmer for other reasons? The new ValueChangeListener si > added or replace existings? > > Thank, Mario > > > -----Original Message----- > From: Cagatay Civici [mailto:[EMAIL PROTECTED] > Sent: 12 novembre 2007 14.50 > To: MyFaces Discussion > Subject: Re: How know witch data in changed > > Hi, > > A phaselistener may work here, in after phase of restore view, > traverse the component tree, if the component is an > editablevalueholder, > cast the component to editablevalueholder and add the > valuechangelistener by addValueChangeListener or > setValueChangeListener. > > A valuechangelistener implementation needs a processValueChange method > or it can be a method binding, in your case the first option is a > better alternative > > See editableValueHolder for more info. > > Cheers, > > Cagatay Civici > [EMAIL PROTECTED] > ps3 network id : facescontext > > On Nov 12, 2007 3:06 PM, <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Is there a way to set the same ValueChangeListener to all component of > all > > view without specific code in the page? I don't want leave my > programmers > > manage the logic to know witch component is changed, because I need to > > managed this kind of problem in the framework code. > > > > > > > > Any suggestions? > > > > > > > > Thanks, M. > > > > > > > > ________________________________ > > > > > > From: Gerhard Petracek [mailto:[EMAIL PROTECTED] > > Sent: 12 novembre 2007 13.34 > > To: MyFaces Discussion > > Subject: Re: How know witch data in changed > > > > > > > > > > hello mario, > > > > sounds like you are searching for the mechanism of > ValueChangeListeners. > > > > regards, > > gerhard > > > > > > > > > > > > 2007/11/12, [EMAIL PROTECTED] > <[EMAIL PROTECTED]>: > > > > > > > > Hello, I need to know witch data of a view is changed. Is there a way > to do > > that with no specific code? I'm going to do it in a PhaseListener that > > compare data of each component before and after "apply Request" phase. > > > > > > > > What do you think? > > > > > > > > Any suggestion is Appreciated. > > > > > > > > Regards > > > > Mario > > > > > > > > ________________________________ > > > > > > This message is for the designated recipient only and may contain > > privileged, proprietary, or otherwise private information. If you have > > received it in error, please notify the sender immediately and delete > the > > original. Any other use of the email by you is prohibited. > > > > > > > > > > -- > > > > http://www.irian.at > > > > Your JSF powerhouse - > > JSF Consulting, Development and > > Courses in English and German > > > > Professional Support for Apache MyFaces > > > > > > > > > > > > This message is for the designated recipient only and may contain > > privileged, proprietary, or otherwise private information. If you have > > received it in error, please notify the sender immediately and delete > the > > original. Any other use of the email by you is prohibited. > > > This message is for the designated recipient only and may contain privileged, > proprietary, or otherwise private information. If you have received it in > error, please notify the sender immediately and delete the original. Any > other use of the email by you is prohibited. >

