Re: Redirect onActivate - how to handle ActionLink requests?

2012-12-21 Thread lebenski
This is exactly what I was looking for! Thank you. Although I still notice a strange issue. In all cases except one the following works: componentEventLinkEncoder.decodePageRenderRequest(request) != null Except on the request made by the autocomplete mixin (http://tapestry.apache.org/current/

Re: Redirect onActivate - how to handle ActionLink requests?

2012-12-20 Thread lebenski
I actually got the problem wrong, it's not the fact that the null return prevented the handler from firing, but rather my condition to determine if it was a page request rather than a component request was insufficient: protected boolean isPageRequest() { return !request.is

Re: Redirect onActivate - how to handle ActionLink requests?

2012-12-20 Thread lebenski
Hi Thiago, Ok but I don't believe that my problem is directly related to inheritance, but point taken on the style preference. Even if I have two separate pages with components I will still need the check in the edit page with the redirect to the view page. In this case, how do I handle actionLi

Redirect onActivate - how to handle ActionLink requests?

2012-12-20 Thread lebenski
So I have a page 'ViewCube'. This page can be accessed by anyone and does not allow any editing rights. I then have a page 'EditCube' which extends ViewCube and uses some extension points to allow the user with editing rights to modify the cube (please don't worry about what a "Cube" is!) I want

Re: T5 progress bar in a grid

2012-01-10 Thread lebenski
Just wanted to say a big thanks for this Lance. I ran your code and used it extensively in my own project where I'm using a crawler to gather information. The UI is updated every second with the new total of saved crawled results. This taught me some stuff about threading and got me to finally u

Re: Updating a Zone with just form fields (not the form itself)

2010-05-26 Thread lebenski
l better suits to your needs. > > Regards, > Christophe Cordenier. > > 2010/5/26 lebenski > >> >> I'll start by giving this problem a bit of background. I've been charged >> with adding 'Postcode Lookup' functionality to the registration f

Updating a Zone with just form fields (not the form itself)

2010-05-26 Thread lebenski
I'll start by giving this problem a bit of background. I've been charged with adding 'Postcode Lookup' functionality to the registration form on our site. When a user enters a postcode, it calls off to a third party service, and we provide a set of possible addresses in a drop down box. The use

[T5.1.0.5] Ajax submission "Event.stop is not a function"

2010-03-06 Thread lebenski
I have bound the zone parameter to my form: And the zone itself: This has been working fine until recently. I was forced to upgrade to prototype 1.6.1 using tapx-prototype and ever since I'm observing that my forms that were previously submitting as XHR requests are now submitting as plai

Re: [T5] Form and Zone inside a loop

2010-02-02 Thread lebenski
Well I eventually got to the root of this. The problem was being caused because the IDs I'd given to my zones started witha number! Changing them from 1_1Zone to Zone1_1 fixed the issue. Also got this working with MultiZoneUpdate now, I love this component. Great job by the Tapestry devs. --

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread lebenski
t; with > t:zone="prop:zoneId" (same for > the id parameter of zone). Does that help? > > Uli > > On 01.02.2010 12:15 schrieb lebenski: >> >> Ah! this seems to have got to the root of the problem. Request.isXHR() >> is >> returning false. I und

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread lebenski
equest (@Inject Request and > do request.isXHR()). > > Uli > > On 01.02.2010 09:29 schrieb lebenski: >> >> I have a loop that contains a form and a zone. In each iteration of the >> loop, submission of that form should update it&#

[T5] Form and Zone inside a loop

2010-02-01 Thread lebenski
I have a loop that contains a form and a zone. In each iteration of the loop, submission of that form should update it's relevant zone: ... ... Object onSuccessFromPickCommentForm(DraftPick draftPick) { createPickComme

Re: T5 - Forms created inside a loop don't fire onSuccess methods

2010-02-01 Thread lebenski
Thanks - got this working! Thiago H. de Paula Figueiredo wrote: > > On Sun, 31 Jan 2010 16:09:11 -0200, lebenski wrote: > >> Hi, > > Hi! > >> This is my code: >> >> >> ... >> >> &g

T5 - Forms created inside a loop don't fire onSuccess methods

2010-01-31 Thread lebenski
Hi, This is my code: ... This results in multiple forms getting rendered on my page; pickCommentForm, pickCommentForm_0, pickCommentForm_1 etc. I'm obsering that submitting this form does not fire onSuccessFromPickCommentForm or even just onSuccess, onValidateForm etc. Is

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-10 Thread lebenski
s there a way in an event handler like onSuccess to > find > out which component triggered the event? > > On Tue, Jan 5, 2010 at 11:38 AM, lebenski wrote: > >> >> Ok I think I'm missing something because I don't understand why this >> would >>

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread lebenski
testing to see if it gets called. If it gets > called, > it means that the origin changed, and your "FromXXX" must be changed. > > On Tue, Jan 5, 2010 at 11:23 AM, lebenski wrote: > >> >> This isn't the form I'm having trouble with. The "Submi

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread lebenski
ce the origin changes when the event bubbles up. Change the name to > "onSuccess" and see if gets called then. > > On Tue, Jan 5, 2010 at 10:47 AM, lebenski wrote: > >> >> Hi Igor, >> >> I thought i'd spelled out this issue fairly clearly, but

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread lebenski
answer. Please be > more precise and post more of your code. > > On Mon, Jan 4, 2010 at 11:07 AM, lebenski wrote: > >> >> I have a layout component that contains a login form: >> >> >>> height="30"/> >

Re: [T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-05 Thread lebenski
Thanks for your reply Howard. Are you suggesting that I need to add this onSuccess method to my confirmation page as well as keeping it in the layout? Howard Lewis Ship wrote: > > When an event bubbles up, the origin of the event changes. > > Initially, the success event occurs from the form

Re: Spring Security with T5RESTful Services

2010-01-04 Thread lebenski
Think you might've put this in the wrong place Jim! I assume you mean't to start a new thread? jc1001 wrote: > > Has anyone got Spring Security annotations (@Secured("ROLE_XYZ") etc.) > working with the restful web services implementation > http://code.google.com/p/t5-restful-webservices - I'd

[T5.0.18] @InjectedPage does not have access to it's own layout

2010-01-04 Thread lebenski
I have a layout component that contains a login form: Page Class: Object onSuccessFromLoginForm() { try{ loggedInMember = loginManager.logUserIn(new Login(memberName, password)); } catch(LoginException e) { //Login Error Proce

Javascript at the bottom of page

2008-06-27 Thread lebenski
Hi This has been an issue for a while now - we're using prototype etc. to manipulate elements in some of our pages but can't access it due to it being loaded at the end of the page. I have read on these forums before that javascript should be loaded at the end of the page to increase load spee

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-09 Thread lebenski
This fix has addressed my issue, and its now all working as expected :clap:. Cheers, Ben. Sven Homburg wrote: > > howard commited some changes into tapestry trunk, so the snapshot build > starts in some minutes > > 2008/5/8 Sven Homburg <[EMAIL PROTECTED]>: > >>

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
great. Sven Homburg wrote: > > i commited a fix into the trunk > > 2008/5/8 lebenski <[EMAIL PROTECTED]>: > >> >> Apparently this message didnt get sent properly last time: >> >> Oh I just noticed that you said you found the problem is it because

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
iately, or will it be added as part of a nightly build? Sven Homburg wrote: > > i commited a fix into the trunk > > 2008/5/8 lebenski <[EMAIL PROTECTED]>: > >> >> Apparently this message didnt get sent properly last time: >> >> Oh I just noticed that

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
Thanks Sven, Any info on what was causing the issue? Ben. Sven Homburg wrote: > > i commited a fix into the trunk > > 2008/5/8 lebenski <[EMAIL PROTECTED]>: > >> >> Apparently this message didnt get sent properly last time: >> >> Oh I jus

Re: Problem with form submission with callback

2008-05-08 Thread lebenski
By using a vanilla Ajax Request wouldn't you be bypassing all the benefits you get from the Tapestry Form Event lifecycle and Tesptry forms in general? Sven Homburg wrote: > > if your requirement is a login without a page refresh > the using of OnEvent is in this case not the right way > becaus

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
Apparently this message didnt get sent properly last time: Oh I just noticed that you said you found the problem is it because the jsessionid is getting passed on the URL or something else? lebenski wrote: > > Thanks very much Sven. I appreciate your help on this matter, let m

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
Oh I just noticed that you said you found the problem is it because the jsessionid is getting passed on the URL or something else? Sven Homburg wrote: > > after a debug session, a find the reason for this behavior. > i try to find out a soloution for that > > 2008/5/8 l

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
> > 2008/5/8 lebenski <[EMAIL PROTECTED]>: > >> >> Yeah that sounds exactly like the problem i'm getting. >> >> FYI here is my initial request (onchange of username field) after &

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
e the same behavior if the restart the browser? >> >> >> 2008/5/8 lebenski <[EMAIL PROTECTED]>: >> >> > >> > for real testing i think its better to delete the cookie and refresh >> the >> > page >> > before you initiate the

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
esponse the session id > > if you delete the cookie or remove the session id from url > the server cant handle the ajax request (not sure for that but sounds > logical for me) > > for real testing i think its better to delete the cookie and refresh the > page > before you initi

Re: T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
I'm replicating the state in which a new user will hit the site, they won't have any of the cookies set by Tapestry. Sven Homburg wrote: > > why do you delete the cookies ? > > 2008/5/8 lebenski <[EMAIL PROTECTED]>: > >> >> Hi guys, >> >>

T5: Urgent Problem. After clearing cookies communication between client and tapestry breaks on first request

2008-05-08 Thread lebenski
Hi guys, Ok i've got an urgent problem. I'm using tapestry to develop a web app, which I have to present tomorrow to some very important people! I've got a very frustrating problem. I will try to explain it as clearly as possible. I'm using the t5components/OnEvent Mixin to call back to Tapes

Re: T5: New Validators and server side validation

2008-04-30 Thread lebenski
+1 I would find this functionality extremely useful. Server-side validation onBlur has so many applications. At the moment the solution I have come up with is: 1) Use the T5Components OnEvent annotation, and attach a blur event to the field. 2) Do my server side validation (in this case checki

Re: T5: Recording custom validation errors onEvent(blur) on a form field

2008-04-30 Thread lebenski
Sorry for the shameless bump, but I'd really appreciate some help on this. lebenski wrote: > > Hi everyone, > > Ok this is what i'm looking for: A user types in their desired username, > when the onBlur event happens on that input field (i.e. focus switches to >

T5: Recording custom validation errors onEvent(blur) on a form field

2008-04-29 Thread lebenski
Hi everyone, Ok this is what i'm looking for: A user types in their desired username, when the onBlur event happens on that input field (i.e. focus switches to the next field), IF the name is taken i'd like to utilise the standard tapestry validation error bubble, and display a message "User Nam

T5: Client-Side field validation onExit of field & Email type validation.

2008-04-28 Thread lebenski
Hi everyone, I'm currently working on a Tapestry 5 project that has several BeanEditForms. I am performing client-side validation on these forms using the @Validate (org.apache.tapestry.beaneditor.Validate) annotation on my form bean class. I'd like to know if it's possible to somehow configure

T5: CSS Injection and IE Conditional Comments

2008-02-15 Thread lebenski
Hi guys, Does anyone know of a mechanism of utilizing IE Conditional Comments for importing browser-specific CSS, but using the standard tapestry method of css injection via the page class, i.e. something like: private PageRenderSupport _pageRenderSupport; @Inject @Path("$path/t

Re: Help! Turning off auto import of prorotype.js from Tapestry JAR

2008-02-13 Thread lebenski
With a bit of research I answered my own question! Thanks again for your help. lebenski wrote: > > This looks great thank you. I am new to Tapestry and can't find the file > containing application defaults that you mention. Could you please > provide further details about e

Re: Help! Turning off auto import of prorotype.js from Tapestry JAR

2008-02-13 Thread lebenski
aults with the value "org/apache/tapestry/scriptaculous_1_8". All you > should have to do is contribute the same symbol to application defaults > with value you want. > > lebenski wrote: >> Hi, >> >> I have a requirement to remove the auto import of the tapestry bundl

Re: Help! Turning off auto import of prorotype.js from Tapestry JAR

2008-02-13 Thread lebenski
FYI I am using Tapestry 5.0.7-SNAPSHOT. -- View this message in context: http://www.nabble.com/Help%21-Turning-off-auto-import-of-prorotype.js-from-Tapestry-JAR-tp15456459p15456463.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Help! Turning off auto import of prorotype.js from Tapestry JAR

2008-02-13 Thread lebenski
Hi, I have a requirement to remove the auto import of the tapestry bundled version of prototype.js. I am implementing this: http://www.jimbojw.com/wiki/index.php?title=SWFHttpRequest_Flash/Ajax_Utility to facilitate cross-domain javascript. The elegant implementation of this requires a minor ch