Update of /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/dd
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28084/modules/ejb/src/xdoclet/modules/ejb/dd
Modified Files:
EjbRefTagsHandler.java
Log Message:
using the mandatoryParamNotFound Method of XDocletTagSupport for proper i18n
and cleaner code
Index: EjbRefTagsHandler.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/dd/EjbRefTagsHandler.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** EjbRefTagsHandler.java 8 Feb 2005 21:46:21 -0000 1.18
--- EjbRefTagsHandler.java 9 Feb 2005 09:09:55 -0000 1.19
***************
*** 85,101 ****
storeReferringClassId();
- /*
- * Checking for null value to avoid NullPointerException when
calling this.findEjb()
- * Author: Edson Tirelli - mailto:tirelli at post.com
- */
String ejbNameAttribute = tag.getAttributeValue("ejb-name");
! if (ejbNameAttribute == null) {
! log.error("Missing value for mandatory attribute
\"ejb-name\" in tag @ejb.ejb-ref!");
! log.error("Current tag: @ejb.ejb-ref ref-name=\"" +
! tag.getAttributeValue("ref-name") + "\" ejb-name=\"" +
! tag.getAttributeValue("ejb-name") + "\" view-type=\""
+
! tag.getAttributeValue("view-type") + "\"");
! throw new XDocletException("Missing value for mandatory
attribute \"ejb-name\" in tag @ejb.ejb-ref!");
}
--- 85,92 ----
storeReferringClassId();
String ejbNameAttribute = tag.getAttributeValue("ejb-name");
! if (ejbNameAttribute == null || ejbNameAttribute.length() <
1) {
! mandatoryParamNotFound(tag.getDoc(), "ejb-name",
"ejb.ejb-ref");
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel