<p:panel header="Panel" toggleable="true"> not working

UI Components for JSF
Post Reply
bhakav
Posts: 22
Joined: 17 Oct 2010, 22:50

17 Oct 2010, 23:36

HI ............

I am making a prototype for one of our products using Primefaces ....
I am using JSF2.0/Spring /JPA hibernate
primefaces-2.2.M1.jar

My Eclipse as IDE ? Is that an issue ?

It looks impressive but I am having issues with simple things

It is not working what I expect it to work ..Using very simple examples from Showcase .Infact I copied the same code still having issues.Is it specific to jsf 2.0 ?

Web.xml is configured properly ..
Was able to view p:editor etc components so it is configured properly ..

<context-param>
<param-name>com.sun.faces.allowTextChildren</param-name>
<param-value>true</param-value>
</context-param>


Example

<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" xml:lang="en" lang="en"
xmlns:p="http://primefaces.prime.com.tr/ui"
xmlns:c="http://java.sun.com/jsp/jstl/core" >
<h:head>
</h:head>
<h:body>

This works
<p:editor />


<p:growl id="growl" showDetail="true"/>

<h3>Simple Panel</h3>
Does not show the options
<p:panel header="F.C. Barcelona" footer="Visca el Barca!" toggleable="true" closable="true">
<h:outputText value="FC Barcelona is ..." />
</p:panel>

<h3>Advanced Panel</h3>
<p:panel id="pnl" header="About Barca" toggleable="true" closable="true" toggleSpeed="500" >

</p:panel>
</h:body>
</html>

Issues
1) <p:panel header="Panel" toggleable="true"> cannot see the closable or toggle
2) Used Dashboard with Panel same issue .
3) I want to use DataGrid and display simple checkboxes and radio button and when user hits the next /previous etc button to navigate it should perform some action on server side .How do u do that ?
4) I was first using apache trinidad and simple example work but I need the once mentioned above to work as they are very basic requirement .,

Not sure if there any archetypes I can use for jsf2/spring archetype

The way I configured by project was using coreservlet basic-jsf example

thanks for the help in advance

B

zpc007
Posts: 3
Joined: 18 Nov 2010, 10:33

24 Nov 2010, 05:20

add a skin to this page.just like <link type="text/css" rel="stylesheet" href="******"/>

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

24 Nov 2010, 11:59

You don't need;

Code: Select all

<context-param>
<param-name>com.sun.faces.allowTextChildren</param-name>
<param-value>true</param-value>
</context-param>
or Resource Servlet with PrimeFaces 2.2+.

almircampos
Posts: 2
Joined: 27 Dec 2010, 18:01

30 Dec 2010, 18:10

Hi, this did not work, for me :cry: ... Any ideas?

Thanks in advance.

Almir Campos.
Sao Paulo, Brazil.

User avatar
bumble.bee
Posts: 723
Joined: 29 Sep 2010, 21:39
Location: United States

03 Jan 2011, 17:38

Try playing with the showcase. It can be downloaded from hudson (source zip):

http://www.primefaces.org/hudson/job/Ex ... owcase/ws/

Or PrimeFaces Maven Repository (binary):

http://repository.prime.com.tr/org/prim ... -showcase/

Or Subversion repository (source):

http://code.google.com/p/primefaces/source/checkout

bhakav
Posts: 22
Joined: 17 Oct 2010, 22:50

19 Feb 2011, 08:29

Thanks .. It works

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests