2 Replies Latest reply on Aug 29, 2007 5:59 AM by ilya_shaikovsky

    I dont know what happen???

    zerovirus23

      Hi guys.... I'm new in this topic and I trying to do a simple commandButton that use ajax4jsf for rendering a panelGrid, but it doesn't work....

      My page is:

      <f:view>
      <a4f:page>
      <h:form>
      <h:panelGrid id="frameGeneral">
      <h:panelGrid id="OpcOperacion" columns="2">
      <h:commandButton value="Venta">
      <a4f:support reRender="panelVenta,
      panelReporte" immediate="true" event="onclick"
      actionListener="#{initBean.activarVentas}"/>
      </h:commandButton>
      <h:commandButton value="Reporte">
      <a4f:support reRender="panelVenta,
      panelReporte" immediate="true" event="onclick"
      actionListener="#{initBean.activarReportes}"/>
      </h:commandButton>
      </h:panelGrid>
      <h:panelGrid id="frameInterno">
      <h:panelGrid id="panelVenta"
      rendered="#{initBean.renderVentas}">
      <h:commandButton value="VENTAS"
      id="botonVentas"></h:commandButton>
      </h:panelGrid>
      <h:panelGrid id="panelReporte"
      rendered="#{initBean.renderReportes}">
      <h:commandButton value="REPORTES"
      id="botonReporte"></h:commandButton>
      </h:panelGrid>
      </h:panelGrid>
      </h:panelGrid>
      </h:form>
      </a4f:page>
      </f:view>

      the initBean.activarReportes and initBean.activarVentas actionListeners only change a boolean attribute (renderVentas = true)

      When I run the page and I do click in the buttons, they show a popup with the message: "Request Error Status: 500 Internal Server Error. Message: undefined" and throws an exception : org.apache.jasper.JasperException: javax.servlet.jsp.JspException: Duplicate component ID '_id0' found in view.

      I dont know what is bad.... Can Anybody HELP ME?????