Re: Bunch of Page Expired exceptions in Wicket 6.10.0
Hi, DEBUG: 09/25 17:35:40.956: PageAccessSynchronizer: http-thread-pool-5311(4) acquired lock to page 53 DEBUG: 09/25 17:35:40.957: DiskDataStore: Removing data for pages in session with id '702b17085b39e8a599d07e81df51' DEBUG: 09/25 17:35:40.960: DiskDataStore: Returning data(null) for page with id '53' in session with id '702b17085b39e8a599d07e81df51' The second log leads to the problem. It seems the session is invalidated... Put a breakpoint at org.apache.wicket.pageStore.DefaultPageStore#removePageData and see who calls it. On Thu, Sep 26, 2013 at 5:04 AM, Paul Borș p...@bors.ws wrote: I think I found my answer here: https://cwiki.apache.org/confluence/display/WICKET/Page+Storage I'll grab the Wicket sources tomorrow and hook my IntelliJ IDEA debugger to the DiskDataStore and work it backwards to see what happens. Stay tuned... ;) Have a great day, Paul Bors On Sep 25, 2013, at 5:59 PM, Paul Bors p...@bors.ws wrote: Hey guys, Just wondering what could be the cause of the many page expired exceptions I am running into with this webapp whenever the user changes tabs and then selects the browser’s “Back” button or whenever the user downloads a resource via a button and the form is being submitted a second time. My first guess is that the page might have issues with its stateless flags but help is welcomed as I’m still new to Wicket 6.x. If needed I can create a quick-start. The following is an example of the log right after the button has been hit a second time to submit the form: DEBUG: 09/25 17:35:40.954: ServletWebRequest: Calculating context relative path from: context path '', filterPrefix 'app/', uri '/app/wicket/page' DEBUG: 09/25 17:35:40.955: ServletWebRequest: Calculating context relative path from: context path '', filterPrefix 'app/', uri '/app/wicket/page' DEBUG: 09/25 17:35:40.955: ServletWebRequest: Calculating context relative path from: context path '', filterPrefix 'app/', uri '/app/wicket/page' DEBUG: 09/25 17:35:40.956: CompoundRequestMapper: One compatible mapper found for URL 'wicket/page?53-1.IFormSubmitListener-exportForm' - 'Mapper: org.apache.wicket.core.request.mapper.PageInstanceMapper; Score: 2147483647' DEBUG: 09/25 17:35:40.956: ServletWebRequest: Calculating context relative path from: context path '', filterPrefix 'app/', uri '/app/wicket/page' DEBUG: 09/25 17:35:40.956: PageAccessSynchronizer: 'http-thread-pool-5311(4)' attempting to acquire lock to page with id '53' DEBUG: 09/25 17:35:40.956: PageAccessSynchronizer: http-thread-pool-5311(4) acquired lock to page 53 DEBUG: 09/25 17:35:40.957: DiskDataStore: Removing data for pages in session with id '702b17085b39e8a599d07e81df51' DEBUG: 09/25 17:35:40.960: DiskDataStore: Returning data(null) for page with id '53' in session with id '702b17085b39e8a599d07e81df51' DEBUG: 09/25 17:35:40.960: AsynchronousDataStore: Returning the data of a stored entry with sessionId '702b17085b39e8a599d07e81df51' and pageId '53' DEBUG: 09/25 17:35:40.961: PageAccessSynchronizer: 'http-thread-pool-5311(4)' released lock to page with id '53' DEBUG: 09/25 17:35:40.961: PageAccessSynchronizer: 'http-thread-pool-5311(4)' notifying blocked threads DEBUG: 09/25 17:35:40.961: ServletWebRequest: Calculating context relative path from: context path '', filterPrefix 'app/', uri '/app/wicket/page' DEBUG: 09/25 17:35:40.964: PageAccessSynchronizer: 'http-thread-pool-5311(4)' attempting to acquire lock to page with id '55' DEBUG: 09/25 17:35:40.964: PageAccessSynchronizer: http-thread-pool-5311(4) acquired lock to page 55 DEBUG: 09/25 17:35:40.966: MarkupContainer: Add homePageLink to [Page class = org.apache.wicket.markup.html.pages.PageExpiredErrorPage, id = 55, render count = 0] DEBUG: 09/25 17:35:40.966: Component: Begin render [Page class = org.apache.wicket.markup.html.pages.PageExpiredErrorPage, id = 55, render count = 1] DEBUG: 09/25 17:35:40.967: MarkupContainer: Add _header_0 to [Page class = org.apache.wicket.markup.html.pages.PageExpiredErrorPage, id = 55, render count = 1] DEBUG: 09/25 17:35:40.967: Component: Begin render [HtmlHeaderContainer [Component id = _header_0]] DEBUG: 09/25 17:35:40.967: Component: renderHead: [BookmarkablePageLink [Component id = homePageLink]] DEBUG: 09/25 17:35:40.967: Component: renderHead: [HtmlHeaderContainer [Component id = _header_0]] DEBUG: 09/25 17:35:40.967: Component: renderHead: [PageExpiredErrorPage [Component id = 55]] DEBUG: 09/25 17:35:40.968: Component: End render [HtmlHeaderContainer [Component id = _header_0]] DEBUG: 09/25 17:35:40.968: Component: Begin render [BookmarkablePageLink [Component id = homePageLink]] DEBUG: 09/25 17:35:40.969: ServletWebRequest: Calculating context relative path from: context path '', filterPrefix 'app/', uri '/app/wicket/page' DEBUG: 09/25 17:35:40.970: ServletWebRequest: Calculating context relative path from: context path '',
Wicket DropDownChoice Question about Constructors and its Behavior
Hi all, since I'm working with Wicket I am a bit confused about the Constructors of DropDownChoice Class. DropDownChoice provides Constructors without any Model or ModelObject. e.g. (id, List choices) This is logical in an use-case, for instance, having just a page with a SelectBox and my first click is about to choose something. And I may do not have any parent model object of the page, so I did not bind my DropDownChoice by PropertyModel expressions. So, in such cases... Why Wicket always complaints about try to set ModelObject of null model? Yes, I explicitly decided to use DropDownChoice without a model. Since nothing is chosen, the model object of the DropDownChoice is null. The behavior I expect is, the model object is the chosen option (object) after selecting one. But it seems, it does not work like this. Can someone please light me. :-) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket DropDownChoice Question about Constructors and its Behavior
Hi, This use case will work only when the DropDownChoice has a parent in the hierarchy with org.apache.wicket.model.IComponentInheritedModel, like org.apache.wicket.model.CompoundPropertyModel. In this case the dropdown will use a slot from its parent's IComponentInheritedModel. On Thu, Sep 26, 2013 at 9:39 AM, Patrick Davids patrick.dav...@nuboit.dewrote: Hi all, since I'm working with Wicket I am a bit confused about the Constructors of DropDownChoice Class. DropDownChoice provides Constructors without any Model or ModelObject. e.g. (id, List choices) This is logical in an use-case, for instance, having just a page with a SelectBox and my first click is about to choose something. And I may do not have any parent model object of the page, so I did not bind my DropDownChoice by PropertyModel expressions. So, in such cases... Why Wicket always complaints about try to set ModelObject of null model? Yes, I explicitly decided to use DropDownChoice without a model. Since nothing is chosen, the model object of the DropDownChoice is null. The behavior I expect is, the model object is the chosen option (object) after selecting one. But it seems, it does not work like this. Can someone please light me. :-) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket DropDownChoice Question about Constructors and its Behavior
I think if you do not provide a model wicket will try to find a parent with a IComponentInheritedModel and use that as the model (to set the object with the same name you passed as ID) On Thu, Sep 26, 2013 at 9:39 AM, Patrick Davids patrick.dav...@nuboit.dewrote: Hi all, since I'm working with Wicket I am a bit confused about the Constructors of DropDownChoice Class. DropDownChoice provides Constructors without any Model or ModelObject. e.g. (id, List choices) This is logical in an use-case, for instance, having just a page with a SelectBox and my first click is about to choose something. And I may do not have any parent model object of the page, so I did not bind my DropDownChoice by PropertyModel expressions. So, in such cases... Why Wicket always complaints about try to set ModelObject of null model? Yes, I explicitly decided to use DropDownChoice without a model. Since nothing is chosen, the model object of the DropDownChoice is null. The behavior I expect is, the model object is the chosen option (object) after selecting one. But it seems, it does not work like this. Can someone please light me. :-) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Regards - Ernesto Reinaldo Barreiro
Re: Wicket DropDownChoice Question about Constructors and its Behavior
Hmm... ok, does that mean, in forms I do not have to wrap my model(object) into a CompundPropertyModel, because DropDownList (or even all FormComponents?) automatically joins IComponentInheritedModel hierarchy? So, as conclusion, by using a constuctor with an empty model (id, new Model(), List choices) a exclude my DropDownChoice from the hierarchy? Patrick Am 26.09.2013 09:47, schrieb Martin Grigorov: Hi, This use case will work only when the DropDownChoice has a parent in the hierarchy with org.apache.wicket.model.IComponentInheritedModel, like org.apache.wicket.model.CompoundPropertyModel. In this case the dropdown will use a slot from its parent's IComponentInheritedModel. On Thu, Sep 26, 2013 at 9:39 AM, Patrick Davids patrick.dav...@nuboit.dewrote: Hi all, since I'm working with Wicket I am a bit confused about the Constructors of DropDownChoice Class. DropDownChoice provides Constructors without any Model or ModelObject. e.g. (id, List choices) This is logical in an use-case, for instance, having just a page with a SelectBox and my first click is about to choose something. And I may do not have any parent model object of the page, so I did not bind my DropDownChoice by PropertyModel expressions. So, in such cases... Why Wicket always complaints about try to set ModelObject of null model? Yes, I explicitly decided to use DropDownChoice without a model. Since nothing is chosen, the model object of the DropDownChoice is null. The behavior I expect is, the model object is the chosen option (object) after selecting one. But it seems, it does not work like this. Can someone please light me. :-) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Mit freundlichen Grüßen, Patrick Davids NuboIT GmbH Co. KG Kieler Str. 103-107 • 25474 Bönningstedt Email: patrick.dav...@nuboit.de Handelsregister: HRA6819 Pi | Amtsgericht Pinneberg Geschäftsführung der Verwaltungsgesellschaft Daniel Fraga Zander HRB10145Pi | Amtsgericht Pinneberg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: broken links in wicket-examples
It's an encoding issue: When streaming back the source over Ajax, SourcesPage does not care about the source encoding and thus produces invalid XML characters. Please create an issue in Jira. Thanks Sven On 09/26/2013 01:56 AM, Maxim Solodovnik wrote: Hello, just found some [1] *.properties.xml resources from here [2]: are producing 404 error with following URL: [3] [1] FormInput_ja.properties.xml, FormInput_ru.properties.xml, FormInput_th_TH.properties.xml, FormInput_zh_CN.properties.xml [2] http://www.wicket-library.com/wicket-examples-6.0.x/forminput/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?1SourcesPage_class=org.apache.wicket.examples.forminput.FormInput [3] http://www.wicket-library.com/wicket-examples-6.0.x/forminput/wicket/bookmarkable/undefined - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Aw: Re: Wicket-bootstrap Bootstrap 3 support
hi, i replaced the my 0.8.x version with the new 0.9.0-SNAPSHOT and get the following error: WARN - WicketObjects - Could not resolve class [fonts] java.lang.ClassNotFoundException: fonts Actually this font can not be loaded: fonts/glyphicons-halflings-regular.woff I found this thread on stackoverflow, which indicated that there is a problem with bootstraps customizer tool: http://stackoverflow.com/questions/18369036/bootstrap-3-glyphicons-not-working Does wicket-bootstrap use customized themes (and therefor not all/wrong fonts or icons have been attached to wicket-bootstrap)? best reagards marcel Gesendet: Mittwoch, 25. September 2013 um 15:28 Uhr Von: Michael Haitz michael.ha...@1und1.de An: users@wicket.apache.org users@wicket.apache.org Betreff: Re: Wicket-bootstrap Bootstrap 3 support Hi, i've deployed a 0.9.0-SNAPSHOT to sonatype this morning ;) dependency groupIdde.agilecoders.wicket/groupId artifactIdwicket-bootstrap-core/artifactId version0.9.0-SNAPSHOT/version /dependency cheers, Michael Am 25.09.2013 um 14:24 schrieb David Beer david.m.b...@gmail.com: Hi All I am looking at using Bootstrap 3 for our next webapplication layout. I have used 2.3.2 with success and the Wicket-Bootstrap project. I just wondered what the status is of the support for BS3 before I start coding the initial layout. Or am I better sticking with BS2 for now and upgrading once Wicket-Bootstrap for BS3 is released. Thanks David - 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
Wicket - Apache URL rewrite Access-Control-Allow-Origin issue
Hi Everybody, I'm facing a strange issue. I'm on UserPage on http://account.dev.pippo.com/account/UserPage in this page I have a DropDown component to filter a listview (using Ajax). When choosing a value from the dropdown the XMLHttpRequest is done against http://dev.pippo.cominstead of http://account.dev.pippo.com/account. This leads to an Access-Control-Allow-Origin problem: XMLHttpRequest cannot load https://dev.pippo.com/wicket/page?3-1.IBehaviorListener.0-c…ontentList-layout-contentRight-overview-dateRange-listViewDateRangeOptions. Origin https://account.dev.pippo.com is not allowed by Access-Control-Allow-Origin. I have an Apache rewrite rule that prepend the account. URL when /account is used. The /account URL is mounted using: mountPackage(/account, UserPage.class); (I moved all panels and custom components used by this UserPage on the same package) Should't wicket use the current URL (http://account.dev.pippo.com/account/) as target for the Ajax request (to avoid browser blocking the requests)? In the markup file I have the following AJAX request Wicket.Ajax.ajax({u:../wicket/page?3-1.IBehaviorListener.0-content-contentList-layout-contentRight-overview-dateRange-listViewDateRangeOptions,e:change,c:listViewDateRangeOptions13,ad:true,m:POST});; Is this a wicket bug? I'm using Apache Wicket 6.9.1. Thanks a lot. Sergio
Re: Wicket - Apache URL rewrite Access-Control-Allow-Origin issue
Hi, On Thu, Sep 26, 2013 at 11:22 AM, Sergio Paganoni sergio.pagan...@gmail.com wrote: Hi Everybody, I'm facing a strange issue. I'm on UserPage on http://account.dev.pippo.com/account/UserPage in this page I have a DropDown component to filter a listview (using Ajax). When choosing a value from the dropdown the XMLHttpRequest is done against http://dev.pippo.cominstead of http://account.dev.pippo.com/account. This leads to an Access-Control-Allow-Origin problem: XMLHttpRequest cannot load https://dev.pippo.com/wicket/page?3-1.IBehaviorListener.0-c …ontentList-layout-contentRight-overview-dateRange-listViewDateRangeOptions. Origin https://account.dev.pippo.com is not allowed by Access-Control-Allow-Origin. I have an Apache rewrite rule that prepend the account. URL when /account is used. The /account URL is mounted using: mountPackage(/account, UserPage.class); Add : mountPage(/account/UserPage, UserPage.class); and check the produced markup. I'd expect to see something like: Wicket.Ajax.ajax({u:./?3-1.IBehaviorListener.0-content-contentList-layout-contentRight-overview-dateRange-listViewDateRangeOptions,e:change,c:listViewDateRangeOptions13,ad:true,m:POST});; that is the url should not have wicket/page in front. If this fixes the problem then the issue is https://issues.apache.org/jira/browse/WICKET-5043 (I moved all panels and custom components used by this UserPage on the same package) Should't wicket use the current URL (http://account.dev.pippo.com/account/ ) as target for the Ajax request (to avoid browser blocking the requests)? In the markup file I have the following AJAX request Wicket.Ajax.ajax({u:../wicket/page?3-1.IBehaviorListener.0-content-contentList-layout-contentRight-overview-dateRange-listViewDateRangeOptions,e:change,c:listViewDateRangeOptions13,ad:true,m:POST});; Is this a wicket bug? I'm using Apache Wicket 6.9.1. Thanks a lot. Sergio
Re: Re: Wicket-bootstrap Bootstrap 3 support
Hi, Please file an issue. I think the main problem here is the usage of webjars. bootstrap.(css|js) are loaded from webjars-bootstrap.jar that contains all resources, including the fonts. But for some reason the resolving doesn't work. The same issue can been seen with the samples application when any non-bootswatch theme is used. On Thu, Sep 26, 2013 at 11:12 AM, Marcel Hoerr marcel.ho...@gmx.de wrote: hi, i replaced the my 0.8.x version with the new 0.9.0-SNAPSHOT and get the following error: WARN - WicketObjects - Could not resolve class [fonts] java.lang.ClassNotFoundException: fonts Actually this font can not be loaded: fonts/glyphicons-halflings-regular.woff I found this thread on stackoverflow, which indicated that there is a problem with bootstraps customizer tool: http://stackoverflow.com/questions/18369036/bootstrap-3-glyphicons-not-working Does wicket-bootstrap use customized themes (and therefor not all/wrong fonts or icons have been attached to wicket-bootstrap)? best reagards marcel Gesendet: Mittwoch, 25. September 2013 um 15:28 Uhr Von: Michael Haitz michael.ha...@1und1.de An: users@wicket.apache.org users@wicket.apache.org Betreff: Re: Wicket-bootstrap Bootstrap 3 support Hi, i've deployed a 0.9.0-SNAPSHOT to sonatype this morning ;) dependency groupIdde.agilecoders.wicket/groupId artifactIdwicket-bootstrap-core/artifactId version0.9.0-SNAPSHOT/version /dependency cheers, Michael Am 25.09.2013 um 14:24 schrieb David Beer david.m.b...@gmail.com: Hi All I am looking at using Bootstrap 3 for our next webapplication layout. I have used 2.3.2 with success and the Wicket-Bootstrap project. I just wondered what the status is of the support for BS3 before I start coding the initial layout. Or am I better sticking with BS2 for now and upgrading once Wicket-Bootstrap for BS3 is released. Thanks David - 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
[ANNOUNCE] WicketStuff 6.11.0 is released
Hi, WicketStuff core 6.11.0 based on Apache Wicket 6.11.0 is released and shortly will be available in Maven Central. The changelog for this release is: Martin Tzvetanov Grigorov (29): [async-tasks] Remove unused import of the AbstractTaskModel [gmap3-examples] Do not keep a reference to ServerGeocoder because it is not Serializable [gmap3] Minor cleanups [gmap3] Use only spaces. No functional changes [gmap3] Remove unused variables [gmap3] Minor improvements in GClientGeocoder [gmap3] Allow to set timeout for GClientGeocoder callbacks [gmap3] Show the error in a feedback message [gmap3] Code formatting [gmap3] Non functional changes [gmap3] Append character to StringBuilder when possible [gmap3] Enable usage of #addFunctionListener() in Ajax requests [gmap3] Javadoc fixes [gmap3] Javadoc fixes [gmap3] Expose InfoWindow's LatLng with a getter [gmap3] Add 'rightclick' event [gmap3] Generate fitBounds/panToBounds only if this is an Ajax request [gmap3] Minor improvement [autocomplete-tagit] Fixes #258 [gmap3-example] Example Jetty Maven plugin [gmap3] Reuse the already read value of 'address' request parameter [gmap3] Fixes #251. Make a call to the server only when client geocoder returns OK response [gmap3] Issue #251 Send a notification to the server with any GeocoderStatus. The application should decide how to react [gmap3] Add more event types Update the url for Apache Nexus Snapshots repository Fix whitespace [gmap2] Remove GMap2 module from children modules. [scala] Use Scala 2.10.2 everywhere Release WicketStuff 6.11.0 andunslg (29): Adding Wicket Whiteboard Refactoring Package Names Adding a Saved Whiteboard for the Whiteboard Example Merge remote-tracking branch 'origin/master' Adding Load Clip Art From Server Folder, Refactoring, Bug Fixes Adding Example Pictures Load clipArts to th whiteboard on page load is added Merge remote-tracking branch 'origin/master' Getting pictures of Document/PDF from server is implemented Adding the initial version of Document/PDF to whiteboard is implemented Adding sample pictures Adding Whiteboard Doc/PDF processing toolbar Improving Doc/PDF add to whiteboard Adding navigation of Doc/PDF pages which are added to whiteboard Refactoring and Formalizing Doc addition synchronization between clients is added Merge remote-tracking branch 'origin/master' Fixing Merge remote-tracking branch 'origin/master' Save/Load Whiteboard with Background is implemented with Bug Fixes Bug fixing and Adding Comments Improvements + Bug Fixing Adding license header Adding Undo Feature to the DOC/PDF More Fixes More Fixes Adding localizations to Whiteboard and Adding it to main build Merge remote-tracking branch 'origin/master' Changing whitespace svenmeier (10): added test for final method #256 support proxying classes with private constructors #257 support inherited methods tests for enums, private constructors and inherited methods removed final on fields to allow customization (via reflection for now) corrected javadoc extracted Evaluation from LazyModel let LoadableDetachableWrapper implement IChainingModel and work with null type moved proxyFactory to Evaluation, since LazyModel is no longer depending on it Evaluation with generic parameter Andrea Del Bene (2): small code improvements Update readme.md bitstorm (2): Introduce IMimeTypeResolver to retrieve the MIME type in input and output in a custom way. Merge branch 'master' of https://github.com/wicketstuff/core.git =Tom B (1): [InMethod Grid] - updated html for the AddDelete/Submit Cancel with text to help with what the icons mean. (alt/title attributes) Andun S.L. Gunawardana (1): Merge pull request #252 from solomax/master solomax (1): Copy/pasted code is cleaned-up; Proper methods are used instead of casts; Most files are reformatted; The WicketStuff team
Re: broken links in wicket-examples
Already fixed, see WICKET-5374. Thanks Maxim Sven On 09/26/2013 10:15 AM, Sven Meier wrote: It's an encoding issue: When streaming back the source over Ajax, SourcesPage does not care about the source encoding and thus produces invalid XML characters. Please create an issue in Jira. Thanks Sven On 09/26/2013 01:56 AM, Maxim Solodovnik wrote: Hello, just found some [1] *.properties.xml resources from here [2]: are producing 404 error with following URL: [3] [1] FormInput_ja.properties.xml, FormInput_ru.properties.xml, FormInput_th_TH.properties.xml, FormInput_zh_CN.properties.xml [2] http://www.wicket-library.com/wicket-examples-6.0.x/forminput/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?1SourcesPage_class=org.apache.wicket.examples.forminput.FormInput [3] http://www.wicket-library.com/wicket-examples-6.0.x/forminput/wicket/bookmarkable/undefined - 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: broken links in wicket-examples
Thanks! :) On Thu, Sep 26, 2013 at 5:10 PM, Sven Meier s...@meiers.net wrote: Already fixed, see WICKET-5374. Thanks Maxim Sven On 09/26/2013 10:15 AM, Sven Meier wrote: It's an encoding issue: When streaming back the source over Ajax, SourcesPage does not care about the source encoding and thus produces invalid XML characters. Please create an issue in Jira. Thanks Sven On 09/26/2013 01:56 AM, Maxim Solodovnik wrote: Hello, just found some [1] *.properties.xml resources from here [2]: are producing 404 error with following URL: [3] [1] FormInput_ja.properties.xml, FormInput_ru.properties.xml, FormInput_th_TH.properties.**xml, FormInput_zh_CN.properties.xml [2] http://www.wicket-library.com/**wicket-examples-6.0.x/** forminput/wicket/bookmarkable/**org.apache.wicket.examples.** source.SourcesPage?1**SourcesPage_class=org.apache.** wicket.examples.forminput.**FormInputhttp://www.wicket-library.com/wicket-examples-6.0.x/forminput/wicket/bookmarkable/org.apache.wicket.examples.source.SourcesPage?1SourcesPage_class=org.apache.wicket.examples.forminput.FormInput [3] http://www.wicket-library.com/**wicket-examples-6.0.x/** forminput/wicket/bookmarkable/**undefinedhttp://www.wicket-library.com/wicket-examples-6.0.x/forminput/wicket/bookmarkable/undefined --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax
Trim nbsp from text field input
We recently experienced a bug where someone was able to enter a trailing space into a TextField in spite of Wicket's automatic trimming of whitespace. Upon further investigation it appears the user had entered a non-breaking space, which is not removed by the String.trim() method that Wicket uses. It's easy to do this accidentally, e.g. by cutting-and-pasting from a web page. This is not so easy for us to correct, as FormComponent.trim(String) is final. We've resorted to overriding FormComponent.getInputAsArray() and trimming each string individually. Should Wicket use a more robust trim method? Or should FormComponent.trim(String) at least be made non-final so we adjust it to our needs in a less clunky way? jk - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Inline enclosure - i18n problem
Hi All, I am using an inline enclosure with greek text in the HTML file, in order to show/hide parts of a Form. When running on Linux everything works fine. On Windows I get question marks (like ) where the greek characters should be - but only within the enclosure, the rest of the page is OK. On both machines I have Tomcat 7 installed. The Ajax debug console shows that the Ajax response includes UTF-8 encoding in the header, so I assume that some conversion happens before the text is sent to the browser. Does anyone have a hint on where to start looking for a solution? Thanks Elias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Bunch of Page Expired exceptions in Wicket 6.10.0
Hey Martin, So I put in my breakpoint and it looks like that my page store is always empty, is always being invalidated by two repeated stack traces that come in the following order: http-thread-pool-5311(1)@8339 daemon, prio=5, in group 'grizzly-kernel', status: 'RUNNING' at org.apache.wicket.pageStore.DefaultPageStore.removePageData(DefaultPageStore.java:109) at org.apache.wicket.pageStore.DefaultPageStore.unbind(DefaultPageStore.java:161) at org.apache.wicket.page.PageStoreManager$SessionEntry.valueUnbound(PageStoreManager.java:307) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1738) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:178) at org.apache.wicket.session.HttpSessionStore.setAttribute(HttpSessionStore.java:344) at org.apache.wicket.Session.setAttribute(Session.java:848) at org.apache.wicket.page.DefaultPageManagerContext.setSessionAttribute(DefaultPageManagerContext.java:99) at org.apache.wicket.page.RequestAdapter.setSessionAttribute(RequestAdapter.java:89) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getSessionEntry(PageStoreManager.java:378) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getPage(PageStoreManager.java:349) at org.apache.wicket.page.AbstractPageManager.getPage(AbstractPageManager.java:107) at org.apache.wicket.page.PageManagerDecorator.getPage(PageManagerDecorator.java:52) at org.apache.wicket.page.PageAccessSynchronizer$2.getPage(PageAccessSynchronizer.java:257) at org.apache.wicket.DefaultMapperContext.getPageInstance(DefaultMapperContext.java:148) at org.apache.wicket.core.request.handler.PageProvider.getStoredPage(PageProvider.java:296) at org.apache.wicket.core.request.handler.PageProvider.resolvePageInstance(PageProvider.java:261) at org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:166) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.getPage(ListenerInterfaceRequestHandler.java:96) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:157) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) Fallowed by: http-thread-pool-5311(1)@8339 daemon, prio=5, in group 'grizzly-kernel', status: 'RUNNING' at org.apache.wicket.pageStore.DefaultPageStore.removePageData(DefaultPageStore.java:109) at org.apache.wicket.pageStore.DefaultPageStore.unbind(DefaultPageStore.java:161) at org.apache.wicket.page.PageStoreManager$SessionEntry.valueUnbound(PageStoreManager.java:307) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1738) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:178) at org.apache.wicket.session.HttpSessionStore.setAttribute(HttpSessionStore.java:344) at org.apache.wicket.Session.setAttribute(Session.java:848) at org.apache.wicket.page.DefaultPageManagerContext.setSessionAttribute(DefaultPageManagerContext.java:99) at org.apache.wicket.page.RequestAdapter.setSessionAttribute(RequestAdapter.java:89) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getSessionEntry(PageStoreManager.java:378) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.storeTouchedPages(PageStoreManager.java:405) at org.apache.wicket.page.RequestAdapter.commitRequest(RequestAdapter.java:181) at org.apache.wicket.page.AbstractPageManager.commitRequest(AbstractPageManager.java:98)
Re: Bunch of Page Expired exceptions in Wicket 6.10.0
The problem seems to be caused by http://issues.apache.org/jira/browse/WICKET-5164 With this change any kind of attribute added to the http session causes total removal of all data from the disk store. This looks quite serious. @Sven: can you take a look. On Thu, Sep 26, 2013 at 10:30 PM, Paul Bors p...@bors.ws wrote: Hey Martin, So I put in my breakpoint and it looks like that my page store is always empty, is always being invalidated by two repeated stack traces that come in the following order: http-thread-pool-5311(1)@8339 daemon, prio=5, in group 'grizzly-kernel', status: 'RUNNING' at org.apache.wicket.pageStore.DefaultPageStore.removePageData(DefaultPageStore.java:109) at org.apache.wicket.pageStore.DefaultPageStore.unbind(DefaultPageStore.java:161) at org.apache.wicket.page.PageStoreManager$SessionEntry.valueUnbound(PageStoreManager.java:307) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1738) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:178) at org.apache.wicket.session.HttpSessionStore.setAttribute(HttpSessionStore.java:344) at org.apache.wicket.Session.setAttribute(Session.java:848) at org.apache.wicket.page.DefaultPageManagerContext.setSessionAttribute(DefaultPageManagerContext.java:99) at org.apache.wicket.page.RequestAdapter.setSessionAttribute(RequestAdapter.java:89) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getSessionEntry(PageStoreManager.java:378) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getPage(PageStoreManager.java:349) at org.apache.wicket.page.AbstractPageManager.getPage(AbstractPageManager.java:107) at org.apache.wicket.page.PageManagerDecorator.getPage(PageManagerDecorator.java:52) at org.apache.wicket.page.PageAccessSynchronizer$2.getPage(PageAccessSynchronizer.java:257) at org.apache.wicket.DefaultMapperContext.getPageInstance(DefaultMapperContext.java:148) at org.apache.wicket.core.request.handler.PageProvider.getStoredPage(PageProvider.java:296) at org.apache.wicket.core.request.handler.PageProvider.resolvePageInstance(PageProvider.java:261) at org.apache.wicket.core.request.handler.PageProvider.getPageInstance(PageProvider.java:166) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.getPage(ListenerInterfaceRequestHandler.java:96) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:157) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) Fallowed by: http-thread-pool-5311(1)@8339 daemon, prio=5, in group 'grizzly-kernel', status: 'RUNNING' at org.apache.wicket.pageStore.DefaultPageStore.removePageData(DefaultPageStore.java:109) at org.apache.wicket.pageStore.DefaultPageStore.unbind(DefaultPageStore.java:161) at org.apache.wicket.page.PageStoreManager$SessionEntry.valueUnbound(PageStoreManager.java:307) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1738) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:178) at org.apache.wicket.session.HttpSessionStore.setAttribute(HttpSessionStore.java:344) at org.apache.wicket.Session.setAttribute(Session.java:848) at org.apache.wicket.page.DefaultPageManagerContext.setSessionAttribute(DefaultPageManagerContext.java:99) at org.apache.wicket.page.RequestAdapter.setSessionAttribute(RequestAdapter.java:89) at
Re: Inline enclosure - i18n problem
Hi, It sounds like different platform encodings. Try by adding -Dfile.encoding=UTF-8 to %CATALINA_OPTS% and read this page http://wiki.apache.org/tomcat/FAQ/CharacterEncoding On Thu, Sep 26, 2013 at 10:06 PM, e.spyro...@teamconcepts.gr wrote: Hi All, I am using an inline enclosure with greek text in the HTML file, in order to show/hide parts of a Form. When running on Linux everything works fine. On Windows I get question marks (like ) where the greek characters should be - but only within the enclosure, the rest of the page is OK. On both machines I have Tomcat 7 installed. The Ajax debug console shows that the Ajax response includes UTF-8 encoding in the header, so I assume that some conversion happens before the text is sent to the browser. Does anyone have a hint on where to start looking for a solution? Thanks Elias - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Bunch of Page Expired exceptions in Wicket 6.10.0
By rolling back to Wicket 6.9.0 I can confirm that the PageStoreManager works and I do see my page store content via DiskStoreBrowserPage. For a bit more environmental details, I was running my tests on top of GlassFish 3.1.2.2 Thanks for the heads up Martin! For now I'll stick to 6.9.x :) ~ Thank you, Paul Bors -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Thursday, September 26, 2013 5:01 PM To: users@wicket.apache.org Cc: Sven Meier Subject: Re: Bunch of Page Expired exceptions in Wicket 6.10.0 The problem seems to be caused by http://issues.apache.org/jira/browse/WICKET-5164 With this change any kind of attribute added to the http session causes total removal of all data from the disk store. This looks quite serious. @Sven: can you take a look. On Thu, Sep 26, 2013 at 10:30 PM, Paul Bors p...@bors.ws wrote: Hey Martin, So I put in my breakpoint and it looks like that my page store is always empty, is always being invalidated by two repeated stack traces that come in the following order: http-thread-pool-5311(1)@8339 daemon, prio=5, in group 'grizzly-kernel', status: 'RUNNING' at org.apache.wicket.pageStore.DefaultPageStore.removePageData(DefaultPag eStore.java:109) at org.apache.wicket.pageStore.DefaultPageStore.unbind(DefaultPageStore.j ava:161) at org.apache.wicket.page.PageStoreManager$SessionEntry.valueUnbound(Page StoreManager.java:307) at org.apache.catalina.session.StandardSession.setAttribute(StandardSessi on.java:1738) at org.apache.catalina.session.StandardSessionFacade.setAttribute(Standar dSessionFacade.java:178) at org.apache.wicket.session.HttpSessionStore.setAttribute(HttpSessionSto re.java:344) at org.apache.wicket.Session.setAttribute(Session.java:848) at org.apache.wicket.page.DefaultPageManagerContext.setSessionAttribute(D efaultPageManagerContext.java:99) at org.apache.wicket.page.RequestAdapter.setSessionAttribute(RequestAdapt er.java:89) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getSe ssionEntry(PageStoreManager.java:378) at org.apache.wicket.page.PageStoreManager$PersistentRequestAdapter.getPa ge(PageStoreManager.java:349) at org.apache.wicket.page.AbstractPageManager.getPage(AbstractPageManager .java:107) at org.apache.wicket.page.PageManagerDecorator.getPage(PageManagerDecorat or.java:52) at org.apache.wicket.page.PageAccessSynchronizer$2.getPage(PageAccessSync hronizer.java:257) at org.apache.wicket.DefaultMapperContext.getPageInstance(DefaultMapperCo ntext.java:148) at org.apache.wicket.core.request.handler.PageProvider.getStoredPage(Page Provider.java:296) at org.apache.wicket.core.request.handler.PageProvider.resolvePageInstanc e(PageProvider.java:261) at org.apache.wicket.core.request.handler.PageProvider.getPageInstance(Pa geProvider.java:166) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler .getPage(ListenerInterfaceRequestHandler.java:96) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler .respond(ListenerInterfaceRequestHandler.java:157) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(R equestCycle.java:861) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerSt ack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java :261) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCyc le.java:218) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(R equestCycle.java:289) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(Wicke tFilter.java:259) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilt er.java:201) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.jav a:282) Fallowed by: http-thread-pool-5311(1)@8339 daemon, prio=5, in group 'grizzly-kernel', status: 'RUNNING' at org.apache.wicket.pageStore.DefaultPageStore.removePageData(DefaultPag eStore.java:109) at org.apache.wicket.pageStore.DefaultPageStore.unbind(DefaultPageStore.j ava:161) at org.apache.wicket.page.PageStoreManager$SessionEntry.valueUnbound(Page StoreManager.java:307) at org.apache.catalina.session.StandardSession.setAttribute(StandardSessi on.java:1738) at
Re: Inline enclosure - i18n problem
Thanks for the pointer. I'll give it a try. Martin Grigorov mgrigo...@apache.org wrote on 27/09/2013 12:07:32 AM: Martin Grigorov mgrigo...@apache.org 27/09/2013 12:08 AM Please respond to users@wicket.apache.org To users@wicket.apache.org users@wicket.apache.org, cc Subject Re: Inline enclosure - i18n problem Hi, It sounds like different platform encodings. Try by adding -Dfile.encoding=UTF-8 to %CATALINA_OPTS% and read this page http://wiki.apache.org/tomcat/FAQ/CharacterEncoding On Thu, Sep 26, 2013 at 10:06 PM, e.spyro...@teamconcepts.gr wrote: Hi All, I am using an inline enclosure with greek text in the HTML file, in order to show/hide parts of a Form. When running on Linux everything works fine. On Windows I get question marks (like ) where the greek characters should be - but only within the enclosure, the rest of the page is OK. On both machines I have Tomcat 7 installed. The Ajax debug console shows that the Ajax response includes UTF-8 encoding in the header, so I assume that some conversion happens before the text is sent to the browser. Does anyone have a hint on where to start looking for a solution? Thanks Elias - 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
wicket + autowired annotation
Hi, I have simple project created from Quickstart, and I have deffined in springContext.xml bean named dbAccess. When I use: *@SpringBean private DbAccess dbAccess;* in *class HomePage extends WebPage*. It works, it creates bean and in constructor HomePage class I can access to dbAccess. But when I create class with one method: public class ClsDb { @Autowired private DbAccess dbAccess; public void save() { // ... dbAccess save something } } and in HomePage class I use new ClsDb().save();, dbAccess in ClsDb is null. What is neccessary to do for use @Autowired in ClsDb class? Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-autowired-annotation-tp4661529.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: Wicket DropDownChoice Question about Constructors and its Behavior
See section 9.2.2 CompoundPropertyModel and model inheritance of the Wicket Free Guide: http://wicket.apache.org/learn/books/freeguide.html Direct link: https://wicket-guide.googlecode.com/files/Wicket%20free%20guide.pdf#page77 I think you're confusing components with null models (hence they look up the wicket components hierarchy for a ConpoundPropertyModel to use) with components using empty new Model() models. When you define an empty model the user input will start out blank as you would expect. The same can be done if your (Compound)PropertyModel resolves to a POJO with a property whose value is null. If you don't specify a model at all, and none of your component's parents have a CompoundPropertyModel or they do but don't match your component's ID, then you're in troubles and you'll get you null model error. Have a great day, Paul Bors On Sep 26, 2013, at 3:57 AM, Patrick Davids patrick.dav...@nuboit.de wrote: Hmm... ok, does that mean, in forms I do not have to wrap my model(object) into a CompundPropertyModel, because DropDownList (or even all FormComponents?) automatically joins IComponentInheritedModel hierarchy? So, as conclusion, by using a constuctor with an empty model (id, new Model(), List choices) a exclude my DropDownChoice from the hierarchy? Patrick Am 26.09.2013 09:47, schrieb Martin Grigorov: Hi, This use case will work only when the DropDownChoice has a parent in the hierarchy with org.apache.wicket.model.IComponentInheritedModel, like org.apache.wicket.model.CompoundPropertyModel. In this case the dropdown will use a slot from its parent's IComponentInheritedModel. On Thu, Sep 26, 2013 at 9:39 AM, Patrick Davids patrick.dav...@nuboit.dewrote: Hi all, since I'm working with Wicket I am a bit confused about the Constructors of DropDownChoice Class. DropDownChoice provides Constructors without any Model or ModelObject. e.g. (id, List choices) This is logical in an use-case, for instance, having just a page with a SelectBox and my first click is about to choose something. And I may do not have any parent model object of the page, so I did not bind my DropDownChoice by PropertyModel expressions. So, in such cases... Why Wicket always complaints about try to set ModelObject of null model? Yes, I explicitly decided to use DropDownChoice without a model. Since nothing is chosen, the model object of the DropDownChoice is null. The behavior I expect is, the model object is the chosen option (object) after selecting one. But it seems, it does not work like this. Can someone please light me. :-) kind regards Patrick - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Mit freundlichen Grüßen, Patrick Davids NuboIT GmbH Co. KG Kieler Str. 103-107 • 25474 Bönningstedt Email: patrick.dav...@nuboit.de Handelsregister: HRA6819 Pi | Amtsgericht Pinneberg Geschäftsführung der Verwaltungsgesellschaft Daniel Fraga Zander HRB10145Pi | Amtsgericht Pinneberg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org