[jboss-user] [JBoss Seam] - Dynamic navigation

matt.drees do-not-reply at jboss.com
Sat Jul 28 23:24:51 EDT 2007


Is there a reason view-ids in nav rules in pages.xml couldn't be expression language statements?

for example:

  | 		<navigation from-action="#{simpleComponent.doSomething}">
  | 			<redirect view-id="#{dynamicNavigationManager.nextPage}"/>
  | 		</navigation>
  | 

Right now, I can do something like

  | SimpleComponent {
  | 
  | @In dynamicNavigationManager
  | 
  | public String doSomething() {
  |   ... 
  |   return dynamicNavigationManager.nextPage();
  | 
  | }
  | 

But it'd be nice to keep SimpleComponent as simple as possible, and have doSomething() return void.  Also, this method forces a redirect (which is usually what I want, but maybe sometimes you don't.  There was a recent forum post of someone who didn't).

I'll probably create a Jira request, but thought I'd post here to see if anyone thought it was clearly a bad idea.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068503



More information about the jboss-user mailing list