[
https://jira.jboss.org/jira/browse/RF-3614?page=com.atlassian.jira.plugin...
]
Mikhail Vitenkov reopened RF-3614:
----------------------------------
Assignee: Nick Belaevski (was: Tsikhon Kuprevich)
Iv'e got java.lang.NullPointerException each time when click on s:link:
XHTML:
<rich:dataTable id="dataTableSAFID"
value="#{sortingAndFiltering.data}" var="data12"
binding="#{sortingAndFiltering.myDataTable}">
<rich:column sortBy="#{data12.int0}" selfSorted="true"
filterBy="#{data12.int0}">
<f:facet name="header">
<h:outputText value="#1" />
</f:facet>
<h:outputText value="#{data12.int0}"></h:outputText>
<f:facet name="footer">
<h:outputText value="#1" />
</f:facet>
</rich:column>
...
<rich:column filterExpression="#{data12.int3 >
sortingAndFiltering.filterValue}">
<f:facet name="header">
<h:outputText value="#6" />
</f:facet>
<s:link value="JBoss"
action="#{sortingAndFiltering.navAction(data12)}"/>
<f:facet name="footer">
<h:outputText value="#6" />
</f:facet>
</rich:column>
...
</rich:dataTable>
Java bean:
public String navAction(Data data12){
System.out.println("action: " + data12.getStr1());
return data12.getStr1();
}
Verified at 3.2.2.CR4
Sorting a dataTable changes seam-link
-------------------------------------
Key: RF-3614
URL:
https://jira.jboss.org/jira/browse/RF-3614
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: RichFaces 3.2.1.GA
JBoss Seam 2.0.2.SP1
JSF 1.2 + Facelets 1.1.14
JBoss 4.2.2.GA
JDK 1.5.0_11
Reporter: Rainer Flicker
Assignee: Nick Belaevski
Fix For: 3.2.2
Original Estimate: 1 week
Remaining Estimate: 1 week
Sorting a dataTable changes seam-link. Before sorting the list, seam-link opens the
appropriate
item. After sorting, seam-link always opens the last item of the unsorted list. Selecting
for example
item 10 of 20 opens after sorting always item 20.
------ xhtml snippet
---------------------------------------------------------------------------------------------------
<rich:dataTable value="#{hazards}" var="hazard">
<rich:column sortBy="#{hazard.name}">
<f:facet name="header">
<h:outputText styleClass="headerText" value="name" />
</f:facet>
<h:outputText value="#{hazard.name}"></h:outputText>
</rich:column>
<s:link action="#{hazardDetailsManager.select(hazard)}" >
<h:graphicImage
url="/img/buttons/edit.gif"></h:graphicImage>
</s:link>
</rich:column>
</rich:dataTable>
------------------------------------------------------------------------------------------------------------------------------
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira