Regarding nested multipart modal dialog

2016-05-19 Thread Rakesh A
Hi, I observed that when I've a nested (second level) dialog with multipart form in it, after submitting this form, first level dialog form submit results a multipart form submit instead of normal form submit. I've attached a quick start to reproduce this. Steps: 1. Click the link on home page

Re: Jqueryui tabs on dialog

2016-05-19 Thread Maxim Solodovnik
find out resolution myself sorry for the noise, I shouldn't send emails in the middle of the night :(( On Fri, May 20, 2016 at 12:07 AM, Maxim Solodovnik wrote: > Hello Sebastien, > > I'm trying to add tabs to form dialog > > I'm add behavior to the constructor: > add(new

Wicket 7 + JEE 7 + wicket-cdi-1.1

2016-05-19 Thread David Beer
Hi All I am trying to integrate CDI and EJB with wicket 7. I am running the latest release so 7.3.0 etc and wicket-cdi-1.1. I am having to use Noncontextual.of().inject(this) for some resource however when I run the application I am getting the following error. 23:18:58,632 INFO

Re: Wicket Validation

2016-05-19 Thread Lon Varscsak
Ah cool, I’ll give that a whirl. -Lon On Thu, May 19, 2016 at 9:55 AM, Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > IComponentAssignedModel? > > On Thu, May 19, 2016 at 6:52 PM, Lon Varscsak > wrote: > > > Hey Sven, I considered this, but realized that

Jqueryui tabs on dialog

2016-05-19 Thread Maxim Solodovnik
Hello Sebastien, I'm trying to add tabs to form dialog I'm add behavior to the constructor: add(new JQueryUIBehavior("#tabs", "tabs")); I'm adding JS code to onOpen handler handler.appendJavaScript("$('#tabs').tabs();"); no luck :( no tabs being displayed :( What am I doing wrong? -- WBR

Re: Wicket Validation

2016-05-19 Thread Ernesto Reinaldo Barreiro
IComponentAssignedModel? On Thu, May 19, 2016 at 6:52 PM, Lon Varscsak wrote: > Hey Sven, I considered this, but realized that models don’t have access to > the component, so I wasn’t sure how I would report the errors. Any tips > would be appreciated. > > -Lon > > On

Re: Wicket Validation

2016-05-19 Thread Lon Varscsak
Hey Martin, well the exception is being thrown during the form submit processing, but it just ends up as a big error on the page. On Thu, May 19, 2016 at 12:00 AM, Martin Grigorov wrote: > Hi, > > Wicket cares about validation errors only during form submit processing. >

Re: Wicket Validation

2016-05-19 Thread Lon Varscsak
Hey Sven, I considered this, but realized that models don’t have access to the component, so I wasn’t sure how I would report the errors. Any tips would be appreciated. -Lon On Thu, May 19, 2016 at 7:08 AM, Sven Meier wrote: > Hi, > > you could use a custom model wrapper

Re: Wicket Validation

2016-05-19 Thread Sven Meier
Hi, you could use a custom model wrapper catching your exceptions and reporting them as error messages. Have fun Sven On 19.05.2016 00:23, Lon Varscsak wrote: Hey guys, I have some business logic where when the set method is called, it first validates the value. In finding a “bad” value,

Re: StringResourceModel - setParameters - ConverterLocator

2016-05-19 Thread Sven Meier
Hi, for parameters StringResourceModel uses Java's MessageFormat (which does its own conversion). All properties interpolated from an optional nested model are properly converted by Wicket: new StringResourceModel("foo.bar", nestedModel); Have fun Sven On 19.05.2016 10:45, Marieke

Re: AjaxSubmitLink + setResponsePage = feedback message problem on new page

2016-05-19 Thread Sebastien
> but I am not getting feedback message when there is some error. In case of a redirection, you need to notify the message to the session, not to the page/component. ie: Session.get().warn(message); On Thu, May 19, 2016 at 11:04 AM, Martin Grigorov wrote: > Hi, > > If

Re: Append to POST parameters from URL onError

2016-05-19 Thread Samu Viitanen
What I mean is that if by some way a hacker snatches my POST request and the POSTDATA is encrypted, they could still insert malicious data to the form from URL if the form fields contain an error. The chances of an attack here are very slim but existent. I cannot use cryptomapper due to our

Re: AjaxSubmitLink + setResponsePage = feedback message problem on new page

2016-05-19 Thread Martin Grigorov
Hi, If you use AjaxLink then you don't submit any data. You may try AjaxSubmitLink instead. Please give more information about "but setResponsePage is not working". Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, May 19, 2016 at 10:11 AM, Sarang

Re: AjaxSubmitLink + setResponsePage = feedback message problem on new page

2016-05-19 Thread Sarang
Hello Josh, I am stuck in similar situation only. When I hit on the link, I want to show feedback message if there are some mandatory fields unfilled otherwise I want to redirect using setResponsePage. If i use AjaxLink then I get feedback message properly but setResponsePage is not working. When

Re: StringResourceModel - setParameters - ConverterLocator

2016-05-19 Thread Marieke Vandamme
Hi, Really? Isn't that something that should be managed by wicket? I thought this was going to be default behavior, so maybe other people will also think that.. Should I create a jira change request for this? 2016-05-19 10:41 GMT+02:00 Martin Grigorov : > Hi, > > You will

Re: StringResourceModel - setParameters - ConverterLocator

2016-05-19 Thread Martin Grigorov
Hi, You will have to do it yourself. The converters are used only by the components. In your case I guess you'll have to do something like: String converted = converterLocator.get(Double.class).convert(1.2d) new StringResourceModel("MYLABEL").setParameters(converted). Martin Grigorov Wicket

StringResourceModel - setParameters - ConverterLocator

2016-05-19 Thread Marieke Vandamme
​Dear, I use the new method within Wicket 7 (​currently using 7.3.0) : new StringResourceModel("MYLABEL").setParameters(new double(1.2)). Also in my application I have a ConverterLocator defined, which converts doubles. But I don't think this conversion is used within my StringResourceModel. Is

Re: FormTester and IModel

2016-05-19 Thread Martin Grigorov
Sorry, but your email is hardly readable. You may use some pastebin service for the code. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, May 19, 2016 at 10:13 AM, Hans-Heinrich Braun < hansheinrichbr...@yahoo.de.invalid> wrote: > I tested a little bit but

FormTester and IModel

2016-05-19 Thread Hans-Heinrich Braun
I tested a little bit but the reason is not so obviousthere is a series of DropDowbFields where each sets the choices for the next protected IModel selectedLand=new EntityModel(Land.class,null); protected IModel selectedOrt=new EntityModel(Orte.class,null);; protected IModel

Re: Append to POST parameters from URL onError

2016-05-19 Thread Martin Grigorov
Hi, No one else answered your email and I guess they have the same problem as me - I don't really understand the problem you describe. You submit some form. Then you _intercept_ the request somehow and you append some extra data. And finally your concern is that there is extra data. What I

Re: Wicket Validation

2016-05-19 Thread Martin Grigorov
Hi, Wicket cares about validation errors only during form submit processing. In your case you could throw ConversionException during the 'convertInput' phase. I.e. in the beginning of the form submit processing Wicket will try to convert the String input to the backend object (e.g. a String to

Re: FormTester and IModel

2016-05-19 Thread Martin Grigorov
Hi, Show us some code please! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, May 19, 2016 at 4:19 AM, hansheinrichbraun < hansheinrichbr...@yahoo.de.invalid> wrote: > > i use forms with DropDownChoices with fields which are IModel. When i test > in real