Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread PaulH98
McIlwee, Craig wrote: > > Didn't think of that approach, looks good. But to clear up my previous > suggestion since I guess I wasn't clear enough and its useful in other > situations also, you need to _override_ > getAssociatedMarkupStream(boolean), not just call it. > > public static final S

Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread PaulH98
Anton Veretennikov wrote: > > For example I use this markup: > > > > and associate it with simple class: > > public class FocusScript extends Label { > > public FocusScript(String id, String focusFieldMarkupId, boolean > selectAll) { > super(id, getFocusScript(focusFieldMarkupId, sel

RE: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread PaulH98
Fatih Mehmet UCAR wrote: > > Add a div to your page like below: > > > > Insert title here > > > > > > > > Thanks Fatih, Indeed, I had "" in my test page, but somehow deleted it when posting my previous message. The same problem persists. -- View this message in context:

Re: how to inject arbitrary javascript code to a component markup?

2009-10-10 Thread PaulH98
McIlwee, Craig wrote: > > If your component is a MarkupContainer you can override > getAssociatedMarkupStream(boolean) and build the markup on the fly. So > maybe still have the HTML file that you read in as a template with some > place holder string and in the override you replace the place h

Re: Client-side treeView

2009-10-07 Thread PaulH98
Michael O'Cleirigh wrote: > > Hi Paul, > > Most of the wicket + javascript integrations in wicket-stuff > (http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki) will show how > communication between wicket and javascript can work. They can get a > little messy but once implemented are

Re: Client-side treeView

2009-10-07 Thread PaulH98
jWeekend wrote: > > Paul, > > Take a look at Alastair's presenttaion called something like "A Drag And > Drop List Editor" [1] and the accompanying source code. > > I don't think we have a tree publicly available yet in WiQuery [2] but for > sure you should get some good ideas there even if

Re: Client-side treeView

2009-10-06 Thread PaulH98
Michael O'Cleirigh wrote: > > Hi Paul, > > What I would do would be to find a javascript implementation that does > what you want and then have the selection events fill in a hidden field > which will then be available on the server side when the form is > posted. This would be similar to