[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


  | 
  |   
  | 
  |   
  | 

if i put that code in side i got the error message "Parsed Expression of 
unexpected type java.lang.String"

Thx,


Holger


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005123
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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  

How can i archieve this (i am stuck at this point)


  | 
  | 
  | 
  | 


java code


  | Page page = pages.getPage("/index.xhtml");
  | Navigation nav = page.getDefaultNavigation();
  | for(Rule tmpRule: nav.getRules()) {
  | log.info("tmp rule: "+tmpRule.getOutcomeValue());
  | for(Output tmpOutput: tmpRule.getOutputs()) {
  | log.info(tmpOutput.getValue());
  | }
  | }
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005118
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bb&op=viewtopic&p=4005115#4005115

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005115
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-01-22 Thread [EMAIL PROTECTED]
Pages.instance(), or @In("org.jboss.seam.core.pages"). It does not have a short 
name yet.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005113
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bb&op=viewtopic&p=4005111#4005111

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005111
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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

rule if-outcome="loginsuccess"
redirect view-id="/welcome.xhtml" /
/rule
/navigation
/page
/pages

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005074
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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:


  | 
  | 
  | 
  | 
  | 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005083
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 has 
nothing to do with the pages.xml.

Thx again , in worst case i still can parse faces-config.xml 

Bye,

Holger

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005094
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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=bb&op=viewtopic&p=4005095#4005095

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005095
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005097
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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:


http://jboss.com/products/seam/pages-1.1.dtd";>












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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005064
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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)





loginsuccess
/welcome.xhtml




rule in pages.xml (not working)











when i deploy the application i get the log "reading pages.xml" so i am 
prettysure i should take effect, but i dont.

Any clue what i am doing wrong?



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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005063
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-01-22 Thread Holger Prause
i read the manual and looked at the example in seam jboss-seam-1.1.0.GA

one thing i noticed:

the navigation rules are defined in a file called navigation.xml, the fine 
grained stuff in pages.xml and the rest in faces-config.xml

This makes sense to me.

Now.
As i understood gavin i should move that rules to pages.xml (have to redefine 
them course the syntax in pages.xml is different to "traditional" navigation 
rules)
Then i can access the via the build in pages component

But all i need is to access the navigation rules defined in navigation.xml.
Will that build in component allow me this ?

Thx very much,

holger


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005058
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004874#4004874

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004874
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004868#4004868

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004868
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[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 be a pain to migrate them)

2) Is there a short example with pages.xml and how to acces them with the build 
in component your mentionend  ?


Thank your very much,

Holger

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004844
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


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

2007-01-21 Thread [EMAIL PROTECTED]
Try using navigation rules in pages.xml. Then you can access them via the Pages 
built-in component.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004604
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user