Author: scabanovich
Date: 2009-06-10 08:16:29 -0400 (Wed, 10 Jun 2009)
New Revision: 15851
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld/TaglibMapping.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4213
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld/TaglibMapping.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld/TaglibMapping.java 2009-06-10
12:16:10 UTC (rev 15850)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld/TaglibMapping.java 2009-06-10
12:16:29 UTC (rev 15851)
@@ -14,6 +14,7 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
+import java.util.StringTokenizer;
import org.eclipse.core.resources.IResource;
@@ -91,16 +92,22 @@
if(webxml == null || webRoot == null) return;
XModelObject cp = WebAppHelper.findWebAppContextParam(webxml,
"facelets.LIBRARIES");
if(cp == null) return;
- String path = cp.getAttributeValue("param-value");
- if(path == null || path.length() == 0) return;
- String modelPath = path;
- if(modelPath.startsWith("/")) modelPath = modelPath.substring(1);
- XModelObject facelet = webRoot.getChildByPath(modelPath);
- if(facelet == null) return;
- String uri = facelet.getAttributeValue("uri");
- if(uri != null) {
- resolvedURIs.put(path, uri);
- taglibObjects.put(uri, facelet);
+ String paths = cp.getAttributeValue("param-value");
+ if(paths == null || paths.length() == 0) return;
+ StringTokenizer st = new StringTokenizer(paths, ";,");
+ while(st.hasMoreTokens()) {
+ String path = st.nextToken();
+ String modelPath = path;
+ if (modelPath.startsWith("/"))
+ modelPath = modelPath.substring(1);
+ XModelObject facelet = webRoot.getChildByPath(modelPath);
+ if (facelet == null)
+ continue;
+ String uri = facelet.getAttributeValue("uri");
+ if (uri != null) {
+ resolvedURIs.put(path, uri);
+ taglibObjects.put(uri, facelet);
+ }
}
}