this is not true, when i made the change to outerhtml i also made a change to the request target. it now no longer renders only the body, but the full component.

in fact i added a check to make sure setrenderbodyonly==false on any component that you rerender via ajax:

AjaxRequestTarget:228
    if (component.getRenderBodyOnly() == true)
        {
            throw new IllegalStateException(
                    "Ajax render cannot be called on component that has setRenderBodyOnly enabled. Component: "
                            + component.toString());
        }


-Igor


On 3/20/06, Matej Knopp < [EMAIL PROTECTED]> wrote:
AjaxRequestTarget renders only the body of component. That was fine,
because it was replaced by innerHtml, so only the content of tag was
changed. But in current beta, wicket ajax _javascript_ replaces component
with outerHtml, but still only body of component is generated by
AjaxRequestTarget. And on _javascript_ side, the whole tag is replaced.

This way, each component can be replaced only once.

So the solution would be perhaps not to call setRenderBodyOnly in
AjaxRequestTarget (or switch back to innerHtml).

-Matej

Matej Knopp wrote:
> Again, I didn't express correctly. I don't call this on label.
> AjaxRequestTarget does.
>
> -Matej
>
> Johan Compagner wrote:
>> but if you use setRenderBodyOnly(true) on a label
>> how can you target it for a ajax update at the first place?
>>
>>
>> On 3/20/06, *Matej Knopp* < [EMAIL PROTECTED] <mailto: [EMAIL PROTECTED]>>
>> wrote:
>>
>>     Sorry, my bad.
>>
>>     setRenderBodyOnly, not setStripWicketTags.
>>
>>     the problem is for example having
>>     <span id="abcd">
>>       Span body
>>     </span>
>>
>>     the entire tag is replaced by new span body, but without the tags
>> with
>>     id, e.g.
>>
>>       New span body
>>
>>     (tags and id is missing, because it's replaced through outerHtml, not
>>     innerHtml)
>>
>>     Vaynberg wrote:
>>      > what exactly is the problem? ajax requests use the same settings,
>>     so if
>>      > you have stripwickettags=false both full and ajax renders should
>>     act the
>>      > same.
>>      >
>>      > -Igor
>>      >
>>      >
>>      > On 3/19/06, * Matej Knopp* <[EMAIL PROTECTED]
>>     <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
>>     <mailto:[EMAIL PROTECTED] >>> wrote:
>>      >
>>      >     Hi, there seems to be a serious problem with beta 2.
>>      >
>>      >     _javascript_ replaces components with outerHtml, but they are
>>     rendered
>>      >     with setStripWicketTags(true), which causes severe problems.
>>      >
>>      >     Or am I missing something?
>>      >
>>      >     -Matej
>>      >
>>      >
>>      >     -------------------------------------------------------
>>      >     This SF.Net email is sponsored by xPML, a groundbreaking
>>     scripting
>>      >     language
>>      >     that extends applications into web and mobile media. Attend
>>     the live
>>      >     webcast
>>      >     and join the prime developer group breaking into this new
>> coding
>>      >     territory!
>>      >
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>>
>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
>>
>>      >     <
>>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>>
>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>>
>>
>>      >     _______________________________________________
>>      >     Wicket-user mailing list
>>      >     [email protected]
>>     <mailto:[email protected]>
>>      >     <mailto:[email protected]
>>     <mailto:[email protected]>>
>>      >     https://lists.sourceforge.net/lists/listinfo/wicket-user
>>      >     <https://lists.sourceforge.net/lists/listinfo/wicket-user>
>>      >
>>      >
>>
>>
>>
>>     -------------------------------------------------------
>>     This SF.Net email is sponsored by xPML, a groundbreaking scripting
>>     language
>>     that extends applications into web and mobile media. Attend the live
>>     webcast
>>     and join the prime developer group breaking into this new coding
>>     territory!
>>
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>>
>> <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
>>
>>     _______________________________________________
>>     Wicket-user mailing list
>>     [email protected]
>>     <mailto: [email protected]>
>>     https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live
> webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to