In Tapestry 4:
- implement IBinding, eg. by extending AbstractBinding (you may use XPath (see javax.xml.xpath) to select XML nodes)
- implement BindingFactory, eg. by extending AbstractBindingFactory
- register your binding using the tapestry.bindings.BindingFactories hivemind configuration point

The build-in bindings are very good examples.
If you have a more concrete question....

Br,
Norbi

----- Original Message ----- From: "lee shinwell" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, June 22, 2005 1:23 AM
Subject: How to implement custom binding expression?


Like OGNL expression, I need a new XML binding expression.
This XML expression can read property from XML document object and
update property to XML document object, no JavaBean object needed.
For example:
<input jwcid=" [EMAIL PROTECTED]" value="xml:doc.name <http://doc.name/>"/>
<input jwcid="[EMAIL PROTECTED] " value="xml:doc.age"/>

doc is a XML document object:
<person>
<name>Tim Robbin</name>
<age>28</age>
</person>



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

Reply via email to