On 12/30/05, Jim McLaughlin <[EMAIL PROTECTED]> wrote:
> How to create a component that will transform its xml markup with xslt?
> Looking at wicket-contrib-velocity, the VelocityPanel calls
> replaceComponentTagBody inside of onComponentTagBody. It looks like
> replaceComponentTagBody will skip all the RawMarkup. How can I get it to
> be replaced by the xslt transformation?
>

The same way FreeMarkerPanel.onComponentTagBody works except that you
don't call FreeMarker but you xslt processor.
replaceComponentTagBody(markupStream, openTag, newBody) removes the
body (as you already discovered) and gets replaced by "newBody" (third
parameter).

Could it be this is not your question? Are you asking to xslt
transform the markup being loaded from the markup file. That would be
similar to loading the markup from a database (or any other source you
can think of). Add a IResourceStreamLocator to the
DefaultResourceStreamLocator which is default an accessible through
Application.getResourceStreamLocator(). Or replace
Application.newMarkupResourceStream but than you loose all the default
functionality.

Juergen



> thx,
> jim
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to