[ http://issues.apache.org/jira/browse/MYFACES-596?page=comments#action_12330097 ]
Bruno Aranda commented on MYFACES-596: -------------------------------------- The onclick should call javascript code. Is that javascript? > "onclick" doesn't work! > ----------------------- > > Key: MYFACES-596 > URL: http://issues.apache.org/jira/browse/MYFACES-596 > Project: MyFaces > Type: Bug > Components: Tomahawk > Reporter: en_matrix > > i'm using dataList to display array of images, > by clicking an image, you go to details page. > the onclick method doesn't work with me! > no error even if i wrote wrong syntax in the onclick string. > the following in the code segment: > <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> > . > . > . > . > t:dataList id="data1" style="width: 150" styleClass="imageTable" > var="families" > value="#{pfController.productFamilyNames}" > rowCountVar="rowCount" rowIndexVar="rowIndex" > > > > <t:panelGroup style="width: 150" > styleClass="imageTable" > > > <h:outputLink value="products.faces" > > onclick="pfController.setChosenFamilyId(anythinggggggg)"> > <t:graphicImage > value="#{families.imageName}" > onclick="pfController.setChosenFamilyId(anythingggg)" height="132" > width="110" style="border: 0" styleClass="imageTable"/> > </h:outputLink> > > <%/* separetor if not last image in row */%> > <t:graphicImage value="images/v_sep.gif" height="106" > width="1" styleClass="imageTable" > rendered="#{rowIndex + 1 < rowCount}"/> > > > <%/* empty cell if last image in row */%> > <t:graphicImage value="" height="106" width="1" > rendered="#{rowIndex + > 1 >= rowCount}"/> > > <h:outputLink value="products.faces" > > onclick="pfController.setChosenFamilyId(family.value)"> > <t:graphicImage value="#{families.titleImage}" > width="120" height="26" style="border: 0" styleClass="imageTable"/> > </h:outputLink> > </t:panelGroup> > </t:dataList> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
