You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Ronald Brill (JIRA)" <de...@myfaces.apache.org> on 2006/06/06 16:15:29 UTC

[jira] Created: (MYFACES-1323) CommandLink parameter value not determined from request

CommandLink parameter value not determined from request
-------------------------------------------------------

         Key: MYFACES-1323
         URL: http://issues.apache.org/jira/browse/MYFACES-1323
     Project: MyFaces Core
        Type: Bug

    Reporter: Ronald Brill


There is a command link on a page that toggles between two images.

JSP source

<h:commandLink actionListener="#{result.sortableHitSet.sortBy}">
        <f:param name="sortByColumn" value="text"/>
        <f:param name="sortOrder" value="#{result.sortableHitSet.sortedBy['text']}"/>
        <ivy:sortImage value="#{result.sortableHitSet.sortedBy['text']}"/>
</h:commandLink>

The whole information is rendered in the right way to the browser
  - there is a hidden field for each command representing the right value.
		<input type="hidden" name="sortByColumn" />
		<input type="hidden" name="sortOrder" />
  - there is some javascript to update the fields on submit
                    document.forms['test'].elements['sortByColumn'].value='name';
                    document.forms['test'].elements['sortOrder'].value='1';


BUT:
If i click on the Link the action is triggered, but the param (childs) of my component are not reflecting the values from the page. For the one with the value binding, the call of getValue() results in reevaluating of the value binding on the server.
If you think about a 'back-button-scenario' this breaks my applikation.
And why there are the hidden fields for the parameters, if the values are ignored.


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