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.

The core problem is that I have never rendered the component before, I think. Is there a way to achieve this? Effectively, I want to send the HTML result of my component render to the user on an AJAX bind call.

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.

Because ListItems can always be re-created on the fly, they are
removed by default for memory efficiency (and cluster bandwidth)
reasons. Hence attaching the handler to a ListItem which than gets
removed (and rebuild without your handler) might cause the exception.
ListView.setOptimizedItemRemoval(true) avoids the list item removal.
That's good to remember, although I don't necessarily think I have to have it bound to the list item; it could be bound to almost anything. The model will be detachable anyway.

Sorry, but that is all that comes into my mind. In case you don't find
a solution, send us the (stripped down) source code and we try to find
the problem.

Juergen


-------------------------------------------------------
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