Require SSL and 1.4.0

2009-08-06 Thread hill180
As a new user, I am not sure I understand, I need to setup  
@requireHTTPS to work and I have the following Code:


What am I doing wrong?  I have Wicket 1.4.0

error SecureRequestCycleProcessor cannot be resolved to a type




package com.test.sslstuff2;

import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.protocol.https.HttpsConfig;
import org.apache.wicket.request.IRequestCycleProcessor;

/**
 * Application object for your web application. If you want to run  
this application without deploying, run the Start class.

 *
 * @see com.test.sslstuff2.Start#main(String[])
 */
public class WicketApplication extends WebApplication
{
public WicketApplication()
{
}   
@Override
protected IRequestCycleProcessor newRequestCycleProcessor()
{
HttpsConfig config = new HttpsConfig(80,443);
return new SecureRequestCycleProcessor(config);
}   
public ClassHomePage getHomePage()
{
return HomePage.class;
}
}

and the Home Page:

package com.test.sslstuff2;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.https.RequireHttps;

/**
 * Homepage
 */
@RequireHttps
public class HomePage extends WebPage {
private static final long serialVersionUID = 1L;
public HomePage(final PageParameters parameters) {
	add(new Label(message, If you see this message wicket is properly  
configured and running));


}
}


THANKS






Require SSL and 1.4.0

2009-08-05 Thread hill180
As a new user, I am not sure I understand, I need to setup  
@requireHTTPS to work and I have the following Code:


What am I doing wrong?  I have Wicket 1.4.0

error SecureRequestCycleProcessor cannot be resolved to a type




package com.test.sslstuff2;

import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.protocol.https.HttpsConfig;
import org.apache.wicket.request.IRequestCycleProcessor;

/**
 * Application object for your web application. If you want to run  
this application without deploying, run the Start class.

 *
 * @see com.test.sslstuff2.Start#main(String[])
 */
public class WicketApplication extends WebApplication
{
public WicketApplication()
{
}   
@Override
protected IRequestCycleProcessor newRequestCycleProcessor()
{
HttpsConfig config = new HttpsConfig(80,443);
return new SecureRequestCycleProcessor(config);
}   
public ClassHomePage getHomePage()
{
return HomePage.class;
}
}

and the Home Page:

package com.test.sslstuff2;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.protocol.https.RequireHttps;

/**
 * Homepage
 */
@RequireHttps
public class HomePage extends WebPage {
private static final long serialVersionUID = 1L;
public HomePage(final PageParameters parameters) {
	add(new Label(message, If you see this message wicket is properly  
configured and running));


}
}


THANKS