[Wicket-user] Authentication Tomcat - Wicket
Dear, I search to implements security on my wicket Application. I plan to use Tomcat 5.X for Authentication, So I search a simple Authentication page to use it (Email,Password,Role), do you know how to implement this in Wicket. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Read-write versus read-only versions of a form...
On 11/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote: use an attrib modifier to append readonly=readonly attrib, or just disable the formcomponentIt seems that the readonly modifier can only be applied with input type=text/ so that is not a general solution. The other one disabling the form works, but suggests that the fields are editable even though form submission has no effect. Also, the second one is an all or nothing solution enabling or disabling all fields at once. It looks like I have to develop something myself. I am going to think hard now on what to do: develop custom forms and panels for read-only versions or develop a generic mechanism. Cheers Erik -igor On 11/6/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi,In my application I have the situation that when an object reaches a certain state, it can no longer be modified or in some cases onlyparts of the entities state may be modified.As a result, what I need is a method of easily creating read-onlyversions of a form where some or all fields have become read only. I want to do this without duplicating information so a solution where Icreate a read-only version and a read-write version for the sameentity is not really a solution for me.Of course, I could always roll my own by defining a special panel for every basic form component, such as:wicket:panel span wicket:id=readonlyLabel here/span input type=text wicket:id=readwrite/input /wicket:paneland then enabling only one of these components depending on the context.Is there already a standard solution for this somewhere?CheersErik- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Read-write versus read-only versions of a form...
On 11/7/06, Erik Brakkee [EMAIL PROTECTED] wrote: On 11/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote: use an attrib modifier to append readonly=readonly attrib, or just disable the formcomponentIt seems that the readonly modifier can only be applied with input type=text/ so that is not a general solution. The other one disabling the form works, but suggests that the fields are editable even though form submission has no effect. what browser/platform are you testing in? in ffox2 on windows i dont think those fields are still editable, they are grayed out. Also, the second one is an all or nothing solution enabling or disabling all fields at once. instead of disabling the form you can also disable individual form components It looks like I have to develop something myself. I am going to think hard now on what to do: develop custom forms and panels for read-only versions or develop a generic mechanism. -igorCheers Erik -igor On 11/6/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi,In my application I have the situation that when an object reaches a certain state, it can no longer be modified or in some cases onlyparts of the entities state may be modified.As a result, what I need is a method of easily creating read-onlyversions of a form where some or all fields have become read only. I want to do this without duplicating information so a solution where Icreate a read-only version and a read-write version for the sameentity is not really a solution for me.Of course, I could always roll my own by defining a special panel for every basic form component, such as:wicket:panel span wicket:id=readonlyLabel here/span input type=text wicket:id=readwrite/input /wicket:paneland then enabling only one of these components depending on the context.Is there already a standard solution for this somewhere?CheersErik- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Read-write versus read-only versions of a form...
Did you try the 'enabled' property of components? That should block input for form components, and put the appropriate attribute in the tag. Looking at it, I see it's a bit rough around the edged, but it should basically work. Eelco On 11/7/06, Erik Brakkee [EMAIL PROTECTED] wrote: On 11/6/06, Igor Vaynberg [EMAIL PROTECTED] wrote: use an attrib modifier to append readonly=readonly attrib, or just disable the formcomponent It seems that the readonly modifier can only be applied with input type=text/ so that is not a general solution. The other one disabling the form works, but suggests that the fields are editable even though form submission has no effect. Also, the second one is an all or nothing solution enabling or disabling all fields at once. It looks like I have to develop something myself. I am going to think hard now on what to do: develop custom forms and panels for read-only versions or develop a generic mechanism. Cheers Erik -igor On 11/6/06, Erik Brakkee [EMAIL PROTECTED] wrote: Hi, In my application I have the situation that when an object reaches a certain state, it can no longer be modified or in some cases only parts of the entities state may be modified. As a result, what I need is a method of easily creating read-only versions of a form where some or all fields have become read only. I want to do this without duplicating information so a solution where I create a read-only version and a read-write version for the same entity is not really a solution for me. Of course, I could always roll my own by defining a special panel for every basic form component, such as: wicket:panel span wicket:id=readonlyLabel here/span input type=text wicket:id=readwrite/input /wicket:panel and then enabling only one of these components depending on the context. Is there already a standard solution for this somewhere? Cheers Erik - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Read-write versus read-only versions of a form...
The good thing also about setting the disabled property that on top of adding the proper attribute, it should block any input in case you're dealing with some smartass trying to circumvent the fact that the client renders a field as read-only. Eelco On 11/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 11/7/06, ChuckDeal [EMAIL PROTECTED] wrote: We have the same kind of requirements for our app. We use the setEnabled method of FormComponent to mark a field as disabled (setEnabled(false)), then when it is rendered, it defaults to having the disabled attribute added to the field. The only problem that we have noticed is that TextArea does not work as we would like it when disabled because it becomes unscrollable, instead we override the onDisabled() method of TextArea to set the readonly attribute as well as a css style attribute (color: GrayText;) to make it appear disabled. Yep, that's exactly why protected void onDisabled(final ComponentTag tag) was introduced recently. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Read-write versus read-only versions of a form...
what browser/platform are you testing in? in ffox2 on windows i dont think those fields are still editable, they are grayed out.I am editing on firefox 1.5.0.7 on SuSE linux 10.1 and there the fields are still editable. strange, if a field has disabled=disabled it should not be editable, sounds like a bug in ffox or suse Also, the second one is an all or nothing solution enabling or disabling all fields at once. instead of disabling the form you can also disable individual form components Ok, but then I have to look at how to style them because they are not that readable. did you try input[disabled]{color:#f00} ?-igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] error pages
Title: error pages My project has a requirement to not show stack traces in production mode. with getApplicationSettings().setInternalErrorPage(ErrorPage.class); set I still receive an Unexpected RuntimeException page with a full stack trace, absolute path to the war and package structure, and the html template file to the page. Is the wicket Internal Error Page not the page i need to set so that i NEVER see a wicket error page other than the one i defined. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] error pages
If you set your application to be in deployment mode, that's what will happen. Eelco On 11/7/06, Lusebrink, Scott E CTR DISA GIG-CS [EMAIL PROTECTED] wrote: My project has a requirement to not show stack traces in production mode. with getApplicationSettings().setInternalErrorPage(ErrorPage.class); set I still receive an Unexpected RuntimeException page with a full stack trace, absolute path to the war and package structure, and the html template file to the page. Is the wicket Internal Error Page not the page i need to set so that i NEVER see a wicket error page other than the one i defined. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with ModalWindow andAbstractAjaxTimerBehavior
The problem was with ModalWindow.PageCreator and how the Page within the ModalWindow was instantiated. Of the code fragments below the former works but the latter doesn't. I'm not sure why... I must have forgotten to read that page of the Java Handbook :-P public class MyDialog extends ModalWindow{ private Page myPage; public MyDialog(String id){ super(id); setPageCreator(new ModalWindow.PageCreator(){ public Page createPage(){ return page; } }); public class MyDialog extends ModalWindow{ private Page myPage = new MyPage(); public MyDialog(String id){ super(id); setPageCreator(new ModalWindow.PageCreator(){ public Page createPage(){ page = new MyPage(); return page; } }); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matej Knopp Sent: Monday, November 06, 2006 1:07 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Problem with ModalWindow andAbstractAjaxTimerBehavior I don't really know what could get wrong. Maybe if you submit a testcase, I could look into it. -Matej Mark Southern wrote: I have an AbstractAjaxTimerBehavior added to a FeedBackPanel that refreshes it every few seconds. On the same page I have an AjaxLink that opens a ModalWindow. In the ModalWindow, a selection is made and when it closes that value is written back to the parent. The TimerBehaviour runs consistently up until the point that the ModalWindow is opened. After that it does not run at all. Does anyone have any suggestions, please? Thanks, Mark. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with ModalWindowandAbstractAjaxTimerBehavior
Opps. Can't even write pseudo-code. Fixed that for you :-) public class MyDialog extends ModalWindow{ private Page myPage; public MyDialog(String id){ super(id); setPageCreator(new ModalWindow.PageCreator(){ public Page createPage(){ page = new MyPage(); return page; } }); public class MyDialog extends ModalWindow{ private Page myPage = new MyPage(); public MyDialog(String id){ super(id); setPageCreator(new ModalWindow.PageCreator(){ public Page createPage(){ return page; } }); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Southern Sent: Tuesday, November 07, 2006 3:23 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Problem with ModalWindowandAbstractAjaxTimerBehavior The problem was with ModalWindow.PageCreator and how the Page within the ModalWindow was instantiated. Of the code fragments below the former works but the latter doesn't. I'm not sure why... I must have forgotten to read that page of the Java Handbook :-P public class MyDialog extends ModalWindow{ private Page myPage; public MyDialog(String id){ super(id); setPageCreator(new ModalWindow.PageCreator(){ public Page createPage(){ return page; } }); public class MyDialog extends ModalWindow{ private Page myPage = new MyPage(); public MyDialog(String id){ super(id); setPageCreator(new ModalWindow.PageCreator(){ public Page createPage(){ page = new MyPage(); return page; } }); -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matej Knopp Sent: Monday, November 06, 2006 1:07 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Problem with ModalWindow andAbstractAjaxTimerBehavior I don't really know what could get wrong. Maybe if you submit a testcase, I could look into it. -Matej Mark Southern wrote: I have an AbstractAjaxTimerBehavior added to a FeedBackPanel that refreshes it every few seconds. On the same page I have an AjaxLink that opens a ModalWindow. In the ModalWindow, a selection is made and when it closes that value is written back to the parent. The TimerBehaviour runs consistently up until the point that the ModalWindow is opened. After that it does not run at all. Does anyone have any suggestions, please? Thanks, Mark. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere
Re: [Wicket-user] Authentication Tomcat - Wicket
I search to implements security on my wicket Application. I plan to use Tomcat 5.X for Authentication, So I search a simple Authentication page to use it (Email,Password,Role), do you know how to implement this in Wicket. If you want to use a login page that is used by the container to authenticate, you're better off just using some default login page: form method=POST action=j_security_check input type=text name=j_username input type=password name=j_password /form It's outlined here: http://www.onjava.com/pub/a/onjava/2002/06/12/form.html Once authenticated, you can pull the Principal by doing ((WebRequestCycle)(RequestCycle.get()).getWebRequest().getHttpServletRequest().getUserPrincipal(); How you use that is up to you. Look at wicket-auth-roles for ideas. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user