Thank you so much for the response, that was very helpful.
So, I've got half of the equation figured out but now, I have the issue of how
to generate a URL that call a component that allows for a straight HTML
response.
Here is the issue now:
Component someMadeUpAjaxComponent = ... {
1) Is there a component (the someMadeUpAjaxComponent) that I can get a URL
for which will trigger the onClick method
http://wicket.apache.org/docs/1.4/org/apache/wicket/IRequestTarget.html
http://wicket.apache.org/docs/1.4/org/apache/wicket/behavior/AbstractAjaxBehavior.html#getCallbackUrl%28%29
So, it is looking like I could do something like this:
LinkString link = new AjaxLinkString(componentId, new
ModelString(View Details)) {
@Override
public void onClick(AjaxRequestTarget target) {
String resultHTML = convertPanelToHTML();
1) I just want to return straight HTML (not contents within the
ajax-response node)
return to where? to broser?
target.appendjavascript(document.body.innerHTML = '+resultHTML);
how I could show a dynamic tooltip with data retrieved using ajax?
search this list for how to generate emails with wicket. there are a bunch
of posts of that sort. that will teach you how to render a component to a
string. this could be used to return the contents.
--
Jeremy Thomerson
http://www.wickettraining.com
On Wed, Sep 30, 2009 at 8:10 PM, Joe