eu.planets_project.webui
Class PlanetsFaceletsResourceResolver

java.lang.Object
  extended by com.sun.facelets.impl.DefaultResourceResolver
      extended by eu.planets_project.webui.PlanetsFaceletsResourceResolver
All Implemented Interfaces:
com.sun.facelets.impl.ResourceResolver

public class PlanetsFaceletsResourceResolver
extends com.sun.facelets.impl.DefaultResourceResolver

Allows templates to be shared, as using this resolver will patch the resources from this package to a specific local URI /planets-webui-shared/* Add this to your web.xml to use the Planets resource resolver from Facelets. facelets.RESOURCE_RESOLVER eu.planets_project.webui.PlanetsFaceletsResourceResolver

Author:
Andy Jackson

Constructor Summary
PlanetsFaceletsResourceResolver()
           
 
Method Summary
 String getClassPrefix()
           
 String getViewIdPrefix()
           
 URL resolveUrl(String path)
           
 
Methods inherited from class com.sun.facelets.impl.DefaultResourceResolver
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlanetsFaceletsResourceResolver

public PlanetsFaceletsResourceResolver()
Method Detail

getViewIdPrefix

public String getViewIdPrefix()
Returns:
path prefix for shared web ui bits

getClassPrefix

public String getClassPrefix()
Returns:
Where on the classpath to find the results.

resolveUrl

public URL resolveUrl(String path)
Specified by:
resolveUrl in interface com.sun.facelets.impl.ResourceResolver
Overrides:
resolveUrl in class com.sun.facelets.impl.DefaultResourceResolver
Parameters:
path - The path to resolve
Returns:
the resolved URL for passed path


Copyright © 2013 Open Planets Foundation. All Rights Reserved.