RE: img tag (src)

2009-03-11 Thread Elmer Smith
I have a component based off of the example Thiago mentions. The just of it is: - a page ViewImage that has an activation context of a d/b related ID - that pages onActivate returns a StreamResponse - the stream response is created by loading bytes from the d/b using the ID passed in the ac

RE: cross field validation with empty fields

2009-03-09 Thread Elmer Smith
All very good comments Luther (np about the name :)) and everyone else. Here is 4.0 code that does the same thing: public void onFormSubmit(IRequestCycle requestCycle) { IValidationDelegate delegate = getDelegate(); // this checks if the automatic validations you have on your // fiel

RE: cross field validation with empty fields

2009-03-09 Thread Elmer Smith
Oh sorry, didn't mean to confuse things. I got the impression he was asking about field validation, not authentication. -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: Monday, March 09, 2009 1:15 PM To: Tapestry users Subject: Re: cross field vali

RE: cross field validation with empty fields

2009-03-09 Thread Elmer Smith
Ivano, I'm pretty sure what you want to do is provide an onValidate method in your page class. That method gets called expressly for doing more complicated validation. If you have more than one form, you'll have to further specify it e.g. onValidateFromMyFormName (or use @OnEvent annotation). H

RE: Dependent implemented with @OnEvent mixin + AjaxFormLoop

2009-02-19 Thread Elmer Smith
I first thought of somehow using getClientId(). The problem is that I need the id in the JavaScript function (the onCompleteCallback one) to then try and determine which select put values into. If I could call getClientId() when in the Java @OnEvent method, then I could sneak it in as the first e