Maximum number of form elements

2012-06-05 Thread Stephan Windmüller
Hello, in our application we have a single page with a form containing a dynamic number of select fields. It is used as a see all selections in one place page an can get quite large (more than 1,000 select fields displayed in a table structure). We now encountered difficulties when the number of

[t5.3.1] TextField not handling a single space

2012-06-05 Thread Muhammad Gelbana
Greetings to the developers of the lovely framework, tapestry5 I wrote a form with a single text field, this field is bound to a string object. When I enter a single or multiple spaces in this text field and submit the form, the obtained values is always null. I checked the supplies values in an

Re: Confusion about tapestry singleton page

2012-06-05 Thread Muhammad Gelbana
I don't think this may help but tapestry modifies your pages\components at the run time so it's all handled behind the scenes. Although I can't explain the results of your test here ! On Tue, Jun 5, 2012 at 4:50 AM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Mon, 04 Jun 2012

Re: Maximum number of form elements

2012-06-05 Thread trsvax
It's most likely your web server. Most were patched recently to limit the number of parameters passed in a url or form to avoid a possible denial of service attack. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Maximum-number-of-form-elements-tp5713623p5713627.html Sent

Re: Confusion about tapestry singleton page

2012-06-05 Thread Thiago H de Paula Figueiredo
On Tue, 05 Jun 2012 08:45:41 -0300, Muhammad Gelbana m.gelb...@gmail.com wrote: I don't think this may help but tapestry modifies your pages\components at the run time so it's all handled behind the scenes. Although I can't explain the results of your test here ! I'd guess Tapestry

Re: global variable concurrent access in different services

2012-06-05 Thread Muhammad Gelbana
You will love this tutorial: http://www.youtube.com/playlist?list=PLBB24CFB073F1048Efeature=plcp On Mon, Jun 4, 2012 at 3:22 PM, Thiago H de Paula Figueiredo thiag...@gmail.com wrote: On Mon, 04 Jun 2012 09:20:19 -0300, Angelo C. angelochen...@gmail.com wrote: Hi, Hi! This is a

Re: Maximum number of form elements

2012-06-05 Thread Stephan Windmüller
Am 05.06.2012 13:46, schrieb trsvax: It's most likely your web server. Most were patched recently to limit the number of parameters passed in a url or form to avoid a possible denial of service attack. I think that this is not the cause of the problem. When we limit the POST data more, we get

Re: [t5.3.1] TextField not handling a single space

2012-06-05 Thread Thiago H de Paula Figueiredo
On Tue, 05 Jun 2012 08:42:14 -0300, Muhammad Gelbana m.gelb...@gmail.com wrote: Greetings to the developers of the lovely framework, tapestry5 Hi! I wrote a form with a single text field, this field is bound to a string object. When I enter a single or multiple spaces in this text field

Re: Confusion about tapestry singleton page

2012-06-05 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I tried to reproduce that (being the curious person that I am ;-) ), but the constructor of a page is called only once on my machine - just as one would expect (Tap 5.3.3) If you want to analyze I suggest adding new Error().printStackTrace(); to

Re: Validate BigDecimal maxlength not working

2012-06-05 Thread George Christman
It's not the most ideal solution, but will work. I'm working on a big finance form, so lots of these types of fields to be validated. If you happen to think of a more robust way of doing this, please keep me posted. Thanks Thiago. -- View this message in context:

Re: Validate BigDecimal maxlength not working

2012-06-05 Thread Thiago H de Paula Figueiredo
On Tue, 05 Jun 2012 10:13:08 -0300, George Christman gchrist...@cardaddy.com wrote: It's not the most ideal solution, but will work. I'm working on a big finance form, so lots of these types of fields to be validated. If you happen to think of a more robust way of doing this, please keep

Re: [t5.3.1] TextField not handling a single space

2012-06-05 Thread Muhammad Gelbana
I did so before I sent this mail but I couldn't make use of them ! I can't see how the NullFieldStrategy can help me and I used this FieldTranslator which looked like it would help but it didn't. public FieldTranslatorString getTrans() { return new FieldTranslatorString() { public ClassString

Re: Validate BigDecimal maxlength not working

2012-06-05 Thread George Christman
Would you be referring to something like this http://wiki.apache.org/tapestry/CreatingCustomValidators -- View this message in context: http://tapestry.1045711.n5.nabble.com/Validate-BigDecimal-maxlength-not-working-tp5713611p5713636.html Sent from the Tapestry - User mailing list archive at

Re: Validate BigDecimal maxlength not working

2012-06-05 Thread Thiago H de Paula Figueiredo
On Tue, 05 Jun 2012 10:50:00 -0300, George Christman gchrist...@cardaddy.com wrote: Would you be referring to something like this http://wiki.apache.org/tapestry/CreatingCustomValidators Exactly, but for BigDecimals. -- Thiago H. de Paula Figueiredo

Re: Validate BigDecimal maxlength not working

2012-06-05 Thread George Christman
Thanks Thiago, exactly what I was looking for. Almost completed :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Validate-BigDecimal-maxlength-not-working-tp5713611p5713638.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Validate BigDecimal maxlength not working

2012-06-05 Thread George Christman
Thiago, I'd like to donate the following code to the community or anybody else who may run into this problem. It would be nice if it was a part of tapestry's core validation library enabling us to validate currency/amounts. I didn't include the js only because we aren't using it at my

Re: Validate BigDecimal maxlength not working

2012-06-05 Thread Thiago H de Paula Figueiredo
On Tue, 05 Jun 2012 13:17:17 -0300, George Christman gchrist...@cardaddy.com wrote: Thiago, I'd like to donate the following code to the community or anybody else who may run into this problem. Nice! Thank you very much! Could you create a JIRA for that and attach the code below in it?

Tapestry and Clojure

2012-06-05 Thread Howard Lewis Ship
People who run into me are always asking me Are you going to rewrite Tapestry in Scala? Or Clojure? Well, I'm not going to be rewriting Tapestry at this point, just improving it in place. However, I do want to do some more work with Clojure; I'm really excited by http://datomic.com/ for

Clear clientside validation from tapestrys memory.

2012-06-05 Thread George Christman
Hello, I've built a dynamic validation component which enables fields to be dynamically required depending on either the forms workflow state or the particular action button used. I only want to validate required fields when the form is Submit to the next state, but when the form is Saved I only

Re: [t5.3.1] TextField not handling a single space

2012-06-05 Thread Muhammad Gelbana
I did so before I sent this mail but I couldn't make use of them ! I can't see how the NullFieldStrategy can help me and I used this FieldTranslator which looked like it would help but it didn't. public FieldTranslatorString getTrans() { return new FieldTranslatorString() { public ClassString

Re: Tapestry and Clojure

2012-06-05 Thread Thiago H de Paula Figueiredo
On Tue, 05 Jun 2012 14:56:17 -0300, Howard Lewis Ship hls...@gmail.com wrote: People who run into me are always asking me Are you going to rewrite Tapestry in Scala? Or Clojure? I really don't get the point of rewriting Tapestry, which is written in Java, in Java-the-platform languages

This could be because its template file could not be located

2012-06-05 Thread Ray Nicholus
I'm starting a new T5 project, and am having some difficulty. For example, if I put my tml files alongside my java classes (com.mycompany.myproj.pages), when I startup my app, and navigate to a page, tapestry tells me that it cannot find the template file. If I then move the template file into

new T5 project - can't find TML file

2012-06-05 Thread Markus Johnston
I'm starting a new T5 project, and am having some difficulty. For example, if I put my tml files alongside my java classes (com.mycompany.myproj.pages), when I startup my app, and navigate to a page, tapestry tells me that it cannot find the template file. If I then move the template file into

Re: new T5 project - can't find TML file

2012-06-05 Thread Howard Lewis Ship
When you place your .tml files next to your .java files, it is not automatically the case that the .tml files are visible at runtime; they need to be copied (during development) into your output directory (the directory which normally contains .class files). In production, they need to be copied

Re: This could be because its template file could not be located

2012-06-05 Thread Howard Lewis Ship
See my notes in an adjacent thread. On Tue, Jun 5, 2012 at 1:51 PM, Ray Nicholus rnicho...@widen.com wrote: I'm starting a new T5 project, and am having some difficulty.  For example, if I put my tml files alongside my java classes (com.mycompany.myproj.pages), when I startup my app, and

Tapestry 5.3.4-rc-4

2012-06-05 Thread Howard Lewis Ship
I've just put up another preview release of Tapestry 5.3.4. This includes some more tiny performance improvements, and upgrades Tapestry's version of the ASM library to ASM 4.0, for compatibility with bytecode generated by the JDK 1.7 compiler. We are very interested in feedback on this preview,

Re: Tapestry and Clojure

2012-06-05 Thread David Woods
I'm just learning Clojure, but I see a lot of potential and intend to move more of my back-end functionality to it over time. A way to use Clojure services in a Tapestry webapp would be ideal, and will fit great into a project I'm just planning at the moment. Since I'm considering it for future

Re: This could be because its template file could not be located

2012-06-05 Thread Ray Nicholus
Turns out tml files weren't properly represented in the resource patterns box in the compiler section of IDEA. As a result, they weren't copied to the bin directory during compilation. I figured this out earlier but didn't get a chane to respond 'till now. It's always the last thing you check,

Re: [t5.3.1] TextField not handling a single space

2012-06-05 Thread Muhammad Gelbana
Should I open an JIRA issue ? On Tue, Jun 5, 2012 at 8:11 PM, Muhammad Gelbana m.gelb...@gmail.comwrote: I did so before I sent this mail but I couldn't make use of them ! I can't see how the NullFieldStrategy can help me and I used this FieldTranslator which looked like it would help but it