AutoCompleteTextField with panels

2009-03-16 Thread Tim Squires
Hi,

Does anyone know if AutoCompleteTextField can be used with Panels in the
generated list instead of just the String[]?

Thanks,
Tim


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Encoding Russian pages

2009-02-16 Thread Tim Squires
Hi,

I have been sent Russian translations to my default English pages.  Wicket
picks up the _ru.properties bundles correctly but somewhere along the way,
the encoding is not changing from UTF-8.  I gather that the Russian
translated pages will need an encoding of cp1251.

I have tried to force the encoding in the Page template using

protected void configureResponse() {
super.configureResponse();
final String encoding = text/ + getMarkupType() + ; charset=cp1251;
getResponse().setContentType(encoding);
}

and in the application class

@Override
protected void init() {
super.init();
getMarkupSettings().setDefaultMarkupEncoding(cp1251);
}

but still Firefox and IE in Linux and Win show a page encoding of UTF-8.

From the wiki

http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html

and other mail, it looks like it's a problem outside of Wicket but I was
hoping someone here would know a fix.

You can see the test version at http://imagebank.crystalmark.co.uk

I'm pretty sure my pc's are setup OK because I can see other Russian
websites ok (although I cannot actually read them).

Can anyone point me to what I have missed?

Thanks,
Tim




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Encoding Russian pages

2009-02-16 Thread Tim Squires
After more than 10 years using .properties and I did not twig that it may
be the .properties encoding limitation.

After an hour and a touch of RSA all .properties are now xml and it's
working great.  Thanks for the tip.

And thanks Maarten for the pointer to Spring resource bundles.

Tim

 Hi Tim,

 .properteis files are ALWAYS in ISO59something encoding (see the Javadoc
 to
 java.lang.Properties. If you want to use a different encoding, you'll have
 to either recode your properties files, use xml properties or somehow load
 the .properties files yourself.

 Thomas

 On Mon, Feb 16, 2009 at 2:04 PM, Tim Squires w...@tnwdb.com wrote:

 Hi,

 I have been sent Russian translations to my default English pages.
 Wicket
 picks up the _ru.properties bundles correctly but somewhere along the
 way,
 the encoding is not changing from UTF-8.  I gather that the Russian
 translated pages will need an encoding of cp1251.

 I have tried to force the encoding in the Page template using

 protected void configureResponse() {
super.configureResponse();
final String encoding = text/ + getMarkupType() + ;
 charset=cp1251;
getResponse().setContentType(encoding);
 }

 and in the application class

 @Override
 protected void init() {
super.init();
getMarkupSettings().setDefaultMarkupEncoding(cp1251);
 }

 but still Firefox and IE in Linux and Win show a page encoding of UTF-8.

 From the wiki

 http://cwiki.apache.org/WICKET/how-to-change-the-character-encoding.html

 and other mail, it looks like it's a problem outside of Wicket but I was
 hoping someone here would know a fix.

 You can see the test version at http://imagebank.crystalmark.co.uk

 I'm pretty sure my pc's are setup OK because I can see other Russian
 websites ok (although I cannot actually read them).

 Can anyone point me to what I have missed?

 Thanks,
 Tim




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 --
 Thomas Mäder
 Wicket  Eclipse Consulting
 www.devotek-it.ch




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: [OT] wicket users around the world

2008-12-12 Thread Tim Squires

Yorkshire, England

In the last year, I've developed Wicket applications for people in

Aurora, Ontario
London, England
Nashville, Tennessee
Almaty, Kazakhstan
and Harrogate, England

Because of this damn interweb thingy I don't actually get to go to these 
places :(


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: ImageButton picture.x and picture.y

2008-11-28 Thread Tim Squires

Thanks Nino,

The model is just a quick hack to show where the imageresource is coming 
from, i.e. it's dynamic.


The ClientSideImageMap and the older ImageMap don't give an x and y of 
the click and I don't fancy creating a map/ for every pixel in the image.


The ImageButton does return where the user clicked on the image as part 
of the form submit.  I was hoping that the x and y could be mapped to a 
model somehow.


How I managed to get the coords is like this

   FormObject form = new FormObject(form) {
   @Override
   protected void onSubmit() {
   info(x =  + getRequest().getParameter(picture.x));
   info(y =  + getRequest().getParameter(picture.y));
   }
   };

It would be nice to attach these values to a property, can you see a way 
of doing that?


Tim

Nino Saturnino Martinez Vazquez Wael wrote:
maybe james patch can help you : 
http://www.nabble.com/Client-Side-Image-Map...-td20516107.html#a20516107 
?


Otherwise it should be  ImageMap already there..
Nino Saturnino Martinez Vazquez Wael wrote:

Hi Tim

You should get a grasp on models. But isnt it an imagearea (cant 
remember the exact name) or something you want? Image button is just 
a button which has a image...


Tim Squires wrote:

Hi,

I'm trying to retrieve the x and y coords from a user click on an 
ImageButton.  Can anyone tell me how to get these parameters in an 
onSubmit method?


Currently I'm doing

   final IModelPicture picture = new 
AbstractReadOnlyModelPicture() {


   @Override
   public Picture getObject() {
   return pictureService.findRandom();
   }
   };

   FormObject form = new FormObject(form) {
   @Override
   protected void onSubmit() {
 // picture.x and picture.y 
parameters, where are they?

   }
   };

   form.add(new ImageButton(picture, new 
ImageResource(defaults

   .getPicturesLocation(), picture)));

   add(form);

but cannot find any way of retrieving the page parameters in the 
onSubmit() - getPageParameters() returns null.


I'm using 1.4-rc1.

Thanks for any help,
Tim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ImageButton picture.x and picture.y

2008-11-27 Thread Tim Squires

Hi,

I'm trying to retrieve the x and y coords from a user click on an 
ImageButton.  Can anyone tell me how to get these parameters in an 
onSubmit method?


Currently I'm doing

   final IModelPicture picture = new 
AbstractReadOnlyModelPicture() {


   @Override
   public Picture getObject() {
   return pictureService.findRandom();
   }
   };

   FormObject form = new FormObject(form) {
   @Override
   protected void onSubmit() {
  
   // picture.x and picture.y parameters, where are they?

   }
   };

   form.add(new ImageButton(picture, new ImageResource(defaults
   .getPicturesLocation(), picture)));

   add(form);

but cannot find any way of retrieving the page parameters in the 
onSubmit() - getPageParameters() returns null.


I'm using 1.4-rc1.

Thanks for any help,
Tim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: onmouseover image

2008-09-24 Thread Tim Squires
Thanks Alastair, that's a good idea. AjaxEventBehavior would give the
effect but with a round trip to the server.  It would be nice to have a
javascript only onmouseover where the images are pre-loaded.

I'm currently using the wicketstuff-dojo onmouseover-highlight, which is
good enough for now.

http://wicketstuff.org/wicketdojo13/?wicket:bookmarkablePage=%3Aorg.wicketstuff.dojo.examples.lfx.DojoFXTestPage

Thanks again,
Tim

 Have a look at AjaxEventBehavior. You can either combine this with an
 Image
 component or add an AttributeModifier and manually tweak the img's src
 attribute.

 Alastair

 2008/9/19 Tim Squires [EMAIL PROTECTED]

 Hi All,

 Before I go and write my own component to change the src of an img
 onouseover, I just wanted to make sure that there is no standard
 component.  I don't want to re-invent the wheel.

 Is there a standard component for changing the Image or ImageButton
 image
 onmouseover?

 Thanks,
 Tim


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



onmouseover image

2008-09-19 Thread Tim Squires
Hi All,

Before I go and write my own component to change the src of an img
onouseover, I just wanted to make sure that there is no standard
component.  I don't want to re-invent the wheel.

Is there a standard component for changing the Image or ImageButton image
onmouseover?

Thanks,
Tim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AjaxSubmitLink accessing model object non-existent property

2008-04-09 Thread Tim Squires
OK.  It's clicked.  I was hoping to have a simple ajaxed submit link
without having to create a fake property on the model object.  No problem,
I can see what I missed.

Thanks for your help Igor.

Tim

 you said it yourself:

 Insure that the component identifier names match
 the appropriate property names.

 what that says is that the model you get is the property of the model
 object that is in the cpm with the name of component id.

 so since your links id is foo it will try to pull out the model
 object from the cpm and call getfoo() on it, the result of which is
 the model object of the link

 -igor


 On Tue, Apr 8, 2008 at 12:52 PM, Tim Squires [EMAIL PROTECTED] wrote:
 I have read it - a few times over the last 3 years of using Wicket and
  even bought the book ;)

  It says

  To use a CompoundPropertyModel, simply set one as the model for a
  container, such as a Form or a Page. Create the contained components
 with
  no model of their own. Insure that the component identifier names match
  the appropriate property names.

  The AjaxSubmitLink is picking-up the parent forms compound property
 model
  but only checking to see if the mylink property exists when onSubmit
  calls getModelObject().

  I would like to get the Forms model via getModelObject but because it
  errors when called, I have to either set a false model on the
  AjaxSubmitLink or get the model object outside of the onSubmit, assign
 it
  to a final property and then use it in the onSubmit.

  I'm happy to admit that I'm doing something wrong but I cannot see what
 it
  is???

  Thanks again,
  Tim



   no, components do not randomly pick up models from their parents. i
   would suggest reading the models wiki page.
  
   -igor
  
  
   On Mon, Apr 7, 2008 at 3:11 PM, Tim [EMAIL PROTECTED] wrote:
   Thanks Igor but should it not pick-up the model from the Form?
 There's
   no
constructor that takes a model.  Should the AjaxSubmitLink(id,
 form)
constructor be used with the Form that it's being added to?  e..g
  
MyForm extends Form {
public MyForm(){

add( new AjaxSubmitLink(mylink,this){

});
}}
  
If it's already bound to a Form, should it not pick-up the model
 used
   by
the form?
  
Am I looking at the problem/solution the wrong way???
  
Thanks again,
Tim
  
  
  
 you forgot to give ajaxsubmitlink a model, so getmodelobject()
 will
 either return null or a compound model.confirm - neither of which
 i
 think you want.

 -igor


 On Mon, Apr 7, 2008 at 1:00 PM, Tim Squires [EMAIL PROTECTED]
 wrote:
 Hi,

  When adding an AjaxSubmitLink, the onSubmit method tries to
 access
   a
  property of the model object that does not exists:

  ---
 final AjaxSubmitLink confirmLink = new
  AjaxSubmitLink(confirm) {
 @Override
 public void onSubmit(final AjaxRequestTarget
 target,
 final Form form) {
 if (((Will) getModelObject()).getExecutor()
 !=
   null)
 {
 willModalWindow.show(target);
 } else {
 warn(Please choose an executor.);
 target.addComponent(feedback);
 }
 }

 @Override
 public void onError(final AjaxRequestTarget
 target,
 final Form form) {
 target.addComponent(feedback);
 }
 };

 add(confirmLink);
  ---

  It tries to access the confirm property of the Model, in this
   case a
  Will object.

  ---
  org.apache.wicket.WicketRuntimeException: No get method defined
 for
 class:
  class crystalmark.willfinder.model.Will expression: confirm
  at
  
 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:433)
  at
  
 org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:275)
  at
  
 org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:84)
  at
  
 org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:113)
  at
   org.apache.wicket.Component.getModelObject(Component.java:1551)
  at
  
 crystalmark.willfinder.page.components.EditWillPanel$EditWillForm$5.onSubmit(EditWillPanel.java:183)
  at
  
 org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:94)
  at
  
 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:128)
  ---

  It's only when using the getModelObject method.  If I get the
 Will
 object

Re: AjaxSubmitLink accessing model object non-existent property

2008-04-08 Thread Tim Squires
I have read it - a few times over the last 3 years of using Wicket and
even bought the book ;)

It says

To use a CompoundPropertyModel, simply set one as the model for a
container, such as a Form or a Page. Create the contained components with
no model of their own. Insure that the component identifier names match
the appropriate property names.

The AjaxSubmitLink is picking-up the parent forms compound property model
but only checking to see if the mylink property exists when onSubmit
calls getModelObject().

I would like to get the Forms model via getModelObject but because it
errors when called, I have to either set a false model on the
AjaxSubmitLink or get the model object outside of the onSubmit, assign it
to a final property and then use it in the onSubmit.

I'm happy to admit that I'm doing something wrong but I cannot see what it
is???

Thanks again,
Tim

 no, components do not randomly pick up models from their parents. i
 would suggest reading the models wiki page.

 -igor


 On Mon, Apr 7, 2008 at 3:11 PM, Tim [EMAIL PROTECTED] wrote:
 Thanks Igor but should it not pick-up the model from the Form?  There's
 no
  constructor that takes a model.  Should the AjaxSubmitLink(id, form)
  constructor be used with the Form that it's being added to?  e..g

  MyForm extends Form {
  public MyForm(){
  
  add( new AjaxSubmitLink(mylink,this){
  
  });
  }}

  If it's already bound to a Form, should it not pick-up the model used
 by
  the form?

  Am I looking at the problem/solution the wrong way???

  Thanks again,
  Tim



   you forgot to give ajaxsubmitlink a model, so getmodelobject() will
   either return null or a compound model.confirm - neither of which i
   think you want.
  
   -igor
  
  
   On Mon, Apr 7, 2008 at 1:00 PM, Tim Squires [EMAIL PROTECTED] wrote:
   Hi,
  
When adding an AjaxSubmitLink, the onSubmit method tries to access
 a
property of the model object that does not exists:
  
---
   final AjaxSubmitLink confirmLink = new
AjaxSubmitLink(confirm) {
   @Override
   public void onSubmit(final AjaxRequestTarget target,
   final Form form) {
   if (((Will) getModelObject()).getExecutor() !=
 null)
   {
   willModalWindow.show(target);
   } else {
   warn(Please choose an executor.);
   target.addComponent(feedback);
   }
   }
  
   @Override
   public void onError(final AjaxRequestTarget target,
   final Form form) {
   target.addComponent(feedback);
   }
   };
  
   add(confirmLink);
---
  
It tries to access the confirm property of the Model, in this
 case a
Will object.
  
---
org.apache.wicket.WicketRuntimeException: No get method defined for
   class:
class crystalmark.willfinder.model.Will expression: confirm
at

 org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:433)
at

 org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:275)
at

 org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:84)
at

 org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:113)
at
 org.apache.wicket.Component.getModelObject(Component.java:1551)
at

 crystalmark.willfinder.page.components.EditWillPanel$EditWillForm$5.onSubmit(EditWillPanel.java:183)
at

 org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:94)
at

 org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:128)
---
  
It's only when using the getModelObject method.  If I get the Will
   object
from else-where it works fine.
  
Is this a problem with the way I'm using the model or a bug with
AjaxSubmitLink?  Should I add it to jira?
  
Wicket 1.3.3 + JDK 1.6 + Tomcat 6
  
Thanks,
Tim
---
http://www.tnwdb.com - Wicket Wills!
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  



  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED

AjaxSubmitLink accessing model object non-existent property

2008-04-07 Thread Tim Squires
Hi,

When adding an AjaxSubmitLink, the onSubmit method tries to access a
property of the model object that does not exists:

---
final AjaxSubmitLink confirmLink = new
AjaxSubmitLink(confirm) {
@Override
public void onSubmit(final AjaxRequestTarget target,
final Form form) {
if (((Will) getModelObject()).getExecutor() != null) {
willModalWindow.show(target);
} else {
warn(Please choose an executor.);
target.addComponent(feedback);
}
}

@Override
public void onError(final AjaxRequestTarget target,
final Form form) {
target.addComponent(feedback);
}
};

add(confirmLink);
---

It tries to access the confirm property of the Model, in this case a
Will object.

---
org.apache.wicket.WicketRuntimeException: No get method defined for class:
class crystalmark.willfinder.model.Will expression: confirm
 at
org.apache.wicket.util.lang.PropertyResolver.getGetAndSetter(PropertyResolver.java:433)
 at
org.apache.wicket.util.lang.PropertyResolver.getObjectAndGetSetter(PropertyResolver.java:275)
 at
org.apache.wicket.util.lang.PropertyResolver.getValue(PropertyResolver.java:84)
 at
org.apache.wicket.model.AbstractPropertyModel.getObject(AbstractPropertyModel.java:113)
 at org.apache.wicket.Component.getModelObject(Component.java:1551)
 at
crystalmark.willfinder.page.components.EditWillPanel$EditWillForm$5.onSubmit(EditWillPanel.java:183)
 at
org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink$1.onSubmit(AjaxSubmitLink.java:94)
 at
org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSubmitBehavior.java:128)
---

It's only when using the getModelObject method.  If I get the Will object
from else-where it works fine.

Is this a problem with the way I'm using the model or a bug with
AjaxSubmitLink?  Should I add it to jira?

Wicket 1.3.3 + JDK 1.6 + Tomcat 6

Thanks,
Tim
---
http://www.tnwdb.com - Wicket Wills!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AjaxLink throws WicketRuntimeException

2008-02-29 Thread Tim Squires
Hi,

I have an AjaxLink that displays a ModalWindow onClick:

AjaxLink executorLink = new AjaxLink(show executor) {
public void onClick(AjaxRequestTarget target) {
logger.debug(show the executor details window for will 
+ will);
executorModalWindow.show(target);
}
};
// Don't display the executor link if this is read only.
executorLink.setVisible(!readonly);
add(executorLink);

with html

a href=# wicket:id=show executorexecutor.../a

The first time this link is clicked, a WicketRuntimeException is thrown.

WicketMessage: component wills list:wills list:1:will details:show
executor not found on page

See below for full stack.  If I then go back (right click-back) and click
the link again, the modal window is displayed.

Has anyone come across this before?  What have I missed?

Wicket 1.3.1
Tomcat 6
JDK 1.6

Thanks for your help,
Tim




WicketMessage: component wills list:wills list:1:will details:show
executor not found on page
crystalmark.willfinder.page.modal.SearchWillsResultsPage[id = 0], listener
interface = [RequestListenerInterface name=IBehaviorListener,
method=public abstract void
org.apache.wicket.behavior.IBehaviorListener.onRequest()]

Root cause:

org.apache.wicket.WicketRuntimeException: component wills list:wills
list:1:will details:show executor not found on page
crystalmark.willfinder.page.modal.SearchWillsResultsPage[id = 0], listener
interface = [RequestListenerInterface name=IBehaviorListener,
method=public abstract void
org.apache.wicket.behavior.IBehaviorListener.onRequest()]
at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveListenerInterfaceTarget(AbstractRequestCycleProcessor.java:411)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.resolveRenderedPage(AbstractRequestCycleProcessor.java:456)
at
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:139)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1224)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)

Page

  [Stateless Page]:
  # PathSizeTypeModel Object

No more page details shown.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: adding context on redirect - Wicket 1.3 on Tomcat behind Apache httpd

2008-02-11 Thread Tim Squires
Hello again,

I'm still really struggling to find why the extra context is being added
to the path.  Could anyone help?  Does anyone have a Wicket 1.3.1 setup on
Tomcat behind Apache2?  Is there a recommended setup e.g. Jetty?

Working my way through the debug for Wicket, it looks like the page
requests for PageLinks and setRedirects are the same.

DEBUG - Page   - ending request for page [Page class =
abcd.app.page.LoginPage, id = 7, version = 0], request [method = POST,
protocol = HTTP/1.0, requestURL = http://www.abcd.com/abcd/app/,
contentType = application/x-www-form-urlencoded, contentLength = 54,
contextPath = /abcd, pathInfo = null, requestURI = /abcd/app/, servletPath
= /app/, pathTranslated = null]
DEBUG - Page   - ending request for page [Page class =
abcd.app.page.NewThingPage, id = 6, version = 0], request [method = POST,
protocol = HTTP/1.0, requestURL = http://www.abcd.com/abcd/app/,
contentType = application/x-www-form-urlencoded, contentLength = 54,
contextPath = /abcd, pathInfo = null, requestURI = /abcd/app/, servletPath
= /app/, pathTranslated = null]


Please, any help would be appreciated.  After hours of working on this,
I'm pulling my hair out.  Please tell me I've missed a comma or
something!!

Thanks,
Tim


 Hi All,

 I have a Wicket 1.3 app running on Tomcat 6 behind an Apache httpd server.
  Most of the app works great but any redirects using
 Component#setResponsePage adds the original web context to the path

 e.g.

 www.abcd.com/app turns to

 www.abcd.com/abcd/app

 and Tomcat complains

 /abcd/abcd/app is not available.

 I thought that in web.xml the filterPath parameter would fix this problem
 but no...

 filter
 filter-nameWicketApplication/filter-name
 
 filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
 init-param
 param-nameapplicationClassName/param-name
   param-valueabcd.app.WicketApplication/param-value
 /init-param
 init-param
 param-namefilterPath/param-name
 param-value//param-value
 /init-param
 /filter

 The apache2 config looks like this...

 VirtualHost abcd.com
 ServerName www.abcd.com
 ServerAdmin [EMAIL PROTECTED]
 ErrorLog /var/log/apache2/abcd_error.log
 ProxyRequests Off

 Proxy *
  AddDefaultCharset off
  Order deny,allow
  Allow from all
 /Proxy

 Location /
 SetOutputFilter proxy-html
 ProxyPass ajp://localhost:8009/abcd/
 ProxyPassReverse ajp://localhost:8009/abcd/
 ProxyPassReverseCookiePath /abcd /
 Order allow,deny
 Allow from all
 /Location
 /VirtualHost


 Could anyone point me in the right direction?

 Thanks for your help,
 Tim


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



adding context on redirect - Wicket 1.3 on Tomcat behind Apache httpd

2008-02-10 Thread Tim Squires
Hi All,

I have a Wicket 1.3 app running on Tomcat 6 behind an Apache httpd server.
 Most of the app works great but any redirects using
Component#setResponsePage adds the original web context to the path

e.g.

www.abcd.com/app turns to

www.abcd.com/abcd/app

and Tomcat complains

/abcd/abcd/app is not available.

I thought that in web.xml the filterPath parameter would fix this problem
but no...

filter
filter-nameWicketApplication/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
  param-valueabcd.app.WicketApplication/param-value
/init-param
init-param
param-namefilterPath/param-name
param-value//param-value
/init-param
/filter

The apache2 config looks like this...

VirtualHost abcd.com
ServerName www.abcd.com
ServerAdmin [EMAIL PROTECTED]
ErrorLog /var/log/apache2/abcd_error.log
ProxyRequests Off

Proxy *
 AddDefaultCharset off
 Order deny,allow
 Allow from all
/Proxy

Location /
SetOutputFilter proxy-html
ProxyPass ajp://localhost:8009/abcd/
ProxyPassReverse ajp://localhost:8009/abcd/
ProxyPassReverseCookiePath /abcd /
Order allow,deny
Allow from all
/Location
/VirtualHost


Could anyone point me in the right direction?

Thanks for your help,
Tim


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]