You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jens Pfau <je...@gmail.com> on 2008/03/12 20:44:08 UTC

[T5] Adding form fields on the fly

Hello,

I would like to have a table with form fields where each row stands for the
values of one data set. Furthermore, I would like to allow the user to add
new rows on the fly, preferably using client-side actions without reloading
the entire page. Is there any best practice to accomplish that? There is a
FormInjector but unfortunately no documentation on this component and I
don't know how far a Grid is of support to this task. I appreciate any help.

Regards
Jens

Re: [T5] Adding form fields on the fly

Posted by Jens Pfau <je...@gmail.com>.
Hey Kris,

thanks for the help. I took this way but now I am wondering how I could link
those values extracted from the request object to their respective form
fields. This would be useful to get validation errors rendered by tapestry
for example. Is there any way, for example to add those fields to the page
onPrepareSubmit and then get them filled by tapestry afterwards?

Jens




kristian.marinkovic wrote:
> 
> you can add new form fields on the client-side using javascript
> on the server-side you then have to parse/obtain/process  the 
> data manually from the Request service you can inject almost
> everywhere. you'll have to think about a smart way to name the
> form fields so you can find them in the Request.
> 
> as a next step you could refine this with some components...
> 
> hope this helps
> 
> g,
> kris
> 
> 
> 
> 
> Jens Pfau <je...@gmail.com> 
> 19.03.2008 15:17
> Bitte antworten an
> "Tapestry users" <us...@tapestry.apache.org>
> 
> 
> An
> users@tapestry.apache.org
> Kopie
> 
> Thema
> Re: [T5] Adding form fields on the fly
> 
> 
> 
> 
> 
> 
> 
> 
> Nobody has an idea?
> 
> 
> Jens Pfau wrote:
>> 
>> Hello,
>> 
>> I would like to have a table with form fields where each row stands for
>> the
>> values of one data set. Furthermore, I would like to allow the user to 
> add
>> new rows on the fly, preferably using client-side actions without
>> reloading
>> the entire page. Is there any best practice to accomplish that? There is 
> a
>> FormInjector but unfortunately no documentation on this component and I
>> don't know how far a Grid is of support to this task. I appreciate any
>> help.
>> 
>> Regards
>> Jens
>> 
>> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/-T5--Adding-form-fields-on-the-fly-tp16013318p16144180.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
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-T5--Adding-form-fields-on-the-fly-tp16013318p16177177.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: [T5] Adding form fields on the fly

Posted by Kristian Marinkovic <kr...@porsche.co.at>.
you can add new form fields on the client-side using javascript
on the server-side you then have to parse/obtain/process  the 
data manually from the Request service you can inject almost
everywhere. you'll have to think about a smart way to name the
form fields so you can find them in the Request.

as a next step you could refine this with some components...

hope this helps

g,
kris




Jens Pfau <je...@gmail.com> 
19.03.2008 15:17
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>


An
users@tapestry.apache.org
Kopie

Thema
Re: [T5] Adding form fields on the fly








Nobody has an idea?


Jens Pfau wrote:
> 
> Hello,
> 
> I would like to have a table with form fields where each row stands for
> the
> values of one data set. Furthermore, I would like to allow the user to 
add
> new rows on the fly, preferably using client-side actions without
> reloading
> the entire page. Is there any best practice to accomplish that? There is 
a
> FormInjector but unfortunately no documentation on this component and I
> don't know how far a Grid is of support to this task. I appreciate any
> help.
> 
> Regards
> Jens
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--Adding-form-fields-on-the-fly-tp16013318p16144180.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: [T5] Adding form fields on the fly

Posted by Jens Pfau <je...@gmail.com>.
Nobody has an idea?


Jens Pfau wrote:
> 
> Hello,
> 
> I would like to have a table with form fields where each row stands for
> the
> values of one data set. Furthermore, I would like to allow the user to add
> new rows on the fly, preferably using client-side actions without
> reloading
> the entire page. Is there any best practice to accomplish that? There is a
> FormInjector but unfortunately no documentation on this component and I
> don't know how far a Grid is of support to this task. I appreciate any
> help.
> 
> Regards
> Jens
> 
> 

-- 
View this message in context: http://www.nabble.com/-T5--Adding-form-fields-on-the-fly-tp16013318p16144180.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