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]