You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Alex Mayer (JIRA)" <my...@incubator.apache.org> on 2005/05/01 20:59:04 UTC
[jira] Created: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
x:dataTable, x:columns and x:commandSortHeader not sorting the data
-------------------------------------------------------------------
Key: MYFACES-224
URL: http://issues.apache.org/jira/browse/MYFACES-224
Project: MyFaces
Type: Bug
Versions: 1.0.9 beta
Environment: tomcat5.5, java5 update 3,
Reporter: Alex Mayer
The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
my code is like this:
<x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
preserveSort="true" preserveDataModel="true">
<x:columns value="#{manager.headerStrings}" var="column">
<f:facet name="header">
<h:panelGroup>
<h:selectBooleanCheckbox />
<x:commandSortHeader columnName="#{column}" arrow="true">
<h:outputText value="#{column}" />
</x:commandSortHeader>
</h:panelGroup>
</f:facet>
<h:outputText value="#{b[column]}" />
</x:columns>
</x:dataTable>
in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
--
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
Re: [jira] Resolved: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
Posted by Sean Schofield <se...@gmail.com>.
Mathias,
Lately we've been marking bugs closed/fixed (instead of
resolved/fixed.) As of the last release, there was no way in JIRA to
change all resolved to closed so I had to do them manually! We don't
want to repeat that process again (along with all of the email.)
sean
ps. Welcome to the team
On 7/19/05, Mathias Broekelmann (JIRA) <my...@incubator.apache.org> wrote:
> [ http://issues.apache.org/jira/browse/MYFACES-224?page=all ]
>
> Mathias Broekelmann resolved MYFACES-224:
> -----------------------------------------
>
> Resolution: Fixed
>
> fixed. See the updated examples for 'Paged and Sortable (dynamic number of columns; mouseover)'
>
> > x:dataTable, x:columns and x:commandSortHeader not sorting the data
> > -------------------------------------------------------------------
> >
> > Key: MYFACES-224
> > URL: http://issues.apache.org/jira/browse/MYFACES-224
> > Project: MyFaces
> > Type: Bug
> > Versions: 1.0.9 beta
> > Environment: tomcat5.5, java5 update 3,
> > Reporter: Alex Mayer
>
> >
> > The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
> > my code is like this:
> > <x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
> > sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
> > preserveSort="true" preserveDataModel="true">
> >
> > <x:columns value="#{manager.headerStrings}" var="column">
> > <f:facet name="header">
> > <h:panelGroup>
> > <h:selectBooleanCheckbox />
> > <x:commandSortHeader columnName="#{column}" arrow="true">
> > <h:outputText value="#{column}" />
> > </x:commandSortHeader>
> > </h:panelGroup>
> > </f:facet>
> > <h:outputText value="#{b[column]}" />
> > </x:columns>
> > </x:dataTable>
> > in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
> > I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
>
> --
> 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: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
Posted by "Alex Mayer (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-224?page=comments#action_64252 ]
Alex Mayer commented on MYFACES-224:
------------------------------------
I redownloaded 1.0.9 final but no change, the data is not sorted. I attached the source of the html-page of the first rendered page.
Please look yourself whether it contains "the valid ids", because I don't know which ones you are refering to.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
<table id="_id0:data">
<thead>
<tr>
<th>
<input type="checkbox" name="_id0:data:_id3:0:_id5" />
<a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:data:_id3:0:_id6';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:data:_id3:0:_id6">header1↑</a>
</th
><th>
<input type="checkbox" name="_id0:data:_id3:0:_id5" />
<a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:data:_id3:0:_id6';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:data:_id3:0:_id6">header2</a>
</th>
<th>
<input type="checkbox" name="_id0:data:_id3:0:_id5" />
<a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:data:_id3:0:_id6';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:data:_id3:0:_id6">header3</a>
</th>
<th>
<input type="checkbox" name="_id0:data:_id3:0:_id5" />
<a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:data:_id3:0:_id6';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:data:_id3:0:_id6">header4</a>
</th>
<th>select</th>
</tr>
</thead>
<tbody>
<tr>
<td>val1</td>
<td>string1</td>
<td>b1</td>
<td>d</td>
<td>
<input type="checkbox" name="_id0:data:_id10" />
</td>
</tr>
<tr>
<td>val2</td>
<td>string5</td>
<td>dsdf</td>
<td>lorem</td>
<td>
<input type="checkbox" name="_id0:data:_id10" />
</td>
</tr>
<tr>
<td>val3</td>
<td>anotherstring</td>
<td>werws</td>
<td>ipsum</td>
<td>
<input type="checkbox" name="_id0:data:_id10" />
</td>
</tr>
</table>
</body>
</html>
> x:dataTable, x:columns and x:commandSortHeader not sorting the data
> -------------------------------------------------------------------
>
> Key: MYFACES-224
> URL: http://issues.apache.org/jira/browse/MYFACES-224
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: tomcat5.5, java5 update 3,
> Reporter: Alex Mayer
>
> The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
> my code is like this:
> <x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
> sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
> preserveSort="true" preserveDataModel="true">
>
> <x:columns value="#{manager.headerStrings}" var="column">
> <f:facet name="header">
> <h:panelGroup>
> <h:selectBooleanCheckbox />
> <x:commandSortHeader columnName="#{column}" arrow="true">
> <h:outputText value="#{column}" />
> </x:commandSortHeader>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="#{b[column]}" />
> </x:columns>
> </x:dataTable>
> in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
> I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
--
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: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
Posted by "Clivens LaGuerre (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-224?page=comments#action_12331295 ]
Clivens LaGuerre commented on MYFACES-224:
------------------------------------------
I am using a nightly build 20051002 version of myfaces, I am having the same problem originally started this thread. I read through all the messages and have performed every suggestion, but nothing seems to work. What's wierd is that, running the example "Paged and Sortable (dynamic number of columns; mouseover)" from the simple context works fine. I even tried to recreate the same example in my project, when I try to run it I get the same sorting problem. The problem I am having is that the sorting doesn't seems to be working correctly, when I look at the source, it seems like all the columns have been assigned the same id. all column links sorts the last column ascending. I am not sure what to do next, I have spent 1.5 days trying to figure out what's going on. I know it's something that I am missing but I don't know what. Please help.
Thanks in advance,
Clivens
header for the sort table running the example from my project.
<thead>
<tr><th class="standardTable_Header"><a href="#" onclick="clear__5Fid1();document.forms['_id1'].elements['autoScroll'].value=getScrolling();document.forms['_id1'].elements['_id1:_link_hidden_'].value='_id1:data:columns:_id2';if(document.forms['_id1'].onsubmit){if(document.forms['_id1'].onsubmit()) document.forms['_id1'].submit();}else{document.forms['_id1'].submit();}return false;" id="_id1:data:columns:_id2">Index</a></th><th class="standardTable_Header"><a href="#" onclick="clear__5Fid1();document.forms['_id1'].elements['autoScroll'].value=getScrolling();document.forms['_id1'].elements['_id1:_link_hidden_'].value='_id1:data:columns:_id2';if(document.forms['_id1'].onsubmit){if(document.forms['_id1'].onsubmit()) document.forms['_id1'].submit();}else{document.forms['_id1'].submit();}return false;" id="_id1:data:columns:_id2">Type</a></th><th class="standardTable_Header"><a href="#" onclick="clear__5Fid1();document.forms['_id1'].elements['autoScroll'].value=getScrolling();document.forms['_id1'].elements['_id1:_link_hidden_'].value='_id1:data:columns:_id2';if(document.forms['_id1'].onsubmit){if(document.forms['_id1'].onsubmit()) document.forms['_id1'].submit();}else{document.forms['_id1'].submit();}return false;" id="_id1:data:columns:_id2">Model</a></th></tr></thead>
> x:dataTable, x:columns and x:commandSortHeader not sorting the data
> -------------------------------------------------------------------
>
> Key: MYFACES-224
> URL: http://issues.apache.org/jira/browse/MYFACES-224
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9m9
> Environment: tomcat5.5, java5 update 3,
> Reporter: Alex Mayer
>
> The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
> my code is like this:
> <x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
> sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
> preserveSort="true" preserveDataModel="true">
>
> <x:columns value="#{manager.headerStrings}" var="column">
> <f:facet name="header">
> <h:panelGroup>
> <h:selectBooleanCheckbox />
> <x:commandSortHeader columnName="#{column}" arrow="true">
> <h:outputText value="#{column}" />
> </x:commandSortHeader>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="#{b[column]}" />
> </x:columns>
> </x:dataTable>
> in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
> I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
--
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] Closed: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
Posted by "sean schofield (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-224?page=all ]
sean schofield closed MYFACES-224:
----------------------------------
> x:dataTable, x:columns and x:commandSortHeader not sorting the data
> -------------------------------------------------------------------
>
> Key: MYFACES-224
> URL: http://issues.apache.org/jira/browse/MYFACES-224
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: tomcat5.5, java5 update 3,
> Reporter: Alex Mayer
>
> The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
> my code is like this:
> <x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
> sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
> preserveSort="true" preserveDataModel="true">
>
> <x:columns value="#{manager.headerStrings}" var="column">
> <f:facet name="header">
> <h:panelGroup>
> <h:selectBooleanCheckbox />
> <x:commandSortHeader columnName="#{column}" arrow="true">
> <h:outputText value="#{column}" />
> </x:commandSortHeader>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="#{b[column]}" />
> </x:columns>
> </x:dataTable>
> in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
> I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
--
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: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
Posted by "Mathias Broekelmann (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-224?page=comments#action_64251 ]
Mathias Broekelmann commented on MYFACES-224:
---------------------------------------------
Maybe we have the same problem like it is described in http://issues.apache.org/jira/browse/MYFACES-225 and http://issues.apache.org/jira/browse/MYFACES-174.
How does the rendered content look like if the page is rendered for the first time? Does it contain the valid ids?
Please make sure you are using 1.0.9 final beta and not 1.0.9rc3 which do not contain the bug fix for that.
> x:dataTable, x:columns and x:commandSortHeader not sorting the data
> -------------------------------------------------------------------
>
> Key: MYFACES-224
> URL: http://issues.apache.org/jira/browse/MYFACES-224
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: tomcat5.5, java5 update 3,
> Reporter: Alex Mayer
>
> The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
> my code is like this:
> <x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
> sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
> preserveSort="true" preserveDataModel="true">
>
> <x:columns value="#{manager.headerStrings}" var="column">
> <f:facet name="header">
> <h:panelGroup>
> <h:selectBooleanCheckbox />
> <x:commandSortHeader columnName="#{column}" arrow="true">
> <h:outputText value="#{column}" />
> </x:commandSortHeader>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="#{b[column]}" />
> </x:columns>
> </x:dataTable>
> in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
> I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
--
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: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
Posted by "Mathias Broekelmann (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-224?page=all ]
Mathias Broekelmann resolved MYFACES-224:
-----------------------------------------
Resolution: Fixed
fixed. See the updated examples for 'Paged and Sortable (dynamic number of columns; mouseover)'
> x:dataTable, x:columns and x:commandSortHeader not sorting the data
> -------------------------------------------------------------------
>
> Key: MYFACES-224
> URL: http://issues.apache.org/jira/browse/MYFACES-224
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: tomcat5.5, java5 update 3,
> Reporter: Alex Mayer
>
> The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
> my code is like this:
> <x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
> sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
> preserveSort="true" preserveDataModel="true">
>
> <x:columns value="#{manager.headerStrings}" var="column">
> <f:facet name="header">
> <h:panelGroup>
> <h:selectBooleanCheckbox />
> <x:commandSortHeader columnName="#{column}" arrow="true">
> <h:outputText value="#{column}" />
> </x:commandSortHeader>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="#{b[column]}" />
> </x:columns>
> </x:dataTable>
> in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
> I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
--
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: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
Posted by "Mathias Broekelmann (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-224?page=comments#action_12331360 ]
Mathias Broekelmann commented on MYFACES-224:
---------------------------------------------
Please post the jsp/bean code which produces it.
> x:dataTable, x:columns and x:commandSortHeader not sorting the data
> -------------------------------------------------------------------
>
> Key: MYFACES-224
> URL: http://issues.apache.org/jira/browse/MYFACES-224
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9m9
> Environment: tomcat5.5, java5 update 3,
> Reporter: Alex Mayer
>
> The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
> my code is like this:
> <x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
> sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
> preserveSort="true" preserveDataModel="true">
>
> <x:columns value="#{manager.headerStrings}" var="column">
> <f:facet name="header">
> <h:panelGroup>
> <h:selectBooleanCheckbox />
> <x:commandSortHeader columnName="#{column}" arrow="true">
> <h:outputText value="#{column}" />
> </x:commandSortHeader>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="#{b[column]}" />
> </x:columns>
> </x:dataTable>
> in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
> I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
--
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: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
Posted by "Alex Mayer (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-224?page=comments#action_64249 ]
Alex Mayer commented on MYFACES-224:
------------------------------------
I wonder, that you found everyting working.
I added a message to my sort-class which is printed out everytime the sort-method is called.
So with above code the sort-method is just called once. I changed the preserveDataModel to false which did not change a thing. The sort method is only called once regardless which value is applied to preserveDataModel.
The x:columns-tag adds to my opinion to every column the same id. That is why EVERY column looks the same except the applied value for the outputText like this:
<th><input type="checkbox" name="_id0:data:_id3:0:_id5" /><a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:data:_id3:0:_id6';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:data:_id3:0:_id6">header1↑</a></th><th><input type="checkbox" name="_id0:data:_id3:0:_id5" /><a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:data:_id3:0:_id6';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:data:_id3:0:_id6">header2</a></th><th><input type="checkbox" name="_id0:data:_id3:0:_id5" /><a href="#" onclick="clear__5Fid0();document.forms['_id0'].elements['_id0:_link_hidden_'].value='_id0:data:_id3:0:_id6';if(document.forms['_id0'].onsubmit){document.forms['_id0'].onsubmit();}document.forms['_id0'].submit();return false;" id="_id0:data:_id3:0:_id6">header3</a></th>
The point is, that when I click on a commandSortHeader-Link in the table, nothing happens. The sort-method is not called. And the page isn't rendered again either. Internet Explorer is announcing a javascript error whereas firefox doesn't (but I don't have the js-debugger console in firefox installed)
> x:dataTable, x:columns and x:commandSortHeader not sorting the data
> -------------------------------------------------------------------
>
> Key: MYFACES-224
> URL: http://issues.apache.org/jira/browse/MYFACES-224
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: tomcat5.5, java5 update 3,
> Reporter: Alex Mayer
>
> The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
> my code is like this:
> <x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
> sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
> preserveSort="true" preserveDataModel="true">
>
> <x:columns value="#{manager.headerStrings}" var="column">
> <f:facet name="header">
> <h:panelGroup>
> <h:selectBooleanCheckbox />
> <x:commandSortHeader columnName="#{column}" arrow="true">
> <h:outputText value="#{column}" />
> </x:commandSortHeader>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="#{b[column]}" />
> </x:columns>
> </x:dataTable>
> in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
> I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
--
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: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
Posted by "SunilKumar (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-224?page=comments#action_12314399 ]
SunilKumar commented on MYFACES-224:
------------------------------------
Alex is right, I too tried putting system.out to see if sort command gets called but it was not, I had a work around to this problem by removing the CommandSortHeader and adding a commadLink action to invoke sort method.
I do have another problem with formatting the column data using <x:columns> has anyone got a solution for this ?
thx
> x:dataTable, x:columns and x:commandSortHeader not sorting the data
> -------------------------------------------------------------------
>
> Key: MYFACES-224
> URL: http://issues.apache.org/jira/browse/MYFACES-224
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: tomcat5.5, java5 update 3,
> Reporter: Alex Mayer
>
> The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
> my code is like this:
> <x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
> sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
> preserveSort="true" preserveDataModel="true">
>
> <x:columns value="#{manager.headerStrings}" var="column">
> <f:facet name="header">
> <h:panelGroup>
> <h:selectBooleanCheckbox />
> <x:commandSortHeader columnName="#{column}" arrow="true">
> <h:outputText value="#{column}" />
> </x:commandSortHeader>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="#{b[column]}" />
> </x:columns>
> </x:dataTable>
> in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
> I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
--
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: (MYFACES-224) x:dataTable, x:columns and x:commandSortHeader not sorting the data
Posted by "Mathias Broekelmann (JIRA)" <my...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-224?page=comments#action_64244 ]
Mathias Broekelmann commented on MYFACES-224:
---------------------------------------------
Can you give us more details about what is not working. I've tried it but found everthing working.
Try to set the property preserveDataModel to false. I find it a little bit unpredictable since how can the user sort the rows if the the UIData.getValue() method is only called when the page is first time rendered. As far as I understand the code for preserveDataModel=true is that the used DataModel object is serialized and reused the next time the page is processed without getting the original source (in your case manager.sortList.dataObjectsToSort) which may have been modified.
> x:dataTable, x:columns and x:commandSortHeader not sorting the data
> -------------------------------------------------------------------
>
> Key: MYFACES-224
> URL: http://issues.apache.org/jira/browse/MYFACES-224
> Project: MyFaces
> Type: Bug
> Versions: 1.0.9 beta
> Environment: tomcat5.5, java5 update 3,
> Reporter: Alex Mayer
>
> The x:commandSortHeader is not working if nested inside of x:columns (which is nested in x:dataTable)
> my code is like this:
> <x:dataTable id="data" value="#{manager.sortList.dataObjectsToSort}" var="b" rows="4"
> sortColumn="#{manager.sortList.sort}" sortAscending="#{manager.sortList.ascending}"
> preserveSort="true" preserveDataModel="true">
>
> <x:columns value="#{manager.headerStrings}" var="column">
> <f:facet name="header">
> <h:panelGroup>
> <h:selectBooleanCheckbox />
> <x:commandSortHeader columnName="#{column}" arrow="true">
> <h:outputText value="#{column}" />
> </x:commandSortHeader>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="#{b[column]}" />
> </x:columns>
> </x:dataTable>
> in case I use a component-binding for the x:dataTable to generate a corresponding table in a bean, everything works fine.
> I believe this is, because the x:columns-tag assigns to every childcomponent of type commandSortHeader the same id.
--
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