You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "patrick schwarz (JIRA)" <de...@myfaces.apache.org> on 2008/06/09 20:21:45 UTC

[jira] Created: (MYFACES-1880) t:selectoneradio Could not find component with 1.2.3 upgrade from 1.2.2

t:selectoneradio Could not find component  with 1.2.3 upgrade from 1.2.2
------------------------------------------------------------------------

                 Key: MYFACES-1880
                 URL: https://issues.apache.org/jira/browse/MYFACES-1880
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.2.3
         Environment: Jboss 4.2.2 Richfaces 3.2.1 myfaces 3.2.2 tomahawk 1.1.6
            Reporter: patrick schwarz


I get a Could not find component in the following code:
					
<rich:modalPanel id="popEditLegalEntity"    moveable="true" styleClass="popup" height="150" width="600" >
			<f:facet name="header">
				<h:outputText value="Edit Entity Name" />
			</f:facet>

			<f:facet name="controls">
				<h:graphicImage value="/images/close.png" style="cursor:pointer"
					onclick="Richfaces.hideModalPanel('popEditLegalEntity')" />
			</f:facet>

			<a4j:form id="popEntityForm"  >
                

					<t:panelGrid rowClasses="standardTable_GenericRow" 
						columnClasses="standardTable_Column1,standardTable_Column2,standardTable_Column2"
						columns="3">
						<h:outputLabel  value="Entity Type:" />


						<t:selectOneRadio id="typeSelectOne" forceId="true" layout="spread" value="#{legalEntityBacking.nameHistory.nameTypeCode}"  onclick="changeEntityType(this)" >
							<f:selectItem id="businessSelect" itemLabel="Business" itemValue="business" />							
							<f:selectItem id="personSelect" itemLabel="Person" itemValue="person" />
						</t:selectOneRadio>
                        <t:radio for="typeSelectOne" index="0" >
						    <t:outputLabel style="visibility:hidden;" id="entityNameLabel" forceId="true" for="entityName" value="Name:" />
							<t:inputText  style="visibility:hidden;" size="40" forceId="true"  id="entityName" value="#{legalEntityBacking.busEntityName}"  />
						</t:radio>	
	
									                        
  

						
                        <t:inputHidden id="entityType" forceId="true" value="#{legalEntityBacking.nameHistory.nameTypeCode}"/>
                        <t:inputHidden id="nameid" value="#{legalEntityBacking.nameHistory.nameId}"/>
                        <h:inputHidden id="effectiveDate" value="#{legalEntityBacking.nameHistory.effectiveDate}"/>
                        <h:inputHidden id="endDate" value="#{legalEntityBacking.nameHistory.endDate}"/>
    				</t:panelGrid>
				
				<t:panelGrid columns="3">
					<a4j:commandButton value="Save" reRender="contactEdit"
					    oncomplete="javascript:Richfaces.hideModalPanel('popEditLegalEntity')"
					    actionListener="#{legalEntityBacking.saveEntity}"  />					
					<a4j:commandButton value="Cancel" onclick="javascript:Richfaces.hideModalPanel('popEditLegalEntity')" />
				</t:panelGrid>
				
			</a4j:form>
		</rich:modalPanel>

with the following: 

Exception while calling encodeEnd on component : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /jsp/contacts/contacts.jsp][Class: org.ajax4jsf.component.html.Include,Id: j_id_jsp_1258494757_204][Class: org.richfaces.component.html.HtmlModalPanel,Id: popEditLegalEntity][Class: org.ajax4jsf.component.html.AjaxForm,Id: popEntityFormj_id_1][Class: org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id: j_id_jsp_1450444019_4j_id_1]}

Caused by:
java.lang.IllegalStateException - Could not find component 'typeSelectOne' (calling findComponent on component 'j_id_jsp_1258494757_204:popEntityFormj_id_1:j_id_jsp_1450444019_9j_id_1')

I believe this is similiar to:
http://issues.apache.org/jira/browse/TOMAHAWK-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12358398

although I have tried the workaround with no success. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.