2 Replies Latest reply on Dec 3, 2008 9:07 AM by Kashif Nazar

    validation !!!!

    Kashif Nazar Newbie


      selectone menu=<h:selectOneMenu
      i have a pick list i want to apply custom validation according to a selectone menu

      i have to validate the list the logic is...

      if 1st option is selected from select one menu then user can select zero or more option from pick list

      if 2nd or 3rd option is selected then user must select one option only from pick list;


      how can i do that ?

      inshort validation either custom or using required attribute is server side. can java script be used set the required attribute value to true or false??
      thanks in advance

      kashif nazar