DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13559>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13559

XMLForm: private declaration of class vars in Form severely limits extending with 
subclasses





------- Additional Comments From [EMAIL PROTECTED]  2002-10-14 01:27 -------
patch to expose jxcontent_; (Also change to error message when can't set value;
it confused me, so maybe will others.)

--- Form.java.orig      Sun Oct 13 21:06:06 2002
+++ Form.java   Sun Oct 13 21:17:01 2002
@@ -115,7 +115,7 @@
   public static String  FORM_VIEW_PARAM = "cocoon-xmlform-view";

   public static String VIOLATION_MESSAGE_DATA_FORMAT_ERROR
-    = "Invalid data format";
+    = "Invalid data format or invalid reference path.";

   /**
    * an XMLForm is only usable when it has an id and an underlying model
@@ -171,7 +171,14 @@
     return violations_;
   }

-
+  /**
+   *  Expose the JXPathContext for the sake of subclasses
+   */
+  protected JXPathContext getJXContext()
+  {
+     return jxcontext_;
+  }
+
   /**
    *
    * This method allows custom validations to be added

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to