On Tue, Oct 12, 2010 at 10:30 AM, Sanjaya Vithanagama <[email protected]>wrote:

> Hi All,
>
> In human task implementation we came across a requirement to deploy user
> uploaded custom jsps. We tried to use the webapp management feature in
> carbon. But as the uploaded war files are deployed in a different
> application context, we are unable to include the jsps in Cabon context. We
> need a change in the carbon UI framework to support loading of external jsp
> pages.
>
> Carbon UI bundle's JspServlet class loads jsp files based on the resource
> name [in getResource() method]. Currently it tries to resolve the resource
> bundle using the resource path and then loads the jsp from the particular
> bundle. Sameera suggested that we can have a list of jsp providers where
> they implement a common interface. So if a bundle cannot be resolved for a
> particular jsp page (which is the case for a user uploaded jsp), we check
> whether there are any implementers of this provider interface. If there are
> any, the jsp's URL can be retrieved from that provider.
>
> Feedback appreciated on this approach.
>

Yeah. At the moment, we load UI resources only from bundles. Here the idea
is to introduce UIResourceProviders concept to our UI framework. The default
UIResourceProvider loads resources from bundles. But others can write their
own providers also. i.e. loading resources from the file system, registry.

I will update UI framework to support different UIResourceProviders Others
can register their UIResourceProviders as OSGi services.

WDYT?

Thanks
Sameera

>
> Regards,
> SanjayaV.
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Sameera Jayasoma
Technical Lead and Product Manager, WSO2 Carbon

WSO2, Inc. (http://wso2.com)
email: [email protected]
blog: http://tech.jayasoma.org

Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to