how to use user generated theme in ftl
kartoffelsack <[email protected]> Tue, 30 Oct 2007 09:57:39 CDT
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <32753490.1193756289542.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
created my own theme with own tag (stepcontrol).
While I can use this tag using the verbos 's.component'-way, I cannot use it directly as tag
when
<#assign page=JspTaglibs["http://www.opensymphony.com/sitemesh/page"]>
<#assign s=JspTaglibs["/struts-tags"]>
<#import "/template/qxhtml/stepcontrol.ftl" as x>
<html>
<head/>
<body>
<@s.form action="Welcome" namespace="/oaccman">
<!-- it works when addressing stepcontrol as a component>
<@s.component template="stepcontrol.ftl">
<@s.param name="cancel_img" value="%{'../images/cancel.png'}" />
<@s.param name="ok_img" value="%{'../images/right.png'}" />
</@s.component>
<!-- following line leeds to an error: s.stepcontrol not found -->
<@x.stepcontrol cancel_img='../images/cancel.png' ok_img='../images/cancel.png'/>
</@s.form>
</body>
</html>
What do I have to do to access user defined tags in my theme directly?
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=150290&messageID=222974#222974