You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Pedro Viegas <pv...@gmail.com> on 2006/08/21 00:52:53 UTC

Async form in Tap4.1 does not work...

Hi there.
Been trying to get a Tap4.1 form component to behave like a Tacos:AjaxForm
with no success.
If I understand correctly what I have to do is declare my form with
async="true" and have a submit with the updateComponents="some id", right?
I have the following example witch always does a normal full page submit.

test.html

<html jwcid="@Shell" title="Test page!" renderBaseTag="false"
      browserLogLevel="DEBUG" debugEnabled="true"
debugContainerId="dojoDebug"
      doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
1.0Transitional//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd&quot;">

<body jwcid="@Body">
    <span jwcid="@Insert" value="ognl:new java.util.Date()"
listener="formSubmit"/>
    <form jwcid="myform@Form" clientValidationEnabled="true" async="true">
               Project name: <input jwcid="name@TextField" value="ognl:name"
validators="validators:required"/> <br/>
               Project description: <input jwcid="description@TextField"
value="ognl:description" />
        <input jwcid="@Submit" updateComponents="results"/>
    </form>
    <div id="results">
        Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
        Description: <span jwcid="@Insert" value="ognl:description" />
    </div>
    <div id="dojoDebug" style="background-color: #DDD;">
       Debug goes here!
    </div>
</body>
</html>

test.page

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE page-specification PUBLIC
  "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
  "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">

<page-specification class="com.teamware.delegateit.view.pages.Test">
</page-specification>

test.java

public abstract class Test extends BasePageImplementation {

    @InitialValue("literal:delegateIt")
    public abstract String getName();
    @InitialValue("literal:A project management suite!")
    public abstract String getDescription();

    public void formSubmit(IRequestCycle cycle) {
        cycle.getResponseBuilder().updateComponent("results");
    }
}


The listener code with the ResponseBuilder.updateComponent is only a test
since is was not functioning. I think it should not even be necessary.
I'm using the 4.1.1SNAPSHOOT 20060815.
Anybody knows what's wrong?

Regards,


-- 
Pedro Viegas

Re: Async form in Tap4.1 does not work...

Posted by Pedro Viegas <pv...@gmail.com>.
Don't know how much is relevant but for what it helps here are the things I
spotted diferent of my own test case witch as I had stated works on IE but
not on FF.

In the shell component I add the undocumented parameter: ajaxEnabled="true"
In the updateComponent target I add the ID just in case also... <div jwcid="
testajax@Any" id="testajax">

I also have some things I think are completly irrelevant like dojo debug
enabled and in the form clientValidationEnabled="ognl:true" witch I think
has no impact on the submit process, only the field validation proccess.

Hope it helps.

On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
>
> It really is working. I don't get it though. I looked at the source code
> and
> changed my own code to look as much like it as possible so I could spot
> the
> problem. But still no ajax.
> This is the test I wrote:
>
> <html jwcid="@Shell" title="Test" disableCaching="true">
> <body jwcid="@Body">
>
> <form jwcid="@Form" async="ognl:true"
> updateComponents="ognl:{'testajax'}">
>         <input jwcid="@TextField" value="ognl:val"/>
>         <input jwcid="@Submit" value="Submit"/>
> </form>
>
> <div jwcid="testajax@Any">
>         <span jwcid="@Insert" value="ognl:val"/>
> </div>
>
> </body>
> </html>
>
> Where "val" is a String in the component's class.
>
> Is there something I'm doing wrong?
>
> Thanks,
> Denis
>
> -----Original Message-----
> From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> Sent: terça-feira, 22 de agosto de 2006 18:17
> To: Tapestry users
> Subject: Re: Async form in Tap4.1 does not work...
>
> They should be working on forms just fine.
>
> In fact, this form uses them here:
>
> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=S
> Dates
> .
>
>
>
> On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> >
> > The parameters are not implemented for Submit, but they already do exist
> > in
> > the Form component. Since Jesse replied that's fixed I thought it meant
> > ajax
> > should be working when using these parameters on a form.
> >
> > -----Original Message-----
> > From: Norbert Sándor [mailto:developer@erinors.com]
> > Sent: terça-feira, 22 de agosto de 2006 14:03
> > To: Tapestry users
> > Subject: Re: Async form in Tap4.1 does not work...
> >
> > As I know it is not yet implemented, I guess there are no such
> > parameters (async, updateComponents) for Submit, LinkSubmit, etc. yet.
> >
> > Regards,
> > Norbi
> >
> > Denis Souza wrote:
> > > I'm still having the same problem as Pedro. Submitting a form with
> ajax
> > only
> > > works when I use @EventListener. Using async=true and updateComponents
> > on
> > > the form component seem to have no effect. The form is always
> submitted
> > > normally (without ajax). Tried it with the latest snapshot
> > > (4.1.1-20060822.021102-19) and still no go.
> > >
> > > -----Original Message-----
> > > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > > To: Tapestry users
> > > Subject: Re: Async form in Tap4.1 does not work...
> > >
> > > Fixed.
> > >
> > > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >
> > >> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is
> > still
> > >> the same!
> > >>
> > >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >>
> > >>> I've been browsing the TimeTracker source to see if I can sort
> things
> > >>>
> > >> out.
> > >>
> > >>> I've found the parameter I mentioned... the shell's
> > ajaxEnabled="true".
> > >>>
> > >> I
> > >>
> > >>> set it up in my test code and no change. Huess it's allready true by
> > >>> default.
> > >>> Since
> http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> > >>> not mention it I'm only guessing.
> > >>> By what I gather from the TimeTracker code no ajax like form
> > submission
> > >>>
> > >> is
> > >>
> > >>> implemented. All ajax calls are made by @EventListener's setups. Is
> > the
> > >>>
> > >> form
> > >>
> > >>> ajax submit working? Has anybody got it working?
> > >>>
> > >>> Thanks,
> > >>>
> > >>>
> > >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >>>
> > >>>> Yep, sorry, I was messing things up a bit.
> > >>>> I corrected several errors I had on the code.
> > >>>> The form submits fine, all works but not asyncronously. It does a
> > >>>>
> > >> normal
> > >>
> > >>>> submit and not an ajax one.
> > >>>> The client side form validation is also not working. Only server
> > side.
> > >>>> So async mode is apparently not activating.
> > >>>> Any clues why? I seem to remember something on the mailing list a
> > >>>>
> > >> while
> > >>
> > >>>> back of activating ajax globally... maybe on the shell component?
> > >>>>
> > >> Something
> > >>
> > >>>> like that?
> > >>>>
> > >>>> My testcode is as follows...
> > >>>>
> > >>>>
> > >>>> .html
> > >>>>
> > >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > >>>> debugContainerId="dojoDebug"
> > >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > >>>>
> > >> 1.0Transitional//EN&quot;
> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > >>
> > >>>> transitional.dtd&quot;">
> > >>>>
> > >>>> <body jwcid="@Body">
> > >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> > >>>>     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
> > >>>>           async="ognl:true" updateComponents="ognl:{'results'}"
> > >>>> listener="listener:formSubmit">
> > >>>>
> > >>>>                Project name: <input jwcid="name@TextField "
> > >>>> value="ognl:name"
> > >>>>
> > validators="validators:required"/>
> > >>>> <br/>
> > >>>>                Project description: <input jwcid="
> > >>>>
> > >> description@TextField"
> > >>
> > >>>>                                            value="ognl:description"
> > />
> > >>>>         <input jwcid="@Submit"/>
> > >>>>
> > >>>>     </form>
> > >>>>     <div id="results">
> > >>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > >>>>         Description: <span jwcid="@Insert" value="ognl:description"
> > />
> > >>>>     </div>
> > >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > >>>>        Debug goes here!
> > >>>>     </div>
> > >>>> </body>
> > >>>> </html>
> > >>>>
> > >>>>  .java
> > >>>>
> > >>>> public abstract class Test extends BasePageImplementation {
> > >>>>
> > >>>>     @InitialValue("literal:delegateIt")
> > >>>>     public abstract String getName();
> > >>>>     @InitialValue("literal:A project management suite!")
> > >>>>     public abstract String getDescription();
> > >>>>
> > >>>>     public void formSubmit(IRequestCycle cycle) {
> > >>>>         getLogger().debug("Entered formSubmit");
> > >>>>         getLogger().debug("Name: "+getName());
> > >>>>         getLogger().debug("Description: "+getDescription());
> > >>>>     }
> > >>>> }
> > >>>>
> > >>>> Thanks,
> > >>>>
> > >>>>
> > >>>>
> > >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > >>>>
> > >>>>> I don't believe @Submit or similar components accept that
> parameter.
> > >>>>> (double
> > >>>>> check the docs, but I think that only applies to the @Form
> > >>>>> currently..or
> > >>>>> various links)
> > >>>>>
> > >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > >>>>>
> > >>>>>> Hi there.
> > >>>>>> Been trying to get a Tap4.1 form component to behave like a
> > >>>>>>
> > >>>>> Tacos:AjaxForm
> > >>>>>
> > >>>>>> with no success.
> > >>>>>> If I understand correctly what I have to do is declare my form
> > >>>>>>
> > >> with
> > >>
> > >>>>>> async="true" and have a submit with the updateComponents="some
> > >>>>>>
> > >> id",
> > >>
> > >>>>> right?
> > >>>>>
> > >>>>>> I have the following example witch always does a normal full page
> > >>>>>>
> > >>>>> submit.
> > >>>>>
> > >>>>>> test.html
> > >>>>>>
> > >>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > >>>>>> debugContainerId="dojoDebug"
> > >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > >>>>>> 1.0Transitional//EN&quot;
> > >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > >>>>>> transitional.dtd&quot;">
> > >>>>>>
> > >>>>>> <body jwcid="@Body">
> > >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > >>>>>> listener="formSubmit"/>
> > >>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
> > >>>>>>
> > >>>>> async="true">
> > >>>>>
> > >>>>>>                Project name: <input jwcid="name@TextField"
> > >>>>>> value="ognl:name"
> > >>>>>> validators="validators:required"/> <br/>
> > >>>>>>                Project description: <input jwcid="
> > >>>>>>
> > >>>>> description@TextField"
> > >>>>>
> > >>>>>> value="ognl:description" />
> > >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
> > >>>>>>     </form>
> > >>>>>>     <div id="results">
> > >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > >>>>>>         Description: <span jwcid="@Insert"
> > >>>>>>
> > >> value="ognl:description"
> > >>
> > >>>>> />
> > >>>>>
> > >>>>>>     </div>
> > >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > >>>>>>        Debug goes here!
> > >>>>>>     </div>
> > >>>>>> </body>
> > >>>>>> </html>
> > >>>>>>
> > >>>>>> test.page
> > >>>>>>
> > >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> > >>>>>> <!DOCTYPE page-specification PUBLIC
> > >>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> > >>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > >>>>>>
> > >>>>>> <page-specification class="
> com.teamware.delegateit.view.pages.Test
> > >>>>>>
> > >> ">
> > >>
> > >>>>>> </page-specification>
> > >>>>>>
> > >>>>>> test.java
> > >>>>>>
> > >>>>>> public abstract class Test extends BasePageImplementation {
> > >>>>>>
> > >>>>>>     @InitialValue("literal:delegateIt")
> > >>>>>>     public abstract String getName();
> > >>>>>>     @InitialValue("literal:A project management suite!")
> > >>>>>>     public abstract String getDescription();
> > >>>>>>
> > >>>>>>     public void formSubmit(IRequestCycle cycle) {
> > >>>>>>         cycle.getResponseBuilder ().updateComponent("results");
> > >>>>>>     }
> > >>>>>> }
> > >>>>>>
> > >>>>>>
> > >>>>>> The listener code with the ResponseBuilder.updateComponent is
> only
> > >>>>>>
> > >> a
> > >>
> > >>>>> test
> > >>>>>
> > >>>>>> since is was not functioning. I think it should not even be
> > >>>>>>
> > >>>>> necessary.
> > >>>>>
> > >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> > >>>>>> Anybody knows what's wrong?
> > >>>>>>
> > >>>>>> Regards,
> > >>>>>>
> > >>>>>>
> > >>>>>> --
> > >>>>>> Pedro Viegas
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>> --
> > >>>>> Jesse Kuhnert
> > >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > >>>>>
> > >>>>> Open source based consulting work centered around
> > >>>>> dojo/tapestry/tacos/hivemind.
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>> --
> > >>>> Pedro Viegas
> > >>>>
> > >>>>
> > >>>
> > >>> --
> > >>> Pedro Viegas
> > >>>
> > >>>
> > >>
> > >> --
> > >> Pedro Viegas
> > >>
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Pedro Viegas

Re: Async form in Tap4.1 does not work...

Posted by andyhot <an...@di.uoa.gr>.
This might also be useful for others:
http://www.tatanka.com.br/ies4linux/index-en.html

Uses wine and installs IE 6, 5.5 and 5... all downloaded
from windows update !


Pedro Viegas wrote:
> That solved it Jesse!
> It really was the cache.
> Guess those handy old SNAPSHOT JS scripts were in the way... obvious now
> that you pointed out! :-D
>
> By the way... on the undesired windows extra box subject, have you
> thought
> about VMWare?
> I use windows at home (argh... have to have it, don't ask why) but Ubunto
> Linux at work and solve the same necessity with VMWare... a VMWare
> windows
> instalation suspended takes 5 seconds to resume from file. Very nice
> solution. And you can have several test cases... only Mac OSX can't
> still be
> a VMWare machine! :-D maybe the day will still come...
>
> Thanks anyway... this is now officially 100% working! ;-)
>
> On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>>
>> What happens when you clear your browser cache?
>>
>> On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
>> >
>> > I tested on both IE6 and Firefox 1.5 with the same results on both:
>> > Workbench demo works, but my own code does not. :(
>> >
>> > -----Original Message-----
>> > From: Pedro Viegas [mailto:pviegas@gmail.com]
>> > Sent: terça-feira, 22 de agosto de 2006 19:19
>> > To: Tapestry users
>> > Subject: Re: Async form in Tap4.1 does not work...
>> >
>> > Got the bastard! It's a snicky little one!
>> >
>> > I also updated the last SNAPSHOT and the result are exactly the same.
>> > As Danis said, althought the Submit does not have the async parameters
>> the
>> > form does and so this should work.
>> > I tried the workbench demo link Jesse provided but it behaves
>> preciselly
>> > like we are describing. It issues a full page refresh, not a parcial
>> ajax
>> > request/refresh as we're trying to create. Can the problem be with the
>> > browsers we're using for the testing?
>> > I'm using a FF 1.5.0.6 on Windows.
>> >
>> > Out of curiosity I tried the same test case on IE 6.0.2900... and
>> guess
>> > what... it works.
>> > From previous posts I know Jesse's OS is Linux and his browser FF.
>> Maybe
>> > this issue only happens in FF on windows?
>> > Can you test this Jesse?
>> >
>> > So I vouch that the code works but in my tests only on IE.
>> > Denis, what's your browser?
>> >
>> > On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>> > >
>> > > They should be working on forms just fine.
>> > >
>> > > In fact, this form uses them here:
>> > >
>> > >
>> >
>> >
>> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=S
>>
>> > Dates
>> > > .
>> > >
>> > >
>> > >
>> > > On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
>> > > >
>> > > > The parameters are not implemented for Submit, but they already do
>> > exist
>> > > > in
>> > > > the Form component. Since Jesse replied that's fixed I thought it
>> > meant
>> > > > ajax
>> > > > should be working when using these parameters on a form.
>> > > >
>> > > > -----Original Message-----
>> > > > From: Norbert Sándor [mailto:developer@erinors.com]
>> > > > Sent: terça-feira, 22 de agosto de 2006 14:03
>> > > > To: Tapestry users
>> > > > Subject: Re: Async form in Tap4.1 does not work...
>> > > >
>> > > > As I know it is not yet implemented, I guess there are no such
>> > > > parameters (async, updateComponents) for Submit, LinkSubmit, etc.
>> yet.
>> > > >
>> > > > Regards,
>> > > > Norbi
>> > > >
>> > > > Denis Souza wrote:
>> > > > > I'm still having the same problem as Pedro. Submitting a form
>> with
>> > > ajax
>> > > > only
>> > > > > works when I use @EventListener. Using async=true and
>> > updateComponents
>> > > > on
>> > > > > the form component seem to have no effect. The form is always
>> > > submitted
>> > > > > normally (without ajax). Tried it with the latest snapshot
>> > > > > (4.1.1-20060822.021102-19) and still no go.
>> > > > >
>> > > > > -----Original Message-----
>> > > > > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
>> > > > > Sent: segunda-feira, 21 de agosto de 2006 23:14
>> > > > > To: Tapestry users
>> > > > > Subject: Re: Async form in Tap4.1 does not work...
>> > > > >
>> > > > > Fixed.
>> > > > >
>> > > > > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>> > > > >
>> > > > >> btw: tried it with the fresh SNAPSHOT of 20060819 and the
>> result
>> is
>> > > > still
>> > > > >> the same!
>> > > > >>
>> > > > >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>> > > > >>
>> > > > >>> I've been browsing the TimeTracker source to see if I can sort
>> > > things
>> > > > >>>
>> > > > >> out.
>> > > > >>
>> > > > >>> I've found the parameter I mentioned... the shell's
>> > > > ajaxEnabled="true".
>> > > > >>>
>> > > > >> I
>> > > > >>
>> > > > >>> set it up in my test code and no change. Huess it's allready
>> true
>> > by
>> > > > >>> default.
>> > > > >>> Since
>> > > http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
>> > > > >>> not mention it I'm only guessing.
>> > > > >>> By what I gather from the TimeTracker code no ajax like form
>> > > > submission
>> > > > >>>
>> > > > >> is
>> > > > >>
>> > > > >>> implemented. All ajax calls are made by @EventListener's
>> setups.
>> > Is
>> > > > the
>> > > > >>>
>> > > > >> form
>> > > > >>
>> > > > >>> ajax submit working? Has anybody got it working?
>> > > > >>>
>> > > > >>> Thanks,
>> > > > >>>
>> > > > >>>
>> > > > >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>> > > > >>>
>> > > > >>>> Yep, sorry, I was messing things up a bit.
>> > > > >>>> I corrected several errors I had on the code.
>> > > > >>>> The form submits fine, all works but not asyncronously. It
>> does
>> a
>> > > > >>>>
>> > > > >> normal
>> > > > >>
>> > > > >>>> submit and not an ajax one.
>> > > > >>>> The client side form validation is also not working. Only
>> server
>> > > > side.
>> > > > >>>> So async mode is apparently not activating.
>> > > > >>>> Any clues why? I seem to remember something on the mailing
>> list
>> a
>> > > > >>>>
>> > > > >> while
>> > > > >>
>> > > > >>>> back of activating ajax globally... maybe on the shell
>> component?
>> > > > >>>>
>> > > > >> Something
>> > > > >>
>> > > > >>>> like that?
>> > > > >>>>
>> > > > >>>> My testcode is as follows...
>> > > > >>>>
>> > > > >>>>
>> > > > >>>> .html
>> > > > >>>>
>> > > > >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
>> > > > >>>>       browserLogLevel="DEBUG" debugEnabled="true"
>> > > > >>>> debugContainerId="dojoDebug"
>> > > > >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
>> > > > >>>>
>> > > > >> 1.0Transitional//EN&quot;
>> > > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
>> > > > >>
>> > > > >>>> transitional.dtd&quot;">
>> > > > >>>>
>> > > > >>>> <body jwcid="@Body">
>> > > > >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
>> > > > >>>>     <form jwcid="myform@Form"
>> clientValidationEnabled="ognl:true"
>> > > > >>>>           async="ognl:true"
>> updateComponents="ognl:{'results'}"
>> > > > >>>> listener="listener:formSubmit">
>> > > > >>>>
>> > > > >>>>                Project name: <input jwcid="name@TextField "
>> > > > >>>> value="ognl:name"
>> > > > >>>>
>> > > > validators="validators:required"/>
>> > > > >>>> <br/>
>> > > > >>>>                Project description: <input jwcid="
>> > > > >>>>
>> > > > >> description@TextField"
>> > > > >>
>> > > >
>> > >>>>                                           
>> value="ognl:description"
>> > > > />
>> > > > >>>>         <input jwcid="@Submit"/>
>> > > > >>>>
>> > > > >>>>     </form>
>> > > > >>>>     <div id="results">
>> > > > >>>>         Name: <span jwcid="@Insert" value="ognl:name" />
>> <br/>
>> > > > >>>>         Description: <span jwcid="@Insert"
>> > value="ognl:description"
>> > > > />
>> > > > >>>>     </div>
>> > > > >>>>     <div id="dojoDebug" style="background-color: #DDD;">
>> > > > >>>>        Debug goes here!
>> > > > >>>>     </div>
>> > > > >>>> </body>
>> > > > >>>> </html>
>> > > > >>>>
>> > > > >>>>  .java
>> > > > >>>>
>> > > > >>>> public abstract class Test extends BasePageImplementation {
>> > > > >>>>
>> > > > >>>>     @InitialValue("literal:delegateIt")
>> > > > >>>>     public abstract String getName();
>> > > > >>>>     @InitialValue("literal:A project management suite!")
>> > > > >>>>     public abstract String getDescription();
>> > > > >>>>
>> > > > >>>>     public void formSubmit(IRequestCycle cycle) {
>> > > > >>>>         getLogger().debug("Entered formSubmit");
>> > > > >>>>         getLogger().debug("Name: "+getName());
>> > > > >>>>         getLogger().debug("Description: "+getDescription());
>> > > > >>>>     }
>> > > > >>>> }
>> > > > >>>>
>> > > > >>>> Thanks,
>> > > > >>>>
>> > > > >>>>
>> > > > >>>>
>> > > > >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>> > > > >>>>
>> > > > >>>>> I don't believe @Submit or similar components accept that
>> > > parameter.
>> > > > >>>>> (double
>> > > > >>>>> check the docs, but I think that only applies to the @Form
>> > > > >>>>> currently..or
>> > > > >>>>> various links)
>> > > > >>>>>
>> > > > >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
>> > > > >>>>>
>> > > > >>>>>> Hi there.
>> > > > >>>>>> Been trying to get a Tap4.1 form component to behave like a
>> > > > >>>>>>
>> > > > >>>>> Tacos:AjaxForm
>> > > > >>>>>
>> > > > >>>>>> with no success.
>> > > > >>>>>> If I understand correctly what I have to do is declare my
>> form
>> > > > >>>>>>
>> > > > >> with
>> > > > >>
>> > > > >>>>>> async="true" and have a submit with the
>> updateComponents="some
>> > > > >>>>>>
>> > > > >> id",
>> > > > >>
>> > > > >>>>> right?
>> > > > >>>>>
>> > > > >>>>>> I have the following example witch always does a normal
>> full
>> > page
>> > > > >>>>>>
>> > > > >>>>> submit.
>> > > > >>>>>
>> > > > >>>>>> test.html
>> > > > >>>>>>
>> > > > >>>>>> <html jwcid="@Shell" title="Test page!"
>> renderBaseTag="false"
>> > > > >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
>> > > > >>>>>> debugContainerId="dojoDebug"
>> > > > >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
>> > > > >>>>>> 1.0Transitional//EN&quot;
>> > > > >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
>> > > > >>>>>> transitional.dtd&quot;">
>> > > > >>>>>>
>> > > > >>>>>> <body jwcid="@Body">
>> > > > >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
>> > > > >>>>>> listener="formSubmit"/>
>> > > > >>>>>>     <form jwcid="myform@Form "
>> clientValidationEnabled="true"
>> > > > >>>>>>
>> > > > >>>>> async="true">
>> > > > >>>>>
>> > > > >>>>>>                Project name: <input jwcid="name@TextField"
>> > > > >>>>>> value="ognl:name"
>> > > > >>>>>> validators="validators:required"/> <br/>
>> > > > >>>>>>                Project description: <input jwcid="
>> > > > >>>>>>
>> > > > >>>>> description@TextField"
>> > > > >>>>>
>> > > > >>>>>> value="ognl:description" />
>> > > > >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
>> > > > >>>>>>     </form>
>> > > > >>>>>>     <div id="results">
>> > > > >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" />
>> <br/>
>> > > > >>>>>>         Description: <span jwcid="@Insert"
>> > > > >>>>>>
>> > > > >> value="ognl:description"
>> > > > >>
>> > > > >>>>> />
>> > > > >>>>>
>> > > > >>>>>>     </div>
>> > > > >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
>> > > > >>>>>>        Debug goes here!
>> > > > >>>>>>     </div>
>> > > > >>>>>> </body>
>> > > > >>>>>> </html>
>> > > > >>>>>>
>> > > > >>>>>> test.page
>> > > > >>>>>>
>> > > > >>>>>> <?xml version="1.0" encoding="UTF-8"?>
>> > > > >>>>>> <!DOCTYPE page-specification PUBLIC
>> > > > >>>>>>   "-//Apache Software Foundation//Tapestry Specification
>> 4.0
>> > //EN"
>> > > > >>>>>>  
>> "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
>> > > > >>>>>>
>> > > > >>>>>> <page-specification class="
>> > > com.teamware.delegateit.view.pages.Test
>> > > > >>>>>>
>> > > > >> ">
>> > > > >>
>> > > > >>>>>> </page-specification>
>> > > > >>>>>>
>> > > > >>>>>> test.java
>> > > > >>>>>>
>> > > > >>>>>> public abstract class Test extends BasePageImplementation {
>> > > > >>>>>>
>> > > > >>>>>>     @InitialValue("literal:delegateIt")
>> > > > >>>>>>     public abstract String getName();
>> > > > >>>>>>     @InitialValue("literal:A project management suite!")
>> > > > >>>>>>     public abstract String getDescription();
>> > > > >>>>>>
>> > > > >>>>>>     public void formSubmit(IRequestCycle cycle) {
>> > > > >>>>>>        
>> cycle.getResponseBuilder().updateComponent("results");
>> > > > >>>>>>     }
>> > > > >>>>>> }
>> > > > >>>>>>
>> > > > >>>>>>
>> > > > >>>>>> The listener code with the
>> ResponseBuilder.updateComponent is
>> > > only
>> > > > >>>>>>
>> > > > >> a
>> > > > >>
>> > > > >>>>> test
>> > > > >>>>>
>> > > > >>>>>> since is was not functioning. I think it should not even be
>> > > > >>>>>>
>> > > > >>>>> necessary.
>> > > > >>>>>
>> > > > >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
>> > > > >>>>>> Anybody knows what's wrong?
>> > > > >>>>>>
>> > > > >>>>>> Regards,
>> > > > >>>>>>
>> > > > >>>>>>
>> > > > >>>>>> --
>> > > > >>>>>> Pedro Viegas
>> > > > >>>>>>
>> > > > >>>>>>
>> > > > >>>>>>
>> > > > >>>>> --
>> > > > >>>>> Jesse Kuhnert
>> > > > >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>> > > > >>>>>
>> > > > >>>>> Open source based consulting work centered around
>> > > > >>>>> dojo/tapestry/tacos/hivemind.
>> > > > >>>>>
>> > > > >>>>>
>> > > > >>>>>
>> > > > >>>> --
>> > > > >>>> Pedro Viegas
>> > > > >>>>
>> > > > >>>>
>> > > > >>>
>> > > > >>> --
>> > > > >>> Pedro Viegas
>> > > > >>>
>> > > > >>>
>> > > > >>
>> > > > >> --
>> > > > >> Pedro Viegas
>> > > > >>
>> > > > >>
>> > > > >>
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > > >
>> ---------------------------------------------------------------------
>> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > > > For additional commands, e-mail: users-help@tapestry.apache.org
>> > > >
>> > > >
>> > > >
>> ---------------------------------------------------------------------
>> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > > > For additional commands, e-mail: users-help@tapestry.apache.org
>> > > >
>> > > >
>> > >
>> > >
>> > > --
>> > > Jesse Kuhnert
>> > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
>> > >
>> > > Open source based consulting work centered around
>> > > dojo/tapestry/tacos/hivemind.
>> > >
>> > >
>> >
>> >
>> > --
>> > Pedro Viegas
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: users-help@tapestry.apache.org
>> >
>> >
>>
>>
>> -- 
>> Jesse Kuhnert
>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>>
>> Open source based consulting work centered around
>> dojo/tapestry/tacos/hivemind.
>>
>>
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Async form in Tap4.1 does not work...

Posted by Pedro Viegas <pv...@gmail.com>.
I don't envy you.... but we all sure admire and apreciate your efforts
Jesse! ;-)
Do go on... :-D

On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> Besides Josh, who I've apparently crippled with my radical body script
> change. (I think Norbert is affected as well.) Oops...Sorry guys...Will be
> done in a matter of hours.. :/
>
> On 8/22/06, Pedro Viegas <pv...@gmail.com> wrote:
> >
> > That solved it Jesse!
> > It really was the cache.
> > Guess those handy old SNAPSHOT JS scripts were in the way... obvious now
> > that you pointed out! :-D
> >
> > By the way... on the undesired windows extra box subject, have you
> thought
> > about VMWare?
> > I use windows at home (argh... have to have it, don't ask why) but
> Ubunto
> > Linux at work and solve the same necessity with VMWare... a VMWare
> windows
> > instalation suspended takes 5 seconds to resume from file. Very nice
> > solution. And you can have several test cases... only Mac OSX can't
> still
> > be
> > a VMWare machine! :-D maybe the day will still come...
> >
> > Thanks anyway... this is now officially 100% working! ;-)
> >
> > On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > >
> > > What happens when you clear your browser cache?
> > >
> > > On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> > > >
> > > > I tested on both IE6 and Firefox 1.5 with the same results on both:
> > > > Workbench demo works, but my own code does not. :(
> > > >
> > > > -----Original Message-----
> > > > From: Pedro Viegas [mailto:pviegas@gmail.com]
> > > > Sent: terça-feira, 22 de agosto de 2006 19:19
> > > > To: Tapestry users
> > > > Subject: Re: Async form in Tap4.1 does not work...
> > > >
> > > > Got the bastard! It's a snicky little one!
> > > >
> > > > I also updated the last SNAPSHOT and the result are exactly the
> same.
> > > > As Danis said, althought the Submit does not have the async
> parameters
> > > the
> > > > form does and so this should work.
> > > > I tried the workbench demo link Jesse provided but it behaves
> > preciselly
> > > > like we are describing. It issues a full page refresh, not a parcial
> > > ajax
> > > > request/refresh as we're trying to create. Can the problem be with
> the
> > > > browsers we're using for the testing?
> > > > I'm using a FF 1.5.0.6 on Windows.
> > > >
> > > > Out of curiosity I tried the same test case on IE 6.0.2900... and
> > guess
> > > > what... it works.
> > > > From previous posts I know Jesse's OS is Linux and his browser FF.
> > Maybe
> > > > this issue only happens in FF on windows?
> > > > Can you test this Jesse?
> > > >
> > > > So I vouch that the code works but in my tests only on IE.
> > > > Denis, what's your browser?
> > > >
> > > > On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > > >
> > > > > They should be working on forms just fine.
> > > > >
> > > > > In fact, this form uses them here:
> > > > >
> > > > >
> > > >
> > > >
> > >
> >
> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=S
> > > > Dates
> > > > > .
> > > > >
> > > > >
> > > > >
> > > > > On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> > > > > >
> > > > > > The parameters are not implemented for Submit, but they already
> do
> > > > exist
> > > > > > in
> > > > > > the Form component. Since Jesse replied that's fixed I thought
> it
> > > > meant
> > > > > > ajax
> > > > > > should be working when using these parameters on a form.
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Norbert Sándor [mailto:developer@erinors.com]
> > > > > > Sent: terça-feira, 22 de agosto de 2006 14:03
> > > > > > To: Tapestry users
> > > > > > Subject: Re: Async form in Tap4.1 does not work...
> > > > > >
> > > > > > As I know it is not yet implemented, I guess there are no such
> > > > > > parameters (async, updateComponents) for Submit, LinkSubmit,
> etc.
> > > yet.
> > > > > >
> > > > > > Regards,
> > > > > > Norbi
> > > > > >
> > > > > > Denis Souza wrote:
> > > > > > > I'm still having the same problem as Pedro. Submitting a form
> > with
> > > > > ajax
> > > > > > only
> > > > > > > works when I use @EventListener. Using async=true and
> > > > updateComponents
> > > > > > on
> > > > > > > the form component seem to have no effect. The form is always
> > > > > submitted
> > > > > > > normally (without ajax). Tried it with the latest snapshot
> > > > > > > (4.1.1-20060822.021102-19) and still no go.
> > > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > > > > > > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > > > > > > To: Tapestry users
> > > > > > > Subject: Re: Async form in Tap4.1 does not work...
> > > > > > >
> > > > > > > Fixed.
> > > > > > >
> > > > > > > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > > > >
> > > > > > >> btw: tried it with the fresh SNAPSHOT of 20060819 and the
> > result
> > > is
> > > > > > still
> > > > > > >> the same!
> > > > > > >>
> > > > > > >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > > > >>
> > > > > > >>> I've been browsing the TimeTracker source to see if I can
> sort
> > > > > things
> > > > > > >>>
> > > > > > >> out.
> > > > > > >>
> > > > > > >>> I've found the parameter I mentioned... the shell's
> > > > > > ajaxEnabled="true".
> > > > > > >>>
> > > > > > >> I
> > > > > > >>
> > > > > > >>> set it up in my test code and no change. Huess it's allready
> > > true
> > > > by
> > > > > > >>> default.
> > > > > > >>> Since
> > > > > http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> > > > > > >>> not mention it I'm only guessing.
> > > > > > >>> By what I gather from the TimeTracker code no ajax like form
> > > > > > submission
> > > > > > >>>
> > > > > > >> is
> > > > > > >>
> > > > > > >>> implemented. All ajax calls are made by @EventListener's
> > setups.
> > > > Is
> > > > > > the
> > > > > > >>>
> > > > > > >> form
> > > > > > >>
> > > > > > >>> ajax submit working? Has anybody got it working?
> > > > > > >>>
> > > > > > >>> Thanks,
> > > > > > >>>
> > > > > > >>>
> > > > > > >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > > > >>>
> > > > > > >>>> Yep, sorry, I was messing things up a bit.
> > > > > > >>>> I corrected several errors I had on the code.
> > > > > > >>>> The form submits fine, all works but not asyncronously. It
> > does
> > > a
> > > > > > >>>>
> > > > > > >> normal
> > > > > > >>
> > > > > > >>>> submit and not an ajax one.
> > > > > > >>>> The client side form validation is also not working. Only
> > > server
> > > > > > side.
> > > > > > >>>> So async mode is apparently not activating.
> > > > > > >>>> Any clues why? I seem to remember something on the mailing
> > list
> > > a
> > > > > > >>>>
> > > > > > >> while
> > > > > > >>
> > > > > > >>>> back of activating ajax globally... maybe on the shell
> > > component?
> > > > > > >>>>
> > > > > > >> Something
> > > > > > >>
> > > > > > >>>> like that?
> > > > > > >>>>
> > > > > > >>>> My testcode is as follows...
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> .html
> > > > > > >>>>
> > > > > > >>>> <html jwcid="@Shell" title="Test page!"
> renderBaseTag="false"
> > > > > > >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > > > > >>>> debugContainerId="dojoDebug"
> > > > > > >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > > > > >>>>
> > > > > > >> 1.0Transitional//EN&quot;
> > > > > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > > > >>
> > > > > > >>>> transitional.dtd&quot;">
> > > > > > >>>>
> > > > > > >>>> <body jwcid="@Body">
> > > > > > >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date
> ()"/>
> > > > > > >>>>     <form jwcid="myform@Form"
> > > clientValidationEnabled="ognl:true"
> > > > > > >>>>           async="ognl:true"
> > updateComponents="ognl:{'results'}"
> > > > > > >>>> listener="listener:formSubmit">
> > > > > > >>>>
> > > > > > >>>>                Project name: <input jwcid="name@TextField "
> > > > > > >>>> value="ognl:name"
> > > > > > >>>>
> > > > > > validators="validators:required"/>
> > > > > > >>>> <br/>
> > > > > > >>>>                Project description: <input jwcid="
> > > > > > >>>>
> > > > > > >> description@TextField"
> > > > > > >>
> > > > > >
> > > >
> > >>>>                                            value="ognl:description"
> > > > > > />
> > > > > > >>>>         <input jwcid="@Submit"/>
> > > > > > >>>>
> > > > > > >>>>     </form>
> > > > > > >>>>     <div id="results">
> > > > > > >>>>         Name: <span jwcid="@Insert" value="ognl:name" />
> > <br/>
> > > > > > >>>>         Description: <span jwcid="@Insert"
> > > > value="ognl:description"
> > > > > > />
> > > > > > >>>>     </div>
> > > > > > >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > > > > >>>>        Debug goes here!
> > > > > > >>>>     </div>
> > > > > > >>>> </body>
> > > > > > >>>> </html>
> > > > > > >>>>
> > > > > > >>>>  .java
> > > > > > >>>>
> > > > > > >>>> public abstract class Test extends BasePageImplementation {
> > > > > > >>>>
> > > > > > >>>>     @InitialValue("literal:delegateIt")
> > > > > > >>>>     public abstract String getName();
> > > > > > >>>>     @InitialValue("literal:A project management suite!")
> > > > > > >>>>     public abstract String getDescription();
> > > > > > >>>>
> > > > > > >>>>     public void formSubmit(IRequestCycle cycle) {
> > > > > > >>>>         getLogger().debug("Entered formSubmit");
> > > > > > >>>>         getLogger().debug("Name: "+getName());
> > > > > > >>>>         getLogger().debug("Description:
> "+getDescription());
> > > > > > >>>>     }
> > > > > > >>>> }
> > > > > > >>>>
> > > > > > >>>> Thanks,
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > > > > >>>>
> > > > > > >>>>> I don't believe @Submit or similar components accept that
> > > > > parameter.
> > > > > > >>>>> (double
> > > > > > >>>>> check the docs, but I think that only applies to the @Form
> > > > > > >>>>> currently..or
> > > > > > >>>>> various links)
> > > > > > >>>>>
> > > > > > >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > > > > > >>>>>
> > > > > > >>>>>> Hi there.
> > > > > > >>>>>> Been trying to get a Tap4.1 form component to behave like
> a
> > > > > > >>>>>>
> > > > > > >>>>> Tacos:AjaxForm
> > > > > > >>>>>
> > > > > > >>>>>> with no success.
> > > > > > >>>>>> If I understand correctly what I have to do is declare my
> > > form
> > > > > > >>>>>>
> > > > > > >> with
> > > > > > >>
> > > > > > >>>>>> async="true" and have a submit with the
> > > updateComponents="some
> > > > > > >>>>>>
> > > > > > >> id",
> > > > > > >>
> > > > > > >>>>> right?
> > > > > > >>>>>
> > > > > > >>>>>> I have the following example witch always does a normal
> > full
> > > > page
> > > > > > >>>>>>
> > > > > > >>>>> submit.
> > > > > > >>>>>
> > > > > > >>>>>> test.html
> > > > > > >>>>>>
> > > > > > >>>>>> <html jwcid="@Shell" title="Test page!"
> > renderBaseTag="false"
> > > > > > >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > > > > >>>>>> debugContainerId="dojoDebug"
> > > > > > >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD
> XHTML
> > > > > > >>>>>> 1.0Transitional//EN&quot;
> > > > > > >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > > > >>>>>> transitional.dtd&quot;">
> > > > > > >>>>>>
> > > > > > >>>>>> <body jwcid="@Body">
> > > > > > >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date
> ()"
> > > > > > >>>>>> listener="formSubmit"/>
> > > > > > >>>>>>     <form jwcid="myform@Form "
> > clientValidationEnabled="true"
> > > > > > >>>>>>
> > > > > > >>>>> async="true">
> > > > > > >>>>>
> > > > > > >>>>>>                Project name: <input jwcid="name@TextField
> "
> > > > > > >>>>>> value="ognl:name"
> > > > > > >>>>>> validators="validators:required"/> <br/>
> > > > > > >>>>>>                Project description: <input jwcid="
> > > > > > >>>>>>
> > > > > > >>>>> description@TextField"
> > > > > > >>>>>
> > > > > > >>>>>> value="ognl:description" />
> > > > > > >>>>>>         <input jwcid="@Submit"
> updateComponents="results"/>
> > > > > > >>>>>>     </form>
> > > > > > >>>>>>     <div id="results">
> > > > > > >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" />
> > > <br/>
> > > > > > >>>>>>         Description: <span jwcid="@Insert"
> > > > > > >>>>>>
> > > > > > >> value="ognl:description"
> > > > > > >>
> > > > > > >>>>> />
> > > > > > >>>>>
> > > > > > >>>>>>     </div>
> > > > > > >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > > > > >>>>>>        Debug goes here!
> > > > > > >>>>>>     </div>
> > > > > > >>>>>> </body>
> > > > > > >>>>>> </html>
> > > > > > >>>>>>
> > > > > > >>>>>> test.page
> > > > > > >>>>>>
> > > > > > >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> > > > > > >>>>>> <!DOCTYPE page-specification PUBLIC
> > > > > > >>>>>>   "-//Apache Software Foundation//Tapestry Specification
> > 4.0
> > > > //EN"
> > > > > > >>>>>>   "
> http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
> > > > > > >>>>>>
> > > > > > >>>>>> <page-specification class="
> > > > > com.teamware.delegateit.view.pages.Test
> > > > > > >>>>>>
> > > > > > >> ">
> > > > > > >>
> > > > > > >>>>>> </page-specification>
> > > > > > >>>>>>
> > > > > > >>>>>> test.java
> > > > > > >>>>>>
> > > > > > >>>>>> public abstract class Test extends BasePageImplementation
> {
> > > > > > >>>>>>
> > > > > > >>>>>>     @InitialValue("literal:delegateIt")
> > > > > > >>>>>>     public abstract String getName();
> > > > > > >>>>>>     @InitialValue("literal:A project management suite!")
> > > > > > >>>>>>     public abstract String getDescription();
> > > > > > >>>>>>
> > > > > > >>>>>>     public void formSubmit(IRequestCycle cycle) {
> > > > > > >>>>>>         cycle.getResponseBuilder
> > ().updateComponent("results");
> > > > > > >>>>>>     }
> > > > > > >>>>>> }
> > > > > > >>>>>>
> > > > > > >>>>>>
> > > > > > >>>>>> The listener code with the
> ResponseBuilder.updateComponentis
> > > > > only
> > > > > > >>>>>>
> > > > > > >> a
> > > > > > >>
> > > > > > >>>>> test
> > > > > > >>>>>
> > > > > > >>>>>> since is was not functioning. I think it should not even
> be
> > > > > > >>>>>>
> > > > > > >>>>> necessary.
> > > > > > >>>>>
> > > > > > >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> > > > > > >>>>>> Anybody knows what's wrong?
> > > > > > >>>>>>
> > > > > > >>>>>> Regards,
> > > > > > >>>>>>
> > > > > > >>>>>>
> > > > > > >>>>>> --
> > > > > > >>>>>> Pedro Viegas
> > > > > > >>>>>>
> > > > > > >>>>>>
> > > > > > >>>>>>
> > > > > > >>>>> --
> > > > > > >>>>> Jesse Kuhnert
> > > > > > >>>>> Tapestry/Dojo/(and a dash of TestNG), team
> member/developer
> > > > > > >>>>>
> > > > > > >>>>> Open source based consulting work centered around
> > > > > > >>>>> dojo/tapestry/tacos/hivemind.
> > > > > > >>>>>
> > > > > > >>>>>
> > > > > > >>>>>
> > > > > > >>>> --
> > > > > > >>>> Pedro Viegas
> > > > > > >>>>
> > > > > > >>>>
> > > > > > >>>
> > > > > > >>> --
> > > > > > >>> Pedro Viegas
> > > > > > >>>
> > > > > > >>>
> > > > > > >>
> > > > > > >> --
> > > > > > >> Pedro Viegas
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > > >
> > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Jesse Kuhnert
> > > > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > > >
> > > > > Open source based consulting work centered around
> > > > > dojo/tapestry/tacos/hivemind.
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Pedro Viegas
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Jesse Kuhnert
> > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > >
> > > Open source based consulting work centered around
> > > dojo/tapestry/tacos/hivemind.
> > >
> > >
> >
> >
> > --
> > Pedro Viegas
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>


-- 
Pedro Viegas

Re: Async form in Tap4.1 does not work...

Posted by Jesse Kuhnert <jk...@gmail.com>.
Besides Josh, who I've apparently crippled with my radical body script
change. (I think Norbert is affected as well.) Oops...Sorry guys...Will be
done in a matter of hours.. :/

On 8/22/06, Pedro Viegas <pv...@gmail.com> wrote:
>
> That solved it Jesse!
> It really was the cache.
> Guess those handy old SNAPSHOT JS scripts were in the way... obvious now
> that you pointed out! :-D
>
> By the way... on the undesired windows extra box subject, have you thought
> about VMWare?
> I use windows at home (argh... have to have it, don't ask why) but Ubunto
> Linux at work and solve the same necessity with VMWare... a VMWare windows
> instalation suspended takes 5 seconds to resume from file. Very nice
> solution. And you can have several test cases... only Mac OSX can't still
> be
> a VMWare machine! :-D maybe the day will still come...
>
> Thanks anyway... this is now officially 100% working! ;-)
>
> On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> >
> > What happens when you clear your browser cache?
> >
> > On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> > >
> > > I tested on both IE6 and Firefox 1.5 with the same results on both:
> > > Workbench demo works, but my own code does not. :(
> > >
> > > -----Original Message-----
> > > From: Pedro Viegas [mailto:pviegas@gmail.com]
> > > Sent: terça-feira, 22 de agosto de 2006 19:19
> > > To: Tapestry users
> > > Subject: Re: Async form in Tap4.1 does not work...
> > >
> > > Got the bastard! It's a snicky little one!
> > >
> > > I also updated the last SNAPSHOT and the result are exactly the same.
> > > As Danis said, althought the Submit does not have the async parameters
> > the
> > > form does and so this should work.
> > > I tried the workbench demo link Jesse provided but it behaves
> preciselly
> > > like we are describing. It issues a full page refresh, not a parcial
> > ajax
> > > request/refresh as we're trying to create. Can the problem be with the
> > > browsers we're using for the testing?
> > > I'm using a FF 1.5.0.6 on Windows.
> > >
> > > Out of curiosity I tried the same test case on IE 6.0.2900... and
> guess
> > > what... it works.
> > > From previous posts I know Jesse's OS is Linux and his browser FF.
> Maybe
> > > this issue only happens in FF on windows?
> > > Can you test this Jesse?
> > >
> > > So I vouch that the code works but in my tests only on IE.
> > > Denis, what's your browser?
> > >
> > > On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > >
> > > > They should be working on forms just fine.
> > > >
> > > > In fact, this form uses them here:
> > > >
> > > >
> > >
> > >
> >
> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=S
> > > Dates
> > > > .
> > > >
> > > >
> > > >
> > > > On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> > > > >
> > > > > The parameters are not implemented for Submit, but they already do
> > > exist
> > > > > in
> > > > > the Form component. Since Jesse replied that's fixed I thought it
> > > meant
> > > > > ajax
> > > > > should be working when using these parameters on a form.
> > > > >
> > > > > -----Original Message-----
> > > > > From: Norbert Sándor [mailto:developer@erinors.com]
> > > > > Sent: terça-feira, 22 de agosto de 2006 14:03
> > > > > To: Tapestry users
> > > > > Subject: Re: Async form in Tap4.1 does not work...
> > > > >
> > > > > As I know it is not yet implemented, I guess there are no such
> > > > > parameters (async, updateComponents) for Submit, LinkSubmit, etc.
> > yet.
> > > > >
> > > > > Regards,
> > > > > Norbi
> > > > >
> > > > > Denis Souza wrote:
> > > > > > I'm still having the same problem as Pedro. Submitting a form
> with
> > > > ajax
> > > > > only
> > > > > > works when I use @EventListener. Using async=true and
> > > updateComponents
> > > > > on
> > > > > > the form component seem to have no effect. The form is always
> > > > submitted
> > > > > > normally (without ajax). Tried it with the latest snapshot
> > > > > > (4.1.1-20060822.021102-19) and still no go.
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > > > > > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > > > > > To: Tapestry users
> > > > > > Subject: Re: Async form in Tap4.1 does not work...
> > > > > >
> > > > > > Fixed.
> > > > > >
> > > > > > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > > >
> > > > > >> btw: tried it with the fresh SNAPSHOT of 20060819 and the
> result
> > is
> > > > > still
> > > > > >> the same!
> > > > > >>
> > > > > >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > > >>
> > > > > >>> I've been browsing the TimeTracker source to see if I can sort
> > > > things
> > > > > >>>
> > > > > >> out.
> > > > > >>
> > > > > >>> I've found the parameter I mentioned... the shell's
> > > > > ajaxEnabled="true".
> > > > > >>>
> > > > > >> I
> > > > > >>
> > > > > >>> set it up in my test code and no change. Huess it's allready
> > true
> > > by
> > > > > >>> default.
> > > > > >>> Since
> > > > http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> > > > > >>> not mention it I'm only guessing.
> > > > > >>> By what I gather from the TimeTracker code no ajax like form
> > > > > submission
> > > > > >>>
> > > > > >> is
> > > > > >>
> > > > > >>> implemented. All ajax calls are made by @EventListener's
> setups.
> > > Is
> > > > > the
> > > > > >>>
> > > > > >> form
> > > > > >>
> > > > > >>> ajax submit working? Has anybody got it working?
> > > > > >>>
> > > > > >>> Thanks,
> > > > > >>>
> > > > > >>>
> > > > > >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > > >>>
> > > > > >>>> Yep, sorry, I was messing things up a bit.
> > > > > >>>> I corrected several errors I had on the code.
> > > > > >>>> The form submits fine, all works but not asyncronously. It
> does
> > a
> > > > > >>>>
> > > > > >> normal
> > > > > >>
> > > > > >>>> submit and not an ajax one.
> > > > > >>>> The client side form validation is also not working. Only
> > server
> > > > > side.
> > > > > >>>> So async mode is apparently not activating.
> > > > > >>>> Any clues why? I seem to remember something on the mailing
> list
> > a
> > > > > >>>>
> > > > > >> while
> > > > > >>
> > > > > >>>> back of activating ajax globally... maybe on the shell
> > component?
> > > > > >>>>
> > > > > >> Something
> > > > > >>
> > > > > >>>> like that?
> > > > > >>>>
> > > > > >>>> My testcode is as follows...
> > > > > >>>>
> > > > > >>>>
> > > > > >>>> .html
> > > > > >>>>
> > > > > >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > > > >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > > > >>>> debugContainerId="dojoDebug"
> > > > > >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > > > >>>>
> > > > > >> 1.0Transitional//EN&quot;
> > > > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > > >>
> > > > > >>>> transitional.dtd&quot;">
> > > > > >>>>
> > > > > >>>> <body jwcid="@Body">
> > > > > >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> > > > > >>>>     <form jwcid="myform@Form"
> > clientValidationEnabled="ognl:true"
> > > > > >>>>           async="ognl:true"
> updateComponents="ognl:{'results'}"
> > > > > >>>> listener="listener:formSubmit">
> > > > > >>>>
> > > > > >>>>                Project name: <input jwcid="name@TextField "
> > > > > >>>> value="ognl:name"
> > > > > >>>>
> > > > > validators="validators:required"/>
> > > > > >>>> <br/>
> > > > > >>>>                Project description: <input jwcid="
> > > > > >>>>
> > > > > >> description@TextField"
> > > > > >>
> > > > >
> > >
> >>>>                                            value="ognl:description"
> > > > > />
> > > > > >>>>         <input jwcid="@Submit"/>
> > > > > >>>>
> > > > > >>>>     </form>
> > > > > >>>>     <div id="results">
> > > > > >>>>         Name: <span jwcid="@Insert" value="ognl:name" />
> <br/>
> > > > > >>>>         Description: <span jwcid="@Insert"
> > > value="ognl:description"
> > > > > />
> > > > > >>>>     </div>
> > > > > >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > > > >>>>        Debug goes here!
> > > > > >>>>     </div>
> > > > > >>>> </body>
> > > > > >>>> </html>
> > > > > >>>>
> > > > > >>>>  .java
> > > > > >>>>
> > > > > >>>> public abstract class Test extends BasePageImplementation {
> > > > > >>>>
> > > > > >>>>     @InitialValue("literal:delegateIt")
> > > > > >>>>     public abstract String getName();
> > > > > >>>>     @InitialValue("literal:A project management suite!")
> > > > > >>>>     public abstract String getDescription();
> > > > > >>>>
> > > > > >>>>     public void formSubmit(IRequestCycle cycle) {
> > > > > >>>>         getLogger().debug("Entered formSubmit");
> > > > > >>>>         getLogger().debug("Name: "+getName());
> > > > > >>>>         getLogger().debug("Description: "+getDescription());
> > > > > >>>>     }
> > > > > >>>> }
> > > > > >>>>
> > > > > >>>> Thanks,
> > > > > >>>>
> > > > > >>>>
> > > > > >>>>
> > > > > >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > > > >>>>
> > > > > >>>>> I don't believe @Submit or similar components accept that
> > > > parameter.
> > > > > >>>>> (double
> > > > > >>>>> check the docs, but I think that only applies to the @Form
> > > > > >>>>> currently..or
> > > > > >>>>> various links)
> > > > > >>>>>
> > > > > >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > > > > >>>>>
> > > > > >>>>>> Hi there.
> > > > > >>>>>> Been trying to get a Tap4.1 form component to behave like a
> > > > > >>>>>>
> > > > > >>>>> Tacos:AjaxForm
> > > > > >>>>>
> > > > > >>>>>> with no success.
> > > > > >>>>>> If I understand correctly what I have to do is declare my
> > form
> > > > > >>>>>>
> > > > > >> with
> > > > > >>
> > > > > >>>>>> async="true" and have a submit with the
> > updateComponents="some
> > > > > >>>>>>
> > > > > >> id",
> > > > > >>
> > > > > >>>>> right?
> > > > > >>>>>
> > > > > >>>>>> I have the following example witch always does a normal
> full
> > > page
> > > > > >>>>>>
> > > > > >>>>> submit.
> > > > > >>>>>
> > > > > >>>>>> test.html
> > > > > >>>>>>
> > > > > >>>>>> <html jwcid="@Shell" title="Test page!"
> renderBaseTag="false"
> > > > > >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > > > >>>>>> debugContainerId="dojoDebug"
> > > > > >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > > > >>>>>> 1.0Transitional//EN&quot;
> > > > > >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > > >>>>>> transitional.dtd&quot;">
> > > > > >>>>>>
> > > > > >>>>>> <body jwcid="@Body">
> > > > > >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > > > > >>>>>> listener="formSubmit"/>
> > > > > >>>>>>     <form jwcid="myform@Form "
> clientValidationEnabled="true"
> > > > > >>>>>>
> > > > > >>>>> async="true">
> > > > > >>>>>
> > > > > >>>>>>                Project name: <input jwcid="name@TextField"
> > > > > >>>>>> value="ognl:name"
> > > > > >>>>>> validators="validators:required"/> <br/>
> > > > > >>>>>>                Project description: <input jwcid="
> > > > > >>>>>>
> > > > > >>>>> description@TextField"
> > > > > >>>>>
> > > > > >>>>>> value="ognl:description" />
> > > > > >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
> > > > > >>>>>>     </form>
> > > > > >>>>>>     <div id="results">
> > > > > >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" />
> > <br/>
> > > > > >>>>>>         Description: <span jwcid="@Insert"
> > > > > >>>>>>
> > > > > >> value="ognl:description"
> > > > > >>
> > > > > >>>>> />
> > > > > >>>>>
> > > > > >>>>>>     </div>
> > > > > >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > > > >>>>>>        Debug goes here!
> > > > > >>>>>>     </div>
> > > > > >>>>>> </body>
> > > > > >>>>>> </html>
> > > > > >>>>>>
> > > > > >>>>>> test.page
> > > > > >>>>>>
> > > > > >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> > > > > >>>>>> <!DOCTYPE page-specification PUBLIC
> > > > > >>>>>>   "-//Apache Software Foundation//Tapestry Specification
> 4.0
> > > //EN"
> > > > > >>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
> > > > > >>>>>>
> > > > > >>>>>> <page-specification class="
> > > > com.teamware.delegateit.view.pages.Test
> > > > > >>>>>>
> > > > > >> ">
> > > > > >>
> > > > > >>>>>> </page-specification>
> > > > > >>>>>>
> > > > > >>>>>> test.java
> > > > > >>>>>>
> > > > > >>>>>> public abstract class Test extends BasePageImplementation {
> > > > > >>>>>>
> > > > > >>>>>>     @InitialValue("literal:delegateIt")
> > > > > >>>>>>     public abstract String getName();
> > > > > >>>>>>     @InitialValue("literal:A project management suite!")
> > > > > >>>>>>     public abstract String getDescription();
> > > > > >>>>>>
> > > > > >>>>>>     public void formSubmit(IRequestCycle cycle) {
> > > > > >>>>>>         cycle.getResponseBuilder
> ().updateComponent("results");
> > > > > >>>>>>     }
> > > > > >>>>>> }
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>> The listener code with the ResponseBuilder.updateComponentis
> > > > only
> > > > > >>>>>>
> > > > > >> a
> > > > > >>
> > > > > >>>>> test
> > > > > >>>>>
> > > > > >>>>>> since is was not functioning. I think it should not even be
> > > > > >>>>>>
> > > > > >>>>> necessary.
> > > > > >>>>>
> > > > > >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> > > > > >>>>>> Anybody knows what's wrong?
> > > > > >>>>>>
> > > > > >>>>>> Regards,
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>> --
> > > > > >>>>>> Pedro Viegas
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>> --
> > > > > >>>>> Jesse Kuhnert
> > > > > >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > > > >>>>>
> > > > > >>>>> Open source based consulting work centered around
> > > > > >>>>> dojo/tapestry/tacos/hivemind.
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>> --
> > > > > >>>> Pedro Viegas
> > > > > >>>>
> > > > > >>>>
> > > > > >>>
> > > > > >>> --
> > > > > >>> Pedro Viegas
> > > > > >>>
> > > > > >>>
> > > > > >>
> > > > > >> --
> > > > > >> Pedro Viegas
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Jesse Kuhnert
> > > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > >
> > > > Open source based consulting work centered around
> > > > dojo/tapestry/tacos/hivemind.
> > > >
> > > >
> > >
> > >
> > > --
> > > Pedro Viegas
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind.
> >
> >
>
>
> --
> Pedro Viegas
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

RE: Async form in Tap4.1 does not work...

Posted by Denis Souza <de...@camerum.com.br>.
Yes, solved it for me too. Thanks Jesse!

-----Original Message-----
From: Pedro Viegas [mailto:pviegas@gmail.com] 
Sent: terça-feira, 22 de agosto de 2006 19:48
To: Tapestry users
Subject: Re: Async form in Tap4.1 does not work...

That solved it Jesse!
It really was the cache.
Guess those handy old SNAPSHOT JS scripts were in the way... obvious now
that you pointed out! :-D

By the way... on the undesired windows extra box subject, have you thought
about VMWare?
I use windows at home (argh... have to have it, don't ask why) but Ubunto
Linux at work and solve the same necessity with VMWare... a VMWare windows
instalation suspended takes 5 seconds to resume from file. Very nice
solution. And you can have several test cases... only Mac OSX can't still be
a VMWare machine! :-D maybe the day will still come...

Thanks anyway... this is now officially 100% working! ;-)

On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> What happens when you clear your browser cache?
>
> On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> >
> > I tested on both IE6 and Firefox 1.5 with the same results on both:
> > Workbench demo works, but my own code does not. :(
> >
> > -----Original Message-----
> > From: Pedro Viegas [mailto:pviegas@gmail.com]
> > Sent: terça-feira, 22 de agosto de 2006 19:19
> > To: Tapestry users
> > Subject: Re: Async form in Tap4.1 does not work...
> >
> > Got the bastard! It's a snicky little one!
> >
> > I also updated the last SNAPSHOT and the result are exactly the same.
> > As Danis said, althought the Submit does not have the async parameters
> the
> > form does and so this should work.
> > I tried the workbench demo link Jesse provided but it behaves preciselly
> > like we are describing. It issues a full page refresh, not a parcial
> ajax
> > request/refresh as we're trying to create. Can the problem be with the
> > browsers we're using for the testing?
> > I'm using a FF 1.5.0.6 on Windows.
> >
> > Out of curiosity I tried the same test case on IE 6.0.2900... and guess
> > what... it works.
> > From previous posts I know Jesse's OS is Linux and his browser FF. Maybe
> > this issue only happens in FF on windows?
> > Can you test this Jesse?
> >
> > So I vouch that the code works but in my tests only on IE.
> > Denis, what's your browser?
> >
> > On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > >
> > > They should be working on forms just fine.
> > >
> > > In fact, this form uses them here:
> > >
> > >
> >
> >
>
http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=S
> > Dates
> > > .
> > >
> > >
> > >
> > > On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> > > >
> > > > The parameters are not implemented for Submit, but they already do
> > exist
> > > > in
> > > > the Form component. Since Jesse replied that's fixed I thought it
> > meant
> > > > ajax
> > > > should be working when using these parameters on a form.
> > > >
> > > > -----Original Message-----
> > > > From: Norbert Sándor [mailto:developer@erinors.com]
> > > > Sent: terça-feira, 22 de agosto de 2006 14:03
> > > > To: Tapestry users
> > > > Subject: Re: Async form in Tap4.1 does not work...
> > > >
> > > > As I know it is not yet implemented, I guess there are no such
> > > > parameters (async, updateComponents) for Submit, LinkSubmit, etc.
> yet.
> > > >
> > > > Regards,
> > > > Norbi
> > > >
> > > > Denis Souza wrote:
> > > > > I'm still having the same problem as Pedro. Submitting a form with
> > > ajax
> > > > only
> > > > > works when I use @EventListener. Using async=true and
> > updateComponents
> > > > on
> > > > > the form component seem to have no effect. The form is always
> > > submitted
> > > > > normally (without ajax). Tried it with the latest snapshot
> > > > > (4.1.1-20060822.021102-19) and still no go.
> > > > >
> > > > > -----Original Message-----
> > > > > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > > > > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > > > > To: Tapestry users
> > > > > Subject: Re: Async form in Tap4.1 does not work...
> > > > >
> > > > > Fixed.
> > > > >
> > > > > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > >
> > > > >> btw: tried it with the fresh SNAPSHOT of 20060819 and the result
> is
> > > > still
> > > > >> the same!
> > > > >>
> > > > >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > >>
> > > > >>> I've been browsing the TimeTracker source to see if I can sort
> > > things
> > > > >>>
> > > > >> out.
> > > > >>
> > > > >>> I've found the parameter I mentioned... the shell's
> > > > ajaxEnabled="true".
> > > > >>>
> > > > >> I
> > > > >>
> > > > >>> set it up in my test code and no change. Huess it's allready
> true
> > by
> > > > >>> default.
> > > > >>> Since
> > > http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> > > > >>> not mention it I'm only guessing.
> > > > >>> By what I gather from the TimeTracker code no ajax like form
> > > > submission
> > > > >>>
> > > > >> is
> > > > >>
> > > > >>> implemented. All ajax calls are made by @EventListener's setups.
> > Is
> > > > the
> > > > >>>
> > > > >> form
> > > > >>
> > > > >>> ajax submit working? Has anybody got it working?
> > > > >>>
> > > > >>> Thanks,
> > > > >>>
> > > > >>>
> > > > >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > >>>
> > > > >>>> Yep, sorry, I was messing things up a bit.
> > > > >>>> I corrected several errors I had on the code.
> > > > >>>> The form submits fine, all works but not asyncronously. It does
> a
> > > > >>>>
> > > > >> normal
> > > > >>
> > > > >>>> submit and not an ajax one.
> > > > >>>> The client side form validation is also not working. Only
> server
> > > > side.
> > > > >>>> So async mode is apparently not activating.
> > > > >>>> Any clues why? I seem to remember something on the mailing list
> a
> > > > >>>>
> > > > >> while
> > > > >>
> > > > >>>> back of activating ajax globally... maybe on the shell
> component?
> > > > >>>>
> > > > >> Something
> > > > >>
> > > > >>>> like that?
> > > > >>>>
> > > > >>>> My testcode is as follows...
> > > > >>>>
> > > > >>>>
> > > > >>>> .html
> > > > >>>>
> > > > >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > > >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > > >>>> debugContainerId="dojoDebug"
> > > > >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > > >>>>
> > > > >> 1.0Transitional//EN&quot;
> > > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > >>
> > > > >>>> transitional.dtd&quot;">
> > > > >>>>
> > > > >>>> <body jwcid="@Body">
> > > > >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> > > > >>>>     <form jwcid="myform@Form"
> clientValidationEnabled="ognl:true"
> > > > >>>>           async="ognl:true" updateComponents="ognl:{'results'}"
> > > > >>>> listener="listener:formSubmit">
> > > > >>>>
> > > > >>>>                Project name: <input jwcid="name@TextField "
> > > > >>>> value="ognl:name"
> > > > >>>>
> > > > validators="validators:required"/>
> > > > >>>> <br/>
> > > > >>>>                Project description: <input jwcid="
> > > > >>>>
> > > > >> description@TextField"
> > > > >>
> > > >
> > >>>>                                            value="ognl:description"
> > > > />
> > > > >>>>         <input jwcid="@Submit"/>
> > > > >>>>
> > > > >>>>     </form>
> > > > >>>>     <div id="results">
> > > > >>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > > > >>>>         Description: <span jwcid="@Insert"
> > value="ognl:description"
> > > > />
> > > > >>>>     </div>
> > > > >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > > >>>>        Debug goes here!
> > > > >>>>     </div>
> > > > >>>> </body>
> > > > >>>> </html>
> > > > >>>>
> > > > >>>>  .java
> > > > >>>>
> > > > >>>> public abstract class Test extends BasePageImplementation {
> > > > >>>>
> > > > >>>>     @InitialValue("literal:delegateIt")
> > > > >>>>     public abstract String getName();
> > > > >>>>     @InitialValue("literal:A project management suite!")
> > > > >>>>     public abstract String getDescription();
> > > > >>>>
> > > > >>>>     public void formSubmit(IRequestCycle cycle) {
> > > > >>>>         getLogger().debug("Entered formSubmit");
> > > > >>>>         getLogger().debug("Name: "+getName());
> > > > >>>>         getLogger().debug("Description: "+getDescription());
> > > > >>>>     }
> > > > >>>> }
> > > > >>>>
> > > > >>>> Thanks,
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > > >>>>
> > > > >>>>> I don't believe @Submit or similar components accept that
> > > parameter.
> > > > >>>>> (double
> > > > >>>>> check the docs, but I think that only applies to the @Form
> > > > >>>>> currently..or
> > > > >>>>> various links)
> > > > >>>>>
> > > > >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > > > >>>>>
> > > > >>>>>> Hi there.
> > > > >>>>>> Been trying to get a Tap4.1 form component to behave like a
> > > > >>>>>>
> > > > >>>>> Tacos:AjaxForm
> > > > >>>>>
> > > > >>>>>> with no success.
> > > > >>>>>> If I understand correctly what I have to do is declare my
> form
> > > > >>>>>>
> > > > >> with
> > > > >>
> > > > >>>>>> async="true" and have a submit with the
> updateComponents="some
> > > > >>>>>>
> > > > >> id",
> > > > >>
> > > > >>>>> right?
> > > > >>>>>
> > > > >>>>>> I have the following example witch always does a normal full
> > page
> > > > >>>>>>
> > > > >>>>> submit.
> > > > >>>>>
> > > > >>>>>> test.html
> > > > >>>>>>
> > > > >>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > > >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > > >>>>>> debugContainerId="dojoDebug"
> > > > >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > > >>>>>> 1.0Transitional//EN&quot;
> > > > >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > >>>>>> transitional.dtd&quot;">
> > > > >>>>>>
> > > > >>>>>> <body jwcid="@Body">
> > > > >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > > > >>>>>> listener="formSubmit"/>
> > > > >>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
> > > > >>>>>>
> > > > >>>>> async="true">
> > > > >>>>>
> > > > >>>>>>                Project name: <input jwcid="name@TextField"
> > > > >>>>>> value="ognl:name"
> > > > >>>>>> validators="validators:required"/> <br/>
> > > > >>>>>>                Project description: <input jwcid="
> > > > >>>>>>
> > > > >>>>> description@TextField"
> > > > >>>>>
> > > > >>>>>> value="ognl:description" />
> > > > >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
> > > > >>>>>>     </form>
> > > > >>>>>>     <div id="results">
> > > > >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" />
> <br/>
> > > > >>>>>>         Description: <span jwcid="@Insert"
> > > > >>>>>>
> > > > >> value="ognl:description"
> > > > >>
> > > > >>>>> />
> > > > >>>>>
> > > > >>>>>>     </div>
> > > > >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > > >>>>>>        Debug goes here!
> > > > >>>>>>     </div>
> > > > >>>>>> </body>
> > > > >>>>>> </html>
> > > > >>>>>>
> > > > >>>>>> test.page
> > > > >>>>>>
> > > > >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> > > > >>>>>> <!DOCTYPE page-specification PUBLIC
> > > > >>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0
> > //EN"
> > > > >>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > > > >>>>>>
> > > > >>>>>> <page-specification class="
> > > com.teamware.delegateit.view.pages.Test
> > > > >>>>>>
> > > > >> ">
> > > > >>
> > > > >>>>>> </page-specification>
> > > > >>>>>>
> > > > >>>>>> test.java
> > > > >>>>>>
> > > > >>>>>> public abstract class Test extends BasePageImplementation {
> > > > >>>>>>
> > > > >>>>>>     @InitialValue("literal:delegateIt")
> > > > >>>>>>     public abstract String getName();
> > > > >>>>>>     @InitialValue("literal:A project management suite!")
> > > > >>>>>>     public abstract String getDescription();
> > > > >>>>>>
> > > > >>>>>>     public void formSubmit(IRequestCycle cycle) {
> > > > >>>>>>
cycle.getResponseBuilder().updateComponent("results");
> > > > >>>>>>     }
> > > > >>>>>> }
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>> The listener code with the ResponseBuilder.updateComponent is
> > > only
> > > > >>>>>>
> > > > >> a
> > > > >>
> > > > >>>>> test
> > > > >>>>>
> > > > >>>>>> since is was not functioning. I think it should not even be
> > > > >>>>>>
> > > > >>>>> necessary.
> > > > >>>>>
> > > > >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> > > > >>>>>> Anybody knows what's wrong?
> > > > >>>>>>
> > > > >>>>>> Regards,
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>> --
> > > > >>>>>> Pedro Viegas
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>> --
> > > > >>>>> Jesse Kuhnert
> > > > >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > > >>>>>
> > > > >>>>> Open source based consulting work centered around
> > > > >>>>> dojo/tapestry/tacos/hivemind.
> > > > >>>>>
> > > > >>>>>
> > > > >>>>>
> > > > >>>> --
> > > > >>>> Pedro Viegas
> > > > >>>>
> > > > >>>>
> > > > >>>
> > > > >>> --
> > > > >>> Pedro Viegas
> > > > >>>
> > > > >>>
> > > > >>
> > > > >> --
> > > > >> Pedro Viegas
> > > > >>
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Jesse Kuhnert
> > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > >
> > > Open source based consulting work centered around
> > > dojo/tapestry/tacos/hivemind.
> > >
> > >
> >
> >
> > --
> > Pedro Viegas
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>


-- 
Pedro Viegas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Async form in Tap4.1 does not work...

Posted by Pedro Viegas <pv...@gmail.com>.
That solved it Jesse!
It really was the cache.
Guess those handy old SNAPSHOT JS scripts were in the way... obvious now
that you pointed out! :-D

By the way... on the undesired windows extra box subject, have you thought
about VMWare?
I use windows at home (argh... have to have it, don't ask why) but Ubunto
Linux at work and solve the same necessity with VMWare... a VMWare windows
instalation suspended takes 5 seconds to resume from file. Very nice
solution. And you can have several test cases... only Mac OSX can't still be
a VMWare machine! :-D maybe the day will still come...

Thanks anyway... this is now officially 100% working! ;-)

On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> What happens when you clear your browser cache?
>
> On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> >
> > I tested on both IE6 and Firefox 1.5 with the same results on both:
> > Workbench demo works, but my own code does not. :(
> >
> > -----Original Message-----
> > From: Pedro Viegas [mailto:pviegas@gmail.com]
> > Sent: terça-feira, 22 de agosto de 2006 19:19
> > To: Tapestry users
> > Subject: Re: Async form in Tap4.1 does not work...
> >
> > Got the bastard! It's a snicky little one!
> >
> > I also updated the last SNAPSHOT and the result are exactly the same.
> > As Danis said, althought the Submit does not have the async parameters
> the
> > form does and so this should work.
> > I tried the workbench demo link Jesse provided but it behaves preciselly
> > like we are describing. It issues a full page refresh, not a parcial
> ajax
> > request/refresh as we're trying to create. Can the problem be with the
> > browsers we're using for the testing?
> > I'm using a FF 1.5.0.6 on Windows.
> >
> > Out of curiosity I tried the same test case on IE 6.0.2900... and guess
> > what... it works.
> > From previous posts I know Jesse's OS is Linux and his browser FF. Maybe
> > this issue only happens in FF on windows?
> > Can you test this Jesse?
> >
> > So I vouch that the code works but in my tests only on IE.
> > Denis, what's your browser?
> >
> > On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > >
> > > They should be working on forms just fine.
> > >
> > > In fact, this form uses them here:
> > >
> > >
> >
> >
> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=S
> > Dates
> > > .
> > >
> > >
> > >
> > > On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> > > >
> > > > The parameters are not implemented for Submit, but they already do
> > exist
> > > > in
> > > > the Form component. Since Jesse replied that's fixed I thought it
> > meant
> > > > ajax
> > > > should be working when using these parameters on a form.
> > > >
> > > > -----Original Message-----
> > > > From: Norbert Sándor [mailto:developer@erinors.com]
> > > > Sent: terça-feira, 22 de agosto de 2006 14:03
> > > > To: Tapestry users
> > > > Subject: Re: Async form in Tap4.1 does not work...
> > > >
> > > > As I know it is not yet implemented, I guess there are no such
> > > > parameters (async, updateComponents) for Submit, LinkSubmit, etc.
> yet.
> > > >
> > > > Regards,
> > > > Norbi
> > > >
> > > > Denis Souza wrote:
> > > > > I'm still having the same problem as Pedro. Submitting a form with
> > > ajax
> > > > only
> > > > > works when I use @EventListener. Using async=true and
> > updateComponents
> > > > on
> > > > > the form component seem to have no effect. The form is always
> > > submitted
> > > > > normally (without ajax). Tried it with the latest snapshot
> > > > > (4.1.1-20060822.021102-19) and still no go.
> > > > >
> > > > > -----Original Message-----
> > > > > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > > > > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > > > > To: Tapestry users
> > > > > Subject: Re: Async form in Tap4.1 does not work...
> > > > >
> > > > > Fixed.
> > > > >
> > > > > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > >
> > > > >> btw: tried it with the fresh SNAPSHOT of 20060819 and the result
> is
> > > > still
> > > > >> the same!
> > > > >>
> > > > >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > >>
> > > > >>> I've been browsing the TimeTracker source to see if I can sort
> > > things
> > > > >>>
> > > > >> out.
> > > > >>
> > > > >>> I've found the parameter I mentioned... the shell's
> > > > ajaxEnabled="true".
> > > > >>>
> > > > >> I
> > > > >>
> > > > >>> set it up in my test code and no change. Huess it's allready
> true
> > by
> > > > >>> default.
> > > > >>> Since
> > > http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> > > > >>> not mention it I'm only guessing.
> > > > >>> By what I gather from the TimeTracker code no ajax like form
> > > > submission
> > > > >>>
> > > > >> is
> > > > >>
> > > > >>> implemented. All ajax calls are made by @EventListener's setups.
> > Is
> > > > the
> > > > >>>
> > > > >> form
> > > > >>
> > > > >>> ajax submit working? Has anybody got it working?
> > > > >>>
> > > > >>> Thanks,
> > > > >>>
> > > > >>>
> > > > >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > > >>>
> > > > >>>> Yep, sorry, I was messing things up a bit.
> > > > >>>> I corrected several errors I had on the code.
> > > > >>>> The form submits fine, all works but not asyncronously. It does
> a
> > > > >>>>
> > > > >> normal
> > > > >>
> > > > >>>> submit and not an ajax one.
> > > > >>>> The client side form validation is also not working. Only
> server
> > > > side.
> > > > >>>> So async mode is apparently not activating.
> > > > >>>> Any clues why? I seem to remember something on the mailing list
> a
> > > > >>>>
> > > > >> while
> > > > >>
> > > > >>>> back of activating ajax globally... maybe on the shell
> component?
> > > > >>>>
> > > > >> Something
> > > > >>
> > > > >>>> like that?
> > > > >>>>
> > > > >>>> My testcode is as follows...
> > > > >>>>
> > > > >>>>
> > > > >>>> .html
> > > > >>>>
> > > > >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > > >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > > >>>> debugContainerId="dojoDebug"
> > > > >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > > >>>>
> > > > >> 1.0Transitional//EN&quot;
> > > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > >>
> > > > >>>> transitional.dtd&quot;">
> > > > >>>>
> > > > >>>> <body jwcid="@Body">
> > > > >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> > > > >>>>     <form jwcid="myform@Form"
> clientValidationEnabled="ognl:true"
> > > > >>>>           async="ognl:true" updateComponents="ognl:{'results'}"
> > > > >>>> listener="listener:formSubmit">
> > > > >>>>
> > > > >>>>                Project name: <input jwcid="name@TextField "
> > > > >>>> value="ognl:name"
> > > > >>>>
> > > > validators="validators:required"/>
> > > > >>>> <br/>
> > > > >>>>                Project description: <input jwcid="
> > > > >>>>
> > > > >> description@TextField"
> > > > >>
> > > >
> > >>>>                                            value="ognl:description"
> > > > />
> > > > >>>>         <input jwcid="@Submit"/>
> > > > >>>>
> > > > >>>>     </form>
> > > > >>>>     <div id="results">
> > > > >>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > > > >>>>         Description: <span jwcid="@Insert"
> > value="ognl:description"
> > > > />
> > > > >>>>     </div>
> > > > >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > > >>>>        Debug goes here!
> > > > >>>>     </div>
> > > > >>>> </body>
> > > > >>>> </html>
> > > > >>>>
> > > > >>>>  .java
> > > > >>>>
> > > > >>>> public abstract class Test extends BasePageImplementation {
> > > > >>>>
> > > > >>>>     @InitialValue("literal:delegateIt")
> > > > >>>>     public abstract String getName();
> > > > >>>>     @InitialValue("literal:A project management suite!")
> > > > >>>>     public abstract String getDescription();
> > > > >>>>
> > > > >>>>     public void formSubmit(IRequestCycle cycle) {
> > > > >>>>         getLogger().debug("Entered formSubmit");
> > > > >>>>         getLogger().debug("Name: "+getName());
> > > > >>>>         getLogger().debug("Description: "+getDescription());
> > > > >>>>     }
> > > > >>>> }
> > > > >>>>
> > > > >>>> Thanks,
> > > > >>>>
> > > > >>>>
> > > > >>>>
> > > > >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > > >>>>
> > > > >>>>> I don't believe @Submit or similar components accept that
> > > parameter.
> > > > >>>>> (double
> > > > >>>>> check the docs, but I think that only applies to the @Form
> > > > >>>>> currently..or
> > > > >>>>> various links)
> > > > >>>>>
> > > > >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > > > >>>>>
> > > > >>>>>> Hi there.
> > > > >>>>>> Been trying to get a Tap4.1 form component to behave like a
> > > > >>>>>>
> > > > >>>>> Tacos:AjaxForm
> > > > >>>>>
> > > > >>>>>> with no success.
> > > > >>>>>> If I understand correctly what I have to do is declare my
> form
> > > > >>>>>>
> > > > >> with
> > > > >>
> > > > >>>>>> async="true" and have a submit with the
> updateComponents="some
> > > > >>>>>>
> > > > >> id",
> > > > >>
> > > > >>>>> right?
> > > > >>>>>
> > > > >>>>>> I have the following example witch always does a normal full
> > page
> > > > >>>>>>
> > > > >>>>> submit.
> > > > >>>>>
> > > > >>>>>> test.html
> > > > >>>>>>
> > > > >>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > > >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > > >>>>>> debugContainerId="dojoDebug"
> > > > >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > > >>>>>> 1.0Transitional//EN&quot;
> > > > >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > >>>>>> transitional.dtd&quot;">
> > > > >>>>>>
> > > > >>>>>> <body jwcid="@Body">
> > > > >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > > > >>>>>> listener="formSubmit"/>
> > > > >>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
> > > > >>>>>>
> > > > >>>>> async="true">
> > > > >>>>>
> > > > >>>>>>                Project name: <input jwcid="name@TextField"
> > > > >>>>>> value="ognl:name"
> > > > >>>>>> validators="validators:required"/> <br/>
> > > > >>>>>>                Project description: <input jwcid="
> > > > >>>>>>
> > > > >>>>> description@TextField"
> > > > >>>>>
> > > > >>>>>> value="ognl:description" />
> > > > >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
> > > > >>>>>>     </form>
> > > > >>>>>>     <div id="results">
> > > > >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" />
> <br/>
> > > > >>>>>>         Description: <span jwcid="@Insert"
> > > > >>>>>>
> > > > >> value="ognl:description"
> > > > >>
> > > > >>>>> />
> > > > >>>>>
> > > > >>>>>>     </div>
> > > > >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > > >>>>>>        Debug goes here!
> > > > >>>>>>     </div>
> > > > >>>>>> </body>
> > > > >>>>>> </html>
> > > > >>>>>>
> > > > >>>>>> test.page
> > > > >>>>>>
> > > > >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> > > > >>>>>> <!DOCTYPE page-specification PUBLIC
> > > > >>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0
> > //EN"
> > > > >>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > > > >>>>>>
> > > > >>>>>> <page-specification class="
> > > com.teamware.delegateit.view.pages.Test
> > > > >>>>>>
> > > > >> ">
> > > > >>
> > > > >>>>>> </page-specification>
> > > > >>>>>>
> > > > >>>>>> test.java
> > > > >>>>>>
> > > > >>>>>> public abstract class Test extends BasePageImplementation {
> > > > >>>>>>
> > > > >>>>>>     @InitialValue("literal:delegateIt")
> > > > >>>>>>     public abstract String getName();
> > > > >>>>>>     @InitialValue("literal:A project management suite!")
> > > > >>>>>>     public abstract String getDescription();
> > > > >>>>>>
> > > > >>>>>>     public void formSubmit(IRequestCycle cycle) {
> > > > >>>>>>         cycle.getResponseBuilder().updateComponent("results");
> > > > >>>>>>     }
> > > > >>>>>> }
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>> The listener code with the ResponseBuilder.updateComponent is
> > > only
> > > > >>>>>>
> > > > >> a
> > > > >>
> > > > >>>>> test
> > > > >>>>>
> > > > >>>>>> since is was not functioning. I think it should not even be
> > > > >>>>>>
> > > > >>>>> necessary.
> > > > >>>>>
> > > > >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> > > > >>>>>> Anybody knows what's wrong?
> > > > >>>>>>
> > > > >>>>>> Regards,
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>> --
> > > > >>>>>> Pedro Viegas
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>>>
> > > > >>>>> --
> > > > >>>>> Jesse Kuhnert
> > > > >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > > >>>>>
> > > > >>>>> Open source based consulting work centered around
> > > > >>>>> dojo/tapestry/tacos/hivemind.
> > > > >>>>>
> > > > >>>>>
> > > > >>>>>
> > > > >>>> --
> > > > >>>> Pedro Viegas
> > > > >>>>
> > > > >>>>
> > > > >>>
> > > > >>> --
> > > > >>> Pedro Viegas
> > > > >>>
> > > > >>>
> > > > >>
> > > > >> --
> > > > >> Pedro Viegas
> > > > >>
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > > For additional commands, e-mail: users-help@tapestry.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Jesse Kuhnert
> > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > >
> > > Open source based consulting work centered around
> > > dojo/tapestry/tacos/hivemind.
> > >
> > >
> >
> >
> > --
> > Pedro Viegas
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>


-- 
Pedro Viegas

Re: Async form in Tap4.1 does not work...

Posted by Jesse Kuhnert <jk...@gmail.com>.
What happens when you clear your browser cache?

On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
>
> I tested on both IE6 and Firefox 1.5 with the same results on both:
> Workbench demo works, but my own code does not. :(
>
> -----Original Message-----
> From: Pedro Viegas [mailto:pviegas@gmail.com]
> Sent: terça-feira, 22 de agosto de 2006 19:19
> To: Tapestry users
> Subject: Re: Async form in Tap4.1 does not work...
>
> Got the bastard! It's a snicky little one!
>
> I also updated the last SNAPSHOT and the result are exactly the same.
> As Danis said, althought the Submit does not have the async parameters the
> form does and so this should work.
> I tried the workbench demo link Jesse provided but it behaves preciselly
> like we are describing. It issues a full page refresh, not a parcial ajax
> request/refresh as we're trying to create. Can the problem be with the
> browsers we're using for the testing?
> I'm using a FF 1.5.0.6 on Windows.
>
> Out of curiosity I tried the same test case on IE 6.0.2900... and guess
> what... it works.
> From previous posts I know Jesse's OS is Linux and his browser FF. Maybe
> this issue only happens in FF on windows?
> Can you test this Jesse?
>
> So I vouch that the code works but in my tests only on IE.
> Denis, what's your browser?
>
> On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> >
> > They should be working on forms just fine.
> >
> > In fact, this form uses them here:
> >
> >
>
> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=S
> Dates
> > .
> >
> >
> >
> > On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> > >
> > > The parameters are not implemented for Submit, but they already do
> exist
> > > in
> > > the Form component. Since Jesse replied that's fixed I thought it
> meant
> > > ajax
> > > should be working when using these parameters on a form.
> > >
> > > -----Original Message-----
> > > From: Norbert Sándor [mailto:developer@erinors.com]
> > > Sent: terça-feira, 22 de agosto de 2006 14:03
> > > To: Tapestry users
> > > Subject: Re: Async form in Tap4.1 does not work...
> > >
> > > As I know it is not yet implemented, I guess there are no such
> > > parameters (async, updateComponents) for Submit, LinkSubmit, etc. yet.
> > >
> > > Regards,
> > > Norbi
> > >
> > > Denis Souza wrote:
> > > > I'm still having the same problem as Pedro. Submitting a form with
> > ajax
> > > only
> > > > works when I use @EventListener. Using async=true and
> updateComponents
> > > on
> > > > the form component seem to have no effect. The form is always
> > submitted
> > > > normally (without ajax). Tried it with the latest snapshot
> > > > (4.1.1-20060822.021102-19) and still no go.
> > > >
> > > > -----Original Message-----
> > > > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > > > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > > > To: Tapestry users
> > > > Subject: Re: Async form in Tap4.1 does not work...
> > > >
> > > > Fixed.
> > > >
> > > > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > >
> > > >> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is
> > > still
> > > >> the same!
> > > >>
> > > >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > >>
> > > >>> I've been browsing the TimeTracker source to see if I can sort
> > things
> > > >>>
> > > >> out.
> > > >>
> > > >>> I've found the parameter I mentioned... the shell's
> > > ajaxEnabled="true".
> > > >>>
> > > >> I
> > > >>
> > > >>> set it up in my test code and no change. Huess it's allready true
> by
> > > >>> default.
> > > >>> Since
> > http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> > > >>> not mention it I'm only guessing.
> > > >>> By what I gather from the TimeTracker code no ajax like form
> > > submission
> > > >>>
> > > >> is
> > > >>
> > > >>> implemented. All ajax calls are made by @EventListener's setups.
> Is
> > > the
> > > >>>
> > > >> form
> > > >>
> > > >>> ajax submit working? Has anybody got it working?
> > > >>>
> > > >>> Thanks,
> > > >>>
> > > >>>
> > > >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > >>>
> > > >>>> Yep, sorry, I was messing things up a bit.
> > > >>>> I corrected several errors I had on the code.
> > > >>>> The form submits fine, all works but not asyncronously. It does a
> > > >>>>
> > > >> normal
> > > >>
> > > >>>> submit and not an ajax one.
> > > >>>> The client side form validation is also not working. Only server
> > > side.
> > > >>>> So async mode is apparently not activating.
> > > >>>> Any clues why? I seem to remember something on the mailing list a
> > > >>>>
> > > >> while
> > > >>
> > > >>>> back of activating ajax globally... maybe on the shell component?
> > > >>>>
> > > >> Something
> > > >>
> > > >>>> like that?
> > > >>>>
> > > >>>> My testcode is as follows...
> > > >>>>
> > > >>>>
> > > >>>> .html
> > > >>>>
> > > >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > >>>> debugContainerId="dojoDebug"
> > > >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > >>>>
> > > >> 1.0Transitional//EN&quot;
> > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > >>
> > > >>>> transitional.dtd&quot;">
> > > >>>>
> > > >>>> <body jwcid="@Body">
> > > >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> > > >>>>     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
> > > >>>>           async="ognl:true" updateComponents="ognl:{'results'}"
> > > >>>> listener="listener:formSubmit">
> > > >>>>
> > > >>>>                Project name: <input jwcid="name@TextField "
> > > >>>> value="ognl:name"
> > > >>>>
> > > validators="validators:required"/>
> > > >>>> <br/>
> > > >>>>                Project description: <input jwcid="
> > > >>>>
> > > >> description@TextField"
> > > >>
> > >
> >>>>                                            value="ognl:description"
> > > />
> > > >>>>         <input jwcid="@Submit"/>
> > > >>>>
> > > >>>>     </form>
> > > >>>>     <div id="results">
> > > >>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > > >>>>         Description: <span jwcid="@Insert"
> value="ognl:description"
> > > />
> > > >>>>     </div>
> > > >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > >>>>        Debug goes here!
> > > >>>>     </div>
> > > >>>> </body>
> > > >>>> </html>
> > > >>>>
> > > >>>>  .java
> > > >>>>
> > > >>>> public abstract class Test extends BasePageImplementation {
> > > >>>>
> > > >>>>     @InitialValue("literal:delegateIt")
> > > >>>>     public abstract String getName();
> > > >>>>     @InitialValue("literal:A project management suite!")
> > > >>>>     public abstract String getDescription();
> > > >>>>
> > > >>>>     public void formSubmit(IRequestCycle cycle) {
> > > >>>>         getLogger().debug("Entered formSubmit");
> > > >>>>         getLogger().debug("Name: "+getName());
> > > >>>>         getLogger().debug("Description: "+getDescription());
> > > >>>>     }
> > > >>>> }
> > > >>>>
> > > >>>> Thanks,
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > >>>>
> > > >>>>> I don't believe @Submit or similar components accept that
> > parameter.
> > > >>>>> (double
> > > >>>>> check the docs, but I think that only applies to the @Form
> > > >>>>> currently..or
> > > >>>>> various links)
> > > >>>>>
> > > >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > > >>>>>
> > > >>>>>> Hi there.
> > > >>>>>> Been trying to get a Tap4.1 form component to behave like a
> > > >>>>>>
> > > >>>>> Tacos:AjaxForm
> > > >>>>>
> > > >>>>>> with no success.
> > > >>>>>> If I understand correctly what I have to do is declare my form
> > > >>>>>>
> > > >> with
> > > >>
> > > >>>>>> async="true" and have a submit with the updateComponents="some
> > > >>>>>>
> > > >> id",
> > > >>
> > > >>>>> right?
> > > >>>>>
> > > >>>>>> I have the following example witch always does a normal full
> page
> > > >>>>>>
> > > >>>>> submit.
> > > >>>>>
> > > >>>>>> test.html
> > > >>>>>>
> > > >>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > >>>>>> debugContainerId="dojoDebug"
> > > >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > >>>>>> 1.0Transitional//EN&quot;
> > > >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > >>>>>> transitional.dtd&quot;">
> > > >>>>>>
> > > >>>>>> <body jwcid="@Body">
> > > >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > > >>>>>> listener="formSubmit"/>
> > > >>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
> > > >>>>>>
> > > >>>>> async="true">
> > > >>>>>
> > > >>>>>>                Project name: <input jwcid="name@TextField"
> > > >>>>>> value="ognl:name"
> > > >>>>>> validators="validators:required"/> <br/>
> > > >>>>>>                Project description: <input jwcid="
> > > >>>>>>
> > > >>>>> description@TextField"
> > > >>>>>
> > > >>>>>> value="ognl:description" />
> > > >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
> > > >>>>>>     </form>
> > > >>>>>>     <div id="results">
> > > >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > > >>>>>>         Description: <span jwcid="@Insert"
> > > >>>>>>
> > > >> value="ognl:description"
> > > >>
> > > >>>>> />
> > > >>>>>
> > > >>>>>>     </div>
> > > >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > >>>>>>        Debug goes here!
> > > >>>>>>     </div>
> > > >>>>>> </body>
> > > >>>>>> </html>
> > > >>>>>>
> > > >>>>>> test.page
> > > >>>>>>
> > > >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> > > >>>>>> <!DOCTYPE page-specification PUBLIC
> > > >>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0
> //EN"
> > > >>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > > >>>>>>
> > > >>>>>> <page-specification class="
> > com.teamware.delegateit.view.pages.Test
> > > >>>>>>
> > > >> ">
> > > >>
> > > >>>>>> </page-specification>
> > > >>>>>>
> > > >>>>>> test.java
> > > >>>>>>
> > > >>>>>> public abstract class Test extends BasePageImplementation {
> > > >>>>>>
> > > >>>>>>     @InitialValue("literal:delegateIt")
> > > >>>>>>     public abstract String getName();
> > > >>>>>>     @InitialValue("literal:A project management suite!")
> > > >>>>>>     public abstract String getDescription();
> > > >>>>>>
> > > >>>>>>     public void formSubmit(IRequestCycle cycle) {
> > > >>>>>>         cycle.getResponseBuilder ().updateComponent("results");
> > > >>>>>>     }
> > > >>>>>> }
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> The listener code with the ResponseBuilder.updateComponent is
> > only
> > > >>>>>>
> > > >> a
> > > >>
> > > >>>>> test
> > > >>>>>
> > > >>>>>> since is was not functioning. I think it should not even be
> > > >>>>>>
> > > >>>>> necessary.
> > > >>>>>
> > > >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> > > >>>>>> Anybody knows what's wrong?
> > > >>>>>>
> > > >>>>>> Regards,
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> --
> > > >>>>>> Pedro Viegas
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>> --
> > > >>>>> Jesse Kuhnert
> > > >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > >>>>>
> > > >>>>> Open source based consulting work centered around
> > > >>>>> dojo/tapestry/tacos/hivemind.
> > > >>>>>
> > > >>>>>
> > > >>>>>
> > > >>>> --
> > > >>>> Pedro Viegas
> > > >>>>
> > > >>>>
> > > >>>
> > > >>> --
> > > >>> Pedro Viegas
> > > >>>
> > > >>>
> > > >>
> > > >> --
> > > >> Pedro Viegas
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind.
> >
> >
>
>
> --
> Pedro Viegas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

RE: Async form in Tap4.1 does not work...

Posted by Denis Souza <de...@camerum.com.br>.
I tested on both IE6 and Firefox 1.5 with the same results on both:
Workbench demo works, but my own code does not. :(

-----Original Message-----
From: Pedro Viegas [mailto:pviegas@gmail.com] 
Sent: terça-feira, 22 de agosto de 2006 19:19
To: Tapestry users
Subject: Re: Async form in Tap4.1 does not work...

Got the bastard! It's a snicky little one!

I also updated the last SNAPSHOT and the result are exactly the same.
As Danis said, althought the Submit does not have the async parameters the
form does and so this should work.
I tried the workbench demo link Jesse provided but it behaves preciselly
like we are describing. It issues a full page refresh, not a parcial ajax
request/refresh as we're trying to create. Can the problem be with the
browsers we're using for the testing?
I'm using a FF 1.5.0.6 on Windows.

Out of curiosity I tried the same test case on IE 6.0.2900... and guess
what... it works.
>From previous posts I know Jesse's OS is Linux and his browser FF. Maybe
this issue only happens in FF on windows?
Can you test this Jesse?

So I vouch that the code works but in my tests only on IE.
Denis, what's your browser?

On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> They should be working on forms just fine.
>
> In fact, this form uses them here:
>
>
http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=S
Dates
> .
>
>
>
> On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> >
> > The parameters are not implemented for Submit, but they already do exist
> > in
> > the Form component. Since Jesse replied that's fixed I thought it meant
> > ajax
> > should be working when using these parameters on a form.
> >
> > -----Original Message-----
> > From: Norbert Sándor [mailto:developer@erinors.com]
> > Sent: terça-feira, 22 de agosto de 2006 14:03
> > To: Tapestry users
> > Subject: Re: Async form in Tap4.1 does not work...
> >
> > As I know it is not yet implemented, I guess there are no such
> > parameters (async, updateComponents) for Submit, LinkSubmit, etc. yet.
> >
> > Regards,
> > Norbi
> >
> > Denis Souza wrote:
> > > I'm still having the same problem as Pedro. Submitting a form with
> ajax
> > only
> > > works when I use @EventListener. Using async=true and updateComponents
> > on
> > > the form component seem to have no effect. The form is always
> submitted
> > > normally (without ajax). Tried it with the latest snapshot
> > > (4.1.1-20060822.021102-19) and still no go.
> > >
> > > -----Original Message-----
> > > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > > To: Tapestry users
> > > Subject: Re: Async form in Tap4.1 does not work...
> > >
> > > Fixed.
> > >
> > > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >
> > >> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is
> > still
> > >> the same!
> > >>
> > >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >>
> > >>> I've been browsing the TimeTracker source to see if I can sort
> things
> > >>>
> > >> out.
> > >>
> > >>> I've found the parameter I mentioned... the shell's
> > ajaxEnabled="true".
> > >>>
> > >> I
> > >>
> > >>> set it up in my test code and no change. Huess it's allready true by
> > >>> default.
> > >>> Since
> http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> > >>> not mention it I'm only guessing.
> > >>> By what I gather from the TimeTracker code no ajax like form
> > submission
> > >>>
> > >> is
> > >>
> > >>> implemented. All ajax calls are made by @EventListener's setups. Is
> > the
> > >>>
> > >> form
> > >>
> > >>> ajax submit working? Has anybody got it working?
> > >>>
> > >>> Thanks,
> > >>>
> > >>>
> > >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >>>
> > >>>> Yep, sorry, I was messing things up a bit.
> > >>>> I corrected several errors I had on the code.
> > >>>> The form submits fine, all works but not asyncronously. It does a
> > >>>>
> > >> normal
> > >>
> > >>>> submit and not an ajax one.
> > >>>> The client side form validation is also not working. Only server
> > side.
> > >>>> So async mode is apparently not activating.
> > >>>> Any clues why? I seem to remember something on the mailing list a
> > >>>>
> > >> while
> > >>
> > >>>> back of activating ajax globally... maybe on the shell component?
> > >>>>
> > >> Something
> > >>
> > >>>> like that?
> > >>>>
> > >>>> My testcode is as follows...
> > >>>>
> > >>>>
> > >>>> .html
> > >>>>
> > >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > >>>> debugContainerId="dojoDebug"
> > >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > >>>>
> > >> 1.0Transitional//EN&quot;
> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > >>
> > >>>> transitional.dtd&quot;">
> > >>>>
> > >>>> <body jwcid="@Body">
> > >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> > >>>>     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
> > >>>>           async="ognl:true" updateComponents="ognl:{'results'}"
> > >>>> listener="listener:formSubmit">
> > >>>>
> > >>>>                Project name: <input jwcid="name@TextField "
> > >>>> value="ognl:name"
> > >>>>
> > validators="validators:required"/>
> > >>>> <br/>
> > >>>>                Project description: <input jwcid="
> > >>>>
> > >> description@TextField"
> > >>
> > >>>>                                            value="ognl:description"
> > />
> > >>>>         <input jwcid="@Submit"/>
> > >>>>
> > >>>>     </form>
> > >>>>     <div id="results">
> > >>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > >>>>         Description: <span jwcid="@Insert" value="ognl:description"
> > />
> > >>>>     </div>
> > >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > >>>>        Debug goes here!
> > >>>>     </div>
> > >>>> </body>
> > >>>> </html>
> > >>>>
> > >>>>  .java
> > >>>>
> > >>>> public abstract class Test extends BasePageImplementation {
> > >>>>
> > >>>>     @InitialValue("literal:delegateIt")
> > >>>>     public abstract String getName();
> > >>>>     @InitialValue("literal:A project management suite!")
> > >>>>     public abstract String getDescription();
> > >>>>
> > >>>>     public void formSubmit(IRequestCycle cycle) {
> > >>>>         getLogger().debug("Entered formSubmit");
> > >>>>         getLogger().debug("Name: "+getName());
> > >>>>         getLogger().debug("Description: "+getDescription());
> > >>>>     }
> > >>>> }
> > >>>>
> > >>>> Thanks,
> > >>>>
> > >>>>
> > >>>>
> > >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > >>>>
> > >>>>> I don't believe @Submit or similar components accept that
> parameter.
> > >>>>> (double
> > >>>>> check the docs, but I think that only applies to the @Form
> > >>>>> currently..or
> > >>>>> various links)
> > >>>>>
> > >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > >>>>>
> > >>>>>> Hi there.
> > >>>>>> Been trying to get a Tap4.1 form component to behave like a
> > >>>>>>
> > >>>>> Tacos:AjaxForm
> > >>>>>
> > >>>>>> with no success.
> > >>>>>> If I understand correctly what I have to do is declare my form
> > >>>>>>
> > >> with
> > >>
> > >>>>>> async="true" and have a submit with the updateComponents="some
> > >>>>>>
> > >> id",
> > >>
> > >>>>> right?
> > >>>>>
> > >>>>>> I have the following example witch always does a normal full page
> > >>>>>>
> > >>>>> submit.
> > >>>>>
> > >>>>>> test.html
> > >>>>>>
> > >>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > >>>>>> debugContainerId="dojoDebug"
> > >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > >>>>>> 1.0Transitional//EN&quot;
> > >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > >>>>>> transitional.dtd&quot;">
> > >>>>>>
> > >>>>>> <body jwcid="@Body">
> > >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > >>>>>> listener="formSubmit"/>
> > >>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
> > >>>>>>
> > >>>>> async="true">
> > >>>>>
> > >>>>>>                Project name: <input jwcid="name@TextField"
> > >>>>>> value="ognl:name"
> > >>>>>> validators="validators:required"/> <br/>
> > >>>>>>                Project description: <input jwcid="
> > >>>>>>
> > >>>>> description@TextField"
> > >>>>>
> > >>>>>> value="ognl:description" />
> > >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
> > >>>>>>     </form>
> > >>>>>>     <div id="results">
> > >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > >>>>>>         Description: <span jwcid="@Insert"
> > >>>>>>
> > >> value="ognl:description"
> > >>
> > >>>>> />
> > >>>>>
> > >>>>>>     </div>
> > >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > >>>>>>        Debug goes here!
> > >>>>>>     </div>
> > >>>>>> </body>
> > >>>>>> </html>
> > >>>>>>
> > >>>>>> test.page
> > >>>>>>
> > >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> > >>>>>> <!DOCTYPE page-specification PUBLIC
> > >>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> > >>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > >>>>>>
> > >>>>>> <page-specification class="
> com.teamware.delegateit.view.pages.Test
> > >>>>>>
> > >> ">
> > >>
> > >>>>>> </page-specification>
> > >>>>>>
> > >>>>>> test.java
> > >>>>>>
> > >>>>>> public abstract class Test extends BasePageImplementation {
> > >>>>>>
> > >>>>>>     @InitialValue("literal:delegateIt")
> > >>>>>>     public abstract String getName();
> > >>>>>>     @InitialValue("literal:A project management suite!")
> > >>>>>>     public abstract String getDescription();
> > >>>>>>
> > >>>>>>     public void formSubmit(IRequestCycle cycle) {
> > >>>>>>         cycle.getResponseBuilder ().updateComponent("results");
> > >>>>>>     }
> > >>>>>> }
> > >>>>>>
> > >>>>>>
> > >>>>>> The listener code with the ResponseBuilder.updateComponent is
> only
> > >>>>>>
> > >> a
> > >>
> > >>>>> test
> > >>>>>
> > >>>>>> since is was not functioning. I think it should not even be
> > >>>>>>
> > >>>>> necessary.
> > >>>>>
> > >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> > >>>>>> Anybody knows what's wrong?
> > >>>>>>
> > >>>>>> Regards,
> > >>>>>>
> > >>>>>>
> > >>>>>> --
> > >>>>>> Pedro Viegas
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>> --
> > >>>>> Jesse Kuhnert
> > >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > >>>>>
> > >>>>> Open source based consulting work centered around
> > >>>>> dojo/tapestry/tacos/hivemind.
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>> --
> > >>>> Pedro Viegas
> > >>>>
> > >>>>
> > >>>
> > >>> --
> > >>> Pedro Viegas
> > >>>
> > >>>
> > >>
> > >> --
> > >> Pedro Viegas
> > >>
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>


-- 
Pedro Viegas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Async form in Tap4.1 does not work...

Posted by Jesse Kuhnert <jk...@gmail.com>.
I'm using FF 1.5.0.6 on windows as well...

I develop on linux but still need a windows / mac box around to be fully
compatible. (it's a pain in the ass)

On 8/22/06, Pedro Viegas <pv...@gmail.com> wrote:
>
> Got the bastard! It's a snicky little one!
>
> I also updated the last SNAPSHOT and the result are exactly the same.
> As Danis said, althought the Submit does not have the async parameters the
> form does and so this should work.
> I tried the workbench demo link Jesse provided but it behaves preciselly
> like we are describing. It issues a full page refresh, not a parcial ajax
> request/refresh as we're trying to create. Can the problem be with the
> browsers we're using for the testing?
> I'm using a FF 1.5.0.6 on Windows.
>
> Out of curiosity I tried the same test case on IE 6.0.2900... and guess
> what... it works.
> From previous posts I know Jesse's OS is Linux and his browser FF. Maybe
> this issue only happens in FF on windows?
> Can you test this Jesse?
>
> So I vouch that the code works but in my tests only on IE.
> Denis, what's your browser?
>
> On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> >
> > They should be working on forms just fine.
> >
> > In fact, this form uses them here:
> >
> >
> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=SDates
> > .
> >
> >
> >
> > On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> > >
> > > The parameters are not implemented for Submit, but they already do
> exist
> > > in
> > > the Form component. Since Jesse replied that's fixed I thought it
> meant
> > > ajax
> > > should be working when using these parameters on a form.
> > >
> > > -----Original Message-----
> > > From: Norbert Sándor [mailto:developer@erinors.com]
> > > Sent: terça-feira, 22 de agosto de 2006 14:03
> > > To: Tapestry users
> > > Subject: Re: Async form in Tap4.1 does not work...
> > >
> > > As I know it is not yet implemented, I guess there are no such
> > > parameters (async, updateComponents) for Submit, LinkSubmit, etc. yet.
> > >
> > > Regards,
> > > Norbi
> > >
> > > Denis Souza wrote:
> > > > I'm still having the same problem as Pedro. Submitting a form with
> > ajax
> > > only
> > > > works when I use @EventListener. Using async=true and
> updateComponents
> > > on
> > > > the form component seem to have no effect. The form is always
> > submitted
> > > > normally (without ajax). Tried it with the latest snapshot
> > > > (4.1.1-20060822.021102-19) and still no go.
> > > >
> > > > -----Original Message-----
> > > > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > > > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > > > To: Tapestry users
> > > > Subject: Re: Async form in Tap4.1 does not work...
> > > >
> > > > Fixed.
> > > >
> > > > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > >
> > > >> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is
> > > still
> > > >> the same!
> > > >>
> > > >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > >>
> > > >>> I've been browsing the TimeTracker source to see if I can sort
> > things
> > > >>>
> > > >> out.
> > > >>
> > > >>> I've found the parameter I mentioned... the shell's
> > > ajaxEnabled="true".
> > > >>>
> > > >> I
> > > >>
> > > >>> set it up in my test code and no change. Huess it's allready true
> by
> > > >>> default.
> > > >>> Since
> > http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> > > >>> not mention it I'm only guessing.
> > > >>> By what I gather from the TimeTracker code no ajax like form
> > > submission
> > > >>>
> > > >> is
> > > >>
> > > >>> implemented. All ajax calls are made by @EventListener's setups.
> Is
> > > the
> > > >>>
> > > >> form
> > > >>
> > > >>> ajax submit working? Has anybody got it working?
> > > >>>
> > > >>> Thanks,
> > > >>>
> > > >>>
> > > >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > > >>>
> > > >>>> Yep, sorry, I was messing things up a bit.
> > > >>>> I corrected several errors I had on the code.
> > > >>>> The form submits fine, all works but not asyncronously. It does a
> > > >>>>
> > > >> normal
> > > >>
> > > >>>> submit and not an ajax one.
> > > >>>> The client side form validation is also not working. Only server
> > > side.
> > > >>>> So async mode is apparently not activating.
> > > >>>> Any clues why? I seem to remember something on the mailing list a
> > > >>>>
> > > >> while
> > > >>
> > > >>>> back of activating ajax globally... maybe on the shell component?
> > > >>>>
> > > >> Something
> > > >>
> > > >>>> like that?
> > > >>>>
> > > >>>> My testcode is as follows...
> > > >>>>
> > > >>>>
> > > >>>> .html
> > > >>>>
> > > >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > >>>> debugContainerId="dojoDebug"
> > > >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > >>>>
> > > >> 1.0Transitional//EN&quot;
> > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > >>
> > > >>>> transitional.dtd&quot;">
> > > >>>>
> > > >>>> <body jwcid="@Body">
> > > >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> > > >>>>     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
> > > >>>>           async="ognl:true" updateComponents="ognl:{'results'}"
> > > >>>> listener="listener:formSubmit">
> > > >>>>
> > > >>>>                Project name: <input jwcid="name@TextField "
> > > >>>> value="ognl:name"
> > > >>>>
> > > validators="validators:required"/>
> > > >>>> <br/>
> > > >>>>                Project description: <input jwcid="
> > > >>>>
> > > >> description@TextField"
> > > >>
> > >
> >>>>                                            value="ognl:description"
> > > />
> > > >>>>         <input jwcid="@Submit"/>
> > > >>>>
> > > >>>>     </form>
> > > >>>>     <div id="results">
> > > >>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > > >>>>         Description: <span jwcid="@Insert"
> value="ognl:description"
> > > />
> > > >>>>     </div>
> > > >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > >>>>        Debug goes here!
> > > >>>>     </div>
> > > >>>> </body>
> > > >>>> </html>
> > > >>>>
> > > >>>>  .java
> > > >>>>
> > > >>>> public abstract class Test extends BasePageImplementation {
> > > >>>>
> > > >>>>     @InitialValue("literal:delegateIt")
> > > >>>>     public abstract String getName();
> > > >>>>     @InitialValue("literal:A project management suite!")
> > > >>>>     public abstract String getDescription();
> > > >>>>
> > > >>>>     public void formSubmit(IRequestCycle cycle) {
> > > >>>>         getLogger().debug("Entered formSubmit");
> > > >>>>         getLogger().debug("Name: "+getName());
> > > >>>>         getLogger().debug("Description: "+getDescription());
> > > >>>>     }
> > > >>>> }
> > > >>>>
> > > >>>> Thanks,
> > > >>>>
> > > >>>>
> > > >>>>
> > > >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > >>>>
> > > >>>>> I don't believe @Submit or similar components accept that
> > parameter.
> > > >>>>> (double
> > > >>>>> check the docs, but I think that only applies to the @Form
> > > >>>>> currently..or
> > > >>>>> various links)
> > > >>>>>
> > > >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > > >>>>>
> > > >>>>>> Hi there.
> > > >>>>>> Been trying to get a Tap4.1 form component to behave like a
> > > >>>>>>
> > > >>>>> Tacos:AjaxForm
> > > >>>>>
> > > >>>>>> with no success.
> > > >>>>>> If I understand correctly what I have to do is declare my form
> > > >>>>>>
> > > >> with
> > > >>
> > > >>>>>> async="true" and have a submit with the updateComponents="some
> > > >>>>>>
> > > >> id",
> > > >>
> > > >>>>> right?
> > > >>>>>
> > > >>>>>> I have the following example witch always does a normal full
> page
> > > >>>>>>
> > > >>>>> submit.
> > > >>>>>
> > > >>>>>> test.html
> > > >>>>>>
> > > >>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > > >>>>>> debugContainerId="dojoDebug"
> > > >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > >>>>>> 1.0Transitional//EN&quot;
> > > >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > >>>>>> transitional.dtd&quot;">
> > > >>>>>>
> > > >>>>>> <body jwcid="@Body">
> > > >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > > >>>>>> listener="formSubmit"/>
> > > >>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
> > > >>>>>>
> > > >>>>> async="true">
> > > >>>>>
> > > >>>>>>                Project name: <input jwcid="name@TextField"
> > > >>>>>> value="ognl:name"
> > > >>>>>> validators="validators:required"/> <br/>
> > > >>>>>>                Project description: <input jwcid="
> > > >>>>>>
> > > >>>>> description@TextField"
> > > >>>>>
> > > >>>>>> value="ognl:description" />
> > > >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
> > > >>>>>>     </form>
> > > >>>>>>     <div id="results">
> > > >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > > >>>>>>         Description: <span jwcid="@Insert"
> > > >>>>>>
> > > >> value="ognl:description"
> > > >>
> > > >>>>> />
> > > >>>>>
> > > >>>>>>     </div>
> > > >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > > >>>>>>        Debug goes here!
> > > >>>>>>     </div>
> > > >>>>>> </body>
> > > >>>>>> </html>
> > > >>>>>>
> > > >>>>>> test.page
> > > >>>>>>
> > > >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> > > >>>>>> <!DOCTYPE page-specification PUBLIC
> > > >>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0
> //EN"
> > > >>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > > >>>>>>
> > > >>>>>> <page-specification class="
> > com.teamware.delegateit.view.pages.Test
> > > >>>>>>
> > > >> ">
> > > >>
> > > >>>>>> </page-specification>
> > > >>>>>>
> > > >>>>>> test.java
> > > >>>>>>
> > > >>>>>> public abstract class Test extends BasePageImplementation {
> > > >>>>>>
> > > >>>>>>     @InitialValue("literal:delegateIt")
> > > >>>>>>     public abstract String getName();
> > > >>>>>>     @InitialValue("literal:A project management suite!")
> > > >>>>>>     public abstract String getDescription();
> > > >>>>>>
> > > >>>>>>     public void formSubmit(IRequestCycle cycle) {
> > > >>>>>>         cycle.getResponseBuilder ().updateComponent("results");
> > > >>>>>>     }
> > > >>>>>> }
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> The listener code with the ResponseBuilder.updateComponent is
> > only
> > > >>>>>>
> > > >> a
> > > >>
> > > >>>>> test
> > > >>>>>
> > > >>>>>> since is was not functioning. I think it should not even be
> > > >>>>>>
> > > >>>>> necessary.
> > > >>>>>
> > > >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> > > >>>>>> Anybody knows what's wrong?
> > > >>>>>>
> > > >>>>>> Regards,
> > > >>>>>>
> > > >>>>>>
> > > >>>>>> --
> > > >>>>>> Pedro Viegas
> > > >>>>>>
> > > >>>>>>
> > > >>>>>>
> > > >>>>> --
> > > >>>>> Jesse Kuhnert
> > > >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > >>>>>
> > > >>>>> Open source based consulting work centered around
> > > >>>>> dojo/tapestry/tacos/hivemind.
> > > >>>>>
> > > >>>>>
> > > >>>>>
> > > >>>> --
> > > >>>> Pedro Viegas
> > > >>>>
> > > >>>>
> > > >>>
> > > >>> --
> > > >>> Pedro Viegas
> > > >>>
> > > >>>
> > > >>
> > > >> --
> > > >> Pedro Viegas
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind.
> >
> >
>
>
> --
> Pedro Viegas
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

Re: Async form in Tap4.1 does not work...

Posted by Pedro Viegas <pv...@gmail.com>.
Got the bastard! It's a snicky little one!

I also updated the last SNAPSHOT and the result are exactly the same.
As Danis said, althought the Submit does not have the async parameters the
form does and so this should work.
I tried the workbench demo link Jesse provided but it behaves preciselly
like we are describing. It issues a full page refresh, not a parcial ajax
request/refresh as we're trying to create. Can the problem be with the
browsers we're using for the testing?
I'm using a FF 1.5.0.6 on Windows.

Out of curiosity I tried the same test case on IE 6.0.2900... and guess
what... it works.
>From previous posts I know Jesse's OS is Linux and his browser FF. Maybe
this issue only happens in FF on windows?
Can you test this Jesse?

So I vouch that the code works but in my tests only on IE.
Denis, what's your browser?

On 8/22/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> They should be working on forms just fine.
>
> In fact, this form uses them here:
>
> http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=SDates
> .
>
>
>
> On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
> >
> > The parameters are not implemented for Submit, but they already do exist
> > in
> > the Form component. Since Jesse replied that's fixed I thought it meant
> > ajax
> > should be working when using these parameters on a form.
> >
> > -----Original Message-----
> > From: Norbert Sándor [mailto:developer@erinors.com]
> > Sent: terça-feira, 22 de agosto de 2006 14:03
> > To: Tapestry users
> > Subject: Re: Async form in Tap4.1 does not work...
> >
> > As I know it is not yet implemented, I guess there are no such
> > parameters (async, updateComponents) for Submit, LinkSubmit, etc. yet.
> >
> > Regards,
> > Norbi
> >
> > Denis Souza wrote:
> > > I'm still having the same problem as Pedro. Submitting a form with
> ajax
> > only
> > > works when I use @EventListener. Using async=true and updateComponents
> > on
> > > the form component seem to have no effect. The form is always
> submitted
> > > normally (without ajax). Tried it with the latest snapshot
> > > (4.1.1-20060822.021102-19) and still no go.
> > >
> > > -----Original Message-----
> > > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > > To: Tapestry users
> > > Subject: Re: Async form in Tap4.1 does not work...
> > >
> > > Fixed.
> > >
> > > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >
> > >> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is
> > still
> > >> the same!
> > >>
> > >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >>
> > >>> I've been browsing the TimeTracker source to see if I can sort
> things
> > >>>
> > >> out.
> > >>
> > >>> I've found the parameter I mentioned... the shell's
> > ajaxEnabled="true".
> > >>>
> > >> I
> > >>
> > >>> set it up in my test code and no change. Huess it's allready true by
> > >>> default.
> > >>> Since
> http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> > >>> not mention it I'm only guessing.
> > >>> By what I gather from the TimeTracker code no ajax like form
> > submission
> > >>>
> > >> is
> > >>
> > >>> implemented. All ajax calls are made by @EventListener's setups. Is
> > the
> > >>>
> > >> form
> > >>
> > >>> ajax submit working? Has anybody got it working?
> > >>>
> > >>> Thanks,
> > >>>
> > >>>
> > >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >>>
> > >>>> Yep, sorry, I was messing things up a bit.
> > >>>> I corrected several errors I had on the code.
> > >>>> The form submits fine, all works but not asyncronously. It does a
> > >>>>
> > >> normal
> > >>
> > >>>> submit and not an ajax one.
> > >>>> The client side form validation is also not working. Only server
> > side.
> > >>>> So async mode is apparently not activating.
> > >>>> Any clues why? I seem to remember something on the mailing list a
> > >>>>
> > >> while
> > >>
> > >>>> back of activating ajax globally... maybe on the shell component?
> > >>>>
> > >> Something
> > >>
> > >>>> like that?
> > >>>>
> > >>>> My testcode is as follows...
> > >>>>
> > >>>>
> > >>>> .html
> > >>>>
> > >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > >>>> debugContainerId="dojoDebug"
> > >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > >>>>
> > >> 1.0Transitional//EN&quot;
> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > >>
> > >>>> transitional.dtd&quot;">
> > >>>>
> > >>>> <body jwcid="@Body">
> > >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> > >>>>     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
> > >>>>           async="ognl:true" updateComponents="ognl:{'results'}"
> > >>>> listener="listener:formSubmit">
> > >>>>
> > >>>>                Project name: <input jwcid="name@TextField "
> > >>>> value="ognl:name"
> > >>>>
> > validators="validators:required"/>
> > >>>> <br/>
> > >>>>                Project description: <input jwcid="
> > >>>>
> > >> description@TextField"
> > >>
> > >>>>                                            value="ognl:description"
> > />
> > >>>>         <input jwcid="@Submit"/>
> > >>>>
> > >>>>     </form>
> > >>>>     <div id="results">
> > >>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > >>>>         Description: <span jwcid="@Insert" value="ognl:description"
> > />
> > >>>>     </div>
> > >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > >>>>        Debug goes here!
> > >>>>     </div>
> > >>>> </body>
> > >>>> </html>
> > >>>>
> > >>>>  .java
> > >>>>
> > >>>> public abstract class Test extends BasePageImplementation {
> > >>>>
> > >>>>     @InitialValue("literal:delegateIt")
> > >>>>     public abstract String getName();
> > >>>>     @InitialValue("literal:A project management suite!")
> > >>>>     public abstract String getDescription();
> > >>>>
> > >>>>     public void formSubmit(IRequestCycle cycle) {
> > >>>>         getLogger().debug("Entered formSubmit");
> > >>>>         getLogger().debug("Name: "+getName());
> > >>>>         getLogger().debug("Description: "+getDescription());
> > >>>>     }
> > >>>> }
> > >>>>
> > >>>> Thanks,
> > >>>>
> > >>>>
> > >>>>
> > >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > >>>>
> > >>>>> I don't believe @Submit or similar components accept that
> parameter.
> > >>>>> (double
> > >>>>> check the docs, but I think that only applies to the @Form
> > >>>>> currently..or
> > >>>>> various links)
> > >>>>>
> > >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > >>>>>
> > >>>>>> Hi there.
> > >>>>>> Been trying to get a Tap4.1 form component to behave like a
> > >>>>>>
> > >>>>> Tacos:AjaxForm
> > >>>>>
> > >>>>>> with no success.
> > >>>>>> If I understand correctly what I have to do is declare my form
> > >>>>>>
> > >> with
> > >>
> > >>>>>> async="true" and have a submit with the updateComponents="some
> > >>>>>>
> > >> id",
> > >>
> > >>>>> right?
> > >>>>>
> > >>>>>> I have the following example witch always does a normal full page
> > >>>>>>
> > >>>>> submit.
> > >>>>>
> > >>>>>> test.html
> > >>>>>>
> > >>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> > >>>>>> debugContainerId="dojoDebug"
> > >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > >>>>>> 1.0Transitional//EN&quot;
> > >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > >>>>>> transitional.dtd&quot;">
> > >>>>>>
> > >>>>>> <body jwcid="@Body">
> > >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > >>>>>> listener="formSubmit"/>
> > >>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
> > >>>>>>
> > >>>>> async="true">
> > >>>>>
> > >>>>>>                Project name: <input jwcid="name@TextField"
> > >>>>>> value="ognl:name"
> > >>>>>> validators="validators:required"/> <br/>
> > >>>>>>                Project description: <input jwcid="
> > >>>>>>
> > >>>>> description@TextField"
> > >>>>>
> > >>>>>> value="ognl:description" />
> > >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
> > >>>>>>     </form>
> > >>>>>>     <div id="results">
> > >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > >>>>>>         Description: <span jwcid="@Insert"
> > >>>>>>
> > >> value="ognl:description"
> > >>
> > >>>>> />
> > >>>>>
> > >>>>>>     </div>
> > >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> > >>>>>>        Debug goes here!
> > >>>>>>     </div>
> > >>>>>> </body>
> > >>>>>> </html>
> > >>>>>>
> > >>>>>> test.page
> > >>>>>>
> > >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> > >>>>>> <!DOCTYPE page-specification PUBLIC
> > >>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> > >>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > >>>>>>
> > >>>>>> <page-specification class="
> com.teamware.delegateit.view.pages.Test
> > >>>>>>
> > >> ">
> > >>
> > >>>>>> </page-specification>
> > >>>>>>
> > >>>>>> test.java
> > >>>>>>
> > >>>>>> public abstract class Test extends BasePageImplementation {
> > >>>>>>
> > >>>>>>     @InitialValue("literal:delegateIt")
> > >>>>>>     public abstract String getName();
> > >>>>>>     @InitialValue("literal:A project management suite!")
> > >>>>>>     public abstract String getDescription();
> > >>>>>>
> > >>>>>>     public void formSubmit(IRequestCycle cycle) {
> > >>>>>>         cycle.getResponseBuilder ().updateComponent("results");
> > >>>>>>     }
> > >>>>>> }
> > >>>>>>
> > >>>>>>
> > >>>>>> The listener code with the ResponseBuilder.updateComponent is
> only
> > >>>>>>
> > >> a
> > >>
> > >>>>> test
> > >>>>>
> > >>>>>> since is was not functioning. I think it should not even be
> > >>>>>>
> > >>>>> necessary.
> > >>>>>
> > >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> > >>>>>> Anybody knows what's wrong?
> > >>>>>>
> > >>>>>> Regards,
> > >>>>>>
> > >>>>>>
> > >>>>>> --
> > >>>>>> Pedro Viegas
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>> --
> > >>>>> Jesse Kuhnert
> > >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > >>>>>
> > >>>>> Open source based consulting work centered around
> > >>>>> dojo/tapestry/tacos/hivemind.
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>> --
> > >>>> Pedro Viegas
> > >>>>
> > >>>>
> > >>>
> > >>> --
> > >>> Pedro Viegas
> > >>>
> > >>>
> > >>
> > >> --
> > >> Pedro Viegas
> > >>
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>


-- 
Pedro Viegas

RE: Async form in Tap4.1 does not work...

Posted by Denis Souza <de...@camerum.com.br>.
It really is working. I don't get it though. I looked at the source code and
changed my own code to look as much like it as possible so I could spot the
problem. But still no ajax.
This is the test I wrote:

<html jwcid="@Shell" title="Test" disableCaching="true">
<body jwcid="@Body">

<form jwcid="@Form" async="ognl:true" updateComponents="ognl:{'testajax'}">
	<input jwcid="@TextField" value="ognl:val"/>
	<input jwcid="@Submit" value="Submit"/>
</form>

<div jwcid="testajax@Any">
	<span jwcid="@Insert" value="ognl:val"/>
</div>

</body>
</html>

Where "val" is a String in the component's class.

Is there something I'm doing wrong?

Thanks,
Denis

-----Original Message-----
From: Jesse Kuhnert [mailto:jkuhnert@gmail.com] 
Sent: terça-feira, 22 de agosto de 2006 18:17
To: Tapestry users
Subject: Re: Async form in Tap4.1 does not work...

They should be working on forms just fine.

In fact, this form uses them here:
http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=S
Dates
.



On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
>
> The parameters are not implemented for Submit, but they already do exist
> in
> the Form component. Since Jesse replied that's fixed I thought it meant
> ajax
> should be working when using these parameters on a form.
>
> -----Original Message-----
> From: Norbert Sándor [mailto:developer@erinors.com]
> Sent: terça-feira, 22 de agosto de 2006 14:03
> To: Tapestry users
> Subject: Re: Async form in Tap4.1 does not work...
>
> As I know it is not yet implemented, I guess there are no such
> parameters (async, updateComponents) for Submit, LinkSubmit, etc. yet.
>
> Regards,
> Norbi
>
> Denis Souza wrote:
> > I'm still having the same problem as Pedro. Submitting a form with ajax
> only
> > works when I use @EventListener. Using async=true and updateComponents
> on
> > the form component seem to have no effect. The form is always submitted
> > normally (without ajax). Tried it with the latest snapshot
> > (4.1.1-20060822.021102-19) and still no go.
> >
> > -----Original Message-----
> > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > To: Tapestry users
> > Subject: Re: Async form in Tap4.1 does not work...
> >
> > Fixed.
> >
> > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> >
> >> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is
> still
> >> the same!
> >>
> >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> >>
> >>> I've been browsing the TimeTracker source to see if I can sort things
> >>>
> >> out.
> >>
> >>> I've found the parameter I mentioned... the shell's
> ajaxEnabled="true".
> >>>
> >> I
> >>
> >>> set it up in my test code and no change. Huess it's allready true by
> >>> default.
> >>> Since http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> >>> not mention it I'm only guessing.
> >>> By what I gather from the TimeTracker code no ajax like form
> submission
> >>>
> >> is
> >>
> >>> implemented. All ajax calls are made by @EventListener's setups. Is
> the
> >>>
> >> form
> >>
> >>> ajax submit working? Has anybody got it working?
> >>>
> >>> Thanks,
> >>>
> >>>
> >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> >>>
> >>>> Yep, sorry, I was messing things up a bit.
> >>>> I corrected several errors I had on the code.
> >>>> The form submits fine, all works but not asyncronously. It does a
> >>>>
> >> normal
> >>
> >>>> submit and not an ajax one.
> >>>> The client side form validation is also not working. Only server
> side.
> >>>> So async mode is apparently not activating.
> >>>> Any clues why? I seem to remember something on the mailing list a
> >>>>
> >> while
> >>
> >>>> back of activating ajax globally... maybe on the shell component?
> >>>>
> >> Something
> >>
> >>>> like that?
> >>>>
> >>>> My testcode is as follows...
> >>>>
> >>>>
> >>>> .html
> >>>>
> >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> >>>> debugContainerId="dojoDebug"
> >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> >>>>
> >> 1.0Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> >>
> >>>> transitional.dtd&quot;">
> >>>>
> >>>> <body jwcid="@Body">
> >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> >>>>     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
> >>>>           async="ognl:true" updateComponents="ognl:{'results'}"
> >>>> listener="listener:formSubmit">
> >>>>
> >>>>                Project name: <input jwcid="name@TextField "
> >>>> value="ognl:name"
> >>>>
> validators="validators:required"/>
> >>>> <br/>
> >>>>                Project description: <input jwcid="
> >>>>
> >> description@TextField"
> >>
> >>>>                                            value="ognl:description"
> />
> >>>>         <input jwcid="@Submit"/>
> >>>>
> >>>>     </form>
> >>>>     <div id="results">
> >>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> >>>>         Description: <span jwcid="@Insert" value="ognl:description"
> />
> >>>>     </div>
> >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> >>>>        Debug goes here!
> >>>>     </div>
> >>>> </body>
> >>>> </html>
> >>>>
> >>>>  .java
> >>>>
> >>>> public abstract class Test extends BasePageImplementation {
> >>>>
> >>>>     @InitialValue("literal:delegateIt")
> >>>>     public abstract String getName();
> >>>>     @InitialValue("literal:A project management suite!")
> >>>>     public abstract String getDescription();
> >>>>
> >>>>     public void formSubmit(IRequestCycle cycle) {
> >>>>         getLogger().debug("Entered formSubmit");
> >>>>         getLogger().debug("Name: "+getName());
> >>>>         getLogger().debug("Description: "+getDescription());
> >>>>     }
> >>>> }
> >>>>
> >>>> Thanks,
> >>>>
> >>>>
> >>>>
> >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> >>>>
> >>>>> I don't believe @Submit or similar components accept that parameter.
> >>>>> (double
> >>>>> check the docs, but I think that only applies to the @Form
> >>>>> currently..or
> >>>>> various links)
> >>>>>
> >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> >>>>>
> >>>>>> Hi there.
> >>>>>> Been trying to get a Tap4.1 form component to behave like a
> >>>>>>
> >>>>> Tacos:AjaxForm
> >>>>>
> >>>>>> with no success.
> >>>>>> If I understand correctly what I have to do is declare my form
> >>>>>>
> >> with
> >>
> >>>>>> async="true" and have a submit with the updateComponents="some
> >>>>>>
> >> id",
> >>
> >>>>> right?
> >>>>>
> >>>>>> I have the following example witch always does a normal full page
> >>>>>>
> >>>>> submit.
> >>>>>
> >>>>>> test.html
> >>>>>>
> >>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> >>>>>> debugContainerId="dojoDebug"
> >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> >>>>>> 1.0Transitional//EN&quot;
> >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> >>>>>> transitional.dtd&quot;">
> >>>>>>
> >>>>>> <body jwcid="@Body">
> >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> >>>>>> listener="formSubmit"/>
> >>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
> >>>>>>
> >>>>> async="true">
> >>>>>
> >>>>>>                Project name: <input jwcid="name@TextField"
> >>>>>> value="ognl:name"
> >>>>>> validators="validators:required"/> <br/>
> >>>>>>                Project description: <input jwcid="
> >>>>>>
> >>>>> description@TextField"
> >>>>>
> >>>>>> value="ognl:description" />
> >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
> >>>>>>     </form>
> >>>>>>     <div id="results">
> >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> >>>>>>         Description: <span jwcid="@Insert"
> >>>>>>
> >> value="ognl:description"
> >>
> >>>>> />
> >>>>>
> >>>>>>     </div>
> >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> >>>>>>        Debug goes here!
> >>>>>>     </div>
> >>>>>> </body>
> >>>>>> </html>
> >>>>>>
> >>>>>> test.page
> >>>>>>
> >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> >>>>>> <!DOCTYPE page-specification PUBLIC
> >>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> >>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> >>>>>>
> >>>>>> <page-specification class="com.teamware.delegateit.view.pages.Test
> >>>>>>
> >> ">
> >>
> >>>>>> </page-specification>
> >>>>>>
> >>>>>> test.java
> >>>>>>
> >>>>>> public abstract class Test extends BasePageImplementation {
> >>>>>>
> >>>>>>     @InitialValue("literal:delegateIt")
> >>>>>>     public abstract String getName();
> >>>>>>     @InitialValue("literal:A project management suite!")
> >>>>>>     public abstract String getDescription();
> >>>>>>
> >>>>>>     public void formSubmit(IRequestCycle cycle) {
> >>>>>>         cycle.getResponseBuilder ().updateComponent("results");
> >>>>>>     }
> >>>>>> }
> >>>>>>
> >>>>>>
> >>>>>> The listener code with the ResponseBuilder.updateComponent is only
> >>>>>>
> >> a
> >>
> >>>>> test
> >>>>>
> >>>>>> since is was not functioning. I think it should not even be
> >>>>>>
> >>>>> necessary.
> >>>>>
> >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> >>>>>> Anybody knows what's wrong?
> >>>>>>
> >>>>>> Regards,
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Pedro Viegas
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> --
> >>>>> Jesse Kuhnert
> >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
> >>>>>
> >>>>> Open source based consulting work centered around
> >>>>> dojo/tapestry/tacos/hivemind.
> >>>>>
> >>>>>
> >>>>>
> >>>> --
> >>>> Pedro Viegas
> >>>>
> >>>>
> >>>
> >>> --
> >>> Pedro Viegas
> >>>
> >>>
> >>
> >> --
> >> Pedro Viegas
> >>
> >>
> >>
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Async form in Tap4.1 does not work...

Posted by Jesse Kuhnert <jk...@gmail.com>.
They should be working on forms just fine.

In fact, this form uses them here:
http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=SDates
.



On 8/22/06, Denis Souza <de...@camerum.com.br> wrote:
>
> The parameters are not implemented for Submit, but they already do exist
> in
> the Form component. Since Jesse replied that's fixed I thought it meant
> ajax
> should be working when using these parameters on a form.
>
> -----Original Message-----
> From: Norbert Sándor [mailto:developer@erinors.com]
> Sent: terça-feira, 22 de agosto de 2006 14:03
> To: Tapestry users
> Subject: Re: Async form in Tap4.1 does not work...
>
> As I know it is not yet implemented, I guess there are no such
> parameters (async, updateComponents) for Submit, LinkSubmit, etc. yet.
>
> Regards,
> Norbi
>
> Denis Souza wrote:
> > I'm still having the same problem as Pedro. Submitting a form with ajax
> only
> > works when I use @EventListener. Using async=true and updateComponents
> on
> > the form component seem to have no effect. The form is always submitted
> > normally (without ajax). Tried it with the latest snapshot
> > (4.1.1-20060822.021102-19) and still no go.
> >
> > -----Original Message-----
> > From: Jesse Kuhnert [mailto:jkuhnert@gmail.com]
> > Sent: segunda-feira, 21 de agosto de 2006 23:14
> > To: Tapestry users
> > Subject: Re: Async form in Tap4.1 does not work...
> >
> > Fixed.
> >
> > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> >
> >> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is
> still
> >> the same!
> >>
> >> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> >>
> >>> I've been browsing the TimeTracker source to see if I can sort things
> >>>
> >> out.
> >>
> >>> I've found the parameter I mentioned... the shell's
> ajaxEnabled="true".
> >>>
> >> I
> >>
> >>> set it up in my test code and no change. Huess it's allready true by
> >>> default.
> >>> Since http://tapestry.apache.org/tapestry4.1/components/Shell.htmldoes
> >>> not mention it I'm only guessing.
> >>> By what I gather from the TimeTracker code no ajax like form
> submission
> >>>
> >> is
> >>
> >>> implemented. All ajax calls are made by @EventListener's setups. Is
> the
> >>>
> >> form
> >>
> >>> ajax submit working? Has anybody got it working?
> >>>
> >>> Thanks,
> >>>
> >>>
> >>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> >>>
> >>>> Yep, sorry, I was messing things up a bit.
> >>>> I corrected several errors I had on the code.
> >>>> The form submits fine, all works but not asyncronously. It does a
> >>>>
> >> normal
> >>
> >>>> submit and not an ajax one.
> >>>> The client side form validation is also not working. Only server
> side.
> >>>> So async mode is apparently not activating.
> >>>> Any clues why? I seem to remember something on the mailing list a
> >>>>
> >> while
> >>
> >>>> back of activating ajax globally... maybe on the shell component?
> >>>>
> >> Something
> >>
> >>>> like that?
> >>>>
> >>>> My testcode is as follows...
> >>>>
> >>>>
> >>>> .html
> >>>>
> >>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> >>>>       browserLogLevel="DEBUG" debugEnabled="true"
> >>>> debugContainerId="dojoDebug"
> >>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> >>>>
> >> 1.0Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> >>
> >>>> transitional.dtd&quot;">
> >>>>
> >>>> <body jwcid="@Body">
> >>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> >>>>     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
> >>>>           async="ognl:true" updateComponents="ognl:{'results'}"
> >>>> listener="listener:formSubmit">
> >>>>
> >>>>                Project name: <input jwcid="name@TextField "
> >>>> value="ognl:name"
> >>>>
> validators="validators:required"/>
> >>>> <br/>
> >>>>                Project description: <input jwcid="
> >>>>
> >> description@TextField"
> >>
> >>>>                                            value="ognl:description"
> />
> >>>>         <input jwcid="@Submit"/>
> >>>>
> >>>>     </form>
> >>>>     <div id="results">
> >>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> >>>>         Description: <span jwcid="@Insert" value="ognl:description"
> />
> >>>>     </div>
> >>>>     <div id="dojoDebug" style="background-color: #DDD;">
> >>>>        Debug goes here!
> >>>>     </div>
> >>>> </body>
> >>>> </html>
> >>>>
> >>>>  .java
> >>>>
> >>>> public abstract class Test extends BasePageImplementation {
> >>>>
> >>>>     @InitialValue("literal:delegateIt")
> >>>>     public abstract String getName();
> >>>>     @InitialValue("literal:A project management suite!")
> >>>>     public abstract String getDescription();
> >>>>
> >>>>     public void formSubmit(IRequestCycle cycle) {
> >>>>         getLogger().debug("Entered formSubmit");
> >>>>         getLogger().debug("Name: "+getName());
> >>>>         getLogger().debug("Description: "+getDescription());
> >>>>     }
> >>>> }
> >>>>
> >>>> Thanks,
> >>>>
> >>>>
> >>>>
> >>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> >>>>
> >>>>> I don't believe @Submit or similar components accept that parameter.
> >>>>> (double
> >>>>> check the docs, but I think that only applies to the @Form
> >>>>> currently..or
> >>>>> various links)
> >>>>>
> >>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> >>>>>
> >>>>>> Hi there.
> >>>>>> Been trying to get a Tap4.1 form component to behave like a
> >>>>>>
> >>>>> Tacos:AjaxForm
> >>>>>
> >>>>>> with no success.
> >>>>>> If I understand correctly what I have to do is declare my form
> >>>>>>
> >> with
> >>
> >>>>>> async="true" and have a submit with the updateComponents="some
> >>>>>>
> >> id",
> >>
> >>>>> right?
> >>>>>
> >>>>>> I have the following example witch always does a normal full page
> >>>>>>
> >>>>> submit.
> >>>>>
> >>>>>> test.html
> >>>>>>
> >>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> >>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
> >>>>>> debugContainerId="dojoDebug"
> >>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> >>>>>> 1.0Transitional//EN&quot;
> >>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> >>>>>> transitional.dtd&quot;">
> >>>>>>
> >>>>>> <body jwcid="@Body">
> >>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> >>>>>> listener="formSubmit"/>
> >>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
> >>>>>>
> >>>>> async="true">
> >>>>>
> >>>>>>                Project name: <input jwcid="name@TextField"
> >>>>>> value="ognl:name"
> >>>>>> validators="validators:required"/> <br/>
> >>>>>>                Project description: <input jwcid="
> >>>>>>
> >>>>> description@TextField"
> >>>>>
> >>>>>> value="ognl:description" />
> >>>>>>         <input jwcid="@Submit" updateComponents="results"/>
> >>>>>>     </form>
> >>>>>>     <div id="results">
> >>>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> >>>>>>         Description: <span jwcid="@Insert"
> >>>>>>
> >> value="ognl:description"
> >>
> >>>>> />
> >>>>>
> >>>>>>     </div>
> >>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
> >>>>>>        Debug goes here!
> >>>>>>     </div>
> >>>>>> </body>
> >>>>>> </html>
> >>>>>>
> >>>>>> test.page
> >>>>>>
> >>>>>> <?xml version="1.0" encoding="UTF-8"?>
> >>>>>> <!DOCTYPE page-specification PUBLIC
> >>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> >>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> >>>>>>
> >>>>>> <page-specification class="com.teamware.delegateit.view.pages.Test
> >>>>>>
> >> ">
> >>
> >>>>>> </page-specification>
> >>>>>>
> >>>>>> test.java
> >>>>>>
> >>>>>> public abstract class Test extends BasePageImplementation {
> >>>>>>
> >>>>>>     @InitialValue("literal:delegateIt")
> >>>>>>     public abstract String getName();
> >>>>>>     @InitialValue("literal:A project management suite!")
> >>>>>>     public abstract String getDescription();
> >>>>>>
> >>>>>>     public void formSubmit(IRequestCycle cycle) {
> >>>>>>         cycle.getResponseBuilder ().updateComponent("results");
> >>>>>>     }
> >>>>>> }
> >>>>>>
> >>>>>>
> >>>>>> The listener code with the ResponseBuilder.updateComponent is only
> >>>>>>
> >> a
> >>
> >>>>> test
> >>>>>
> >>>>>> since is was not functioning. I think it should not even be
> >>>>>>
> >>>>> necessary.
> >>>>>
> >>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
> >>>>>> Anybody knows what's wrong?
> >>>>>>
> >>>>>> Regards,
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Pedro Viegas
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> --
> >>>>> Jesse Kuhnert
> >>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
> >>>>>
> >>>>> Open source based consulting work centered around
> >>>>> dojo/tapestry/tacos/hivemind.
> >>>>>
> >>>>>
> >>>>>
> >>>> --
> >>>> Pedro Viegas
> >>>>
> >>>>
> >>>
> >>> --
> >>> Pedro Viegas
> >>>
> >>>
> >>
> >> --
> >> Pedro Viegas
> >>
> >>
> >>
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

RE: Async form in Tap4.1 does not work...

Posted by Denis Souza <de...@camerum.com.br>.
The parameters are not implemented for Submit, but they already do exist in
the Form component. Since Jesse replied that's fixed I thought it meant ajax
should be working when using these parameters on a form.

-----Original Message-----
From: Norbert Sándor [mailto:developer@erinors.com] 
Sent: terça-feira, 22 de agosto de 2006 14:03
To: Tapestry users
Subject: Re: Async form in Tap4.1 does not work...

As I know it is not yet implemented, I guess there are no such 
parameters (async, updateComponents) for Submit, LinkSubmit, etc. yet.

Regards,
Norbi

Denis Souza wrote:
> I'm still having the same problem as Pedro. Submitting a form with ajax
only
> works when I use @EventListener. Using async=true and updateComponents on
> the form component seem to have no effect. The form is always submitted
> normally (without ajax). Tried it with the latest snapshot
> (4.1.1-20060822.021102-19) and still no go.
>
> -----Original Message-----
> From: Jesse Kuhnert [mailto:jkuhnert@gmail.com] 
> Sent: segunda-feira, 21 de agosto de 2006 23:14
> To: Tapestry users
> Subject: Re: Async form in Tap4.1 does not work...
>
> Fixed.
>
> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>   
>> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is still
>> the same!
>>
>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>>     
>>> I've been browsing the TimeTracker source to see if I can sort things
>>>       
>> out.
>>     
>>> I've found the parameter I mentioned... the shell's ajaxEnabled="true".
>>>       
>> I
>>     
>>> set it up in my test code and no change. Huess it's allready true by
>>> default.
>>> Since http://tapestry.apache.org/tapestry4.1/components/Shell.html does
>>> not mention it I'm only guessing.
>>> By what I gather from the TimeTracker code no ajax like form submission
>>>       
>> is
>>     
>>> implemented. All ajax calls are made by @EventListener's setups. Is the
>>>       
>> form
>>     
>>> ajax submit working? Has anybody got it working?
>>>
>>> Thanks,
>>>
>>>
>>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>>>       
>>>> Yep, sorry, I was messing things up a bit.
>>>> I corrected several errors I had on the code.
>>>> The form submits fine, all works but not asyncronously. It does a
>>>>         
>> normal
>>     
>>>> submit and not an ajax one.
>>>> The client side form validation is also not working. Only server side.
>>>> So async mode is apparently not activating.
>>>> Any clues why? I seem to remember something on the mailing list a
>>>>         
>> while
>>     
>>>> back of activating ajax globally... maybe on the shell component?
>>>>         
>> Something
>>     
>>>> like that?
>>>>
>>>> My testcode is as follows...
>>>>
>>>>
>>>> .html
>>>>
>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
>>>>       browserLogLevel="DEBUG" debugEnabled="true"
>>>> debugContainerId="dojoDebug"
>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
>>>>         
>> 1.0Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
>>     
>>>> transitional.dtd&quot;">
>>>>
>>>> <body jwcid="@Body">
>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
>>>>     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
>>>>           async="ognl:true" updateComponents="ognl:{'results'}"
>>>> listener="listener:formSubmit">
>>>>
>>>>                Project name: <input jwcid="name@TextField "
>>>> value="ognl:name"
>>>>                                     validators="validators:required"/>
>>>> <br/>
>>>>                Project description: <input jwcid="
>>>>         
>> description@TextField"
>>     
>>>>                                            value="ognl:description" />
>>>>         <input jwcid="@Submit"/>
>>>>
>>>>     </form>
>>>>     <div id="results">
>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
>>>>         Description: <span jwcid="@Insert" value="ognl:description" />
>>>>     </div>
>>>>     <div id="dojoDebug" style="background-color: #DDD;">
>>>>        Debug goes here!
>>>>     </div>
>>>> </body>
>>>> </html>
>>>>
>>>>  .java
>>>>
>>>> public abstract class Test extends BasePageImplementation {
>>>>
>>>>     @InitialValue("literal:delegateIt")
>>>>     public abstract String getName();
>>>>     @InitialValue("literal:A project management suite!")
>>>>     public abstract String getDescription();
>>>>
>>>>     public void formSubmit(IRequestCycle cycle) {
>>>>         getLogger().debug("Entered formSubmit");
>>>>         getLogger().debug("Name: "+getName());
>>>>         getLogger().debug("Description: "+getDescription());
>>>>     }
>>>> }
>>>>
>>>> Thanks,
>>>>
>>>>
>>>>
>>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>>>>         
>>>>> I don't believe @Submit or similar components accept that parameter.
>>>>> (double
>>>>> check the docs, but I think that only applies to the @Form
>>>>> currently..or
>>>>> various links)
>>>>>
>>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
>>>>>           
>>>>>> Hi there.
>>>>>> Been trying to get a Tap4.1 form component to behave like a
>>>>>>             
>>>>> Tacos:AjaxForm
>>>>>           
>>>>>> with no success.
>>>>>> If I understand correctly what I have to do is declare my form
>>>>>>             
>> with
>>     
>>>>>> async="true" and have a submit with the updateComponents="some
>>>>>>             
>> id",
>>     
>>>>> right?
>>>>>           
>>>>>> I have the following example witch always does a normal full page
>>>>>>             
>>>>> submit.
>>>>>           
>>>>>> test.html
>>>>>>
>>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
>>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
>>>>>> debugContainerId="dojoDebug"
>>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
>>>>>> 1.0Transitional//EN&quot;
>>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
>>>>>> transitional.dtd&quot;">
>>>>>>
>>>>>> <body jwcid="@Body">
>>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
>>>>>> listener="formSubmit"/>
>>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
>>>>>>             
>>>>> async="true">
>>>>>           
>>>>>>                Project name: <input jwcid="name@TextField"
>>>>>> value="ognl:name"
>>>>>> validators="validators:required"/> <br/>
>>>>>>                Project description: <input jwcid="
>>>>>>             
>>>>> description@TextField"
>>>>>           
>>>>>> value="ognl:description" />
>>>>>>         <input jwcid="@Submit" updateComponents="results"/>
>>>>>>     </form>
>>>>>>     <div id="results">
>>>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
>>>>>>         Description: <span jwcid="@Insert"
>>>>>>             
>> value="ognl:description"
>>     
>>>>> />
>>>>>           
>>>>>>     </div>
>>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
>>>>>>        Debug goes here!
>>>>>>     </div>
>>>>>> </body>
>>>>>> </html>
>>>>>>
>>>>>> test.page
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>> <!DOCTYPE page-specification PUBLIC
>>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
>>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
>>>>>>
>>>>>> <page-specification class="com.teamware.delegateit.view.pages.Test
>>>>>>             
>> ">
>>     
>>>>>> </page-specification>
>>>>>>
>>>>>> test.java
>>>>>>
>>>>>> public abstract class Test extends BasePageImplementation {
>>>>>>
>>>>>>     @InitialValue("literal:delegateIt")
>>>>>>     public abstract String getName();
>>>>>>     @InitialValue("literal:A project management suite!")
>>>>>>     public abstract String getDescription();
>>>>>>
>>>>>>     public void formSubmit(IRequestCycle cycle) {
>>>>>>         cycle.getResponseBuilder ().updateComponent("results");
>>>>>>     }
>>>>>> }
>>>>>>
>>>>>>
>>>>>> The listener code with the ResponseBuilder.updateComponent is only
>>>>>>             
>> a
>>     
>>>>> test
>>>>>           
>>>>>> since is was not functioning. I think it should not even be
>>>>>>             
>>>>> necessary.
>>>>>           
>>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
>>>>>> Anybody knows what's wrong?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Pedro Viegas
>>>>>>
>>>>>>
>>>>>>             
>>>>> --
>>>>> Jesse Kuhnert
>>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>>>>>
>>>>> Open source based consulting work centered around
>>>>> dojo/tapestry/tacos/hivemind.
>>>>>
>>>>>
>>>>>           
>>>> --
>>>> Pedro Viegas
>>>>
>>>>         
>>>
>>> --
>>> Pedro Viegas
>>>
>>>       
>>
>> --
>> Pedro Viegas
>>
>>
>>     
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Async form in Tap4.1 does not work...

Posted by Norbert Sándor <de...@erinors.com>.
As I know it is not yet implemented, I guess there are no such 
parameters (async, updateComponents) for Submit, LinkSubmit, etc. yet.

Regards,
Norbi

Denis Souza wrote:
> I'm still having the same problem as Pedro. Submitting a form with ajax only
> works when I use @EventListener. Using async=true and updateComponents on
> the form component seem to have no effect. The form is always submitted
> normally (without ajax). Tried it with the latest snapshot
> (4.1.1-20060822.021102-19) and still no go.
>
> -----Original Message-----
> From: Jesse Kuhnert [mailto:jkuhnert@gmail.com] 
> Sent: segunda-feira, 21 de agosto de 2006 23:14
> To: Tapestry users
> Subject: Re: Async form in Tap4.1 does not work...
>
> Fixed.
>
> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>   
>> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is still
>> the same!
>>
>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>>     
>>> I've been browsing the TimeTracker source to see if I can sort things
>>>       
>> out.
>>     
>>> I've found the parameter I mentioned... the shell's ajaxEnabled="true".
>>>       
>> I
>>     
>>> set it up in my test code and no change. Huess it's allready true by
>>> default.
>>> Since http://tapestry.apache.org/tapestry4.1/components/Shell.html does
>>> not mention it I'm only guessing.
>>> By what I gather from the TimeTracker code no ajax like form submission
>>>       
>> is
>>     
>>> implemented. All ajax calls are made by @EventListener's setups. Is the
>>>       
>> form
>>     
>>> ajax submit working? Has anybody got it working?
>>>
>>> Thanks,
>>>
>>>
>>> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>>>       
>>>> Yep, sorry, I was messing things up a bit.
>>>> I corrected several errors I had on the code.
>>>> The form submits fine, all works but not asyncronously. It does a
>>>>         
>> normal
>>     
>>>> submit and not an ajax one.
>>>> The client side form validation is also not working. Only server side.
>>>> So async mode is apparently not activating.
>>>> Any clues why? I seem to remember something on the mailing list a
>>>>         
>> while
>>     
>>>> back of activating ajax globally... maybe on the shell component?
>>>>         
>> Something
>>     
>>>> like that?
>>>>
>>>> My testcode is as follows...
>>>>
>>>>
>>>> .html
>>>>
>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
>>>>       browserLogLevel="DEBUG" debugEnabled="true"
>>>> debugContainerId="dojoDebug"
>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
>>>>         
>> 1.0Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
>>     
>>>> transitional.dtd&quot;">
>>>>
>>>> <body jwcid="@Body">
>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
>>>>     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
>>>>           async="ognl:true" updateComponents="ognl:{'results'}"
>>>> listener="listener:formSubmit">
>>>>
>>>>                Project name: <input jwcid="name@TextField "
>>>> value="ognl:name"
>>>>                                     validators="validators:required"/>
>>>> <br/>
>>>>                Project description: <input jwcid="
>>>>         
>> description@TextField"
>>     
>>>>                                            value="ognl:description" />
>>>>         <input jwcid="@Submit"/>
>>>>
>>>>     </form>
>>>>     <div id="results">
>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
>>>>         Description: <span jwcid="@Insert" value="ognl:description" />
>>>>     </div>
>>>>     <div id="dojoDebug" style="background-color: #DDD;">
>>>>        Debug goes here!
>>>>     </div>
>>>> </body>
>>>> </html>
>>>>
>>>>  .java
>>>>
>>>> public abstract class Test extends BasePageImplementation {
>>>>
>>>>     @InitialValue("literal:delegateIt")
>>>>     public abstract String getName();
>>>>     @InitialValue("literal:A project management suite!")
>>>>     public abstract String getDescription();
>>>>
>>>>     public void formSubmit(IRequestCycle cycle) {
>>>>         getLogger().debug("Entered formSubmit");
>>>>         getLogger().debug("Name: "+getName());
>>>>         getLogger().debug("Description: "+getDescription());
>>>>     }
>>>> }
>>>>
>>>> Thanks,
>>>>
>>>>
>>>>
>>>> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>>>>         
>>>>> I don't believe @Submit or similar components accept that parameter.
>>>>> (double
>>>>> check the docs, but I think that only applies to the @Form
>>>>> currently..or
>>>>> various links)
>>>>>
>>>>> On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
>>>>>           
>>>>>> Hi there.
>>>>>> Been trying to get a Tap4.1 form component to behave like a
>>>>>>             
>>>>> Tacos:AjaxForm
>>>>>           
>>>>>> with no success.
>>>>>> If I understand correctly what I have to do is declare my form
>>>>>>             
>> with
>>     
>>>>>> async="true" and have a submit with the updateComponents="some
>>>>>>             
>> id",
>>     
>>>>> right?
>>>>>           
>>>>>> I have the following example witch always does a normal full page
>>>>>>             
>>>>> submit.
>>>>>           
>>>>>> test.html
>>>>>>
>>>>>> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
>>>>>>       browserLogLevel="DEBUG" debugEnabled="true"
>>>>>> debugContainerId="dojoDebug"
>>>>>>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
>>>>>> 1.0Transitional//EN&quot;
>>>>>> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
>>>>>> transitional.dtd&quot;">
>>>>>>
>>>>>> <body jwcid="@Body">
>>>>>>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
>>>>>> listener="formSubmit"/>
>>>>>>     <form jwcid="myform@Form " clientValidationEnabled="true"
>>>>>>             
>>>>> async="true">
>>>>>           
>>>>>>                Project name: <input jwcid="name@TextField"
>>>>>> value="ognl:name"
>>>>>> validators="validators:required"/> <br/>
>>>>>>                Project description: <input jwcid="
>>>>>>             
>>>>> description@TextField"
>>>>>           
>>>>>> value="ognl:description" />
>>>>>>         <input jwcid="@Submit" updateComponents="results"/>
>>>>>>     </form>
>>>>>>     <div id="results">
>>>>>>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
>>>>>>         Description: <span jwcid="@Insert"
>>>>>>             
>> value="ognl:description"
>>     
>>>>> />
>>>>>           
>>>>>>     </div>
>>>>>>     <div id="dojoDebug" style="background-color: #DDD;">
>>>>>>        Debug goes here!
>>>>>>     </div>
>>>>>> </body>
>>>>>> </html>
>>>>>>
>>>>>> test.page
>>>>>>
>>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>>> <!DOCTYPE page-specification PUBLIC
>>>>>>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
>>>>>>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
>>>>>>
>>>>>> <page-specification class="com.teamware.delegateit.view.pages.Test
>>>>>>             
>> ">
>>     
>>>>>> </page-specification>
>>>>>>
>>>>>> test.java
>>>>>>
>>>>>> public abstract class Test extends BasePageImplementation {
>>>>>>
>>>>>>     @InitialValue("literal:delegateIt")
>>>>>>     public abstract String getName();
>>>>>>     @InitialValue("literal:A project management suite!")
>>>>>>     public abstract String getDescription();
>>>>>>
>>>>>>     public void formSubmit(IRequestCycle cycle) {
>>>>>>         cycle.getResponseBuilder ().updateComponent("results");
>>>>>>     }
>>>>>> }
>>>>>>
>>>>>>
>>>>>> The listener code with the ResponseBuilder.updateComponent is only
>>>>>>             
>> a
>>     
>>>>> test
>>>>>           
>>>>>> since is was not functioning. I think it should not even be
>>>>>>             
>>>>> necessary.
>>>>>           
>>>>>> I'm using the 4.1.1SNAPSHOOT 20060815.
>>>>>> Anybody knows what's wrong?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Pedro Viegas
>>>>>>
>>>>>>
>>>>>>             
>>>>> --
>>>>> Jesse Kuhnert
>>>>> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>>>>>
>>>>> Open source based consulting work centered around
>>>>> dojo/tapestry/tacos/hivemind.
>>>>>
>>>>>
>>>>>           
>>>> --
>>>> Pedro Viegas
>>>>
>>>>         
>>>
>>> --
>>> Pedro Viegas
>>>
>>>       
>>
>> --
>> Pedro Viegas
>>
>>
>>     
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: Async form in Tap4.1 does not work...

Posted by Denis Souza <de...@camerum.com.br>.
I'm still having the same problem as Pedro. Submitting a form with ajax only
works when I use @EventListener. Using async=true and updateComponents on
the form component seem to have no effect. The form is always submitted
normally (without ajax). Tried it with the latest snapshot
(4.1.1-20060822.021102-19) and still no go.

-----Original Message-----
From: Jesse Kuhnert [mailto:jkuhnert@gmail.com] 
Sent: segunda-feira, 21 de agosto de 2006 23:14
To: Tapestry users
Subject: Re: Async form in Tap4.1 does not work...

Fixed.

On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>
> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is still
> the same!
>
> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> >
> > I've been browsing the TimeTracker source to see if I can sort things
> out.
> > I've found the parameter I mentioned... the shell's ajaxEnabled="true".
> I
> > set it up in my test code and no change. Huess it's allready true by
> > default.
> > Since http://tapestry.apache.org/tapestry4.1/components/Shell.html does
> > not mention it I'm only guessing.
> > By what I gather from the TimeTracker code no ajax like form submission
> is
> > implemented. All ajax calls are made by @EventListener's setups. Is the
> form
> > ajax submit working? Has anybody got it working?
> >
> > Thanks,
> >
> >
> > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >
> > > Yep, sorry, I was messing things up a bit.
> > > I corrected several errors I had on the code.
> > > The form submits fine, all works but not asyncronously. It does a
> normal
> > > submit and not an ajax one.
> > > The client side form validation is also not working. Only server side.
> > > So async mode is apparently not activating.
> > > Any clues why? I seem to remember something on the mailing list a
> while
> > > back of activating ajax globally... maybe on the shell component?
> Something
> > > like that?
> > >
> > > My testcode is as follows...
> > >
> > >
> > > .html
> > >
> > > <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > >       browserLogLevel="DEBUG" debugEnabled="true"
> > > debugContainerId="dojoDebug"
> > >       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> 1.0Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > transitional.dtd&quot;">
> > >
> > > <body jwcid="@Body">
> > >     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> > >     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
> > >           async="ognl:true" updateComponents="ognl:{'results'}"
> > > listener="listener:formSubmit">
> > >
> > >                Project name: <input jwcid="name@TextField "
> > > value="ognl:name"
> > >                                     validators="validators:required"/>
> > > <br/>
> > >                Project description: <input jwcid="
> description@TextField"
> > >                                            value="ognl:description" />
> > >         <input jwcid="@Submit"/>
> > >
> > >     </form>
> > >     <div id="results">
> > >         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > >         Description: <span jwcid="@Insert" value="ognl:description" />
> > >     </div>
> > >     <div id="dojoDebug" style="background-color: #DDD;">
> > >        Debug goes here!
> > >     </div>
> > > </body>
> > > </html>
> > >
> > >  .java
> > >
> > > public abstract class Test extends BasePageImplementation {
> > >
> > >     @InitialValue("literal:delegateIt")
> > >     public abstract String getName();
> > >     @InitialValue("literal:A project management suite!")
> > >     public abstract String getDescription();
> > >
> > >     public void formSubmit(IRequestCycle cycle) {
> > >         getLogger().debug("Entered formSubmit");
> > >         getLogger().debug("Name: "+getName());
> > >         getLogger().debug("Description: "+getDescription());
> > >     }
> > > }
> > >
> > > Thanks,
> > >
> > >
> > >
> > > On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > >
> > > > I don't believe @Submit or similar components accept that parameter.
> > > > (double
> > > > check the docs, but I think that only applies to the @Form
> > > > currently..or
> > > > various links)
> > > >
> > > > On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > > > >
> > > > > Hi there.
> > > > > Been trying to get a Tap4.1 form component to behave like a
> > > > Tacos:AjaxForm
> > > > > with no success.
> > > > > If I understand correctly what I have to do is declare my form
> with
> > > > > async="true" and have a submit with the updateComponents="some
> id",
> > > > right?
> > > > > I have the following example witch always does a normal full page
> > > > submit.
> > > > >
> > > > > test.html
> > > > >
> > > > > <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > > >       browserLogLevel="DEBUG" debugEnabled="true"
> > > > > debugContainerId="dojoDebug"
> > > > >       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > > > 1.0Transitional//EN&quot;
> > > > > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > > transitional.dtd&quot;">
> > > > >
> > > > > <body jwcid="@Body">
> > > > >     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > > > > listener="formSubmit"/>
> > > > >     <form jwcid="myform@Form " clientValidationEnabled="true"
> > > > async="true">
> > > > >                Project name: <input jwcid="name@TextField"
> > > > > value="ognl:name"
> > > > > validators="validators:required"/> <br/>
> > > > >                Project description: <input jwcid="
> > > > description@TextField"
> > > > > value="ognl:description" />
> > > > >         <input jwcid="@Submit" updateComponents="results"/>
> > > > >     </form>
> > > > >     <div id="results">
> > > > >         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > > > >         Description: <span jwcid="@Insert"
> value="ognl:description"
> > > > />
> > > > >     </div>
> > > > >     <div id="dojoDebug" style="background-color: #DDD;">
> > > > >        Debug goes here!
> > > > >     </div>
> > > > > </body>
> > > > > </html>
> > > > >
> > > > > test.page
> > > > >
> > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > <!DOCTYPE page-specification PUBLIC
> > > > >   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> > > > >   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > > > >
> > > > > <page-specification class="com.teamware.delegateit.view.pages.Test
> ">
> > > > > </page-specification>
> > > > >
> > > > > test.java
> > > > >
> > > > > public abstract class Test extends BasePageImplementation {
> > > > >
> > > > >     @InitialValue("literal:delegateIt")
> > > > >     public abstract String getName();
> > > > >     @InitialValue("literal:A project management suite!")
> > > > >     public abstract String getDescription();
> > > > >
> > > > >     public void formSubmit(IRequestCycle cycle) {
> > > > >         cycle.getResponseBuilder ().updateComponent("results");
> > > > >     }
> > > > > }
> > > > >
> > > > >
> > > > > The listener code with the ResponseBuilder.updateComponent is only
> a
> > > > test
> > > > > since is was not functioning. I think it should not even be
> > > > necessary.
> > > > > I'm using the 4.1.1SNAPSHOOT 20060815.
> > > > > Anybody knows what's wrong?
> > > > >
> > > > > Regards,
> > > > >
> > > > >
> > > > > --
> > > > > Pedro Viegas
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Jesse Kuhnert
> > > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > >
> > > > Open source based consulting work centered around
> > > > dojo/tapestry/tacos/hivemind.
> > > >
> > > >
> > >
> > >
> > > --
> > > Pedro Viegas
> > >
> >
> >
> >
> > --
> > Pedro Viegas
> >
>
>
>
> --
> Pedro Viegas
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Async form in Tap4.1 does not work...

Posted by Jesse Kuhnert <jk...@gmail.com>.
Fixed.

On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>
> btw: tried it with the fresh SNAPSHOT of 20060819 and the result is still
> the same!
>
> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> >
> > I've been browsing the TimeTracker source to see if I can sort things
> out.
> > I've found the parameter I mentioned... the shell's ajaxEnabled="true".
> I
> > set it up in my test code and no change. Huess it's allready true by
> > default.
> > Since http://tapestry.apache.org/tapestry4.1/components/Shell.html does
> > not mention it I'm only guessing.
> > By what I gather from the TimeTracker code no ajax like form submission
> is
> > implemented. All ajax calls are made by @EventListener's setups. Is the
> form
> > ajax submit working? Has anybody got it working?
> >
> > Thanks,
> >
> >
> > On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> > >
> > > Yep, sorry, I was messing things up a bit.
> > > I corrected several errors I had on the code.
> > > The form submits fine, all works but not asyncronously. It does a
> normal
> > > submit and not an ajax one.
> > > The client side form validation is also not working. Only server side.
> > > So async mode is apparently not activating.
> > > Any clues why? I seem to remember something on the mailing list a
> while
> > > back of activating ajax globally... maybe on the shell component?
> Something
> > > like that?
> > >
> > > My testcode is as follows...
> > >
> > >
> > > .html
> > >
> > > <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > >       browserLogLevel="DEBUG" debugEnabled="true"
> > > debugContainerId="dojoDebug"
> > >       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> 1.0Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > transitional.dtd&quot;">
> > >
> > > <body jwcid="@Body">
> > >     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> > >     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
> > >           async="ognl:true" updateComponents="ognl:{'results'}"
> > > listener="listener:formSubmit">
> > >
> > >                Project name: <input jwcid="name@TextField "
> > > value="ognl:name"
> > >                                     validators="validators:required"/>
> > > <br/>
> > >                Project description: <input jwcid="
> description@TextField"
> > >                                            value="ognl:description" />
> > >         <input jwcid="@Submit"/>
> > >
> > >     </form>
> > >     <div id="results">
> > >         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > >         Description: <span jwcid="@Insert" value="ognl:description" />
> > >     </div>
> > >     <div id="dojoDebug" style="background-color: #DDD;">
> > >        Debug goes here!
> > >     </div>
> > > </body>
> > > </html>
> > >
> > >  .java
> > >
> > > public abstract class Test extends BasePageImplementation {
> > >
> > >     @InitialValue("literal:delegateIt")
> > >     public abstract String getName();
> > >     @InitialValue("literal:A project management suite!")
> > >     public abstract String getDescription();
> > >
> > >     public void formSubmit(IRequestCycle cycle) {
> > >         getLogger().debug("Entered formSubmit");
> > >         getLogger().debug("Name: "+getName());
> > >         getLogger().debug("Description: "+getDescription());
> > >     }
> > > }
> > >
> > > Thanks,
> > >
> > >
> > >
> > > On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > > >
> > > > I don't believe @Submit or similar components accept that parameter.
> > > > (double
> > > > check the docs, but I think that only applies to the @Form
> > > > currently..or
> > > > various links)
> > > >
> > > > On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > > > >
> > > > > Hi there.
> > > > > Been trying to get a Tap4.1 form component to behave like a
> > > > Tacos:AjaxForm
> > > > > with no success.
> > > > > If I understand correctly what I have to do is declare my form
> with
> > > > > async="true" and have a submit with the updateComponents="some
> id",
> > > > right?
> > > > > I have the following example witch always does a normal full page
> > > > submit.
> > > > >
> > > > > test.html
> > > > >
> > > > > <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > > >       browserLogLevel="DEBUG" debugEnabled="true"
> > > > > debugContainerId="dojoDebug"
> > > > >       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > > > 1.0Transitional//EN&quot;
> > > > > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > > transitional.dtd&quot;">
> > > > >
> > > > > <body jwcid="@Body">
> > > > >     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > > > > listener="formSubmit"/>
> > > > >     <form jwcid="myform@Form " clientValidationEnabled="true"
> > > > async="true">
> > > > >                Project name: <input jwcid="name@TextField"
> > > > > value="ognl:name"
> > > > > validators="validators:required"/> <br/>
> > > > >                Project description: <input jwcid="
> > > > description@TextField"
> > > > > value="ognl:description" />
> > > > >         <input jwcid="@Submit" updateComponents="results"/>
> > > > >     </form>
> > > > >     <div id="results">
> > > > >         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > > > >         Description: <span jwcid="@Insert"
> value="ognl:description"
> > > > />
> > > > >     </div>
> > > > >     <div id="dojoDebug" style="background-color: #DDD;">
> > > > >        Debug goes here!
> > > > >     </div>
> > > > > </body>
> > > > > </html>
> > > > >
> > > > > test.page
> > > > >
> > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > <!DOCTYPE page-specification PUBLIC
> > > > >   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> > > > >   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > > > >
> > > > > <page-specification class="com.teamware.delegateit.view.pages.Test
> ">
> > > > > </page-specification>
> > > > >
> > > > > test.java
> > > > >
> > > > > public abstract class Test extends BasePageImplementation {
> > > > >
> > > > >     @InitialValue("literal:delegateIt")
> > > > >     public abstract String getName();
> > > > >     @InitialValue("literal:A project management suite!")
> > > > >     public abstract String getDescription();
> > > > >
> > > > >     public void formSubmit(IRequestCycle cycle) {
> > > > >         cycle.getResponseBuilder ().updateComponent("results");
> > > > >     }
> > > > > }
> > > > >
> > > > >
> > > > > The listener code with the ResponseBuilder.updateComponent is only
> a
> > > > test
> > > > > since is was not functioning. I think it should not even be
> > > > necessary.
> > > > > I'm using the 4.1.1SNAPSHOOT 20060815.
> > > > > Anybody knows what's wrong?
> > > > >
> > > > > Regards,
> > > > >
> > > > >
> > > > > --
> > > > > Pedro Viegas
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Jesse Kuhnert
> > > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > > >
> > > > Open source based consulting work centered around
> > > > dojo/tapestry/tacos/hivemind.
> > > >
> > > >
> > >
> > >
> > > --
> > > Pedro Viegas
> > >
> >
> >
> >
> > --
> > Pedro Viegas
> >
>
>
>
> --
> Pedro Viegas
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.

Re: Async form in Tap4.1 does not work...

Posted by Pedro Viegas <pv...@gmail.com>.
btw: tried it with the fresh SNAPSHOT of 20060819 and the result is still
the same!

On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>
> I've been browsing the TimeTracker source to see if I can sort things out.
> I've found the parameter I mentioned... the shell's ajaxEnabled="true". I
> set it up in my test code and no change. Huess it's allready true by
> default.
> Since http://tapestry.apache.org/tapestry4.1/components/Shell.html does
> not mention it I'm only guessing.
> By what I gather from the TimeTracker code no ajax like form submission is
> implemented. All ajax calls are made by @EventListener's setups. Is the form
> ajax submit working? Has anybody got it working?
>
> Thanks,
>
>
> On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
> >
> > Yep, sorry, I was messing things up a bit.
> > I corrected several errors I had on the code.
> > The form submits fine, all works but not asyncronously. It does a normal
> > submit and not an ajax one.
> > The client side form validation is also not working. Only server side.
> > So async mode is apparently not activating.
> > Any clues why? I seem to remember something on the mailing list a while
> > back of activating ajax globally... maybe on the shell component? Something
> > like that?
> >
> > My testcode is as follows...
> >
> >
> > .html
> >
> > <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> >       browserLogLevel="DEBUG" debugEnabled="true"
> > debugContainerId="dojoDebug"
> >       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML 1.0Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > transitional.dtd&quot;">
> >
> > <body jwcid="@Body">
> >     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
> >     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
> >           async="ognl:true" updateComponents="ognl:{'results'}"
> > listener="listener:formSubmit">
> >
> >                Project name: <input jwcid="name@TextField "
> > value="ognl:name"
> >                                     validators="validators:required"/>
> > <br/>
> >                Project description: <input jwcid="description@TextField"
> >                                            value="ognl:description" />
> >         <input jwcid="@Submit"/>
> >
> >     </form>
> >     <div id="results">
> >         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> >         Description: <span jwcid="@Insert" value="ognl:description" />
> >     </div>
> >     <div id="dojoDebug" style="background-color: #DDD;">
> >        Debug goes here!
> >     </div>
> > </body>
> > </html>
> >
> >  .java
> >
> > public abstract class Test extends BasePageImplementation {
> >
> >     @InitialValue("literal:delegateIt")
> >     public abstract String getName();
> >     @InitialValue("literal:A project management suite!")
> >     public abstract String getDescription();
> >
> >     public void formSubmit(IRequestCycle cycle) {
> >         getLogger().debug("Entered formSubmit");
> >         getLogger().debug("Name: "+getName());
> >         getLogger().debug("Description: "+getDescription());
> >     }
> > }
> >
> > Thanks,
> >
> >
> >
> > On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> > >
> > > I don't believe @Submit or similar components accept that parameter.
> > > (double
> > > check the docs, but I think that only applies to the @Form
> > > currently..or
> > > various links)
> > >
> > > On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > > >
> > > > Hi there.
> > > > Been trying to get a Tap4.1 form component to behave like a
> > > Tacos:AjaxForm
> > > > with no success.
> > > > If I understand correctly what I have to do is declare my form with
> > > > async="true" and have a submit with the updateComponents="some id",
> > > right?
> > > > I have the following example witch always does a normal full page
> > > submit.
> > > >
> > > > test.html
> > > >
> > > > <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > > >       browserLogLevel="DEBUG" debugEnabled="true"
> > > > debugContainerId="dojoDebug"
> > > >       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > > 1.0Transitional//EN&quot;
> > > > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > > transitional.dtd&quot;">
> > > >
> > > > <body jwcid="@Body">
> > > >     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > > > listener="formSubmit"/>
> > > >     <form jwcid="myform@Form " clientValidationEnabled="true"
> > > async="true">
> > > >                Project name: <input jwcid="name@TextField"
> > > > value="ognl:name"
> > > > validators="validators:required"/> <br/>
> > > >                Project description: <input jwcid="
> > > description@TextField"
> > > > value="ognl:description" />
> > > >         <input jwcid="@Submit" updateComponents="results"/>
> > > >     </form>
> > > >     <div id="results">
> > > >         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > > >         Description: <span jwcid="@Insert" value="ognl:description"
> > > />
> > > >     </div>
> > > >     <div id="dojoDebug" style="background-color: #DDD;">
> > > >        Debug goes here!
> > > >     </div>
> > > > </body>
> > > > </html>
> > > >
> > > > test.page
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > <!DOCTYPE page-specification PUBLIC
> > > >   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> > > >   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd ">
> > > >
> > > > <page-specification class="com.teamware.delegateit.view.pages.Test">
> > > > </page-specification>
> > > >
> > > > test.java
> > > >
> > > > public abstract class Test extends BasePageImplementation {
> > > >
> > > >     @InitialValue("literal:delegateIt")
> > > >     public abstract String getName();
> > > >     @InitialValue("literal:A project management suite!")
> > > >     public abstract String getDescription();
> > > >
> > > >     public void formSubmit(IRequestCycle cycle) {
> > > >         cycle.getResponseBuilder ().updateComponent("results");
> > > >     }
> > > > }
> > > >
> > > >
> > > > The listener code with the ResponseBuilder.updateComponent is only a
> > > test
> > > > since is was not functioning. I think it should not even be
> > > necessary.
> > > > I'm using the 4.1.1SNAPSHOOT 20060815.
> > > > Anybody knows what's wrong?
> > > >
> > > > Regards,
> > > >
> > > >
> > > > --
> > > > Pedro Viegas
> > > >
> > > >
> > >
> > >
> > > --
> > > Jesse Kuhnert
> > > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> > >
> > > Open source based consulting work centered around
> > > dojo/tapestry/tacos/hivemind.
> > >
> > >
> >
> >
> > --
> > Pedro Viegas
> >
>
>
>
> --
> Pedro Viegas
>



-- 
Pedro Viegas

Re: Async form in Tap4.1 does not work...

Posted by Pedro Viegas <pv...@gmail.com>.
I've been browsing the TimeTracker source to see if I can sort things out.
I've found the parameter I mentioned... the shell's ajaxEnabled="true". I
set it up in my test code and no change. Huess it's allready true by
default.
Since http://tapestry.apache.org/tapestry4.1/components/Shell.html does not
mention it I'm only guessing.
By what I gather from the TimeTracker code no ajax like form submission is
implemented. All ajax calls are made by @EventListener's setups. Is the form
ajax submit working? Has anybody got it working?

Thanks,

On 8/21/06, Pedro Viegas <pv...@gmail.com> wrote:
>
> Yep, sorry, I was messing things up a bit.
> I corrected several errors I had on the code.
> The form submits fine, all works but not asyncronously. It does a normal
> submit and not an ajax one.
> The client side form validation is also not working. Only server side.
> So async mode is apparently not activating.
> Any clues why? I seem to remember something on the mailing list a while
> back of activating ajax globally... maybe on the shell component? Something
> like that?
>
> My testcode is as follows...
>
>
> .html
>
> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
>       browserLogLevel="DEBUG" debugEnabled="true"
> debugContainerId="dojoDebug"
>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML 1.0Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> transitional.dtd&quot;">
>
> <body jwcid="@Body">
>     <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
>     <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
>           async="ognl:true" updateComponents="ognl:{'results'}"
> listener="listener:formSubmit">
>
>                Project name: <input jwcid="name@TextField"
> value="ognl:name"
>                                     validators="validators:required"/>
> <br/>
>                Project description: <input jwcid="description@TextField"
>                                            value="ognl:description" />
>         <input jwcid="@Submit"/>
>
>     </form>
>     <div id="results">
>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
>         Description: <span jwcid="@Insert" value="ognl:description" />
>     </div>
>     <div id="dojoDebug" style="background-color: #DDD;">
>        Debug goes here!
>     </div>
> </body>
> </html>
>
> .java
>
> public abstract class Test extends BasePageImplementation {
>
>     @InitialValue("literal:delegateIt")
>     public abstract String getName();
>     @InitialValue("literal:A project management suite!")
>     public abstract String getDescription();
>
>     public void formSubmit(IRequestCycle cycle) {
>         getLogger().debug("Entered formSubmit");
>         getLogger().debug("Name: "+getName());
>         getLogger().debug("Description: "+getDescription());
>     }
> }
>
> Thanks,
>
>
>
> On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
> >
> > I don't believe @Submit or similar components accept that parameter.
> > (double
> > check the docs, but I think that only applies to the @Form currently..or
> > various links)
> >
> > On 8/20/06, Pedro Viegas < pviegas@gmail.com> wrote:
> > >
> > > Hi there.
> > > Been trying to get a Tap4.1 form component to behave like a
> > Tacos:AjaxForm
> > > with no success.
> > > If I understand correctly what I have to do is declare my form with
> > > async="true" and have a submit with the updateComponents="some id",
> > right?
> > > I have the following example witch always does a normal full page
> > submit.
> > >
> > > test.html
> > >
> > > <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> > >       browserLogLevel="DEBUG" debugEnabled="true"
> > > debugContainerId="dojoDebug"
> > >       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > > 1.0Transitional//EN&quot;
> > > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > > transitional.dtd&quot;">
> > >
> > > <body jwcid="@Body">
> > >     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > > listener="formSubmit"/>
> > >     <form jwcid="myform@Form " clientValidationEnabled="true"
> > async="true">
> > >                Project name: <input jwcid="name@TextField"
> > > value="ognl:name"
> > > validators="validators:required"/> <br/>
> > >                Project description: <input jwcid="
> > description@TextField"
> > > value="ognl:description" />
> > >         <input jwcid="@Submit" updateComponents="results"/>
> > >     </form>
> > >     <div id="results">
> > >         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> > >         Description: <span jwcid="@Insert" value="ognl:description" />
> >
> > >     </div>
> > >     <div id="dojoDebug" style="background-color: #DDD;">
> > >        Debug goes here!
> > >     </div>
> > > </body>
> > > </html>
> > >
> > > test.page
> > >
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <!DOCTYPE page-specification PUBLIC
> > >   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> > >   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
> > >
> > > <page-specification class="com.teamware.delegateit.view.pages.Test ">
> > > </page-specification>
> > >
> > > test.java
> > >
> > > public abstract class Test extends BasePageImplementation {
> > >
> > >     @InitialValue("literal:delegateIt")
> > >     public abstract String getName();
> > >     @InitialValue("literal:A project management suite!")
> > >     public abstract String getDescription();
> > >
> > >     public void formSubmit(IRequestCycle cycle) {
> > >         cycle.getResponseBuilder ().updateComponent("results");
> > >     }
> > > }
> > >
> > >
> > > The listener code with the ResponseBuilder.updateComponent is only a
> > test
> > > since is was not functioning. I think it should not even be necessary.
> >
> > > I'm using the 4.1.1SNAPSHOOT 20060815.
> > > Anybody knows what's wrong?
> > >
> > > Regards,
> > >
> > >
> > > --
> > > Pedro Viegas
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo/(and a dash of TestNG), team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind.
> >
> >
>
>
> --
> Pedro Viegas
>



-- 
Pedro Viegas

Re: Async form in Tap4.1 does not work...

Posted by Pedro Viegas <pv...@gmail.com>.
Yep, sorry, I was messing things up a bit.
I corrected several errors I had on the code.
The form submits fine, all works but not asyncronously. It does a normal
submit and not an ajax one.
The client side form validation is also not working. Only server side.
So async mode is apparently not activating.
Any clues why? I seem to remember something on the mailing list a while back
of activating ajax globally... maybe on the shell component? Something like
that?

My testcode is as follows...

.html

<html jwcid="@Shell" title="Test page!" renderBaseTag="false"
      browserLogLevel="DEBUG" debugEnabled="true"
debugContainerId="dojoDebug"
      doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
1.0Transitional//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd&quot;">

<body jwcid="@Body">
    <span jwcid="@Insert" value="ognl:new java.util.Date()"/>
    <form jwcid="myform@Form" clientValidationEnabled="ognl:true"
          async="ognl:true" updateComponents="ognl:{'results'}"
listener="listener:formSubmit">
               Project name: <input jwcid="name@TextField" value="ognl:name"
                                    validators="validators:required"/> <br/>
               Project description: <input jwcid="description@TextField"
                                           value="ognl:description" />
        <input jwcid="@Submit"/>
    </form>
    <div id="results">
        Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
        Description: <span jwcid="@Insert" value="ognl:description" />
    </div>
    <div id="dojoDebug" style="background-color: #DDD;">
       Debug goes here!
    </div>
</body>
</html>

.java

public abstract class Test extends BasePageImplementation {

    @InitialValue("literal:delegateIt")
    public abstract String getName();
    @InitialValue("literal:A project management suite!")
    public abstract String getDescription();

    public void formSubmit(IRequestCycle cycle) {
        getLogger().debug("Entered formSubmit");
        getLogger().debug("Name: "+getName());
        getLogger().debug("Description: "+getDescription());
    }
}

Thanks,


On 8/20/06, Jesse Kuhnert <jk...@gmail.com> wrote:
>
> I don't believe @Submit or similar components accept that parameter.
> (double
> check the docs, but I think that only applies to the @Form currently..or
> various links)
>
> On 8/20/06, Pedro Viegas <pv...@gmail.com> wrote:
> >
> > Hi there.
> > Been trying to get a Tap4.1 form component to behave like a
> Tacos:AjaxForm
> > with no success.
> > If I understand correctly what I have to do is declare my form with
> > async="true" and have a submit with the updateComponents="some id",
> right?
> > I have the following example witch always does a normal full page
> submit.
> >
> > test.html
> >
> > <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
> >       browserLogLevel="DEBUG" debugEnabled="true"
> > debugContainerId="dojoDebug"
> >       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> > 1.0Transitional//EN&quot;
> > &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> > transitional.dtd&quot;">
> >
> > <body jwcid="@Body">
> >     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> > listener="formSubmit"/>
> >     <form jwcid="myform@Form" clientValidationEnabled="true"
> async="true">
> >                Project name: <input jwcid="name@TextField"
> > value="ognl:name"
> > validators="validators:required"/> <br/>
> >                Project description: <input jwcid="description@TextField"
> > value="ognl:description" />
> >         <input jwcid="@Submit" updateComponents="results"/>
> >     </form>
> >     <div id="results">
> >         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
> >         Description: <span jwcid="@Insert" value="ognl:description" />
> >     </div>
> >     <div id="dojoDebug" style="background-color: #DDD;">
> >        Debug goes here!
> >     </div>
> > </body>
> > </html>
> >
> > test.page
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <!DOCTYPE page-specification PUBLIC
> >   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
> >   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
> >
> > <page-specification class="com.teamware.delegateit.view.pages.Test">
> > </page-specification>
> >
> > test.java
> >
> > public abstract class Test extends BasePageImplementation {
> >
> >     @InitialValue("literal:delegateIt")
> >     public abstract String getName();
> >     @InitialValue("literal:A project management suite!")
> >     public abstract String getDescription();
> >
> >     public void formSubmit(IRequestCycle cycle) {
> >         cycle.getResponseBuilder().updateComponent("results");
> >     }
> > }
> >
> >
> > The listener code with the ResponseBuilder.updateComponent is only a
> test
> > since is was not functioning. I think it should not even be necessary.
> > I'm using the 4.1.1SNAPSHOOT 20060815.
> > Anybody knows what's wrong?
> >
> > Regards,
> >
> >
> > --
> > Pedro Viegas
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo/(and a dash of TestNG), team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>


-- 
Pedro Viegas

Re: Async form in Tap4.1 does not work...

Posted by Jesse Kuhnert <jk...@gmail.com>.
I don't believe @Submit or similar components accept that parameter. (double
check the docs, but I think that only applies to the @Form currently..or
various links)

On 8/20/06, Pedro Viegas <pv...@gmail.com> wrote:
>
> Hi there.
> Been trying to get a Tap4.1 form component to behave like a Tacos:AjaxForm
> with no success.
> If I understand correctly what I have to do is declare my form with
> async="true" and have a submit with the updateComponents="some id", right?
> I have the following example witch always does a normal full page submit.
>
> test.html
>
> <html jwcid="@Shell" title="Test page!" renderBaseTag="false"
>       browserLogLevel="DEBUG" debugEnabled="true"
> debugContainerId="dojoDebug"
>       doctype="literal:PUBLIC html &quot;-//W3C//DTD XHTML
> 1.0Transitional//EN&quot;
> &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-
> transitional.dtd&quot;">
>
> <body jwcid="@Body">
>     <span jwcid="@Insert" value="ognl:new java.util.Date()"
> listener="formSubmit"/>
>     <form jwcid="myform@Form" clientValidationEnabled="true" async="true">
>                Project name: <input jwcid="name@TextField"
> value="ognl:name"
> validators="validators:required"/> <br/>
>                Project description: <input jwcid="description@TextField"
> value="ognl:description" />
>         <input jwcid="@Submit" updateComponents="results"/>
>     </form>
>     <div id="results">
>         Name: <span jwcid="@Insert" value="ognl:name" /> <br/>
>         Description: <span jwcid="@Insert" value="ognl:description" />
>     </div>
>     <div id="dojoDebug" style="background-color: #DDD;">
>        Debug goes here!
>     </div>
> </body>
> </html>
>
> test.page
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE page-specification PUBLIC
>   "-//Apache Software Foundation//Tapestry Specification 4.0//EN"
>   "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
>
> <page-specification class="com.teamware.delegateit.view.pages.Test">
> </page-specification>
>
> test.java
>
> public abstract class Test extends BasePageImplementation {
>
>     @InitialValue("literal:delegateIt")
>     public abstract String getName();
>     @InitialValue("literal:A project management suite!")
>     public abstract String getDescription();
>
>     public void formSubmit(IRequestCycle cycle) {
>         cycle.getResponseBuilder().updateComponent("results");
>     }
> }
>
>
> The listener code with the ResponseBuilder.updateComponent is only a test
> since is was not functioning. I think it should not even be necessary.
> I'm using the 4.1.1SNAPSHOOT 20060815.
> Anybody knows what's wrong?
>
> Regards,
>
>
> --
> Pedro Viegas
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo/(and a dash of TestNG), team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.