Hmmm ... what about an action ?  Are actions doing this also? What happens if 
you temporarily swap the RI w/ MyFaces implementation ?

>-----Original Message-----
>From: Thierry Buecheler [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 3, 2006 10:59 AM
>To: 'MyFaces Discussion'
>Subject: Re: ActionListener invoked over and over
>
>Yes, the same thing happens. I am using SUN RI 1.0 with Tomahawk from MF 
>1.1.1.
>
>The following classes are called after the last bracket of 
>selectReference when using a debugger to step through:
>
>- NativeMethodAccessorImpl
>- DelegatingMethodAccessorImpl
>- Method
>- MethodBindingImpl
>- UICommand
>- UIData
>- UIViewRoot
>--> ReferenceBean.selectReference again
>
>
>Thank you for your help,
>Thierry
>
>Dennis Byrne wrote:
>> Does the same thing happen if everything in selectReference is commented 
>> out?  Which version of MyFaces are you using?
>> 
>> 
>>>-----Original Message-----
>>>From: Thierry Buecheler [mailto:[EMAIL PROTECTED]
>>>Sent: Tuesday, January 3, 2006 03:37 AM
>>>To: 'MyFaces Discussion'
>>>Subject: ActionListener invoked over and over
>>>
>>>Hi everybody
>>>
>>>On a page which lists books I provide an "edit" Button where users can 
>>>change informations on books:
>>>
>>>-----
>>>PAGE:
>>>-----
>>>
>>><t:column ...
>>>
>>><t:commandLink id="EditBook" action="editor"
>>>actionListener="#{referenceBean.selectReference}">
>>><t:outputText value="Edit" />
>>><f:param id="editId" name="id" value="#{reference.id}" />
>>></t:commandLink>
>>>
>>></t:column>
>>>
>>>-----
>>>BEAN:
>>>-----
>>>
>>>public void selectReference(ActionEvent event) {
>>>...
>>>
>>>UIParameter component = (UIParameter) 
>>>event.getComponent().findComponent("editId");
>>>
>>>String id = component.getValue().toString();
>>>
>>>this.setReference(db.loadReference(id));
>>>
>>>}
>>>
>>>It looks like the method selectReference is invoked over and over again 
>>>(for each column in the dataTable), which results in the fact that 
>>>always the last reference is selected (and displayed in the editor) at 
>>>the end.
>>>
>>>Anybody knows why ActionListeners could be invoked more than once?
>>>
>>>Thanks for any help!
>>>
>>>Thierry
>>>
>> 
>> 
>> 
>> 
>> 
>


Reply via email to