1/ it seems that yo don't declared your bean LODetailsBackingBean into
faces-config.xml
2/ you don't declared a string outcome viewuserratings for view-id LODetails.jsf



2005/9/13, Matthias Klein <[EMAIL PROTECTED]>:
> I have started to create a simple MyFaces-App and encountered a problem with
> the navigation:
> Pressing a button does not do anything.
> 
> Some code sniplets:
> 
> -------------------------
> Page1:
> 
> <%@ page language="java" %>
> <%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
> <%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
> <f:loadBundle basename="ca.gc.nrc.iit.toml.frontend.bundles.LODetails"
> var="MessageBundle"/>
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
>         <body>
>             <f:view>
>                 <h:form id="LODetailsForm">
> 
>                                 <table>
>                                         <tbody>
>                                                 [..]
> 
>                                                         <td>
>                                 <h:commandButton id="viewuserratings"
> action="#{LODetailsBackingBean.viewUserRatings}"
> value="#{MessageBundle.viewratingsbuttonlabel}" />
>                                                         </td>
>                                                 [..]
>                 </h:form>
>             </f:view>
>         </body>
> </html>
> 
> -----------------------------------
> Excerpt from faces-config:
> 
>         <navigation-rule>
>         <from-view-id>/LODetails.jsf</from-view-id>
>         <navigation-case>
>             <to-view-id>/LORatings.jsf</to-view-id>
>         </navigation-case>
>     </navigation-rule>
> 
> -------------------------------------
> Part of LODetailsBackingBean.java:
> 
> public String viewUserRatings() {
>                 return "viewuserratings";
>         }
> 
> 
> I deployed that on Tomcat 5.5.9 with J2SDK 1.5.0_04 through MyEclipse IDE 4.
> I see the page1 but when I press the button, nothing happens.
> 
> Why?
> 
> Thanks a lot
> 
> Matt
> 
> 


-- 

hicham ABASSI
[EMAIL PROTECTED]

Reply via email to