Hi Stefan: I believe there is one feasible way to do this with JSF:
To write an XForms set of components. If you render to XForms instead of XHTML, etc., XForms can be used as the "intermediate" language. XForms is generic enough that rendering a thin-client or thick client from it is reasonable (I've done this part before). What I like about JSF (and MyJSF in particular) is the elegant approach to producing the output markup language. The only difference would be that we'd need to figure out how to transform the event model as well as the presentation because the nature of events (navigation, etc.) in a thick client is quite different than a thin client. There is something called XForms Events so that would probably work. "How" to do this is fairly obvious to me. The problem is that it's a fairly big job and that, as you have mentioned, building it from scratch for any one project is out of the question... however, it would make a great open source project. Reza -----Original Message----- From: Stefan Langer [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 1:17 AM To: MyFaces Discussion Subject: Re: JSF to JFC Hello, I tried something like that a while ago (pre JSF), but we stopped doing it. Problem back then was we needed to setup our own layout and widget language (used a custom xml dialect) which resultet in a lot of parsing of xml and we had to develope most components from scratch. IMHO you have to get away from your jsp pages or else you need to parse your html and transform it into a layout for your swing app. Anything else will produce a gui you won't be happy with. (And this is just one of many problems) BTW we stopped the whole thing because it would have cost us too much time. It's easier to provide the two different presentation layers and use same backend logic. If you find a feasable solution be sure to report it as I'm interested on how they solved the problems we encountered. Regards Stefan