You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Rogério Pereira Araújo (JIRA)" <de...@myfaces.apache.org> on 2006/07/19 16:16:14 UTC
[jira] Created: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Sorting doesn't works on columns that doesn't have an UIOuput component inside
------------------------------------------------------------------------------
Key: TOMAHAWK-555
URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
Project: MyFaces Tomahawk
Issue Type: Bug
Components: Column, Extended Datatable
Affects Versions: 1.1.5-SNAPSHOT
Reporter: Rogério Pereira Araújo
If i have this column:
<t:column defaultSorted="true" sortable="true">
<f:facet name="header">
<h:outputText value="ID" />
</f:facet>
<h:inputText size="10" value="Some Value" readonly="true"/>
</t:column>
the sort feature doesn't works.
--
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
[jira] Reopened: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Rogério Pereira Araújo (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=all ]
Rogério Pereira Araújo reopened TOMAHAWK-555:
---------------------------------------------
In fact doesn't work, i tested here again and the i got this warning in logs:
19/07/2006 14:43:09 org.apache.myfaces.component.html.ext.HtmlDataTable
WARN: Couldn't determine sort property for column [_id15].
and i only solved using sortPropertyName attribute of desired column.
i'm also getting this error with SortableModel:
19/07/2006 14:43:09 org.apache.myfaces.component.html.ext.SortableModel
ERROR: Evaluate:
org.apache.commons.el.parser.ParseException: Encountered "}" at line 1, column 16.
Was expecting:
<IDENTIFIER> ...
at org.apache.commons.el.parser.ELParser.generateParseException(ELParser.java:1895)
at org.apache.commons.el.parser.ELParser.jj_consume_token(ELParser.java:1779)
at org.apache.commons.el.parser.ELParser.Identifier(ELParser.java:872)
at org.apache.commons.el.parser.ELParser.PropertySuffix(ELParser.java:783)
at org.apache.commons.el.parser.ELParser.ValueSuffix(ELParser.java:765)
at org.apache.commons.el.parser.ELParser.Value(ELParser.java:655)
at org.apache.commons.el.parser.ELParser.UnaryExpression(ELParser.java:626)
at org.apache.commons.el.parser.ELParser.MultiplyExpression(ELParser.java:479)
at org.apache.commons.el.parser.ELParser.AddExpression(ELParser.java:428)
at org.apache.commons.el.parser.ELParser.RelationalExpression(ELParser.java:315)
at org.apache.commons.el.parser.ELParser.EqualityExpression(ELParser.java:238)
at org.apache.commons.el.parser.ELParser.AndExpression(ELParser.java:188)
at org.apache.commons.el.parser.ELParser.OrExpression(ELParser.java:138)
at org.apache.commons.el.parser.ELParser.Expression(ELParser.java:120)
at org.apache.commons.el.parser.ELParser.AttrValueExpression(ELParser.java:96)
at org.apache.commons.el.parser.ELParser.ExpressionString(ELParser.java:43)
at org.apache.myfaces.component.html.ext.SortableModel.getPropertyValue(SortableModel.java:323)
at org.apache.myfaces.component.html.ext.SortableModel$Comp.compare(SortableModel.java:379)
at java.util.Arrays.mergeSort(Unknown Source)
at java.util.Arrays.sort(Unknown Source)
at java.util.Collections.sort(Unknown Source)
at org.apache.myfaces.component.html.ext.SortableModel._sort(SortableModel.java:277)
at org.apache.myfaces.component.html.ext.SortableModel.setSortCriteria(SortableModel.java:232)
at org.apache.myfaces.component.html.ext.HtmlDataTable.createDataModel(HtmlDataTable.java:798)
at org.apache.myfaces.component.html.ext.HtmlDataTableHack.getDataModel(HtmlDataTableHack.java:410)
at org.apache.myfaces.component.html.ext.HtmlDataTable.getDataModel(HtmlDataTable.java:755)
at org.apache.myfaces.component.html.ext.HtmlDataTableHack.getRowCount(HtmlDataTableHack.java:84)
at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeBegin(HtmlTableRenderer.java:150)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512)
at javax.faces.component.UIData.encodeBegin(UIData.java:547)
at javax.faces.component.html.HtmlDataTable.encodeBegin(HtmlDataTable.java:47)
at org.apache.myfaces.component.html.ext.HtmlDataTableHack.encodeBegin(HtmlDataTableHack.java:169)
at org.apache.myfaces.component.html.ext.HtmlDataTable.encodeBegin(HtmlDataTable.java:528)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:232)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
at com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:239)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:580)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:181)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
that doesn't affect the sorting but happens each time when i click on a link of my sortable columns.
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Commented: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Catalin Kormos (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=comments#action_12422216 ]
Catalin Kormos commented on TOMAHAWK-555:
-----------------------------------------
Sorry, that code realy looks fine and i tested something similar here, and it is working just fine. I'm willing to try with a ready to deploy sample app that gives you trouble if you're can provide it.
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Commented: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Catalin Kormos (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=comments#action_12422164 ]
Catalin Kormos commented on TOMAHAWK-555:
-----------------------------------------
Then it should work, do you use the latest from the SVN trunk?
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Commented: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Rogério Pereira Araújo (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=comments#action_12422159 ]
Rogério Pereira Araújo commented on TOMAHAWK-555:
-------------------------------------------------
Oh, yeah, sorry, in fact i have a value binding instead of "Some Value".
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Commented: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Catalin Kormos (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=comments#action_12422157 ]
Catalin Kormos commented on TOMAHAWK-555:
-----------------------------------------
The "Some Value" is obtained from a value binding on a row object's property? the auto sorting feature works only for properties of a row object as documented here: http://wiki.apache.org/myfaces/Working_with_auto_sortable_tables
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Commented: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Rogério Pereira Araújo (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=comments#action_12422211 ]
Rogério Pereira Araújo commented on TOMAHAWK-555:
-------------------------------------------------
<t:dataTable id="tblResultado"
headerClass="cabecalhoTabela"
rowClasses="linhaTabelaNormal,linhaTabelaAlternada"
var="item"
value="#{bean.result}"
preserveDataModel="false"
renderedIfEmpty="false"
sortable="true"
sortColumn="#{bean.sortColumn}"
sortAscending="#{bean.sortAscending}"
preserveSort="true"
rows="10">
<t:column defaultSorted="true">
<f:facet name="header">
<h:outputText value="ID" />
</f:facet>
<h:inputText size="30" value="#{item.ID}" readonly="true"/>
</t:column>
</t:dataTable>
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Commented: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Rogério Pereira Araújo (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=comments#action_12422463 ]
Rogério Pereira Araújo commented on TOMAHAWK-555:
-------------------------------------------------
I'll do it soon as possible.
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Commented: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Catalin Kormos (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=comments#action_12422459 ]
Catalin Kormos commented on TOMAHAWK-555:
-----------------------------------------
I don't think facelets has something to do about this, i would like to help you out with this, but for now i can't reproduce it, a sample app would definetly help out.
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Commented: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Catalin Kormos (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=comments#action_12422208 ]
Catalin Kormos commented on TOMAHAWK-555:
-----------------------------------------
Please post the JSP code for the dataTable component.
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Resolved: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Rogério Pereira Araújo (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=all ]
Rogério Pereira Araújo resolved TOMAHAWK-555.
---------------------------------------------
Resolution: Invalid
I used the last jar built from SVN and now works as expected.
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Commented: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Rogério Pereira Araújo (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=comments#action_12422222 ]
Rogério Pereira Araújo commented on TOMAHAWK-555:
-------------------------------------------------
Maybe my problem is related with Facelets.
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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
[jira] Commented: (TOMAHAWK-555) Sorting doesn't works on columns
that doesn't have an UIOuput component inside
Posted by "Rogério Pereira Araújo (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/TOMAHAWK-555?page=comments#action_12422177 ]
Rogério Pereira Araújo commented on TOMAHAWK-555:
-------------------------------------------------
I tried now and seens to be ok.
> Sorting doesn't works on columns that doesn't have an UIOuput component inside
> ------------------------------------------------------------------------------
>
> Key: TOMAHAWK-555
> URL: http://issues.apache.org/jira/browse/TOMAHAWK-555
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Extended Datatable, Column
> Affects Versions: 1.1.5-SNAPSHOT
> Reporter: Rogério Pereira Araújo
>
> If i have this column:
> <t:column defaultSorted="true" sortable="true">
> <f:facet name="header">
> <h:outputText value="ID" />
> </f:facet>
> <h:inputText size="10" value="Some Value" readonly="true"/>
> </t:column>
> the sort feature doesn't works.
--
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