Is there a <to-action> navigation tag?

Hi All,

I have a situation with JSF, I dont know what is the right approach, its like this ;

After executing a backing bean method on the submit of a button, I want it to return a action string . Then I want to map the string to another method of another bean

say like this :

class MyPageBean1{

String doSomething(){

//do some procesing with the input data

return"callFetchNewData";//This string is mapped to another method of another pageBean

}

}

class MyPageBean2{

String fetchNewData(){

//fetches data from backend to display in page 2

return"showpage2"

}

}

<navigation-case>

<from-outcome>callFetchNewData</from-outcome>

<to-action>#{pageBean2.fetchNewData}</to-action>

</navigation-case>

But it seems there is no <to-action> tag, if not how do I acheive this?

please help.

Thanks in advance

[1529 byte] By [ajay77a] at [2007-10-2 21:18:24]
# 1
You want to do something like on page load action?
amitteva at 2007-7-14 0:27:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Thanks for replying,

Well, not exactly page load, its like chaining of methods,

like pagebean1.method1() executes,

returns a string.

the string is mapped to another method of another bean in faces-config

controller executes pagebean2.method

I hope I am clear?

ajay77a at 2007-7-14 0:27:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Why don't you go to page 2 and there access a property of bean one and fetch the data you want?
pringia at 2007-7-14 0:27:20 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...