[JBoss JIRA] Created: (RF-7942) Problems submitting a form created with checkboxes generated by c:forEach
by Josaf�¡ Jr (JIRA)
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
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
15 years, 1 month
[JBoss JIRA] Created: (RF-1291) <a4j:repeat> doesn't work.
by Sergey Halipov (JIRA)
<a4j:repeat> doesn't work.
--------------------------
Key: RF-1291
URL: http://jira.jboss.com/jira/browse/RF-1291
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: jdk 1.6.0_03
jsf 1.2_05
tomcat 6.0.13
Reporter: Sergey Halipov
Priority: Critical
Fix For: 3.2.0
<a4j:repeat> throws strange exception.
My JSP:
<body>
<f:view>
<h:form>
<a4j:repeat value="#{bean.lists}" var="list" id="repeat">
<h:outputText value="#{list.controlsType}" />
</a4j:repeat>
</h:form>
</f:view>
</body>
I have in main bean:
public List<OrderingListDemoBean> getLists() {
return lists;
}
public void setLists(List<OrderingListDemoBean> lists) {
this.lists = lists;
}
In OrderingListDemoBean class:
public String getControlsType() {
return controlsType;
}
public void setControlsType(String controlsType) {
this.controlsType = controlsType;
}
Stack trace:
Nov 6, 2007 4:20:35 PM com.sun.faces.lifecycle.Phase doPhase
SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /pages/q.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@24226649]
Nov 6, 2007 4:20:35 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
org.apache.jasper.el.JspPropertyNotFoundException: /pages/q.jsp(18,4) '#{list.controlsType}' Property 'controlsType' not found on type java.lang.String
at org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:104)
at javax.faces.component.UIOutput.getValue(UIOutput.java:184)
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:284)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:849)
at org.ajax4jsf.renderkit.RendererBase.renderChild(RendererBase.java:286)
at org.ajax4jsf.renderkit.html.RepeatRenderer$1.process(RepeatRenderer.java:53)
at org.ajax4jsf.model.SequenceDataModel.walk(SequenceDataModel.java:101)
at org.ajax4jsf.component.UIDataAdaptor.walk(UIDataAdaptor.java:994)
at org.ajax4jsf.renderkit.html.RepeatRenderer.encodeChildren(RepeatRenderer.java:59)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:825)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:825)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:256)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:187)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:143)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:273)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 1 month
[JBoss JIRA] Created: (RF-6468) outputPanel: more details are required
by Svetlana mukhina (JIRA)
outputPanel: more details are required
---------------------------------------
Key: RF-6468
URL: https://jira.jboss.org/jira/browse/RF-6468
Project: RichFaces
Issue Type: Task
Components: doc
Affects Versions: 3.3.0
Reporter: Svetlana mukhina
Assignee: Svetlana mukhina
Fix For: 3.3.1
User's post "On default non-JSF context isn't saved in a component tree, but is rendered anew every time. To accelerate the processing speed and Ajax response input speed, RichFaces saves non-JSF context in a component tree on default. This option could be canceled by "keepTransient" attribute that cancels transient flag forced setting for child components. This flag setting keeps the current value set by child components."
isn't clear...
what is default comportement ? save or not non-JSF context in a component tree ? and what value of keepTransient corresponds to that ? "
the description should be rewritten to answer user's questions
Errors in component names should be corrected ( "<a4j:outPanel>" instead of "<a4j:outputPanel>".)
--
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
15 years, 2 months