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:
t:form t:id='form1' t:zone='zone1'
t:submit value=send/
/t:form
t:zone t:id='zone1' id='zone1'
/t:zone
, 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:47 AM, Carlos Gómez Montiel ibe...@gmail.com
='zone2' id='zone2'
Your Content
/t:zone
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, 2014 at 11:25 PM, Carlos Gómez Montiel
/org/apache/tapestry5/corelib/mixins/Confirm.java
On Wed, Dec 10, 2014 at 7:28 PM, Carlos Gómez Montiel ibe...@gmail.com
wrote:
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
/resources/org/got5/tapestry5/jquery/assets/mixins/confirm/confirm.js
On Thu, Dec 11, 2014 at 12:06 AM, Carlos Gómez Montiel ibe...@gmail.com
wrote:
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
='zone1'
t:submit value=send/
/t:form
t:zone t:id='zone1' id='zone1'
/t:zone
Thanks in advance
2014-12-11 0:05 GMT-06:00 Carlos Gómez Montiel ibe...@gmail.com:
George, yes I'm using tapestry-jquery but in the links you wrote is the
solution:
$(#form1).submit(function(event
...@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:09:14 -0300, Carlos Gómez Montiel ibe...@gmail.com
wrote:
Hi Thiago, thank you for your answer :) I'm using Tapestry 5.3.7
Hi
if a script is present ?
On Fri, 26 Sep 2014 14:04:01 -0300, Carlos Gómez Montiel ibe...@gmail.com
wrote:
Hi Thiago
Hi!
t:actionlink t:id=refresh zone='zoneResults'refresh/t:actionlink
t:zone id='zoneResults'/
t:block t:id=blockResults
div t:type=jquery/gmap t:id=map
t:parameters
]
Enviado el: jueves, 25 de septiembre de 2014 07:29 a.m.
Para: Tapestry users
Asunto: Re: [T5] How can I validate if a script is present ?
On Wed, 24 Sep 2014 21:59:44 -0300, Carlos Gómez Montiel ibe...@gmail.com
wrote:
Hi ¡
Hi!
How can I validate from a component if a script is inside head tag
?
On Thu, 25 Sep 2014 10:45:44 -0300, Carlos Gómez Montiel ibe...@gmail.com
wrote:
Hi Thiago
Ok, I will more specific:
Hi!
Thanks for being more specific. :) We want to help, but it's quite hard
I'm developing a Tapestry component (GMapShow) that renders a google
map. If I include
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:
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?
}
component without template
in T5?
On Wed, 24 Sep 2014 19:35:44 -0300, Carlos Gómez Montiel ibe...@gmail.com
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
Hi ¡
How can I validate from a component if a script is inside head tag of a
container page?
Thanks in advance.
14 matches
Mail list logo