[ 
https://issues.apache.org/jira/browse/WOOKIE-28?page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#action_10907
 ]

Ross Gardler logged work on WOOKIE-28:
--------------------------------------

                Author: Ross Gardler
            Created on: 13/Sep/09 02:34 PM
            Start Date: 13/Sep/09 02:32 PM
    Worklog Time Spent: 0.75h 
      Work Description: When retrieving an instance from the UI the request is 
handled by:

WidgetInstancesController.doGetWidget(request, response);

With the form data found in instantiate.jsp

This method appears to either retrieve or instantiate a widget instance. The 
returned XML doc is created by

WidgetInstanceController.formatReturnDoc(...)

>From this method we can see how to create the necesary HTML to preview a 
>widget.

The code, as it currently stands, appears to require a HTTPRequest for a widget 
instance to be retrieved. I can't see any quick and easy way of getting the 
necessary values to retrieve an instance without submitting such a request.

We probably need to have a specific URL for retrieving a demo instance of a 
widget. This instance will be created when the widget is first uploaded to the 
server so we are assured that it is always available.

Issue Time Tracking
-------------------

            Time Spent: 1.25h  (was: 0.5h)
    Remaining Estimate: 3.75h  (was: 4.5h)

> Preview widgets within server application
> -----------------------------------------
>
>                 Key: WOOKIE-28
>                 URL: https://issues.apache.org/jira/browse/WOOKIE-28
>             Project: Wookie
>          Issue Type: Improvement
>            Reporter: Ross Gardler
>   Original Estimate: 5h
>          Time Spent: 1.25h
>  Remaining Estimate: 3.75h
>
> When deploying a new widget to the server we need a quick way of testing it. 
> Perhaps the best approach would be to have a link from the widget gallery to 
> a demo instance of the widget.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to