Re: Ajax Error When using File Upload

2017-01-25 Thread David Beer
Hi Martin Thanks for confirming have managed to enable the correct security settings all is working again. Thanks David On 25 January 2017 at 21:17, Martin Grigorov wrote: > Hi David, > > I think it is Spring Security. > Check that the value of X-Frame-Options response

Re: Ajax Error When using File Upload

2017-01-25 Thread Martin Grigorov
Hi David, I think it is Spring Security. Check that the value of X-Frame-Options response header is SAMEORIGIN For more info see https://peteris.rocks/blog/exotic-http-headers/#x-frame-options Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 25, 2017 at

Ajax Error When using File Upload

2017-01-25 Thread David Beer
Hi All I have panel which contains a form for uploading a file using BootstrapFileInput. When I upload the file all is correctly uploaded but I receive this error in Ajax Debug console. *ERROR: * Cannot read Ajax response for multipart form submit: SecurityError: Blocked a frame with origin "

Re: IMarkupCacheKeyProvider getCacheKey

2017-01-25 Thread Entropy
Perfect. Thanks. Brian Mulholland "For every complex problem, there is an answer that is clear, simple and wrong." --H.L. Mencken "Politics is the art of looking for trouble, finding it everywhere, diagnosing it incorrectly, and applying the wrong remedies." --Groucho Marx On Wed, Jan 25, 2017

Re: Ajax request stopped because of precondition check on CheckGroup

2017-01-25 Thread SeldonCrisis
Ahhh that worked perfectly and was such a simple fix. So now I understand that Check is to be used in a CheckGroup and CheckBox is only useful if used alone. Thank you very much! -- View this message in context:

Re: IMarkupCacheKeyProvider getCacheKey

2017-01-25 Thread Martin Grigorov
Hi, The default impl is org.apache.wicket.markup.DefaultMarkupCacheKeyProvider. So instead of implementing the interface you need to extend from this class and return null or super.getCacheKey(). Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Jan 25, 2017

Re: Ajax request stopped because of precondition check on CheckGroup

2017-01-25 Thread Sven Meier
Hi, you have to use org.apache.wicket.markup.html.form.*Check* inside your CheckGroup, not Checkboxes. Have fun Sven On 25.01.2017 20:35, SeldonCrisis wrote: Hi, I'm trying to implement some *Ajax* on a *CheckGroup* containing two check boxes. The purpose of this Ajax Event is to

Re: Ajax request stopped because of precondition check on CheckGroup

2017-01-25 Thread SeldonCrisis
I suspect it has something to do with the Model object of the CheckGroup cg1? I know it is supposed to be of type Collection. Maybe that's what's causing the precondition check to fail? -- View this message in context:

Ajax request stopped because of precondition check on CheckGroup

2017-01-25 Thread SeldonCrisis
Hi, I'm trying to implement some *Ajax* on a *CheckGroup* containing two check boxes. The purpose of this Ajax Event is to enable/disable a form button depending on whether or not the checkboxes in the CheckGroup are true/false (their models). Unfortunately, I can't get anything in the

IMarkupCacheKeyProvider getCacheKey

2017-01-25 Thread Entropy
I am trying to make Wicket NOT cache html templates, but only based on a certain system property. So if this property is off, no caching, I return null from getCacheKey() and that seems to work great. But, I am not sure what to do when I WANT caching. The method takes a MarkupContainer and