voyent
no navigation else everything fine  XML
Forum Index -> Portals & Portlets
Author Message
manjinder

Joined: 01/Oct/2007 00:00:00
Messages: 13
Offline


hi all
navigation is not working in my application please help me.
here is my faces-config file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">

<faces-config>
<managed-bean>
<managed-bean-name>Login</managed-bean-name>
<managed-bean-class>
com.apnatek.logindemo.Login
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/MyJsp.jsp</from-view-id>
<navigation-case>
<from-action>#{Login.checkuser}
</from-action>


<to-view-id>/success.jsp</to-view-id>

<redirect />
</navigation-case>


<navigation-case>
<from-action>#{Login.checkuser}
</from-action>
<from-outcome>invalid</from-outcome>
<to-view-id>/invalid.jsp</to-view-id>
</navigation-case>

<navigation-case><description>wd</description><from-outcome>welcome</from-outcome>


<to-view-id>/test.jsp</to-view-id>
<redirect></redirect>
</navigation-case></navigation-rule>
<navigation-rule>
<from-view-id>/success.jsp</from-view-id>
</navigation-rule>
<navigation-rule>
<from-view-id>/invalid.jsp</from-view-id>
<navigation-case>
<from-action>retry</from-action>
<to-view-id>/MyJsp.jsp</to-view-id>
</navigation-case>
</navigation-rule>

</faces-config>

-------------------------------------------------------------------------------------
<?xml version="1.0"?>



<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>




<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>

<context-param>
<param-name>javax.faces.application.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.jspx</param-value>
</context-param>



<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup> 1 </load-on-startup>
</servlet>




<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jspx</url-pattern>
</servlet-mapping>

<session-config>
<session-timeout>30</session-timeout>
</session-config>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>

</web-app>
-------------------------------------------------------------------------------------
using system.out.println i can print msg in console but no navigation in my application.plese help me
thanks

Manjinder Aulakh
+919971409890
India
[Email]
xchander

Joined: 07/Aug/2007 00:00:00
Messages: 9
Offline


What ru using in your index.jsp forward

<jsp:forward page="/abc.iface" >

What ever you give here...same should be the <from-view-id > in the navigation rule.

deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


From the configuration, this doesn't look like a portal/portlet issue. And I don't see ICEfaces configured either.

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
manjinder

Joined: 01/Oct/2007 00:00:00
Messages: 13
Offline


I did same as mr.xchander told
its workiong now
Thanks for helping me

Manjinder Aulakh
+919971409890
India
[Email]
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team