Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Action Listener not firing on commandImagelink

610035Dec 1 2011 — edited Jan 13 2012
Hi All,

I have a master detail form.I created a tree table bindings.Iterator holds the parent data and the Table inside holds the child records.I am facing a weird issue here.

I have a commandImageLink as one of the item in Table.I have a ActionListener associated with it.But when i click on the link, Action listener is not fired.
When i create a form layout instead of table, action listener is firing.But with all combinations , when i place the icon in table, action listener is not firing.

TO make it more complex, when i associate any showpopupBehaviour to commandlink, it works fine. I am not able to crack this mysterious behaviour.Kindly help me. Following is the sample code

<af:iterator id="i1" value="#{bindings.SubjectVO1.collectionModel}"
var="subject" varStatus="subIndx" rows="100">
<af:panelBox text="#{subject.Subject} #{subject.CatalogNbr} - #{subject.CourseTitleLong}"
id="pb1" type="flow" showDisclosure="false">
<af:table var="ssrClass" rowBandingInterval="1" id="t1"
value="#{subject.children}" fetchSize="500"
autoHeightRows="5" styleClass="AFStretchWidth"
varStatus="clsIndx" columnStretching="column:c6"
rowSelection="single"
binding="#{sessionBean.subjectTable}"
verticalGridVisible="false" allDetailsEnabled="true"
rendered="false">
*<af:column sortable="false" headerText="Add to cart" id="c7"*
width="56" align="center">
*<af:commandImageLink id="cil1" icon="/icons/cart.png"*
partialSubmit="true"
*actionListener="#{enrSessionBean.lisetenerAddtoCart}"*
*action="#{enrSessionBean.addToCartAction}"/>*
</af:column>
</af:table>
<af:popup id="popup1"
popupFetchListener="#{sessionBean.popupFetchListener}"
contentDelivery="lazyUncached">
<af:panelWindow id="panelWindow1" resize="on">
<af:region value="#{bindings.classdetailsflow1.regionModel}"
id="r1"/>
</af:panelWindow>
</af:popup>
<af:iterator id="i3" value="#{subject.children}" var="ssrClass">
<af:commandImageLink id="commandImageLink1" icon="/icons/cart.png"
partialSubmit="true"
actionListener="#{enrSessionBean.lisetenerAddtoCart}"
action="#{enrSessionBean.addToCartAction}"/>
</af:iterator>
</af:panelBox>
</af:iterator>


Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 10 2012
Added on Dec 1 2011
5 comments
805 views