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

    xml comment causing error

    dwagmuse

      <h:form id="skinForm2">

                  <rich:panel >

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

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

                      </f:facet>

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

       

                       <h:panelGroup>

       

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

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

                                onchange="submit()">

       

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

       

                            </h:selectOneRadio>

                            <h:commandButton value="Apply" />

       

                       </h:panelGroup>

       

                       <h:panelGroup>

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

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

                               Changing skin in runtime

                                 </rich:accordionItem>

       

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

                               This is a result of the modification "blueSky" skin

                              </rich:accordionItem>

       

                              <!--  harmless? -->

                        </rich:accordion>

       

                       </h:panelGroup>

                   </h:panelGrid>

              </rich:panel>

      </h:form>

       

      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

      java.lang.IllegalArgumentException

          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.