You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Fred Davis (JIRA)" <de...@myfaces.apache.org> on 2010/05/11 10:57:42 UTC
[jira] Commented: (TRINIDAD-1808) IllegalStateException rendering
sorted table column when output mode is printable
[ https://issues.apache.org/jira/browse/TRINIDAD-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866096#action_12866096 ]
Fred Davis commented on TRINIDAD-1808:
--------------------------------------
Code workaround/fix:
In ColumnGroupRenderer.renderSortOrderSymbol() the following code block appears at line 682:
if (!renderedInput)
{
// Render the icon, specifying embedded=true. This
// allows text-based Icons to render their style class
// and altText directly on the anchor itself
OutputUtils.renderIcon(context,
arc,
icon,
altText,
align,
true);
}
I changed the if statement to be:
if (!renderedInput && supportNav)
This seems to fix the issue. However, I'm not familiar enough with the code to know whether this is the correct fix so I'm afraid one of the Trinidad gurus is going to have to look at this properly to work out the final fix.
> 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.