[richfaces-issues] [JBoss JIRA] Updated: (RF-3722) rich:tree inside modalPanel produces Javascript error
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Mon Feb 9 18:18:44 EST 2009
[ https://jira.jboss.org/jira/browse/RF-3722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Belaevski updated RF-3722:
-------------------------------
Fix Version/s: 3.3.1
(was: Future)
Assignee: Pavel Yaschenko (was: Nick Belaevski)
> rich:tree inside modalPanel produces Javascript error
> -----------------------------------------------------
>
> Key: RF-3722
> URL: https://jira.jboss.org/jira/browse/RF-3722
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.1
> Environment: JSF 1.2_09-BETA1, IE 7
> Reporter: Juergen Zimmermann
> Assignee: Pavel Yaschenko
> Fix For: 3.3.1
>
> Attachments: tree.html
>
>
> Using rich:tree inside rich:modalPanel yields a Javascript error with IE 7. Using FF 3.0RC3 it works fine.
> I'll attach the generated html code.
> The tag hierarchy is as follows:
> ...
> <h:column>
> <rich:modalPanel id="detailModalPanel" width="400" height="300">
> <f:facet name="header">
> <h:outputFormat id="detailModalTitle" value="#{i18n['modalPanel.details.title']}">
> <f:param id="detailModalTitleId" value="#{kunde.id}"/>
> </h:outputFormat>
> </f:facet>
> <f:facet name="controls">
> <h:panelGroup>
> <h:graphicImage id="closeDetailModalPanel" value="/images/close.png" style="cursor:pointer" alt="#{i18n['modalPanel.button.close']}"/>
> <rich:componentControl for="detailModalPanel" attachTo="closeDetailModalPanel" operation="hide" event="onclick"/>
> </h:panelGroup>
> </f:facet>
>
> <a4j:include viewId="/kundenverwaltung/modalPanel.details.xhtml" />
> </rich:modalPanel>
>
> <h:outputLink id="openDetailModalPanel" value="#">
> <h:graphicImage id="detailModalIcon" url="/images/details.gif" alt="#{i18n['modalPanel.button.details']}"/>
> <rich:componentControl for="detailModalPanel" attachTo="openDetailModalPanel" operation="show" event="onclick"/>
> </h:outputLink>
> </h:column>
> The included modalPanel.details.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:panelBar>
> <rich:panelBarItem>
> <f:facet name="label">
> <h:panelGroup>
> <h:graphicImage value="/images/stammdaten.gif"/>
>  
> <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:panelBarItem>
>
> <rich:panelBarItem rendered="#{not empty kunde.dateiname}">
> <f:facet name="label">
> <h:panelGroup>
> <h:graphicImage value="/images/bild.gif"/>
>  
> <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:panelBarItem>
>
> <rich:panelBarItem rendered="#{not empty kunde.bestellungen}">
> <f:facet name="label">
> <h:panelGroup>
> <h:graphicImage value="/images/bestellungen.gif"/>
>  
> <h:outputText value="#{i18n['tabelle.kunde.bestellungen']}" />
> </h:panelGroup>
> </f:facet>
> <h:form id="bestellungenForm">
> <rich:tree id="bestellungenTree">
> <f:facet name="icon">
>  
> </f:facet>
> <f:facet name="iconLeaf">
>  
> </f:facet>
> <rich:treeNodesAdaptor id="bestellungenAdapter"
> nodes="#{kunde.bestellungen}"
> var="best">
> <rich:treeNode id="bestellungKnoten">
> <h:outputText value="#{i18n['bestellung']} #{i18n['nr']} #{best.id}"/>
> </rich:treeNode>
>
> <rich:treeNodesAdaptor id="bestposAdapter"
> nodes="#{best.bestellpositionen}"
> var="bp">
> <rich:treeNode id="bestposKnoten">
> <h:outputText value="#{bp.anzahl} #{bp.artikel.bezeichnung}"/>
> </rich:treeNode>
> </rich:treeNodesAdaptor>
> </rich:treeNodesAdaptor>
> </rich:tree>
> </h:form>
> </rich:panelBarItem>
> </rich:panelBar>
> </html>
--
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