Re: About the value of the parameters

2008-12-23 Thread ningdh

I am afraid you must stop the event as 
http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained does, or else 
the request is still posted.

 hi 滕训华 ,
 
 do you might to share out your coding about
 @Component(parameters = {onClick=literal:return confirm(\do you want to
 delete this record?\);})  ?
 
 i have a problem on prompt a confirmation box before submit. but when i even
 press cancel. it also do  the submit post back.
 
 Thank you.
 
 Regards,
 Tan
 
 
 2008/6/27 滕训华 ten...@magic-sw.com.cn
 
 Hi,everyone



 @Component(parameters = {onClick=literal:return confirm(\do you want to
 delete this record?\);})



 The string do you want to delete this record? that I want to read it
 from the properties file,how to do it?



 I am using the t5




Re: About the value of the parameters

2008-12-23 Thread Tan cyb...@n
hi,

I have done that, but seems like useless. even i press cancel. it will still
post is it applicable for actionLink( i mean this tutorial) also?

if(! confirm(this.message))
  e.stop();

THank you.

Tan





2008/12/23 ningdh ningd...@gmail.com


 I am afraid you must stop the event as
 http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained does, or
 else the request is still posted.

  hi 滕训华 ,
 
  do you might to share out your coding about
  @Component(parameters = {onClick=literal:return confirm(\do you want to
  delete this record?\);})  ?
 
  i have a problem on prompt a confirmation box before submit. but when i
 even
  press cancel. it also do  the submit post back.
 
  Thank you.
 
  Regards,
  Tan
 
 
  2008/6/27 滕训华 ten...@magic-sw.com.cn
 
  Hi,everyone
 
 
 
  @Component(parameters = {onClick=literal:return confirm(\do you want
 to
  delete this record?\);})
 
 
 
  The string do you want to delete this record? that I want to read it
  from the properties file,how to do it?
 
 
 
  I am using the t5
 
 
 



Re: About the value of the parameters

2008-12-23 Thread ningdh
You are welcome:)
I completely copied that code 2 weeks ago, create a mixin and it runs well for 
actionlink and submit. 
I think you didn't implement that mixin, but only add 'if(! 
confirm(this.message))   e.stop();' to submit button?

DH
 hi,
 
 I have done that, but seems like useless. even i press cancel. it will still
 post is it applicable for actionLink( i mean this tutorial) also?
 
 if(! confirm(this.message))
  e.stop();
 
 THank you.
 
 Tan
 
 
 
 
 
 2008/12/23 ningdh ningd...@gmail.com
 

 I am afraid you must stop the event as
 http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained does, or
 else the request is still posted.

  hi 滕训华 ,
 
  do you might to share out your coding about
  @Component(parameters = {onClick=literal:return confirm(\do you want to
  delete this record?\);})  ?
 
  i have a problem on prompt a confirmation box before submit. but when i
 even
  press cancel. it also do  the submit post back.
 
  Thank you.
 
  Regards,
  Tan
 
 
  2008/6/27 滕训华 ten...@magic-sw.com.cn
 
  Hi,everyone
 
 
 
  @Component(parameters = {onClick=literal:return confirm(\do you want
 to
  delete this record?\);})
 
 
 
  The string do you want to delete this record? that I want to read it
  from the properties file,how to do it?
 
 
 
  I am using the t5
 
 
 



Re: About the value of the parameters

2008-12-23 Thread Tan cyb...@n
hi,
thanks for reply.  I have copy all the sample and deploy into my program
using  t:mixins=confirm as well.
if(! confirm(this.message))  e.stop();  is only i wanted to ask when the
script is reached that statement. :)

below are my statement in tml.


t:actionlink t:mixins=confirm t:zone=zoneFormView t:id=toolbarDel
t:context=${id}buttonimg src=images/deleteRecord24.png
//button/t:actionlink

is it because it contained t:zone and causing the return false after confirm
button it will still call the javascript itself?

Thank you.



Tan


2008/12/23 ningdh ningd...@gmail.com

 You are welcome:)
 I completely copied that code 2 weeks ago, create a mixin and it runs well
 for actionlink and submit.
 I think you didn't implement that mixin, but only add 'if(!
 confirm(this.message))   e.stop();' to submit button?

 DH
   hi,
 
  I have done that, but seems like useless. even i press cancel. it will
 still
  post is it applicable for actionLink( i mean this tutorial) also?
 
  if(! confirm(this.message))
   e.stop();
 
  THank you.
 
  Tan
 
 
 
 
 
  2008/12/23 ningdh ningd...@gmail.com
 
 
  I am afraid you must stop the event as
  http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained does,
 or
  else the request is still posted.
 
   hi 滕训华 ,
  
   do you might to share out your coding about
   @Component(parameters = {onClick=literal:return confirm(\do you want
 to
   delete this record?\);})  ?
  
   i have a problem on prompt a confirmation box before submit. but when
 i
  even
   press cancel. it also do  the submit post back.
  
   Thank you.
  
   Regards,
   Tan
  
  
   2008/6/27 滕训华 ten...@magic-sw.com.cn
  
   Hi,everyone
  
  
  
   @Component(parameters = {onClick=literal:return confirm(\do you
 want
  to
   delete this record?\);})
  
  
  
   The string do you want to delete this record? that I want to read
 it
   from the properties file,how to do it?
  
  
  
   I am using the t5
  
  
  
 
 



Re: About the value of the parameters

2008-12-23 Thread dhning
Hi,

Maybe because of the zone, why not have a try by removing it?


DH


 hi,
 thanks for reply.  I have copy all the sample and deploy into my program
 using  t:mixins=confirm as well.
 if(! confirm(this.message))  e.stop();  is only i wanted to ask when the
 script is reached that statement. :)
 
 below are my statement in tml.
 
 
 t:actionlink t:mixins=confirm t:zone=zoneFormView t:id=toolbarDel
 t:context=${id}buttonimg src=images/deleteRecord24.png
 //button/t:actionlink
 
 is it because it contained t:zone and causing the return false after confirm
 button it will still call the javascript itself?
 
 Thank you.
 
 
 
 Tan
 
 
 2008/12/23 ningdh ningd...@gmail.com
 
 You are welcome:)
 I completely copied that code 2 weeks ago, create a mixin and it runs well
 for actionlink and submit.
 I think you didn't implement that mixin, but only add 'if(!
 confirm(this.message))   e.stop();' to submit button?

 DH
   hi,
 
  I have done that, but seems like useless. even i press cancel. it will
 still
  post is it applicable for actionLink( i mean this tutorial) also?
 
  if(! confirm(this.message))
   e.stop();
 
  THank you.
 
  Tan
 
 
 
 
 
  2008/12/23 ningdh ningd...@gmail.com
 
 
  I am afraid you must stop the event as
  http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained does,
 or
  else the request is still posted.
 
   hi 滕训华 ,
  
   do you might to share out your coding about
   @Component(parameters = {onClick=literal:return confirm(\do you want
 to
   delete this record?\);})  ?
  
   i have a problem on prompt a confirmation box before submit. but when
 i
  even
   press cancel. it also do  the submit post back.
  
   Thank you.
  
   Regards,
   Tan
  
  
   2008/6/27 滕训华 ten...@magic-sw.com.cn
  
   Hi,everyone
  
  
  
   @Component(parameters = {onClick=literal:return confirm(\do you
 want
  to
   delete this record?\);})
  
  
  
   The string do you want to delete this record? that I want to read
 it
   from the properties file,how to do it?
  
  
  
   I am using the t5
  
  
  
 
 



Re: About the value of the parameters

2008-12-23 Thread Tan cyb...@n
hi,

I can't remove it because it is also playing a very important role.  because
it might affect all my operation.
any solution?
Thank you.

REgards,
Tan

2008/12/24 dhning ningd...@gmail.com

 Hi,

 Maybe because of the zone, why not have a try by removing it?


 DH


  hi,
  thanks for reply.  I have copy all the sample and deploy into my program
  using  t:mixins=confirm as well.
  if(! confirm(this.message))  e.stop();  is only i wanted to ask when the
  script is reached that statement. :)
 
  below are my statement in tml.
 
 
  t:actionlink t:mixins=confirm t:zone=zoneFormView t:id=toolbarDel
  t:context=${id}buttonimg src=images/deleteRecord24.png
  //button/t:actionlink
 
  is it because it contained t:zone and causing the return false after
 confirm
  button it will still call the javascript itself?
 
  Thank you.
 
 
 
  Tan
 
 
  2008/12/23 ningdh ningd...@gmail.com
 
  You are welcome:)
  I completely copied that code 2 weeks ago, create a mixin and it runs
 well
  for actionlink and submit.
  I think you didn't implement that mixin, but only add 'if(!
  confirm(this.message))   e.stop();' to submit button?
 
  DH
hi,
  
   I have done that, but seems like useless. even i press cancel. it will
  still
   post is it applicable for actionLink( i mean this tutorial) also?
  
   if(! confirm(this.message))
e.stop();
  
   THank you.
  
   Tan
  
  
  
  
  
   2008/12/23 ningdh ningd...@gmail.com
  
  
   I am afraid you must stop the event as
   http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplaineddoes,
  or
   else the request is still posted.
  
hi 滕训华 ,
   
do you might to share out your coding about
@Component(parameters = {onClick=literal:return confirm(\do you
 want
  to
delete this record?\);})  ?
   
i have a problem on prompt a confirmation box before submit. but
 when
  i
   even
press cancel. it also do  the submit post back.
   
Thank you.
   
Regards,
Tan
   
   
2008/6/27 滕训华 ten...@magic-sw.com.cn
   
Hi,everyone
   
   
   
@Component(parameters = {onClick=literal:return confirm(\do you
  want
   to
delete this record?\);})
   
   
   
The string do you want to delete this record? that I want to
 read
  it
from the properties file,how to do it?
   
   
   
I am using the t5
   
   
   
  
  
 
 



Re: About the value of the parameters

2008-12-23 Thread dhning
I've tested, cause is the zone because it attaches another 'click' event too.

I can't figure out a solution yet.
Refer here to see what the author of Confirm said.
http://markmail.org/message/um2pzavehm3ueoaw?q=link+confirm+zone+list:org%2Eapache%2Etapestry%2Euserspage=2

DH


- Original Message - 
From: Tan cyb...@n quesoft.cyber...@gmail.com
To: Tapestry users users@tapestry.apache.org
Sent: Wednesday, December 24, 2008 10:46 AM
Subject: Re: About the value of the parameters


 hi,
 
 I can't remove it because it is also playing a very important role.  because
 it might affect all my operation.
 any solution?
 Thank you.
 
 REgards,
 Tan
 
 2008/12/24 dhning ningd...@gmail.com
 
 Hi,

 Maybe because of the zone, why not have a try by removing it?


 DH


  hi,
  thanks for reply.  I have copy all the sample and deploy into my program
  using  t:mixins=confirm as well.
  if(! confirm(this.message))  e.stop();  is only i wanted to ask when the
  script is reached that statement. :)
 
  below are my statement in tml.
 
 
  t:actionlink t:mixins=confirm t:zone=zoneFormView t:id=toolbarDel
  t:context=${id}buttonimg src=images/deleteRecord24.png
  //button/t:actionlink
 
  is it because it contained t:zone and causing the return false after
 confirm
  button it will still call the javascript itself?
 
  Thank you.
 
 
 
  Tan
 
 
  2008/12/23 ningdh ningd...@gmail.com
 
  You are welcome:)
  I completely copied that code 2 weeks ago, create a mixin and it runs
 well
  for actionlink and submit.
  I think you didn't implement that mixin, but only add 'if(!
  confirm(this.message))   e.stop();' to submit button?
 
  DH
hi,
  
   I have done that, but seems like useless. even i press cancel. it will
  still
   post is it applicable for actionLink( i mean this tutorial) also?
  
   if(! confirm(this.message))
e.stop();
  
   THank you.
  
   Tan
  
  
  
  
  
   2008/12/23 ningdh ningd...@gmail.com
  
  
   I am afraid you must stop the event as
   http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplaineddoes,
  or
   else the request is still posted.
  
hi 滕训华 ,
   
do you might to share out your coding about
@Component(parameters = {onClick=literal:return confirm(\do you
 want
  to
delete this record?\);})  ?
   
i have a problem on prompt a confirmation box before submit. but
 when
  i
   even
press cancel. it also do  the submit post back.
   
Thank you.
   
Regards,
Tan
   
   
2008/6/27 滕训华 ten...@magic-sw.com.cn
   
Hi,everyone
   
   
   
@Component(parameters = {onClick=literal:return confirm(\do you
  want
   to
delete this record?\);})
   
   
   
The string do you want to delete this record? that I want to
 read
  it
from the properties file,how to do it?
   
   
   
I am using the t5
   
   
   
  
  
 
 



Re: About the value of the parameters

2008-12-23 Thread Tan cyb...@n
hi,

thank you for the information.  I also finding on the solution.  hope can
fix it soon.
Thank you.

Regards,
Tan

2008/12/24 dhning ningd...@gmail.com

 I've tested, cause is the zone because it attaches another 'click' event
 too.

 I can't figure out a solution yet.
 Refer here to see what the author of Confirm said.

 http://markmail.org/message/um2pzavehm3ueoaw?q=link+confirm+zone+list:org%2Eapache%2Etapestry%2Euserspage=2

 DH


 - Original Message -
 From: Tan cyb...@n quesoft.cyber...@gmail.com
 To: Tapestry users users@tapestry.apache.org
  Sent: Wednesday, December 24, 2008 10:46 AM
 Subject: Re: About the value of the parameters


  hi,
 
  I can't remove it because it is also playing a very important role.
  because
  it might affect all my operation.
  any solution?
  Thank you.
 
  REgards,
  Tan
 
  2008/12/24 dhning ningd...@gmail.com
 
  Hi,
 
  Maybe because of the zone, why not have a try by removing it?
 
 
  DH
 
 
   hi,
   thanks for reply.  I have copy all the sample and deploy into my
 program
   using  t:mixins=confirm as well.
   if(! confirm(this.message))  e.stop();  is only i wanted to ask when
 the
   script is reached that statement. :)
  
   below are my statement in tml.
  
  
   t:actionlink t:mixins=confirm t:zone=zoneFormView
 t:id=toolbarDel
   t:context=${id}buttonimg src=images/deleteRecord24.png
   //button/t:actionlink
  
   is it because it contained t:zone and causing the return false after
  confirm
   button it will still call the javascript itself?
  
   Thank you.
  
  
  
   Tan
  
  
   2008/12/23 ningdh ningd...@gmail.com
  
   You are welcome:)
   I completely copied that code 2 weeks ago, create a mixin and it runs
  well
   for actionlink and submit.
   I think you didn't implement that mixin, but only add 'if(!
   confirm(this.message))   e.stop();' to submit button?
  
   DH
 hi,
   
I have done that, but seems like useless. even i press cancel. it
 will
   still
post is it applicable for actionLink( i mean this tutorial) also?
   
if(! confirm(this.message))
 e.stop();
   
THank you.
   
Tan
   
   
   
   
   
2008/12/23 ningdh ningd...@gmail.com
   
   
I am afraid you must stop the event as
   
 http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplaineddoes,
   or
else the request is still posted.
   
 hi 滕训华 ,

 do you might to share out your coding about
 @Component(parameters = {onClick=literal:return confirm(\do
 you
  want
   to
 delete this record?\);})  ?

 i have a problem on prompt a confirmation box before submit. but
  when
   i
even
 press cancel. it also do  the submit post back.

 Thank you.

 Regards,
 Tan


 2008/6/27 滕训华 ten...@magic-sw.com.cn

 Hi,everyone



 @Component(parameters = {onClick=literal:return confirm(\do
 you
   want
to
 delete this record?\);})



 The string do you want to delete this record? that I want to
  read
   it
 from the properties file,how to do it?



 I am using the t5



   
   
  
  
 
 



Re: About the value of the parameters

2008-12-22 Thread Tan cyb...@n
hi 滕训华 ,

do you might to share out your coding about
@Component(parameters = {onClick=literal:return confirm(\do you want to
delete this record?\);})  ?

i have a problem on prompt a confirmation box before submit. but when i even
press cancel. it also do  the submit post back.

Thank you.

Regards,
Tan


2008/6/27 滕训华 ten...@magic-sw.com.cn

 Hi,everyone



 @Component(parameters = {onClick=literal:return confirm(\do you want to
 delete this record?\);})



 The string do you want to delete this record? that I want to read it
 from the properties file,how to do it?



 I am using the t5




Re: About the value of the parameters

2008-06-27 Thread dhning
1. @Component(parameters = {onClick=confirmMessage})

public String getConfirmMessage() {
return messsage.get(key-name);
}

Just refer that, I haven't tried for it yet.

2. Or you can define your own binding prefix.

Thanks!

DH


- Original Message - 
From: 滕训华 [EMAIL PROTECTED]
To: 'Tapestry users' users@tapestry.apache.org
Sent: Friday, June 27, 2008 2:52 PM
Subject: About the value of the parameters


Hi,everyone

 

@Component(parameters = {onClick=literal:return confirm(\do you want to
delete this record?\);})

 

The string “do you want to delete this record?” that I want to read it
from the properties file,how to do it?

 

I am using the t5



Re: About the value of the parameters

2008-06-27 Thread Robert Zeigler

@Component(parameters={onClick=message:key-name})

But then your message would have to contain the javascript (as it  
would for DH below).

But you could tweak DH's suggestion slightly:


@Component(parameters = {onClick=confirmMessage})
...

public  String getConfirmMessage() {
  return String.format(return confirm(\%s\);,messages.get(key- 
name));

}

Robert

On Jun 27, 2008, at 6/273:00 AM , dhning wrote:


1. @Component(parameters = {onClick=confirmMessage})

public String getConfirmMessage() {
return messsage.get(key-name);
}

Just refer that, I haven't tried for it yet.

2. Or you can define your own binding prefix.

Thanks!

DH


- Original Message -
From: 滕训华 [EMAIL PROTECTED]
To: 'Tapestry users' users@tapestry.apache.org
Sent: Friday, June 27, 2008 2:52 PM
Subject: About the value of the parameters


Hi,everyone



@Component(parameters = {onClick=literal:return confirm(\do you  
want to

delete this record?\);})



The string “do you want to delete  
this record?” that I want to read it

from the properties file,how to do it?



I am using the t5




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]