0 Replies Latest reply on Aug 18, 2008 7:45 AM by lee shaotu

    Look for help:Modal Panel with Ajax

    lee shaotu Newbie

      I want to build a "login panel" by using Modal Panel in the Homepage,and it contains a inputText a inputSecret a commandButton and two h:messge.
      After loing successed ,say hello in the Homepage like this:

      <h:outputText value="#{user.sayHello}"
      rendered="#{not empty user.userName}"/>
      <h:outputText value="#{user.userName}" />
      <h:outputText value="#{user.memberType}"
      rendered="#{not empty user.userName}"/>

      //the value of member could be Mr. or Mrs.

      So,now I want to add Ajax effect to it:
      If login successed,hide the login panel and say hello without page refreshing.
      If failed,show causes in the login panel without any other action.

      Does anybody help? Any help will be highly appreciated.