Re: Is there any way to render the "get" method of form?

2010-09-28 Thread Lutz Hühnken
Dear Thiago, now this - the lack of - is something that has been puzzling me in Tapestry 5 for a long time. Why would you say using "GET" is a bad idea? The use case I think of is a search field. You enter a search term, submit the form, get the result. I think using a form with method=get is th

Re: Is there any way to render the "get" method of form?

2010-09-28 Thread Thiago H. de Paula Figueiredo
On Tue, 28 Sep 2010 05:41:50 -0300, Lutz Hühnken wrote: Dear Thiago, Hi, Lutz! now this - the lack of - is something that has been puzzling me in Tapestry 5 for a long time. Why would you say using "GET" is a bad idea? Because all field values end up in the URL. The use case I think

Is there a way to automatically generate validation constraints on standalone fields?

2010-09-28 Thread LLTYK
I'd like for something like to somehow know what validators (length,etc) to use. There seems to be a way to do this with annotations on the bean's fields, but I am using Cayenne which stores constraint information in an xml file, and do not want to duplicate this by adding annotations. So my

Re: Is there any way to render the "get" method of form?

2010-09-28 Thread Manuel Sugawara
On Tue, Sep 28, 2010 at 7:08 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 28 Sep 2010 05:41:50 -0300, Lutz Hühnken < > lh.tapestry.l...@googlemail.com> wrote: > > Dear Thiago, >> > > Hi, Lutz! > > > now this - the lack of - is something that has been >> puzzling me i

radiogroup input validation

2010-09-28 Thread Martin Liesenberg
Hey *, I am currently struggling with an issue concerning multiple radiogroups enclosed in a form and the validation of the input. Basically the user has to rate his skills on several subjects and then click a submit button to proceed. The input is then written to the corresponding variables and s

Re: Is there any way to render the "get" method of form?

2010-09-28 Thread Thiago H. de Paula Figueiredo
On Tue, 28 Sep 2010 12:58:35 -0300, Manuel Sugawara wrote: Oh well, I'm not alone ;-). Particulary because doing this by hand is too much burden and you cannot use any of the components already provided by tapestry. I'm not following you on why you cannot use Tapestry-provided components.

Re: radiogroup input validation

2010-09-28 Thread Thiago H. de Paula Figueiredo
On Tue, 28 Sep 2010 11:38:13 -0300, Martin Liesenberg wrote: Hey *, Hi! My problem is, that if the user forgets to rate his skills on one of the subjects - so one radiogroup does not get any value - it throws a ComponentEventException saying Failure writing parameter 'value' of component.

Re: Is there any way to render the "get" method of form?

2010-09-28 Thread Martin Strand
On Tue, 28 Sep 2010 17:58:35 +0200, Manuel Sugawara wrote: On Tue, Sep 28, 2010 at 7:08 AM, Thiago H. de Paula Figueiredo wrote: On Tue, 28 Sep 2010 05:41:50 -0300, Lutz Hühnken wrote: Of course I am willing to learn. What would be the "Tapestry way" of implementing this? Use For

Re: Is there any way to render the "get" method of form?

2010-09-28 Thread Manuel Sugawara
On Tue, Sep 28, 2010 at 11:24 AM, Martin Strand < do.not.eat.yellow.s...@gmail.com> wrote: > > Of course is a matter of taste but I rather have >> http://localhost/?q=c%E1lculo+diferencial< >> http://localhost/?q=c%C3%A1lculo+diferencial>than >> >> http://localhost:8080/C$00e1lculo$0020diferencial

Re: Is there a way to automatically generate validation constraints on standalone fields?

2010-09-28 Thread Robert Zeigler
I implemented a constraint generator for cayenne mapping files in the t5cayenne project awhile back. http://code.google.com/p/tapestry5-cayenne/source/browse/trunk/tapestry5-cayenne-core/src/main/java/com/googlecode/tapestry5cayenne/services/CayenneConstraintGenerator.java Current trunk is compat

Re: Is there any way to render the "get" method of form?

2010-09-28 Thread Lutz Hühnken
Dear Thiago, thanks for your patient reply and the advice. Of course I realize that I can still implement a search with Tapestry, with redirect-after-post or else, and I have actually done so in the past. But please take a minute and think about these two things: 1. You say, > GET was always mea

Re: Is there any way to render the "get" method of form?

2010-09-28 Thread Martin Strand
On Tue, 28 Sep 2010 18:47:17 +0200, Manuel Sugawara wrote: On Tue, Sep 28, 2010 at 11:24 AM, Martin Strand < do.not.eat.yellow.s...@gmail.com> wrote: Of course is a matter of taste but I rather have http://localhost/?q=c%E1lculo+diferencial< http://localhost/?q=c%C3%A1lculo+diferencial>tha

Re: Is there a way to automatically generate validation constraints on standalone fields?

2010-09-28 Thread Robert Zeigler
Whoops, sorry, read your original e-mail too fast; I see you've already looked at t5-cayenne, and you're interested in standalone fields... I'm not sure there's a way to do what you want, short of doing something like: Which would bootstrap everything for you, and still get you your one field

T5: Zone Update Part of Form?

2010-09-28 Thread Norman Franke
I want to update part of a form based on what they enter in the first field. What's the best way to do this? Apparently, I can't update a zone inside a form that contains form fields because there is no form in the Environment, so rendering fails. Will creating two forms or nested forms wor

Strange beaneditor behaviour

2010-09-28 Thread Anton Mezerny
Hi! I have 2 classes: public static class Parent{ private String name; private String description; private Child child; //getters and setters } public static class Child{ private String childName; private String childDescr; //getters

Re: Strange beaneditor behaviour

2010-09-28 Thread Howard Lewis Ship
Normal behavior. Tapestry builds a model (the BeanModel) to identify the properties to edit. It does this based on the type of the property, which is statically determined. The original type of the parent.child expression was Child. When you changed the child property to be type Object, Tapestry

Re: T5: Zone Update Part of Form?

2010-09-28 Thread Howard Lewis Ship
FormFragment is the way to go, or its cousin, FormInjector. On Tue, Sep 28, 2010 at 12:56 PM, Norman Franke wrote: > I want to update part of a form based on what they enter in the first field. > What's the best way to do this? Apparently, I can't update a zone inside a > form that contains form

Re: T5: Zone Update Part of Form?

2010-09-28 Thread Norman Franke
FormFragement doesn't work either since it doesn't have a Form in the Environment at AJAX render time. I'll look into FormInjector, although I may just end up updating the entire form, although values entered into the form before the update are lost. Norman Franke Answering Service for Di

Re: Strange beaneditor behaviour

2010-09-28 Thread Anton Mezerny
Thank you, Howard, now it's clear. But I have one more question - instead beaneditor, I tried to nest beandisplay component into the parent beaneditor and despite all it works fine even if it gets Object, not Child. Why in this case it works in a different way? 2010/9/28 Howard Lewis Ship > Nor

Re: T5: Zone Update Part of Form?

2010-09-28 Thread Norman Franke
Well, I'm not sure FormInjector will work without a lot of work. I need to pass in the value of the one field and it's not clear how do to that. The activate() method doesn't take any parameters. For anyone else who wants to do this, here is what I did: 1. Make the zone update the ENTIRE for

[T5.2] Javaassist is out ?

2010-09-28 Thread iberck
Hi all ! I have a question.. Is javaassist out in T5.2 ? Thanks in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-Javaassist-is-out-tp2900547p2900547.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: [T5.2] Javaassist is out ?

2010-09-28 Thread Howard Lewis Ship
It'll take a release or two to deprecate and remove the APIs that rely directly on Javassist and get rid of it in the long run. Still there in 5.2. On Tue, Sep 28, 2010 at 3:14 PM, iberck wrote: > > Hi all ! > I have a question.. > Is javaassist out in T5.2 ? > Thanks in advance > -- > View this

Re: T5: Zone Update Part of Form?

2010-09-28 Thread ningdh
Are you using T5.2? I remember T5.2 has supported partial form update. DH - Original Message - From: "Norman Franke" To: "Tapestry users" Sent: Wednesday, September 29, 2010 6:33 AM Subject: Re: T5: Zone Update Part of Form? > Well, I'm not sure FormInjector will work without a lot o

count active users

2010-09-28 Thread asianCoolz
in my hivemodule.xml may i know how to count total number of active users ? which java methods can i call ? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e