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

Reply via email to