http://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/corelib/components/Form.html
On Thu, Dec 11, 2014 at 6:37 PM, George Christman
wrote:
> async
>
> On Thu, Dec 11, 2014 at 12:37 PM, George Christman <
> gchrist...@cardaddy.com>
> wrote:
>
> > Chris I wasn't aware of this :) What is the
Chris I wasn't aware of this :) What is the sync flag?
On Thu, Dec 11, 2014 at 11:31 AM, Chris Poulsen
wrote:
> In 5.4 you can also use the async flag on the form (instead of wrapping in
> a zone)
>
> --
> Chris
>
> On Thu, Dec 11, 2014 at 5:15 PM, George Christman >
> wrote:
> >
> > Yes, you a
async
On Thu, Dec 11, 2014 at 12:37 PM, George Christman
wrote:
> Chris I wasn't aware of this :) What is the sync flag?
>
> On Thu, Dec 11, 2014 at 11:31 AM, Chris Poulsen
> wrote:
>
>> In 5.4 you can also use the async flag on the form (instead of wrapping in
>> a zone)
>>
>> --
>> Chris
>>
>
In 5.4 you can also use the async flag on the form (instead of wrapping in
a zone)
--
Chris
On Thu, Dec 11, 2014 at 5:15 PM, George Christman
wrote:
>
> Yes, you always wrap an ajax form with a zone and akshay is correct, you
> need to return multiple zones as he showed you. Sorry, I missed tha
Yes, you always wrap an ajax form with a zone and akshay is correct, you
need to return multiple zones as he showed you. Sorry, I missed that.
Unless your doing some sort of backend processing where you need to load
some data within your second zone from the backend, I would avoid the round
trip to
Hi Carlos,
Ah is just see that i just missed adding the following code :-
ajaxResponseRenderer.addRender(zone1).addRender(zone2);
This will work for sure :)
Answer for your question:
Yes we have to bind the form under the zone if you want it to be ajax:
Taken from Tapestry doc:- the zone parame
Any last question:
Have you ALWAYS wrap an ajax form inside a zone like below?
In my first example the form isn't wrapped but it works fine. I wonder if
it is correct:
Thanks in advance
2014-12-11 0:05 GMT-06:00 Carlos Gómez Montiel :
> George, yes I'm using tapestry-jque
George, yes I'm using tapestry-jquery but in the links you wrote is the
solution:
$("#form1").submit(function(event) {
event.preventDefault();
event.stopImmediatePropagation(); // it prevents the submit hit
});
Thank you for your feedback and comments.
2014-12-10 23:20 GMT-06:00 G
hmm I see your using jquery and I know 3.7 uses prototype. Are you using
Tapestry-Jquery or bringing in jquery with no conflict?
You can write your own mixin to handle this, your not required to have to
use 5.4 to get this to work.
Here's an example of how Tapestry-Jquery is getting this to work
Thank you for your answer George:
> The other more recommended way if it's just a simple confirm box is to
use the confirm mixin
I'm using tapestry 5.3.7
I had change my example with your recomendations:
.tml
$(document).ready(function() {
$("#form1").submit
Take a look at this page, it will show you the life cycle of the tapestry
methods. You are returning zone2 in your onSuccess method. and probably
should use onSelected
http://jumpstart.doublenegative.com.au/jumpstart7/examples/navigation/whatiscalledandwhen
One way to do it to use an event handle
Hi akshay, thank you for your answer.
I had changed my example with your recomendation but the problem persist
and the ajax post is sent when you press the submit:
Test.tml
$(document).ready(function() {
$("#form1").submit(function(e) {
re
Hi,
your structure should look like this:
.tml strcuture:-
Your Content
The .java file structure
@InjectComponent
private Zone zone1,zone2;
@Inject
private AjaxResponseRender
OnSuccess(){
ajaxResponseRenderer.addRender(zone2) or zone2.getBody();
}
Regards
Akshay
On Wed, Dec 10, 2
Thank you for your answer George.
> Are you trying to create an ajax form submit? If so, you should be
wrapping the form with the zone
Yes, I'm trying to create an ajax form submit, I don't understand why I
should be wrapping the form with the zone, what is the reason? as far I
know in my example
Are you trying to create an ajax form submit? If so, you should be wrapping
the form with the zone. As far as the confirm dialog goes, you could either
use a confirm mixin or if you chose to use a zone style approach, on submit
return another zone for your confirm dialog.
On Wed, Dec 10, 2014 at 3
15 matches
Mail list logo