IllegalStateException rendering sorted table column when output mode is
printable
---------------------------------------------------------------------------------
Key: TRINIDAD-1808
URL: https://issues.apache.org/jira/browse/TRINIDAD-1808
Project: MyFaces Trinidad
Issue Type: Bug
Affects Versions: 1.2.13-core
Reporter: Fred Davis
- Create a JSF page that contains a trinidad table component which has a
sortable component, e.g.
<tr:table id="foo" var="rowBean"
value="#{backingBean.rows}">
<tr:column sortable="true" sortProperty="name">
<f:facet name="header">
<tr:outputText value="Name" />
</f:facet>
<tr:outputText value="#{row.name}"/>
</tr:column>
</tr:table>
- Add a link to the page that displays it in printable output mode, e.g.
<tr:commandLink text="Printable Page" id="printablePageCommand">
<tr:setActionListener from="#{'printable'}"
to="#{requestScope.outputMode}" />
</tr:commandLink>
- Deploy and run
- When the page is displayed, click on the column heading to sort it
- Click on the link to display the page in printable mode
IllegalStateException is thrown with the following stack trace:
SEVERE: Error Rendering View[/home/tenancyBalance/tenancyBalance.xhtml]
java.lang.IllegalStateException
at
org.apache.myfaces.trinidadinternal.io.HtmlResponseWriter.writeAttribute(HtmlResponseWriter.java:197)
at
org.apache.myfaces.trinidadinternal.skin.icon.TextIcon.renderIcon(TextIcon.java:130)
at
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.OutputUtils.renderIcon(OutputUtils.java:324)
at
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.ColumnGroupRenderer.renderSortOrderSymbol(ColumnGroupRenderer.java:686)
...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.