Author: scabanovich
Date: 2007-07-24 07:50:09 -0400 (Tue, 24 Jul 2007)
New Revision: 2620
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/FacesConfigLoader.java
Log:
EXIN-86 model gets access to dtds from wtp
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/FacesConfigLoader.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/FacesConfigLoader.java 2007-07-24
11:49:12 UTC (rev 2619)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/FacesConfigLoader.java 2007-07-24
11:50:09 UTC (rev 2620)
@@ -37,11 +37,12 @@
String body = XModelObjectLoaderUtil.getTempBody(object);
+ int resolution =
EntityXMLRegistration.getInstance().resolve(object.getModelEntity());
String[] errors =
// (entity.equals(ENT_FACESCONFIG_12))
// ? new SAXValidator().getXMLErrors(new StringReader(body))
// : XMLUtil.getXMLErrors(new StringReader(body));
- XMLUtil.getXMLErrors(new StringReader(body), false, false);
+ XMLUtil.getXMLErrors(new StringReader(body), resolution == EntityXMLRegistration.DTD,
resolution == EntityXMLRegistration.SCHEMA);
boolean hasErrors = (errors != null && errors.length > 0);
if(hasErrors) {
object.setAttributeValue("isIncorrect", "yes");
Show replies by date