shh, of course. The response shouldn't just be the panel - it should be an entire Page! That makes sense.

Thanks for your help, I'll keep my progress posted here.

Emergence Dinterstage wrote:
On 12/28/05, R.J. Lorimer <[EMAIL PROTECTED]> wrote:
ComponentRequestTarget re-renders components which have already been
rendered during the full page render. We only recently fixed a bug to
allow Panel children to be re-rendered as well. Because you are
re-rendering a Panel that bug should not affect you, but because of
the change I'd still suggest to use cvs head.

This may be part of my problem - the component being passed in to the
handler has never been rendered before - part of the advantage of using
an additional click/AJAX is that I don't have to do the extra query
until the user asks for it. I was trying to achieve that by creating a
component that would be rendered for the first time when the AJAX
request was complete.

where is the components markup you try to render?

The core problem is that I have never rendered the component before, I
think. Is there a way to achieve this?

In order to render a Component it (the root component; not its
children) must know its associated markup. And the only way to achieve
it is to render the whole page first. To clarify it a little bit more.
You'll find a labels markup somewhere with a panel, border or page
markup file. To render this label the associated markup stream
position is required, which gets assigned during a page render phase.

Effectively, I want to send the
HTML result of my component render to the user on an AJAX bind call.

Ok, the response is XML and it has never been rendered before.
Actually it is like a page request which returns XML instead of HTML.
It is not a component re-render, it is whole new request.
Create a new Page, override MarkupContainer.getMarkupType() (see
src/test ... XmlPage) create whatever XML response is required.

Perhaps I am missing some of the puzzle for using deferred AJAX calls
using the AjaxHandler. I dug through the contrib-dojo stuff - and the
only one that handles a callback completely is the Validation stuff, and
it simply returns a valid/invalid plain text mime-type result.


-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
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_id=7637&alloc_id=16865&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to