Hi, I currently have this:

  | <h:outputLink value="object-view.seam">
  |                                                     <f:param name="oid" 
value="#{x.id}"/>
  |                                             <h:outputText value="#{x.name}" 
/>
  |                                             </h:outputLink>
  | 
to go to a detailed view of the object when clicked on the link.
I want to be able to call a method to determine which view to go to depending 
on the Class of x. 

Essentially what I would want to do is write:

  | <h:outputLink value="#{myViewSelector.selectViewFor(x)}">
  |                                                     <f:param name="oid" 
value="#{x.id}"/>
  |                                             <h:outputText value="#{x.name}" 
/>
  |                                             </h:outputLink>
  | 

I have written a ViewSelector class with a method that takes an instance of x 
and determines which view I want, I then return "object-view.seam" or something 
similar.

This does not work, so I wonder how I am supposed to do this.
Any suggestions that helps a newbie like me are much appreciated.


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031846#4031846

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031846
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to