直接写return "success";  然后在配置文件faces-config里添加<from-outcome>success</from-outcome>
                              <to-view-id>/index.jsp</to-view-id> 就可以了

解决方案 »

  1.   

    直接在管理bean中事件方法中return "success";  
    然后在配置文件faces-config里添加 
    <from-outcome>success </from-outcome> 
         <to-view-id>/index.jsp </to-view-id> 就可以了
      

  2.   

    那个方法我知道,但是想在一个void的function中,进行页面转换, 有什么办法吗?
      

  3.   

    写一个类,返回一个String,然后在页面的事件中调用
      

  4.   

    从页面发送的请求会经过java bean吗……