| nl.hippo.cocoon.forms.binding.XmlAsStringBinding
XmlAsStringBinding | public class XmlAsStringBinding extends AbstractCustomBinding (Code) | | Custom binding for form elements containing XML as a string.
It is assumed that the XML in the string includes the current context node
as top level element.
author: Niels van Kampenhout |
Method Summary | |
protected void | doLoad(Widget widget, JXPathContext context) Serializes the node as String on load. | protected void | doSave(Widget widget, JXPathContext context) Parses and imports the XML String on save. |
doLoad | protected void doLoad(Widget widget, JXPathContext context) throws BindingException(Code) | | Serializes the node as String on load.
throws: BindingException - See Also: org.apache.cocoon.forms.binding.AbstractCustomBinding.doLoad(org.apache.cocoon.forms.formmodel.Widgetorg.apache.commons.jxpath.JXPathContext) |
doSave | protected void doSave(Widget widget, JXPathContext context) throws BindingException, SAXException, IOException(Code) | | Parses and imports the XML String on save.
throws: IOException - throws: SAXException - See Also: org.apache.cocoon.forms.binding.AbstractCustomBinding.doSave(org.apache.cocoon.forms.formmodel.Widgetorg.apache.commons.jxpath.JXPathContext) |
|
|