summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Trimble2013-01-16 17:48:44 (EST)
committerIan Trimble2013-01-16 17:48:44 (EST)
commit475422d96bacb6ece1f8cddec5d5c952b197a495 (patch)
treee30e024bd3ed8a5a32463037d1f0603133b9e6de
parente9a523a9b0e0cc389ddebccfd84f3e99a08be23e (diff)
downloadwebtools.jsf-475422d96bacb6ece1f8cddec5d5c952b197a495.zip
webtools.jsf-475422d96bacb6ece1f8cddec5d5c952b197a495.tar.gz
webtools.jsf-475422d96bacb6ece1f8cddec5d5c952b197a495.tar.bz2
Bug 398251
[facelets] Namespace will fail to load when there are duplicate tags in the taglib.xml
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletNamespace.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletNamespace.java b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletNamespace.java
index dcb211b..8fd948a 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletNamespace.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.facelet.core/src/org/eclipse/jst/jsf/facelet/core/internal/tagmodel/FaceletNamespace.java
@@ -28,6 +28,7 @@ public class FaceletNamespace extends
* The namespace that this tag library is associated with
*/
private final FaceletNamespaceData _data;
+ private boolean isInitialized;
/**
* @param record
@@ -54,7 +55,9 @@ public class FaceletNamespace extends
@Override
public Collection<? extends ITagElement> getViewElements()
{
- return _data.getAllViewElements().values();
+ Collection<ITagElement> values = _data.getAllViewElements().values();
+ this.isInitialized = true;
+ return values;
}
@Override
@@ -78,7 +81,7 @@ public class FaceletNamespace extends
@Override
public boolean isInitialized()
{
- return _data.isInitialized();
+ return this.isInitialized || _data.isInitialized();
}
/**