Problem with richfaces and primefaces

UI Components for JSF
Post Reply
Nagui
Posts: 1
Joined: 21 Dec 2010, 15:25

21 Dec 2010, 15:35

I have a sample seam portlet developed with rich-faces and i'm trying to use also prime faces.
I have add the prime faces dependency to my project , and in my page i have add the correspond name-spaces xmlns:p="http://primefaces.prime.com.tr/ui" .
and edit <rich:datatable> to use <p:datatable>
below the code of mypage:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:p="http://primefaces.prime.com.tr/ui">

<head>
<c:set var="context"
value="${facesContext.externalContext.requestContextPath}" />
<link href="css/master.css" type="text/css" />
</head>
<body>
<map id="imgmap20091021171714" name="imgmap20091021171714">
<area shape="rect" alt="" title="" coords="277,147,621,273"
href="http://www.vimeo.com/wesleyhales/videos/sort:date"
target="_blank" />
<area shape="rect" alt="" title="" coords="301,12,620,121"
href="http://www.jboss.org/portletbridge/docs" target="_blank" />
<area shape="rect" alt="" title="" coords="2,3,297,141"
href="http://www.jboss.org/portletbridge/" target="_blank" />
</map>
<p><h:graphicImage value="/image/archetypes-star.gif"
usemap="#imgmap20091021171714" style="border:0;" /> Congratulations!,
You have successfuly installed the JBoss Seam portlet using the <a
href="http://www.jboss.org/portletbridge/">JBoss Portlet Bridge</a>.</p>
<br />
<div class="home-container"><img
src="http://www.jboss.org/gatein/headerParag ... banner.jpg" />
<div class="content"><object width="224" height="126">
<param value="true" name="allowfullscreen" />
<param value="always" name="allowscriptaccess" />
<param
value="http://vimeo.com/moogaloop.swf?clip_id= ... llscreen=1"
name="movie" />
<embed width="224" height="126" allowscriptaccess="always"
allowfullscreen="true" type="application/x-shockwave-flash"
src="http://vimeo.com/moogaloop.swf?clip_id= ... autoplay=0" />
</object></div>
</div>
</body>
<h:form>
<div>

<center><a4j:commandButton value="Click Me" reRender="table"
oncomplete="javascript:Richfaces.showModalPanel('panel');" styleClass="button"/></center>
</div>
<rich:modalPanel id="panel" autosized="false" keepVisualState="false"
width="310" height="670">
<f:facet name="header"><h:outputText value="Hello eXo Team!!" /></f:facet>
<f:facet name="controls">
<span style="cursor: pointer"
onclick="javascript:Richfaces.hideModalPanel('panel')">X</span>
</f:facet>
<center><img src="http://h1.exoplatform.org/icons/eXo.gif"/></center>
<spacer height="5"></spacer>
<p:dataTable width="483" id="carList" columnClasses="col"
value="#{employeeList}" var="employee" >
<f:facet name="header">
<h:outputText value="eXo Platform Team Tunisia"/>
</f:facet>
<p:column>
<f:facet name="header">
<h:outputText value="#{messages['firt_name']}"/>
</f:facet>
<h:outputText value="#{employee.firstName}"/>
</p:column>
<p:column>
<f:facet name="header">
<h:outputText value="#{messages['last_name']}"/>
</f:facet>
<h:outputText value="#{employee.lastName}"/>
</p:column>
<f:facet name="footer">
<spacer></spacer>
</f:facet>
</p:dataTable>
<spacer></spacer>
<center><rich:separator height="1" width="100"/></center>
<center> Good Bye <spacer></spacer><h:outputText value="#{identity.username}" /></center>

</rich:modalPanel>
</h:form>
</html>

My portlet is well deployed, but i have no displayed data in my page.
Could you please inform me if i must add some other configuration?
Best regards

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Majestic-12 [Bot] and 7 guests