Loading content of IFrames only when displayed

2013-10-17 Thread Christian Schröter
Hello, I'm using the InlineFrame class to display an IFrame. Now the IFrame is added in a dialog prompt, which is not visible by default. The user has to click a certain link to see the IFrame in the dialog prompt. Unfortunately the browser loads the URL defined in the source attribute, no

AW: Loading content of IFrames only when displayed

2013-10-24 Thread Christian Schröter
. On Thu, Oct 17, 2013 at 5:29 PM, Christian Schröter christian.schroe...@1und1.de wrote: Hello, I'm using the InlineFrame class to display an IFrame. Now the IFrame is added in a dialog prompt, which is not visible by default. The user has to click a certain link to see the IFrame

AW: Link

2013-11-11 Thread Christian Schröter
Hey, For a simple solution just overwrite onComponentTag(). But I think there a already complete components addressing this issue. @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); if

Behavior and property files

2014-06-23 Thread Christian Schröter
Hi, I would like to build a self-contained Behavior including some translations (property files). All I can think of is doing something like this within the behavior class: @Override public void bind(Component c) { c.getString(„key“); } Unfortunately this is anything but a

Re: Behavior and property files

2014-06-23 Thread Christian Schröter
to Application.get().getResourceSettings().getLocalizer().getString() methods. Martin Grigorov Wicket Training and Consulting On Mon, Jun 23, 2014 at 5:55 PM, Christian Schröter christian.schroe...@1und1.de wrote: Hi, I would like to build a self-contained Behavior including some translations

AjaxEventBehavior and arguments

2014-08-12 Thread Christian Schröter
Hey everyone, I'm having diffculties to find a solution for a common issue, at least in my opinion ^^ Hopefully someone can help me. I'm using a third party JS libary. This lib fires custom events. $('#id').on('customEvent', function(event, data) {...}); In Wicket I would like to add a

Re: AjaxEventBehavior and arguments

2014-08-13 Thread Christian Schröter
}]); } @Override public void onEvent(AjaxRequestTarget target) { StringValue valueValue = getRequest().getRequestParameters().getParameterValue(value); } } On Wed, Aug 13, 2014 at 1:07 AM, Christian Schröter christian.schroe...@1und1.de wrote: Hey everyone, I'm having diffculties

Re: Ajax: listening to specic event in custom

2014-08-22 Thread Christian Schröter
You can listen to a custom event. Just add an new AjaxEventBehavior(‚hidden.bs.modal“) {…}; If you are working closely with Bootstrap I recommend to have a look at https://github.com/l0rdn1kk0n/wicket-bootstrap Cheers, Chris Am 22.08.2014 um 15:46 schrieb lucast

Re: Internationalized Validators

2015-01-26 Thread Christian Schröter
. Integer.parseInt(getString(maxvalue)); kind regards Tobias Am 26.01.2015 um 11:01 schrieb Christian Schröter christian.schroe...@1und1.de: Hey, I would be interested to know if there is a builtin mechanism to add specific validators for a certain locale. For example: de_DE

Internationalized Validators

2015-01-26 Thread Christian Schröter
Hey, I would be interested to know if there is a builtin mechanism to add specific validators for a certain locale. For example: de_DE - StringValidator.maximumLength(100) en_GB - StringValidator.maximumLength(200); en_US - StringValidator.maximumLength(200); AnotherValidatorOnlyForUS(); My