|
|
|
[
Permlink
| « Hide
]
Dick Anderson - 04/Apr/09 01:19 PM
Patch supplied by Nathan from Eonic
The most appropriate approach would be for the portlet to select a render handler from the factory based on the mime type passed in its request. This can be placed into the quote's context and invoked by each UI element which needs to render.
This has the advantage of separating the mime-type specific code completely from the page elements themselves, and provides an very simple means of extending the portlet to support new mime types in future. New Renderers added for HTML and XForms:
openquote.ear/lib/openquote.jar/com/ail/openquote/render/Html.java openquote.ear/lib/openquote.jar/com/ail/openquote/render/XForm.java Configuration set such that requests with a mime type of text/xml are directed to the XForm handler, and text/html requests are directed to the Html handler. At this stage the XForms handler is simply a stub; the Html handler is ~20% complete. More to follow... |
||||||||||||||||||||||||||||||||||||||||||||||