Aha! ...the joys of learning Wicket! :-)

On 19/4/2010 10:58 μμ, Pedro Santos wrote:
Your ChoiceRenderer can implement IHeaderContributor and add your javascript
to IHeaderResponse object, since when the user change the value on the
selection component, the page will to be re-rendered

On Mon, Apr 19, 2010 at 4:54 PM, Alexandros Karypidis<akary...@yahoo.gr>wrote:

Hi,

I'm using a<wicket:message>  tags, property files and a ChoiceRenderer to
allow users to switch the Locale. My ChoiceRenderer overrides
wantOnSelectionChangedNotifications() to have the browser send a Locale
change event to the server and when this call returns, all<wicket:message>
content is updated to match the new locale's messages.

This all works fine. However, I also have a "DatePicker" JQueryUI component
component on my page which needs to be adjusted. This is done by having the
browser execute the JavaScript:

<script type='text/javascript'>
                    $(function() {

  $.datepicker.setDefaults($.datepicker.regional['_[LOCALE]_']);
                    });
</script>

Is it possible to have the browser to execute some dynamically-generated
JavaScript using the ChoiceRenderer's onSelectionChanged() event?

Thanks in advance.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to