I really need help - I am stuck on this.

Basically I want to do:

  | <a href="#{viewSelector.viewForObject(x)}?oid=#{x.oid}">some text</a>
  | 
But I have failed to figure out how to create such an URL.
If I use s:link I can call the method viewForObject and pass a paramter and get 
the view back, but then the parameter is lost (it is applied to the invocation 
of the action). 

I then thought about using multiplen h:outputLink with static declaration of 
the various viewids and using

  | rendered="#{viewSelector.viewForObject(x) == 'view-x'}"
  | 
but that is not valid (or? can this be made to work?)

I then looked at doing this with a page navigation rule instead, but my head 
starts to spin - how do this with page rules? 
Should I have a fictious page-id that I navigate to with 
redirects depending on the outcome of my method? Or add a page that never gets 
rendered, only redirected from? But how do I get the value of x.id in there? 

Any help much appreciated...
Regards
"confused newbie"

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

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

Reply via email to