Re: Overriding markup loading results in errors with inheritance
Hi, Please create a quickstart and attach it to a ticket in Jira. I'm interested to see what breaks. Thanks! On Mon, Apr 29, 2013 at 1:02 AM, mazabel m.za...@snafu.de wrote: Thank you for your reply. The Wicket help describes how to change the file location the markup is loaded from. Since some of the markup files will eventually be loaded from a data base, simply adding another resource folder is not sufficient. I need to override ResourceStreamLocator and return a custom IResourceStream. When I do this, I get the described error for any markup containing inheritence. It is irrelevant whether I use a FileResourceStream as in my example code or a StringResourceStream from the markup code or something else, the error is always the same. Putting *exactly* the same markup code to the default location and returning super.locate(clazz,path), all works fine. Therefore the markup itself has no errors. Obviously, there is a difference whether I created the stream myself or use the stream created by standard ResourceStreamLocator, although getInputStream() delivers in both cases the same content. Martin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-markup-loading-results-in-errors-with-inheritance-tp4658319p4658369.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 -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/
Re: Authorization Selectbox
Hi, Apache Wicket cookbook by Igor has very good chapter about this topic. In short you should look at org.apache.wicket.authorization.IAuthorizationStrategy#isActionAuthorized() On Mon, Apr 29, 2013 at 9:59 AM, christoph.ma...@t-systems.com wrote: Hello, there is a selectbox in my webapp , where the user can select an action like resubmit or change state. In Addition there are different userroles in my webapp. I want that userrole standard only can see change state in this selectbox and the userrole admin should see resubmit and change state. How can I realize this? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0) 351 / 8152 - 209 email: christoph.ma...@t-systems.com -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/
Authorization Selectbox
Hello, there is a selectbox in my webapp , where the user can select an action like resubmit or change state. In Addition there are different userroles in my webapp. I want that userrole standard only can see change state in this selectbox and the userrole admin should see resubmit and change state. How can I realize this? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0) 351 / 8152 - 209 email: christoph.ma...@t-systems.com
Re: Authorization header in http
Martin, You really are great. Thank you for your response. It's incredible you take time to answer even when the questions was not much wicket beared. I hope I can return the community as much as you gave us. Thank you again. El lun, 29-04-2013 a las 07:57 +0200, Martin Grigorov escribió: Hi, See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html, p. 14.8. The Authorization header is a _request_ header. I.e. the user agent should set it. Wicket can set _response_ headers. An exception is Ajax request where Wicketcan set request headers. Your use case sounds like normal session tracking. Once authenticated you bind a session. This way the servlet container will use either JSESSIONID cookie or jsessionid request path parameter. On Mon, Apr 29, 2013 at 3:23 AM, Gonzalo Aguilar Delgado gagui...@aguilardelgado.com wrote: Hello, I'm using AuthenticatedWebApplication class to manage my login and roles. While it works well I want wicket to set the Authorization http header each time it does a request. I don't really know if this makes sense. The application is currently working in this context http://localhost:8080/lead-services-war/ If I login wicket should set the Authorization header in http. I have some services running in http://localhost:8080/lead-services-war/services and I need to use the same authorization made by wicket in this services. Do you know how to propagate this authorization? Thank you a lot in advance. Best regards,
Authorization
Hello, my app extends from AuthenticatedWebApplication. Some pages should have seen by user with a certain role. So I write this: @AuthorizeInstantiation(Useradministrator (SMW_GUI_USERADMIN_ROLE)) But when I login with a user with another role. This user can see this page. Have you any idea why? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0) 351 / 8152 - 209 email: christoph.ma...@t-systems.com
Re: Disabling Individual Checkboxes in CheckGroup
Thanks Sven, let me clarify something in your code: 1) #newItem only has the signature newItem(int); there is no newItem(int,IModel). 2) At the line super.configure() we get the error The method configure() is undefined for the type Check. 3) When you make references to enabled, I assume it's some global flag/variable that you're checking, which is set outside in the main module? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabling-Individual-Checkboxes-in-CheckGroup-tp4658165p4658388.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: Disabling Individual Checkboxes in CheckGroup
There is the Wicket way of doing thing simple, and then there our own way of overriding the default behavior of the framework for whatever needs you might have. In your case, I think you're overcomplicating things by way too much and you got yourself in a situation where it involved more work to accomplish something simple. Your code alone looks a bit too complicated to me for what is trying to do. I suggest you step back and list the use-cases you need and then approach the problem from a different angle. ~ Thank you, Paul Bors On Mon, Apr 29, 2013 at 10:47 AM, eugenebalt eugeneb...@yahoo.com wrote: Thanks Sven, let me clarify something in your code: 1) #newItem only has the signature newItem(int); there is no newItem(int,IModel). 2) At the line super.configure() we get the error The method configure() is undefined for the type Check. 3) When you make references to enabled, I assume it's some global flag/variable that you're checking, which is set outside in the main module? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabling-Individual-Checkboxes-in-CheckGroup-tp4658165p4658388.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: Authorization
As per http://wicket.apache.org/learn/projects/authroles.html@AuthorizeInstantiation takes a single string. You're literaly passing it Useradministrator (SMW_GUI_USERADMIN_ROLE) as a single role. Perhaps you meant @AuthorizeInstantiation(Useradministrator(SMW_GUI_USERADMIN_ROLE))? ~ Thank you, Paul Bors On Mon, Apr 29, 2013 at 6:57 AM, christoph.ma...@t-systems.com wrote: Hello, my app extends from AuthenticatedWebApplication. Some pages should have seen by user with a certain role. So I write this: @AuthorizeInstantiation(Useradministrator (SMW_GUI_USERADMIN_ROLE)) But when I login with a user with another role. This user can see this page. Have you any idea why? Mit freundlichen Grüßen Christoph Manig Systems Engineer T-Systems International GmbH Systems Integration - SC Travel, Transport Logistics Hoyerswerdaer Str. 18 01099 Dresden tel.: +49 (0) 351 / 8152 - 188 fax:+49 (0) 351 / 8152 - 209 email: christoph.ma...@t-systems.com
Re: Submit button without form component
Thanks for the suggestion. I dropped the button component and went for a straight stateless form. This allows me to still have a single Wicket component. On 27/04/2013 10:06 AM, Martin Grigorov wrote: Hi, I haven't tried something like this before and I don't know what exactly breaks but the simplest solution I see at the moment is to use StatelessForm. On Sat, Apr 27, 2013 at 4:01 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hello, I have action links which I want to transform to POST actions since they can have side-effects on the database. (See http://stackoverflow.com/** questions/679013/get-vs-post-**best-practiceshttp://stackoverflow.com/questions/679013/get-vs-post-best-practices) My understanding is that this is only possible with either javascript or forms. I decided (for now) to use forms since they're more accessible and easier to do while keeping the page stateless. I was hoping to use markup like so: form action=. method=post button wicket:id=doItdo it!/button /form Note that there is only a Button component and no Form. Since the form contains only the button, I'd really like to omit it from the component hierarchy to keep things simple. Is this possible? I can't get my Buttons onSubmit() method called... One part of the problem is that the action attribute gets changed automatically by Wicket to a relative path to the application context root. Or is there another better way to achieve POSTing in Wicket? Regards, Bertrand --**--**- 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-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
file listing in the browser
Hi, I am using wicket 1.5. I would like to know how to implement, given a directory (/tmp/backup/) list all the files from that directory in the browser. I have a bunch of csv files . I want to navigate to the page backup.html in the browse and list all the files from that directory. All these running in tomcat. Thanks Pen -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/file-listing-in-the-browser-tp4658393.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: Disabling Individual Checkboxes in CheckGroup
Hi, I didn't check the code with a compiler so please excuse any errors. 1) see ListView#newItem(int, IModel) 2) see Component#onConfigure() 3) enabled could be a member variable of the containing panel Regards Sven On 04/29/2013 04:47 PM, eugenebalt wrote: Thanks Sven, let me clarify something in your code: 1) #newItem only has the signature newItem(int); there is no newItem(int,IModel). 2) At the line super.configure() we get the error The method configure() is undefined for the type Check. 3) When you make references to enabled, I assume it's some global flag/variable that you're checking, which is set outside in the main module? Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabling-Individual-Checkboxes-in-CheckGroup-tp4658165p4658388.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Disabling Individual Checkboxes in CheckGroup
Thanks Sven. We don't have the below methods. We are using Wicket 1.4.7, probably time to upgrade. ListView#newItem(int, IModel) see Component#onConfigure() -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabling-Individual-Checkboxes-in-CheckGroup-tp4658165p4658395.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: Disabling Individual Checkboxes in CheckGroup
1.4.7 ... that's really old :/. Sven On 04/29/2013 09:13 PM, eugenebalt wrote: Thanks Sven. We don't have the below methods. We are using Wicket 1.4.7, probably time to upgrade. ListView#newItem(int, IModel) see Component#onConfigure() -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Disabling-Individual-Checkboxes-in-CheckGroup-tp4658165p4658395.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Browser Back Button Question
Hey guys, My question today is that when I click on a page link on my wicket application and hit back on the web browser I get a results of Session Closed. I'm not understanding why that is. I understand that wicket keeps version of your page which is why you have ?# at the end of your webpage link, is its something with my server setup where I'm expiring my session too quickly? My tomcat manager page says that I expire my sessions 30 minutes. Thanks! David -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Browser-Back-Button-Question-tp4658397.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: Browser Back Button Question
Hi, On Mon, Apr 29, 2013 at 10:07 PM, dhongyt davidhtr...@gmail.com wrote: Hey guys, My question today is that when I click on a page link on my wicket application and hit back on the web browser I get a results of Session Closed. Most probably the saving of the page in the store was not successful for some reason. Check your server logs. I'm not understanding why that is. I understand that wicket keeps version of your page which is why you have ?# at the end of your webpage link, is its ?# is to show you the same instance of the page when you use F5/Refresh buttons. something with my server setup where I'm expiring my session too quickly? My tomcat manager page says that I expire my sessions 30 minutes. Thanks! David -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Browser-Back-Button-Question-tp4658397.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 -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/
Session messages
Hello, When using the Sessions info(), error() and success() methods, and the session is not bound, the messages are lost. This can happen easily when on stateless pages. The fix for this is easy: I need to make sure the session is bound and call Session.bind(). However, I think it would be nice for the Session to get bound automatically when adding messages to it. Otherwise, the messages are silently discarded and the cause is not so obvious. What do you think, should I open an issue for this? Regards, Bertrand - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Overriding markup loading results in errors with inheritance
Thank you for the advice. I was able to reproduce the problem with a few lines of code. I created an issue here: https://issues.apache.org/jira/browse/WICKET-5163 https://issues.apache.org/jira/browse/WICKET-5163 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Overriding-markup-loading-results-in-errors-with-inheritance-tp4658319p4658400.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 stack on a netbook
I developed a quite large app in wicket using a nice samsung nc10. I had to upgrade when I changed the db from mysql to cassandra. On Fri, Apr 26, 2013 at 2:30 AM, Sven Meier s...@meiers.net wrote: I did my Wicket development on a netbook a few years ago and it worked fine. Running Eclipse on XGA display resolution was a PITA though :(. Sven On 04/25/2013 09:17 PM, Rafael Barrera Oro wrote: Hello everyone! I was wandering if anyone was successful in developing wicket apps from a netbook (atom processor, one or two gigs of ram, etc...) For wicket stack i mean mysql and eclipse (the latter with an inner tomcat instance) Thanks in advance! Rafael --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jorge Gallardo jorgeagalla...@gmail.com