Navigation between 2 or more pages
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Navigation between 2 or more pages  XML
Forum Index -> Components
Author Message
alexgiul

Joined: 08/02/2010 00:00:00
Messages: 76
Offline


Hi people,

I'm designing with Icefaces a Web Application and I have a problem with navigation between pages:

in the first page I have a table and a "plus" button;

With the "plus" button I open a new page where I can insert on the database a new value and the come back to the page with List.

When I come back, the list still contains the previous value, how can I force a reload of the page?

Where I'm wrong?

This is the content of faces-navigation.xml
Code:
   <managed-bean>
         <description>Gestione Utenti Bean</description>
         <managed-bean-name>gestioneUtenti</managed-bean-name>
         <managed-bean-class>it.sbw.Amministrazione.view.GestioneUtentiView</managed-bean-class>
         <managed-bean-scope>none</managed-bean-scope>
     </managed-bean>
     
     <managed-bean>
         <description>Gestione Utenti Modify Bean</description>
         <managed-bean-name>gestioneUtentiInsert</managed-bean-name>
         <managed-bean-class>it.sbw.Amministrazione.view.GestioneUtentiModifyView</managed-bean-class>
         <managed-bean-scope>none</managed-bean-scope>
     </managed-bean>
 
 
     <navigation-rule>
         <description>Gestione Utenti</description>
         <from-view-id>/WEB-INF/includes/mainView/Amministrazione/gestioneUtenti.xhtml</from-view-id>
         <navigation-case>
             <from-outcome>gestioneUtentiInsert</from-outcome>
             <to-view-id>/WEB-INF/includes/mainView/Amministrazione/gestioneUtentiModify.xhtml</to-view-id>
         </navigation-case>
     </navigation-rule>
 
     <navigation-rule>
         <description>Gestione Utenti Modify</description>
         <from-view-id>/WEB-INF/includes/mainView/Amministrazione/gestioneUtentiModify.xhtml</from-view-id>
         <navigation-case>
             <from-outcome>back</from-outcome>
             <to-view-id>/WEB-INF/includes/mainView/Amministrazione/gestioneUtenti.xhtml</to-view-id>
         </navigation-case>
     </navigation-rule>
 
ljcollazos

Joined: 09/10/2009 00:00:00
Messages: 32
Offline


you try with <redirect/> in navigation-rule
alexgiul

Joined: 08/02/2010 00:00:00
Messages: 76
Offline


I will try but i don't understand why make a redirect...

I think that problem should solve if it was possible to call an action and a method... in this way I could put some code to refresh the destination page.

What do you think ?


In this way the first problem go away.

For the second, maybe redirect it's good
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team