Re: Ajax form not holding onto field values after validation error.

2014-10-15 Thread George Christman
Makes perfect sense, thanks for the suggestion Geoff. On Tue, Oct 14, 2014 at 9:20 PM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > IMHO, I think it's helpful to indicate when and why you're instantiating > UserProfile, rather than just conditioning by "is null". > > void o

Re: Ajax form not holding onto field values after validation error.

2014-10-14 Thread Geoff Callender
IMHO, I think it's helpful to indicate when and why you're instantiating UserProfile, rather than just conditioning by "is null". void onPrepareForRender() throws Exception { // If fresh start, make sure there's a UserProfile object available. if (form.isValid()) {

Re: Ajax form not holding onto field values after validation error.

2014-10-14 Thread George Christman
Yup, that's exactly what was happening. On Tue, Oct 14, 2014 at 11:35 AM, Lance Java wrote: > This makes sense. For validation errors, tapestry does NOT > redirect-after-post so the POST request is the same as the render request. > I can only assume that onPrepare() is called twice in the same r

Re: Ajax form not holding onto field values after validation error.

2014-10-14 Thread Lance Java
This makes sense. For validation errors, tapestry does NOT redirect-after-post so the POST request is the same as the render request. I can only assume that onPrepare() is called twice in the same request in the case of validation errors so your null check stops the POST values from being overridde

Re: Ajax form not holding onto field values after validation error.

2014-10-13 Thread George Christman
figured it out, was an error on my behalf. I needed to wrap new UserProfile with a null check. public void onPrepareFromRegisterForm() { if (userProfile == null) { userProfile = new UserProfile(); userProfile.setCreateDate(new Date()); } } On Mon, Oct 1

Re: Ajax form not holding onto field values after validation error.

2014-10-13 Thread George Christman
So I think I'm close to figuring out the cause of this issue, it looks as if the form/field id's are changing with the zone up date which I believe is the cause of this issue. Any experts have any thoughts? On Mon, Oct 13, 2014 at 3:01 PM, George Christman wrote: > Odd behavior, I found if I remo

Re: Ajax form not holding onto field values after validation error.

2014-10-13 Thread George Christman
Odd behavior, I found if I removed the form from the zone it fixed the issue; however this does not make any sense to me though. //additional fields On Mon, Oct 13, 2014 at 1:43 PM, George Christman wrote: > I'm using 5.4 and for some reason I can not get my ajax form to hold > onto the fi

Re: ajax form onSuccess not called

2013-08-27 Thread John
, 2013 4:48 AM Subject: Re: ajax form onSuccess not called In onSuccess, see whether bookingform.getHasErrors() returns true. To dig in further, try bookingform.getDefaultTracker().getErrors(). On 27 August 2013 07:26, John wrote: > I think I found a partial answer to this, some

Re: ajax form onSuccess not called

2013-08-26 Thread Geoff Callender
In onSuccess, see whether bookingform.getHasErrors() returns true. To dig in further, try bookingform.getDefaultTracker().getErrors(). On 27 August 2013 07:26, John wrote: > I think I found a partial answer to this, some of the input fields (ones > marked disabled="true") are showing as invalid

Re: ajax form onSuccess not called

2013-08-26 Thread John
I think I found a partial answer to this, some of the input fields (ones marked disabled="true") are showing as invalid on the page? John - Original Message - From: John To: users@tapestry.apache.org Sent: Monday, August 26, 2013 10:11 PM Subject: ajax form onSuccess not call

Re: Ajax form submission, formfragments and wizards

2010-12-21 Thread Richard Hill
Hi Thiago, Thanks for the info, most helpful. Cheers. On Tue, 2010-12-21 at 12:56 -0200, Thiago H. de Paula Figueiredo wrote: > On Tue, 21 Dec 2010 12:21:05 -0200, Richard Hill > wrote: > > > Hi, > > Hi! > > > I'm trying to build a simple wizard - a 5 step process. I've been > > looking

Re: Ajax form submission, formfragments and wizards

2010-12-21 Thread Thiago H. de Paula Figueiredo
On Tue, 21 Dec 2010 12:21:05 -0200, Richard Hill wrote: Hi, Hi! I'm trying to build a simple wizard - a 5 step process. I've been looking at formfragment - which I think I could use for each step of the process, with the appropriate fragment visible for each step. Do you need to submit

Re: Ajax Form submission in T5.0

2010-08-27 Thread Pablo dos Reis
ok! 2010/8/27 Thiago H. de Paula Figueiredo > On Fri, 27 Aug 2010 10:16:22 -0300, Pablo dos Reis > wrote: > > Thank you Thiago, >> > > You're welcome! > > > I can submission by ajax using ActionLink and Zones, >> but I' m try upgrade T5 version before. >> I think it's better, because I would

Re: Ajax Form submission in T5.0

2010-08-27 Thread Thiago H. de Paula Figueiredo
On Fri, 27 Aug 2010 10:16:22 -0300, Pablo dos Reis wrote: Thank you Thiago, You're welcome! I can submission by ajax using ActionLink and Zones, but I' m try upgrade T5 version before. I think it's better, because I would like to use the componente AjaxFormLoop. You can try to get the s

Re: Ajax Form submission in T5.0

2010-08-27 Thread Pablo dos Reis
Thank you Thiago, I can submission by ajax using ActionLink and Zones, but I' m try upgrade T5 version before. I think it's better, because I would like to use the componente AjaxFormLoop. Other question Can I upgrade only the tapestry-core or it isn't recommend? The project uses tapestry-core,

Re: Ajax Form submission in T5.0

2010-08-26 Thread Thiago H. de Paula Figueiredo
On Thu, 26 Aug 2010 14:40:53 -0300, Pablo dos Reis wrote: Hi, Hi! I' m using T5.0.10 in my work. That's old . . . :) We are studing the best way to upgrade the tapestry version. But while it isn't happens, I want know if there are a way to create a form submission using ajax in T5.0

Re: Ajax form

2006-11-13 Thread Sam Gendler
Here's my response from the other thread: When I've had this problem in the past, I have just used my own submit button instead of tapestry submit component. Then I just have my submit button call a javascript method instead of submitting the form. Then, at the end of the javascript method, cal

RE: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-11-13 Thread Payne, Matthew
What version of the code has these fixes? Matt -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Sunday, October 15, 2006 6:54 PM To: Tapestry users Subject:Re: Ajax form that updates itself destroys the ajaxy-goodness of said form No need for

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-16 Thread Patrick Moore
... And I am having the time of my life being able to *use* your good work to be able to reach higher than I thought I would be able to :-) On 10/15/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: No need for thanks. I'm having the time of my life doing this stuff. I've never had access to learning

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-15 Thread Jesse Kuhnert
No need for thanks. I'm having the time of my life doing this stuff. I've never had access to learning so much from so many smart people. Each line of code written or change made brings me a great amount of joy. The only way things could possibly get better is if I could spend ~more~ time working

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-15 Thread Josh Long
Yah it works! Wonderful job (as usual), Jesse! Thank you s much. If -- one day -- I ever ascend to the position of one of the leading innovativing forces in the cutting edge iteration of a framework on which you're happily and critically reliant, take heart in the knowledge that I would

was Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Jesse Kuhnert
P.P.S. Howard pointed out my error with how updateComponents works... Should be much easier now. Ie instead of : updateComponents="ognl:{'compA','compB'}" it's: updateComponents="compA,compB" OR updateComponents="compA" On 10/14/06, Josh Long <[EMAIL PROTECTED]> wrote: Hiya Jesse, OK, th

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Jesse Kuhnert
Ah. Damnit, next time josh...next time... Fixed and deploy(ing/ed) ;) On 10/14/06, Josh Long <[EMAIL PROTECTED]> wrote: Hiya Jesse, OK, the page you linked me to does indeed work while the page I presented in a previous email continues to not work.. According to the src for the tapestry-exam

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Josh Long
Hiya Jesse, OK, the page you linked me to does indeed work while the page I presented in a previous email continues to not work.. According to the src for the tapestry-examples app (Last Changed Date: 2006-10-14 19:52:26 -0700 (Sat, 14 Oct 2006) by jkunhert) Dates.html that I have the form is up

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Jesse Kuhnert
Yep.. In fact, I just updated the demo pages yesterday, so if you can get this page to do the same thing I'll believe you ;) : http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=SDates The submission happens through a Form with async=true updateComponents=itself as well

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Josh Long
No luck there, sad to report.. I flushed the browser session and everything (which in turn logged me out of gmail!) and the same problem persists: one ajax request for free and then its all hard reloads from there... Anyway, any help is always appreciated, thanks, Josh Wait, so you're saying you

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Josh Long
muahah! nice catch! The version of the source i have looks identical to what you just sent me (ie, its calling dojo.log.debug for the dojo.log.debug("registerForm(" + id + ") Form already registered, ignoring."); part, though I confess I didn't bother with a diff. However, this does remind me of

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Jesse Kuhnert
Did you say "warning" ? Because the latest source I deployed should be using "info" as the log level. Maybe I need to re-deploy? http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/form.js?view=markup On 10/14/06, Josh Long <[EMAIL PROTECTED]> wrote: I defi

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Josh Long
I definitely do... It's happening in IE 6 / FF 1.5. I cleaned out history/offline files/cookies, etc, etc in both IE and FF.. In IE 6, after the very first page rerender thanks fto the form using the code I sent you (perhaps as well in FF, but I dont see it as it may be being intercepted by FireB

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Jesse Kuhnert
And you "definitely" have your browser cache cleared out? Hmm.I can't reproduce this. On 10/14/06, Josh Long <[EMAIL PROTECTED]> wrote: Same old thing, Im afraid. the first time it updates and no form submit. The second time i click on submit, it does a hard reload... Thanks, Josh On 10/1

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Josh Long
Same old thing, Im afraid. the first time it updates and no form submit. The second time i click on submit, it does a hard reload... Thanks, Josh On 10/14/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: What happens if you change updateComponents to be : updateComponents="container" ? On 10/14/

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Jesse Kuhnert
What happens if you change updateComponents to be : updateComponents="container" ? On 10/14/06, Josh Long <[EMAIL PROTECTED]> wrote: An update: I removed the updateComponents parameter and the listener did indeed run onthe server and no hard refresh was forced. But, of course, this is still n

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Josh Long
An update: I removed the updateComponents parameter and the listener did indeed run onthe server and no hard refresh was forced. But, of course, this is still not what is desired, as we need to update the gui, too.. Thanks, Josh On 10/14/06, Josh Long <[EMAIL PROTECTED]> wrote: At least for me

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-14 Thread Josh Long
At least for me, I'm afraid the bug is still present, Jesse.. :-( I downloaded the latest and greatest iteration of Tapestry snapshot (org.apache.tapestry tapestry-framework, 4.1.1-SNAPSHOT ) and flushed out my maven repository to confirm I had the latest and greatest jars... The following co

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-13 Thread Patrick Moore
Hi Jesse -- If you come across a IE wierdness, I hope that you are writing up (however cyptically) in a blog some place as I would love to learn from your experiences rather than experience them first-hand myself. It seems that hardest thing about learning javascript is the individual wierdness

Re: Ajax form that updates itself destroys the ajaxy-goodness of said form

2006-10-13 Thread Jesse Kuhnert
Should be fixed in latest snapshot. I discovered the cause of some outstanding issues that had previously plagued me in tacos. Thankfully I've been extremely conservative and haven't let the code grow out of control so this one has been permanently tracked down / fixed. (stupid IE ...) On 10/12/

Re: Ajax form question about Tapestry 4.1

2006-08-06 Thread Jesse Kuhnert
I noticed that the EventListener parameter for validating a form wasn't being properly used, this has been fixed. (the default is still false, to bypass validation) On 8/2/06, Josh Long <[EMAIL PROTECTED]> wrote: Yeah I was sort of wondering the same thing, and in particular, how do I get valid

Re: Ajax form question about Tapestry 4.1

2006-08-04 Thread Norbert Sándor
What is an "empty page"? I mean does it have the expected output or simply nothing is rendered? Use a @Shell component to wrap the page because @Form and @DropdownDateTimePicker requires dojo (which is provided by @Shell). Regards, Norbi Marcus wrote: Sorry, I've download Tapestry 4.1 and

Re: Ajax form question about Tapestry 4.1

2006-08-04 Thread Marcus
Sorry, I've download Tapestry 4.1 and folowing jars, all in \shared\lib aspectj-1.5.2.jar easymock.jar jakarta-oro-2.0.8.jar ognl-2.6.9.jar testng-4.7-jdk15.jar commons-io-1.2.jar hivemind-1.1.1.jar hivemind-lib-1.1.1.jar I was using Tapestry 3.03 and all of your library dependencies, then I de

Re: Ajax form question about Tapestry 4.1

2006-08-04 Thread Marcus
Hi, I've download Tapestry 4.1 and folowing jars, all in \shared\lib aspectj-1.5.2.jar easymock.jar jakarta-oro-2.0.8.jar ognl-2.6.9.jar commons-io-1.2.jar

Re: Ajax form question about Tapestry 4.1

2006-08-03 Thread Jesse Kuhnert
ECTED] Sent: quarta-feira, 2 de agosto de 2006 19:39 To: Tapestry users Subject: Re: Ajax form question about Tapestry 4.1 Sounds like a possible bug. It makes sense though now.. All the @EventListener would do in this instance is bind to the event happening, not interfere with "what" h

RE: Ajax form question about Tapestry 4.1

2006-08-03 Thread Denis Souza
ssage- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 2 de agosto de 2006 19:39 To: Tapestry users Subject: Re: Ajax form question about Tapestry 4.1 Sounds like a possible bug. It makes sense though now.. All the @EventListener would do in this instance is bind to the event

Re: Ajax form question about Tapestry 4.1

2006-08-02 Thread Jesse Kuhnert
d. I think I'm failing somehow to tell the framework that this should be an ajax-only request. Since you said it should work, it could be something that I'm doing wrong, or could be a bug that shows under certain conditions. Any ideas? Cheers Denis Souza -Original Message- From:

RE: Ajax form question about Tapestry 4.1

2006-08-02 Thread Denis Souza
to tell the framework that this should be an ajax-only request. Since you said it should work, it could be something that I'm doing wrong, or could be a bug that shows under certain conditions. Any ideas? Cheers Denis Souza -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTE

Re: Ajax form question about Tapestry 4.1

2006-08-02 Thread Jesse Kuhnert
I've been trying to avoid adding too many new parameters (like updateComponents) all over the place before I felt like I had found a good way to do this without code duplication. It's probably fair that I at least add them to form/form button based components though. As for Forms, you could very

Re: Ajax form question about Tapestry 4.1

2006-08-02 Thread Josh Long
Yeah I was sort of wondering the same thing, and in particular, how do I get validation messages to render via ajax -- that is, i wat the form to go through the normal validation routine and I dont want to enable client side validation. I actually kind of like the red stars and custom decorators t