Some examples here for 6.0:
https://cwiki.apache.org/WICKET/calling-wicket-from-javascript.html

On Fri, Feb 1, 2013 at 11:27 AM, Martin Grigorov <[email protected]>wrote:

> wicketGet -> Wicket.get() (or Wicket.$())
>
> For Wicket 6 all such small methods were moved into Wicket.** namespace.
> There is a table with the old -> new names in the migration guide for Ajax.
>
>
> On Fri, Feb 1, 2013 at 5:08 PM, saty <[email protected]> wrote:
>
> > trying to use this example from
> > org.apache.wicket.extensions.ajax.markup.html.autocomplete
> > Class AbstractAutoCompleteRenderer<T>
> >
> > example 1:
> >
> >  protected CharSequence getOnSelectJavascript(Address address)
> >  {
> >     final StringBuilder js = new StringBuilder();
> >     js.append("wicketGet('street').value ='" + address.getStreet() +
> "';");
> >     js.append("wicketGet('zipcode').value ='" + address.getZipCode() +
> > "';");
> >     js.append("wicketGet('city').value ='" + address.getCity() + "';");
> >     js.append("input"); // <-- do not use return statement here!
> >     return js.toString();
> >  }
> >
> > Am i missing any necessary java script imports?
> >
> > Thanks
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-wicket.1842946.n4.nabble.com/ReferenceError-wicketGet-is-not-defined-tp4655998.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
>

Reply via email to