This is not standardized.  MyFaces exposes this w/ 
HtmlRendererUtils.HIDDEN_COMMANDLINK_FIELD_NAME , which has always been 
_link_hidden_ .  

Dennis Byrne
 
>-----Original Message-----
>From: Laurie Harper [mailto:[EMAIL PROTECTED]
>Sent: Thursday, February 16, 2006 04:38 PM
>To: users@myfaces.apache.org
>Subject: commandLink encode/decode behaviour
>
> From the reference documentation for the commandLink component:
>
>     Both the encode and decode behavior require the ability
>     to get the id/name for a hidden field whose value is set
>     by the JavaScript form submit. This name must be constructed
>     as follows:
>
>       * Get the clientId for the form of which this component
>         is a child.
>       * AppendNamingContainer.SEPARATOR_CHAR.
>       * Append a constant string that is the same for all command
>         link components in the tree.
>
>     In the following text, this String is called hiddenFieldName.
>
>There's no mention of how to determine the 'constant string that is the 
>same for all command link components'. Is there any standard way to do that?
>
>The reason I want to is that I'm creating components that need to use 
>Javascript to trigger a form submit in order to fire actions / listeners 
>on the back end. I'd prefer to re-use the existing hidden input rather 
>than have to manage an additional one just for my components.
>
>L.
>
>


Reply via email to