View Javadoc

1   package org.fckfaces.util;
2   
3   import javax.faces.context.FacesContext;
4   
5   public class Util {
6   	
7   	public static final String FCK_FACES_RESOURCE_PREFIX = "/fckfaces";
8   	
9   	public static final String internalPath(String path) {
10  		return FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath() + FCK_FACES_RESOURCE_PREFIX + path;
11  	}
12  	
13  	public static final String externalPath(String path) {
14  		return FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath() + path;
15  	}
16  }