I guess the simplest way is to encode the property you want in the
AJAX callback URL.
e.g.
someComponent.add(new AjaxEventBehavior("someEvent")
{
protected void onEvent(AjaxRequestTarget target)
{
String encodedPropertyValue =
getRequest().getQueryParameters().getParameterValue("parameter").toString();
}
public CharSequence getCallbackUrl()
{
return super.getCallbackUrl() + "¶meter='+Wicket.$(\"" +
someComponent.getMarkupId() + "\").someProperty+'";
}
});
On Wed, Jul 27, 2011 at 11:57 AM, accord <[email protected]> wrote:
> Hi,
>
> For example, i did something with my div by javascripts and changed it's
> width, height, left, top or others attributes.
> So, how can i get this values in wicket : width=x .. ? for example by click
> button or when it's some event come: onmouseup, but the event not of this
> div, the event from some other component.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-can-i-get-inline-styles-of-div-in-runtime-tp3698773p3698773.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]
>
>
--
Pedro Henrique Oliveira dos Santos
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]