Re: Issue with ajax updating of a zone

2011-07-30 Thread Julien Martin
thanks Taha 2011/7/29 Taha Hafeez > You can use eventlink instead of actionlink and specify the event name > using "event" parameter. > > regards > Taha > > On Fri, Jul 29, 2011 at 7:34 PM, Julien Martin wrote: > > It would be nice if I could add several OnEvent to a method. I could for > > ins

Re: Issue with ajax updating of a zone

2011-07-29 Thread Taha Hafeez
You can use eventlink instead of actionlink and specify the event name using "event" parameter. regards Taha On Fri, Jul 29, 2011 at 7:34 PM, Julien Martin wrote: > It would be nice if I could add several OnEvent to a method. I could for > instance add the EventConstants.ACTION event as well as

Re: Issue with ajax updating of a zone

2011-07-29 Thread Julien Martin
It would be nice if I could add several OnEvent to a method. I could for instance add the EventConstants.ACTION event as well as the ACTIVATE event to my loadJobPostings() method. Can anyone please help? Is there a better way? J. 2011/7/29 Julien Martin > I understand part of the problem now. Th

Re: Issue with ajax updating of a zone

2011-07-29 Thread Julien Martin
I understand part of the problem now. The method below is called before the ajax method that return grid.getBody(); *@OnEvent(EventConstants.ACTIVATE) void loadJobPostings() { jobPostings = service.loadJobPostings(); }* How can remedy this without doing something like this which

Re: Issue with ajax updating of a zone

2011-07-29 Thread Julien Martin
Here is the result of the first click: Hibernate: select jobposting0_.id_job_posting as id1_0_, > jobposting0_.job_posting_activated as job2_0_, jobposting0_.job_posting_body > as job3_0_, jobposting0_.job_posting_contact_email as job4_0_, > jobposting0_.job_posting_contact_name as job5_0_, > jobp

Re: Issue with ajax updating of a zone

2011-07-29 Thread Julien Martin
No JS error is shown in firebug/firefox. I am going to try with @Log J. 2011/7/29 Taha Hafeez > You can add @Log to the event handlers to log the calls. > > Did you check if you page has a javascript error ? > > regards > Taha > > On Fri, Jul 29, 2011 at 7:02 PM, Julien Martin wrote: > > No exc

Re: Issue with ajax updating of a zone

2011-07-29 Thread Julien Martin
Very weird. I am now realizing that it does work BUT I have to click twice (not double click) on the action link for it to work. Any idea why that is? J. 2011/7/29 Julien Martin > No exception is thrown... > Is there any way to log the ajax calls? > J. > > > 2011/7/29 Taha Hafeez > >> There mus

Re: Issue with ajax updating of a zone

2011-07-29 Thread Taha Hafeez
You can add @Log to the event handlers to log the calls. Did you check if you page has a javascript error ? regards Taha On Fri, Jul 29, 2011 at 7:02 PM, Julien Martin wrote: > No exception is thrown... > Is there any way to log the ajax calls? > J. > > 2011/7/29 Taha Hafeez > >> There must be

Re: Issue with ajax updating of a zone

2011-07-29 Thread Julien Martin
No exception is thrown... Is there any way to log the ajax calls? J. 2011/7/29 Taha Hafeez > There must be some stack trace ? Can you share that ? > > regards > Taha > > On Fri, Jul 29, 2011 at 6:54 PM, Julien Martin wrote: > > I've added these as suggested. It still does not work... > > Any ot

Re: Issue with ajax updating of a zone

2011-07-29 Thread Taha Hafeez
There must be some stack trace ? Can you share that ? regards Taha On Fri, Jul 29, 2011 at 6:54 PM, Julien Martin wrote: > I've added these as suggested. It still does not work... > Any other idea? > J. > > > * @OnEvent(value = EventConstants.ACTION, component = "pause") >    Object pauseJobPost

Re: Issue with ajax updating of a zone

2011-07-29 Thread Julien Martin
I've added these as suggested. It still does not work... Any other idea? J. * @OnEvent(value = EventConstants.ACTION, component = "pause") Object pauseJobPosting(JobPosting jobPosting) { service.pauseJobPosting(jobPosting); return grid.getBody(); } @OnEvent(value = Ev

Re: Issue with ajax updating of a zone

2011-07-29 Thread Taha Hafeez
Do the corresponding event handlers of these actionlinks return zone.getBody() @InjectComponent private Zone grid; Object onUnPause() { return grid.getBody(); } regards Taha On Fri, Jul 29, 2011 at 6:32 PM, Julien Martin wrote: > Hello, > > I have a form that contains a number of action li

Issue with ajax updating of a zone

2011-07-29 Thread Julien Martin
Hello, I have a form that contains a number of action links. I would like to update the whole enclosig form from an action link and have added a zone to that purpose. It is as follows: * unPause