Re: [Wicket-user] nice url for DownloadLink

2007-06-13 Thread Jan Van Besien
Jean-Baptiste Quenot wrote:
 The concepts described in the static pages examples are the same
 in 1.2.6.  You would just have to copy
 URIRequestTargetUrlCodingStrategy in your project, it is
 compatible with 1.2.6.

Ok, that's what I did.

In the WebPage class I have something like (StaticLink as in the example)

StaticLink fileLink = new StaticLink(fileLink, new Model(reports/ + 
file.getAbsolutePath()));

In the WebApplication class I do

mount(/reports, new URIRequestTargetUrlCodingStrategy(/reports) {
 public IRequestTarget decode(RequestParameters requestParameters) {
 String path = getURI(requestParameters);
 FileResourceStream fileStream = new FileResourceStream(new 
File(path));
 return new ResourceStreamRequestTarget(fileStream);
 }
});

Note that I use a FileResourceStream because my files are not in the 
webapp. Now when I try to browse to a certain file, I get this in a 
JBoss server

08:09:44,384 ERROR [[rtApplication]] Servlet.service() for servlet 
rtApplication threw exception
java.lang.IllegalStateException: getOutputStream() has already been 
called for this response
 at 
org.apache.catalina.connector.Response.getWriter(Response.java:596)
 at 
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:186)
 at wicket.protocol.http.WebResponse.write(WebResponse.java:315)
 at 
wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:75)
 at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:229)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at 
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
 at 
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
 at 
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at 
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
 at java.lang.Thread.run(Thread.java:595)

Strange thing: if I replace the 'new File(path)' with 'new 
File(/tmp/test.txt)' it actually works (returning test.txt for every 
link ofcourse).

Any ideas?

thnx
Jan

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url for DownloadLink

2007-06-13 Thread Jean-Baptiste Quenot
* Jan Van Besien:
 Jean-Baptiste Quenot wrote:
  The concepts described in the static pages examples are the same
  in 1.2.6.  You would just have to copy
  URIRequestTargetUrlCodingStrategy in your project, it is
  compatible with 1.2.6.
 
 Ok, that's what I did.
 
 In the WebPage class I have something like (StaticLink as in the example)
 
 StaticLink fileLink = new StaticLink(fileLink, new Model(reports/ + 
 file.getAbsolutePath()));
 
 In the WebApplication class I do
 
 mount(/reports, new URIRequestTargetUrlCodingStrategy(/reports) {
  public IRequestTarget decode(RequestParameters requestParameters) {
  String path = getURI(requestParameters);
  FileResourceStream fileStream = new FileResourceStream(new 
 File(path));
  return new ResourceStreamRequestTarget(fileStream);
  }
 });
 
 Note that I use a FileResourceStream because my files are not in the 
 webapp. Now when I try to browse to a certain file, I get this in a 
 JBoss server
 
 08:09:44,384 ERROR [[rtApplication]] Servlet.service() for servlet 
 rtApplication threw exception
 java.lang.IllegalStateException: getOutputStream() has already been 
 called for this response
  at 
 org.apache.catalina.connector.Response.getWriter(Response.java:596)
  at 
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:186)
  at wicket.protocol.http.WebResponse.write(WebResponse.java:315)
  at 
 wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:75)
  at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:229)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at 
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
  at 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  at 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  at 
 org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
  at 
 org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
  at 
 org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
  at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  at 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  at 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
  at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
  at 
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  at 
 org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  at java.lang.Thread.run(Thread.java:595)
 
 Strange thing: if I replace the 'new File(path)' with 'new 
 File(/tmp/test.txt)' it actually works (returning test.txt for every 
 link ofcourse).

If this is Wicket 1.2.6, yes I can understand this issue, and it's
fixed in 1.3.  It was a bug in BufferedWebResponse, not buffering
enough.

Back to your problem: does it work on Tomcat or Jetty?

Note that for security reasons you shouldn't mention the absolute
path in the URL.  I advise to prepend the root path in the code.
Also be careful of the double slash!  By reading your code, the
request translates to:

reports//path/to/file
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url for DownloadLink

2007-06-13 Thread Johan Compagner
somehow there is also txt/strings written to the output, can you set a
breakt point in the br.close() method and see what it wants to write?

On 6/13/07, Jan Van Besien [EMAIL PROTECTED] wrote:
 Jean-Baptiste Quenot wrote:
  The concepts described in the static pages examples are the same
  in 1.2.6.  You would just have to copy
  URIRequestTargetUrlCodingStrategy in your project, it is
  compatible with 1.2.6.

 Ok, that's what I did.

 In the WebPage class I have something like (StaticLink as in the example)

 StaticLink fileLink = new StaticLink(fileLink, new Model(reports/ +
 file.getAbsolutePath()));

 In the WebApplication class I do

 mount(/reports, new URIRequestTargetUrlCodingStrategy(/reports) {
  public IRequestTarget decode(RequestParameters requestParameters) {
  String path = getURI(requestParameters);
  FileResourceStream fileStream = new FileResourceStream(new
 File(path));
  return new ResourceStreamRequestTarget(fileStream);
  }
 });

 Note that I use a FileResourceStream because my files are not in the
 webapp. Now when I try to browse to a certain file, I get this in a
 JBoss server

 08:09:44,384 ERROR [[rtApplication]] Servlet.service() for servlet
 rtApplication threw exception
 java.lang.IllegalStateException: getOutputStream() has already been
 called for this response
  at
 org.apache.catalina.connector.Response.getWriter(Response.java:596)
  at
 org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:186)
  at wicket.protocol.http.WebResponse.write(WebResponse.java:315)
  at
 wicket.protocol.http.BufferedWebResponse.close(BufferedWebResponse.java:75)
  at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:229)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
  at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  at
 org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
  at
 org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
  at
 org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
  at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
  at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
  at
 org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  at
 org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
  at java.lang.Thread.run(Thread.java:595)

 Strange thing: if I replace the 'new File(path)' with 'new
 File(/tmp/test.txt)' it actually works (returning test.txt for every
 link ofcourse).

 Any ideas?

 thnx
 Jan

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url for DownloadLink

2007-06-13 Thread Jan Van Besien
Johan Compagner wrote:
 somehow there is also txt/strings written to the output, can you set a
 breakt point in the br.close() method and see what it wants to write?

Indeed! It wanted to write a html page displaying a RuntimeException 
(file not found). Now I got it working.

thnx
Jan

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url for DownloadLink

2007-06-12 Thread Igor Vaynberg

you need to create a shared resource that lets you stream those files and
mount that. then create a link component that generates href with
urlfor(resourcereference)+/report1.csv; or something like that.

-igor


On 6/11/07, Jan Van Besien [EMAIL PROTECTED] wrote:


Hi all

I have a page with a list of DownloadLinks that allow the user to
download a bunch of text (csv) files. This works, but clients want to
access these files with a script, without having to click trough the
gui. This also works, but the url's that point to the files are somewhat
cryptic ofcourse.

I know of the feature to mount bookmarkable pages etc to give them nicer
url's, and now I'm looking for a solution to do something similar for
DownloadLinks.

Currently on my page the files (e.g. report1.csv, report2.csv, ...) have
url's like


http://somehost/mycontextroot/?wicket:interface=:1:reports:0:fileLink::ILinkListener

http://somehost/mycontextroot/?wicket:interface=:1:reports:1:fileLink::ILinkListener

I would like this to be something like

http://somehost/mycontextroot/reports/report1.csv
http://somehost/mycontextroot/reports/report2.csv

Thanks in advance
Jan

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url for DownloadLink

2007-06-12 Thread Jean-Baptiste Quenot
* Jan Van Besien:
 
 Currently on my page the files (e.g. report1.csv, report2.csv, ...) have 
 url's like
 
 http://somehost/mycontextroot/?wicket:interface=:1:reports:0:fileLink::ILinkListener
 http://somehost/mycontextroot/?wicket:interface=:1:reports:1:fileLink::ILinkListener
 
 I would like this to be something like
 
 http://somehost/mycontextroot/reports/report1.csv
 http://somehost/mycontextroot/reports/report2.csv

Hello Jan,

If I were you I would look at the static pages examples:

http://wicketstuff.org/wicket13/staticpages/

If you have trouble using it, please follow-up, I'll be glad to
help.
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url for DownloadLink

2007-06-12 Thread Jan Van Besien
Jean-Baptiste Quenot wrote:
 * Jan Van Besien:
 If I were you I would look at the static pages examples:
 
 http://wicketstuff.org/wicket13/staticpages/

Looks promising indeed, but unfortunattely seems to be wicket 1.3 
features. I'm using latest stable 1.2.6, and will need to verify if 1.3 
is an option (not in public maven repository?).

Will also have a look at the shared resources suggestion...

thnx
Jan

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url for DownloadLink

2007-06-12 Thread Jean-Baptiste Quenot
* Jan Van Besien:

 Jean-Baptiste Quenot wrote:

  If I were you I would look at the static pages examples:
 
  http://wicketstuff.org/wicket13/staticpages/

 Looks promising  indeed, but  unfortunattely seems to  be wicket
 1.3 features. I'm  using latest stable  1.2.6, and will  need to
 verify if 1.3 is an option (not in public maven repository?).

The concepts described in the static pages examples are the same
in 1.2.6.  You would just have to copy
URIRequestTargetUrlCodingStrategy in your project, it is
compatible with 1.2.6.
-- 
 Jean-Baptiste Quenot
aka  John Banana   Qwerty
http://caraldi.com/jbq/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url for DownloadLink

2007-06-12 Thread Maurice Marrink
wicket 1.3 is available if you include the following in your
repositories tag of maven 2 pom.xml

repository
idwicket-snaps/id
urlhttp://wicketstuff.org/maven/repository/url
snapshots
enabledtrue/enabled
/snapshots
releases
enabledfalse/enabled
/releases
/repository

Maurice

On 6/12/07, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote:
 * Jan Van Besien:

  Jean-Baptiste Quenot wrote:
 
   If I were you I would look at the static pages examples:
  
   http://wicketstuff.org/wicket13/staticpages/
 
  Looks promising  indeed, but  unfortunattely seems to  be wicket
  1.3 features. I'm  using latest stable  1.2.6, and will  need to
  verify if 1.3 is an option (not in public maven repository?).

 The concepts described in the static pages examples are the same
 in 1.2.6.  You would just have to copy
 URIRequestTargetUrlCodingStrategy in your project, it is
 compatible with 1.2.6.
 --
  Jean-Baptiste Quenot
 aka  John Banana   Qwerty
 http://caraldi.com/jbq/

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-05-01 Thread Eelco Hillenius
 now we're going to build s.th. like a shop and i'm looking for

A Thai site?

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-05-01 Thread Martin Grotzke
On Tue, 2007-05-01 at 09:53 +0200, Eelco Hillenius wrote:
  now we're going to build s.th. like a shop and i'm looking for
 
 A Thai site?
hm? a thai site? what do you mean?

cheers,
martin

 
 Eelco
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
-- 
Martin Grotzke
http://www.javakaffee.de/blog/


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-05-01 Thread Eelco Hillenius
 On Tue, 2007-05-01 at 09:53 +0200, Eelco Hillenius wrote:
   now we're going to build s.th. like a shop and i'm looking for
 
  A Thai site?
 hm? a thai site? what do you mean?

Was a joke. You said 's.th' and .th is Thailand's extension.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-05-01 Thread Johan Compagner

and eelco only dreams thai now so..


On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:


 On Tue, 2007-05-01 at 09:53 +0200, Eelco Hillenius wrote:
   now we're going to build s.th. like a shop and i'm looking for
 
  A Thai site?
 hm? a thai site? what do you mean?

Was a joke. You said 's.th' and .th is Thailand's extension.

Eelco

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-05-01 Thread Martin Grotzke
On Tue, 2007-05-01 at 15:36 +0200, Johan Compagner wrote:
 and eelco only dreams thai now so..
ok, then sweet dreams, eelco :)

 
 
 On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote:
  On Tue, 2007-05-01 at 09:53 +0200, Eelco Hillenius wrote:
now we're going to build s.th. like a shop and i'm
 looking for
  
   A Thai site?
  hm? a thai site? what do you mean?
 
 Was a joke. You said 's.th' and .th is Thailand's extension. 
 
 Eelco
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and
 take
 control of your XML. No limits. Just data. Click to get it
 now. 
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___ Wicket-user mailing list 
 Wicket-user@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
-- 
Martin Grotzke
http://www.javakaffee.de/blog/


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
hi igor,

thanx a lot for this clarification!

cheers,
martin


On Sun, 2007-04-29 at 18:05 -0700, Igor Vaynberg wrote:
 in reality this isnt how its supposed to work.
 
 usually you would have something like this:
 
 searchpage {
   private criteria crit;
 
searchpage() {
   add(new searchform(form, new PropertyModel(this, crit)); 
   add(new resultsview(view, new PropertyModel(this, crit));
}
 }
 
 that way the form and the view are bound to the same criteria object.
 the form modifies it, and the view renders according to it. you would
 not call any setresponsepage in the form, the same insatance of the
 page would be reused. that is the wicket way. however, if you must
 have that nice bookmarkable url then you need to call
 setresponsepage(class, pageparams) from the form. it is not as clean,
 but it works. 
 
 -igor
 
 On 4/29/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 On Sun, 2007-04-29 at 17:41 -0700, Igor Vaynberg wrote:
  no, once the form is submitted the page is no longer
 bookmarkable and
  so it will lose any bookmarkable/mounted url.
 
  if you want to keep it you can call
 setresponsepage( page.class,
  params) in onsubmit(), but in your case that is silly since
  searchresultspage probably contains the submitted form
 anyways?
 well, i can do this (setResponsePage with params).
 the SearchResultsPage indeed has a also an instance of the
 form, 
 and the user can also initiate a search on the
 SearchResultsPage.
 
 so for each search the SearchForm.onSubmit creates a new
 SearchResultsPage and (indirectly) a new SearchForm...
 
 i just wonder if this this is the way how wicket should work,
 or if 
 this stateless way is s.th. that is not really the target of
 component based frameworks...
 
 thanx  cheers,
 martin
 
 
 
  -igor
 
 
  On 4/29/07, Martin Grotzke  [EMAIL PROTECTED]
 wrote:
  hi all,
 
  i'm just starting with wicket and have a simple
 search
  form, that leads to a SearchResultsPage. 
 
  the SearchResultsPage is mounted as a bookmarkable
 page (via
  mountBookmarkablePage(/search,
 SearchResultsPage.class);),
  although the url that is shown then contains s.th.
 like
  ?wicket:interface=:6:searchForm::IFormSubmitListener...
 
  is it possible to have a nicer url for the submitted
 form?
 
  i'm using wicket 1.2.6 right now...
 
  thanx in advance,
  cheers,
  martin
 
 
 
 
 
 - 
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2
 express and
  take
  control of your XML. No limits. Just data. Click to
 get it 
  now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list 
  Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and
 take 
  control of your XML. No limits. Just data. Click to get it
 now.
  http://sourceforge.net/powerbar/db2/
  ___ Wicket-user
 mailing list Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 -- 
 Martin Grotzke
 http://www.javakaffee.de/blog/
 
 
 -
 This SF.net email is sponsored by DB2 Express 
 Download DB2 Express C - the FREE version of DB2 express and
 take
 control of your XML. No limits. Just data. Click to get it
 now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express 

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
hi igor,

i'm trying to implement your advice, but don't really know
how to do this.

what would the SearchForm then look like? does the form itself
use the model and how is the input field added to the form?

and how can the ResultsView access the value of the PropertyModel?
the model has a getObject(Component) accessor - does this mean that
the ResultsView would need pass the SearchPage into getObject?

thanx  cheers,
martin



On Sun, 2007-04-29 at 18:05 -0700, Igor Vaynberg wrote:
 in reality this isnt how its supposed to work.
 
 usually you would have something like this:
 
 searchpage {
   private criteria crit;
 
searchpage() {
   add(new searchform(form, new PropertyModel(this, crit)); 
   add(new resultsview(view, new PropertyModel(this, crit));
}
 }
 
 that way the form and the view are bound to the same criteria object.
 the form modifies it, and the view renders according to it. you would
 not call any setresponsepage in the form, the same insatance of the
 page would be reused. that is the wicket way. however, if you must
 have that nice bookmarkable url then you need to call
 setresponsepage(class, pageparams) from the form. it is not as clean,
 but it works. 
 
 -igor
 
 On 4/29/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 On Sun, 2007-04-29 at 17:41 -0700, Igor Vaynberg wrote:
  no, once the form is submitted the page is no longer
 bookmarkable and
  so it will lose any bookmarkable/mounted url.
 
  if you want to keep it you can call
 setresponsepage( page.class,
  params) in onsubmit(), but in your case that is silly since
  searchresultspage probably contains the submitted form
 anyways?
 well, i can do this (setResponsePage with params).
 the SearchResultsPage indeed has a also an instance of the
 form, 
 and the user can also initiate a search on the
 SearchResultsPage.
 
 so for each search the SearchForm.onSubmit creates a new
 SearchResultsPage and (indirectly) a new SearchForm...
 
 i just wonder if this this is the way how wicket should work,
 or if 
 this stateless way is s.th. that is not really the target of
 component based frameworks...
 
 thanx  cheers,
 martin
 
 
 
  -igor
 
 
  On 4/29/07, Martin Grotzke  [EMAIL PROTECTED]
 wrote:
  hi all,
 
  i'm just starting with wicket and have a simple
 search
  form, that leads to a SearchResultsPage. 
 
  the SearchResultsPage is mounted as a bookmarkable
 page (via
  mountBookmarkablePage(/search,
 SearchResultsPage.class);),
  although the url that is shown then contains s.th.
 like
  ?wicket:interface=:6:searchForm::IFormSubmitListener...
 
  is it possible to have a nicer url for the submitted
 form?
 
  i'm using wicket 1.2.6 right now...
 
  thanx in advance,
  cheers,
  martin
 
 
 
 
 
 - 
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2
 express and
  take
  control of your XML. No limits. Just data. Click to
 get it 
  now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list 
  Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and
 take 
  control of your XML. No limits. Just data. Click to get it
 now.
  http://sourceforge.net/powerbar/db2/
  ___ Wicket-user
 mailing list Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 -- 
 Martin Grotzke
 http://www.javakaffee.de/blog/
 
 
 -
 This SF.net email is sponsored by DB2 Express 
 Download DB2 Express C - the FREE version of DB2 express and
 take
 control of your XML. No limits. Just data. Click to get it
 now.
 

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg

i suggest you read here:
http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models

the idea is pretty simple:
the form submits its data into a bean, and the view renders according to
that bean. this is accomplished by having the form and the view's models
connected to the same bean via models.

-igor


On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:


hi igor,

i'm trying to implement your advice, but don't really know
how to do this.

what would the SearchForm then look like? does the form itself
use the model and how is the input field added to the form?

and how can the ResultsView access the value of the PropertyModel?
the model has a getObject(Component) accessor - does this mean that
the ResultsView would need pass the SearchPage into getObject?

thanx  cheers,
martin



On Sun, 2007-04-29 at 18:05 -0700, Igor Vaynberg wrote:
 in reality this isnt how its supposed to work.

 usually you would have something like this:

 searchpage {
   private criteria crit;

searchpage() {
   add(new searchform(form, new PropertyModel(this, crit));
   add(new resultsview(view, new PropertyModel(this, crit));
}
 }

 that way the form and the view are bound to the same criteria object.
 the form modifies it, and the view renders according to it. you would
 not call any setresponsepage in the form, the same insatance of the
 page would be reused. that is the wicket way. however, if you must
 have that nice bookmarkable url then you need to call
 setresponsepage(class, pageparams) from the form. it is not as clean,
 but it works.

 -igor

 On 4/29/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 On Sun, 2007-04-29 at 17:41 -0700, Igor Vaynberg wrote:
  no, once the form is submitted the page is no longer
 bookmarkable and
  so it will lose any bookmarkable/mounted url.
 
  if you want to keep it you can call
 setresponsepage( page.class,
  params) in onsubmit(), but in your case that is silly since
  searchresultspage probably contains the submitted form
 anyways?
 well, i can do this (setResponsePage with params).
 the SearchResultsPage indeed has a also an instance of the
 form,
 and the user can also initiate a search on the
 SearchResultsPage.

 so for each search the SearchForm.onSubmit creates a new
 SearchResultsPage and (indirectly) a new SearchForm...

 i just wonder if this this is the way how wicket should work,
 or if
 this stateless way is s.th. that is not really the target of
 component based frameworks...

 thanx  cheers,
 martin


 
  -igor
 
 
  On 4/29/07, Martin Grotzke  [EMAIL PROTECTED]
 wrote:
  hi all,
 
  i'm just starting with wicket and have a simple
 search
  form, that leads to a SearchResultsPage.
 
  the SearchResultsPage is mounted as a bookmarkable
 page (via
  mountBookmarkablePage(/search,
 SearchResultsPage.class);),
  although the url that is shown then contains s.th.
 like
 
?wicket:interface=:6:searchForm::IFormSubmitListener...
 
  is it possible to have a nicer url for the submitted
 form?
 
  i'm using wicket 1.2.6 right now...
 
  thanx in advance,
  cheers,
  martin
 
 
 
 

-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2
 express and
  take
  control of your XML. No limits. Just data. Click to
 get it
  now.
  http://sourceforge.net/powerbar/db2/
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 

-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and
 take
  control of your XML. No limits. Just data. Click to get it
 now.
  http://sourceforge.net/powerbar/db2/
  ___ Wicket-user
 mailing list Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 --
 Martin Grotzke
 http://www.javakaffee.de/blog/



Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
hi igor,

i hope i got the idea now. i post my beans here, it would be nice
if could tell me if anything's not following the right path :)

// the start page, simply with the search form
public Index(final PageParameters parameters) {
LOG.debug( Creating new Index page with params  + parameters );
add( new SearchForm( searchForm, new Model() ) );
}

// the search form
public SearchForm(String id, IModel model) {
super( id, model );
add( new TextField( query, model ) );
}

@Override
protected void onSubmit() {
// set response page with page params for bookmarkable urls
final PageParameters params = new PageParameters();
params.add( query, (String) getModelObject() );
setResponsePage( SearchPage.class, params );
}

// the search page with form and results
private String _userInput;

public SearchPage(final PageParameters parameters) {
_userInput = parameters.getString( query );
add( new SearchForm( searchForm, new PropertyModel( this, userInput 
) ) ); 
add( new SearchResultsView( productList, new PropertyModel( this, 
userInput ), this ) );
}

public String getUserInput() {
return _userInput;
}

public void setUserInput( String userInput ) {
_userInput = userInput;
}


cheers,
martin


On Mon, 2007-04-30 at 14:02 -0700, Igor Vaynberg wrote:
 i suggest you read here:
 http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket
 +models
 
 the idea is pretty simple: 
 the form submits its data into a bean, and the view renders according
 to that bean. this is accomplished by having the form and the view's
 models connected to the same bean via models.
 
 -igor
 
 
 On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 hi igor,
 
 i'm trying to implement your advice, but don't really know
 how to do this.
 
 what would the SearchForm then look like? does the form itself
 use the model and how is the input field added to the form? 
 
 and how can the ResultsView access the value of the
 PropertyModel?
 the model has a getObject(Component) accessor - does this mean
 that
 the ResultsView would need pass the SearchPage into getObject?
 
 thanx  cheers, 
 martin
 
 
 
 On Sun, 2007-04-29 at 18:05 -0700, Igor Vaynberg wrote:
  in reality this isnt how its supposed to work.
 
  usually you would have something like this:
 
  searchpage { 
private criteria crit;
 
 searchpage() {
add(new searchform(form, new PropertyModel(this,
 crit));
add(new resultsview(view, new PropertyModel(this,
 crit)); 
 }
  }
 
  that way the form and the view are bound to the same
 criteria object.
  the form modifies it, and the view renders according to it.
 you would
  not call any setresponsepage in the form, the same insatance
 of the 
  page would be reused. that is the wicket way. however, if
 you must
  have that nice bookmarkable url then you need to call
  setresponsepage(class, pageparams) from the form. it is not
 as clean,
  but it works. 
 
  -igor
 
  On 4/29/07, Martin Grotzke [EMAIL PROTECTED]
 wrote:
  On Sun, 2007-04-29 at 17:41 -0700, Igor Vaynberg
 wrote: 
   no, once the form is submitted the page is no
 longer
  bookmarkable and
   so it will lose any bookmarkable/mounted url.
  
   if you want to keep it you can call 
  setresponsepage( page.class,
   params) in onsubmit(), but in your case that is
 silly since
   searchresultspage probably contains the submitted
 form
  anyways? 
  well, i can do this (setResponsePage with params).
  the SearchResultsPage indeed has a also an instance
 of the
  form,
  and the user can also initiate a search on the 
  SearchResultsPage.
 
  so for each search the SearchForm.onSubmit creates a
 new
  SearchResultsPage and (indirectly) a new
 SearchForm...
 
  i just wonder if this this is the way how wicket
 should work, 
  or if
  this stateless way is s.th. that is not really the
 target of
  component based frameworks...
 
  thanx  cheers,
  martin
 
 
  
   -igor

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke wrote:
 hi igor,
 
 i hope i got the idea now. i post my beans here, 
aehem, sorry - forgot to include SearchResultsView:

public SearchResultsView(String id, PropertyModel model ) {
super( id, model );
final String query = (String) getModelObject();
final List? extends Product products = 
((StealthShopApplication)getApplication()).getSearchService().find( query );
setList( products );
}

@SuppressWarnings(serial)
@Override
protected void populateItem( ListItem listItem ) {
final Product product = 
(Product)listItem.getModelObject();
listItem.add( new Label(id, product.getId() ) );
listItem.add( new Label( title, product.getTitle() ) );
listItem.add( new Label( description, product.getDescription() ) );
listItem.add(new Link(showDetailsLink){
public void onClick(){
PageParameters pp = new PageParameters();
pp.add(productId, product.getId());
setResponsePage(Index.class, pp);
}
});
}

cheers :)
martin


 it would be nice
 if could tell me if anything's not following the right path :)
 
 // the start page, simply with the search form
 public Index(final PageParameters parameters) {
 LOG.debug( Creating new Index page with params  + parameters );
 add( new SearchForm( searchForm, new Model() ) );
 }
 
 // the search form
 public SearchForm(String id, IModel model) {
 super( id, model );
 add( new TextField( query, model ) );
 }
 
 @Override
 protected void onSubmit() {
 // set response page with page params for bookmarkable urls
 final PageParameters params = new PageParameters();
 params.add( query, (String) getModelObject() );
 setResponsePage( SearchPage.class, params );
 }
 
 // the search page with form and results
 private String _userInput;
 
 public SearchPage(final PageParameters parameters) {
 _userInput = parameters.getString( query );
 add( new SearchForm( searchForm, new PropertyModel( this, 
 userInput ) ) ); 
 add( new SearchResultsView( productList, new PropertyModel( this, 
 userInput ), this ) );
 }
 
 public String getUserInput() {
 return _userInput;
 }
 
 public void setUserInput( String userInput ) {
 _userInput = userInput;
 }
 
 
 cheers,
 martin
 
 
 On Mon, 2007-04-30 at 14:02 -0700, Igor Vaynberg wrote:
  i suggest you read here:
  http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket
  +models
  
  the idea is pretty simple: 
  the form submits its data into a bean, and the view renders according
  to that bean. this is accomplished by having the form and the view's
  models connected to the same bean via models.
  
  -igor
  
  
  On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:
  hi igor,
  
  i'm trying to implement your advice, but don't really know
  how to do this.
  
  what would the SearchForm then look like? does the form itself
  use the model and how is the input field added to the form? 
  
  and how can the ResultsView access the value of the
  PropertyModel?
  the model has a getObject(Component) accessor - does this mean
  that
  the ResultsView would need pass the SearchPage into getObject?
  
  thanx  cheers, 
  martin
  
  
  
  On Sun, 2007-04-29 at 18:05 -0700, Igor Vaynberg wrote:
   in reality this isnt how its supposed to work.
  
   usually you would have something like this:
  
   searchpage { 
 private criteria crit;
  
  searchpage() {
 add(new searchform(form, new PropertyModel(this,
  crit));
 add(new resultsview(view, new PropertyModel(this,
  crit)); 
  }
   }
  
   that way the form and the view are bound to the same
  criteria object.
   the form modifies it, and the view renders according to it.
  you would
   not call any setresponsepage in the form, the same insatance
  of the 
   page would be reused. that is the wicket way. however, if
  you must
   have that nice bookmarkable url then you need to call
   setresponsepage(class, pageparams) from the form. it is not
  as clean,
   but it works. 
  
   -igor
  
   On 4/29/07, Martin Grotzke [EMAIL PROTECTED]
  wrote:
   On Sun, 2007-04-29 at 17:41 -0700, Igor Vaynberg
  wrote: 
no, once the form is submitted the page is no
  longer
   bookmarkable and
so it will 

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg

On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:


On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke wrote:
 hi igor,

 i hope i got the idea now. i post my beans here,
aehem, sorry - forgot to include SearchResultsView:

public SearchResultsView(String id, PropertyModel model ) {
super( id, model );
final String query = (String) getModelObject();
final List? extends Product products =
((StealthShopApplication)getApplication()).getSearchService().find( query );
setList( products );



the above isnt right because the list is refreshed only when the
searchresultsview is created - which only happens once.

instead

class resultsmodel extends abstractreadonlymodel {
 private imodel query;
 public resultsmodel(imodel query) { this.query=query; }
 public object getobject() {
  return
((StealthShopApplication)getApplication()).getSearchService().find(
query.getobject() );
 }
 public void detach() { query.detach(); }
}

setmodel(new resultsmodel(model));

that way listview will get fresh results every page refresh

-igor
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 15:07 -0700, Igor Vaynberg wrote:
 On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke wrote:
  hi igor,
 
  i hope i got the idea now. i post my beans here,
 aehem, sorry - forgot to include SearchResultsView:
 
 public SearchResultsView(String id, PropertyModel model )
 { 
 super( id, model );
 final String query = (String) getModelObject();
 final List? extends Product products =
 ((StealthShopApplication)getApplication()).getSearchService().find( 
 query ); 
 setList( products );
 
 the above isnt right because the list is refreshed only when the
 searchresultsview is created - which only happens once.
hmm, but the SearchPage is created for each request, that shows a
LOG.debug( Creating new SearchPage with params  + parameters );
that I added to the constructor of the SearchPage.

this should be caused by the onSubmit implementation of the SearchForm:

protected void onSubmit() {
// set response page with page params for bookmarkable urls
final PageParameters params = new PageParameters();
params.add( query, (String) getModelObject() );
setResponsePage( SearchPage.class, params );
}

which I implemented like this to have bookmarkable urls.
therefore the SearchResultsView is created for each request.

is this wrong in terms of lifecycle of wicket pages?
would there be another possibility to achieve bookmarkable
pages with a form submit?

cheers,
martin


 
 instead
 
 class resultsmodel extends abstractreadonlymodel { 
   private imodel query;
   public resultsmodel(imodel query) { this.query=query; }
   public object getobject() {
return
 ((StealthShopApplication)getApplication()).getSearchService().find( 
 query.getobject () );
   }
   public void detach() { query.detach(); }
 }
 
 setmodel(new resultsmodel(model));
 
 that way listview will get fresh results every page refresh
 
 -igor
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___ Wicket-user mailing list 
 Wicket-user@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
-- 
Martin Grotzke
http://www.javakaffee.de/blog/


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg

if you want to maintain the bookmarkable url then no. but this is atypical
of how wicket lifecycle usually works. the model i showed is better because
if you reuse the searchresultsview outside of this lifecycle you are
creating it will still work properly, but if you have no plans on reusing it
then i guess what you do will work too.

-igor


On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:


On Mon, 2007-04-30 at 15:07 -0700, Igor Vaynberg wrote:
 On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke wrote:
  hi igor,
 
  i hope i got the idea now. i post my beans here,
 aehem, sorry - forgot to include SearchResultsView:

 public SearchResultsView(String id, PropertyModel model )
 {
 super( id, model );
 final String query = (String) getModelObject();
 final List? extends Product products =

((StealthShopApplication)getApplication()).getSearchService().find( query );
 setList( products );

 the above isnt right because the list is refreshed only when the
 searchresultsview is created - which only happens once.
hmm, but the SearchPage is created for each request, that shows a
LOG.debug( Creating new SearchPage with params  + parameters );
that I added to the constructor of the SearchPage.

this should be caused by the onSubmit implementation of the SearchForm:

protected void onSubmit() {
// set response page with page params for bookmarkable urls
final PageParameters params = new PageParameters();
params.add( query, (String) getModelObject() );
setResponsePage( SearchPage.class, params );
}

which I implemented like this to have bookmarkable urls.
therefore the SearchResultsView is created for each request.

is this wrong in terms of lifecycle of wicket pages?
would there be another possibility to achieve bookmarkable
pages with a form submit?

cheers,
martin



 instead

 class resultsmodel extends abstractreadonlymodel {
   private imodel query;
   public resultsmodel(imodel query) { this.query=query; }
   public object getobject() {
return
 ((StealthShopApplication)getApplication()).getSearchService().find(
query.getobject () );
   }
   public void detach() { query.detach(); }
 }

 setmodel(new resultsmodel(model));

 that way listview will get fresh results every page refresh

 -igor


-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___ Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
--
Martin Grotzke
http://www.javakaffee.de/blog/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 15:23 -0700, Igor Vaynberg wrote:
 if you want to maintain the bookmarkable url then no. but this is
 atypical of how wicket lifecycle usually works. 
ok. do I have to take anything in acount if i use wicket in this
atypical way?

however, until now it feels very good to work with wicket, even
with this more action/mvc like (stateless) aproach... :)

 the model i showed is better because if you reuse the
 searchresultsview outside of this lifecycle you are creating it will
 still work properly, but if you have no plans on reusing it then i
 guess what you do will work too. 
ok, i'll keep that in mind.

thanx a lot for your help,
cheers,
martin


 
 -igor
 
 
 On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 On Mon, 2007-04-30 at 15:07 -0700, Igor Vaynberg wrote:
  On 4/30/07, Martin Grotzke [EMAIL PROTECTED]
 wrote:
  On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke
 wrote: 
   hi igor,
  
   i hope i got the idea now. i post my beans here,
  aehem, sorry - forgot to include SearchResultsView:
 
  public SearchResultsView(String id,
 PropertyModel model ) 
  {
  super( id, model );
  final String query = (String)
 getModelObject();
  final List? extends Product products =
 
 ((StealthShopApplication)getApplication()).getSearchService().find( 
 query ); 
  setList( products );
 
  the above isnt right because the list is refreshed only when
 the
  searchresultsview is created - which only happens once.
 hmm, but the SearchPage is created for each request, that
 shows a 
 LOG.debug( Creating new SearchPage with params  +
 parameters );
 that I added to the constructor of the SearchPage.
 
 this should be caused by the onSubmit implementation of the
 SearchForm:
 
 protected void onSubmit() { 
 // set response page with page params for bookmarkable
 urls
 final PageParameters params = new PageParameters();
 params.add( query, (String) getModelObject() );
 setResponsePage( SearchPage.class, params );
 }
 
 which I implemented like this to have bookmarkable urls.
 therefore the SearchResultsView is created for each request.
 
 is this wrong in terms of lifecycle of wicket pages? 
 would there be another possibility to achieve bookmarkable
 pages with a form submit?
 
 cheers,
 martin
 
 
 
  instead
 
  class resultsmodel extends abstractreadonlymodel {
private imodel query; 
public resultsmodel(imodel query) { this.query=query; }
public object getobject() {
 return
 
 ((StealthShopApplication)getApplication()).getSearchService().find( 
 query.getobject () ); 
}
public void detach() { query.detach(); }
  }
 
  setmodel(new resultsmodel(model));
 
  that way listview will get fresh results every page refresh
 
  -igor 
 
 
 
 -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and
 take
  control of your XML. No limits. Just data. Click to get it
 now.
  http://sourceforge.net/powerbar/db2/
  ___ Wicket-user
 mailing list Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 -- 
 Martin Grotzke
 http://www.javakaffee.de/blog/
 
 
 -
 This SF.net email is sponsored by DB2 Express 
 Download DB2 Express C - the FREE version of DB2 express and
 take
 control of your XML. No limits. Just data. Click to get it
 now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Igor Vaynberg

On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:


On Mon, 2007-04-30 at 15:23 -0700, Igor Vaynberg wrote:
 if you want to maintain the bookmarkable url then no. but this is
 atypical of how wicket lifecycle usually works.
ok. do I have to take anything in acount if i use wicket in this
atypical way?



noep, nothing special to watch out for.



however, until now it feels very good to work with wicket, even
with this more action/mvc like (stateless) aproach... :)



it feels even better once you use the normal lifecycle :)

-igor



the model i showed is better because if you reuse the
 searchresultsview outside of this lifecycle you are creating it will
 still work properly, but if you have no plans on reusing it then i
 guess what you do will work too.
ok, i'll keep that in mind.

thanx a lot for your help,
cheers,
martin



 -igor


 On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 On Mon, 2007-04-30 at 15:07 -0700, Igor Vaynberg wrote:
  On 4/30/07, Martin Grotzke [EMAIL PROTECTED]
 wrote:
  On Mon, 2007-04-30 at 23:55 +0200, Martin Grotzke
 wrote:
   hi igor,
  
   i hope i got the idea now. i post my beans here,
  aehem, sorry - forgot to include SearchResultsView:
 
  public SearchResultsView(String id,
 PropertyModel model )
  {
  super( id, model );
  final String query = (String)
 getModelObject();
  final List? extends Product products =
 

((StealthShopApplication)getApplication()).getSearchService().find( query );
  setList( products );
 
  the above isnt right because the list is refreshed only when
 the
  searchresultsview is created - which only happens once.
 hmm, but the SearchPage is created for each request, that
 shows a
 LOG.debug( Creating new SearchPage with params  +
 parameters );
 that I added to the constructor of the SearchPage.

 this should be caused by the onSubmit implementation of the
 SearchForm:

 protected void onSubmit() {
 // set response page with page params for bookmarkable
 urls
 final PageParameters params = new PageParameters();
 params.add( query, (String) getModelObject() );
 setResponsePage( SearchPage.class, params );
 }

 which I implemented like this to have bookmarkable urls.
 therefore the SearchResultsView is created for each request.

 is this wrong in terms of lifecycle of wicket pages?
 would there be another possibility to achieve bookmarkable
 pages with a form submit?

 cheers,
 martin


 
  instead
 
  class resultsmodel extends abstractreadonlymodel {
private imodel query;
public resultsmodel(imodel query) { this.query=query; }
public object getobject() {
 return
 

((StealthShopApplication)getApplication()).getSearchService().find(
query.getobject () );
}
public void detach() { query.detach(); }
  }
 
  setmodel(new resultsmodel(model));
 
  that way listview will get fresh results every page refresh
 
  -igor
 
 

-
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and
 take
  control of your XML. No limits. Just data. Click to get it
 now.
  http://sourceforge.net/powerbar/db2/
  ___ Wicket-user
 mailing list Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 --
 Martin Grotzke
 http://www.javakaffee.de/blog/


-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and
 take
 control of your XML. No limits. Just data. Click to get it
 now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 

Re: [Wicket-user] nice url with submitted form

2007-04-30 Thread Martin Grotzke
On Mon, 2007-04-30 at 15:42 -0700, Igor Vaynberg wrote:
 On 4/30/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 On Mon, 2007-04-30 at 15:23 -0700, Igor Vaynberg wrote:
  if you want to maintain the bookmarkable url then no. but
 this is
  atypical of how wicket lifecycle usually works.
 ok. do I have to take anything in acount if i use wicket in
 this 
 atypical way?
 
 noep, nothing special to watch out for.
cool :)

  
 however, until now it feels very good to work with wicket,
 even 
 with this more action/mvc like (stateless) aproach... :)
 
 it feels even better once you use the normal lifecycle :)
jepp, i believe this :) i have written apps with wingS some times ago
and i loved it - but we could only use for cms-like apps, not for end
users...

now we're going to build s.th. like a shop and i'm looking for
frameworks that match our needs. probably spring-mvc or tapestry would
also be candidates, but what i've read about wicket sounded better :)

cheers,
martin


 
 -igor
  
 
 
  the model i showed is better because if you reuse the
  searchresultsview outside of this lifecycle you are creating
 it will
  still work properly, but if you have no plans on reusing it
 then i
  guess what you do will work too. 
 ok, i'll keep that in mind.
 
 thanx a lot for your help,
 cheers,
 martin
 
 
 
  -igor
 
 
  On 4/30/07, Martin Grotzke [EMAIL PROTECTED]
 wrote:
  On Mon, 2007-04-30 at 15:07 -0700, Igor Vaynberg
 wrote:
   On 4/30/07, Martin Grotzke
 [EMAIL PROTECTED]
  wrote:
   On Mon, 2007-04-30 at 23:55 +0200, Martin
 Grotzke
  wrote:
hi igor,
   
i hope i got the idea now. i post my
 beans here, 
   aehem, sorry - forgot to include
 SearchResultsView:
  
   public SearchResultsView(String id,
  PropertyModel model )
   { 
   super( id, model );
   final String query = (String)
  getModelObject();
   final List? extends Product
 products = 
  
 
 ((StealthShopApplication)getApplication()).getSearchService().find( 
 query );
   setList( products );
  
   the above isnt right because the list is refreshed
 only when 
  the
   searchresultsview is created - which only happens
 once.
  hmm, but the SearchPage is created for each request,
 that
  shows a
  LOG.debug ( Creating new SearchPage with params  +
  parameters );
  that I added to the constructor of the SearchPage.
 
  this should be caused by the onSubmit implementation
 of the 
  SearchForm:
 
  protected void onSubmit() {
  // set response page with page params for
 bookmarkable
  urls
  final PageParameters params = new
 PageParameters(); 
  params.add( query, (String)
 getModelObject() );
  setResponsePage( SearchPage.class, params );
  }
 
  which I implemented like this to have bookmarkable
 urls. 
  therefore the SearchResultsView is created for each
 request.
 
  is this wrong in terms of lifecycle of wicket pages?
  would there be another possibility to achieve
 bookmarkable 
  pages with a form submit?
 
  cheers,
  martin
 
 
  
   instead
  
   class resultsmodel extends abstractreadonlymodel
 { 
 private imodel query;
 public resultsmodel(imodel query)
 { this.query=query; }
 public object getobject() {
  return
   
 
 ((StealthShopApplication)getApplication()).getSearchService().find( 
 query.getobject () );
 }
 public void detach() { query.detach(); }
   }
  
   setmodel(new resultsmodel(model));
  
   that way listview will get fresh results 

Re: [Wicket-user] nice url with submitted form

2007-04-29 Thread Igor Vaynberg

no, once the form is submitted the page is no longer bookmarkable and so it
will lose any bookmarkable/mounted url.

if you want to keep it you can call setresponsepage(page.class, params) in
onsubmit(), but in your case that is silly since searchresultspage probably
contains the submitted form anyways?

-igor


On 4/29/07, Martin Grotzke [EMAIL PROTECTED] wrote:


hi all,

i'm just starting with wicket and have a simple search
form, that leads to a SearchResultsPage.

the SearchResultsPage is mounted as a bookmarkable page (via
mountBookmarkablePage(/search, SearchResultsPage.class);),
although the url that is shown then contains s.th. like
?wicket:interface=:6:searchForm::IFormSubmitListener...

is it possible to have a nicer url for the submitted form?

i'm using wicket 1.2.6 right now...

thanx in advance,
cheers,
martin



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-04-29 Thread Martin Grotzke
On Sun, 2007-04-29 at 17:41 -0700, Igor Vaynberg wrote:
 no, once the form is submitted the page is no longer bookmarkable and
 so it will lose any bookmarkable/mounted url.
 
 if you want to keep it you can call setresponsepage(page.class,
 params) in onsubmit(), but in your case that is silly since
 searchresultspage probably contains the submitted form anyways? 
well, i can do this (setResponsePage with params).
the SearchResultsPage indeed has a also an instance of the form,
and the user can also initiate a search on the SearchResultsPage.

so for each search the SearchForm.onSubmit creates a new
SearchResultsPage and (indirectly) a new SearchForm...

i just wonder if this this is the way how wicket should work, or if
this stateless way is s.th. that is not really the target of
component based frameworks...

thanx  cheers,
martin


 
 -igor
 
 
 On 4/29/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 hi all,
 
 i'm just starting with wicket and have a simple search
 form, that leads to a SearchResultsPage.
 
 the SearchResultsPage is mounted as a bookmarkable page (via
 mountBookmarkablePage(/search, SearchResultsPage.class);),
 although the url that is shown then contains s.th. like
 ?wicket:interface=:6:searchForm::IFormSubmitListener...
 
 is it possible to have a nicer url for the submitted form? 
 
 i'm using wicket 1.2.6 right now...
 
 thanx in advance,
 cheers,
 martin
 
 
 
 
 -
 This SF.net email is sponsored by DB2 Express 
 Download DB2 Express C - the FREE version of DB2 express and
 take
 control of your XML. No limits. Just data. Click to get it
 now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___ Wicket-user mailing list 
 Wicket-user@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/wicket-user
-- 
Martin Grotzke
http://www.javakaffee.de/blog/


signature.asc
Description: This is a digitally signed message part
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice url with submitted form

2007-04-29 Thread Igor Vaynberg

in reality this isnt how its supposed to work.

usually you would have something like this:

searchpage {
 private criteria crit;

  searchpage() {
 add(new searchform(form, new PropertyModel(this, crit));
 add(new resultsview(view, new PropertyModel(this, crit));
  }
}

that way the form and the view are bound to the same criteria object. the
form modifies it, and the view renders according to it. you would not call
any setresponsepage in the form, the same insatance of the page would be
reused. that is the wicket way. however, if you must have that nice
bookmarkable url then you need to call setresponsepage(class, pageparams)
from the form. it is not as clean, but it works.

-igor

On 4/29/07, Martin Grotzke [EMAIL PROTECTED] wrote:


On Sun, 2007-04-29 at 17:41 -0700, Igor Vaynberg wrote:
 no, once the form is submitted the page is no longer bookmarkable and
 so it will lose any bookmarkable/mounted url.

 if you want to keep it you can call setresponsepage(page.class,
 params) in onsubmit(), but in your case that is silly since
 searchresultspage probably contains the submitted form anyways?
well, i can do this (setResponsePage with params).
the SearchResultsPage indeed has a also an instance of the form,
and the user can also initiate a search on the SearchResultsPage.

so for each search the SearchForm.onSubmit creates a new
SearchResultsPage and (indirectly) a new SearchForm...

i just wonder if this this is the way how wicket should work, or if
this stateless way is s.th. that is not really the target of
component based frameworks...

thanx  cheers,
martin



 -igor


 On 4/29/07, Martin Grotzke [EMAIL PROTECTED] wrote:
 hi all,

 i'm just starting with wicket and have a simple search
 form, that leads to a SearchResultsPage.

 the SearchResultsPage is mounted as a bookmarkable page (via
 mountBookmarkablePage(/search, SearchResultsPage.class);),
 although the url that is shown then contains s.th. like
 ?wicket:interface=:6:searchForm::IFormSubmitListener...

 is it possible to have a nicer url for the submitted form?

 i'm using wicket 1.2.6 right now...

 thanx in advance,
 cheers,
 martin




-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and
 take
 control of your XML. No limits. Just data. Click to get it
 now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user




-
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___ Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
--
Martin Grotzke
http://www.javakaffee.de/blog/

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Nice Url

2006-10-21 Thread Johan Compagner
I guess you are replying just to the sentence  Stateless pages are most likely bookmarkable.and then taking about wicket 1.x not wicket 2.0 (because then it is populated for you)But in 1.x a page is not stateless when a form resides on it thats impossible.
Maybe most likely bookmarkable was a bit wrong. It doesn't have to be ofcourse you could make such a page from anyother type of request (form submit or link click from another request)But the thing is that in default wicket 
1.x such a page will be statefull again because we redirectto it (redirect after post). And that will make the page also statefull...johanOn 10/20/06, 
Eelco Hillenius [EMAIL PROTECTED] wrote:
On 10/20/06, Johan Compagner [EMAIL PROTECTED] wrote: all bookmarkable pages can have forms.. that is already possible at the moment we had bookmarkable pages (like
 wicket 0.x) Again you mixup the notion of Bookmarkable and Stateless Those are NOT the same, especially bookmarkable in regards to stateless. the other way around, Stateless pages are most likely bookmarkable.
No, I don't think so. Are you telling me those forms are populatedautomatically from a 'bookmarkable' url? I think not, and thus youhave to interpret/ repopulate the form yourself. Now bookmarkableforms in the way they are in 
2.0 now can be used just as normal formwith the only difference from an end-user's perspective that you can'tdepend on instance variables.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 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.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] Nice Url

2006-10-21 Thread Johan Compagner
and such a thing would disable also the backbutton. That would be ofcourse good and bad :)johanOn 10/21/06, Upayavira 
[EMAIL PROTECTED] wrote:Eelco Hillenius wrote: Such a strategy would be possible, but one downside of it is that that
 only works with submits. We have some testing code for client side state saving (serialized page written to a hidden field). We haven't put a lot of effort in it to complete it - though the basic idea works
 - as it is not something any of the current committers really believe in. However, if you want to see how a strategy like you proposed could be done, you could check that out (it's in 2.0, ClientPageSavingSessionStore).
That is sending state back to the client - I'm talking about passing akey back, just not in the URL. But yes, you are showing that hiddenfields can be used. I'm sure ways could be worked around to get links to
work (bit of _javascript_ to do a post via a hidden form). Of course, any contributions in the form of patches are always welcome and might serve as a good starting point for further discussion :)
Heh, well, wouldn't that be nice. I'd love to have some time to do someopen source coding. Instead I just make do with writing emails :-)Regards, Upayavira On 10/20/06, Upayavira 
[EMAIL PROTECTED] wrote: Eelco Hillenius wrote: On 10/20/06, Johan Compagner [EMAIL PROTECTED] wrote: all bookmarkable pages can have forms..
 that is already possible at the moment we had bookmarkable pages (like wicket 0.x) Again you mixup the notion of Bookmarkable and Stateless
 Those are NOT the same, especially bookmarkable in regards to stateless. the other way around, Stateless pages are most likely bookmarkable. No, I don't think so. Are you telling me those forms are populated
 automatically from a 'bookmarkable' url? I think not, and thus you have to interpret/ repopulate the form yourself. Now bookmarkable forms in the way they are in 2.0 now can be used just as normal form
 with the only difference from an end-user's perspective that you can't depend on instance variables. Just a thought coming from Cocoon-land. Cocoon has the concept of continuations in server-side _javascript_, and
 this can be used to maintain state. Although the programming model is different, the need is the same - when you connect to the backend server, to identify yourself in some way so
 that you can be reconnected with your particular state. The session itself is too general - you need something particular to your form/etc. Cocoon handles this with a continuation ID. Using Cocoon's sitemap, you
 can configure it to get that ID either from within the URL, or from a request parameter (or anywhere else you might care to think of). I always tended to put the continuation ID into a hidden field on the
 page, as I wanted to maintain pretty URLs (even if those URLs weren't 'RESTful' - i.e if you bookmark it you won't go back to that particular state). Is it possible in Wicket to use a hidden field to pass that state
 information rather than tacking it onto the URL? Regards, Upayavira - 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 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 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

Re: [Wicket-user] Nice Url

2006-10-21 Thread Matej Knopp
I'm affraid that the hidden field would not be a very good alternative. 
Wicket does redirect after post, if you are using redirect to 
render/buffer, which IMHO 99,9% people do.

So if you send the page id in hidden field and then refresh the page, 
new page instance will be created.

-Matej

Eelco Hillenius wrote:
 That is sending state back to the client - I'm talking about passing a
 key back, just not in the URL.
 
 Yeah, I got that. What you mean is the part that now makes the path to
 the request target (like pagemap/ page(version)/ component combi).
 
 But yes, you are showing that hidden
 fields can be used.
 
 That was my point. The mechanism is the same except that in whereas
 client state saving would get the state back by deserializing, your
 proposal would get it by using that key etc. In fact, that part really
 isn't much more than configuring a custom target resolver.
 
 I'm sure ways could be worked around to get links to
 work (bit of javascript to do a post via a hidden form).
 
 Yeah. Probably best by using postprocessing like that client state
 saving experiment doesn. That's the least intrusive and most robust
 imo.
 
 Of course, any contributions in the form of patches are always welcome
 and might serve as a good starting point for further discussion :)
 Heh, well, wouldn't that be nice. I'd love to have some time to do some
 open source coding. Instead I just make do with writing emails :-)
 
 Damn users and incubation mentors ;)
 
 
 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
 


-
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] Nice Url

2006-10-21 Thread Johan Compagner
even worse. If you refresh the page you will get the homepageBecause the only thing we put in the url is that key that then is in a hidden field...johanOn 10/21/06, 
Matej Knopp [EMAIL PROTECTED] wrote:
I'm affraid that the hidden field would not be a very good alternative.Wicket does redirect after post, if you are using redirect torender/buffer, which IMHO 99,9% people do.So if you send the page id in hidden field and then refresh the page,
new page instance will be created.-MatejEelco Hillenius wrote: That is sending state back to the client - I'm talking about passing a key back, just not in the URL. Yeah, I got that. What you mean is the part that now makes the path to
 the request target (like pagemap/ page(version)/ component combi). But yes, you are showing that hidden fields can be used. That was my point. The mechanism is the same except that in whereas
 client state saving would get the state back by deserializing, your proposal would get it by using that key etc. In fact, that part really isn't much more than configuring a custom target resolver.
 I'm sure ways could be worked around to get links to work (bit of _javascript_ to do a post via a hidden form). Yeah. Probably best by using postprocessing like that client state
 saving experiment doesn. That's the least intrusive and most robust imo. Of course, any contributions in the form of patches are always welcome and might serve as a good starting point for further discussion :)
 Heh, well, wouldn't that be nice. I'd love to have some time to do some open source coding. Instead I just make do with writing emails :-) Damn users and incubation mentors ;)
 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-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 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] Nice Url

2006-10-21 Thread Eelco Hillenius
On 10/21/06, Matej Knopp [EMAIL PROTECTED] wrote:
 I'm affraid that the hidden field would not be a very good alternative.
 Wicket does redirect after post, if you are using redirect to
 render/buffer, which IMHO 99,9% people do.

I don't think it matters much actually. Whether you post that
information as part of the url, or as a hidden field, it all ends up
in the same pile. The rules for pagemap/ pageversion etc are the same,
and it is to be interpreted during target resolving. The redirect is
to a rendered page, which already has the hidden field in it, like it
otherwise would have the links with all the information in it.

For the record, I would certainly not prefer this to be the standard
mechanism for Wicket, even if it was implemented. But if people like
this alternative and someone coded it, that would be fine.

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] Nice Url

2006-10-21 Thread Johan Compagner
if the page was bookmarkable and if the user does specify a mount for every page...But the dangerous thing is that a page could also be none bookmarkable at all what then?So i think this kind of solution is not really possible.
johanOn 10/21/06, Matej Knopp [EMAIL PROTECTED] wrote:
Not really, we could use the mount point in url, if the page isbookmarkable.Johan Compagner wrote: even worse. If you refresh the page you will get the homepage Because the only thing we put in the url is that key that then is in a
 hidden field... johan On 10/21/06, *Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
 I'm affraid that the hidden field would not be a very good alternative. Wicket does redirect after post, if you are using redirect to render/buffer, which IMHO 99,9% people do.
 So if you send the page id in hidden field and then refresh the page, new page instance will be created. -Matej Eelco Hillenius wrote: That is sending state back to the client - I'm talking about
 passing a key back, just not in the URL. Yeah, I got that. What you mean is the part that now makes the path to the request target (like pagemap/ page(version)/ component combi).
 But yes, you are showing that hidden fields can be used. That was my point. The mechanism is the same except that in whereas
 client state saving would get the state back by deserializing, your proposal would get it by using that key etc. In fact, that part really isn't much more than configuring a custom target resolver.
 I'm sure ways could be worked around to get links to work (bit of _javascript_ to do a post via a hidden form). Yeah. Probably best by using postprocessing like that client state
 saving experiment doesn. That's the least intrusive and most robust imo. Of course, any contributions in the form of patches are always welcome
 and might serve as a good starting point for further discussion :) Heh, well, wouldn't that be nice. I'd love to have some time to do some open source coding. Instead I just make do with writing emails :-)
 Damn users and incubation mentors ;) 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
 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
 - 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
  - 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 Geronimohttp://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

Re: [Wicket-user] Nice Url

2006-10-21 Thread Johan Compagner
its the refresh button of the browser that is not supported then anymore (and also the back button will not work completely except jumping mount points..)johanOn 10/21/06, 
Eelco Hillenius [EMAIL PROTECTED] wrote:
On 10/21/06, Matej Knopp [EMAIL PROTECTED] wrote: I'm affraid that the hidden field would not be a very good alternative. Wicket does redirect after post, if you are using redirect to
 render/buffer, which IMHO 99,9% people do.I don't think it matters much actually. Whether you post thatinformation as part of the url, or as a hidden field, it all ends upin the same pile. The rules for pagemap/ pageversion etc are the same,
and it is to be interpreted during target resolving. The redirect isto a rendered page, which already has the hidden field in it, like itotherwise would have the links with all the information in it.For the record, I would certainly not prefer this to be the standard
mechanism for Wicket, even if it was implemented. But if people likethis alternative and someone coded it, that would be fine.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 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.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] Nice Url

2006-10-21 Thread Eelco Hillenius
No, what you guys are forgetting is that it has to work with a custom
resolving process. So the hidden field would be read before. It would
be part of wicket.request.IRequestCodingStrategy#decode(wicket.Request),
where the hidden field would be read and put in the RequestParameters
object. Something like that. If we want it, we could do it, that's the
morale.

Eelco


On 10/21/06, Johan Compagner [EMAIL PROTECTED] wrote:
 even worse. If you refresh the page you will get the homepage
 Because the only thing we put in the url is that key that then is in a
 hidden field...

 johan



 On 10/21/06, Matej Knopp [EMAIL PROTECTED] wrote:
  I'm affraid that the hidden field would not be a very good alternative.
  Wicket does redirect after post, if you are using redirect to
  render/buffer, which IMHO 99,9% people do.
 
  So if you send the page id in hidden field and then refresh the page,
  new page instance will be created.
 
  -Matej
 
  Eelco Hillenius wrote:
   That is sending state back to the client - I'm talking about passing a
   key back, just not in the URL.
  
   Yeah, I got that. What you mean is the part that now makes the path to
   the request target (like pagemap/ page(version)/ component combi).
  
   But yes, you are showing that hidden
   fields can be used.
  
   That was my point. The mechanism is the same except that in whereas
   client state saving would get the state back by deserializing, your
   proposal would get it by using that key etc. In fact, that part really
   isn't much more than configuring a custom target resolver.
  
   I'm sure ways could be worked around to get links to
   work (bit of javascript to do a post via a hidden form).
  
   Yeah. Probably best by using postprocessing like that client state
   saving experiment doesn. That's the least intrusive and most robust
   imo.
  
   Of course, any contributions in the form of patches are always welcome
   and might serve as a good starting point for further discussion :)
   Heh, well, wouldn't that be nice. I'd love to have some time to do some
   open source coding. Instead I just make do with writing emails :-)
  
   Damn users and incubation mentors ;)
  
  
   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
  
 
 
 
 -
  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] Nice Url

2006-10-21 Thread Johan Compagner
First of all a hidden field can't be read when you do a fresh of an url that is redirected after postBut now i think about it. That isn't possibleThe render to buffer and then redirect to that buffer is impossible. That can't be done then anymore because
you can't sent an url to the browser that is just the homepage root or a mount point and then resolve it to the buffer that is still waiting for it to render. We need some state in the url then. So yes it could work also with refresh
But the big warning dialog of the browser will then popup Resent post data (or something like that).Because we never can do a redirect after post anymore.And all the links must do then also a post ofcourse. And refreshing the page will result in that action posted again. (a delete or save action)
But then the url will always be the homepage or the mount point that is shown in the browser.johanOn 10/21/06, Eelco Hillenius 
[EMAIL PROTECTED] wrote:No, what you guys are forgetting is that it has to work with a custom
resolving process. So the hidden field would be read before. It wouldbe part of wicket.request.IRequestCodingStrategy#decode(wicket.Request),where the hidden field would be read and put in the RequestParameters
object. Something like that. If we want it, we could do it, that's themorale.EelcoOn 10/21/06, Johan Compagner [EMAIL PROTECTED] wrote: even worse. If you refresh the page you will get the homepage
 Because the only thing we put in the url is that key that then is in a hidden field... johan On 10/21/06, Matej Knopp [EMAIL PROTECTED]
 wrote:  I'm affraid that the hidden field would not be a very good alternative.  Wicket does redirect after post, if you are using redirect to  render/buffer, which IMHO 99,9% people do.
   So if you send the page id in hidden field and then refresh the page,  new page instance will be created.   -Matej   Eelco Hillenius wrote:
   That is sending state back to the client - I'm talking about passing a   key back, just not in the URL. Yeah, I got that. What you mean is the part that now makes the path to
   the request target (like pagemap/ page(version)/ component combi). But yes, you are showing that hidden   fields can be used.  
   That was my point. The mechanism is the same except that in whereas   client state saving would get the state back by deserializing, your   proposal would get it by using that key etc. In fact, that part really
   isn't much more than configuring a custom target resolver. I'm sure ways could be worked around to get links to   work (bit of _javascript_ to do a post via a hidden form).
 Yeah. Probably best by using postprocessing like that client state   saving experiment doesn. That's the least intrusive and most robust   imo.  
   Of course, any contributions in the form of patches are always welcome   and might serve as a good starting point for further discussion :)   Heh, well, wouldn't that be nice. I'd love to have some time to do some
   open source coding. Instead I just make do with writing emails :-) Damn users and incubation mentors ;)   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  -  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 easierDownload IBM WebSphere 

Re: [Wicket-user] Nice Url

2006-10-21 Thread Eelco Hillenius
On 10/21/06, Johan Compagner [EMAIL PROTECTED] wrote:
 First of all a hidden field can't be read when you do a fresh of an url that
 is redirected after post
 But now i think about it. That isn't possible
 The render to buffer and then redirect to that buffer is impossible. That
 can't be done then anymore because
 you can't sent an url to the browser that is just the homepage root or a
 mount point and then resolve it to the buffer that is
 still waiting for it to render. We need some state in the url then. So  yes
 it could work also with refresh
 But the big warning dialog of the browser will then popup Resent post data
 (or something like that).
 Because we never can do a redirect after post anymore.
 And all the links must do then also a post ofcourse. And refreshing the page
 will result in that action posted again. (a delete or save action)
 But then the url will always be the homepage or the mount point that is
 shown in the browser.

Yeah. That wouldn't be pretty. But that's something else than impossible.

Look, I'm not even arguing I want this method. I just wonder how we
got from the can-do to the can't-do mentality. Sometimes things are
awkward to achieve, and some may actually really be impossible. But
we've had a dozen of instances where we thought something would be
very difficult which turned out pretty doable after all. So rather
than saying we can't do this, we should keep thinking about ways how
we could (which does not mean we actually implement it) and list the
advantages and disadvantages that what have.

Just my 2c,

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] Nice Url

2006-10-21 Thread Eelco Hillenius
Btw, just checking out ClientPageSavingSessionStore, but that doesn't
really work currently :)

Eelco

On 10/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
 On 10/21/06, Johan Compagner [EMAIL PROTECTED] wrote:
  First of all a hidden field can't be read when you do a fresh of an url that
  is redirected after post
  But now i think about it. That isn't possible
  The render to buffer and then redirect to that buffer is impossible. That
  can't be done then anymore because
  you can't sent an url to the browser that is just the homepage root or a
  mount point and then resolve it to the buffer that is
  still waiting for it to render. We need some state in the url then. So  yes
  it could work also with refresh
  But the big warning dialog of the browser will then popup Resent post data
  (or something like that).
  Because we never can do a redirect after post anymore.
  And all the links must do then also a post ofcourse. And refreshing the page
  will result in that action posted again. (a delete or save action)
  But then the url will always be the homepage or the mount point that is
  shown in the browser.

 Yeah. That wouldn't be pretty. But that's something else than impossible.

 Look, I'm not even arguing I want this method. I just wonder how we
 got from the can-do to the can't-do mentality. Sometimes things are
 awkward to achieve, and some may actually really be impossible. But
 we've had a dozen of instances where we thought something would be
 very difficult which turned out pretty doable after all. So rather
 than saying we can't do this, we should keep thinking about ways how
 we could (which does not mean we actually implement it) and list the
 advantages and disadvantages that what have.

 Just my 2c,

 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] Nice Url

2006-10-21 Thread Johan Compagner
no that is only done half way it is not really usable, just a test case how it could be done..When we don't finish it (i don't think i will do that) then it should be removed before the final of 2.0johan
On 10/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
Btw, just checking out ClientPageSavingSessionStore, but that doesn'treally work currently :)EelcoOn 10/21/06, Eelco Hillenius [EMAIL PROTECTED]
 wrote: On 10/21/06, Johan Compagner [EMAIL PROTECTED] wrote:  First of all a hidden field can't be read when you do a fresh of an url that  is redirected after post
  But now i think about it. That isn't possible  The render to buffer and then redirect to that buffer is impossible. That  can't be done then anymore because  you can't sent an url to the browser that is just the homepage root or a
  mount point and then resolve it to the buffer that is  still waiting for it to render. We need some state in the url then. Soyes  it could work also with refresh  But the big warning dialog of the browser will then popup Resent post data
  (or something like that).  Because we never can do a redirect after post anymore.  And all the links must do then also a post ofcourse. And refreshing the page  will result in that action posted again. (a delete or save action)
  But then the url will always be the homepage or the mount point that is  shown in the browser. Yeah. That wouldn't be pretty. But that's something else than impossible.
 Look, I'm not even arguing I want this method. I just wonder how we got from the can-do to the can't-do mentality. Sometimes things are awkward to achieve, and some may actually really be impossible. But
 we've had a dozen of instances where we thought something would be very difficult which turned out pretty doable after all. So rather than saying we can't do this, we should keep thinking about ways how
 we could (which does not mean we actually implement it) and list the advantages and disadvantages that what have. Just my 2c, 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 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.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] Nice Url

2006-10-21 Thread Eelco Hillenius
On 10/21/06, Johan Compagner [EMAIL PROTECTED] wrote:
 no that is only done half way it is not really usable, just a test case how
 it could be done..
 When we don't finish it (i don't think i will do that) then it should be
 removed before the final of 2.0

Yeah, we should remove it then. Looking at it, we would need a
different strategy for that anyway. It would be more like:

1) This session store should get the session like eg.
HttpSessionStore. I think trying to encode the whole session would be
just too much (and we're not actually even doing that here).
ClientPageSavingSessionStore now presumes that the last request was
encoded by Wicket, but that is a problem for things like shared
resources and bookmarkable pages. The thing we want encoded is the
state of the last request if that is relevant for call backs (in
effect the rendered page).
2) StateWriter is something we would need, but it would need to be
extended to converting all links to use a submit too. For this we
would probably need to have a javascript function that dynamically
builds a form or post. Links etc would be converted to use this.
2a) I learned recently that 255 is not an actual limit for gets, but
merely a very outdated 'recommeded' length. For internet explorer this
maximum is 2,048 (http://support.microsoft.com/kb/208427) and I read
other browsers even exceed that. I haven't measured it, but wouldn't
that be enough for one serialized page to hold? A thing to consider is
not to worry about posts in the first place (you could argue this is a
trade off users have to consider themselves), but put this encoded
state in the links we return in urlFor. We could do that, as the
complete hierarchy is known in 2.0. Additionally, with that method,
there could be a nice optimization, where we ask the component itself
for it's 'contribution' to the encoded state (don't aks me how that
would work right now, it's just a wild thought). Of course, there
would be the overhead that every link on the page would have that full
state initially, but that would be something we could optimize later
as well.
3) The session store  should only intercept the getAttribute requests
for the page map. On that request, it should return an on-the-fly
pagemap, with the one page reconstructed from the session state that
was sent with the request. That pagemap could be lazily constructed
and reused throughout the request, and onEndRequest it would be
cleared again.

These are just a bunch of wild thoughts. I'm convinced that if we
wanted and 2a would be viable, we wouldn't be that far off to working
client side state saving. The nice urls 'problem' that this thread
started with is still something else, and I agree with Johan and Matej
that there are a number of problems with it (most notably mounting and
redirect to buffer not working), and thinking about it a bit more,
even though we probably could achieve something like this if we really
tried hard, it wouldn't be for any advantage other then that the urls
would like 'nicer'. The thing that I proposed in a thread two weeks
ago: components contributing 'state' to urls would at least have the
advantage of bringing totally tweakable stateless pages a step closer.
This case doesn't have that advantage. And concerning client side
state saving, I'm still unconvinced that this is better to have than
just server state saving. On the contrary. The only thing interesting
about it is the technical challenge and the additional choice it would
provide our users.


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] Nice Url

2006-10-21 Thread Johan Compagner
2a: encoding the page in a links is not possible we will not be able to hold all the pages in just 2k!And as you said the pages whould be HUGE because every link then have that page state encoded in the link over and over again
so 20 links on one page would be 20 times 2K just for all the links.So that is really not an option. You don't have to serialize the whole http sessiononly 2 objects: the wicket session and the current page (and the pagemap but the pagemap isn't usefull at all in this situation, it doesn't do anything)
this i don't get:ClientPageSavingSessionStore now presumes that the last request wasencoded by Wicket, but that is a problem for things like sharedresources and bookmarkable pages. 
that doesn't matter. a shared resource or bookmarkable url call just don't have the wicketstate hidden field in the requestso the page is not deserialized and put in the map. But that map doesn't have to be filled because the request isn't comming in for an existing page.
johanOn 10/21/06, Eelco Hillenius [EMAIL PROTECTED] wrote:
On 10/21/06, Johan Compagner [EMAIL PROTECTED] wrote: no that is only done half way it is not really usable, just a test case how it could be done..
 When we don't finish it (i don't think i will do that) then it should be removed before the final of 2.0Yeah, we should remove it then. Looking at it, we would need adifferent strategy for that anyway. It would be more like:
1) This session store should get the session like eg.HttpSessionStore. I think trying to encode the whole session would bejust too much (and we're not actually even doing that here).ClientPageSavingSessionStore now presumes that the last request was
encoded by Wicket, but that is a problem for things like sharedresources and bookmarkable pages. The thing we want encoded is thestate of the last request if that is relevant for call backs (ineffect the rendered page).
2) StateWriter is something we would need, but it would need to beextended to converting all links to use a submit too. For this wewould probably need to have a _javascript_ function that dynamicallybuilds a form or post. Links etc would be converted to use this.
2a) I learned recently that 255 is not an actual limit for gets, butmerely a very outdated 'recommeded' length. For internet explorer thismaximum is 2,048 (http://support.microsoft.com/kb/208427
) and I readother browsers even exceed that. I haven't measured it, but wouldn'tthat be enough for one serialized page to hold? A thing to consider isnot to worry about posts in the first place (you could argue this is a
trade off users have to consider themselves), but put this encodedstate in the links we return in urlFor. We could do that, as thecomplete hierarchy is known in 2.0. Additionally, with that method,there could be a nice optimization, where we ask the component itself
for it's 'contribution' to the encoded state (don't aks me how thatwould work right now, it's just a wild thought). Of course, therewould be the overhead that every link on the page would have that fullstate initially, but that would be something we could optimize later
as well.3) The session storeshould only intercept the getAttribute requestsfor the page map. On that request, it should return an on-the-flypagemap, with the one page reconstructed from the session state that
was sent with the request. That pagemap could be lazily constructedand reused throughout the request, and onEndRequest it would becleared again.These are just a bunch of wild thoughts. I'm convinced that if we
wanted and 2a would be viable, we wouldn't be that far off to workingclient side state saving. The nice urls 'problem' that this threadstarted with is still something else, and I agree with Johan and Matej
that there are a number of problems with it (most notably mounting andredirect to buffer not working), and thinking about it a bit more,even though we probably could achieve something like this if we reallytried hard, it wouldn't be for any advantage other then that the urls
would like 'nicer'. The thing that I proposed in a thread two weeksago: components contributing 'state' to urls would at least have theadvantage of bringing totally tweakable stateless pages a step closer.
This case doesn't have that advantage. And concerning client sidestate saving, I'm still unconvinced that this is better to have thanjust server state saving. On the contrary. The only thing interestingabout it is the technical challenge and the additional choice it would
provide our users.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 Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___Wicket-user mailing listWicket-user@lists.sourceforge.net

Re: [Wicket-user] Nice Url

2006-10-21 Thread Eelco Hillenius
On 10/21/06, Johan Compagner [EMAIL PROTECTED] wrote:
 2a: encoding the page in a links is not possible we will not be able to hold
 all the pages in just 2k!
 And as you said the pages whould be HUGE because every link then have that
 page state encoded in the link over and over again
 so 20 links on one page would be 20 times 2K just for all the links.
 So that is really not an option.

Yeah, that would be a bit expensive. So... we could only do this when
we convert the rendered page, in which case it would be best to use a
post anyway.

 You don't have to serialize the whole http session
 only 2 objects: the wicket session and the current page (and the pagemap but
 the pagemap isn't usefull at all in this situation, it doesn't do anything)

Why even the session though. Only the rendered page, we could just
keep the session as is, right?

 this i don't get:
 ClientPageSavingSessionStore now presumes that the last request was
 encoded by Wicket, but that is a problem for things like shared
 resources and bookmarkable pages. 

  that doesn't matter. a shared resource or bookmarkable url call just don't
 have the wicketstate hidden field in the request
 so the page is not deserialized and put in the map. But that map doesn't
 have to be filled because the request isn't comming in for an existing page.

I was distracted by the null pointer I got for even calling the home page

2006-10-21 12:47:26.335::WARN:  /wicket-examples/helloworld:
java.lang.NullPointerException
at 
wicket.protocol.http.ClientPageSavingSessionStore.getAttribute(ClientPageSavingSessionStore.java:108)
at 
wicket.protocol.http.AbstractHttpSessionStore.lookup(AbstractHttpSessionStore.java:194)
at 
wicket.protocol.http.WebApplication.getSession(WebApplication.java:635)
at wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:219)

But now I see return super.getAttribute(request, name);, so that
should work yes.

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] Nice Url

2006-10-20 Thread Dipu



Hi Gwyn ,

I added a constructor with page parameters and 
mountedit on applicationinit, 
but it didnt help either
i tried both the following options 
mountBookmarkablePage("/flights/results", 
FlightSearchResultPage.class);
mount("/flights",PackageName.forClass(FlightSearch.class));

I am using the version 1.2.1, am i really missing 
something here or doing something very stupid here.

Regards
Dipu



- Original Message - 
From: "Gwyn Evans" [EMAIL PROTECTED]
To: wicket-user@lists.sourceforge.net
Sent: Thursday, October 19, 2006 4:40 
PM
Subject: Re: [Wicket-user] Nice 
Url
 On 19/10/06, Dipu [EMAIL PROTECTED] 
wrote:  If i have a page with the following 
constructor public NonBookmarkablePage(OrderInfo orfderInfo, final 
PartyInfo partyInfo) How will i make the url look nice 
for the page ?  How difficult would it be to make it 
bookmarkable, i.e. give it a PageParameters constructor and use the 
Application.mount call on it?  can you please give me some 
tips on implementing the IRequestTargetURLCodingStrategy and 
using it.  Take a look at the sources, read the javadocs  
see how the supplied strategies are implementing it.  
/Gwyn  - Original Message - From: 
"Korbinian Bachl" [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Thursday, October 19, 2006 2:25 PM 
Subject: Re: [Wicket-user] Nice Url  Hi, 
  yes it is possible, look here for detailed: 
 http://www.javalobby.org/java/forums/t68753.html   you can then provide parameters 
via the PageParameter param - if this doesnt  
satisfy you (e.g: some special needs for URL) then you may also use a 
own  implementation of IRequestTargetURLCodingStrategy - 
a good beginnning there  is examining the WOOGLE 
project and look at its URL Strategy  (/q/queryword/page) 
-   best Regards,  
 Korbinian
    Von: 
[EMAIL PROTECTED]  
[mailto:[EMAIL PROTECTED] Im Auftrag von 
Dipu  Gesendet: Donnerstag, 19. Oktober 2006 14:37 
 An: wicket-user@lists.sourceforge.net  Betreff: [Wicket-user] Nice Url 
   HI all,   
Is there anyway to make the non bookmarkable page urls look nicer. 
 I am using the wicket version 1.2.1   I 
need to display the urls like   
/x  /x/searching  
/x/searchresults  /x/payment  
/x/confirmation   Kind Regards 
 Dipu
 
- 
 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   -- 
 Download Wicket 1.2.2 now! - http://wicketframework.org 
 
- 
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] Nice Url

2006-10-20 Thread Johan Compagner
all bookmarkable pages can have forms..that is already possible at the moment we had bookmarkable pages (like wicket 0.x)Again you mixup the notion of Bookmarkable and StatelessThose are NOT the same, especially bookmarkable in regards to stateless.
the other way around, Stateless pages are most likely bookmarkable.johanOn 10/19/06, cowwoc 
[EMAIL PROTECTED] wrote:What about bookmarkable pages containing Forms? Is this still in the works?
GiliKorbinian Bachl wrote: Hi, yes it is possible, look here for detailed: http://www.javalobby.org/java/forums/t68753.html
 you can then provide parameters via the PageParameter param - if this doesnt satisfy you (e.g: some special needs for URL) then you may also use a own implementation of IRequestTargetURLCodingStrategy- a good beginnning there
 is examining the WOOGLE project and look at its URL Strategy (/q/queryword/page) - best Regards, Korbinian 
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
] Im Auftrag von Dipu Gesendet: Donnerstag, 19. Oktober 2006 14:37 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Nice Url
 HI all, Is there anyway to make the non bookmarkable page urls look nicer. I am using the wicket version 1.2.1 I need to display the urls like
 /x /x/searching /x/searchresults /x/payment /x/confirmation Kind Regards Dipu
 - 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 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 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] Nice Url

2006-10-20 Thread Eelco Hillenius
On 10/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
 all bookmarkable pages can have forms..
 that is already possible at the moment we had bookmarkable pages (like
 wicket 0.x)

 Again you mixup the notion of Bookmarkable and Stateless
 Those are NOT the same, especially bookmarkable in regards to stateless.
 the other way around, Stateless pages are most likely bookmarkable.

No, I don't think so. Are you telling me those forms are populated
automatically from a 'bookmarkable' url? I think not, and thus you
have to interpret/ repopulate the form yourself. Now bookmarkable
forms in the way they are in 2.0 now can be used just as normal form
with the only difference from an end-user's perspective that you can't
depend on instance variables.

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] Nice Url

2006-10-20 Thread Upayavira
Eelco Hillenius wrote:
 On 10/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
 all bookmarkable pages can have forms..
 that is already possible at the moment we had bookmarkable pages (like
 wicket 0.x)

 Again you mixup the notion of Bookmarkable and Stateless
 Those are NOT the same, especially bookmarkable in regards to stateless.
 the other way around, Stateless pages are most likely bookmarkable.
 
 No, I don't think so. Are you telling me those forms are populated
 automatically from a 'bookmarkable' url? I think not, and thus you
 have to interpret/ repopulate the form yourself. Now bookmarkable
 forms in the way they are in 2.0 now can be used just as normal form
 with the only difference from an end-user's perspective that you can't
 depend on instance variables.

Just a thought coming from Cocoon-land.

Cocoon has the concept of continuations in server-side java script, and 
this can be used to maintain state.

Although the programming model is different, the need is the same - when 
you connect to the backend server, to identify yourself in some way so 
that you can be reconnected with your particular state. The session 
itself is too general - you need something particular to your form/etc.

Cocoon handles this with a continuation ID. Using Cocoon's sitemap, you 
can configure it to get that ID either from within the URL, or from a 
request parameter (or anywhere else you might care to think of).

I always tended to put the continuation ID into a hidden field on the 
page, as I wanted to maintain pretty URLs (even if those URLs weren't 
'RESTful' - i.e if you bookmark it you won't go back to that particular 
state).

Is it possible in Wicket to use a hidden field to pass that state 
information rather than tacking it onto the URL?

Regards, Upayavira

-
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] Nice Url

2006-10-20 Thread Eelco Hillenius
Such a strategy would be possible, but one downside of it is that that
only works with submits. We have some testing code for client side
state saving (serialized page written to a hidden field). We haven't
put a lot of effort in it to complete it - though the basic idea works
- as it is not something any of the current committers really believe
in. However, if you want to see how a strategy like you proposed could
be done, you could check that out (it's in 2.0,
ClientPageSavingSessionStore).

Of course, any contributions in the form of patches are always welcome
and might serve as a good starting point for further discussion :)

Eelco

On 10/20/06, Upayavira [EMAIL PROTECTED] wrote:
 Eelco Hillenius wrote:
  On 10/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
  all bookmarkable pages can have forms..
  that is already possible at the moment we had bookmarkable pages (like
  wicket 0.x)
 
  Again you mixup the notion of Bookmarkable and Stateless
  Those are NOT the same, especially bookmarkable in regards to stateless.
  the other way around, Stateless pages are most likely bookmarkable.
 
  No, I don't think so. Are you telling me those forms are populated
  automatically from a 'bookmarkable' url? I think not, and thus you
  have to interpret/ repopulate the form yourself. Now bookmarkable
  forms in the way they are in 2.0 now can be used just as normal form
  with the only difference from an end-user's perspective that you can't
  depend on instance variables.

 Just a thought coming from Cocoon-land.

 Cocoon has the concept of continuations in server-side java script, and
 this can be used to maintain state.

 Although the programming model is different, the need is the same - when
 you connect to the backend server, to identify yourself in some way so
 that you can be reconnected with your particular state. The session
 itself is too general - you need something particular to your form/etc.

 Cocoon handles this with a continuation ID. Using Cocoon's sitemap, you
 can configure it to get that ID either from within the URL, or from a
 request parameter (or anywhere else you might care to think of).

 I always tended to put the continuation ID into a hidden field on the
 page, as I wanted to maintain pretty URLs (even if those URLs weren't
 'RESTful' - i.e if you bookmark it you won't go back to that particular
 state).

 Is it possible in Wicket to use a hidden field to pass that state
 information rather than tacking it onto the URL?

 Regards, Upayavira

 -
 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] Nice Url

2006-10-20 Thread Upayavira
Eelco Hillenius wrote:
 Such a strategy would be possible, but one downside of it is that that
 only works with submits. We have some testing code for client side
 state saving (serialized page written to a hidden field). We haven't
 put a lot of effort in it to complete it - though the basic idea works
 - as it is not something any of the current committers really believe
 in. However, if you want to see how a strategy like you proposed could
 be done, you could check that out (it's in 2.0,
 ClientPageSavingSessionStore).

That is sending state back to the client - I'm talking about passing a 
key back, just not in the URL. But yes, you are showing that hidden 
fields can be used. I'm sure ways could be worked around to get links to 
work (bit of javascript to do a post via a hidden form).

 Of course, any contributions in the form of patches are always welcome
 and might serve as a good starting point for further discussion :)

Heh, well, wouldn't that be nice. I'd love to have some time to do some 
open source coding. Instead I just make do with writing emails :-)

Regards, Upayavira

 On 10/20/06, Upayavira [EMAIL PROTECTED] wrote:
 Eelco Hillenius wrote:
 On 10/20/06, Johan Compagner [EMAIL PROTECTED] wrote:
 all bookmarkable pages can have forms..
 that is already possible at the moment we had bookmarkable pages (like
 wicket 0.x)

 Again you mixup the notion of Bookmarkable and Stateless
 Those are NOT the same, especially bookmarkable in regards to stateless.
 the other way around, Stateless pages are most likely bookmarkable.
 No, I don't think so. Are you telling me those forms are populated
 automatically from a 'bookmarkable' url? I think not, and thus you
 have to interpret/ repopulate the form yourself. Now bookmarkable
 forms in the way they are in 2.0 now can be used just as normal form
 with the only difference from an end-user's perspective that you can't
 depend on instance variables.
 Just a thought coming from Cocoon-land.

 Cocoon has the concept of continuations in server-side java script, and
 this can be used to maintain state.

 Although the programming model is different, the need is the same - when
 you connect to the backend server, to identify yourself in some way so
 that you can be reconnected with your particular state. The session
 itself is too general - you need something particular to your form/etc.

 Cocoon handles this with a continuation ID. Using Cocoon's sitemap, you
 can configure it to get that ID either from within the URL, or from a
 request parameter (or anywhere else you might care to think of).

 I always tended to put the continuation ID into a hidden field on the
 page, as I wanted to maintain pretty URLs (even if those URLs weren't
 'RESTful' - i.e if you bookmark it you won't go back to that particular
 state).

 Is it possible in Wicket to use a hidden field to pass that state
 information rather than tacking it onto the URL?

 Regards, Upayavira

 -
 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] Nice Url

2006-10-20 Thread Eelco Hillenius
 That is sending state back to the client - I'm talking about passing a
 key back, just not in the URL.

Yeah, I got that. What you mean is the part that now makes the path to
the request target (like pagemap/ page(version)/ component combi).

 But yes, you are showing that hidden
 fields can be used.

That was my point. The mechanism is the same except that in whereas
client state saving would get the state back by deserializing, your
proposal would get it by using that key etc. In fact, that part really
isn't much more than configuring a custom target resolver.

 I'm sure ways could be worked around to get links to
 work (bit of javascript to do a post via a hidden form).

Yeah. Probably best by using postprocessing like that client state
saving experiment doesn. That's the least intrusive and most robust
imo.

  Of course, any contributions in the form of patches are always welcome
  and might serve as a good starting point for further discussion :)

 Heh, well, wouldn't that be nice. I'd love to have some time to do some
 open source coding. Instead I just make do with writing emails :-)

Damn users and incubation mentors ;)


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] Nice Url

2006-10-19 Thread Korbinian Bachl
Hi,
 
yes it is possible, look here for detailed:
http://www.javalobby.org/java/forums/t68753.html
 
you can then provide parameters via the PageParameter param - if this doesnt
satisfy you (e.g: some special needs for URL) then you may also use a own
implementation of IRequestTargetURLCodingStrategy  - a good beginnning there
is examining the WOOGLE project and look at its URL Strategy
(/q/queryword/page) - 
 
best Regards,
 
Korbinian
 




Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Dipu
Gesendet: Donnerstag, 19. Oktober 2006 14:37
An: wicket-user@lists.sourceforge.net
Betreff: [Wicket-user] Nice Url


HI all, 
 
Is there anyway to make the non bookmarkable page urls look nicer.
I am using the wicket version 1.2.1
 
I need to display the urls like
   
/x
/x/searching
/x/searchresults
/x/payment
/x/confirmation
 
Kind Regards
Dipu



-
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] Nice Url

2006-10-19 Thread Dipu



Hi Korbinian, 

Thanks very much for the reply, 

If i have a pagewith the following 
constructor
public NonBookmarkablePage(OrderInfo orfderInfo, 
final PartyInfo partyInfo) 

How will i make the url look nice for the page 
?

can you please give me some tips on implementing 
the IRequestTargetURLCodingStrategy and using it.

Regards
Dipu



- Original Message - 
From: "Korbinian Bachl" [EMAIL PROTECTED]
To: wicket-user@lists.sourceforge.net
Sent: Thursday, October 19, 2006 2:25 
PM
Subject: Re: [Wicket-user] Nice 
Url
 Hi, yes it is possible, look here for 
detailed: http://www.javalobby.org/java/forums/t68753.html you can then provide parameters via the 
PageParameter param - if this doesnt satisfy you (e.g: some special 
needs for URL) then you may also use a own implementation of 
IRequestTargetURLCodingStrategy - a good beginnning there is 
examining the WOOGLE project and look at its URL Strategy 
(/q/queryword/page) -  best Regards, 
Korbinian   
  Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von 
Dipu Gesendet: Donnerstag, 19. Oktober 2006 14:37 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Nice Url   HI all, 
  Is there anyway to make the non bookmarkable page urls look 
nicer. I am using the wicket version 1.2.1  I need to 
display the urls like 
 
 /x /x/searching /x/searchresults 
/x/payment /x/confirmation  Kind Regards 
Dipu
- 
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] Nice Url

2006-10-19 Thread cowwoc

What about bookmarkable pages containing Forms? Is this still in the 
works?

Gili

Korbinian Bachl wrote:
 Hi,
  
 yes it is possible, look here for detailed:
 http://www.javalobby.org/java/forums/t68753.html
  
 you can then provide parameters via the PageParameter param - if this doesnt
 satisfy you (e.g: some special needs for URL) then you may also use a own
 implementation of IRequestTargetURLCodingStrategy  - a good beginnning there
 is examining the WOOGLE project and look at its URL Strategy
 (/q/queryword/page) - 
  
 best Regards,
  
 Korbinian
  
 
 
 
 
   Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Im Auftrag von Dipu
   Gesendet: Donnerstag, 19. Oktober 2006 14:37
   An: wicket-user@lists.sourceforge.net
   Betreff: [Wicket-user] Nice Url
   
   
   HI all, 

   Is there anyway to make the non bookmarkable page urls look nicer.
   I am using the wicket version 1.2.1

   I need to display the urls like
  
   /x
   /x/searching
   /x/searchresults
   /x/payment
   /x/confirmation

   Kind Regards
   Dipu
 
 
 
 -
 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



signature.asc
Description: OpenPGP digital signature
-
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] Nice Url

2006-10-19 Thread Eelco Hillenius
Works in 2.0 with StatelessForms.

Eelco


On 10/19/06, cowwoc [EMAIL PROTECTED] wrote:

 What about bookmarkable pages containing Forms? Is this still in the 
 works?

 Gili

 Korbinian Bachl wrote:
  Hi,
 
  yes it is possible, look here for detailed:
  http://www.javalobby.org/java/forums/t68753.html
 
  you can then provide parameters via the PageParameter param - if this doesnt
  satisfy you (e.g: some special needs for URL) then you may also use a own
  implementation of IRequestTargetURLCodingStrategy  - a good beginnning there
  is examining the WOOGLE project and look at its URL Strategy
  (/q/queryword/page) -
 
  best Regards,
 
  Korbinian
 
 
 
  
 
Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im Auftrag von Dipu
Gesendet: Donnerstag, 19. Oktober 2006 14:37
An: wicket-user@lists.sourceforge.net
Betreff: [Wicket-user] Nice Url
 
 
HI all,
 
Is there anyway to make the non bookmarkable page urls look nicer.
I am using the wicket version 1.2.1
 
I need to display the urls like
 
/x
/x/searching
/x/searchresults
/x/payment
/x/confirmation
 
Kind Regards
Dipu
 
 
 
  -
  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] Nice Url

2006-10-19 Thread Gwyn Evans
On 19/10/06, Dipu [EMAIL PROTECTED] wrote:

 If i have a page with the following constructor
 public NonBookmarkablePage(OrderInfo orfderInfo, final PartyInfo partyInfo)

 How will i make the url look nice for the page ?

How difficult would it be to make it bookmarkable, i.e. give it a
PageParameters constructor and use the Application.mount call on it?

 can you please give me some tips on implementing the
 IRequestTargetURLCodingStrategy  and using it.

Take a look at the sources, read the javadocs  see how the supplied
strategies are implementing it.

/Gwyn

 - Original Message -
 From: Korbinian Bachl [EMAIL PROTECTED]
 To: wicket-user@lists.sourceforge.net
 Sent: Thursday, October 19, 2006 2:25 PM
 Subject: Re: [Wicket-user] Nice Url

  Hi,
 
  yes it is possible, look here for detailed:
  http://www.javalobby.org/java/forums/t68753.html
 
  you can then provide parameters via the PageParameter param - if this
 doesnt
  satisfy you (e.g: some special needs for URL) then you may also use a own
  implementation of IRequestTargetURLCodingStrategy  - a
 good beginnning there
  is examining the WOOGLE project and look at its URL Strategy
  (/q/queryword/page) -
 
  best Regards,
 
  Korbinian
 
 
 
  
 
  Von: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Im
 Auftrag von Dipu
  Gesendet: Donnerstag, 19. Oktober 2006 14:37
  An: wicket-user@lists.sourceforge.net
  Betreff: [Wicket-user] Nice Url
 
 
  HI all,
 
  Is there anyway to make the non bookmarkable page urls look nicer.
  I am using the wicket version 1.2.1
 
  I need to display the urls like
 
  /x
  /x/searching
  /x/searchresults
  /x/payment
  /x/confirmation
 
  Kind Regards
  Dipu
 
 
 
 
 -
  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





-- 
Download Wicket 1.2.2 now! - http://wicketframework.org

-
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] nice-url problems wicket-1.2-20060108

2006-01-16 Thread pepone pepone
hi
Must i fill a bug report for this issue with page parameteres and nice
url or is allready done
On 1/10/06, pepone pepone [EMAIL PROTECTED] wrote:
 I change my page to view what is exactly the problems and observe that
 when i use
 nice url parameters are not accesible or are empty when try to access
 it in my page constructor

 On 1/10/06, pepone pepone [EMAIL PROTECTED] wrote:
  I get the exception show in previous message
  page is not render if i unmount page it render fine
 
  i can try to debug my page constructor if you want to view what is
  exactly the problem when page use nice url
 
 
  On 1/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
   what do you exactly expect in youre constructor?
   Do you get wrong params?
   What is wrong exactly?
  
  
   On 1/9/06, pepone pepone  [EMAIL PROTECTED] wrote:
   
wicket-1.2-20060108
   
Bookmarkable link with arguments is broken when i mount page for use
   niceurls
   
this is url with out mount the page and works fine
   
   
   http://localhost:8080/oz-cms/app;jsessionid=4rpu70hfvjckf?bookmarkablePage=oz.web.html.cms.CmsViewPagenodePath=%2FsiteName=site-00panel=FileList
   
Nice url with CmsViewPage mounted at /cmsview.html
   
   
   http://localhost:8080/oz-cms/app/cmsview.html/nodePath///siteName/site-00/panel/FileList
   
   
Exception raised when click this link
   
I think this can be a problem with the parameters that are corrupted in
   same way
   
java.lang.NullPointerException
at oz.web.html.cms.CmsView.init(Unknown Source)
at oz.web.html.cms.CmsViewPage .init(Unknown Source)
at
   sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
   Method)
at
   sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at
   java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java :308)
at java.lang.Class.newInstance(Class.java:261)
at
   wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:55)
at
   wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:88)
at
   wicket.request.target.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:270)
at
   wicket.request.target.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:284)
at
   wicket.request.target.BookmarkablePageRequestTarget.checkAccess(BookmarkablePageRequestTarget.java:123)
at wicket.RequestCycle.step(RequestCycle.java:970)
at wicket.RequestCycle.steps(RequestCycle.java:1057)
at wicket.RequestCycle.request(RequestCycle.java:534)
at
   wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199)
at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
at javax.servlet.http.HttpServlet.service
   (HttpServlet.java:689)
at
   org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at
   org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
at org.mortbay.jetty.servlet.ServletHandler.handle
   (ServletHandler.java:568)
at
   org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
at
   org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
at org.mortbay.http.HttpContext.handle
   (HttpContext.java:1482)
at
   org.mortbay.http.HttpServer.service(HttpServer.java:909)
at
   org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
at
   org.mortbay.http.HttpConnection.handleNext(HttpConnection.java
   :982)
at
   org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
at
   org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
at
   org.mortbay.util.ThreadedServer.handle(ThreadedServer.java
   :357)
at
   org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
--
play tetris http://pepone.on-rez.com/tetris
   
   
---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
   files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865opclick
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
   
  
  
 
 
  --
  play tetris http://pepone.on-rez.com/tetris
 


 --
 play tetris http://pepone.on-rez.com/tetris



--
play tetris http://pepone.on-rez.com/tetris


---
This SF.net email is sponsored by: Splunk Inc. Do you 

Re: [Wicket-user] nice-url problems wicket-1.2-20060108

2006-01-09 Thread Johan Compagner
what do you exactly expect in youre constructor?Do you get wrong params?What is wrong exactly?On 1/9/06, pepone pepone 
[EMAIL PROTECTED] wrote:wicket-1.2-20060108Bookmarkable link with arguments is broken when i mount page for use niceurls
this is url with out mount the page and works fine
http://localhost:8080/oz-cms/app;jsessionid=4rpu70hfvjckf?bookmarkablePage=oz.web.html.cms.CmsViewPagenodePath=%2FsiteName=site-00panel=FileListNice url with CmsViewPage mounted at /cmsview.html
http://localhost:8080/oz-cms/app/cmsview.html/nodePath///siteName/site-00/panel/FileListException raised when click this link
I think this can be a problem with the parameters that are corrupted in same wayjava.lang.NullPointerExceptionat oz.web.html.cms.CmsView.init(Unknown Source)at oz.web.html.cms.CmsViewPage
.init(Unknown Source)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)at java.lang.reflect.Constructor.newInstance(Constructor.java:274)at java.lang.Class.newInstance0(Class.java
:308)at java.lang.Class.newInstance(Class.java:261)at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:55)at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:88)
at wicket.request.target.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:270)at wicket.request.target.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:284)at 
wicket.request.target.BookmarkablePageRequestTarget.checkAccess(BookmarkablePageRequestTarget.java:123)at wicket.RequestCycle.step(RequestCycle.java:970)at wicket.RequestCycle.steps(RequestCycle.java:1057)
at wicket.RequestCycle.request(RequestCycle.java:534)at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199)at javax.servlet.http.HttpServlet.service(HttpServlet.java:596)at javax.servlet.http.HttpServlet.service
(HttpServlet.java:689)at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:568)at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)at org.mortbay.http.HttpContext.handle
(HttpContext.java:1482)at org.mortbay.http.HttpServer.service(HttpServer.java:909)at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java
:982)at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java
:357)at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)--play tetris http://pepone.on-rez.com/tetris---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865opclick___Wicket-user mailing list
Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice-url problems wicket-1.2-20060108

2006-01-09 Thread pepone pepone
I get the exception show in previous message
page is not render if i unmount page it render fine

i can try to debug my page constructor if you want to view what is
exactly the problem when page use nice url


On 1/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
 what do you exactly expect in youre constructor?
 Do you get wrong params?
 What is wrong exactly?


 On 1/9/06, pepone pepone  [EMAIL PROTECTED] wrote:
 
  wicket-1.2-20060108
 
  Bookmarkable link with arguments is broken when i mount page for use
 niceurls
 
  this is url with out mount the page and works fine
 
 
 http://localhost:8080/oz-cms/app;jsessionid=4rpu70hfvjckf?bookmarkablePage=oz.web.html.cms.CmsViewPagenodePath=%2FsiteName=site-00panel=FileList
 
  Nice url with CmsViewPage mounted at /cmsview.html
 
 
 http://localhost:8080/oz-cms/app/cmsview.html/nodePath///siteName/site-00/panel/FileList
 
 
  Exception raised when click this link
 
  I think this can be a problem with the parameters that are corrupted in
 same way
 
  java.lang.NullPointerException
  at oz.web.html.cms.CmsView.init(Unknown Source)
  at oz.web.html.cms.CmsViewPage .init(Unknown Source)
  at
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
  at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  at
 java.lang.reflect.Constructor.newInstance(Constructor.java:274)
  at java.lang.Class.newInstance0(Class.java :308)
  at java.lang.Class.newInstance(Class.java:261)
  at
 wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:55)
  at
 wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:88)
  at
 wicket.request.target.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:270)
  at
 wicket.request.target.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:284)
  at
 wicket.request.target.BookmarkablePageRequestTarget.checkAccess(BookmarkablePageRequestTarget.java:123)
  at wicket.RequestCycle.step(RequestCycle.java:970)
  at wicket.RequestCycle.steps(RequestCycle.java:1057)
  at wicket.RequestCycle.request(RequestCycle.java:534)
  at
 wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199)
  at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
  at javax.servlet.http.HttpServlet.service
 (HttpServlet.java:689)
  at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
  at
 org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
  at org.mortbay.jetty.servlet.ServletHandler.handle
 (ServletHandler.java:568)
  at
 org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
  at
 org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
  at org.mortbay.http.HttpContext.handle
 (HttpContext.java:1482)
  at
 org.mortbay.http.HttpServer.service(HttpServer.java:909)
  at
 org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
  at
 org.mortbay.http.HttpConnection.handleNext(HttpConnection.java
 :982)
  at
 org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
  at
 org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
  at
 org.mortbay.util.ThreadedServer.handle(ThreadedServer.java
 :357)
  at
 org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
  --
  play tetris http://pepone.on-rez.com/tetris
 
 
  ---
  This SF.net email is sponsored by: Splunk Inc. Do you grep through log
 files
  for problems?  Stop!  Download the new AJAX search engine that makes
  searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
  http://ads.osdn.com/?ad_idv37alloc_id865opclick
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 




--
play tetris http://pepone.on-rez.com/tetris


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] nice-url problems wicket-1.2-20060108

2006-01-09 Thread pepone pepone
I change my page to view what is exactly the problems and observe that
when i use
nice url parameters are not accesible or are empty when try to access
it in my page constructor

On 1/10/06, pepone pepone [EMAIL PROTECTED] wrote:
 I get the exception show in previous message
 page is not render if i unmount page it render fine

 i can try to debug my page constructor if you want to view what is
 exactly the problem when page use nice url


 On 1/10/06, Johan Compagner [EMAIL PROTECTED] wrote:
  what do you exactly expect in youre constructor?
  Do you get wrong params?
  What is wrong exactly?
 
 
  On 1/9/06, pepone pepone  [EMAIL PROTECTED] wrote:
  
   wicket-1.2-20060108
  
   Bookmarkable link with arguments is broken when i mount page for use
  niceurls
  
   this is url with out mount the page and works fine
  
  
  http://localhost:8080/oz-cms/app;jsessionid=4rpu70hfvjckf?bookmarkablePage=oz.web.html.cms.CmsViewPagenodePath=%2FsiteName=site-00panel=FileList
  
   Nice url with CmsViewPage mounted at /cmsview.html
  
  
  http://localhost:8080/oz-cms/app/cmsview.html/nodePath///siteName/site-00/panel/FileList
  
  
   Exception raised when click this link
  
   I think this can be a problem with the parameters that are corrupted in
  same way
  
   java.lang.NullPointerException
   at oz.web.html.cms.CmsView.init(Unknown Source)
   at oz.web.html.cms.CmsViewPage .init(Unknown Source)
   at
  sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)
   at
  sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
   at
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
   at
  java.lang.reflect.Constructor.newInstance(Constructor.java:274)
   at java.lang.Class.newInstance0(Class.java :308)
   at java.lang.Class.newInstance(Class.java:261)
   at
  wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:55)
   at
  wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:88)
   at
  wicket.request.target.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:270)
   at
  wicket.request.target.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:284)
   at
  wicket.request.target.BookmarkablePageRequestTarget.checkAccess(BookmarkablePageRequestTarget.java:123)
   at wicket.RequestCycle.step(RequestCycle.java:970)
   at wicket.RequestCycle.steps(RequestCycle.java:1057)
   at wicket.RequestCycle.request(RequestCycle.java:534)
   at
  wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:199)
   at
  javax.servlet.http.HttpServlet.service(HttpServlet.java:596)
   at javax.servlet.http.HttpServlet.service
  (HttpServlet.java:689)
   at
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
   at
  org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
   at org.mortbay.jetty.servlet.ServletHandler.handle
  (ServletHandler.java:568)
   at
  org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
   at
  org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
   at org.mortbay.http.HttpContext.handle
  (HttpContext.java:1482)
   at
  org.mortbay.http.HttpServer.service(HttpServer.java:909)
   at
  org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
   at
  org.mortbay.http.HttpConnection.handleNext(HttpConnection.java
  :982)
   at
  org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
   at
  org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
   at
  org.mortbay.util.ThreadedServer.handle(ThreadedServer.java
  :357)
   at
  org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
   --
   play tetris http://pepone.on-rez.com/tetris
  
  
   ---
   This SF.net email is sponsored by: Splunk Inc. Do you grep through log
  files
   for problems?  Stop!  Download the new AJAX search engine that makes
   searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
   http://ads.osdn.com/?ad_idv37alloc_id865opclick
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 


 --
 play tetris http://pepone.on-rez.com/tetris



--
play tetris http://pepone.on-rez.com/tetris


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37alloc_id865op=click
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net