-
1. Re: Issue with a4j:commandButton - Does not invoke action method or setPropertyActionListener the second time through
dandausch Jun 3, 2013 2:26 PM (in response to dandausch)I was able to figure out the solution. I added execute="@this" attribute to the a4j:commandButton and that did the trick. I am not sure why however. I guess the primary mystery is, prior to adding the execute attribute, why the action and setPropertyActionListener methods were called the first time but not the second time.
-
2. Re: Issue with a4j:commandButton - Does not invoke action method or setPropertyActionListener the second time through
dandausch Jun 3, 2013 4:54 PM (in response to dandausch)I guess i still don't understand why this fix made a difference - although I am not complaining. I reread the RichFaces documentation. The snippet is at the end of this reply and is from the link:
So, here is my question: If "@this" is the default behavior why could I only get the aj4:commandButton to work properly if I had this attribute explicitly added. Either the documentation is wrong or there is a bug. Thoughts?
-
3. Re: Issue with a4j:commandButton - Does not invoke action method or setPropertyActionListener the second time through
lfryc Jun 4, 2013 9:41 AM (in response to dandausch)Hey Daniel, RichFaces, by default, uses @this as defined in standard, except cases where component is put into region - then @region is used instead.
I would try debugging a JSF code:
- put a breakpoint to PropertyBean.setCurrentSelectedProperty
- look into stack who and why invokes it
- remove execute="@this"
- inspect a invocation and find out what differs from previous case