[richfaces-issues] [JBoss JIRA] Commented: (RF-9375) a4j:ajax not correctly supports relative paths in render attribute.
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Fri Nov 5 13:11:02 EDT 2010
[ https://jira.jboss.org/browse/RF-9375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561660#action_12561660 ]
Nick Belaevski commented on RF-9375:
------------------------------------
Here is the correct code:
<a4j:repeat id="a4jRepeatColumns" value="#{row.cells}" var="cell" iterationStatusVar="cellStatus">
<td><h:panelGroup layout="block"
styleClass="cell #{rowStatus.even ? 'row-even' : 'row-odd'} #{cellStatus.even ? 'cell-even' : 'cell-odd'}">
<h:inputText id="valueInput" value="#{cell.value}" size="3">
<f:convertNumber />
<a4j:ajax render="#{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:inputText>
<h:commandLink id="clearLink" action="#{cell.clearValueAction}" value="C">
<a4j:ajax render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:commandLink>
<h:outputText value=" / " />
<h:commandLink id="increaseLink" action="#{cell.increaseValueAction}" value="+">
<a4j:ajax render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:commandLink>
<h:outputText value=" / " />
<h:commandLink id="decreaseLink" action="#{cell.decreaseValueAction}" value="-">
<a4j:ajax render="#{rich:clientId('a4jRepeatRows')}:a4jRepeatColumns:#{cellStatus.index}:valueInput #{rich:clientId('outputRows')}:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
</h:commandLink>
</h:panelGroup></td>
</a4j:repeat>
> a4j:ajax not correctly supports relative paths in render attribute.
> -------------------------------------------------------------------
>
> Key: RF-9375
> URL: https://jira.jboss.org/browse/RF-9375
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-a4j-core
> Affects Versions: 4.0.0.Milestone2
> Reporter: Konstantin Mishin
> Assignee: Nick Belaevski
> Fix For: 4.0.0.Milestone4
>
>
> From richfaces-exadel list:
> "I rewrote the Matrix sample from Core demo to Metamer,using partial refresh feature (adressing the exact cell in matrix).
> You can see sample on http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/trunk/application/src/main/webapp/components/a4jRepeat/matrix.xhtml
> But I can't to get this sample working inside another iteration components since I address the cells absolutely using form:... expression.
> Can you advice me how to address it relatively to get it working nested in another container components, I am not able to find right expression."
> As far as I understand expression should be:
> <a4j:ajax render="valueInput outputRows:#{rowStatus.index}:outputColumns:#{cellStatus.index}:output" />
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list