is there a PrimeFaces widget like this jQuery UI widget?

UI Components for JSF
Post Reply
rhume
Posts: 21
Joined: 07 Feb 2010, 07:30

30 Mar 2011, 15:49

Hi --

It looks like PrimeFaces is partially based on jQuery UI. I need a widget like the "Choice 1, Choice 2, Choice 3" row of buttons shown on this jQuery UI page (in the top left under "buttons):

http://jqueryui.com/themeroller/

Is there a way to get a widget like this in PrimeFaces?

I'm currently using PrimeFaces 2.2.

Thanks!
rob

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

30 Mar 2011, 16:47

Hi,

Not yet, but there is an issue ticket.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

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

30 Mar 2011, 17:35

Probably it will be in 3.0.M2.

User avatar
maple_shaft
Posts: 58
Joined: 10 Mar 2011, 19:49

30 Mar 2011, 20:48

There is a way that you can simulate this behavior, I do this for my app.

Unpackage the JAR files for the skins you want and put them in seperate folders under WEB-INF, I create a folder 'themes' under WEB-INF.

In web.xml set the Primefaces theme context param as so:

Code: Select all

  <context-param>
    <param-name>primefaces.THEME</param-name>
    <param-value>none</param-value>
  </context-param>
In your page create a dynamic link to the CSS stylesheet:

Code: Select all

<link type="text/css" rel="stylesheet" href="#{request.contextPath}/themes/#{beanSession.theme}/theme.css" />
The EL expression above in the link determines which folder to look for the CSS file. I default the folder to redmond personally from a properties file.

A themeroller would be nice but this works as well.
First Primefaces Application: PrimeFaces 2.2.1, Mojarra 2.0.4, Tomcat 7.08 - JBoss 6

Second Primefaces Application: Primefaces 3.0 FINAL (<-- AWESOME!), Mojarra 2.1.2, Spring 3 with Spring Security and Spring EL Resolver, Tomcat 6

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 59 guests