On 1/27/06, Raluca Iordache <[EMAIL PROTECTED]> wrote:
> Hi!
>
> I am using the XsltTransfomerBehavior (nice feature!) on Panel and on
> Border. First I tried to use it on a ListView (in API it is written that it
> can be added to ANY component) but it did not work, because the String that
> should contain the markup of the component is not correct. In debugger I see
> that in XsltTransformerBehavior.transform(component, response.toString())
> the response is for a ListView a BufferedWebResponse and response.toString()
> is clearly not correct.

Well, it is ok. It has something to do with request redirects. But it
should work. The issue something else, see below

>For Panel & Border it is ok, because the response is
> a StringResponse. Works XsltTransfomerBehavior only on components that have
> their own associated markup file (Panel / Border) ?

No, it actually works for any component except ListView because of the
way ListView handles its markup (repeat it for each ListItem). To
transform a ListViews output you must enclose it in a <span> like

<span wicket:id="myDummyContainer>
  <table ..> .. <tr wicket:id="myList"...>...</tr> ..</table>
</span>

and attach the behaviour to the WebMarkupContainer (myDummyContainer)
or use the XsltTransformerContainer.

Juergen

>
> Best wishes,
> Raluca
>
>
>
>
> -------------------------------------------------------
> 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> 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://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to