Hi,

I did check this example, but it helped me only to some extent.
The main problem in my case is:
the structure of my TML file is like this:
Loop
      Zone
             Form (defined photoZOne here)
                    Submit
the main problem is: counter value for first form does not function
properly...it gives very unpredictable results..for rest of the subsequent
forms ( from the loop) works properly...

Any suggestions/advice ?
http://old.nabble.com/file/p28978902/photos.tml photos.tml 

I hope I am clear in my problem stmt. Looking fwd for solution for my
problem.
regards
sakshi

P.S. The reason I use zone here is: I have 'reported catergory' attached to
each photo. and if I disapprove I need to submit it with the reason i.e.
'reported category' that particular photo. So i can't submit the entire
form( as it contains multiple photos).
I also need to add java script in my code as I want to hide the photo as
soon as i take action on it. (i.e. approve/disapprove)
Looked at many examples but nothing works fine with everything in place,
i.e. zone,loop,form,javascript all together


Geoff Callender-2 wrote:
> 
> Does this 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 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 and from this method I should return Zone
>> body.
>> 
>> But in my case, none of the methods are getting invoked - eg:
>> onSelectedFromDisapprovePhoto/onSuccessFromDisapprovePhoto 
>> They work fine with ActionLink but not otherwise.
>> 
>> http://old.nabble.com/file/p28967834/Photos.java Photos.java 
>> http://old.nabble.com/file/p28967834/Photos.tml Photos.tml 
>> 
>> In my case, I have tried JSON, Mixin for javascript code. but none works
>> with zone.
>> How to make it a AJAX request??
>> Please guide me.
>> 
>> regards
>> sakshi
>> 
>> -- 
>> View this message in context:
>> http://old.nabble.com/Updating-a-Zone-with-Actionlink-doesn%27t-work-%28Return-type-can-not-be-handled%29-tp27355636p28967834.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Updating-a-Zone-with-Actionlink-doesn%27t-work-%28Return-type-can-not-be-handled%29-tp27355636p28978902.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to