[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Halo, thx for the answer i have 2 questions on this. 1) Why the seam developers decided to introduce a new workflow config file (pages.xml) instead using the jsf approach (faces-config.xml), are there any real advantages on this ? (i have about 50 navigation rules in faces-config.xml, would

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread petemuir
Take a look at 5.1.1.2 in the 1.1.1.GA reference manual - it has the advantages and how to use them. It looks to me like Pages.getPage(viewId).getNavigations should be allow you access to navigation rules. View the original post :

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
thx for the tip, ill put some time on it and take a look at it right now. If i got any problem, can i post in this thread again? thx very much(this is really the only bulletin board where ppl understand what i want and help me), Bye, Holger View the original post :

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Hello i a curently trying to migrate the naivagation rule but somehow i making a mistake but cant see it(rule has no effect). rule from faces-config.xml (working) navigation-rule navigation-case

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
i have to correct the code above the code in pages.xml is: !DOCTYPE pages PUBLIC -//JBoss/Seam Pages Configuration DTD 1.1//EN http://jboss.com/products/seam/pages-1.1.dtd; !-- login -- rule if-outcome=loginsuccess redirect

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Oh ok, i didnt knew. (Didnt even noticed seam 1.1.1 is out, from public donwload area your cant donwload http://labs.jboss.com/portal/jbossseam/download/index.html) Well ill try to udate to Seam 1.1.1. In the case i dont post here in this thread again, i got it working. Thx very much, Holger

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread [EMAIL PROTECTED]
You must be using Seam 1.1.1! View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4005095#4005095 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4005095 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Hello, i also had the same idea, giving the page element a view id in my case /index.xhtml I tried the code u posted ,but it still has no effect. I am using jboss-seam-1.1.0.GA, the pages.xml is deployed correctly (like in the examples), somewhere i got a log no events.xml defined , i hope it

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread [EMAIL PROTECTED]
You need to use code tags when posting code here. Use: page view-id=* | navigation | rule if-outcome=loginsuccess | redirect view-id=/welcome.xhtml/ | /rule | /navigation | /page View the original post :

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
ok i found potential mistake change to code blow -still no effect (have problems posting xml code) - pages page navigation !-- login -- rule if-outcome=loginsuccess redirect view-id=/welcome.xhtml / /rule

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
ok the navigation rule defined in pages.xml take effect! Great! Only 1 final problem how can i inject that component? Thx, Holger View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4005111#4005111 Reply to the post :

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Ah ok :-) Its also in the api if one can read ^^ | @Name(value=org.jboss.seam.core.pages) | and again thx very much, everything is working now :-) Bye, Holger View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4005115#4005115 Reply to the post :

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Oh i got 1 final question, i can get access to the rule i need to know, but i need to get the target viewId redirect view-id=/welcome.xhtml/ How can i archieve this (i am stuck at this point) | rule if-outcome=loginsuccess | redirect view-id=/welcome.xhtml/ | /rule | java code

[jboss-user] [JBoss Seam] - Re: access faces-config.xml in a java bean

2007-01-22 Thread Holger Prause
Hello i noticed a nice feature in the rule element u can specify out tag, that would be just perfect! I only got 1 problem how can i specify a constant string expression to be outjected: like | rule if-outcome=loginsuccess | out name=detailViewId value=/details.xhtml / | render