Re: About BasePage's BrandName setting
Hi Martin, Apologize for delay, I tried to learn to create quick start project on the github... https://github.com/cortix/project Web Sitesi : www.ab-hibe.com E-mail: hasance...@berkadem.com E-mail: i...@ab-hibe.com Gsm1: 0 544 640 96 25 Adres : 1271. Sokak 33/14 Sabri Mermutlu İş Merkezi Balgat Ankara On Sat, Jan 3, 2015 at 6:49 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Please create a quickstart application at GitHub and give us the url. On Sat, Jan 3, 2015 at 6:37 PM, Hasan Çelik hsnclk1...@gmail.com wrote: *Hi,* *I asked this question before,* Hi, Normally I have one Base Page, but I want to create more than one.. For example LoginPage extend BasePage1 ManagmentPage extend BasePage2 A user login in the website, redirect to ManagementPage... but when user click BrandName, redirect to LoginPage ...Can I change the brandname for other BasePages For example In the ManagmentPage brandName link may be/managementPage , In the LoginPage brandName link may be /index Is there a way to change it ? *Martin Grigorov said* Hi, class BasePage { @Override protected void onInitialize() {super.onInitialize(); add(brandLink(brandLink))} protected abstract AbstractLink brandLink(String id); } class BasePage1 extend BasePage { ... protected BookmarkablePageLink brandLink(String id) {return new BookmarkablePageLink(id, IndexPage.class)} } class BasePage2 extend BasePage { ... protected BookmarkablePageLink brandLink(String id) {return new BookmarkablePageLink(id, ManagementPage.class)} } *According to this reply,* *I want to ask another question, * *Hi Martin,* *If I use these construction, How can I change my BasePage markup and java class* *Normally my BasePage.html* *https://gist.github.com/cortix/68b584310e9be62de4c6* https://gist.github.com/cortix/68b584310e9be62de4c6 *and BasePage.java* *https://gist.github.com/cortix/7a5453cddac75b90f29a https://gist.github.com/cortix/7a5453cddac75b90f29a* *According your code, I tried to create new BasePage, BasePage1, BasePage2* *but I didn't succeed to create markup for BasePage, BasePage1, BasePage2 and also java pages...* *If BasePage.java would be my main page, How can I edit child and extend tag for BasePage1, BasePage2* *because * *LoginPage extend BasePage1 ManagmentPage extend BasePage2* *and* *BasePage1 extend BasePage* *BasePage2 extend BasePage* Web Sitesi : www.ab-hibe.com E-mail: hasance...@berkadem.com E-mail: i...@ab-hibe.com Gsm1: 0 544 640 96 25 Adres : 1271. Sokak 33/14 Sabri Mermutlu İş Merkezi Balgat Ankara
Re: URL Ipv6 parsing
JIRA ticket created: https://issues.apache.org/jira/browse/WICKET-5809 regards, Guy On 2015-01-09 09:30, Martin Grigorov wrote: Hi, Please file a ticket at JIRA. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jan 9, 2015 at 9:25 AM, guy.wu...@sensirius.com wrote: Hi, we seem to have some issue with native IPv6 address parsing. If we try https://[::1]/myapp;, URL parsing fails: org.apache.wicket.request.Url.parse(https://[::1]/myapp;) generates an exception: java.lang.NumberFormatException: For input string: 1] at java.lang.NumberFormatException.forInputString( NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) However, https://[::1]:80/myapp; works as expected. regards, Guy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: URL Ipv6 parsing
Hi, Please file a ticket at JIRA. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jan 9, 2015 at 9:25 AM, guy.wu...@sensirius.com wrote: Hi, we seem to have some issue with native IPv6 address parsing. If we try https://[::1]/myapp;, URL parsing fails: org.apache.wicket.request.Url.parse(https://[::1]/myapp;) generates an exception: java.lang.NumberFormatException: For input string: 1] at java.lang.NumberFormatException.forInputString( NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) However, https://[::1]:80/myapp; works as expected. regards, Guy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Change in configuring AtmosphereServlet init-params
Hi, In the most recent version of atmosphere-example the init-params were changed in servlet configuration (in web.xml). From: init-param param-nameorg.atmosphere.cpr.broadcastFilterClasses/param-name param-valueorg.apache.wicket.atmosphere.TrackMessageSizeFilter/param-value /init-param To: init-param param-nameorg.atmosphere.cpr.AtmosphereInterceptor/param-name param-valueorg.atmosphere.client.TrackMessageSizeInterceptor/param-value /init-param init-param param-nameorg.atmosphere.client.TrackMessageSizeInterceptor.delimiter/param-name param-value![CDATA[|msg|]]/param-value /init-param What is the reason of this change, what these parameters are used for? Actual version does not work for me and I need to know how to debug this. Any tip will be helpful. -- Best regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AJAX-Behavior that decides activation of a link
Hi, Apologies, I might have not understood your requirements correctly. Comments inline. I don't grasp your intent completely. I get that I can define my own event classes server-side. I don't get how that helps me client side. You can do want at server side to trigger something or not at client side. E.g. you can create: 1- A client side map var bottonStates={} --- [buttonID]=true/false; 2- On your event your event you get your ART and art.appendJavaString(bottonStates['+getMarkupId()+']=+true/false. 3- Create a type of link that checks this map before firing. The same trick can be used for other types of info you want to pass to client side. No need for hidden fields. My problem is: How do I communicate to client-side within an event handler that attrs.event.preventDefault() shall be called for exactly that event handler or not. Wicket provides a static pre-made decision via AjaxRequestAttributes; I want a dynamic one. See comment above. Just roll your own version of a link. E.g. 1- A JS prototype for your links. 2- These links check state map (at client side) to execute or not... and also if there is some message to be displayed. I looked at the code you cited, and the enable/disable decision is done server-side, right? But how does introduction of a new event type help with my problem client-side? Adding the links to ART on some event won't change anything, as this won't influence the _original DOM event_ (attrs.event) that controls if default action is taken or not. I also can't see how that new Wicket event type would give me access to that DOM event I want to influence. What I meant is that for any pertinent ART you can generate a new type of event that tells all your links Hey guys, do you have a different sate to report? and give the opportunity to them to do so. Sorry, but I don't get it. Maybe your Wicket usage is way above my head? I do not think so... :-( Or, do you mean that the server shall decide, according to previous user actions, that the link is enabled from now on and then shall change the link in an ART? Also disabling it back, as needed? Yep... Or let it fail gracefully... Server side instead of performing the desired action just answers back. Hey guy, that's not allowed right now. That's hard to do, some parameter for the enable/disable decision are external availability of resources that are checked at the moment of link activation. (The actual link almost always works. The behavior shall implement proper error checking and reporting in case of unavailable resources or other errors that are beyond the user's realm.) Then you might want them to fail gracefully... E.g using something like. http://www.erichynds.com/examples/jquery-notify/ By the way, I have a private implementation of this (wicket 6.x compatible), that I might share with the community. E.g. via wicket-stuff. -- Regards - Ernesto Reinaldo Barreiro
URL Ipv6 parsing
Hi, we seem to have some issue with native IPv6 address parsing. If we try https://[::1]/myapp;, URL parsing fails: org.apache.wicket.request.Url.parse(https://[::1]/myapp;) generates an exception: java.lang.NumberFormatException: For input string: 1] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:492) However, https://[::1]:80/myapp; works as expected. regards, Guy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Autocomplete window is not aligned with text field when I scroll.
I have a form page with auto complete in a div, the form page is longer then the size of the div, so we have scroll bar to the form page. when we type some text on text field autocomplete window is opened. then if I scroll the form page text field is scrolled and the autocomplete window position is not changed. expected position of the window is with the text field. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Autocomplete-window-is-not-aligned-with-text-field-when-I-scroll-tp4668952.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Session leak issue, trying to optimize 1.4x
Hi! Can anybody help with this? https://issues.apache.org/jira/browse/WICKET-5805 ** Martin 2015-01-08 9:24 GMT+02:00 Martin Makundi martin.maku...@koodaripalvelut.com : Hi! We have a performance issue with our Wicket 1.4 app, page serialization causes inconvenience to user because RequestCycle.detach() blocks the request until session.requestDetached() has been handled. We attempted to solve this issue by invoking session.requestDetached in a separate thread and thus allowing user to receive their request without waiting for page serialization in SecondLevelCachePageMap. The disk writing is already parallel, but serialization is blocking. What would be the best (and safest) way to implement this? I have attached our (proposed) patches to jira issue: https://issues.apache.org/jira/browse/WICKET-5805 ** Martin
Fwd: About BasePage's BrandName setting
Hi Martin, Apologize for delay, I tried to learn to create quick start project on the github... https://github.com/cortix/project Web Sitesi : www.ab-hibe.com E-mail: hasance...@berkadem.com E-mail: i...@ab-hibe.com Gsm1: 0 544 640 96 25 Adres : 1271. Sokak 33/14 Sabri Mermutlu İş Merkezi Balgat Ankara On Sat, Jan 3, 2015 at 6:49 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Please create a quickstart application at GitHub and give us the url. On Sat, Jan 3, 2015 at 6:37 PM, Hasan Çelik hsnclk1...@gmail.com wrote: *Hi,* *I asked this question before,* Hi, Normally I have one Base Page, but I want to create more than one.. For example LoginPage extend BasePage1 ManagmentPage extend BasePage2 A user login in the website, redirect to ManagementPage... but when user click BrandName, redirect to LoginPage ...Can I change the brandname for other BasePages For example In the ManagmentPage brandName link may be/managementPage , In the LoginPage brandName link may be /index Is there a way to change it ? *Martin Grigorov said* Hi, class BasePage { @Override protected void onInitialize() {super.onInitialize(); add(brandLink(brandLink))} protected abstract AbstractLink brandLink(String id); } class BasePage1 extend BasePage { ... protected BookmarkablePageLink brandLink(String id) {return new BookmarkablePageLink(id, IndexPage.class)} } class BasePage2 extend BasePage { ... protected BookmarkablePageLink brandLink(String id) {return new BookmarkablePageLink(id, ManagementPage.class)} } *According to this reply,* *I want to ask another question, * *Hi Martin,* *If I use these construction, How can I change my BasePage markup and java class* *Normally my BasePage.html* *https://gist.github.com/cortix/68b584310e9be62de4c6* https://gist.github.com/cortix/68b584310e9be62de4c6 *and BasePage.java* *https://gist.github.com/cortix/7a5453cddac75b90f29a https://gist.github.com/cortix/7a5453cddac75b90f29a* *According your code, I tried to create new BasePage, BasePage1, BasePage2* *but I didn't succeed to create markup for BasePage, BasePage1, BasePage2 and also java pages...* *If BasePage.java would be my main page, How can I edit child and extend tag for BasePage1, BasePage2* *because * *LoginPage extend BasePage1 ManagmentPage extend BasePage2* *and* *BasePage1 extend BasePage* *BasePage2 extend BasePage* Web Sitesi : www.ab-hibe.com E-mail: hasance...@berkadem.com E-mail: i...@ab-hibe.com Gsm1: 0 544 640 96 25 Adres : 1271. Sokak 33/14 Sabri Mermutlu İş Merkezi Balgat Ankara
Re: Change in configuring AtmosphereServlet init-params
Hi, I think this changes was needed to upgrade from Atmosphere 2.18 to 2.22. AFAIK this change is needed by Atmosphere itself. Wicket-Atmosphere doesn't use these parameters. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jan 9, 2015 at 11:07 AM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, In the most recent version of atmosphere-example the init-params were changed in servlet configuration (in web.xml). From: init-param param-nameorg.atmosphere.cpr.broadcastFilterClasses/param-name param-valueorg.apache.wicket.atmosphere.TrackMessageSizeFilter/param-value /init-param To: init-param param-nameorg.atmosphere.cpr.AtmosphereInterceptor/param-name param-valueorg.atmosphere.client.TrackMessageSizeInterceptor/param-value /init-param init-param param-nameorg.atmosphere.client.TrackMessageSizeInterceptor.delimiter/param-name param-value![CDATA[|msg|]]/param-value /init-param What is the reason of this change, what these parameters are used for? Actual version does not work for me and I need to know how to debug this. Any tip will be helpful. -- Best regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: About BasePage's BrandName setting
Hi Martin, Apologize for delay, I tried to learn to create quick start project on the github... https://github.com/cortix/project Web Sitesi : www.ab-hibe.com E-mail: hasance...@berkadem.com E-mail: i...@ab-hibe.com Gsm1: 0 544 640 96 25 Adres : 1271. Sokak 33/14 Sabri Mermutlu İş Merkezi Balgat Ankara On Sat, Jan 3, 2015 at 6:49 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, Please create a quickstart application at GitHub and give us the url. On Sat, Jan 3, 2015 at 6:37 PM, Hasan Çelik hsnclk1...@gmail.com wrote: *Hi,* *I asked this question before,* Hi, Normally I have one Base Page, but I want to create more than one.. For example LoginPage extend BasePage1 ManagmentPage extend BasePage2 A user login in the website, redirect to ManagementPage... but when user click BrandName, redirect to LoginPage ...Can I change the brandname for other BasePages For example In the ManagmentPage brandName link may be/managementPage , In the LoginPage brandName link may be /index Is there a way to change it ? *Martin Grigorov said* Hi, class BasePage { @Override protected void onInitialize() {super.onInitialize(); add(brandLink(brandLink))} protected abstract AbstractLink brandLink(String id); } class BasePage1 extend BasePage { ... protected BookmarkablePageLink brandLink(String id) {return new BookmarkablePageLink(id, IndexPage.class)} } class BasePage2 extend BasePage { ... protected BookmarkablePageLink brandLink(String id) {return new BookmarkablePageLink(id, ManagementPage.class)} } *According to this reply,* *I want to ask another question, * *Hi Martin,* *If I use these construction, How can I change my BasePage markup and java class* *Normally my BasePage.html* *https://gist.github.com/cortix/68b584310e9be62de4c6* https://gist.github.com/cortix/68b584310e9be62de4c6 *and BasePage.java* *https://gist.github.com/cortix/7a5453cddac75b90f29a https://gist.github.com/cortix/7a5453cddac75b90f29a* *According your code, I tried to create new BasePage, BasePage1, BasePage2* *but I didn't succeed to create markup for BasePage, BasePage1, BasePage2 and also java pages...* *If BasePage.java would be my main page, How can I edit child and extend tag for BasePage1, BasePage2* *because * *LoginPage extend BasePage1 ManagmentPage extend BasePage2* *and* *BasePage1 extend BasePage* *BasePage2 extend BasePage* Web Sitesi : www.ab-hibe.com E-mail: hasance...@berkadem.com E-mail: i...@ab-hibe.com Gsm1: 0 544 640 96 25 Adres : 1271. Sokak 33/14 Sabri Mermutlu İş Merkezi Balgat Ankara
Re: Wicket 7 for production use?
Hi, There are rumors that 7.0.0 will be released this month. I'd recommend to migrate the app as soon as possible and report any problems you hit. If there is a need of an API change then we will need to release one more milestone. Otherwise the next release will be 7.0.0 and any API changes will have to wait for 8.0.0. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jan 9, 2015 at 12:28 PM, mscoon msc...@gmail.com wrote: Hi all, Is there any estimate when wicket 7 will be ready for production use? We would really like to migrate our applications to it, and help with testing, but we are worried that we may encounter bugs in things that work in wicket 6 (such as wicket-5800 that I recently reported). Since there is no indication on the wicket site about when version 7 will be released we are worried that our project will be delayed waiting for wicket bug-fixes/releases. Marios
Wicket 7 for production use?
Hi all, Is there any estimate when wicket 7 will be ready for production use? We would really like to migrate our applications to it, and help with testing, but we are worried that we may encounter bugs in things that work in wicket 6 (such as wicket-5800 that I recently reported). Since there is no indication on the wicket site about when version 7 will be released we are worried that our project will be delayed waiting for wicket bug-fixes/releases. Marios
Re: Wicket 7.0.4M - bug related to queueing and wicket:enclosure
Thanks Andrea. On Mon, Jan 5, 2015 at 2:29 PM, andrea del bene an.delb...@gmail.com wrote: Hi, now the snapshot should work. Andrea. On 05/01/2015 11:32, mscoon wrote: Hi Martin, I just tried it with 7.0.0-SNAPSHOT and I get the same exception. I have opened https://issues.apache.org/jira/browse/WICKET-5800 with details and a quickstart. Thanks Marios On Wed, Dec 24, 2014 at 12:33 PM, Martin Grigorov mgrigo...@apache.org wrote: - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Change in configuring AtmosphereServlet init-params
On Fri, Jan 9, 2015 at 2:37 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, I think this changes was needed to upgrade from Atmosphere 2.18 to 2.22. AFAIK this change is needed by Atmosphere itself. Wicket-Atmosphere doesn't use these parameters. Ok, I know that. But how did you (or Emond ;)) know how to changed it, maybe I should look into Atmosphere documentation? The old TrackMessageSizeFilter comes from Wicket-Atmosphere, so there was some reason to setup such parameter. -- Daniel Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Fri, Jan 9, 2015 at 11:07 AM, Daniel Stoch daniel.st...@gmail.com wrote: Hi, In the most recent version of atmosphere-example the init-params were changed in servlet configuration (in web.xml). From: init-param param-nameorg.atmosphere.cpr.broadcastFilterClasses/param-name param-valueorg.apache.wicket.atmosphere.TrackMessageSizeFilter/param-value /init-param To: init-param param-nameorg.atmosphere.cpr.AtmosphereInterceptor/param-name param-valueorg.atmosphere.client.TrackMessageSizeInterceptor/param-value /init-param init-param param-nameorg.atmosphere.client.TrackMessageSizeInterceptor.delimiter/param-name param-value![CDATA[|msg|]]/param-value /init-param What is the reason of this change, what these parameters are used for? Actual version does not work for me and I need to know how to debug this. Any tip will be helpful. -- Best regards, Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
About BasePage's BrandName setting
*Hi,* * I replied my old question but it didn't exist in the forum and I choosed this way, sorry about that, I wanted to remind dioalog...Anyway I asked this question before,* -- Hi, Normally I have one Base Page, but I want to create more than one.. For example LoginPage extend BasePage1 ManagmentPage extend BasePage2 A user login in the website, redirect to ManagementPage... but when user click BrandName, redirect to LoginPage ...Can I change the brandname for other BasePages For example In the ManagmentPage brandName link may be/managementPage , In the LoginPage brandName link may be /index Is there a way to change it ? - *Martin Grigorov said* Hi, class BasePage { @Override protected void onInitialize() {super.onInitialize(); add(brandLink(brandLink))} protected abstract AbstractLink brandLink(String id); } class BasePage1 extend BasePage { ... protected BookmarkablePageLink brandLink(String id) {return new BookmarkablePageLink(id, IndexPage.class)} } class BasePage2 extend BasePage { ... protected BookmarkablePageLink brandLink(String id) {return new BookmarkablePageLink(id, ManagementPage.class)} } -- According to this reply, I want to ask another question, Hi Martin, If I use these construction, How can I change my BasePage markup and java class Normally my BasePage.html https://gist.github.com/cortix/68b584310e9be62de4c6 and BasePage.java https://gist.github.com/cortix/7a5453cddac75b90f29a According your code, I tried to create new BasePage, BasePage1, BasePage2 but I didn't succeed to create markup for BasePage, BasePage1, BasePage2 and also java pages... If BasePage.java would be my main page, How can I edit child and extend tag for BasePage1, BasePage2 because LoginPage extend BasePage1 ManagmentPage extend BasePage2 and BasePage1 extend BasePage BasePage2 extend BasePage --- Martin Grigorov said Hi, Please create a quickstart application at GitHub and give us the url. Apologize for delay, I tried to learn to create quick start project on the github... https://github.com/cortix/project