Hi!

Did anybody manage to integrate something like this into wicket ajax
processing:
* http://dropdown-check-list.googlecode.com/svn/trunk/demo.html

I have got it working pretty well WITHOUT AJAX:
  @Override
  public void renderHead(IHeaderResponse response) {
    response.renderCSSReference("/css/multiselectstyle.css");
    response.renderJavascriptReference("/js/jquery.js");
      response.renderJavascriptReference("/js/ui.core.js");
      response.renderJavascriptReference("/js/ui.dropdownchecklist.js");
    String removeFunc;
    String func;
      func = "$(\"#" + getMarkupId() + "\").dropdownchecklist({
firstItemChecksAll: true, maxDropHeight: 100 });";
      removeFunc = "$('#" + getMarkupId() +
"-dropdownchecklist-wrapper').remove(); $('#" + getMarkupId() +
"-dropcontainer-wrapper').remove();";
    response.renderJavascript("$(document).ready(function() {"
        + removeFunc
        + func
        + "});", null);


The idea of the removeFunc is that when ajax update occurs, it would
re-initialize the skin. However, the select ends up naked :)

Without ajax update it works really fine. Could anybody with more
experience on the subject have a look at it? It is just a regular
public class ListMultipleJQueryChoice<T> extends ListMultipleChoice<T>
implements IHeaderContributor with the above renderHead method. So all
the code is here already.

**
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to