Re: prevent ajax form submit

2014-12-10 Thread Carlos Gómez Montiel
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 u

Re: prevent ajax form submit

2014-12-10 Thread Carlos Gómez Montiel
ps://github.com/got5/tapestry5-jquery/blob/v3.3.7/src/main/resources/org/got5/tapestry5/jquery/assets/mixins/confirm/confirm.js > > On Thu, Dec 11, 2014 at 12:06 AM, Carlos Gómez Montiel > wrote: > > > Thank you for your answer George: > > > > > The other more rec

Re: prevent ajax form submit

2014-12-10 Thread Carlos Gómez Montiel
d and just do > everything in the UI via javascript. > > > > > https://github.com/apache/tapestry-5/blob/5.4-beta-22/tapestry-core/src/main/java/org/apache/tapestry5/corelib/mixins/Confirm.java > > On Wed, Dec 10, 2014 at 7:28 PM, Carlos Gómez Montiel > wrote: > &g

Re: prevent ajax form submit

2014-12-10 Thread Carlos Gómez Montiel
enderer.addRender(zone2) or zone2.getBody(); > } > > Regards > Akshay > > On Wed, Dec 10, 2014 at 11:25 PM, Carlos Gómez Montiel > wrote: > > > Thank you for your answer George. > > > > > Are you trying to create an ajax form submit? If so, you should be

Re: prevent ajax form submit

2014-12-10 Thread Carlos Gómez Montiel
ng 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

prevent ajax form submit

2014-12-10 Thread Carlos Gómez Montiel
Hi there How can I prevent ajax form's event submit when the user clicks a submit button? I need to prevent the event for show an confirm dialog before it will be submited. My form: Thanks in advance

RE: [T5] How can I validate if a script is present ?

2014-09-26 Thread Carlos Gómez Montiel
script is present ? On Fri, 26 Sep 2014 14:04:01 -0300, Carlos Gómez Montiel wrote: > Hi Thiago Hi! > refresh > > > t:parameters="options"> > If you had mentioned before you were trying to show it in a Zone update, we would have understood t

RE: [T5] How can I validate if a script is present ?

2014-09-26 Thread Carlos Gómez Montiel
9C0E556621697D.FA4B475DA717# Thanks in advance -Mensaje original- De: Thiago H de Paula Figueiredo [mailto:thiag...@gmail.com] Enviado el: viernes, 26 de septiembre de 2014 08:20 a.m. Para: Tapestry users Asunto: Re: [T5] How can I validate if a script is present ? On Fri, 26 Sep 2014 01:0

RE: [T5] How can I validate if a script is present ?

2014-09-25 Thread Carlos Gómez Montiel
Hi Lance, thank you for your answer. Yes, I have tried with exanpe library (versión 1.2.1) but it throws the javascript console error: Uncaught TypeError: Cannot set property 'ajaxValidator' of undefined exanpe-t5-lib.js:737 No Tapestry.Initializer function for : gMapBuilder: jQuery.fn.jQuery.in

RE: [T5] How can I validate if a script is present ?

2014-09-25 Thread Carlos Gómez Montiel
Hi Thiago, thank you for your answer :) I'm using Tapestry 5.3.7 > Where's your JavaScript? For google maps, you have to access the javascript library from a URL, so my javascript is inside the url: "https://maps.googleapis.com/maps/api/js?v=3.exp"; > How are you including it? public class GMap

RE: [T5] How can I validate if a script is present ?

2014-09-25 Thread Carlos Gómez Montiel
t is present ? On Wed, 24 Sep 2014 21:59:44 -0300, Carlos Gómez Montiel wrote: > Hi ¡ Hi! > How can I validate from a component if a script is inside tag > of a container page? I'm sorry, but I have no idea which scenario are you trying to describe here. Which validation is

[T5] How can I validate if a script is present ?

2014-09-24 Thread Carlos Gómez Montiel
Hi ¡ How can I validate from a component if a script is inside tag of a container page? Thanks in advance.

RE: How can I add a component inside another component without template in T5?

2014-09-24 Thread Carlos Gómez Montiel
component without template in T5? On Wed, 24 Sep 2014 19:35:44 -0300, Carlos Gómez Montiel wrote: > I have a component without template, how can I add another component > (render) inside it? You cannot. Component instances need to be declared inside a template. Tapestry templates are st

How can I add a component inside another component without template in T5?

2014-09-24 Thread Carlos Gómez Montiel
I have a component without template, how can I add another component (render) inside it? public class Component1 { void beginRender(MarkupWriter writer) { // How can I render for example a tapestry's textfield component inside this component without have a template? }