Sure.
Add the onclick attribute to your div and execute the commandLink via
JS.

Get the commandLink via document.getElementById(commandLinkId) and call
the click() method.

Or see http://wiki.apache.org/myfaces/JavascriptWithJavaServerFaces

Michael


-----Original Message-----
From: Oellien, F (Frank) [mailto:[EMAIL PROTECTED] 
Sent: Mittwoch, 17. Januar 2007 16:33
To: MyFaces Discussion
Subject: Div tag and action

Hello,

Is there somewhere a JSF div component available that can be used like
t:commandLink?
The component should provide the definition of different style classes
for diefferent mouse events (over, clicked,..) and also the action and
actionListener methods like in the case of the commandLink component.

Is there a way to solve this issue by using div + Javascript +
t:commandLink ?

Regards
Frank
--------------------------------------
This message, including attachments, is confidential and may be
privileged.
If you are not an intended recipient, please notify the sender then
delete
and destroy the original message and all copies. You should not copy,
forward
and/or disclose this message, in whole or in part, without permission of
the sender.
--------------------------------------

Reply via email to