Translate

Showing posts with label PrimeFaces. Show all posts
Showing posts with label PrimeFaces. Show all posts

August 6, 2013

Themeroller to PrimeFaces theme by OSnode

PrimeFaces themes from jQuery Themerolle

This month, OSnode has deployed a new system to allow PrimeFaces users to easilly create new PrimeFaces themes from jQuery Themeroller. See the the PrimeFaces blog for post from Optimus Prime and you can use it from  this address.

Howto

  1. Go to themeroller page.
  2. On the left side, you get all settings you can change and it is rendered on the center and the right side.
  3. When, you are happy with how it looks, click dowload.
  4. Remember where you save the zip file then go to the OSnode converter.
  5. Give a name to your theme and select the zip file downloaded in step 3.
  6. Click the "Create theme jar" button.
  7. After some computing time, you will get the possibility to download the jar file.
  8. Include the jar in your project (see http://primefaces.org/themes.html for details)
  9. That's it! Use your custom theme in your favorite PrimeFaces application.

For more information

You can contact us at OSnode.

July 30, 2013

Auto build PrimeFaces from source with Bamboo

How to use the latest version of PrimeFaces in your projects

Building from source in Bamboo

Background

A little while back, we wanted to use the latest version of Primefaces where some bugs where fixed but the built library was not available so we decided to build from source. It is quite easy to do manually but we wanted to automate the process. So what we did was to add a build in our CI: Bamboo. We have an internal maven repository (Nexus).
We want to be able to add PrimeFaces SNAPSHOTS to our projects

Original setup

We have Nexus installed and it is defined in our settings.xml so we can access our own builds. In addition, we have a Bamboo server (this setup should work with other CI).

Requirement

On the Bamboo server, you need to have perl installed and added as an executable in the Bamboo admin

The build

  1. You need to define the repository. For now, it is http://primefaces.googlecode.com/svn/primefaces/trunk/ I add it as a shared repository in Bamboo but it is not necessary. You can define it in the plan.
  2. Add the checkout task - no special configuration here
  3. Here is the trick: we need to replace the distributionManagement tag to deploy it to our own repository. This is done with perl. Create a "Command" task with the perl executable and add these argiment: -pi -e 'BEGIN{undef $/;} s/.*<\/distributionManagement>/your-distributionManagement-tag-goes-here/smg' pom.xml
    Note that all forward slash "/" needs to be escaped with a backslah i.e: http:\/\/www.repo.com\/path\/to\/repo
  4. Next, you create a maven task that runs clean deploy

That's it

Now you are ready to go with the newest PrimeFaces available in your projects. As a side note, I added a trigger to run this plan every week only if new code has been commited.

For more information

You can contact us at OSnode.