2 Replies Latest reply on Mar 16, 2011 12:02 PM by David Wagner

    xml comment causing error

    David Wagner Newbie

      <h:form id="skinForm2">

                  <rich:panel >

                      <f:facet name="header" position="center">

                          <h:outputText value="Presentation theme preferences" />


                      <h:panelGrid border="0" columns="2">




                            <h:selectOneRadio value="#{skinBean.skin}"

                                border="0" layout="pageDirection" title="Changing skin" style="font-size: 8; font-family: comic"



                                 <f:selectItems value="#{skinBean.skinSetItems}" />



                            <h:commandButton value="Apply" />





                           <rich:accordion height="100" width="200">

                                 <rich:accordionItem header="Item 1" style="font-family: monospace; font-size: 12;" >

                               Changing skin in runtime



                              <rich:accordionItem header="Item 2" style="font-family: monospace; font-size: 12;">

                               This is a result of the modification "blueSky" skin



                              <!--  harmless? -->








      When I add the harmless comment above the page loads ok first time, but when form submits I get an IllegalArgumentException.

      SEVERE: Servlet.service() for servlet Faces Servlet threw exception


          at org.richfaces.component.AbstractTogglePanel.getChildName(AbstractTogglePanel.java:502)

          at org.richfaces.component.AbstractTogglePanel.isActiveItem(AbstractTogglePanel.java:493)

          at org.richfaces.component.AbstractTogglePanel.processDecodes(AbstractTogglePanel.java:213)



      Removing the comment, the problem goes away.

      Is that supposed to happen?


      Using RichFaces 4.0-CR1.