Re: Spring secury + auth-roles authentication and authorization: access denied
http://javajeedevelopment.blogspot.com/2011/03/integrating-spring-security-3-with.html 2011/11/7 massizigao fha...@online.de Hello together, I am trying to implement an authentication+authorization using Spring security and wicket-auth-roles based on this https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html article . The application is working, that means i can authencate and can see some pages. But then after more clicking, i receive an access denied error. The strange think is, when i logout and login again, thinks seem to work fine. So it happens only at the first time login. Debugging shows me that the authentication object is null. I try to identify the place it is set to null but without success. Hier a little code from my implementation. I am using wicket 1.5.2 tomcat 6.0.33 spring 3.0.6 spring security 3.0.7 The page is mounted to /index. *spring-security-context.xml:* *web.xml* *CustomAuthenticatedWebSession.java* *A secured page: Index.java* Thank you for your help. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Spring-secury-auth-roles-authentication-and-authorization-access-denied-tp4004013p4004013.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 -- Cdt Moèz
Re: [OT] Wicket Jobs List?
Hi, We have a linkedin group Apache Wickethttp://www.linkedin.com/groups?jobs=gid=80181trk=anet_ug_jobs and under this group we have a panel jobs I hope it helps you. 2011/10/19 James Carman ja...@carmanconsulting.com Fellow Wicketeers, Do we have a special mailing list for Wicket jobs? I'm looking again and would like to find a good place to advertise that fact. :) Thanks, James Carman - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Cdt Moèz
job
searching for someone who is familiar with Wicket for a 4+ month contract in San Antonio, Texas. If you or anyone you know is interested please message me or email me at ro...@millgroupusa.com. -- Cdt Moèz
Re: wicket is secure by default. why use spring security?
http://javajeedevelopment.blogspot.com/2011/03/integrating-spring-security-3-with.html 2011/9/19 Andrea Del Bene adelb...@ciseonweb.it It all depends on your needs ;-). I don't know much about Spring Security, but personally speaking I've always been fine with Wicket authentication. While I was trying to design a wicket app in my mind - the first thing I thought of was authentication and ( spring ) security. I know that wicket is secure by default ( a quote from wicket features? :), we can use wicket auth annotation based security. Wicket will automatically redirect to original page after login. So...did anyone think of it - what is the real reason to use spring or other security framework ( shiro? ) for authentication? what benefits does it bring apart from some standards overhead for the app? is it integration with other auth systems ( OpenID, Facebook login or whatever )? or what? Just pennies for thought... Žilvinas Vilutis Mobile: (+1) 623 330 6048 E-mail: cika...@gmail.com --**--**- 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 -- Cdt Moèz
Re: moving from development to deployment mode
Hi, In your application class add the following method: @Override public String getConfigurationType() { return Application.DEPLOYMENT; } 2011/5/4 henry henstri...@yahoo.com hi Guys, I just developed a web application using wicket and is running on a glassfish server and anything i run the wicket web application i see things like: *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** So i tried moving it from development mode to deployment by placing this context in my web.xml: context-param param-nameconfiguration/param-name param-valuedeployment/param-value /context-param .when i run it again i still get thesame *** WARNING: Wicket is running in DEVELOPMENT mode. ***. Any help please Regards -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/moving-from-development-to-deployment-mode-tp3495199p3495199.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: moving from development to deployment mode
Hi Henry, You have two solutions and nothing else: 1) Override the method getConfigurationType() in your application class 2) Add in your web.xml: context-param param-namewicket.configuration/param-name param-valuedeployment/param-value /context-param or in your filter: @WebInitParam(name=wicket.configuration, value=deployment) I also work with glassfish and it's ok for me. 2011/5/4 henry henstri...@yahoo.com Hi Moez, Could it be a result of the wicket version that am using?Because i have cleared web container and i still get same message.Take a look at this. [Application] Started Wicket version 1.4-rc1 in development mode *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** Application started with version 1.4-rc1 in development mode.Dont seems to understand that,is is that by default wicket runs its application in a development mode? please need more help on this. Regards -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/moving-from-development-to-deployment-mode-tp3495199p3495527.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: problems with spring integration
Hi, For this error: *java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback (...)* you can add the cglib-nodep library . I think, this link ( http://javajeedevelopment.blogspot.com/2011/03/integrating-spring-security-3-with.html) can help you. Thanks 2011/3/30 hrbaer herber.m...@gmail.com Just to summarize my status: I've added addComponentInstantiationListener( new SpringComponentInjector(this) ); to the init method of my xxxApplication file, I added to my applicationContext and withing my WebPage I have this code: public class Test extends WebPage { @SpringBean private UserService userService; public Test( PageParameters params ) { (...) } If I add to the applicationContext I get the error Could not instantiate bean class [de.Test]: No default constructor found; If I don't add this line I get the error message WicketMessage: Can't instantiate page using constructor public de.Test(org.apache.wicket.PageParameters) and argument Root cause: java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback (...) At the moment I'm at a loss. Every help would be appreciated. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problems-with-spring-integration-tp3416484p3418488.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: spring 3.1 wicket auth integration
https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html 2011/2/28 wic...@geofflancaster.com wic...@geofflancaster.com Can anyone point me to a tutorial or example on getting spring 3.x setup and working with wicket-auth-roles for an AuthenticatedWebApplication? Thanks in advance. mail2web.com – Enhanced email for the mobile individual based on Microsoft® Exchange - http://link.mail2web.com/Personal/EnhancedEmail - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: File upload progress bar
If the example doesn't work so I think the problem in your browser. Try to empty the cache, cookies, histories ... and tries again. 2011/2/2 Valentin Avksentyev v...@360works.com Hi I've been beating my head against the wall with this. I'm overriding newWebRequest in my Application class: @Override protected WebRequest newWebRequest(HttpServletRequest servletRequest) { return new UploadWebRequest(servletRequest); } Here is the code in my upload panel class: FormVoid uploadform = new FormVoid(fileUploadForm) { @Override protected void onSubmit() { final FileUpload upload = fileUploadField.getFileUpload(); if (upload != null) { try { File newFile = new File(uploadFolder, upload.getClientFileName() ); // Save to new file newFile.createNewFile(); upload.writeTo(newFile); _processSelection(server, newFile, destFolder); } catch (Exception e) { throw new RuntimeException(Unable to write file); } } else { throw new RuntimeException( file selected for upload is empty ); } } }; uploadform.setMultiPart(true); uploadform.setMaxSize(Bytes.gigabytes(1)); uploadform.add(fileUploadField = new FileUploadField(fileInput)); uploadform.add(new UploadProgressBar(progress, uploadform)); uploadform.add( new UploadValidator(fileUploadField, prefix) ); add( uploadform ); This is based on the examples, the examples themselves are not working for me either: I tried, http://wicketstuff.org/wicket13/upload and http://www.wicket-library.com/wicket-examples/upload/ (the latter URL kinda works, it increments the remaining time but does not track the progress) What am I doing wrong -Valentin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
eHour
A framework for timesheet management based on Wicket: eHour. http://javajeedevelopment.blogspot.com/2010/12/ehour-timesheet-management.html
Re: 1.5 integer textfield
Hi all, make sure that the type of refreshRate is Integer. Thanks MBR http://javajeedevelopment.blogspot.com/2010/12/brix-cms-apache-wicket-based-cms.html 2010/12/14 Martin Grigorov mgrigo...@apache.org Can you try with FormVoid instead of FormString On Tue, Dec 14, 2010 at 4:12 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: refreshRateModel = new ModelInteger(); refreshRateModel.setObject(coreDaoService .getWallboardRefreshTimeInSeconds()); FormString viewerAjaxrefreshRateForm = new FormString( viewerAjaxrefreshRateForm) { @Override protected void onSubmit() { Integer newRefreshRate = refreshRateModel.getObject(); coreDaoService .saveWallboardRefreshTimeInSeconds(newRefreshRate); info(Stored new refresh rate); } }; TextFieldInteger refreshRateTextField = new TextFieldInteger( refreshRate, refreshRateModel); RangeValidatorInteger rangeValidator = new RangeValidatorInteger(1, 1800); refreshRateTextField.add(rangeValidator); viewerAjaxrefreshRateForm.add(refreshRateTextField); add(viewerAjaxrefreshRateForm); when I enter a value I get this exception: WicketMessage: Exception 'java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String' occurred during validation org.apache.wicket.validation.validator.RangeValidator on component 5:viewerAjaxrefreshRateForm:refreshRate Stacktrace Root cause: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String at java.lang.String.compareTo(String.java:92) at org.apache.wicket.validation.validator.RangeValidator.validate(RangeValidator.java:76) at org.apache.wicket.markup.html.form.FormComponent.validateValidators(FormComponent.java:1445) at org.apache.wicket.markup.html.form.FormComponent.validate(FormComponent.java:1042) at org.apache.wicket.markup.html.form.Form$17.validate(Form.java:1833) at org.apache.wicket.markup.html.form.Form$ValidationVisitor.component(Form.java:164) at org.apache.wicket.markup.html.form.Form$ValidationVisitor.component(Form.java:148) at org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:278) at org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:267) at org.apache.wicket.util.visit.Visits.visitPostOrder(Visits.java:249) at org.apache.wicket.markup.html.form.FormComponent.visitFormComponentsPostOrder(FormComponent.java:338) at org.apache.wicket.markup.html.form.Form.visitFormComponentsPostOrder(Form.java:1041) at org.apache.wicket.markup.html.form.Form.validateComponents(Form.java:1825) at org.apache.wicket.markup.html.form.Form.validate(Form.java:1805) at org.apache.wicket.markup.html.form.Form.process(Form.java:863) at org.apache.wicket.markup.html.form.Form.process(Form.java:821) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:786) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:211) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:192) at org.apache.wicket.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:173) at org.apache.wicket.request.RequestHandlerStack.executeRequestHandler(RequestHandlerStack.java:84) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:206) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:248) at org.apache.wicket.protocol.h
Brix CMS : Based Wicket framework
It's very important for wicket users to now what is Brix CMS. So see the following link: http://javajeedevelopment.blogspot.com/2010/12/brix-cms-apache-wicket-based-cms.html
Re: Brix CMS : Based Wicket framework
Ok, thank you. 2010/12/10 Korbinian Bachl - privat korbinian.ba...@whiskyworld.de Hello Moez, the link to the repo is wrong. Brix is no longer on googlecode but on github: https://github.com/brix-cms/brix-cms Keep spreading the word for Brix, best, Korbinian Am 10.12.10 15:58, schrieb moèz ben rhouma: It's very important for wicket users to now what is Brix CMS. So see the following link: http://javajeedevelopment.blogspot.com/2010/12/brix-cms-apache-wicket-based-cms.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Date components
You just add the following code to your java page: *add(dateTimeField = new DateTimeField(dateEnvoi, new PropertyModel(this, date)) {});* Which dateEnvoi defined in the markup file (the key of the component). And date defined in java like : private Date date = new Date(); 2010/4/19 Ray Weidner ray.weidner.wic...@gmail.com Hi All, Does anyone have any good suggestions for date/time entry components? Does Wicket offer a standard solution for this common case? Thanks, Ray Weidner
Re: problem populating ListMultipleChoice selection model
Try to change the type of selectedParties from set to List selectedParties = new ArrayList(); 2010/4/19 Ray Weidner ray.weidner.wic...@gmail.com Hi All, I'm trying to do something pretty simple: create a choice list with multi-select, which I iterate through upon clicking a button. Unfortunately, it looks like my selections aren't being recorded in the model that's supposed to receive them. Here's what the pertinent code looks like: - Java: public EditIssuePage extends WebPage { // I've tried removing the 'transient' keyword, but that doesn't change anything transient private Set Party selectedParties = new HashMap Party (); ... public EditIssuePage () { ... Form form = new Form (editIssueForm); add (form); ... ListMultipleChoice Party partyChoice = new ListMultipleChoice Party ( parties, new PropertyModel (this, selectedParties), new LoadableDetachableModel List Party () { @Override public List Party load () { return new Vector Party (retrieveAllPartiesFromDAO ()); } }, new IChoiceRenderer Party () { public Object getDisplayValue (Party object) { return object.getFullName (); } public String getIdValue (Party object, int index) { return object.getId (); } } ); Button addPartiesButton = new Button (addPartiesButton) { @Override public void onSubmit () { logger.debug (Number of selected parties: + selectedParties.size ()); // always reporting zero! for (Party selectedParty : selectedParties) { ... } } }; form.add (partyChoice); form.add (addPartiesButton); } private Set Party retrieveAllPartiesFromDAO () { // does what it sounds like } } - HTML: (My memory is a bit hazy here; I don't have any of this code in front of me as I write this) ... select multiple wicket:id=parties option[A party should be here]/option /select submit wicket:id=addPartiesButton name=Add Selected Parties/ ... The page renders fine, with all Party objects listed for selection. But when I select one or more of the rows and click the button, the log message I see is Number of selected parties: 0, no matter what. I have very similar logic working on another page, so I'm pretty confused about what's the problem here. All advice is much appreciated. Thanks, Ray Weidner
wicket an JEE6 (web.xml not mandatory)
http://www.jroller.com/ouertani/entry/tips_1_wicket_and_jee
Re: resource (css) loading
If I understand , you can use in constructor of class java the following code: add(new StyleSheetReference(stylesheet, BasePage.class, style.css)); and in the html page you add: link wicket:id=stylesheet 2010/4/7 sahar rostami sahar.rost...@gmail.com Thanks MZemeck But my question in another form is Where wicket load css (which class)? how wicket knows where look up a css file? i'm trying to override default location of css file and read them from path(s) specified in application start up ,but i can't because i don't know how wicket loads them. any idea would help me! thanks On Wed, Apr 7, 2010 at 7:50 PM, mzem...@osc.state.ny.us wrote: One difference I am aware of (and community correct me if I am wrong), Wicket GZIPs resources. So if you directly link to the css using an href you will not have that feature. sahar rostami sahar.rost...@gmail.com 04/07/2010 11:16 AM Please respond to users@wicket.apache.org To Wicket User Mailing List users@wicket.apache.org cc Subject resource (css) loading Hi all, I want to know how wicket loads css files from location specified in HeaderContributer or using href in header? Thanks in advanced! Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information.
Re: resource (css) loading
In java add(new StyleSheetReference(stylesheet, BasePage.class, *style.css*)); style.css is the path of the file style.css (i.e you can write /stylesheets/style.css ...) 2010/4/7 sahar rostami sahar.rost...@gmail.com No , i want to know how wicket knows where is style.css? On Wed, Apr 7, 2010 at 8:24 PM, moèz ben rhouma benrhouma.m...@gmail.com wrote: If I understand , you can use in constructor of class java the following code: add(new StyleSheetReference(stylesheet, BasePage.class, style.css)); and in the html page you add: link wicket:id=stylesheet 2010/4/7 sahar rostami sahar.rost...@gmail.com Thanks MZemeck But my question in another form is Where wicket load css (which class)? how wicket knows where look up a css file? i'm trying to override default location of css file and read them from path(s) specified in application start up ,but i can't because i don't know how wicket loads them. any idea would help me! thanks On Wed, Apr 7, 2010 at 7:50 PM, mzem...@osc.state.ny.us wrote: One difference I am aware of (and community correct me if I am wrong), Wicket GZIPs resources. So if you directly link to the css using an href you will not have that feature. sahar rostami sahar.rost...@gmail.com 04/07/2010 11:16 AM Please respond to users@wicket.apache.org To Wicket User Mailing List users@wicket.apache.org cc Subject resource (css) loading Hi all, I want to know how wicket loads css files from location specified in HeaderContributer or using href in header? Thanks in advanced! Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information.