3 Replies Latest reply on May 11, 2007 11:35 AM by ilya_shaikovsky

    messages not getting displayed correctly with HtmlSimpleTogg

    ccrouch

      I'm trying to use two HtmlSimpleTogglePanel components to divide up the elements of a form into different sections. The immediate problem that I'm having is that validation failure messages are not being displayed correctly, for instance sometimes the messages will show up correctly in both panels sometimes only in the first and sometimes only in the second.

      Here is my scenario. I have two HtmlSimpleTogglePanel components, each one holding roughly 8 UIInput components of various types. In each of the HtmlSimpleTogglePanel components there are 2 UIInput's which are set as required.

      After a fresh page is first rendered, I'm seeing the following:

      a) If I immediately submit the form, I get the expected four validation failure messages, two in each panel.
      b) If I close the first panel and submit the form, I don't get any validation failure messages in the second panel. After the submission if I open up the first panel I can see it has two failure messages.
      c) If I close the second panel and submit the form, I don't get any validation failure messages in the first panel. After the submission if I open up the second panel I can see it has two failure messages.


      Any ideas what could be going on here?



      Here is the setup of the HtmlSimpleTogglePanel's

      panel1.setOpened(true);
       panel1.setAjaxSingle(true);
       panel1.setLabel("Panel1");
       panel1.setSwitchType("client");


      The widgets inside the panels are regular JSF UIInput components. I use regular HtmlMessage'd for displaying the error messages per component. I'm using Seam's UIDecorate component to provide formatting around the component in the event of an error.

      Setup:
      JSF: jsf-1.2_04
      SEAM: 1.1.6.GA
      Facelets: 1.1.12
      JBoss: 4.0.5.GA
      RichFaces: 3.0.1-20070508.013219-45
      Ajax4jsf: 1.1.1-20070508.013219-82
      Browser: Mozilla Firefox 2.0.0.3

      Thanks