myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Marinschek <martin.marinsc...@gmail.com>
Subject Re: __LINK_TARGET__ changed to _link_hidden_?
Date Tue, 01 Nov 2005 15:42:58 GMT
The name of the field stems from:

public static final String HIDDEN_COMMANDLINK_FIELD_NAME = "_link_hidden_";

This constant originally was private, but I am changing it to public
for you, so it should be accessible from now on.

regards,

Martin

On 11/1/05, CONNER, BRENDAN (SBCSI) <bc1378@sbc.com> wrote:
> But I was referring to the hidden field that JSF automatically creates
> that corresponds to a <h:commandLink> link.  Is this the same thing?
>
> - Brendan
>
> -----Original Message-----
> From: Bruno Aranda [mailto:brunoaranda@gmail.com]
> Sent: Monday, October 31, 2005 8:08 PM
> To: MyFaces Discussion
> Subject: Re: __LINK_TARGET__ changed to _link_hidden_?
>
>
> You could use the forceId attribute of the t:inputHidden component.
> For instance:
>
> <t:inputHidden id="myId" forceId="true" />
>
> will render a input type="hidden" component with clientId 'myId'. So
> you can use this id safely in your code...
>
> Regards,
>
> Bruno
>
> 2005/10/31, CONNER, BRENDAN (SBCSI) <bc1378@sbc.com>:
> > Out of curiosity, did the rendered ID of the hidden field that
> > represents a form's commandLinks get changed within the past couple of
> > months from __LINK_TARGET__ to _link_hidden_?  We had some code in our
> > Tiles framework to automatically click a link on our page, and this
> > assumed that the hidden field would be called __LINK_TARGET__, and
> this
> > suddenly stopped working.  Upon viewing the HTML source, we found
> that,
> > if we changed our reference from __LINK_TARGET__ to _link_hidden_, our
> > auto-click worked again.
> >
> > If this change occurred, my next question is: How can we refer to this
> > hidden field in a manner that protects us against changes to its name?
> >
> > - Brendan
> >
>


--

http://www.irian.at
Your JSF powerhouse -
JSF Trainings in English and German

Mime
View raw message