RE: is it possible to somehow create a url to return the contents of a panel

2009-10-01 Thread Joe Hudson
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 = ... {

Re: is it possible to somehow create a url to return the contents of a panel

2009-10-01 Thread Pedro Santos
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

RE: is it possible to somehow create a url to return the contents of a panel

2009-10-01 Thread Joe Hudson
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();

Re: is it possible to somehow create a url to return the contents of a panel

2009-10-01 Thread Pedro Santos
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?

Re: is it possible to somehow create a url to return the contents of a panel

2009-09-30 Thread Jeremy Thomerson
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