Re: Overriding markup loading results in errors with inheritance

2013-04-29 Thread Martin Grigorov
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.

Re: Authorization Selectbox

2013-04-29 Thread Martin Grigorov
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 ,

Authorization Selectbox

2013-04-29 Thread Christoph.Manig
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

Re: Authorization header in http

2013-04-29 Thread Gonzalo Aguilar Delgado
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ó:

Authorization

2013-04-29 Thread Christoph.Manig
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

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread eugenebalt
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

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread Paul Bors
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

Re: Authorization

2013-04-29 Thread Paul Bors
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,

Re: Submit button without form component

2013-04-29 Thread Bertrand Guay-Paquet
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

file listing in the browser

2013-04-29 Thread pen
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

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread Sven Meier
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

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread eugenebalt
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:

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-29 Thread Sven Meier
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:

Browser Back Button Question

2013-04-29 Thread dhongyt
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

Re: Browser Back Button Question

2013-04-29 Thread Martin Grigorov
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

Session messages

2013-04-29 Thread Bertrand Guay-Paquet
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

Re: Overriding markup loading results in errors with inheritance

2013-04-29 Thread mazabel
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:

Re: Wicket stack on a netbook

2013-04-29 Thread Jorge Gallardo
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