Re: Insight: T5 is a compiler

2011-04-28 Thread Pierce T. Wetter III
enes. 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 kno

T5: @Cached(watch) parameter requires public property

2011-04-28 Thread Adam Zimowski
Hi Again - Is there a specific reason why watch parameter for @Cached annotation requires public property when using default prop binding? This is an inconvenient limitation IMO, as I don't necessarily want to expose my watch property publicly. For example, my watch on getShoppingCart may be somet

Re: Insight: T5 is a compiler

2011-04-28 Thread Howard Lewis Ship
cient 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 for a while: Your > .java files and .tml files are just the

Insight: T5 is a compiler

2011-04-28 Thread Pierce T. Wetter III
pplication 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 for a while: Your .java files and .tml files are just the starting point; they

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 anoth

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 wrote: > Taha - > > You are correct, I was wrong. I patched up RadioGroup by adding: > >    Binding defaultValidate() >    { >        return defaultProvider.defaultValidatorBinding("value", resources);

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 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. > > In this case,

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 incremented

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 in 5.2.5. If I put (which I didn't have before), the state required error shows up as expected. If I use attached to state field, the error does not show. It's like looking for a needle in a haystack.. lol. still could appreciate

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 othe

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 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 seems that the > va

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 sub

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

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 wrote: > Nobody ran into this? I

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 update

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: All works okay, except for a test case my business analyst found which I can't figure out. You fil

Re: T5 IoC Advice: Inconsistent args_size for opc_invokeinterface

2011-04-17 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: Setting contenttype of T5 form

2011-04-17 Thread Fernando Benjamin
gt; > #### THIS IS MY FORM > > > title="${message:title}" > > xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; > > xmlns:p="tapestry:parameter"> > > Post a new product: > >

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: 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-16 Thread Thiago H. de Paula Figueiredo
On Sat, 16 Apr 2011 09:22:52 -0300, Adriaan Joubert 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 suddenly get: Except

Re: Setting contenttype of T5 form

2011-04-16 Thread Fernando Benjamin
try.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 - User mailing list arc

T5 IoC Advice: Inconsistent args_size for opc_invokeinterface

2011-04-16 Thread Adriaan Joubert
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 suddenly get: Exception in thread "Thread-26" java.lang.VerifyError: (class: Invocation$Mont

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

2011-04-16 Thread Taha Hafeez
s 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 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
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 list archive at Nabble.com

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

2011-04-16 Thread Angelo C.
ew 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-from-another-table-what-is-best-practice-tp4307107p4307107.html Sent from the Tapestry - Us

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 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 at 7:30 PM, Taha

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 wrote: > 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 p

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 ZoneU

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 o

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 Radi

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 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 identity is defined for

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

2011-04-13 Thread robnangle
he getKeepers()? What do i check if its equal to? Apologies for what probably are stupid questions, I just hevnt yet encountered them.. -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300494.html Sent from the Tapest

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 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 the db

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

2011-04-13 Thread robnangle
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 the db return gsp.getGoalkeepers(); } -- View this message in context:

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 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 Figueiredo I

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 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 certainly not my

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

2011-04-13 Thread robnangle
n adding it to the database. prep.setString(3, work(keeper)); // the work method 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.104

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

2011-04-13 Thread Richard Hill
ayers as > sso's? > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-value-in-edit-tp4300292p4300407.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 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.1045

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 > This wouldn't have to be an extension to the @Property annotation, it > could be a new annotation, (say) @AutoCreate, perhaps with a valu

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: Works. The validate parameter is not null with the above, and the Radio group works as expected, as shown in RadioGroup processSubmission(

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

2011-04-13 Thread Richard Hill
> > > > On Wed, 2011-04-13 at 04:30 -0700, robnangle wrote: > >> t:select t:id="goalkeeper" model="goalkeepers" value="team.keeper" > >> blankOption="never"/ > >> > >> -- > >> View this message in c

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

2011-04-13 Thread robnangle
;goalkeeper" model="goalkeepers" value="team.keeper" >> blankOption="never"/ >> >> -- >> View this message in context: >> http://tapestry.1045711.n5.nabble.com/T5-Select-wont-find-selected-v

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

2011-04-13 Thread Richard Hill
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 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 -

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 call

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

2011-04-13 Thread Richard Hill
ly 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 - User mailing list archive at Nabble.com. > > --

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 chai

T5: Select wont find selected value in edit?

2011-04-13 Thread robnangle
tring(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-Select-wont-find-selected-value-in-edit-tp4300292p4300292.html Se

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 wrote: > Thanks Taha,

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 wrote: > Hi > > I compared the code from RadioGroup with that of Select and found the > following difference > > In Select if parameter 'validate' is no

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 fieldValidationSupport.validate(selectedValu

T5: @Validate on RadioGroup

2011-04-12 Thread Adam Zimowski
I have a bean where @Validate("required") does not work on a radiogroup, but Registration Information : : : : : Adam --

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. On

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 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 pool Now that Tap isn't

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 Figue

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 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 instead of @SetupRen

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 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 was considered as the default

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

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) pri

Re: T5: BeanEditForm, BeanEditor and

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 http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Re: T5: BeanEditForm, BeanEditor and

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 wrote: > Should I then keep my pages backed by BeanEditor and BeanEditFor

Re: T5: BeanEditForm, BeanEditor and

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 8

Re: T5: BeanEditForm, BeanEditor and

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 regards t

Re: T5: BeanEditForm, BeanEditor and

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 wrote: > As we move away from the error bubbles, I think you'll see that errors > will naturally attach to t

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

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 will just display errors not associated with a specific field. On Fri, Apr 8, 2011 at 5:01 PM, Adam Zimowski wrote: > By default BeanEditForm includes . > > BeanEditor seems to expect

T5: BeanEditForm, BeanEditor and

2011-04-08 Thread Adam Zimowski
By default BeanEditForm includes . 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: with rendered next to a field and some CSS class to override. That would be nice. -

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

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 Po

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: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
27;t going live until next year, so >>>> hopefully by then it gets fixed. >>>> >>>> Adam >>>> >>>> On Thu, Mar 31, 2011 at 10:51 AM, Chris Norris >>>> wrote: >>>>> Sorry, I was completely wrong. I was looking at a Nume

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
;>> wrote: >>>> Sorry, I was completely wrong. I was looking at a NumericValidator >>>> that we wrote, not a Tapestry one. >>>> >>>> On Thu, Mar 31, 2011 at 9:43 AM, Adam Zimowski >>>> wrote: >>>>> My client side validation

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
: >>>> My client side validation is disabled. This happens on my shopping >>>> cart page where I have multiple forms (inside a loop) with indexed >>>> trackers ( Map. You can find complete code >>>> for the ShoppingCart page which exhibits this behavi

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
client side validation is disabled. This happens on my shopping >>> cart page where I have multiple forms (inside a loop) with indexed >>> trackers ( Map. You can find complete code >>> for the ShoppingCart page which exhibits this behavior in another >>> thread

Re: T5: built-in numeric validator

2011-03-31 Thread Adam Zimowski
p. 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 defi

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
ndexed > trackers ( Map. 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 d

Re: T5: built-in numeric validator

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

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 wrote: > It is server side. Looks like if input starts with a digit, Tap

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 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 > Tapestry source to g

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 wrote: > 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 >

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 WITH It does change the contenttype of the form as I wanted, but this means I have to use UploadedFile, because its value is required in

T5 & Tap Ioc (beauty) - kudos!

2011-03-30 Thread Adam Zimowski
evenings loaded 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 en

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

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 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 Zimowski wrot

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 wrote: > For numeric fields, Tapestry validates correctly non-numeric input. > However, input such as: > > 1k > 1\ > etc.. > > passes the validation. > > Am I

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 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 class writing to the

T5: built-in numeric validator

2011-03-29 Thread Adam Zimowski
For numeric fields, Tapestry validates correctly non-numeric input. However, input such as: 1k 1\ etc.. passes the validation. Am I missing something? Adam - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For ad

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). T

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 a

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: 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 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 static. This is not correct. The de

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: T5: Weird problem with browser cache and component event redirect

2011-03-20 Thread sunmoor007
value 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-red

Re: T5 Page Doctype Causing Application to Hang

2011-03-12 Thread Kartweel
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

Re: T5 Page Doctype Causing Application to Hang

2011-03-12 Thread Kartweel
d So my guess of what is happening 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.n

Re: T5 Page Doctype Causing Application to Hang

2011-03-12 Thread Howard Lewis Ship
folder as the AppModule class. > > Any help would be appreciated. > > Thanks, Ryan > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/T5-Page-Doctype-Causing-Application-to-Hang-tp3445827p3445827.html > Sent from the Tapestry - User mail

T5 Page Doctype Causing Application to Hang

2011-03-11 Thread Kartweel
eciated. Thanks, Ryan -- View this message 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

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