Invoke javascript through Mixin with actionLink and click event

2010-07-01 Thread SakshiAgarwal
Hi, In the below example, I am trying to invoke javascript when I click on Approve link and also on Disapprove. [While disapproving, I am submitting the form as I want to submit reported category along with it, while on approve I am just changing the status[approve/disapprove] of my photo in java

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-24 Thread SakshiAgarwal
> depend what you are looping over. Nested loops can be fun. > > JB > > > On Thu, Jun 24, 2010 at 12:52 AM, SakshiAgarwal > wrote: > >> >> Hi, >> >> I did check this example, but it helped me only to some extent. >> The main problem in my ca

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-23 Thread SakshiAgarwal
his example help? > > > http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/ajaxform > > On 23/06/2010, at 3:06 PM, SakshiAgarwal wrote: > >> >> Hi, >> >> Thanks a lot for the reply. It works now. >> I have been struggling hard to make zone work with Fo

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-22 Thread SakshiAgarwal
Hi, Thanks a lot for the reply. It works now. I have been struggling hard to make zone work with Form Submit component. I read on http://www.infoq.com/articles/tapestry5-intro, how to make AJAX request. So accordingly from my attached Photos.tml file, I should make onSuccessFromDisapprovePhoto a

Re: Updating a Zone with Actionlink doesn't work (Return type can not be handled)

2010-06-22 Thread SakshiAgarwal
Hi Did u get the solution to ur problem. I am facing the same problem "component event handler method returned the value Block[Body of Photos:photozone, at context:Photos.tml, line 28]. Return type org.apache.tapestry5.internal.structure.BlockImpl can not be handled" regards sakshi -- View thi

Invoke Javascript using LinkSubmit

2010-06-17 Thread SakshiAgarwal
Hi, i have used multiple options to invoke javascript on clicking linkSubmit, but none works, although they all work with Submit. a) Invoking javascript from tml page as follows: function extraStep() { alert("ENTER extraStep"); } -${each.title} [Approve]