You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Tan CyberT@n" <qu...@gmail.com> on 2008/12/12 02:39:43 UTC

Confirm("are you sure want to delete") in

hi,

i'm a newbie in  tapestry.  may i know is it possible to do like:

<t:actionlink t:zone="zoneFormView" t:id="toolbarDel" t:context="${id}"
onclick="if(!confirm('Are you sure want to delete?')) return
false;"><button><img src="images/deleteRecord24.png"
/></button></t:actionlink>

I have tried to put in <button> as well, but after choose cancel.  it will
still submit.  May i know how to avoid the postback?
Thank you.

Tan

Re: Confirm("are you sure want to delete") in

Posted by zack1403 <za...@gmail.com>.
When I first wrote my confirm component this is the example I used.  This
issue is that with linksubmit, i am not able to stop the submit event.  When
I confirm for an important form, the user clicks cancel, the form still
submits.  My source is pretty much the exact same as the example.  I have
looked into it a bit but couldnt find a way to grab submit event to stop it.

Zack


Andy Pahne-6 wrote:
> 
> Tan CyberT@n schrieb:
>> hi,
>>
>> i'm a newbie in  tapestry.  may i know is it possible to do like:
>>
>> <t:actionlink t:zone="zoneFormView" t:id="toolbarDel" t:context="${id}"
>> onclick="if(!confirm('Are you sure want to delete?')) return
>> false;"><button> images/deleteRecord24.png  /></button></t:actionlink>
>>
>> I have tried to put in <button> as well, but after choose cancel.  it
>> will
>> still submit.  May i know how to avoid the postback?
>> Thank you.
>>
>> Tan
>>
>>   
> 
> It is possible, have a look:
> 
> http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained
> 
> full source code included.
> 
> Andy
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p20973370.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Confirm("are you sure want to delete") in

Posted by Andy Pahne <an...@googlemail.com>.
Tan CyberT@n schrieb:
> hi,
>
> i'm a newbie in  tapestry.  may i know is it possible to do like:
>
> <t:actionlink t:zone="zoneFormView" t:id="toolbarDel" t:context="${id}"
> onclick="if(!confirm('Are you sure want to delete?')) return
> false;"><button><img src="images/deleteRecord24.png"
> /></button></t:actionlink>
>
> I have tried to put in <button> as well, but after choose cancel.  it will
> still submit.  May i know how to avoid the postback?
> Thank you.
>
> Tan
>
>   

It is possible, have a look:

http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained

full source code included.

Andy


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


Re: Confirm("are you sure want to delete") in LinkSubmit

Posted by Onno Scheffers <on...@piraya.nl>.
I'd guess the problem is that the LinkSubmit adds its own onclick-handler
before your mixin gets a change to add it, so the ordering is wrong. If the
ordering is wrong, stopping events or default behavior in Javascript won't
do much good.

Maybe you can play around with your Confirm mixin by adding the
Javascript-code from the beginRender or cleanupRender methods to see if that
changes the ordering? The LinkSubmit component adds its Javascript from the
afterRender method it seems. Your mixin may work if you get a chance to
change the default ordering.

Ideally you'd use a normal submit-button instead. If I'm not mistaken, you
can style them to look a lot like a normal link if you prefer that. That
would also make sure the submit-button will works if Javascript is disabled.
If you really need a link and all else fails, maye you could create a custom
component for this special case?

regards,

Onno


On Thu, Feb 5, 2009 at 12:28 PM, zack1403 <za...@gmail.com> wrote:

>
> Does anyone have a confirm mixin (or other js mixin) applied to a
> LinkSubmit
> component? If so, howd you do it?
>
> Zack
>
>
> Thiago H. de Paula Figueiredo wrote:
> >
> > On Thu, Feb 5, 2009 at 9:21 AM, zack1403 <za...@gmail.com> wrote:
> >
> >> If you read up the thread a bit you would see that that was the last
> test
> >> that was asked to see what was working.  People have pasted in that link
> >> 3
> >> times without reading anything else from the thread!
> >
> > I'm sorry, but, at least in my Gmail, the message I answered was the
> > first one. Somehow the thread was broken to me.
> > Your problem is completely Prototype-related, though. I suggest you to
> > look at its documentation to find out the answer you need.
> >
> > --
> > Thiago
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p21849593.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Confirm("are you sure want to delete") in LinkSubmit

Posted by zack1403 <za...@gmail.com>.
Does anyone have a confirm mixin (or other js mixin) applied to a LinkSubmit
component? If so, howd you do it?

Zack


Thiago H. de Paula Figueiredo wrote:
> 
> On Thu, Feb 5, 2009 at 9:21 AM, zack1403 <za...@gmail.com> wrote:
> 
>> If you read up the thread a bit you would see that that was the last test
>> that was asked to see what was working.  People have pasted in that link
>> 3
>> times without reading anything else from the thread!
> 
> I'm sorry, but, at least in my Gmail, the message I answered was the
> first one. Somehow the thread was broken to me.
> Your problem is completely Prototype-related, though. I suggest you to
> look at its documentation to find out the answer you need.
> 
> -- 
> Thiago
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p21849593.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Confirm("are you sure want to delete") in LinkSubmit

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, Feb 5, 2009 at 9:21 AM, zack1403 <za...@gmail.com> wrote:

> If you read up the thread a bit you would see that that was the last test
> that was asked to see what was working.  People have pasted in that link 3
> times without reading anything else from the thread!

I'm sorry, but, at least in my Gmail, the message I answered was the
first one. Somehow the thread was broken to me.
Your problem is completely Prototype-related, though. I suggest you to
look at its documentation to find out the answer you need.

-- 
Thiago

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


Re: Confirm("are you sure want to delete") in LinkSubmit

Posted by zack1403 <za...@gmail.com>.
If you read up the thread a bit you would see that that was the last test
that was asked to see what was working.  People have pasted in that link 3
times without reading anything else from the thread!  I already understand
how to work with tapestry and js!  My issue is applying my confirm or other
js mixins to a LinkSubmit component.  It doesnt matter how I try to stop the
event it still submits the form.  

My use case is that for an important form I just want to confirm before they
submit.  If they press cancel the form submit event should cancel (one would
hope).  If anyone can shed light on this that would be great.

Zack


Thiago H. de Paula Figueiredo wrote:
> 
> On Thu, Feb 5, 2009 at 6:34 AM, zack1403 <za...@gmail.com> wrote:
> 
>> Hey guys sorry to resurrect this issue.  I just got around to fixing this
>> bug
>> :)  When I try an inline confirm with javascript on a LinkSubmit (t5)
>> component it will always submit the form.  I know that javascript cant
>> assure order of events.  Is this basically an issue that doesnt have a
>> solution? Or I guess the solution is no confirm with javascript?
> 
> Neven inline Javascript, use RenderSupport.addScript(). More info at
> http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained.
> 
> -- 
> Thiago
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p21849515.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Confirm("are you sure want to delete") in LinkSubmit

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, Feb 5, 2009 at 6:34 AM, zack1403 <za...@gmail.com> wrote:

> Hey guys sorry to resurrect this issue.  I just got around to fixing this bug
> :)  When I try an inline confirm with javascript on a LinkSubmit (t5)
> component it will always submit the form.  I know that javascript cant
> assure order of events.  Is this basically an issue that doesnt have a
> solution? Or I guess the solution is no confirm with javascript?

Neven inline Javascript, use RenderSupport.addScript(). More info at
http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained.

-- 
Thiago

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


Re: Confirm("are you sure want to delete") in LinkSubmit

Posted by Fernando Padilla <fe...@alum.mit.edu>.
I would review the Form javascript.  I bet that there are already ways 
to hook into the form validation/submittion flow, so that you can add a 
listener there, and do a popup before the form submits..

Then once you figure out how to do that, I would probably create a new 
component that adds that functionality, I might call it 
"ConfirmFormSubmit".  So that you encapsulate the registering of that 
form submit listener, etc etc.. ( you would have to learn how form 
fields hook into the form validation javascript, etc etc ).

<t:form>
  .. inputs ..
  .. submits ..
  <t:confirmFormSubmit/>
</t:form>



zack1403 wrote:
> Hey guys sorry to resurrect this issue.  I just got around to fixing this bug
> :)  When I try an inline confirm with javascript on a LinkSubmit (t5)
> component it will always submit the form.  I know that javascript cant
> assure order of events.  Is this basically an issue that doesnt have a
> solution? Or I guess the solution is no confirm with javascript?
> 
> Zack
> 
> 
> Martijn Brinkers (List)-2 wrote:
>> Could you check if the Event.stop(event) works when used directly from
>> the onclick event handler?
>>
>> So in you page tml file use something like:
>>
>> <input .... onclick="Event.stop(event); alert('event was stopped');" />
>>
>> Martijn
>>
>>
> 

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


Re: Confirm("are you sure want to delete") in LinkSubmit

Posted by zack1403 <za...@gmail.com>.
Hey guys sorry to resurrect this issue.  I just got around to fixing this bug
:)  When I try an inline confirm with javascript on a LinkSubmit (t5)
component it will always submit the form.  I know that javascript cant
assure order of events.  Is this basically an issue that doesnt have a
solution? Or I guess the solution is no confirm with javascript?

Zack


Martijn Brinkers (List)-2 wrote:
> 
> Could you check if the Event.stop(event) works when used directly from
> the onclick event handler?
> 
> So in you page tml file use something like:
> 
> <input .... onclick="Event.stop(event); alert('event was stopped');" />
> 
> Martijn
> 
> 

-- 
View this message in context: http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p21847254.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Confirm("are you sure want to delete") in

Posted by "Tan CyberT@n" <qu...@gmail.com>.
hi, i have found a solution.
http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained

this one maybe can help up

Thank you.
Tan.

On Fri, Dec 12, 2008 at 7:21 PM, Martijn Brinkers <ma...@gmail.com>wrote:

> Could you check if the Event.stop(event) works when used directly from
> the onclick event handler?
>
> So in you page tml file use something like:
>
> <input .... onclick="Event.stop(event); alert('event was stopped');" />
>
> Martijn
>
> On Fri, 2008-12-12 at 03:12 -0800, zack1403 wrote:
> > My component uses Event.stop and it wont actually stop the form submit.
> >
> >
> > Martijn Brinkers (List)-2 wrote:
> > >
> > > I think it's more a prototype issue than a Tapestry issue
> > >
> > > I think you can stop the event with:
> > >
> > > Event.stop(event);
> > >
> > > So your onclick should look something like
> > >
> > > onclick="if(!confirm('Are you sure want to delete?'))
> > > Event.stop(event);"
> > >
> > >
> > > Regards,
> > >
> > > Martijn Brinkers
> > >
> > >
> > > On Fri, 2008-12-12 at 11:25 +0100, Andy Pahne wrote:
> > >> This is sad. We cannot even fill a JIRA, because "Confirm" is not part
> > >> of the framework.
> > >>
> > >> Andy
> > >>
> > >>
> > >>
> > >> zack1403 schrieb:
> > >> > I am using the confirm functionality as a component and am having
> > >> similar
> > >> > problems.  Confirm does not work with the linkSubmit component.  It
> is
> > >> > currently a major bug in my app.
> > >> >
> > >> > Zack
> > >> >
> > >> > Tan CyberT@n wrote:
> > >> >
> > >> >> hi,
> > >> >>
> > >> >> i'm a newbie in  tapestry.  may i know is it possible to do like:
> > >> >>
> > >> >> <t:actionlink t:zone="zoneFormView" t:id="toolbarDel"
> > >> t:context="${id}"
> > >> >> onclick="if(!confirm('Are you sure want to delete?')) return
> > >> >> false;"><button> images/deleteRecord24.png </button></t:actionlink>
> > >> >>
> > >> >> I have tried to put in <button> as well, but after choose cancel.
>  it
> > >> will
> > >> >> still submit.  May i know how to avoid the postback?
> > >> >> Thank you.
> > >> >>
> > >> >> Tan
> > >> >>
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> 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
> > >
> > >
> > >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: Confirm("are you sure want to delete") in

Posted by Martijn Brinkers <ma...@gmail.com>.
Could you check if the Event.stop(event) works when used directly from
the onclick event handler?

So in you page tml file use something like:

<input .... onclick="Event.stop(event); alert('event was stopped');" />

Martijn

On Fri, 2008-12-12 at 03:12 -0800, zack1403 wrote:
> My component uses Event.stop and it wont actually stop the form submit.
> 
> 
> Martijn Brinkers (List)-2 wrote:
> > 
> > I think it's more a prototype issue than a Tapestry issue
> > 
> > I think you can stop the event with:
> > 
> > Event.stop(event);
> > 
> > So your onclick should look something like
> > 
> > onclick="if(!confirm('Are you sure want to delete?'))
> > Event.stop(event);"
> > 
> > 
> > Regards,
> > 
> > Martijn Brinkers
> >  
> > 
> > On Fri, 2008-12-12 at 11:25 +0100, Andy Pahne wrote:
> >> This is sad. We cannot even fill a JIRA, because "Confirm" is not part 
> >> of the framework.
> >> 
> >> Andy
> >> 
> >> 
> >> 
> >> zack1403 schrieb:
> >> > I am using the confirm functionality as a component and am having
> >> similar
> >> > problems.  Confirm does not work with the linkSubmit component.  It is
> >> > currently a major bug in my app. 
> >> >
> >> > Zack
> >> >
> >> > Tan CyberT@n wrote:
> >> >   
> >> >> hi,
> >> >>
> >> >> i'm a newbie in  tapestry.  may i know is it possible to do like:
> >> >>
> >> >> <t:actionlink t:zone="zoneFormView" t:id="toolbarDel"
> >> t:context="${id}"
> >> >> onclick="if(!confirm('Are you sure want to delete?')) return
> >> >> false;"><button> images/deleteRecord24.png </button></t:actionlink>
> >> >>
> >> >> I have tried to put in <button> as well, but after choose cancel.  it
> >> will
> >> >> still submit.  May i know how to avoid the postback?
> >> >> Thank you.
> >> >>
> >> >> Tan
> >> >>
> >> >>
> >> >>     
> >> >
> >> >   
> >> 
> >> 
> >> ---------------------------------------------------------------------
> >> 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
> > 
> > 
> > 
> 


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


Re: Confirm("are you sure want to delete") in

Posted by zack1403 <za...@gmail.com>.
My component uses Event.stop and it wont actually stop the form submit.


Martijn Brinkers (List)-2 wrote:
> 
> I think it's more a prototype issue than a Tapestry issue
> 
> I think you can stop the event with:
> 
> Event.stop(event);
> 
> So your onclick should look something like
> 
> onclick="if(!confirm('Are you sure want to delete?'))
> Event.stop(event);"
> 
> 
> Regards,
> 
> Martijn Brinkers
>  
> 
> On Fri, 2008-12-12 at 11:25 +0100, Andy Pahne wrote:
>> This is sad. We cannot even fill a JIRA, because "Confirm" is not part 
>> of the framework.
>> 
>> Andy
>> 
>> 
>> 
>> zack1403 schrieb:
>> > I am using the confirm functionality as a component and am having
>> similar
>> > problems.  Confirm does not work with the linkSubmit component.  It is
>> > currently a major bug in my app. 
>> >
>> > Zack
>> >
>> > Tan CyberT@n wrote:
>> >   
>> >> hi,
>> >>
>> >> i'm a newbie in  tapestry.  may i know is it possible to do like:
>> >>
>> >> <t:actionlink t:zone="zoneFormView" t:id="toolbarDel"
>> t:context="${id}"
>> >> onclick="if(!confirm('Are you sure want to delete?')) return
>> >> false;"><button> images/deleteRecord24.png </button></t:actionlink>
>> >>
>> >> I have tried to put in <button> as well, but after choose cancel.  it
>> will
>> >> still submit.  May i know how to avoid the postback?
>> >> Thank you.
>> >>
>> >> Tan
>> >>
>> >>
>> >>     
>> >
>> >   
>> 
>> 
>> ---------------------------------------------------------------------
>> 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
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p20973719.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: Confirm("are you sure want to delete") in

Posted by Martijn Brinkers <ma...@gmail.com>.
I think it's more a prototype issue than a Tapestry issue

I think you can stop the event with:

Event.stop(event);

So your onclick should look something like

onclick="if(!confirm('Are you sure want to delete?'))
Event.stop(event);"


Regards,

Martijn Brinkers
 

On Fri, 2008-12-12 at 11:25 +0100, Andy Pahne wrote:
> This is sad. We cannot even fill a JIRA, because "Confirm" is not part 
> of the framework.
> 
> Andy
> 
> 
> 
> zack1403 schrieb:
> > I am using the confirm functionality as a component and am having similar
> > problems.  Confirm does not work with the linkSubmit component.  It is
> > currently a major bug in my app. 
> >
> > Zack
> >
> > Tan CyberT@n wrote:
> >   
> >> hi,
> >>
> >> i'm a newbie in  tapestry.  may i know is it possible to do like:
> >>
> >> <t:actionlink t:zone="zoneFormView" t:id="toolbarDel" t:context="${id}"
> >> onclick="if(!confirm('Are you sure want to delete?')) return
> >> false;"><button> images/deleteRecord24.png </button></t:actionlink>
> >>
> >> I have tried to put in <button> as well, but after choose cancel.  it will
> >> still submit.  May i know how to avoid the postback?
> >> Thank you.
> >>
> >> Tan
> >>
> >>
> >>     
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> 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: Confirm("are you sure want to delete") in

Posted by Andy Pahne <an...@googlemail.com>.
This is sad. We cannot even fill a JIRA, because "Confirm" is not part 
of the framework.

Andy



zack1403 schrieb:
> I am using the confirm functionality as a component and am having similar
> problems.  Confirm does not work with the linkSubmit component.  It is
> currently a major bug in my app. 
>
> Zack
>
> Tan CyberT@n wrote:
>   
>> hi,
>>
>> i'm a newbie in  tapestry.  may i know is it possible to do like:
>>
>> <t:actionlink t:zone="zoneFormView" t:id="toolbarDel" t:context="${id}"
>> onclick="if(!confirm('Are you sure want to delete?')) return
>> false;"><button> images/deleteRecord24.png </button></t:actionlink>
>>
>> I have tried to put in <button> as well, but after choose cancel.  it will
>> still submit.  May i know how to avoid the postback?
>> Thank you.
>>
>> Tan
>>
>>
>>     
>
>   


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


Re: Confirm("are you sure want to delete") in

Posted by zack1403 <za...@gmail.com>.
I am using the confirm functionality as a component and am having similar
problems.  Confirm does not work with the linkSubmit component.  It is
currently a major bug in my app. 

Zack

Tan CyberT@n wrote:
> 
> hi,
> 
> i'm a newbie in  tapestry.  may i know is it possible to do like:
> 
> <t:actionlink t:zone="zoneFormView" t:id="toolbarDel" t:context="${id}"
> onclick="if(!confirm('Are you sure want to delete?')) return
> false;"><button> images/deleteRecord24.png </button></t:actionlink>
> 
> I have tried to put in <button> as well, but after choose cancel.  it will
> still submit.  May i know how to avoid the postback?
> Thank you.
> 
> Tan
> 
> 

-- 
View this message in context: http://www.nabble.com/Confirm%28%22are-you-sure-want-to-delete%22%29-in-%3Caction-link%3E-tp20968491p20971604.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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