Re: Your opinion on ShieldUI

2016-10-05 Thread Martin Grigorov
On Oct 5, 2016 8:19 PM, "Manfred Bergmann" wrote: > > Martin Grigorov-4 wrote > > I don't have experience with the ShieldUI integration. > > From the available widgets it seems impressive. > http://www.shieldui.com/products/java-wicket > > I don't know how good this

Re: Localizer in bundle

2016-10-05 Thread Lon Varscsak
Yeah, the properties file aren’t in the application’s package. It would be handy if Localizer just used a Class instead of a Component. However, your info was enough of a push to get me where I needed (in combination with ConvertingPropertyVariableInterpolator). Thanks! -Lon On Wed, Oct 5,

Re: Your opinion on ShieldUI

2016-10-05 Thread Martin Grigorov
On Oct 5, 2016 7:52 PM, "Manfred Bergmann" wrote: > > OK, thanks for you reply. > > What's the state of Wicket-Foundation? > I mean, is it mature enough for a large enterprise application? Dunno. Someone from the community contributed it a while back. > > I assume

Localizer in bundle

2016-10-05 Thread Lon Varscsak
Hey all, How can I get a localized string (from a properties file) inside of a library I have without the use of a Component. I have a controller class (nothing to do with components), but I’d like to have this class (In a non-application jar) return an error message to the application localized

Re: Localizer in bundle

2016-10-05 Thread Martin Grigorov
Hi, The component could be null. In this case it will fallback to YourApplication.properties. I guess this won't work for you too. Why don't you just use ResourceBundle? On Oct 6, 2016 5:29 AM, "Lon Varscsak" wrote: > Hey all, > > How can I get a localized string (from

Re: Unexpected Invocation of #onSubmit()

2016-10-05 Thread Martin Grigorov
Please start new threads for new questions! On Oct 6, 2016 2:49 AM, "sorinev" wrote: > I resolved the button not working issue. I had to change the package > reference statements to JavaScriptReferenceHeaderItem instead of just > JavaScriptHeaderItem and I had to put the four

Re: Unexpected Invocation of #onSubmit()

2016-10-05 Thread sorinev
I resolved the button not working issue. I had to change the package reference statements to JavaScriptReferenceHeaderItem instead of just JavaScriptHeaderItem and I had to put the four statements to load these references in the right order, it seems. New problem though is that one of those

Re: dependencies

2016-10-05 Thread Martin Grigorov
What exactly is the problem? Which impl of Wicket WebSockets do you use? On Oct 5, 2016 9:56 PM, "Jonathan Locke" wrote: > trying to find a set of maven dependencies that work for servlet api + > wicket 6.24.0 + jetty 9 + wicket web sockets + jersey > > does anyone

Re: Wicket+Spring 4 integration

2016-10-05 Thread Martin Grigorov
Hi, You could use global Ajax listener that adds the CSRF token to all Ajax requests. In YourApp#init() method do: getAjaxRequestTargetListeners().add(new AjaxRequestTarget.AbstractListener() { @Override public void updateAjaxAttributes(AbstractDefaultAjaxBehavior behavior,

Re: hyperlink to a file on the server but ouside of the wicket war ?

2016-10-05 Thread Martin Grigorov
Hi, See ResourceLink component. On Oct 5, 2016 6:18 PM, "andre seame" wrote: > Hello, > > > I have a windows server with TOMCAT and a wicket application in > d:\apache-tomcat\webapps\mywcketapplication.war > > > On this server, I have a shared disk where someone has put >

Re: Localizer in bundle

2016-10-05 Thread Martin Grigorov
The Component may specify custom locale and/or variation. java.lang.Class cannot :) On Oct 6, 2016 6:02 AM, "Lon Varscsak" wrote: > Yeah, the properties file aren’t in the application’s package. It would be > handy if Localizer just used a Class instead of a Component.

Re: Unexpected Invocation of #onSubmit()

2016-10-05 Thread sorinev
Well it's still the same issue; the button does /function/ now, it's just not entirely right. The button has its own javascript file and something in this file is causing an exception in wicket when the button is loaded on a page. There is a gif associated with this button, but something is

Re: dependencies

2016-10-05 Thread Jonathan Locke
good question! i fought with this all day today and finally decided to upgrade to wicket 7 and try the javax websockets after a whole series of runtime problems with apparent version conflicts (dear java 9 modules, hurry up please!). hopefully this will help tomorrow. jon On Wed, Oct 5,

examples7x.wicket.apache.org --> 502 Proxy Error

2016-10-05 Thread Francois Meillet
Hi, http://examples7x.wicket.apache.org/index.html is down. There is a 502 Proxy Error François

Re: Issue using Wicket Bootstap Less

2016-10-05 Thread Tobias Soloschenko
Hi, just wanted to thank you for your contributions! :-) kind regards Tobias > Am 05.10.2016 um 07:17 schrieb Erik Strid : > > Hi Martin, > > Thank you for the fast release! > > Unfortunately did we find another issue in the LessCacheManager before we > closed this

Re: examples7x.wicket.apache.org --> 502 Proxy Error

2016-10-05 Thread Martin Grigorov
Up & running again! Thanks! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 5, 2016 at 8:36 AM, Francois Meillet wrote: > Hi, > > http://examples7x.wicket.apache.org/index.html

Re: Wicket+Spring 4 integration

2016-10-05 Thread mr
hi, If I remove tag(because I need csrf protection in my app) I'm getting exception when pressing the button in my login page: "Wicket.Ajax.Call.failure: Error while parsing response: Could not verify the provided CSRF token because your session was not found" Wicket version-6.24.0

Your opinion on ShieldUI

2016-10-05 Thread Bergmann Manfred
Hi. I'm looking for available options to build nice looking UIs using Apache Wicket without developing stylesheets and graphics myself. What I found was Wicket-JQuery-UI, Wicket Bootstrap and ShieldUI. Where ShieldUI seems to be the most complete one. But I couldn’t find much additional info,

Wicket WebSockets problem with servlet context

2016-10-05 Thread Tom Götz
Hi there, I have the following scenario: 1. a Spring-Boot Wicket application with Tomcat running on Port 8080 that uses Wicket WebSockets impl running in the servlet root context 2. a ngnix server that proxies /MyLocation to the mentioned Wicket app As there is no servlet context involved,

Re: Wicket WebSockets problem with servlet context

2016-10-05 Thread Tom Götz
Maybe answering my own question, but this here could help … I’ll give it a try: http://stackoverflow.com/questions/32287103/how-to-use-nginx-as-a-proxy-for-wicket-application-using-websockets Cheers, Tom > On 05.10.2016, at 15:36, Tom Götz wrote: > > Hi there, > > I have

Re: Your opinion on ShieldUI

2016-10-05 Thread Manfred Bergmann
OK, thanks for you reply. What's the state of Wicket-Foundation? I mean, is it mature enough for a large enterprise application? I assume that Wicket-JQuery-UI and Wicket-Bootstrap is? Manfred -- View this message in context:

Re: Wicket WebSockets problem with servlet context

2016-10-05 Thread Tom Götz
… so what I was trying to say (I’m not yet too deep into the websockets tech): isn’t it —in the described case— also necessary to configure the mount point of the WS endpoint? Tom > On 05.10.2016, at 17:42, Tom Götz wrote: > > BTW, I already tried the following

Re: Wicket WebSockets problem with servlet context

2016-10-05 Thread Tom Götz
Hi Martin, what exactly is the problem in wicket-websocket-jquery.js? As I said, I have no contextPath, so I wouldn’t expect Wicket/wicket-websocket-jquery.js to know under which context the app is running. Shouldn’t I provide the context/mountPath somehow to the websocket initialization

Re: Wicket WebSockets problem with servlet context

2016-10-05 Thread Martin Grigorov
The problem is that Nginx is configured to forward requests to /MyLocation to Tomcat, and the application has no idea about this. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 5, 2016 at 5:25 PM, Tom Götz wrote: > Hi Martin, > > what

Re: Wicket WebSockets problem with servlet context

2016-10-05 Thread Tom Götz
BTW, I already tried the following workaround without success: I did override WebSocketBehavior#renderHead and included a „patched“ JS init script that contained the contextPath that ngnix is forwarding to, so the generated JS looked like this: if (typeof(Wicket.WebSocket.appName) ===

Re: Wicket WebSockets problem with servlet context

2016-10-05 Thread Tom Götz
Hm, no solution yet … anyone got a working example or some hint maybe? Tom > On 05.10.2016, at 15:57, Tom Götz wrote: > > Maybe answering my own question, but this here could help … I’ll give it a > try: >

hyperlink to a file on the server but ouside of the wicket war ?

2016-10-05 Thread andre seame
Hello, I have a windows server with TOMCAT and a wicket application in d:\apache-tomcat\webapps\mywcketapplication.war On this server, I have a shared disk where someone has put \\myserver\TestResults\image_timestamp.png. The wicket application can access to the file throught :

Re: Your opinion on ShieldUI

2016-10-05 Thread Martin Grigorov
Hi, I think Wicket-JQuery-UI has the most widgets. I personally maintain Wicket-Bootstrap. For both of them I can say that they follow the best practices of Wicket. I don't have experience with the ShieldUI integration. You can also check

Re: Wicket WebSockets problem with servlet context

2016-10-05 Thread Martin Grigorov
Hi Tom, The problem really is in wicket-websocket-jquery.js. It does: url = protocol + '//' + document.location.host + WWS.contextPath + WWS.filterPrefix + '/wicket/websocket'; A workaround for you is to add url rewrite rule to Nginx to forward it to Tomcat. Please file an issue at JIRA and

Re: Wicket WebSockets problem with servlet context

2016-10-05 Thread Tom Götz
I created a JIRA for this: https://issues.apache.org/jira/browse/WICKET-6254 Tom > On 05.10.2016, at 17:31, Martin Grigorov wrote: > > The problem is that Nginx is configured to forward requests to /MyLocation > to Tomcat, and the application has no idea about this. >

Re: Unexpected Invocation of #onSubmit()

2016-10-05 Thread sorinev
It seems that no matter what I put in JavaScriptHeaderItem.forUrl(); it does not get added to the page when I look at it through the browser inspector. I tried simply the file name, I've tried a path relative to the webapp folder (i.e. ./src/main/webapp/) and it just does not want to get

Re: Your opinion on ShieldUI

2016-10-05 Thread Manfred Bergmann
Martin Grigorov-4 wrote > I don't have experience with the ShieldUI integration. >From the available widgets it seems impressive. http://www.shieldui.com/products/java-wicket I don't know how good this stuff really is. The GitHub page doesn't list many issues and there are only two maintainers.

dependencies

2016-10-05 Thread Jonathan Locke
trying to find a set of maven dependencies that work for servlet api + wicket 6.24.0 + jetty 9 + wicket web sockets + jersey does anyone know the magic combination of version numbers? jon