Hi everyone,

We have a requirement from the OMELETTE project to add widgets to the page 
without the user having to refresh the page - for example for a "page helper" 
widget to find and then add a widget to the page for the user. (see RAVE-743). 

The basic approach would seem to be adding an RPC method for adding a widget to 
the page and then rendering it in the page. So, e.g. 
rave.api.rpc.addWidgetToPageAndRender.

I've looked into the requirements for this, and what I'm currently stuck 
against is the use of JSP tags to render the widget "chrome"; this isn't 
accessible from the client side so its not really possible at the moment to add 
a widget to the page without a page refresh.

One possibility is to move the region_widget.tag code into client-side JS 
templating. However, there is then an issue with localization. Alternatively, 
the logic could be moved from a JSP tag into a Java class and executed via RPC. 
However, that will make for some really messy code.

Can anyone think of any better solutions for this?

S

Reply via email to