2 Replies Latest reply on Nov 15, 2006 6:57 AM by ivan.indrawan

    Server 500 error after modifying the JSF portlet tutorial

      I am learning to develop JSF based portlet.

      I took the JSF tutorial template for a ground of my application. First thing as usual, I develop the login menu.

      I have managed to show the portlet in the window. But when clicking the login button, it generates HTTP500 error with thousands of error. I simplify the functions and come up with the following

      This is a function of the Phoenix class (alias userbean)
      public class Phoenix {

      private String username_;
      private String password_;
      ...
      public String verify()
      {
      if (this.username_.equalsIgnoreCase(this.password_))
      return "false";
      else
      return "verified";

      }
      ..}

      and this is the faces-config.xml :


      <managed-bean>
      PhoenixBean
      <managed-bean-name>phoenix</managed-bean-name> <managed-bean-class>com.MSD.NeoGenesis.phoenix.Phoenix</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>

      <navigation-rule>
      <from-view-id>/WEB-INF/jsp/phoenix.jsp </from-view-id>
      <navigation-case>
      <from-outcome>false</from-outcome>
      <to-view-id>
      /WEB-INF/jsp/phoenix.jsp
      </to-view-id>
      </navigation-case>
      <navigation-case>
      <from-outcome>verified</from-outcome>
      <to-view-id>
      /WEB-INF/jsp/phoenixverified.jsp
      </to-view-id>
      </navigation-case></navigation-rule>

      and this is the snapshot of the jsp button

      <f:view>
      <h:form>
      ....
      <h:commandButton action="#{phoenix.verify}" value="Login"></h:commandButton>
      </h:form>
      </f:view>

      Please let me know whether I miss anything. this would help me a lot in kicking off the rest of the project. Thx beforehand