[richfaces-issues] [JBoss JIRA] Resolved: (RF-3723) rich:tabPanel doesn't work inside rich:modalPanel

Ilya Shaikovsky (JIRA) jira-events at lists.jboss.org
Tue Jun 17 08:21:33 EDT 2008


     [ http://jira.jboss.com/jira/browse/RF-3723?page=all ]

Ilya Shaikovsky resolved RF-3723.
---------------------------------

    Resolution: Rejected

read the developer guide. Modal panel Section. 

form should be inside the panel in order to perform interaction with server inside.
so there should be no form outside in order to avoid nested ones.

> rich:tabPanel doesn't work inside rich:modalPanel
> -------------------------------------------------
>
>                 Key: RF-3723
>                 URL: http://jira.jboss.com/jira/browse/RF-3723
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>         Environment: JSF 1.2_09-BETA1, IE 7 and FF 3.0RC3
>            Reporter: Juergen Zimmermann
>
> When using rich:tabPanel inside rich:modalPanel the first tab shows up fine. However, when clicking on the 2nd tab an error window pops up: "Form undefined in document". This issue occurrs both with IE 7 and FF 3.0RC3.
> This is the sequence of tags being used:
> 		<h:form id="selectForm"
> 				rendered="#{not empty kv.gefundeneKunden}">
> 			<a4j:region>
> 				<rich:dataTable id="kundenTabelle" value="#{kv.gefundeneKunden}"
> 				                var="kunde"
> 				                cellspacing="5">
> ...
> 					<h:column>
> 						<rich:modalPanel id="detailModalPanel2" width="400" height="300">
> 							<f:facet name="header">
> 								<h:outputFormat id="detailModalTitle2" value="#{i18n['modalPanel.details.title']}">
> 									<f:param id="detailModalTitleId2" value="#{kunde.id}"/>
> 								</h:outputFormat>
> 							</f:facet>
> 							<f:facet name="controls">
> 								<h:panelGroup>
> 									<h:graphicImage id="closeDetailModalPanel2" value="/images/close.png" style="cursor:pointer" alt="#{i18n['modalPanel.button.close']}"/>
> 									<rich:componentControl for="detailModalPanel2" attachTo="closeDetailModalPanel2" operation="hide" event="onclick"/>
> 								</h:panelGroup>
> 							</f:facet>
> 							
> 							<a4j:include viewId="/kundenverwaltung/modalPanel.details2.xhtml" />
> 						</rich:modalPanel>
> 						
> 						<h:outputLink id="openDetailModalPanel2" value="#">
> 							<h:graphicImage id="detailsIcon" url="/images/details2.gif" alt="#{i18n['modalPanel.button.details2']}"/>
> 							<rich:componentControl for="detailModalPanel2" attachTo="openDetailModalPanel2" operation="show" event="onclick"/>
> 						</h:outputLink>
> 					</h:column>
> modalPanel.details2.xhtml looks as follows:
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:rich="http://richfaces.org/rich">
>       
> 	<rich:tabPanel>
> 		<rich:tab>
> 			<f:facet name="label">
> 				<h:panelGroup>
> 					<h:graphicImage value="/images/stammdaten.gif"/>
> 					&#160;
> 					<h:outputText value="#{i18n['panelGridDetails.kunde.stammdaten']}" />
> 				</h:panelGroup>
> 			</f:facet>
> 			<h:panelGrid id="ausgewaehlterKunde"
> 			             columns="2"
> 			             columnClasses="kundendetailsBezeichner, kundendetailsDaten">
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.id']}"/>
> 				<h:outputText value="#{kunde.id}"/>
> 		
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.nachname']}"/>
> 				<h:outputText value="#{kunde.nachname}"/>
> 		
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.vorname']}"/>
> 				<h:outputText value="#{kunde.vorname}"/>
> 		
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.kategorie']}"/>
> 				<h:outputText value="#{kunde.kategorie}"/>
> 					
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.umsatz']}"/>
> 				<h:outputText value="#{kunde.umsatz}">
> 					<f:convertNumber type="currency" currencyCode="EUR"/>
> 				</h:outputText>
> 					
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.seit']}"/>
> 				<h:outputText value="#{kunde.seit}"/>
> 					
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.email']}"/>
> 				<h:outputText value="#{kunde.email}"/>
> 					
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.creditCard']}"
> 				              rendered="#{kunde.creditCard ne 'NONE'}"/>
> 				<h:outputText value="#{kunde.creditCard}"
> 				              rendered="#{kunde.creditCard ne 'NONE'}"/>
> 				
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.creditCardId']}"
> 				              rendered="#{kunde.creditCard ne 'NONE'}"/>
> 				<h:outputText value="#{kunde.creditCardId}"
> 				              rendered="#{kunde.creditCard ne 'NONE'}"/>
> 	
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.art']}"/>
> 				<h:outputText value="#{kunde.art}"/>
> 				
> 				<h:outputText value="#{i18n['panelGridDetails.kunde.rabatt']}"
> 				              rendered="#{kunde.art eq 'F'}"/>
> 				<h:outputText value="#{kunde.rabatt}"
> 				              rendered="#{kunde.art eq 'F'}">
> 					<f:convertNumber type="percent" minFractionDigits="1" maxFractionDigits="2"/>
> 				</h:outputText>
> 			</h:panelGrid>
> 		</rich:tab>
> 	
> 		<rich:tab rendered="#{not empty kunde.dateiname}">
> 			<f:facet name="label">
> 				<h:panelGroup>
> 					<h:graphicImage value="/images/bild.gif"/>
> 					&#160;
> 					<h:outputText value="#{i18n['panelGridDetails.kunde.bild']}" />
> 				</h:panelGroup>
> 			</f:facet>
> 			<h:graphicImage id="bild"
> 			                url="#{initParam.hskaUploadDir}/#{kunde.dateiname}"
> 			                alt="#{i18n['panelGridDetails.kunde.bild.alt']}"/>
> 		</rich:tab>
> 	
> 		<rich:tab rendered="#{not empty kunde.bestellungen}">
> 			<f:facet name="label">
> 				<h:panelGroup>
> 					<h:graphicImage value="/images/bestellungen.gif"/>
> 					&#160;
> 					<h:outputText value="#{i18n['tabelle.kunde.bestellungen']}" />
> 				</h:panelGroup>
> 			</f:facet>
> 			<h:dataTable id="bestellungenTabelle"
> 			             value="#{kunde.bestellungen}"
> 			             var="bestellung">
> 				<rich:column>
> 					<rich:simpleTogglePanel label="#{i18n['bestellung']} #{bestellung.id}"
> 					                        opened="false"
> 					                        width="100%"
> 					                        heigth="100%">
> 						<rich:dataTable id="bestellungTabelle"
> 						                value="#{bestellung.bestellpositionen}"
> 						                var="bp">
> 							<rich:column>
> 								<f:facet name="header">
> 									<h:outputText value="#{i18n['bestellung.anzahl']}"/>
> 								</f:facet>
> 								<h:outputText value="#{bp.anzahl}"/>
> 							</rich:column>
> 							<rich:column>
> 								<f:facet name="header">
> 									<h:outputText value="#{i18n['bestellung.artikel']}"/>
> 								</f:facet>
> 								<h:outputText value="#{bp.artikel.bezeichnung}"/>
> 							</rich:column>
> 						</rich:dataTable>
> 					</rich:simpleTogglePanel>
> 				</rich:column>
> 			</h:dataTable>
> 		</rich:tab>
> 	</rich:tabPanel>
> </html>

-- 
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

        



More information about the richfaces-issues mailing list