[
http://issues.apache.org/jira/browse/MYFACES-853?page=comments#action_12362241
]
Martin Marinschek commented on MYFACES-853:
-------------------------------------------
Thanks Dennis. We'll commit when this is fixed.
You'll need to replicate - you'll always have to think about users not using
MyFaces and still using dataList - they won't gain anything if you change the
process method to use a static-util function in the API, cause they don't have
the MyFaces API implementation in their classpath. So duplicate code is our
only option here, as much as I hate to copy code myself. Best would be to
document the duplication, though, so if someone changes one implementation of
the function, he knows that he needs to change the other one as well.
Please, also take care to send in the patch according to the MyFaces code-style
(e.g. { in new lines).
regards,
Martin
> commandLink not working inside dataList
> ---------------------------------------
>
> Key: MYFACES-853
> URL: http://issues.apache.org/jira/browse/MYFACES-853
> Project: MyFaces
> Type: Bug
> Versions: 1.1.1
> Environment: WinXP,tomcat 5.5.9,myfaces-1.1.1,JDK 1.5
> Reporter: Alexander Traeder
> Attachments: api.txt, tomahawk.txt
>
> in following code fragement the action-method "testService.listenOnSelect"
> is never called:
> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
> <f:subview id="test">
> <h:form id="testform">
> <h:panelGrid columns="1">
> <t:dataList id="datalist" style="standardList"
> var="test"
> value="#{testService.entries}"
> rowCountVar="rowCount"
> rowIndexVar="rowIndex"
> layout="unorderedList">
> <h:commandLink id="test_ref"
> value="#{rowIndex + 1}" action="#{testService.listenOnSelect}" />
>
> </t:dataList>
> </h:panelGrid>
> </h:form>
> </f:subview>
> after some testing i also tried the nightly build but with the same result
> also tried the following (working in other scenarios):
> <h:commandLink id="testref" immediate="true"
> value="#{rowIndex + 1}" action="">
> <t:updateActionListener
> property="#{rowCount}" value="#{testService.searchRow}" />
> </h:commandLink>
> any ideas?
--
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