You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by shymon <sh...@poczta.onet.pl> on 2008/11/12 18:16:28 UTC

Form elements in Zones

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.


-- 
View this message in context: http://www.nabble.com/Form-elements-in-Zones-tp20464921p20464921.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Form elements in Zones

Posted by shymon <sh...@poczta.onet.pl>.


Thiago H. de Paula Figueiredo wrote:
> 
> 
>> Of course, I was not precise.
>> The problem is that I can't place form in zone. Only one form element  
>> should be ajax reloaded - not whole form.
> 
> If there's not a JIRA filed for it, we should file one, because this  
> limitation can be quite annoying sometimes.
> 
> 

I have created issue:
https://issues.apache.org/jira/browse/TAP5-351

-- 
View this message in context: http://www.nabble.com/Form-elements-in-Zones-tp20464921p20467502.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Form elements in Zones

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 12 Nov 2008 15:26:49 -0300, shymon <sh...@poczta.onet.pl>  
escreveu:

> Of course, I was not precise.
> The problem is that I can't place form in zone. Only one form element  
> should be ajax reloaded - not whole form.

If there's not a JIRA filed for it, we should file one, because this  
limitation can be quite annoying sometimes.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Form elements in Zones

Posted by shymon <sh...@poczta.onet.pl>.


Thiago H. de Paula Figueiredo wrote:
> 
> 
>> If form elements are not allowed in zones, what is the solution?
> 
> This is not strictly true. Form elements are allowed in zones as long as  
> they're inside a form that is completely enclosed in a Zone.
> 
> 

Of course, I was not precise.
The problem is that I can't place form in zone. Only one form element should
be ajax reloaded - not whole form.

Any help? ...


-- 
View this message in context: http://www.nabble.com/Form-elements-in-Zones-tp20464921p20466370.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Form elements in Zones

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Wed, 12 Nov 2008 14:16:28 -0300, shymon <sh...@poczta.onet.pl>  
escreveu:

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

This is not strictly true. Form elements are allowed in zones as long as  
they're inside a form that is completely enclosed in a Zone.

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org