Hi Walter,

Yes, it's working with the following code:

document.getElementById('linkId').onclick();

Thank you very much




Walter Mourão-2 wrote:
> 
>> I want to click all these links
>> programmatically from my backing bean. Is this possible?
> 
> You will need some way to send javascript (
> getElementById('linkId').click(), for example) from the backing bean.
> Trinidad supports that
> (http://myfaces.apache.org/trinidad/devguide/ppr.htmlsearch for "Using
> RequestContext").
> 
> Regards,
> 
> 
> Walter Mourão
> http://waltermourao.com.br
> http://arcadian.com.br
> http://oriens.com.br
> 
> 
> 
> On Wed, Aug 12, 2009 at 3:44 PM, Jan-Kees van Andel <
> [email protected]> wrote:
> 
>> Hi,
>>
>> I don't really understand what you mean with "clicking from your
>> backing bean". Do you mean invoking the action associated with the
>> button, Java style? Or do you mean you want to trigger a client side
>> click from a backing bean? That isn't possible, not even with other
>> standard web frameworks, unless you use a technology like Comet. And
>> what do you mean with clicking from your backing bean? Do you have
>> Java code in a backing bean method that needs to trigger some UI
>> event?
>>
>> Could you give us a bit more context please?
>>
>> Regards,
>> Jan-Kees
>>
>> 2009/8/12 mitroiasi <[email protected]>:
>> >
>> >
>> > Hi,
>> >
>> > I work on a JSF application. Right now, I have a problem which I will
>> try
>> to
>> > explain.
>> > On one page I have many commandLinks. I want to click all these links
>> > programmatically from my backing bean. Is this possible?
>> >
>> > --
>> > View this message in context:
>> http://www.nabble.com/HtmlCommandLinkTag-programmatically-pressed-tp24938271p24938271.html
>> > Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> >
>> >
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/HtmlCommandLinkTag-programmatically-pressed-tp24938271p24952319.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to