Re: Dynamic form fields

2017-12-16 Thread Nathan Quirynen
Thanks, This works perfect for my use case :) Also when I want to trigger it by something else than a checkbox, for example a change in a select, I can probably add a hidden checkbox that I can check with javascript to toggle the FormFragment. Greetings, Nathan Op 14/12/2017 om 14:16 schre

Re: Dynamic form fields

2017-12-14 Thread Norman Franke
That definitely works. You can also just add all the fields you’ll need to the form and then use JavaScript to hide fields that you don’t need at the time. This method is super simple, although you may need to validate some fields on the server side. Or set the values to null when you hide them.

Re: Dynamic form fields

2017-12-14 Thread Thiago H. de Paula Figueiredo
On Thu, Dec 14, 2017 at 8:47 AM, Nathan Quirynen < nat...@pensionarchitects.be> wrote: > Hi, > Hi! > This subject has been spoken about more in the past, but I still have not > found a good solution to this and still struggle with this. > > What is the best practice (Tapestry 5.4+) to add field

Re: Dynamic form fields

2017-12-14 Thread Bob Harner
Nathan, Have you tried the FormFragment component? See https://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/corelib/components/FormFragment.html On Dec 14, 2017 5:47 AM, "Nathan Quirynen" wrote: Hi, This subject has been spoken about more in the past, but I still have not found a goo

Dynamic form fields

2017-12-14 Thread Nathan Quirynen
Hi, This subject has been spoken about more in the past, but I still have not found a good solution to this and still struggle with this. What is the best practice (Tapestry 5.4+) to add fields to a form "dynamically". In my use case I just want to add some fields to a form when a checkbox (

Dynamic Form Validation

2011-11-23 Thread George Christman
field.setAccessible(true); if(field.get(pr) == null) { form.recordError(message + fieldName); } } -- View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-Form-Validation-tp5017269p5017269.ht

Re: Tapestry 4.1.6 Dynamic Form

2011-10-03 Thread alanhay99
l fire an event for the first element in the list i.e. setSelected is always called for that element at benefits[0]. Can anyone offer any advice on this? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-4-1-6-Dynamic-Form-tp4864970p4864975.html Sent from th

Tapestry 4.1.6 Dynamic Form

2011-10-03 Thread alanhay99
-- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-4-1-6-Dynamic-Form-tp4864970p4864970.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Dynamic form

2010-09-18 Thread Markus Feindler
Why do I need a notification? the value encoder handles that stuff. Did you try to submit the form after removing SubmitNotifier? Try it out. Because all fields are bound to the same property you need a way to be notified when a field value is set. The SubmitNotifier component is the way to do it

Re: Dynamic form

2010-09-18 Thread Thiago H. de Paula Figueiredo
On Fri, 17 Sep 2010 19:03:01 -0300, Антон Мезерный wrote: And what is the best way to create such a dynamic form? Provide DataTypeAnalyzer to define new BeanModel types (which are just names) and edition and viewing blocks for them. This way, BeanEditForm, BeanEditor, Grid, and

Re: Dynamic form

2010-09-18 Thread Thiago H. de Paula Figueiredo
On Sat, 18 Sep 2010 11:45:19 -0300, Josh Canfield wrote: Is there any way to get component instance by its name even if this component is not used in any other page? The short answer is no. I don't remember the long answer off hand... The long answer is also no :). A component instance

Re: Dynamic form

2010-09-18 Thread Igor Drobiazko
Did you try to submit the form after removing SubmitNotifier? Try it out. Because all fields are bound to the same property you need a way to be notified when a field value is set. The SubmitNotifier component is the way to do it. Check out the documentation: http://tapestry.apache.org/tapestry5.1

Re: Dynamic form

2010-09-18 Thread Josh Canfield
t;>>> >>>> http://code.google.com/p/tapestrybook/source/browse/trunk/tapestry-dynamic-forms/src/main/webapp/ViewReport.tml >>>> >>>> http://code.google.com/p/tapestrybook/source/browse/trunk/tapestry-dynamic-forms/src/main/java/de/t5book/pages/ViewReport.jav

Re: Dynamic form

2010-09-18 Thread Anton Mezerny
c/main/webapp/ViewReport.tml >>> >>> http://code.google.com/p/tapestrybook/source/browse/trunk/tapestry-dynamic-forms/src/main/java/de/t5book/pages/ViewReport.java >>> >>> On Sat, Sep 18, 2010 at 12:03 AM, Антон Мезерный>> >wrote: >>> >>>

Re: Dynamic form

2010-09-18 Thread Anton Mezerny
owse/trunk/tapestry-dynamic-forms/src/main/java/de/t5book/pages/ViewReport.java >> >> On Sat, Sep 18, 2010 at 12:03 AM, Антон Мезерный> >wrote: >> >> >> >>> And what is the best way to create such a dynamic form? Using Delegate >>> compone

Re: Dynamic form

2010-09-18 Thread Markus Feindler
/tapestry-dynamic-forms/src/main/webapp/ViewReport.tml http://code.google.com/p/tapestrybook/source/browse/trunk/tapestry-dynamic-forms/src/main/java/de/t5book/pages/ViewReport.java On Sat, Sep 18, 2010 at 12:03 AM, Антон Мезерныйwrote: And what is the best way to create such a dynamic form

Re: Dynamic form

2010-09-18 Thread Igor Drobiazko
/browse/trunk/tapestry-dynamic-forms/src/main/java/de/t5book/pages/ViewReport.java On Sat, Sep 18, 2010 at 12:03 AM, Антон Мезерный wrote: > And what is the best way to create such a dynamic form? Using Delegate > component or modifying beaneditform? Or maybe there is better approach? >

Re: Dynamic form

2010-09-17 Thread Антон Мезерный
And what is the best way to create such a dynamic form? Using Delegate component or modifying beaneditform? Or maybe there is better approach? I tried to write it using Delegate and I have a problem - I can't get component instance from ComponentSource - Exception: org.apache.tape

Re: Dynamic form

2010-09-16 Thread Thiago H. de Paula Figueiredo
On Thu, 16 Sep 2010 19:09:05 -0300, Антон Мезерный wrote: Hello, Hi! I am trying to make a dynamic form component, something like beaneditform, but based not on bean field type, but on some property in database. I strongly advise you to read the BeanEditor sources and do something

Dynamic form

2010-09-16 Thread Антон Мезерный
Hello, I am new to Tapestry, and I am working on a project that uses it. I use version 5.1.0.7 but I can change it to newer one. I am trying to make a dynamic form component, something like beaneditform, but based not on bean field type, but on some property in database. So I have a number of

Re: Dynamic form

2009-09-29 Thread Kevin White
On 9/29/2009 5:20 AM, Alfie Kirkpatrick wrote: I made a hashmap backed beaneditform for something similar, so the property conduit just read/writes from the hashmap and the model comes from somewhere else (this was a dynamic search form in my case where the model was a JCR repo). Happy to share

RE: Dynamic form

2009-09-29 Thread Alfie Kirkpatrick
. -Original Message- From: Kevin White [mailto:kwh...@kevbo.org] Sent: 28 September 2009 20:41 To: users@tapestry.apache.org Subject: Re: Dynamic form On 9/28/2009 3:24 PM, Kalle Korhonen wrote: > I would look into using a BeanEditForm and making a BeanModel with all > synthetic prop

Re: Dynamic form

2009-09-28 Thread Kevin White
On 9/28/2009 3:24 PM, Kalle Korhonen wrote: I would look into using a BeanEditForm and making a BeanModel with all synthetic properties based on your XML configuration. If you have a definite set of parameter types and you can map each into some field type, then you should be able to do it. See h

Re: Dynamic form

2009-09-28 Thread Thiago H. de Paula Figueiredo
Em Mon, 28 Sep 2009 16:08:52 -0300, Kevin White escreveu: Hello all... Hi! The only way I can see to do something like that is by using a Grid, where each parameter would be a row in the grid. I can't use a BeanEdit, because I can't define the Bean itself at compile time...it comes

Re: Dynamic form

2009-09-28 Thread Christian Riedel
Hi Kevin, I think you could also use AjaxFormLoop: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/AjaxFormLoop.html Cheers, Christian Kalle Korhonen schrieb: I would look into using a BeanEditForm and making a BeanModel with all synthetic prope

Re: Dynamic form

2009-09-28 Thread Kalle Korhonen
I would look into using a BeanEditForm and making a BeanModel with all synthetic properties based on your XML configuration. If you have a definite set of parameter types and you can map each into some field type, then you should be able to do it. See http://tapestry.apache.org/tapestry5/guide/bean

Dynamic form

2009-09-28 Thread Kevin White
Hello all... I've been using Tapestry for a while...first 3, then 4. My main app is still in 4, but I'm willing to move it to 5...so...we can talk about T5, and apologies for what might be basic T5 questions, because I haven't delved too deeply into T5 yet. I keep waiting for a book. :) I

Re: T5: dynamic form fields - again

2009-05-01 Thread ryanskow
Just curious if any additional screencasts, tutorials, etc have been published on this subject. The screencast posted in 2008 mentioned that there would be more to follow regarding Ajax and dynamic forms ("very dynamic form support" to be exact): http://tapestryjava.blogspot.com/2008/1

Re: T5: dynamic form fields - again

2008-01-25 Thread Davor Hrg
oh, not that I've explored it... but good source for that kind of problem is in the framework it self. Look at the source of the Form component and you'll find how are form fields mapped and generated. Also take a look at the BeanEditor and BeanEditForm for a more high level custom forms... Dav

T5: dynamic form fields - again

2008-01-25 Thread Chris Lewis
Hello all, I know this has been talked about here and there but I still haven't seen a clear example or explanation of how to implement it. In general, my question is how can I process input from dynamically generated fields (like textfields generated by a loop)? Specifically, it's a bit more

Best way to get mutiple selection results back from a selection in a dynamic form

2007-07-07 Thread Ajit Raj
Hi,I have a page that contains a state selection, and a city(list) selection for that each state selected. The city list could be updatedif the state selection is changed. So, I use @Persist("client") to store the"state" lists. User could choose multiple "cities" in the selection and the city li

EventListener in a dynamic form

2007-01-15 Thread Stephane Decleire
Is there a way to link EventListeners to a dynamic form ? I mean is there a way to declare an EventListener without knowing the id(s) of the component(s) it shoulb be linked to ? In a dynamic form (generally build with a loop with the For component), the developer doesn't always know th

Re: two buttons in dynamic form

2006-09-05 Thread Jani Lindqvist
I made 2 Submit components with different listener methods and pass the selected element with selected / tag attributes and it works fine. On 9/5/06, Jani Lindqvist <[EMAIL PROTECTED]> wrote: Hi All, I have a page that needs to list edit/save forms for elements contained in a collection. For

two buttons in dynamic form

2006-09-05 Thread Jani Lindqvist
Hi All, I have a page that needs to list edit/save forms for elements contained in a collection. For every element we need to give save button and a button to mark it as complete, that contains a bit more logic. before the completion button was added to the page i just put everything in one form