You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Martin Naskovski <mn...@san.rr.com> on 2003/09/20 06:18:17 UTC

Re[2]: JSF and rich clients (non-HTML)

Thanks Craig.


Friday, September 19, 2003, 6:33:29 PM, you wrote:

CRM> On Fri, 19 Sep 2003, Martin Naskovski wrote:
>>

CRM> You might want to download and play with it yourself :-).  It's packaged
CRM> in the Java Web Services Developer Pack, version 1.2:

CRM>   http://java.sun.com/webservices/

CRM> and there's a tutorial included.

CRM> JavaServer Faces does indeed support non-HTML output.  It separates the
CRM> concerns into a component (which has render-INdependent properties) and a
CRM> renderer that recognizes render-DEpendent attributes.  For example, the
CRM> generic component for user-invokable actions is called UICommand, with
CRM> properties like a reference to the server-side Action to be invoked if the
CRM> user activates this component.  The standard HTML renderkit includes two
CRM> renderers for UICommand:  "Button" and "Hyperlink" that each recognize the
CRM> set of attributes relevant for the corresponding HTML element.

CRM> Out of the box, there is a set of standard renderers for HTML that are
CRM> guaranteed to be portable to any implementation of JavaServer Faces,
CRM> because this is a very common use case.  But it's by no means the only
CRM> possibility.  At JavaOne, for example, I gave half of a session where we
CRM> built a renderkit that output SVG, so you could take advantage of all the
CRM> neat interactivity that SVG supports.  We used the same demo application
CRM> that comes with JavaServer Faces for HTM (CarDemo), and only had to switch
CRM> to the tag library for the SVG renderers and tweak a few attributes.  All
CRM> the back-end logic stayed the same.

CRM> In a similar way, you can interact with components at the Java API level
CRM> (they're basically glorified JavaBeans), or with JSP tags -- JSP is not
CRM> required, although it is supported out of the box for the standard HTML
CRM> renderers.




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org