[Building Sakai] Wicket and entity broker

Adrian Fish a.fish at lancaster.ac.uk
Tue Jan 11 04:37:45 PST 2011


Correction, the EB url would be more like 
/direct/my-service/my-entity/my-action. Here's a real one from the 
floating chat:

/direct/sfc-message/803ec9d8-6798-402d-9702-13b201627e54/online.json

Just to avoid confusion ...

On 11/01/2011 12:29, Adrian Fish wrote:
> Hi Tania,
>
> If you set the action attribute of the form to the EB url (eg: 
> /direct/my-service/my-action) it should send the parameters through to 
> the Map<String,Object> params argument in the custom action method. In 
> other words Wicket's form handling isn't involved at all.
>
> Does the custom action return anything other than a success code?
>
> Cheers,
> Adrian.
>
> On 11/01/2011 11:57, Tania Tritean wrote:
>>
>> Hello,
>>
>> I need to call a EntityCustomAction from a wicket tool. Can anybody 
>> please tell me how can I do that?
>>
>> In the tool I have a page, on the submit button of the form from that 
>> page I want to call the method annotated with EntityCustomAction.
>>
>> The method can throw different exceptions that I need to handle in UI.
>>
>>  Is there a 'rest client' in sakai that I can use for this with wicket?
>>
>> Thanks in advance,
>>
>> Tania
>>
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email tosakai-dev-unsubscribe at collab.sakaiproject.org  with a subject of "unsubscribe"
>
> -- 
> ==================================
> Adrian Fish
> Software Engineer
> Centre for e-Science
> Bowland Tower South C Floor
> Lancaster University
> Lancaster
> LA1 4YW
> email:a.fish at lancaster.ac.uk
>
> http://confluence.sakaiproject.org/display/YAFT/Yaft
> http://confluence.sakaiproject.org/display/CLOG/Home
> http://confluence.sakaiproject.org/display/BBB/Home
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-- 
==================================
Adrian Fish
Software Engineer
Centre for e-Science
Bowland Tower South C Floor
Lancaster University
Lancaster
LA1 4YW
email: a.fish at lancaster.ac.uk

http://confluence.sakaiproject.org/display/YAFT/Yaft
http://confluence.sakaiproject.org/display/CLOG/Home
http://confluence.sakaiproject.org/display/BBB/Home

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110111/4ebf11b9/attachment.html 


More information about the sakai-dev mailing list