Action for commandLink inside a component

View: New views
1 Messages — Rating Filter:   Alert me  

Action for commandLink inside a component

by Davide Romanini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm creating a reusable component for facelets. It is basically a custom
commandLink I use inside my web application:

<div xmlns:h="http://java.sun.com/jsf/html">
  ...
  <h:commandLink action="#{action}" ... />
</div>

Since the action is dinamyc, I define it when I call the component:

<sup:customLink action="myAction" />

My action should be a string, because it triggers a Spring Web Flow
transition event. But jsf complains, because it is not a MethodExpression:

Identity 'action' does not reference a MethodExpression instance,
returned type: java.lang.String

I found other people resolving this using something like
backingBean[action], but it doesn't work for me because I have not a
backing bean (transition events are handled in Spring Web Flow)!

Suggestions?

Regards,
Davide

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...