Yahoooo it works! Wonderful job (as usual), Jesse! Thank you soooo 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 happily give my saturday (maybe not as happily
or as frequently as you have, of course, SOME of us do need sleep.. !)
to try and fix a bug for you buddy!
In the meantime, I definitely owe you a beer or something. :-)
Thanks again Jesse!
Josh
On 10/14/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> 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-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 updating a component 'dateDisplay' whcih is
> > outside of the form (ie, form starts and closes before the div for
> > dateDisplay ever begins). But I'm confident that the problem would not
> > show even if you had dateDisplay INSIDE the form tags, too. It
> > manifests itself when the component that the form is updating _wraps_
> > or contains the form that is updating it such that the form itself is
> > recreated/rerendered.
> >
> > <div jwcid="[EMAIL PROTECTED]"> <form jwcid="@Form" async ="ognl:true"
> > updateComponents ="ognl:{'container'} " listener="listener:foo">
> > <input type ="submit" jwcid="@Submit" /></form> </div>
> >
> > Sooo... If you would be kind enough to try the latest example code I
> > sent (its free standing, no context needed), I'm reasonably confident
> > that you'll see the behavior I'm describing..
> >
> > Thanks again,
> > Josh
> >
> >
> > /// ------------------------------------- the code for the Dates.html
> > that im seeing
> >
> > <form jwcid="@Form" delegate="bean:delegate"
> > clientValidationEnabled="ognl:clientValidationEnabled"
> > async="ognl:true"
updateComponents="ognl:{'dateDisplay'}"
> > >
> >
> > <table valign="middle">
> > <tr>
> > <td></td>
> > <td><input type="checkbox" jwcid="@Checkbox"
> > value="ognl:includeWeek"
> > onclick="javascript:this.form.submit();"/>
> > Include weeks in DatePicker UI.
> > </td>
> > </tr>
> > <tr>
> > <td><span jwcid="@FieldLabel" field="component:startDate"/>:</td>
> > <td><input jwcid="[EMAIL PROTECTED]"
> > includeWeek="ognl:includeWeek" value="ognl:startDate"
> > displayName="Start Date"
> > validators="ognl:{beans.required,beans.maxDate}"/></td>
> > </tr>
> > <tr>
> > <td><span jwcid="@FieldLabel" field="component:endDate"/>:</td>
> > <td><input jwcid="[EMAIL PROTECTED]" includeWeek="ognl:includeWeek"
> > value="ognl:endDate" displayName="End Date"
> > validators="ognl:{beans.required,beans.minDate}"/></td>
> > </tr>
> > <tr>
> > <td></td>
> > <td><input jwcid="@Submit" value="Submit" /> </td>
> > </tr>
> > </table>
> >
> > </form>
> >
> > <div jwcid="[EMAIL PROTECTED]">
> > <u>Submitted Dates</u><br/>
> >
> > <table valign="middle">
> > <tr>
> > <th>Start date:</th>
> > <td> <span jwcid="@Insert" value="ognl:startDate"/></td>
> > </tr>
> > <tr>
> > <th>End date:</th>
> > <td>
> > <span jwcid="@Insert" value="ognl:endDate"/>
> > </td></tr>
> > </table>
> > </div>
> >
> > /// --------------------------------------------------------------
> >
> >
> > On 10/14/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > 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 and it is working fine for me in IE
&&
> > moz.
> > >
> > > On 10/14/06, Josh Long <[EMAIL PROTECTED]> wrote:
> > > >
> > > > 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 experienced the problem I described and
> > > > have seen it fixed?
> > > >
> > > >
> > > >
> > > > On 10/14/06, Josh Long <[EMAIL PROTECTED]> wrote:
> > > > > 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 one distinct thing i havent
tried..
> > > > > lemme svn update your source and then mvn install that and
_THEN_
> > try
> > > > > it!
> > > > >
> > > > > brb,
> > > > > Josh
> > > > >
> > > > > On 10/14/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > > > > 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 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 FireBug) it says
> > > > > > >
> > > > > > > WARNING: 5:12:32 PM: registerForm(Form) Form already
registered.
> > > > > > >
> > > > > > > and then i click the form again (the 2nd time, having
already
> > used
> > > > > > > ajax once sucessfully) and voila, the form causes a hard
reload
> > of
> > > > the
> > > > > > > page, without ajax.
> > > > > > >
> > > > > > > What steps are youtaking to see the bug? Maybe I'm not
> > explaining it
> > > > > > > right or I'm missing something critically obvous.. :-(
> > > > > > >
> > > > > > > It's present on my windows desktop as well as my linux
station.
> > On
> > > > > > > linux, I'm using FF 1.5, on Windows I'm using FF1.5 and IE
6...
> > > > > > >
> > > > > > > Thanks again,
> > > > > > > Josh
> > > > > > >
> > > > > > > On 10/14/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > > > > > > 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/14/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > > > > > > > > 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 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, 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 code will let you submit the form
once
> > via
> > > > ajax.
> > > > > > > Itll
> > > > > > > > > > > > redisplay itself as well as athe current time,
> > updated.
> > > > Submit
> > > > > > > the
> > > > > > > > > > > > form again this time and you'll trigger a manual
page
> > > > reload...
> > > > > > > > > > > >
> > > > > > > > > > > > As usual, any and all help is appreciated....
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks again,
> > > > > > > > > > > > Josh
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > // TestAjaxRefresh.java
> > > > > > > > > > > > import org.apache.tapestry.IRequestCycle;
> > > > > > > > > > > > import org.apache.tapestry.html.BasePage;
> > > > > > > > > > > >
> > > > > > > > > > > > abstract public class TestAjaxRefresh extends
BasePage
> > > > > > > > > > > > {
> > > > > > > > > > > > abstract public String getValue() ;
> > > > > > > > > > > > abstract public void setValue(String aValue) ;
> > > > > > > > > > > > public void handleForm (IRequestCycle cycle )
> > > > > > > > > > > > {
> > > > > > > > > > > > System.out.println("handleForm ") ;
> > > > > > > > > > > > }
> > > > > > > > > > > > }
> > > > > > > > > > > >
> > > > > > > > > > > > // TestAjaxRefresh.html
> > > > > > > > > > > > <div jwcid="@Shell" title = "">
> > > > > > > > > > > > <div jwcid="[EMAIL PROTECTED]">
> > > > > > > > > > > >
> > > > > > > > > > > > <div jwcid="[EMAIL PROTECTED]">
> > > > > > > > > > > >
> > > > > > > > > > > > <div async = "ognl:true" listener =
> > > > > > > "listener:handleForm"
> > > > > > > > > > > > updateComponents ="ognl: { 'container'} "
> > jwcid="@Form">
> > > > > > > > > > > >
> > > > > > > > > > > > <span jwcid="@Insert" value="ognl: new
> > > > > > > java.util.Date
> > > > > > > > > ()">
> > > > > > > > > > > > 12/122/2006</span>
> > > > > > > > > > > > <br/>
> > > > > > > > > > > >
> > > > > > > > > > > > <input type="text" jwcid
> > ="@TextField" value
> > > > =
> > > > > > > "ognl:
> > > > > > > > > > > value" />
> > > > > > > > > > > > <input
type="submit" jwcid="@Submit"/>
> > > > > > > > > > > >
> > > > > > > > > > > > </div>
> > > > > > > > > > > > </div>
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > </div></div>
> > > > > > > > > > > >
> > > > > > > > > > > > On 10/13/06, Patrick Moore <
> > [EMAIL PROTECTED]>
> > > > > > > wrote:
> > > > > > > > > > > > > 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 of the interpreters rather
than
> > the
> > > > > > > language
> > > > > > > > > > > > > itself.
> > > > > > > > > > > > >
> > > > > > > > > > > > > -Pat
> > > > > > > > > > > > >
> > > > > > > > > > > > > On 10/13/06, Jesse Kuhnert <[EMAIL PROTECTED]>
> > wrote:
> > > > > > > > > > > > > > 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/06, Josh Long <[EMAIL PROTECTED]>
> > wrote:
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I think I found a bug or a sticky
> > > > > > > > > i-need-the-tapestry-lists-help
> > > > > > > > > > > type
> > > > > > > > > > > > > > > of question...
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I was wondering exactly where this problem
came
> > from
> > > > but
> > > > > > > now I
> > > > > > > > > > > have a
> > > > > > > > > > > > > > > working, isolated, non proprietary :-)
example!
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Take the following example. The page loads,
a
> > form
> > > > is
> > > > > > > > > displayed
> > > > > > > > > > > and
> > > > > > > > > > > > > > > it's async-ready. So you submit the form
(whcih
> > > > tends to
> > > > > > > > > happen
> > > > > > > > > > > with
> > > > > > > > > > > > > > > forms... like for example with validation)
and
> > the
> > > > form is
> > > > > > > > > > > > > > > redisplayed, you correct the data and submit
and
> > > > this time
> > > > > > > the
> > > > > > > > > > > form is
> > > > > > > > > > > > > > > hard submitted! It actually makes a get
> > request..
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Umm.. anyway, if anyone has any help or
advice
> > for
> > > > me, I'd
> > > > > > > > > > > definitely
> > > > > > > > > > > > > > > appreciate it. This applies to IE and
Mozilla.
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > I'm investigating whether i maybe need to
use
> > > > > > > updateComponent
> > > > > > > > > and
> > > > > > > > > > > just
> > > > > > > > > > > > > > > have it update the whole page (Border on
down,
> > or
> > > > Shell,
> > > > > > > by
> > > > > > > > > proxy)
> > > > > > > > > > > so
> > > > > > > > > > > > > > > that i can maybe make sure javasscript for
> > setting
> > > > up the
> > > > > > > ajax
> > > > > > > > > in
> > > > > > > > > > > the
> > > > > > > > > > > > > > > form in the first place is rerendered ? or?
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Thanks in advance,
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > Joshua Long
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > // java
> > > > > > > > > > > > > > > import org.apache.tapestry.IRequestCycle;
> > > > > > > > > > > > > > > import org.apache.tapestry.html.BasePage;
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > abstract public class TestAjaxRefresh
extends
> > > > BasePage
> > > > > > > > > > > > > > > {
> > > > > > > > > > > > > > > abstract public String getValue() ;
> > > > > > > > > > > > > > > abstract public void setValue(String
aValue)
> > ;
> > > > > > > > > > > > > > > public void handleForm (IRequestCycle
cycle
> > )
> > > > > > > > > > > > > > > {
> > > > > > > > > > > > > > > System.out.println("handleForm ") ;
> > > > > > > > > > > > > > > }
> > > > > > > > > > > > > > > }
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > > // template
> > > > > > > > > > > > > > > <div jwcid="@Border">
> > > > > > > > > > > > > > > <div jwcid="[EMAIL PROTECTED]">
> > > > > > > > > > > > > > > <div async = "ognl:true" listener =
> > > > > > > > > "listener:handleForm"
> > > > > > > > > > > > > > > updateComponents ="ognl: { 'container'} "
> > > > jwcid="@Form">
> > > > > > > > > > > > > > > <span jwcid="@Insert"
value="ognl:
> > new
> > > > > > > > > java.util.Date
> > > > > > > > > > > ()">
> > > > > > > > > > > > > > > 12/122/2006</span>
> > > > > > > > > > > > > > > <br/>
> > > > > > > > > > > > > > > <input type="text" jwcid
> > > > ="@TextField" value
> > > > > > > =
> > > > > > > > > "ognl:
> > > > > > > > > > > value"
> > > > > > > > > > > > > > > />
> > > > > > > > > > > > > > > <input
> > type="submit" jwcid="@Submit"/>
> > > > > > > > > > > > > > > </div>
> > > > > > > > > > > > > > > </div>
> > > > > > > > > > > > > > > </div>
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > >
> > > >
---------------------------------------------------------------------
> > > > > > > > > > > > > > > To unsubscribe, e-mail:
> > > > > > > [EMAIL PROTECTED]
> > > > > > > > > > > > > > > For additional commands, e-mail:
> > > > > > > > > [EMAIL PROTECTED]
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > --
> > > > > > > > > > > > > > Jesse Kuhnert
> > > > > > > > > > > > > > Tapestry/Dojo/(and a dash of TestNG), team
> > > > member/developer
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > Open source based consulting work centered
around
> > > > > > > > > > > > > > dojo/tapestry/tacos/hivemind.
> > > > > > > http://blog.opencomponentry.com
> > > > > > > > > > > > > >
> > > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > >
> > > >
---------------------------------------------------------------------
> > > > > > > > > > > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > > > > > > > > > For additional commands, e-mail:
> > > > > > > [EMAIL PROTECTED]
> > > > > > > > > > > > >
> > > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > >
> > > >
---------------------------------------------------------------------
> > > > > > > > > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > > > > > > > For additional commands, e-mail:
> > > > [EMAIL PROTECTED]
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Jesse Kuhnert
> > > > > > > > > > Tapestry/Dojo/(and a dash of TestNG), team
> > member/developer
> > > > > > > > > >
> > > > > > > > > > Open source based consulting work centered around
> > > > > > > > > > dojo/tapestry/tacos/hivemind.
> > http://blog.opencomponentry.com
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > >
---------------------------------------------------------------------
> > > > > > > > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > > > > > > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Jesse Kuhnert
> > > > > > > > Tapestry/Dojo/(and a dash of TestNG), team
member/developer
> > > > > > > >
> > > > > > > > Open source based consulting work centered around
> > > > > > > > dojo/tapestry/tacos/hivemind.
http://blog.opencomponentry.com
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > > >
> > > >
---------------------------------------------------------------------
> > > > > > > To unsubscribe, e-mail:
[EMAIL PROTECTED]
> > > > > > > For additional commands, e-mail:
[EMAIL PROTECTED]
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Jesse Kuhnert
> > > > > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > > > >
> > > > > > Open source based consulting work centered around
> > > > > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Jesse Kuhnert
> > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > >
> > > Open source based consulting work centered around
> > > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]