Skinning the schedule component

UI Components for JSF
Post Reply
balorian
Posts: 1
Joined: 17 Jun 2010, 12:34

17 Jun 2010, 12:54

Hi, I'm new to PrimeFaces (switching from IceFaces for JSF 2 support) and have never used the ThemeRoller before, and I'm having a bit of difficulties getting skinning to work.

I have downloaded a theme from the gallery called blitzer, receiving a zip called "jquery-ui-1.8.2.custom.zip". I unzip this into my project under webapp/resources/styles/jquery-ui-1.8.2.blitzer. I add the css file and the 2 scripts onto my page like so:

Code: Select all

<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
...
<link type="text/css" rel="stylesheet" href="/Vermont/faces/javax.faces.resource/jquery-ui-1.8.2.blitzer/css/blitzer/jquery-ui-1.8.2.custom.css?ln=styles" />
<script type="text/javascript" src="../resources/styles/jquery-ui-1.8.2.blitzer/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../resources/styles/jquery-ui-1.8.2.blitzer/js/jquery-ui-1.8.2.custom.min.js"></script></head>
...
</head>
<body>
...
			<p:schedule value="#{scheduleController.eventModel}" editable="true"
				widgetVar="myschedule"
				eventSelectListener="#{scheduleController.onEventSelect}"
				dateSelectListener="#{scheduleController.onDateSelect}"
				eventMoveListener="#{scheduleController.onEventMove}"
				eventResizeListener="#{scheduleController.onEventResize}"
				onEventMoveUpdate="messages" onEventResizeUpdate="messages"
				theme="blitzer">
With the scripts linked the scheduler doesn't render at all, with the scripts commented the scheduler renders with the default theme. All the files have correct paths as I am able to access them through the URLs listed above.

Is there any step-by-step tutorial I could follow for using PrimeFaces and ThemeRoller for skinning? Is there some simple configuration thing here that I'm missing? Should the theme attibute in the scheduler have a different value? Thanks in advance!

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

21 Jun 2010, 19:48

Please see the new Theme Gallery;

http://www.primefaces.org/themes.html

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 70 guests