Re: [Wicket-user] Wicket 2.0 bookmarkable page issue?

2007-02-05 Thread Aaron HIniker
I added an empty filterPath to my web.xml via:

  init-param
  param-namefilterPath/param-name
  param-value/param-value
  /init-param

and it seems to have fixed the problem.

Thanks!

Aaron


Igor Vaynberg wrote:
 you should probably specify the filterpath param as well, even if it
 is empty or a /

 -igor


 On 2/2/07, *Aaron Hiniker*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 My web.xml:

 web-app
   display-nameArchetype Created Web Application/display-name

   filter
   filter-nameEDI/filter-name
   filter-classwicket.protocol.http.WicketFilter/filter-class
   init-param
 param-nameapplicationClassName/param-name
 param-value
   com.edicorp.erp.web.Application
 /param-value
   /init-param
   
 /filter
  
 filter-mapping
   filter-nameEDI/filter-name
   url-pattern/*/url-pattern
 /filter-mapping
  
 /web-app

 Aaron


 Igor Vaynberg wrote:
 what does your web.xml look like where you define the filter and
 mapping?

 -igor


 On 1/31/07, *Aaron Hiniker*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 I have a webapp that is bound to root / context, and I am
 mounting a bookmarkable page to /script/execute via:

 mountBookmarkablePage( /script/execute,
 ScriptExecutor.class );

 That page displays a textarea and a submit button within the
 form.  The code is as follows:


 public class ScriptExecutor extends WebPage
 {
 private static final Log log =
 LogFactory.getLog(ScriptExecutor.class);

 String script;

 public ScriptExecutor()
 {
 Form form = new Form( this, form ) {

 final TextArea textarea = new TextArea( this,
 textarea, new PropertyModel( ScriptExecutor.this, script ) );

 protected void onSubmit()
 {
 super.onSubmit();

 System.out.println(TextArea:  + getScript() );
 }
 };  
 }


 public String getScript()
 {
 return script;
 }

 public void setScript(String script)
 {
 this.script = script;
 }
 }

 When I first load the page via the bookmarkable url and hit
 submit, I get a 404 because wicket is submitting to:


 
 http://localhost:8080/script/?wicket:interface=:5:form::IFormSubmitListener


 when it should be submitting to:


 http://localhost:8080/?wicket:interface=:5:form::IFormSubmitListener


 This all seems to be due to the fact wicket isn't prepending
 a / to the form's action URL, causing the browser to use
 the current directory from the url, /script/:

 body
  form id=form0 
 action=?wicket:interface=:5:form::IFormSubmitListener 

 method=post wicket:id=form
  div style=display:noneinput

  type=hidden name=form0:hf:fs id=form0:hf:fs/
  input type

 =hidden name=wicketState id=form0:hf:ws//div
  textarea
  style
 =width: 500px; height: 500px wicket:id=textarea 
 name=textarea/textarea
  br/


  input type=submit value=Execute/
  /form
 /body
 


 Is this a user error on my part or an issue with how wicket
 is generating the url?

 Aaron


 
 -
 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
 
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 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 
 

Re: [Wicket-user] Wicket 2.0 bookmarkable page issue?

2007-02-05 Thread Igor Vaynberg

yep, its a temporary fix i myself had to use until al foreward-ports the
relative url refactor

-igor


On 2/5/07, Aaron HIniker [EMAIL PROTECTED] wrote:


 I added an empty filterPath to my web.xml via:

  init-param
  param-namefilterPath/param-name
  param-value/param-value
  /init-param

and it seems to have fixed the problem.

Thanks!

Aaron


Igor Vaynberg wrote:

you should probably specify the filterpath param as well, even if it is
empty or a /

-igor


On 2/2/07, Aaron Hiniker  [EMAIL PROTECTED] wrote:

 My web.xml:

 web-app
   display-nameArchetype Created Web Application/display-name

   filter
   filter-nameEDI/filter-name
   filter-classwicket.protocol.http.WicketFilter/filter-class
   init-param
 param-nameapplicationClassName/param-name
 param-value
   com.edicorp.erp.web.Application
 /param-value
   /init-param

 /filter

 filter-mapping
   filter-nameEDI/filter-name
   url-pattern/*/url-pattern
 /filter-mapping

 /web-app

 Aaron


 Igor Vaynberg wrote:

 what does your web.xml look like where you define the filter and
 mapping?

 -igor


 On 1/31/07, Aaron Hiniker  [EMAIL PROTECTED] wrote:
 
  I have a webapp that is bound to root / context, and I am mounting a
  bookmarkable page to /script/execute via:
 
  mountBookmarkablePage( /script/execute, ScriptExecutor.class);
 
  That page displays a textarea and a submit button within the form.
  The code is as follows:
 
 
  public class ScriptExecutor extends WebPage
  {
  private static final Log log = LogFactory.getLog(
  ScriptExecutor.class);
 
  String script;
 
  public ScriptExecutor()
  {
  Form form = new Form( this, form ) {
 
  final TextArea textarea = new TextArea( this, textarea,
  new PropertyModel( ScriptExecutor.this, script ) );
 
  protected void onSubmit()
  {
  super.onSubmit();
 
  System.out.println(TextArea:  + getScript() );
  }
  };
  }
 
 
  public String getScript()
  {
  return script;
  }
 
  public void setScript(String script)
  {
  this.script = script;
  }
  }
 
  When I first load the page via the bookmarkable url and hit submit, I
  get a 404 because wicket is submitting to:
 
  
http://localhost:8080/script/?wicket:interface=:5:form::IFormSubmitListener
 
 
  when it should be submitting to:
 
  http://localhost:8080/?wicket:interface=:5:form::IFormSubmitListener
 
 
  This all seems to be due to the fact wicket isn't prepending a / to
  the form's action URL, causing the browser to use the current directory from
  the url, /script/:
 
  body
form id=form0 
action=?wicket:interface=:5:form::IFormSubmitListener
 
  method=post wicket:id=form
div style=display:noneinput
   type=hidden name=form0:hf:fs id=form0:hf:fs/
input type
 
  =hidden name=wicketState id=form0:hf:ws//div
textarea
   style=width: 500px; height: 500px wicket:id=textarea 
name=textarea/textarea
br/
 
 
input type=submit value=Execute/
/form
  /body
 
 
  Is this a user error on my part or an issue with how wicket is
  generating the url?
 
  Aaron
 
 
 
  -
  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
 

Re: [Wicket-user] Wicket 2.0 bookmarkable page issue?

2007-02-03 Thread Johan Compagner

that shouldn't be needed.
But lets first see when AlMaw syncs both version where we exactly stand now.



johan

On 2/2/07, Igor Vaynberg [EMAIL PROTECTED] wrote:


you should probably specify the filterpath param as well, even if it is
empty or a /

-igor


On 2/2/07, Aaron Hiniker  [EMAIL PROTECTED] wrote:

  My web.xml:

 web-app
   display-nameArchetype Created Web Application/display-name

   filter
   filter-nameEDI/filter-name
   filter-classwicket.protocol.http.WicketFilter/filter-class
   init-param
 param-nameapplicationClassName/param-name
 param-value
   com.edicorp.erp.web.Application
 /param-value
   /init-param

 /filter

 filter-mapping
   filter-nameEDI/filter-name
   url-pattern/*/url-pattern
 /filter-mapping

 /web-app

 Aaron


 Igor Vaynberg wrote:

 what does your web.xml look like where you define the filter and
 mapping?

 -igor


 On 1/31/07, Aaron Hiniker  [EMAIL PROTECTED] wrote:
 
  I have a webapp that is bound to root / context, and I am mounting a
  bookmarkable page to /script/execute via:
 
  mountBookmarkablePage( /script/execute, ScriptExecutor.class);
 
  That page displays a textarea and a submit button within the form.
  The code is as follows:
 
 
  public class ScriptExecutor extends WebPage
  {
  private static final Log log = LogFactory.getLog(
  ScriptExecutor.class);
 
  String script;
 
  public ScriptExecutor()
  {
  Form form = new Form( this, form ) {
 
  final TextArea textarea = new TextArea( this, textarea,
  new PropertyModel( ScriptExecutor.this, script ) );
 
  protected void onSubmit()
  {
  super.onSubmit();
 
  System.out.println(TextArea:  + getScript() );
  }
  };
  }
 
 
  public String getScript()
  {
  return script;
  }
 
  public void setScript(String script)
  {
  this.script = script;
  }
  }
 
  When I first load the page via the bookmarkable url and hit submit, I
  get a 404 because wicket is submitting to:
 
  
http://localhost:8080/script/?wicket:interface=:5:form::IFormSubmitListener
 
 
  when it should be submitting to:
 
  http://localhost:8080/?wicket:interface=:5:form::IFormSubmitListener
 
 
  This all seems to be due to the fact wicket isn't prepending a / to
  the form's action URL, causing the browser to use the current directory from
  the url, /script/:
 
  body
form id=form0 
action=?wicket:interface=:5:form::IFormSubmitListener
 
  method=post wicket:id=form
div style=display:noneinput
   type=hidden name=form0:hf:fs id=form0:hf:fs/
input type
 
  =hidden name=wicketState id=form0:hf:ws//div
textarea
   style
  =width: 500px; height: 500px wicket:id=textarea 
name=textarea/textarea
br/
 
 
input type=submit value=Execute/
/form
  /body
 
 
  Is this a user error on my part or an issue with how wicket is
  generating the url?
 
  Aaron
 
 
 
  -
  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 

Re: [Wicket-user] Wicket 2.0 bookmarkable page issue?

2007-02-02 Thread Aaron Hiniker
My web.xml:

web-app
  display-nameArchetype Created Web Application/display-name

  filter
  filter-nameEDI/filter-name
  filter-classwicket.protocol.http.WicketFilter/filter-class
  init-param
param-nameapplicationClassName/param-name
param-value
  com.edicorp.erp.web.Application
/param-value
  /init-param
  
/filter
 
filter-mapping
  filter-nameEDI/filter-name
  url-pattern/*/url-pattern
/filter-mapping
 
/web-app

Aaron


Igor Vaynberg wrote:
 what does your web.xml look like where you define the filter and mapping?

 -igor


 On 1/31/07, *Aaron Hiniker*  [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:

 I have a webapp that is bound to root / context, and I am
 mounting a bookmarkable page to /script/execute via:

 mountBookmarkablePage( /script/execute,
 ScriptExecutor.class );

 That page displays a textarea and a submit button within the
 form.  The code is as follows:


 public class ScriptExecutor extends WebPage
 {
 private static final Log log =
 LogFactory.getLog(ScriptExecutor.class);

 String script;

 public ScriptExecutor()
 {
 Form form = new Form( this, form ) {

 final TextArea textarea = new TextArea( this,
 textarea, new PropertyModel( ScriptExecutor.this, script ) );

 protected void onSubmit()
 {
 super.onSubmit();

 System.out.println(TextArea:  + getScript() );
 }
 };  
 }


 public String getScript()
 {
 return script;
 }

 public void setScript(String script)
 {
 this.script = script;
 }
 }

 When I first load the page via the bookmarkable url and hit
 submit, I get a 404 because wicket is submitting to:


 
 http://localhost:8080/script/?wicket:interface=:5:form::IFormSubmitListener


 when it should be submitting to:


 http://localhost:8080/?wicket:interface=:5:form::IFormSubmitListener

 This all seems to be due to the fact wicket isn't prepending a /
 to the form's action URL, causing the browser to use the current
 directory from the url, /script/:

 body
   form id=form0 
 action=?wicket:interface=:5:form::IFormSubmitListener 
 method=post wicket:id=form
   div style=display:noneinput
  type=hidden name=form0:hf:fs id=form0:hf:fs/
   input type
 =hidden name=wicketState id=form0:hf:ws//div
   textarea style
 =width: 500px; height: 500px wicket:id=textarea 
 name=textarea/textarea
   br/

   input type=submit value=Execute/
   /form
 /body


 Is this a user error on my part or an issue with how wicket is
 generating the url?

 Aaron


 -
 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
 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642

 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 mailto:Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 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] Wicket 2.0 bookmarkable page issue?

2007-02-02 Thread Igor Vaynberg

you should probably specify the filterpath param as well, even if it is
empty or a /

-igor


On 2/2/07, Aaron Hiniker [EMAIL PROTECTED] wrote:


 My web.xml:

web-app
  display-nameArchetype Created Web Application/display-name

  filter
  filter-nameEDI/filter-name
  filter-classwicket.protocol.http.WicketFilter/filter-class
  init-param
param-nameapplicationClassName/param-name
param-value
  com.edicorp.erp.web.Application
/param-value
  /init-param

/filter

filter-mapping
  filter-nameEDI/filter-name
  url-pattern/*/url-pattern
/filter-mapping

/web-app

Aaron


Igor Vaynberg wrote:

what does your web.xml look like where you define the filter and mapping?

-igor


On 1/31/07, Aaron Hiniker  [EMAIL PROTECTED] wrote:

 I have a webapp that is bound to root / context, and I am mounting a
 bookmarkable page to /script/execute via:

 mountBookmarkablePage( /script/execute, ScriptExecutor.class);

 That page displays a textarea and a submit button within the form.  The
 code is as follows:


 public class ScriptExecutor extends WebPage
 {
 private static final Log log = LogFactory.getLog(
 ScriptExecutor.class);

 String script;

 public ScriptExecutor()
 {
 Form form = new Form( this, form ) {

 final TextArea textarea = new TextArea( this, textarea,
 new PropertyModel( ScriptExecutor.this, script ) );

 protected void onSubmit()
 {
 super.onSubmit();

 System.out.println(TextArea:  + getScript() );
 }
 };
 }


 public String getScript()
 {
 return script;
 }

 public void setScript(String script)
 {
 this.script = script;
 }
 }

 When I first load the page via the bookmarkable url and hit submit, I
 get a 404 because wicket is submitting to:

 
http://localhost:8080/script/?wicket:interface=:5:form::IFormSubmitListener


 when it should be submitting to:

 http://localhost:8080/?wicket:interface=:5:form::IFormSubmitListener


 This all seems to be due to the fact wicket isn't prepending a / to
 the form's action URL, causing the browser to use the current directory from
 the url, /script/:

 body
form id=form0 action=?wicket:interface=:5:form::IFormSubmitListener
 method=post wicket:id=form
div style=display:noneinput type=hidden name=form0:hf:fs 
id=form0:hf:fs/
input type
 =hidden name=wicketState id=form0:hf:ws//div
textarea style
 =width: 500px; height: 500px wicket:id=textarea 
name=textarea/textarea
br/

input type=submit value=Execute/
/form
 /body


 Is this a user error on my part or an issue with how wicket is
 generating the url?

 Aaron



 -
 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
[EMAIL PROTECTED]://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] Wicket 2.0 bookmarkable page issue?

2007-02-01 Thread Johan Compagner

AlMaw: i guess this kind of behavior will change anyway with your stuff?


On 1/31/07, Aaron Hiniker [EMAIL PROTECTED] wrote:


 I have a webapp that is bound to root / context, and I am mounting a
bookmarkable page to /script/execute via:

mountBookmarkablePage( /script/execute, ScriptExecutor.class );

That page displays a textarea and a submit button within the form.  The
code is as follows:


public class ScriptExecutor extends WebPage
{
private static final Log log = LogFactory.getLog(ScriptExecutor.class
);

String script;

public ScriptExecutor()
{
Form form = new Form( this, form ) {

final TextArea textarea = new TextArea( this, textarea, new
PropertyModel( ScriptExecutor.this, script ) );

protected void onSubmit()
{
super.onSubmit();

System.out.println(TextArea:  + getScript() );
}
};
}


public String getScript()
{
return script;
}

public void setScript(String script)
{
this.script = script;
}
}

When I first load the page via the bookmarkable url and hit submit, I get
a 404 because wicket is submitting to:

http://localhost:8080/script/
?wicket:interface=:5:form::IFormSubmitListener

when it should be submitting to:

http://localhost:8080/?wicket:interface=:5:form::IFormSubmitListener

This all seems to be due to the fact wicket isn't prepending a / to the
form's action URL, causing the browser to use the current directory from the
url, /script/:

body
form id=form0 action=?wicket:interface=:5:form::IFormSubmitListener 
method=post wicket:id=form
div style=display:noneinput type=hidden name=form0:hf:fs 
id=form0:hf:fs/
input type=hidden name=wicketState id=form0:hf:ws//div
textarea style=width: 500px; height: 500px wicket:id=textarea 
name=textarea/textarea
br/

input type=submit value=Execute/
/form
/body


Is this a user error on my part or an issue with how wicket is generating
the url?

Aaron


-
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] Wicket 2.0 bookmarkable page issue?

2007-02-01 Thread Igor Vaynberg

what does your web.xml look like where you define the filter and mapping?

-igor


On 1/31/07, Aaron Hiniker [EMAIL PROTECTED] wrote:


 I have a webapp that is bound to root / context, and I am mounting a
bookmarkable page to /script/execute via:

mountBookmarkablePage( /script/execute, ScriptExecutor.class );

That page displays a textarea and a submit button within the form.  The
code is as follows:


public class ScriptExecutor extends WebPage
{
private static final Log log = LogFactory.getLog(ScriptExecutor.class
);

String script;

public ScriptExecutor()
{
Form form = new Form( this, form ) {

final TextArea textarea = new TextArea( this, textarea, new
PropertyModel( ScriptExecutor.this, script ) );

protected void onSubmit()
{
super.onSubmit();

System.out.println(TextArea:  + getScript() );
}
};
}


public String getScript()
{
return script;
}

public void setScript(String script)
{
this.script = script;
}
}

When I first load the page via the bookmarkable url and hit submit, I get
a 404 because wicket is submitting to:

http://localhost:8080/script/
?wicket:interface=:5:form::IFormSubmitListener

when it should be submitting to:

http://localhost:8080/?wicket:interface=:5:form::IFormSubmitListener

This all seems to be due to the fact wicket isn't prepending a / to the
form's action URL, causing the browser to use the current directory from the
url, /script/:

body
form id=form0 action=?wicket:interface=:5:form::IFormSubmitListener 
method=post wicket:id=form
div style=display:noneinput type=hidden name=form0:hf:fs 
id=form0:hf:fs/
input type=hidden name=wicketState id=form0:hf:ws//div
textarea style=width: 500px; height: 500px wicket:id=textarea 
name=textarea/textarea
br/

input type=submit value=Execute/
/form
/body


Is this a user error on my part or an issue with how wicket is generating
the url?

Aaron


-
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


[Wicket-user] Wicket 2.0 bookmarkable page issue?

2007-01-31 Thread Aaron Hiniker
I have a webapp that is bound to root / context, and I am mounting a
bookmarkable page to /script/execute via:

mountBookmarkablePage( /script/execute, ScriptExecutor.class );

That page displays a textarea and a submit button within the form.  The
code is as follows:


public class ScriptExecutor extends WebPage
{
private static final Log log = LogFactory.getLog(ScriptExecutor.class);

String script;

public ScriptExecutor()
{
Form form = new Form( this, form ) {

final TextArea textarea = new TextArea( this, textarea,
new PropertyModel( ScriptExecutor.this, script ) );
   
protected void onSubmit()
{
super.onSubmit();

System.out.println(TextArea:  + getScript() );
}
};  
}


public String getScript()
{
return script;
}

public void setScript(String script)
{
this.script = script;
}
}

When I first load the page via the bookmarkable url and hit submit, I
get a 404 because wicket is submitting to:

   
http://localhost:8080/script/?wicket:interface=:5:form::IFormSubmitListener

when it should be submitting to:

http://localhost:8080/?wicket:interface=:5:form::IFormSubmitListener

This all seems to be due to the fact wicket isn't prepending a / to
the form's action URL, causing the browser to use the current directory
from the url, /script/:

body
form id=form0 
action=?wicket:interface=:5:form::IFormSubmitListener method=post 
wicket:id=form
div style=display:noneinput type=hidden 
name=form0:hf:fs id=form0:hf:fs/
input type=hidden name=wicketState id=form0:hf:ws//div
textarea style=width: 500px; height: 500px 
wicket:id=textarea name=textarea/textarea
br/

input type=submit value=Execute/
/form
/body


Is this a user error on my part or an issue with how wicket is
generating the url?

Aaron

-
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