开发者

XSLT to ICEFaces markup

开发者 https://www.devze.com 2023-02-14 03:03 出处:网络
Is it possible to apply an XSLT to an XML document and generate markup that is processed by JSF/ICEFaces?

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:comman开发者_如何转开发dButton 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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号