Problems with link to external css with popupPanel and extendedDataTable
quajo May 2, 2012 7:53 AMHi, for a long time I have been using a extendedDatatable inside popuppanel in a project and I have never had problems.. But now I´m trying richfaces 4.2.1 because I want to migrate my old project from 4.0.0 to 4.2.1, and for that I have created a small application showing the extendeddatatable inside a popuppanel used in richfaces showcase examples. The problem is when I link to a external css from Ext library that I used in my old project, the popuppanel is not shown, and If I remove the popuppanel and I put only the extendeddatatable is shown but the selection listener doesn´t work. The line that causes the error is: <link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css" /> and my code is the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<h:head>
<script type="text/javascript"
src="http://extjs.cachefly.net/builds/ext-cdn-771.js"></script>
<link rel="stylesheet" type="text/css"
href="http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css" />
</h:head>
<h:body>
<h:form id="form">
<rich:popupPanel id="popup" modal="true" resizeable="true" onmaskclick="#{rich:component('popup')}.hide()" show="true" domElementAttachment="form">
<f:facet name="header">
<h:outputText value="Simple popup panel" />
</f:facet>
<f:facet name="controls">
<h:outputLink value="#" onclick="#{rich:component('popup')}.hide(); return false;">
A
</h:outputLink>
</f:facet>
<rich:extendedDataTable value="#{extTableSelectionBean.inventoryItems}" var="car"
selection="#{extTableSelectionBean.selection}" id="table" frozenColumns="2"
style="height:300px; width:310px; ">
<a4j:ajax execute="@form" event="selectionchange" listener="#{extTableSelectionBean.selectionListener}"
render=":res"/>
<f:facet name="header">
<h:outputText value="Cars marketplace"/>
</f:facet>
<rich:column>
<f:facet name="header">
<h:outputText value="Vendor"/>
</f:facet>
<h:outputText value="#{car.vendor}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="Model"/>
</f:facet>
<h:outputText value="pepo"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="Price"/>
</f:facet>
<h:outputText value="#{car.price}"/>
</rich:column>
</rich:extendedDataTable>
</rich:popupPanel>
</h:form>
</h:body>
</ui:composition>
Any Help? Thanks a lot.