Re: Embeddable Widgets

2017-06-27 Thread Martin Grigorov
Hi, Check this thread: http://markmail.org/message/b4u7yf3qqsljh7gf Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Jun 27, 2017 at 12:54 PM, vaclav wrote: > Hello, > > is there a easy way how to create components embeddable into

Re: Enable CORS in Wicket Rest

2017-06-27 Thread Martin Grigorov
@Andrea, What about using a IRequestCycleListener that will set the response headers only if the resolved IRequestHandler is from specific type ? Is it easy to detect that this is a REST IRequestHandler ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Jun

Form validation and model objects not getting updated on failure

2017-06-27 Thread Lon Varscsak
Hey there, so I have a form with many textfields all of which have validators on them. In a situation where I’m creating a “new” record, all the fields are blank. I also have a DropDownChoice object with an AjaxFormSubmitBehavior (“change”) attached. If the user clicks “save” prematurely,

Re: Enable CORS in Wicket Rest

2017-06-27 Thread Andrea Del Bene
you can also override onAfterMethodInvoked in your resource class to set the header in a single point of your code. On 27 Jun 2017 18:25, "Maxim Solodovnik" wrote: > You can use CORS in Tomcat: > https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#CORS_Filter >

Re: The day Wicket became Apache Wicket 10 years ago!

2017-06-27 Thread Maxim Solodovnik
Wicket is one of my favorite frameworks Our project wouldn't evolve without it I'm glad to be part of Wicket team :) On Tue, Jun 27, 2017 at 10:42 PM, trlt wrote: > I started with Struts, then Struts2, then Spring MVC, and moved to Wicket > about 6 years ago. This is the most

Re: Enable CORS in Wicket Rest

2017-06-27 Thread Maxim Solodovnik
You can use CORS in Tomcat: https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#CORS_Filter (Maybe there anything similar in other app servers) Or wicket CSRF filter: https://ci.apache.org/projects/wicket/apidocs/7.x/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListener.html

Re: The day Wicket became Apache Wicket 10 years ago!

2017-06-27 Thread trlt
I started with Struts, then Struts2, then Spring MVC, and moved to Wicket about 6 years ago. This is the most enjoyable framework I've worked on. A big thanks to the Wicket community. -- View this message in context:

Embeddable Widgets

2017-06-27 Thread vaclav
Hello, is there a easy way how to create components embeddable into 3rd party pages in Wicket? I want to ask before reinventing the wheel. The case is that I want to create a widget embeddable into 3rd party (HTML/Angular/React) application. Ideally you would say the 3rd party page creator to

Re: Enable CORS in Wicket Rest

2017-06-27 Thread Noven
Hi, Marcel, Thank you very much. Your solution works perfectly. With this solution, I have to add the header in every method. Do you know how to set it once, and automatically applied to all the rest method? Thank you. On Tuesday, June 27, 2017 9:07 PM, Marcel Barbosa Pinto

Re: Enable CORS in Wicket Rest

2017-06-27 Thread Marcel Barbosa Pinto
Hi, I think you could use this: getCurrentWebResponse().addHeader("Access-Control-Allow-Origin", " http://localhost:8080;); On Tue, Jun 27, 2017 at 8:24 AM, Noven wrote: > Hello, > Does anyone here face an issue about CORS when consuming wicket rest from >

Enable CORS in Wicket Rest

2017-06-27 Thread Noven
Hello, Does anyone here face an issue about CORS when consuming wicket rest from javascript ajax? The sample errors are : Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/api/statust. (Reason: CORS header