0

Is it possible to apply an XSLT to an XML document and generate markup that is processed by JSF/ICEFaces?

I need the XSLT to add <ice:commandButton elements and such, since some data elements to render also require related command buttons.

Do you also have some tutorials about XSLT and ICEFaces?

Thank you in advance.

Dimitre Novatchev
  • 240,661
  • 26
  • 293
  • 431
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305

2 Answers2

0

I don't know the exact syntax of ICEFaces but if you want output that is not following XML or HTML syntax rules then disable-output-escaping (in XSLT 1.0 and 2.0) and character maps (in XSLT 2.0) can help. The character maps documentation I linked to has an example to create JSF syntax.

Martin Honnen
  • 160,499
  • 6
  • 90
  • 110
  • What I need is that ICEfaces uses the XSLT output to **render server-side controls**. So an ice:commandButton tag as result of transformation should be processed by server (not sent to client directly) to generate an input tag that will be rendered by the client – usr-local-ΕΨΗΕΛΩΝ Mar 02 '11 at 11:15
0

Yes, it is definitely possible. You just need to create a servlet Filter which runs before the FacesServlet kicks in and takes care that the XSL-generated Facelet file is present there where the FacesServlet expects it. See also this answer for a detailed kickoff example.

Community
  • 1
  • 1
BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555