> -----Original Message----- > From: Kostas Karadamoglou [mailto:[EMAIL PROTECTED] > Subject: Re: Design Question: JSF and XSLT > I want the response of the JSF to include a header, a left > panel and a right panel that contain dynamic content (for > instance, jsf tags). > So I want the generated html of the xsl to the center area of > the jsf response. > Is it possible to use xslt on the client side and put the > generated html script in an area of the response html ?
You could use Tiles with your own customized ViewHandler or SiteMesh. JSF doesn't offer anything for XSLT. Looks like SiteMesh would be the best approach as then you could do the XSL transformation in a filter, which is a common pattern. Kalle > > Heath Borders wrote: > > > I'm not sure I understand your question entirely, so let me > see if I > > can better understand what you're trying to do: > > > > First, you have the exams stored in xml files. > > Then, you want to transform them into html using XSLT. > > > > That part is easy to understand. My first criticism is that for > > advanced browsers IE 5.5+, Mozilla, XSLT can be done on the > client, so > > you really wouldn't need to do any of the transformation on > the server. > > > > However, if you are dead-set on doing the transformation on the > > server, then I'm guessing that your question is how do you get the > > transformed HTML String that the XSLT produced into your > JSF document? > > > > Just use an <h:outputText /> with a ValueBinding to a > property on your > > request bean that behind the scenes does the XSLT > transformation and > > returns a String. Make sure that you have escape="false" > set so that > > the output is not escaped. > > > > If this is _all_ that the page does, JSF might be overkill for you. > > > > > > On Apr 5, 2005 2:52 PM, *Kostas Karadamoglou* > <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > I am planning to use JSF with XSL Transformations. What > I want to > > do is > > the following: > > > > I have defined paper exams in xml documents. I want to > allow users to > > access paper exams by searching by date, course etc. > > > > When the user selects a specified paper JSF should > transform the paper > > (xml) to html utilizing XSLT. > > > > As far I am able transform a xml document and I can > hold the html > > script > > in a string variable. > > > > How can I paste this html script in the response JSF? > > > > Thank you in advance, Kostas > > > > > > > > > > -- > > -Heath Borders-Wing > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >

