[ http://issues.apache.org/jira/browse/ADFFACES-157?page=all ]

Joseph Rozier updated ADFFACES-157:
-----------------------------------

    Attachment: adffaces157.patch

I'm attaching a patch for this issue.

The problem was with the JavaScript.  The _tableSort method which is called 
takes in a set of parameters, one of which is called "state".  In the 
_submitForm logic, the values from these parameters are populated in hidden 
input fields.  If a matching hidden input field is not found, the JavaScript 
attempts to create one on the fly.  The PDAs we are supporting does not support 
the creation of DOM elements on the fly, so this was failing.

The solution is to add a hidden input field with the name "state" whenever a 
column is sortable and the agent does not support the creation of DOM elements 
on the fly.

> Moving from ascending sort to descending sort on a tr:column on the PDA does 
> not work
> -------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-157
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-157
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>         Environment: PDA
>            Reporter: Joseph Rozier
>            Priority: Minor
>         Attachments: adffaces157.patch
>
>
> On the PDA, if a column is both ascending and descending sortable, the user 
> is not able to move to the descending sort after first selecting the 
> ascending sort.

-- 
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

        

Reply via email to