Re: Insight: T5 is a compiler

2011-04-28 Thread Andreas Andreou
of other cool stuff behind the scenes. That's one of the reasons its so fast and efficient as an application framework while running. Unlike a lot of other frameworks that are essentially running as interpreters, Tapestry runs as compiled code.   The key insight here is something I've known about T5

Re: Insight: T5 is a compiler

2011-04-28 Thread Thiago H. de Paula Figueiredo
On Thu, 28 Apr 2011 18:03:09 -0300, Pierce T. Wetter III pie...@twinforces.com wrote: I think we're saying the same thing in different ways. Tapestry compiles the template into a program to generate the content is a shorter way of saying what you just said. As opposed to JSP which

Re: Insight: T5 is a compiler

2011-04-28 Thread Thiago H. de Paula Figueiredo
On Thu, 28 Apr 2011 18:16:51 -0300, Andreas Andreou andre...@gmail.com wrote: of course JSP templates are not interpreted character by character but *just* converted to servlets, javac'ed and finally executed This is compilation in my dictionary, as JSP (a language) is compiled into a

T5: @PageReset called on page refresh

2011-04-27 Thread Adam Zimowski
Hi My understanding is that pageReset lifecycle method introduced in 5.2 should only be called when page is left and returned from another page. Per Howard from http://markmail.org/message/67dbxuwf3rw3naja#query:+page:1+mid:67dbxuwf3rw3naja+state:results When a page is first accessed (from

Re: T5: select zone update in a form

2011-04-26 Thread Adam Zimowski
https://issues.apache.org/jira/browse/TAP5-1512 On Mon, Apr 25, 2011 at 12:15 PM, Adam Zimowski zimowsk...@gmail.com wrote: After more debugging, the problem seems to be with Tapestry's IdAllocator and how it generates client side id's for select components, particularly when Zone is updated.

Re: T5: @Validate on RadioGroup

2011-04-26 Thread Adam Zimowski
https://issues.apache.org/jira/browse/TAP5-1513 On Wed, Apr 13, 2011 at 9:46 AM, Adam Zimowski zimowsk...@gmail.com wrote: Taha - You are correct, I was wrong. I patched up RadioGroup by adding:    Binding defaultValidate()    {        return defaultProvider.defaultValidatorBinding(value,

Re: T5: select zone update in a form

2011-04-25 Thread Adam Zimowski
After more debugging, the problem seems to be with Tapestry's IdAllocator and how it generates client side id's for select components, particularly when Zone is updated. In this case, what happens is that every time I update zone while form is in error, the ID of my select changes with

Re: T5: select zone update in a form

2011-04-21 Thread Adam Zimowski
@Josh - When I debug Select in 5.2.4 (break on processSubmission(), line 166), selectedValue is blank which is expected. So select correctly submits without a value, it's just it seems that the validator does not recognize that select state was repopulated via zone and consequently no value was

Re: T5: select zone update in a form

2011-04-21 Thread Adam Zimowski
I'm sorry, I am on Tapestry 5.2.5 :-) On Thu, Apr 21, 2011 at 10:19 AM, Adam Zimowski zimowsk...@gmail.com wrote: @Josh - When I debug Select in 5.2.4 (break on processSubmission(), line 166), selectedValue is blank which is expected. So select correctly submits without a value, it's just it

Re: T5: select zone update in a form

2011-04-21 Thread Adam Zimowski
Quick update: By debugging Select component I see that validation tracker correctly records the error when I submit the blank option for state. The blank option is submitted throug the following use case: 1. Select country and state (both have blank options therefore are required), but leave

Re: T5: select zone update in a form

2011-04-21 Thread Adam Zimowski
Okay, now I am pretty sure this is a bug related to usage of t:error/ in 5.2.5. If I put t:errors/ (which I didn't have before), the state required error shows up as expected. If I use t:error/ attached to state field, the error does not show. It's like looking for a needle in a haystack..

Re: T5: select zone update in a form

2011-04-20 Thread Adam Zimowski
Nobody ran into this? I have a feeling that I'm doing something wrong, but then, I'm not sure either if Tapestry is just not working as expected. If I make the stateUpdateZone wrap entire form, then form is aware of state value change. But I do not want to refresh entire form, all I want to

Re: T5: select zone update in a form

2011-04-20 Thread Josh Canfield
I don't have the time now to dive into this, but it sounds like the select thinks it has a value when it's time to validate. Have you set a breakpoint in the Select component to see what it thinks that value is? Josh On Wed, Apr 20, 2011 at 1:36 PM, Adam Zimowski zimowsk...@gmail.com wrote:

Re: T5: select zone update in a form

2011-04-20 Thread Mark
When you say Validation kicks in does this occur after a submit? If so, is it possible that AddressUIBean is remembering the value that was present when the submit occurred and then on the second submit it is getting set to null again? At the point when you would expect an error to occur, what

T5: select zone update in a form

2011-04-19 Thread Adam Zimowski
I have a typical address form with street, city zip textfields and two dropdowns: country and state. The state dropdown is wrapped in a zone so that when country is selected, states are populated: div class=kk-field t:type=zone t:id=stateModelZonet:select t:id=a_state model=stateModel

Re: T5 IoC Advice: Inconsistent args_size for opc_invokeinterface

2011-04-18 Thread Adriaan Joubert
Hi Howard, Sorry, should have included it. I'm running java version 1.6.0_24 Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode) on Ubuntu 10.10. I've had the feeling this may be a tough one to pin down. I can work around it for

Re: T5 IoC Advice: Inconsistent args_size for opc_invokeinterface

2011-04-17 Thread Adriaan Joubert
Which Tapestry-IoC version are you using? I tried with both 5.1.0.5 and 5.2.4. I should also mention that I thought this may have something to do with other advisors (we use them for transaction management as well as checking that a slave database has caught up to a certain point). I've marked

Re: T5 IoC Advice: Inconsistent args_size for opc_invokeinterface

2011-04-17 Thread Howard Lewis Ship
What JDK are you compiling for, executing under? It's very hard to say what the problem really is ... a bug in the wrappers around Tapestry or a bug in Javassist. I'm hoping that the 5.3 code, based on wrappers around ASM, will be faster, more efficient, and more stable. On Sun, Apr 17, 2011 at

Re: Setting contenttype of T5 form

2011-04-17 Thread Fernando Benjamin
then you can modify this to meet your needs http://tapestry.1045711.n5.nabble.com/Tapestry-FileUploader-Integration-td4268987.html regards Taha -- View this message in context: http://tapestry.1045711.n5.nabble.com/Setting-contenttype-of-T5-form-tp4270175p4292978.html Sent from the Tapestry

t5: create a record from another table, what is best practice?

2011-04-16 Thread Angelo C.
(); p.setEmail(email); p.setName(name); session.save(p); } } -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-create-a-record-from-another-table-what-is-best-practice-tp4307107p4307107.html Sent from the Tapestry - User mailing

Re: t5: create a record from another table, what is best practice?

2011-04-16 Thread Taha Hafeez
= app.getName(); } } @CommitAfter Object onSuccess() { Profile p = new Profile(); p.setEmail(email); p.setName(name); session.save(p); } } -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-create-a-record

Re: t5: create a record from another table, what is best practice?

2011-04-16 Thread Angelo C.
Hi, Thanks, but how to pass a string to prepareForRender? -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-create-a-record-from-another-table-what-is-best-practice-tp4307107p4307173.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: t5: create a record from another table, what is best practice?

2011-04-16 Thread Taha Hafeez
: http://tapestry.1045711.n5.nabble.com/t5-create-a-record-from-another-table-what-is-best-practice-tp4307107p4307173.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: Setting contenttype of T5 form

2011-04-16 Thread Fernando Benjamin
/Setting-contenttype-of-T5-form-tp4270175p4292978.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h

Re: T5 IoC Advice: Inconsistent args_size for opc_invokeinterface

2011-04-16 Thread Thiago H. de Paula Figueiredo
On Sat, 16 Apr 2011 09:22:52 -0300, Adriaan Joubert adriaan...@gmail.com wrote: Hi, Hi! I tried to build a rough-and-ready timer for service method calls by using an advisor. We already use these for transaction management etc and never had an issue. However after many successful calls I

T5: upgrade to 5.1.0.8-SNAPSHOT issue

2011-04-14 Thread Dmitriy Vsekhvalnov
Hi all, just upgraded application to 5.1.0.8-SNAPSHOT, and got weird error for components that includes ZoneUpdater ( http://tinybits.blogspot.com/2010/03/new-and-better-zoneupdater.html) org.apache.tapestry5.ioc.internal.util.TapestryException: Parameter(s) 'ZoneUpdater.zone' are required for

Re: T5: upgrade to 5.1.0.8-SNAPSHOT issue

2011-04-14 Thread Taha Hafeez
Hi In 5.1.0.6 a parameter zone was added to Select. So in your case both Select component and mixin ZoneUpdater have 'zone' as parameter.In tapestry, if both component and mixin have the same parameter name, the parameter is assigned to the component and mixin does not get the parameter. As

Re: T5: upgrade to 5.1.0.8-SNAPSHOT issue

2011-04-14 Thread Dmitriy Vsekhvalnov
works like a charm. thanks. Is it backward compatible with 5.1.0.5 (i mean zoneupdater.zone='whatever') ? On Thu, Apr 14, 2011 at 7:30 PM, Taha Hafeez tawus.tapes...@gmail.comwrote: Hi In 5.1.0.6 a parameter zone was added to Select. So in your case both Select component and mixin

Re: T5: upgrade to 5.1.0.8-SNAPSHOT issue

2011-04-14 Thread Howard Lewis Ship
Yes, the ability to disambiguate parameters in this way has always been present. On Thu, Apr 14, 2011 at 8:50 AM, Dmitriy Vsekhvalnov dvsekhval...@gmail.com wrote: works like a charm. thanks. Is it backward compatible with 5.1.0.5 (i mean zoneupdater.zone='whatever') ? On Thu, Apr 14, 2011

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
Thanks Taha, but I did supply @Validate(required) annotation and validation did not happen. Adam On Tue, Apr 12, 2011 at 8:15 PM, Taha Hafeez tawus.tapes...@gmail.com wrote: Hi I compared the code from RadioGroup with that of Select and found the following difference In Select if parameter

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Taha Hafeez
it is the @Parameter validate in RadioGroup that is required not @Validate as that is never checked in case @Parameter validate is not given in a RadioGroup ... Please read my answer again :) It seems to be bug!! regards Taha On Wed, Apr 13, 2011 at 3:40 PM, Adam Zimowski zimowsk...@gmail.com

T5: Select wont find selected value in edit?

2011-04-13 Thread robnangle
)); team.setKeeper(keeper); prep.executeUpdate(); return index; Any help is greatly appreciated as always.. Cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300292.html Sent from the Tapestry

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
Hi Taha - I agree with you it seems to be a bug, and I (think) I get what you are saying. However, I am having a hard time seeing why the bug would be in RadioGroup processSubmission() or anywhere in the RadioGroup class for that matter. Rather, it seems the bug (if exists) is deeper in the

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread Richard Hill
Team(); prep.setString(1, work(keeper)); team.setKeeper(keeper); prep.executeUpdate(); return index; Any help is greatly appreciated as always.. Cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Taha Hafeez
You are still not getting the point... 1. fieldValidationSupport,validate is the service responsible for validating a field. It requries a FieldValidator which is passed as a parameter to it. If this @Parameter validate is null, as is the case with RadioGroup, fieldValidationSupport is never

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread robnangle
t:select t:id=goalkeeper model=goalkeepers value=team.keeper blankOption=never/ -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300356.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread Richard Hill
this message in context: http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300356.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread robnangle
blankOption=never/ -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300356.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread Richard Hill
=goalkeepers value=team.keeper blankOption=never/ -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300356.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
Hi Taha, You are still not getting the point... Why so direct, having a bad day? Please tell me how am I not getting the point when I clearly wrote that: t:radiogroup validate=required Works. The validate parameter is not null with the above, and the Radio group works as expected, as shown in

Re: T5: @Property(create=true) ?

2011-04-13 Thread Christophe Cordenier
And what if we allowed to create defaultXxx method for persistent fields as we do for component parameters, does it make sense ? 2011/4/12 Howard Lewis Ship hls...@gmail.com This wouldn't have to be an extension to the @Property annotation, it could be a new annotation, (say) @AutoCreate,

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread robnangle
Richard Hill-7 wrote: are add and edit page classes? They are yes.. All values are @Persist, @Property So is the only way to get the default value up by setting all players as sso's? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread Richard Hill
, robnangle wrote: Richard Hill-7 wrote: are add and edit page classes? They are yes.. All values are @Persist, @Property So is the only way to get the default value up by setting all players as sso's? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread robnangle
changes the string to say 'Steven Gerrard' team.setKeeper(keeper); // this is the whole value 'Liverpool - Steven Gerrard' Does this changes things? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300442.html Sent from

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Taha Hafeez
Hi Adam Hi Adam On Wed, Apr 13, 2011 at 5:19 PM, Adam Zimowski zimowsk...@gmail.com wrote: Hi Taha, You are still not getting the point... Why so direct, having a bad day? Please tell me how am I not getting the point when I clearly wrote that: Sorry if it appeared rude, that was

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread Thiago H. de Paula Figueiredo
On Wed, 13 Apr 2011 08:30:42 -0300, robnangle robnan...@gmail.com wrote: t:select t:id=goalkeeper model=goalkeepers value=team.keeper blankOption=never/ Make sure you overrode the equals() and hashCode() methods in the Goalkeeper class with a correct implementation. -- Thiago H. de Paula

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread robnangle
GenerateSelectPlayers(); // class that generates the players from the db return gsp.getGoalkeepers(); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300475.html Sent from the Tapestry - User mailing

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread Thiago H. de Paula Figueiredo
On Wed, 13 Apr 2011 09:33:04 -0300, robnangle robnan...@gmail.com wrote: There is no goalkeepers class, goalkeepers is just a list of players taken from the database: public List getGoalkeepers() { gsp = new GenerateSelectPlayers(); // class that generates the players from

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread robnangle
in context: http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300494.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: T5: Select wont find selected value in edit?

2011-04-13 Thread Thiago H. de Paula Figueiredo
On Wed, 13 Apr 2011 09:44:43 -0300, robnangle robnan...@gmail.com wrote: Ok and this method should be in the getKeepers()? It should be in the class of the objects used as options. What do i check if its equal to? It varies depending on the class itself, what it means and how object

Re: T5: @Validate on RadioGroup

2011-04-13 Thread Adam Zimowski
Taha - You are correct, I was wrong. I patched up RadioGroup by adding: Binding defaultValidate() { return defaultProvider.defaultValidatorBinding(value, resources); } and now the @Validate annotation on my bean enum property is read in correctly. So this is the bug in

T5: @Property(create=true) ?

2011-04-12 Thread Adam Zimowski
Maybe I'm over-thinking here... I find a lot of times I have to do this: @Property private AddressUiBean address; @SetupRender void init() { if(address == null) address = new AddressUiBean(); } What would be super nice, following the spirit of @SessionState, is this: @Property(create=true)

Re: T5: @Property(create=true) ?

2011-04-12 Thread Christophe Cordenier
My response is not directly related to your question, by the way... in previous version of T5 it was possible to initiliaze the value of persistent variables at declaration time. And this value was considered as the default value. This feature was the cause of session conflicts, more precisely, i

Re: T5: @Property(create=true) ?

2011-04-12 Thread Thiago H. de Paula Figueiredo
On Tue, 12 Apr 2011 13:52:10 -0300, Christophe Cordenier christophe.corden...@gmail.com wrote: My response is not directly related to your question, by the way... in previous version of T5 it was possible to initiliaze the value of persistent variables at declaration time. And this value

Re: T5: @Property(create=true) ?

2011-04-12 Thread Thiago H. de Paula Figueiredo
On Tue, 12 Apr 2011 13:34:17 -0300, Adam Zimowski zimowsk...@gmail.com wrote: Maybe I'm over-thinking here... I find a lot of times I have to do this: @Property private AddressUiBean address; @SetupRender void init() { if(address == null) address = new AddressUiBean(); } Why not activate

Re: T5: @Property(create=true) ?

2011-04-12 Thread Adam Zimowski
You have a point Thiago, I will try other init phases, I suppose just a habit, and it worked :) In regards to your comment on page pool Now that Tap isn't using it, would auto create property instance be an issue? Just curious.. Adam On Tue, Apr 12, 2011 at 12:19 PM, Thiago H. de Paula

Re: T5: @Property(create=true) ?

2011-04-12 Thread Thiago H. de Paula Figueiredo
On Tue, 12 Apr 2011 14:25:31 -0300, Adam Zimowski zimowsk...@gmail.com wrote: You have a point Thiago, I will try other init phases, I suppose just a habit, and it worked :) It works, but which event to use is a very scenario-specific decision. :) In regards to your comment on page

Re: T5: @Property(create=true) ?

2011-04-12 Thread Howard Lewis Ship
This wouldn't have to be an extension to the @Property annotation, it could be a new annotation, (say) @AutoCreate, perhaps with a value to say when (initialize, setup render, etc.). It could use the same kind of logic that the BeanEditForm uses, one that supports the full injection mechanism.

T5: @Validate on RadioGroup

2011-04-12 Thread Adam Zimowski
I have a bean where @Validate(required) does not work on a radiogroup, but t:radiogroup validate=required ... does. Other @Validate annotated fields (TextField's) work. My companyType is purposely set to null by default, as I do not want any radio pre-selected, thus it shall be required. Is

Re: T5: @Validate on RadioGroup

2011-04-12 Thread Taha Hafeez
Hi I compared the code from RadioGroup with that of Select and found the following difference In Select if parameter 'validate' is not given a default is chosen and so it is never null. Validation is performed in processSubmission() method by the line

Re: Setting contenttype of T5 form

2011-04-09 Thread Taha Hafeez
If you can use an ajax file uploader then you can modify this to meet your needs http://tapestry.1045711.n5.nabble.com/Tapestry-FileUploader-Integration-td4268987.html regards Taha -- View this message in context: http://tapestry.1045711.n5.nabble.com/Setting-contenttype-of-T5-form

Re: T5: BeanEditForm, BeanEditor and t:error.........

2011-04-09 Thread Adam Zimowski
Should I then keep my pages backed by BeanEditor and BeanEditForm and wait for 5.3/5.4 or is this something not on the 2011 horizon? Adam On Fri, Apr 8, 2011 at 7:28 PM, Howard Lewis Ship hls...@gmail.com wrote: As we move away from the error bubbles, I think you'll see that errors will

Re: T5: BeanEditForm, BeanEditor and t:error.........

2011-04-09 Thread Taha Hafeez
Hi You can provide you own contributions to BeanBlockSource and override the default ones till new release. All you have to do is override the class and use you own template. Checkout http://tapestry.apache.org/beaneditform-guide.html http://tapestry.apache.org/beaneditform-guide.htmlregards

Re: T5: BeanEditForm, BeanEditor and t:error.........

2011-04-09 Thread Howard Lewis Ship
What Adam was getting at is not direclty overridable via block parameters; in the BeanEditor and BeanEditForm, the block parameters allow you to override the editors for specific properties, but not the surrounding content, including the Errors component (in BeanEditForm). On Sat, Apr 9, 2011 at

Re: T5: BeanEditForm, BeanEditor and t:error.........

2011-04-09 Thread Howard Lewis Ship
Sheduling questions are hard ... it's simply a matter of prioritizing the work and finding a way to do it, and maintain my income stream. Same goes for the other devs, I'm sure. On Sat, Apr 9, 2011 at 8:27 AM, Adam Zimowski zimowsk...@gmail.com wrote: Should I then keep my pages backed by

Re: T5: BeanEditForm, BeanEditor and t:error.........

2011-04-09 Thread Taha Hafeez
May be I am wrong but when I needed fields without labels in BeanEditor, this is what I did I extended PropertyEditBlocks as public class PropertyEditBlocksWithoutLabel extends PropertyEditBlocks { } and the provided my own template div xml:space=default xmlns:t=

T5: required built-in validator not invoked

2011-04-08 Thread Adam Zimowski
Hi, I have a form with a required textfield companyName, and a form fragment which is displayed if one of the radio buttons on the form is clicked. When form fragment is hidden, companyName is validated by Tapestry if not provided (required validation), but when form fragment is visible, Tapestry

Re: Setting contenttype of T5 form

2011-04-08 Thread Fernando Benjamin
Hi again, I am still working on the same form! I have managed to get my javascript initialized and uploaded to the client! Everything works great until I get in the onActivate method. Then I get an exception, which I can't figure out the problem, I have also explicit changed the Form.method to

Re: Setting contenttype of T5 form

2011-04-08 Thread Josh Canfield
You should really take Howard's advice and look at how the upload component works. You can't just change the content type of the form because this changes how servlets behave. Try googling for servlet multipart/form-data and find that since the beginning of time people have been writing libraries

T5: BeanEditForm, BeanEditor and t:error.........

2011-04-08 Thread Adam Zimowski
By default BeanEditForm includes t:errors/. BeanEditor seems to expect that t:errors is placed outside if programmer wants it. Intuitively, I would expect a feature for both to support inline errors: t:beaneditform inlineErrors=literal:true / t:beaneditor inlineErrors=literal:true / with

Re: T5: BeanEditForm, BeanEditor and t:error.........

2011-04-08 Thread Howard Lewis Ship
As we move away from the error bubbles, I think you'll see that errors will naturally attach to the fields, and t:errors/ will just display errors not associated with a specific field. On Fri, Apr 8, 2011 at 5:01 PM, Adam Zimowski zimowsk...@gmail.com wrote: By default BeanEditForm includes

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
The Tapestry NumericValidator seems to rely on whether Double.valueOf(String) will throw an exception, which it does for '1k'. How are you configuring and using your validator? On Tue, Mar 29, 2011 at 5:19 PM, Adam Zimowski zimowsk...@gmail.com wrote: It is server side. Looks like if input

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
recently: T5: form validation with pre-existing errors The actual numeric field which exhibits this is defined in the template as: t:textfield t:id=quantity t:context=index label=prop:quantityLabel validate=required size=2/ @Component(parameters = {tracker=tracker}) private Form cartForm

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
a loop) with indexed trackers ( MapInteger, ValidationTracker. You can find complete code for the ShoppingCart page which exhibits this behavior in another thread which I posted recently: T5: form validation with pre-existing errors The actual numeric field which exhibits this is defined

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
, ValidationTracker. You can find complete code for the ShoppingCart page which exhibits this behavior in another thread which I posted recently: T5: form validation with pre-existing errors The actual numeric field which exhibits this is defined in the template as: t:textfield t:id=quantity

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
is disabled. This happens on my shopping cart page where I have multiple forms (inside a loop) with indexed trackers ( MapInteger, ValidationTracker. You can find complete code for the ShoppingCart page which exhibits this behavior in another thread which I posted recently: T5: form validation

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
forms (inside a loop) with indexed trackers ( MapInteger, ValidationTracker. You can find complete code for the ShoppingCart page which exhibits this behavior in another thread which I posted recently: T5: form validation with pre-existing errors The actual numeric field which exhibits

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
. This happens on my shopping cart page where I have multiple forms (inside a loop) with indexed trackers ( MapInteger, ValidationTracker. You can find complete code for the ShoppingCart page which exhibits this behavior in another thread which I posted recently: T5: form validation with pre

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
validation is disabled. This happens on my shopping cart page where I have multiple forms (inside a loop) with indexed trackers ( MapInteger, ValidationTracker. You can find complete code for the ShoppingCart page which exhibits this behavior in another thread which I posted recently: T5: form

Re: T5: form validation with pre-existing errors

2011-03-30 Thread Adam Zimowski
Tapestry friends! Your silence combined with my milestone demo today only motivated me to stay up couple of nights in a row, fire off debugger and step into Tapestry source to get this solved. And so, amazing what can be done under the pressure from management and when your job possibly may be on

T5 Tap Ioc (beauty) - kudos!

2011-03-30 Thread Adam Zimowski
with frustration in store for my future, but I'm going to enjoy today... From my daily work with T5 over past few months I can say with confidence it is a love-hate relationship. I get frustrated trying to get over the learning curve when things don't work. I don't enjoy stepping into the framework's

Re: Setting contenttype of T5 form

2011-03-30 Thread Fernando Benjamin
Hi Howard, The Upload component requires a UploadFile as a value! I want to use here a plain html input file and not one of tapestry components! If I replace input type=file id=ga name=file/ WITH input t:type=upload t:id=file / It does change the contenttype of the form as I wanted, but this

Re: Setting contenttype of T5 form

2011-03-30 Thread Fernando Benjamin
Haaa, I overlooked the other option, I'll try with javascript! Thank you! On 31 March 2011 00:14, Fernando Benjamin fernandobenja...@gmail.comwrote: Hi Howard, The Upload component requires a UploadFile as a value! I want to use here a plain html input file and not one of tapestry

Re: T5: form validation with pre-existing errors

2011-03-30 Thread Taha Hafeez
ValidationTracker !! Thanks for sharing regards Taha On Thu, Mar 31, 2011 at 1:06 AM, Adam Zimowski zimowsk...@gmail.com wrote: Tapestry friends! Your silence combined with my milestone demo today only motivated me to stay up couple of nights in a row, fire off debugger and step into

Re: Runtime configurable Validators in T5... this was easy in T4

2011-03-29 Thread Chris Norris
Ah, thank you for pointing out the obvious. I was still thinking in terms of Validators, and was trying to make a validator to provide to a FieldValidatorImpl rather than just implementing FieldValidator myself. I cannot believe how entrenched in that line of thinking I was. On Fri, Mar 25, 2011

Setting contenttype of T5 form

2011-03-29 Thread Fernando Benjamin
Hi everybody, I am trying to upload a file to GAE by using a tapestry form, but I can't use tapestry 5 Upload component because it depends on a class writing to the filesystem! I need to set the contenttype of the form to multipart/form-data so I can retrieve the file on the servlet(filter).

Re: Setting contenttype of T5 form

2011-03-29 Thread Howard Lewis Ship
Look at the Upload component source; you'll see how it does it. On Tue, Mar 29, 2011 at 2:07 PM, Fernando Benjamin fernandobenja...@gmail.com wrote: Hi everybody, I am trying to upload a file to GAE by using a tapestry form, but I can't use tapestry 5 Upload component because it depends on a

Re: T5: built-in numeric validator

2011-03-29 Thread Howard Lewis Ship
Seems like a bug to me! Surprising, though. Is this server-side or client-side validation? On Tue, Mar 29, 2011 at 2:49 PM, Adam Zimowski zimowsk...@gmail.com wrote: For numeric fields, Tapestry validates correctly non-numeric input. However, input such as: 1k 1\ etc.. passes the

Re: T5: built-in numeric validator

2011-03-29 Thread Adam Zimowski
It is server side. Looks like if input starts with a digit, Tapestry is happy :) Adam On Tue, Mar 29, 2011 at 5:05 PM, Howard Lewis Ship hls...@gmail.com wrote: Seems like a bug to me!  Surprising, though. Is this server-side or client-side validation? On Tue, Mar 29, 2011 at 2:49 PM, Adam

Runtime configurable Validators in T5... this was easy in T4

2011-03-25 Thread Chris Norris
In T4 we could new up a Validator, provide it with whatever information we wanted, and pass that directly to a form component for validation. I miss this. I have a loop which generates form components. Each one needs some very custom validation. I know I can create a validator that will take in a

Re: Runtime configurable Validators in T5... this was easy in T4

2011-03-25 Thread Thiago H. de Paula Figueiredo
On Fri, 25 Mar 2011 13:23:25 -0300, Chris Norris thechrisproject.li...@gmail.com wrote: I have a loop which generates form components. Each one needs some very custom validation. I know I can create a validator that will take in a constraint, but the constraint in the template has to be

T5: form validation with pre-existing errors

2011-03-25 Thread Adam Zimowski
I have a shopping cart. The cart is built with a single form, and a loop. The basic validation works, such as testing quantity for numeric input etc. However, I have an additional requirement to display errors on invalid line items which are part of the cart. An example of invalid cart item may be

Re: T5: Weird problem with browser cache and component event redirect

2011-03-21 Thread sunmoor007
but i couldnt find a way to do this. Would appreciate if you can let us know the way to change all the urls to have a dynamic value. Thanks Sundar -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Weird-problem-with-browser-cache-and-component-event-redirect

Re: T5 Page Doctype Causing Application to Hang

2011-03-12 Thread Howard Lewis Ship
.1045711.n5.nabble.com/T5-Page-Doctype-Causing-Application-to-Hang-tp3445827p3445827.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org

Re: T5 Page Doctype Causing Application to Hang

2011-03-12 Thread Kartweel
is the dtd references other dtds and it is trying to resolve them also. So I guess I need to download everything and see how that goes :). +1 vote for adding them all into core jar :) Thanks! Ryan -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Page-Doctype-Causing

Re: T5 Page Doctype Causing Application to Hang

2011-03-12 Thread Kartweel
this message in context: http://tapestry.1045711.n5.nabble.com/T5-Page-Doctype-Causing-Application-to-Hang-tp3445827p3555240.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

T5 Page Doctype Causing Application to Hang

2011-03-11 Thread Kartweel
in context: http://tapestry.1045711.n5.nabble.com/T5-Page-Doctype-Causing-Application-to-Hang-tp3445827p3445827.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: T5 Community -- Apache Tapestry Query

2011-03-08 Thread Ulrich Stärk
.nabble.com/T5-Community-Apache-Tapestry-Query-tp3413561p3413561.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e

Re: T5 Community -- Apache Tapestry Query

2011-03-08 Thread ael
Can you add the another IDE Intergration which is Netbeans on Tapestry 5 Community Page? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Community-Apache-Tapestry-Query-tp3413561p3414790.html Sent from the Tapestry - User mailing list archive at Nabble.com

T5 Community -- Apache Tapestry Query

2011-03-07 Thread ael
Hi I visit the http://tapestry.apache.org/community.html tapestry community site then if possible additional IDE Integration for Tapestry 5 which is my favorite Netbeans. Thanks :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Community-Apache-Tapestry-Query

<    2   3   4   5   6   7   8   9   10   11   >