Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

Form elements in Zones

shymon

2008-11-12

Replies: Find Java Web Hosting

Author LoginPost Reply

I have written an ajax component: kind of tree which shows current node and
all its parent ind child nodes (but only for current node - nodes which are
not relatives of current are not visible). Component consists of zone which
is reloaded after user clicks on any of visible nodes.

I want this component to be a form element (it implements Field interface).
How can I pass current node id?
My idea was that html which is returned after ajax request (zone reload)
contains not only nodes to show but also hidden form field containing id.

Doesn't work. I get exception: "No object of type
org.apache.tapestry5.services.FormSupport is available from the
Environment".

It seems other people also face this problem:
http://www.nabble.com/-T5--Ajax-And-Zones---Missing-FormSupprt-td20373776.html
http://www.nabble.com/-T5--Ajax-And-Zones---Missing-FormSupprt-td20373776.html

If form elements are not allowed in zones, what is the solution?

PS: missing hidden form element in core tapestry library is bad idea. But
that was discussed in other threads.


--
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.