[richfaces-issues] [JBoss JIRA] Resolved: (RF-7942) Problems submitting a form created with checkboxes generated by c:forEach
Ilya Shaikovsky (JIRA)
jira-events at lists.jboss.org
Tue Oct 6 11:55:00 EDT 2009
[ https://jira.jboss.org/jira/browse/RF-7942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ilya Shaikovsky resolved RF-7942.
---------------------------------
Resolution: Incomplete Description
please add info on JSF lifecycle execution. use phase tracker for that.
> Problems submitting a form created with checkboxes generated by c:forEach
> -------------------------------------------------------------------------
>
> Key: RF-7942
> URL: https://jira.jboss.org/jira/browse/RF-7942
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.3.1
> Environment: Windows XP, Tomcat 6
> Reporter: Josaf�¡ Jr
> Original Estimate: 2 days
> Remaining Estimate: 2 days
>
> Hi everybody,
> I'm trying to build a form with check boxes dynamicly built with labels from a database table.
> I had built the form but when I try to submit it, the action method is not called.
> I'm building the form whit a c:forEach, when I remove the forEach the form is submitted.
> here is the code:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <ui:composition xmlns="http://www.w3.org/1999/xhtml"
> xmlns:ui="http://java.sun.com/jsf/facelets"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:f="http://java.sun.com/jsf/core"
> xmlns:a4j="http://richfaces.org/a4j"
> xmlns:rich="http://richfaces.org/rich"
> xmlns:t="http://myfaces.apache.org/tomahawk"
> xmlns:c="http://java.sun.com/jstl/core">
>
> <a4j:form>
> <rich:toolBar height="26" itemSeparator="grid">
> <rich:toolBarGroup>
> <a4j:commandLink action="#{menu.verPontos}">
> <h:graphicImage value="/images/icons/undo.gif" styleClass="pic"/>
> </a4j:commandLink>
> </rich:toolBarGroup>
> </rich:toolBar>
> <br />
> <rich:panel header="Cadastrar caracterÃÂsticas ambientais do ponto #{pontoFaces.ponto.nome}">
> <t:panelGrid columns="2">
> <h:outputLabel value="Campanha" />
> <t:selectOneMenu value="#{pontoFaces.campanha}" id="campanhas" >
> <f:selectItem itemLabel="Selecione..." itemValue="0" />
> <t:selectItems value="#{campanhaFaces.lc}" var="sb" itemLabel="#{sb.campanha}" itemValue="#{sb.campanhaId}" />
> </t:selectOneMenu>
> </t:panelGrid>
> <t:panelGrid columns="4">
> <c:forEach items="#{grupoAmbientalFaces.list_grupos}" var="grupos">
> <rich:panel header="#{grupos.grupo}">
> <t:selectManyCheckbox id="#{grupos.grupoAmbientalId}" layout="pageDirection">
> <t:selectItems value="#{grupos.caracteristicaAmbientalCollection}" var="ca"
> itemLabel="#{ca.caracteristica}" itemValue="#{ca.caracteristicaAmbientalId}"/>
> </t:selectManyCheckbox>
> </rich:panel>
> </c:forEach>
> </t:panelGrid>
> <t:panelGrid columns="1">
> <a4j:commandButton style="float:left" action="#{pontoFaces.addCaracteristicasAmbientais}" value="Confirmar" />
> </t:panelGrid>
> </rich:panel>
> </a4j:form>
> </ui:composition>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list