Ok, I reverted to newest non-beta version and I am still having strange problems.
After further research it appears that the method gets called if I click the commandLink twice.
The first time it goes to another unreleated function "loadUnitData" listed below.
Has anyone else seen this? Is there a common fix for this type of thing?
Thanks!
-----Original Message-----
From: Alex Brown [mailto:[EMAIL PROTECTED]]
Sent: Sat 10/21/2006 2:20 PM
To: [email protected]
Subject: Issue with incorrect method being called
Hello everyone!
I am having a very frustrating issue with myfaces (1.5 beta). I am trying to do something fairly basic and I am running into problems..
I have this commandLink inside a dataTable:
<h:commandLink actionListener="#{BuildingBean.deleteExp }" value="Delete">
<f:attribute name="item" value="#{item }"/>
</h:commandLink>
In my backing bean "BuildingBean" I have this:
public void deleteExp(ActionEvent event) {
...
}
When I select the link it in inexplicably calling this function:
public void loadUnitData(ValueChangeEvent event) {
...
}
This method is referenced elsewhere in the form here (Not inside dataTable):
<h:selectOneMenu value="#{BuildingBean.id }"
converter="javax.faces.Integer"
valueChangeListener="#{BuildingBean.loadData }"
>
<f:selectItems value="#{BuildingBean.items }"/>
</h:selectOneMenu>
If I copy the misbehaving command link outside of the dataTable it appears to work normally.
Here is my datatable:
<h:dataTable value="#{BuildingBean.items}" var="item"
border="1" headerClass="tableHeading" rowClasses="RowOdd,RowEven">
What they heck am I missing? Did I do something silly? Can I provide anything else?
I do not think this is related to the beta... but could be..
Thank you for any light you can shed on this :-) !
Alex
Title: RE: Issue with incorrect method being called

