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 how
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 you don't
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
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
Fatih Mehmet UCAR wrote:
Add a div to your page like below:
html
head
meta http-equiv=Content-Type content=text/html;
charset=ISO-8859-1 titleInsert title here/title /head
body
div wicket:id=csp/div
/body
/html
Thanks Fatih, Indeed, I had div wicket:id=csp/div in
Anton Veretennikov wrote:
For example I use this markup:
script wicket:id=focusScript/script
and associate it with simple class:
public class FocusScript extends Label {
public FocusScript(String id, String focusFieldMarkupId, boolean
selectAll) {
super(id,
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 String