Re: [release] Wicket Security 1.3.1

2010-01-13 Thread Sergey Podatelev
Great news. -- sp - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Wicket behind proxy (AJP)

2009-07-04 Thread Sergey Podatelev
solved them using the virtual-host-feature of tomcat. After that the ProxyPass looks very easy: VirtualHost... ... ProxyPass / ajp://localhost/ ... /VirtualHost yours marc Sergey Podatelev schrieb: Hello, I know this question had already been asked here, but I still couldn't get

Wicket behind proxy (AJP)

2009-07-02 Thread Sergey Podatelev
Hello, I know this question had already been asked here, but I still couldn't get it working on my side. What I'm trying to achieve, is a configuration of Wicket running as filter on Tomcat with an Apache host as a frontend. Particular problem is with the context path. Here's my configuration:

Re: Wicket behind proxy (AJP)

2009-07-02 Thread Sergey Podatelev
to set my site up like that.  What I had to do was put a dummy HTML page in there with a refresh directive to make it go to: http://mysite/mywicketapp On Thu, Jul 2, 2009 at 2:27 PM, Sergey Podatelev brightnesslev...@gmail.com wrote: Hello, I know this question had already been asked here

Re: AbortWithWebErrorCodeException(404) results in blank page

2009-05-25 Thread Sergey Podatelev
Okay, at least any pointers why this might happen are appreciated. On Sat, May 23, 2009 at 10:03 PM, Sergey Podatelev brightnesslev...@gmail.com wrote: I'm using tomcat, web.xml has the following configuration: ... filter-mapping    filter-nameWicket Filter/filter-name    url-pattern/*/url

AbortWithWebErrorCodeException(404) results in blank page

2009-05-23 Thread Sergey Podatelev
I'm using tomcat, web.xml has the following configuration: ... filter-mapping filter-nameWicket Filter/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher dispatcherERROR/dispatcher /filter-mapping error-page error-code404/error-code

Re: Google App Engine and Wicket

2009-04-11 Thread Sergey Podatelev
Here are a couple of pointers regarding Wicket on GAE: http://www.danwalmsley.com/2009/04/08/apache-wicket-on-google-app-engine-for-java/ On Sat, Apr 11, 2009 at 6:15 PM, Matthew Welch matt...@welchkin.net wrote: I've been experimenting a bit with Google App Engine and Wicket and things seemed

Re: Wicket in Action vs the other main books

2009-04-10 Thread Sergey Podatelev
You probably shouldn't base your evaluation of a book on how good any specific topic is explained there, unless this specific topic is one and the only thing you are interested in. You will most probably still have to spend some time researching whatever you're insterested in on the web. Still,

Re: Tips to implement this switch technique

2009-04-06 Thread Sergey Podatelev
Although it'd probably be more correct to check the state of the navPanel within a switchingPanel ( switchingPanel.getPage().get(navPanel) ) and render it accordingly. On Mon, Apr 6, 2009 at 8:00 PM, Sergey Podatelev brightnesslev...@gmail.com wrote: Not sure if I understand your problem

@SpringBean vs getApplication().getDao()

2009-02-17 Thread Sergey Podatelev
Okay, this question might actually be more related to Spring, but I'm completely lost here, and my question on Spring forums usually don't get any replies, so I hope Wicket community might help as it usually does. I'm using JCR, and have a RepositoryDao bean configured in applicationContext.xml.

Re: @SpringBean vs getApplication().getDao()

2009-02-17 Thread Sergey Podatelev
about memory usage but each their own. Best, James. On Tue, Feb 17, 2009 at 4:55 PM, Sergey Podatelev brightnesslev...@gmail.com wrote: Okay, this question might actually be more related to Spring, but I'm completely lost here, and my question on Spring forums usually don't get any

Re: Yet another Wicket quick start application...

2009-02-17 Thread Sergey Podatelev
Will definitely check that out, thanks. On Wed, Feb 18, 2009 at 2:41 AM, Patrick Angeles patr...@inertiabev.comwrote: For anyone interested, I've made public yet another quick start application that brings together Wicket, Spring 2.5 and Hibernate. The app features a basic CRUD framework

Re: @SpringBean vs getApplication().getDao()

2009-02-17 Thread Sergey Podatelev
in the spring context. My guess is that the Listener isn't being configured properly, and that is why your @SpringBeans are null... Sergey Podatelev wrote: Okay, this question might actually be more related to Spring, but I'm completely lost here, and my question on Spring forums usually

Multiple file upload javascript won't work when using XHTML1.1

2008-10-01 Thread Sergey Podatelev
Hello, I have my HTML pages configured to be served as XML files, specifically, I use XHTML1.1 Strict doctype in HTML files and I send a Content-type:application/xhtml+xml header (for the browsers that support that content-type, that in other words, non-IEs). The problem is, on

Serialization of anonymous classes?

2008-08-10 Thread Sergey Podatelev
Hello, In many of Wicket examples, components are added to pages as anonymous inner classes, like this: public class PageA { public PageA() { ... add(new SomeComponent() { public boolean overridenMethod() { ... } }); } Also, I understand that each Wicket component

URLValidator to auto-append http://

2008-07-17 Thread Sergey Podatelev
Is there a way to configure URLValidator to automatically append the http://; string to provided value in case it's otherwise correct, but no protocol notation is present? -- sp

Re: URLValidator to auto-append http://

2008-07-17 Thread Sergey Podatelev
Okay, I'm sorry, that was a bad question. Validators shouldn't do anything but validation anyway. But a way to allow validator to skip protocol-less strings, i.e. google.com instead of http://google.com;? On Thu, Jul 17, 2008 at 11:04 AM, Sergey Podatelev [EMAIL PROTECTED] wrote

Is it okay to use an EmptyPanel for if?

2008-06-26 Thread Sergey Podatelev
Hello, I'm sorry for this maybe stupid question, but is it okay to use an EmptyPanel with an empty template in case I want to do an if and display nothing in some cases and contains of a certain panel in all other cases? I know, this also could be handled by inheritance, but in certain cases an

Re: Is it okay to use an EmptyPanel for if?

2008-06-26 Thread Sergey Podatelev
that makes the condition now true. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jun 26, 2008 at 9:47 AM, Sergey Podatelev [EMAIL PROTECTED] wrote: Hello, I'm sorry for this maybe stupid question, but is it okay to use an EmptyPanel with an empty template in case I want to do

SecureTextField problem

2008-06-26 Thread Sergey Podatelev
Hello, I'm using Wicket-Security-1.3, and can't enable SecureTextFields. The SecureTextField sitting in a panel, which extends SecurePanel, which sits in another secured panel, and all this is on SecureWebPage. The problem is, no matter what I write in my policies.hive file, that textfield won't

Re: Wicket-Security: What is the easiest way to switch user's principal behind the scenes?

2008-06-24 Thread Sergey Podatelev
by a constructor flag. To switch principals simply login a second time with the new context and logoff with the old context. the session will be preserved. Maurice On Tue, Jun 24, 2008 at 2:14 PM, Sergey Podatelev [EMAIL PROTECTED] wrote: Hello, I'm wondering, how can I remove current Principals

Re: Wicket-Security: What is the easiest way to switch user's principal behind the scenes?

2008-06-24 Thread Sergey Podatelev
case. The easiest is to use different logincontexts classes for this but you should also be able to use the level parameter you can pass to the constructor. Maurice On Tue, Jun 24, 2008 at 3:48 PM, Sergey Podatelev [EMAIL PROTECTED] wrote: Thanks Maurice, this is exactly what I've done so far

How reliable Validators are?

2008-06-06 Thread Sergey Podatelev
Hello, I'm wondering, how safe is it to use a custom validator to check current password of the logged-in user, when he wants to change his password (say, on a profile page)? Are there are any potential security issues that can allow user to pass a validation? -- sp

Re: How reliable Validators are?

2008-06-06 Thread Sergey Podatelev
() though - but YMMW. Sven Sergey Podatelev schrieb: Hello, I'm wondering, how safe is it to use a custom validator to check current password of the logged-in user, when he wants to change his password (say, on a profile page)? Are there are any potential security issues that can allow

Re: How reliable Validators are?

2008-06-06 Thread Sergey Podatelev
that work 100% of the time are just not as useful. -igor On Fri, Jun 6, 2008 at 10:35 AM, Sergey Podatelev [EMAIL PROTECTED] wrote: Hello, I'm wondering, how safe is it to use a custom validator to check current password of the logged-in user, when he wants to change his password (say

Re: How reliable Validators are?

2008-06-06 Thread Sergey Podatelev
will need a reference to some singleton objects (service/dao/...). For my taste this is too heavy for a validator. Sven Sergey Podatelev schrieb: Okay, that is something I expected. But can you please explain, why wouldn't you use validator for this? It seems to be a good way

ErrorPage won't render

2008-05-15 Thread Sergey Podatelev
Hello, I have a custom error page BaseErrorPage: public class BaseErrorPage extends WebPage { private final static long serialVersionUID = 1L; public BaseErrorPage() { super(); } protected void configureResponse() { String acceptHeader =

Re: ErrorPage won't render

2008-05-15 Thread Sergey Podatelev
Compagner [EMAIL PROTECTED] wrote: do you have more stacktrace like Cause : x On Thu, May 15, 2008 at 11:22 AM, Sergey Podatelev [EMAIL PROTECTED] wrote: Hello, I have a custom error page BaseErrorPage: public class BaseErrorPage extends WebPage { private final static long

Re: ErrorPage won't render

2008-05-15 Thread Sergey Podatelev
: Communications link So are you using some spring thing there? On Thu, May 15, 2008 at 1:22 PM, Sergey Podatelev [EMAIL PROTECTED] wrote: The default stacktrace is listed below. Apparently, the error page won't load for the same reason original page wasn't loaded: Spring (which I

RequiredValidator

2008-04-20 Thread Sergey Podatelev
Hello Wicket people, I'm sorry for the dumb question, but I've failed to find the solution myself. The problem is that I want a custom RequiredValidator message, but when I add a RequiredValidator=My happy message in the RegisterPage.properties file, nothing changes. The system sees the file

Re: RequiredValidator

2008-04-20 Thread Sergey Podatelev
Yep, that was it. Thanks a bunch, now I gotta enhance my googling skills. On Sun, Apr 20, 2008 at 8:20 PM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: What version of wicket are you using. From the 1.2 snapshot wich was a while ago = This validator has

Strange behavior of wicket-security libraries in netbeans

2008-04-15 Thread Sergey Podatelev
Hello Wicket people, I'm experiencing a strange behavior of Netbeans (6.0.1) IDE working with Wicket-Security components. Maybe this question is more Netbeans- than Wicket-related, but I thought I'd better ask here first. I have a BaseSecurePage class that implements ISecurePage. Its constructor

Re: Strange behavior of wicket-security libraries in netbeans

2008-04-15 Thread Sergey Podatelev
the wrong classes in the output; there hit the link to the classes and issue an Fix Imports via the right context menu, that'll do it; Hope that helps, Korbinian Sergey Podatelev schrieb: Hello Wicket people, I'm experiencing a strange behavior of Netbeans (6.0.1) IDE working

Re: Strange behavior of wicket-security libraries in netbeans

2008-04-15 Thread Sergey Podatelev
Okay, this one has resolved itself after I did some lib-containing-folder management. Apparently, this was one of those classpath madness issues. On Tue, Apr 15, 2008 at 2:35 PM, Sergey Podatelev [EMAIL PROTECTED] wrote: Hello Wicket people, I'm experiencing a strange behavior of Netbeans

Page loads too slow

2008-04-08 Thread Sergey Podatelev
Hello, I have this problem which is hard to debug, perhaps you guys will give me some pointers. The page is a registration page, so it has a form with a number of inputs and select-s, one of which is pretty huge -- it contains about sixty countries, and a captcha. The actual problem is -- this

Re: Page loads too slow

2008-04-08 Thread Sergey Podatelev
On Tue, Apr 8, 2008 at 9:05 PM, Matthew Young [EMAIL PROTECTED] wrote: this page takes about 2-5 seconds to load, but this only happens when it's loaded for the first time I observe the same thing and this has to do with Captcha. I think it's because it uses Java graphic stuff and it take

How to listen to other component's events?

2008-04-02 Thread Sergey Podatelev
Hello Wicket people, I have a user registration page with a couple of dropdown lists on it. Elements of those lists are alphabetically sorted. Also, there's a language selector on each page of the application, so there's also one on the registration page. The problem is, when user changes

Re: How to listen to other component's events?

2008-04-02 Thread Sergey Podatelev
Thanks for quick reply, Nino. No, I'm not using ajax so far. Let me describe a bit more: there's a registration page, which has a RegisterForm. Also, the page has an OptionsPanel unrelated to the RegisterForm with a language selector DDC. That DDC is bound to Session's language property via

Re: How to listen to other component's events?

2008-04-02 Thread Sergey Podatelev
Thanks Maurice, that reduced my code to two lines :). On Wed, Apr 2, 2008 at 12:19 PM, Maurice Marrink [EMAIL PROTECTED] wrote: You should not set a list directly on your dropdown but load it using for example a loadabledetachable model. Maurice -- sp

Re: [Announcement] Wicket Security 1.3.0 final has been released

2008-02-17 Thread Sergey Podatelev
Sweet (: On Feb 17, 2008 7:20 PM, Maurice Marrink [EMAIL PROTECTED] wrote: Version 1.3.0 has been made available on sourceforge and the wicketstuff maven repository. -- sp

Re: Store an object in session

2008-02-12 Thread Sergey Podatelev
Thanks Matej, I'll try that. On Feb 13, 2008 1:21 AM, Matej Knopp [EMAIL PROTECTED] wrote: extend wicket's WebSession by your own session class. and add setUserProfile/getUserProvile methods to id. Override Application#newSession method and create your session insteance. Then in your app

Store an object in session

2008-02-12 Thread Sergey Podatelev
Hello Wicket people, I've a bean containing user information, UserProfile. I want this bean to be accessible for all the pages during user's session, so I guess, I have to store it in the session somehow. There's also a UserProfilePage where UserBean is used as data object for

Re: someone please restart tomcat

2008-01-22 Thread Sergey Podatelev
Hej, Just tried this and it's still fails with 500 error and OutOfMemory exception. -- sp

Re: create new model object of a Form from one of its FormComp values??

2008-01-21 Thread Sergey Podatelev
On Jan 20, 2008 8:14 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: personally i would map the form to a bean, and then in onsubmit() transfer those properties to an instance of your domain object. Igor, could you please tell in short how is this better than just get data form the models of each

Models concept misunderstanding

2008-01-15 Thread Sergey Podatelev
Hello, Wicket people. I'm trying to construct a form which displays certain panel in case user made a particular choice on the RadioChoice component. Shortly speaking, there're two radiobuttons: TypeA and TypeB. If user selects TypeB, an additional Panel must to be displayed. Although I got

Re: Models concept misunderstanding

2008-01-15 Thread Sergey Podatelev
On Jan 15, 2008 8:41 PM, Sergey Podatelev [EMAIL PROTECTED] wrote: Although I got pretty confused about my misunderstanding of how models work Okay, I'm sorry for the fuss, looks like I've got it. Those printouts are called from constructor, not from some place aware of type changing. I should

Re: Models concept misunderstanding

2008-01-15 Thread Sergey Podatelev
On Jan 15, 2008 10:16 PM, Johan Compagner [EMAIL PROTECTED] wrote: In what method do you those print outs? As I've just posted, I've already figured it out. You're right, I'm doing those in the constructor, which is called just once. -- sp

Cannot create Spring Bean via Proxy in Wicket

2008-01-13 Thread Sergey Podatelev
Hello, My WebApplication extends SpringWebApplication and I use proxy-based approach for bean instantiation. I'm using JDK1.4, so I'm unable to just annotate the beans, but have to do it in the following way: MyWebApplication { private UserDao userDao; ... public UserDao getUserDao() {

Re: Cannot create Spring Bean via Proxy in Wicket

2008-01-13 Thread Sergey Podatelev
Thanks for your fast responses. On Jan 14, 2008 1:13 AM, Konstantin Ignatyev [EMAIL PROTECTED] wrote: If your UserDao is interface then just cast to it, not to the JdbcUserDao and it should be fine. Actually, that was just a typo in the code I've pasted here. It supposed to be JdbcUserDao

Re: Cannot create Spring Bean via Proxy in Wicket

2008-01-13 Thread Sergey Podatelev
On Jan 14, 2008 1:13 AM, Konstantin Ignatyev [EMAIL PROTECTED] wrote: You have to use interface and cast to the interface Too bad I've forgotten about the whole injection idea of using interfaces instead of their specific implementations. Surely, your suggestion did the trick. Thanks a bunch.

Re: Wicket without Maven

2007-12-26 Thread Sergey Podatelev
On Dec 26, 2007 4:20 PM, MDee [EMAIL PROTECTED] wrote: Is it possible to use Wicket with Eclipse without Maven? Believe it or not, it's even possible to use Wicket without Eclipse. All you need are certain libraries, proper configuration and a build script. At least it was pretty easy for me

Re: How can i present a busy component

2007-12-22 Thread Sergey Podatelev
On Dec 21, 2007 10:40 PM, Per Newgro [EMAIL PROTECTED] wrote: On one panel there is a button. If this is clicked a long running task is executed. The problem is that the cursor is still a pointer and the browser seems to do nothing. If there's a long time interval between button click and

Re: Two wicket applications in one spring context

2007-12-22 Thread Sergey Podatelev
On Dec 22, 2007 4:59 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: Why two applications? Martijn I guess, what Martin wanted to say is you shouldn't separate administrators and users in this way. This is like creating two different bodies of the car for driver and for passengers. Instead,

Re: Wicket really dumb? Converting to amp; in password fields?

2007-12-21 Thread Sergey Podatelev
I love the way Wicket community handles such offences :). -- sp