Hi Arvhatte, thank for your very detailed explanation. It is really helpful for me to
understand the Seam framework.
However, I still couldn't figure out why I click Back, pages always act with back
beans. When I run Seam samples, then click page Back, it seems it run on client, and pages
seems don't have any action with server. Following is my partial code snippets. I
really appreciate any help. Thanks in advance.
@Name("profileLister")
| @Statefull
| @Scope(ScopeType.EVENT)
| public class ProfileListerBean implements ProfileLister {
|
| @Out(required=false, scope=ScopeType.PAGE)
| private List<ContactAddress> myContactAddressList;
|
| @Factory("myContactAddressList")
| public String loadContactAddress() {
| myContactAddressList = em.createNamedQuery("contactAddress.*:personId")
| .setParameter("personId", user.getId()).getResultList();
| return "prfl-myContactInfo";
| }
| }
|
|
| pages.xhtml
| <page view-id="*">
| <navigation>
| <rule if-outcome="prfl-myContactInfo">
| <redirect view-id="/profile/my/contact_info.xhtml"/>
| </rule>
| ....
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126402#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...