myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Czupryna (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (MYFACES-869) radio does no function within dataList
Date Wed, 23 Nov 2005 15:58:36 GMT
radio does no function within dataList
--------------------------------------

         Key: MYFACES-869
         URL: http://issues.apache.org/jira/browse/MYFACES-869
     Project: MyFaces
        Type: Bug
  Components: Tomahawk  
    Versions: 1.1.1, Nightly    
 Environment: 11/22/05 Nightly build
Tomcat 5.5
Fedora 4
    Reporter: Tony Czupryna


I'm trying to render radio buttons inside a <dataList> using the <radio> tag.
This is so I can display more complex content for each radio button. I get an IllegalStateException
because the original selectOneRadio cannot be located:

<%@ page session="true" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>

<html>
<head><title>TonyTesterNoRadio</title></head>
<body>
<f:view>
  <h:form>
  <t:selectOneRadio id="test" forceId="true" layout="spread">
    <f:selectItems value="#{tonyTester.selectItems}"/>
  </t:selectOneRadio>
  <h:panelGrid columns="#{tonyTester.numberOfHelpers}">
    <t:dataList var="helper" value="#{tonyTester.helpers}" rowIndexVar="index">
      <h:panelGroup>
        <h:panelGrid columns="1">
          <t:radio for="test" index="#{index}"/>
          <h:outputText value="#{helper.key}"/>
          <h:outputText value="#{helper.descriptionLine1}"/>
          <h:outputText value="#{helper.descriptionLine2}"/>
        </h:panelGrid>
      </h:panelGroup>
    </t:dataList>
  </h:panelGrid>
  </h:form>
</f:view>
</body>
</html>

Exception:

javax.servlet.ServletException: Could not find component 'test' (calling findComponent on
component '_id0:_id3_0:_id6')
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
	org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:123)

root cause

java.lang.IllegalStateException: Could not find component 'test' (calling findComponent on
component '_id0:_id3_0:_id6')
	org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer.renderRadio(HtmlRadioRenderer.java:96)
	org.apache.myfaces.renderkit.html.ext.HtmlRadioRenderer.encodeEnd(HtmlRadioRenderer.java:56)
	javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:506)
	org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444)
	org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:215)
	org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:97)
	javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:506)
	org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444)
	org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:421)
	org.apache.myfaces.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:74)
	javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:506)
	org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:444)
	org.apache.myfaces.renderkit.RendererUtils.renderChildren(RendererUtils.java:421)
	org.apache.myfaces.custom.datalist.HtmlListRenderer.encodeChildren(HtmlListRenderer.java:144)
	javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:494)
	org.apache.myfaces.renderkit.RendererUtils.renderChild(RendererUtils.java:438)
	org.apache.myfaces.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:215)
	org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:97)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message