Re: [Wicket-user] Pethate - long urls

2005-12-03 Thread Jeff Miller
I agree. I made the suggestion last month:  http://sourceforge.net/mailarchive/message.php?msg_id=13756383I really like the architecture of Wicket although I have not used it  much yet. The long url's is the one thing about Wicket that  seemed would be a problem. It appears that the development team  is considering some improvements with simplified url's.JeffMark Derricutt [EMAIL PROTECTED] wrote:Hey  all, so I'm starting to play with Wicket and loving it, but I currently  have a small pethate with the URL scheme used in the application.I realize the look of the URL "shouldn't" really matter, but I keep finding myself disliking it.  Currently my app shows a URL like: http://localhost:8081/quickstart/app?bookmarkablePage=com.theoryinpractice.testapp.pages.CommentsPage  Is there a way to get the app to resolve the above using something like: http://localhost:8081/quickstart/app/page/Podcomments  or even http://localhost:8081/quickstart/app?page=Podcomments  I guess it could be possible to say 'register' the package com.theoryinpractice.testapp.pages  as a place where pages could be found and "resolve" the class to use  instead of using the FQN all the time, this would only work in the case  of unambiguous classes thou.  Or maybe theres something already in wicket for more REST like  URL schemes? I notice in the basic frame
 work
 there's only a  BookmarkablePage extension of Page, is there something in wicket-stuff  maybe?  Jeff Miller[EMAIL PROTECTED]
	
		Yahoo! Shopping 
Find Great Deals on Gifts at Yahoo! Shopping 

Re: [Wicket-user] simple bookmarkable url

2005-11-09 Thread Jeff Miller

I understand. That is why I suggested a url that was more like a typicalurl (no page=) and did not require any special configuration by the developer. 

Another possibility would be to override Page2.html to mean bookmarkablePage=wicket.examples.template.Page2 so that url:
http://www.wicket-library.com/wicket-examples/template/Page2.html


is the same as:

http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2

Jeff
Igor Vaynberg [EMAIL PROTECTED] wrote:
you can create a regular _expression_ to go from page=name to bookmarkablePage=namethat along with page aliases whill get you where you want to gowe are concentrating our efforts on 1.2. your request is pretty simple to implement, but we are trying to figure out how to create pluggable and flexible url handlers for 1.2 so that you will be able to do that yourself. everyone has a different idea of how they want their urls to look. today we add page=name, tomorrow someone asks for p=name and so on and so forth. so instead of doing this case by case we are figuring out how to have something general that is easy to customize.-Igor
On 11/8/05, Jeff Miller [EMAIL PROTECTED] wrote: 
Thanks.I'll take a look.With the proper regular _expression_, I maybe able to affect any url.I don't want to program a rule for eachurl.I was hoping you Wicket developers would tell me that my proposal was faily simple to add to Wicket.I was looking for the simple url's tobe as easy and automatic as other Wicket features [no XMLconfiguration :) ]Jeff--- Igor Vaynberg  [EMAIL PROTECTED] wrote: or use a url rewriting filter like http://tuckey.org/urlrewrite/ -Igor On 11/8/05, Juergen Donnerstag  [EMAIL PROTECTED] wrote: 
  
 you know you can have that today by implementing it yourself? Take a  look WebRequestCrawlerSave and you'll see that you can easily  change  bookmarkablePage to page; you can make it case insensitive etc.   Juergen   On 11/8/05, Dan Gould [EMAIL PROTECTED]  wrote:   Jeff Miller wrote:I considered recommending "page=". It would be better than"bookmarkablePage=". Allowing "page=" in conjunction with  alias wouldcertainly allow simpler urls. +1   ---SF.Net email is sponsored by:   Tame your development challenges with Apache's Geronimo App Server.  Download
 
   it for free - -and be entered to win a 42" plasma tv or your  very own   Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php   ___Wicket-user mailing list   Wicket-user@lists.sourceforge.net   https://lists.sourceforge.net/lists/listinfo/wicket-user  ---  SF.Net email is sponsored by:  Tame your development challenges with Apache's Geronimo App  Server.  Download  it for free - -and be entered to win a 42" plasma tv or your very own  Sony(tm)PSP. Click h
 ere to
 play: http://sourceforge.net/geronimo.php  ___  Wicket-user mailing list  Wicket-user@lists.sourceforge.net   https://lists.sourceforge.net/lists/listinfo/wicket-user Jeff Miller[EMAIL PROTECTED]__Yahoo! Mail - PC Magazine Editors' Choice 2005http://mail.yahoo.com--- SF.Net email is sponsored by:Tame your development challenges with Apache's Geronimo App Server. Downloadit for free - -and be entered to win a 42" plasma tv or your very
 ownSony(tm)PSP.Click here to play: http://sourceforge.net/geronimo.php___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-userJeff Miller[EMAIL PROTECTED]
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

Re: [Wicket-user] simple bookmarkable url

2005-11-08 Thread Jeff Miller


Howare thebase url's different? In all cases, aren't the base url's the following?
www.wicket-library.com/wicket-examples/template
My desire is to have url's that are as simple as possible. Long url's are problems for nontechnical users (for example in emails, whenbookmarking, on written publications, describing verbally say over phone, or when typing in address bar of browser.).

When something like "bookmarkablePage" is added to the url, a simple url becomes complicated. Especially sinceurl is case sensitive where only "P" is capital and all other characters are lower case. This may sound trivial to us technical people since we understand what happens with case-sensitive string compares. However,complicated url's complicate acompany's ability for goodcustomer servicefor web-related things.

Jeff
Johan Compagner [EMAIL PROTECTED] wrote:
that is currently not possibleAlso with these kind of urls you suddenly have all kind of url problems (other resources like images/css/js files) because the base dir is different.You have to use a url rewriter for that currently.johan
On 11/7/05, Jeff Miller [EMAIL PROTECTED] wrote: 


putClassAlias is close to what I was suggesting but it does not remove all of the implementation details from the url. It eliminates the package name but the url still contains "?bookmarkablePage=" which is an implementation detail for Wicket butis not related to thesemantic value of the url.

No alias:
http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2 

With putClassAlias(Page2.class, "Page2"):
http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=Page2 

Desired alias:
http://www.wicket-library.com/wicket-examples/template/Page2



Jeff
Johan Compagner [EMAIL PROTECTED] wrote:
ApplicationPages is just a configuration object you can set properties that are used for pages (Error pages etc)For aliasses see wicket-examples, we use there as an example a few page aliasses. Just put youre bookmarkable page class as a allias:putClassAlias(MyPage.class, "mypage");
On 11/7/05, Jeff Miller [EMAIL PROTECTED]  wrote: 

Where would I find an example? I could not find any on wiki, wicket.sourceforge.net, or in examples. 

The javadoc isnot clear how to use ApplicationPages except that I need to use putClassAlias method. What object, if any, needs reference to the ApplicationPages object with the aliases?

Thanks,
Jeff 
Johan Compagner [EMAIL PROTECTED]  wrote:

there is already support for page aliasses see ApplicationPages
On 11/4/05, Jeff Miller [EMAIL PROTECTED]  wrote: 




Is there a way to create bookmarkable page without embedding any of the Wicket implementation details in the url? For example, the template example page 2 url is:
http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2 

However,"bookmarkablePage=wicket.examples.template" is a Wicket implementation detail thatis used because Wicket needs itand not because it is relevant to theurl. It would begood if the url could be simpler like:
http://www.wicket-library.com/wicket-examples/template/Page2

Now I realize that Wicket needs to knowhow to map "Page2" to "wicket.examples.template.Page2". One wayto accomplish this could beto add a method to WebApplicationlike addAlias(String alias, Class page). For example:

public class TemplateApplication extends WicketExampleApplication{ public TemplateApplication() { getPages().setHomePage(Page1.class);
addAlias("Page1", Page1.class);
addAlias("Page2", Page2.class); }}

Here are some articles that recommend keeping implementation details outof urls:
http://www.w3.org/Provider/Style/URI
http://www.useit.com/alertbox/990321.html

Thanks,
JeffJeff Miller[EMAIL PROTECTED] 


Yahoo! FareChase - Search multiple travel sites in one click. 




Jeff Miller[EMAIL PROTECTED] 


Yahoo! FareChase - Search multiple travel sites in one click. 

Jeff Miller[EMAIL PROTECTED] 


Yahoo! FareChase - Search multiple travel sites in one click. 
Jeff Miller[EMAIL PROTECTED]
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

Re: [Wicket-user] simple bookmarkable url

2005-11-08 Thread Jeff Miller
I considered recommending "page=". It would be better than "bookmarkablePage=". Allowing "page=" in conjunction with alias would certainly allow simpler urls. 

When browsing to bookmarkable page,wouldthe urlshow in browser as "page=alias"? I would prefer that to "bookmarkablePage=com.mycompany.app.myapp" or "bookmarkablePage=alias" even though "page" is understood by Wicket. In other words, ifmy applicationis configured to use "page", I wouldnever want "bookmarkablePage" toshow in browser address during navigation. 

JeffJohan Compagner [EMAIL PROTECTED] wrote:
We could also support:page=wicket (instead of bookmarkablePage=wicket)the base in this:www.wicket-library.com/wicket-examples/template iswww.wicket-library.com/wicket-examples/ 
but with:www.wicket-library.com/wicket-examples/template /pageit is:www.wicket-library.com/wicket-examples/template /johanOn 11/8/05, Jeff Miller [EMAIL PROTECTED] wrote:



Howare thebase url's different? In all cases, aren't the base url's the following?
www.wicket-library.com/wicket-examples/template 
My desire is to have url's that are as simple as possible. Long url's are problems for nontechnical users (for example in emails, whenbookmarking, on written publications, describing verbally say over phone, or when typing in address bar of browser.).

When something like "bookmarkablePage" is added to the url, a simple url becomes complicated. Especially sinceurl is case sensitive where only "P" is capital and all other characters are lower case. This may sound trivial to us technical people since we understand what happens with case-sensitive string compares. However,complicated url's complicate acompany's ability for goodcustomer servicefor web-related things.


Jeff
Johan Compagner [EMAIL PROTECTED] wrote:
that is currently not possibleAlso with these kind of urls you suddenly have all kind of url problems (other resources like images/css/js files) because the base dir is different.You have to use a url rewriter for that currently.johan
On 11/7/05, Jeff Miller [EMAIL PROTECTED]  wrote: 


putClassAlias is close to what I was suggesting but it does not remove all of the implementation details from the url. It eliminates the package name but the url still contains "?bookmarkablePage=" which is an implementation detail for Wicket butis not related to thesemantic value of the url.

No alias:
http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2 

With putClassAlias(Page2.class, "Page2"):
http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=Page2 

Desired alias:
http://www.wicket-library.com/wicket-examples/template/Page2



Jeff
Johan Compagner [EMAIL PROTECTED] wrote:
ApplicationPages is just a configuration object you can set properties that are used for pages (Error pages etc)For aliasses see wicket-examples, we use there as an example a few page aliasses. Just put youre bookmarkable page class as a allias:putClassAlias(MyPage.class, "mypage");
On 11/7/05, Jeff Miller [EMAIL PROTECTED]  wrote: 

Where would I find an example? I could not find any on wiki, wicket.sourceforge.net, or in examples. 

The javadoc isnot clear how to use ApplicationPages except that I need to use putClassAlias method. What object, if any, needs reference to the ApplicationPages object with the aliases?

Thanks,
Jeff 
Johan Compagner [EMAIL PROTECTED]  wrote:

there is already support for page aliasses see ApplicationPages
On 11/4/05, Jeff Miller [EMAIL PROTECTED]  wrote: 




Is there a way to create bookmarkable page without embedding any of the Wicket implementation details in the url? For example, the template example page 2 url is:
http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2 

However,"bookmarkablePage=wicket.examples.template" is a Wicket implementation detail thatis used because Wicket needs itand not because it is relevant to theurl. It would begood if the url could be simpler like:
http://www.wicket-library.com/wicket-examples/template/Page2

Now I realize that Wicket needs to knowhow to map "Page2" to "wicket.examples.template.Page2". One wayto accomplish this could beto add a method to WebApplicationlike addAlias(String alias, Class page). For example:

public class TemplateApplication extends WicketExampleApplication{ public TemplateApplication() { getPages().setHomePage(Page1.class);
addAlias("Page1", Page1.class);
addAlias("Page2", Page2.class); }}

Here are some articles that recommend keeping implementation details outof urls:
http://www.w3.org/Provider/Style/URI
http://www.useit.com/alertbox/990321.html

Thanks,
JeffJeff Miller[EMAIL PROTECTED] 


Yahoo! FareChase - Search multiple travel sites in one click. 






Jeff Miller[EMAIL PROTECTED] 


Yahoo! FareChase 

Re: [Wicket-user] simple bookmarkable url

2005-11-08 Thread Jeff Miller
Thanks.  I'll take a look.  With the proper regular expression, I may
be able to affect any url.  I don't want to program a rule for each
url.

I was hoping you Wicket developers would tell me that my proposal was
faily simple to add to Wicket.  I was looking for the simple url's to
be as easy and automatic as other Wicket features [no XML
configuration :) ]

Jeff

--- Igor Vaynberg [EMAIL PROTECTED] wrote:

 or use a url rewriting filter like http://tuckey.org/urlrewrite/
 
 -Igor
 
 
 On 11/8/05, Juergen Donnerstag [EMAIL PROTECTED]
 wrote:
 
  you know you can have that today by implementing it yourself?
 Take a
  look WebRequestCrawlerSave and you'll see that you can easily
 change
  bookmarkablePage to page; you can make it case insensitive etc.
 
  Juergen
 
  On 11/8/05, Dan Gould [EMAIL PROTECTED] wrote:
   Jeff Miller wrote:
I considered recommending page=. It would be better than
bookmarkablePage=. Allowing page= in conjunction with
 alias would
certainly allow simpler urls.
  
   +1
  
  
   ---
   SF.Net email is sponsored by:
   Tame your development challenges with Apache's Geronimo App
 Server.
  Download
   it for free - -and be entered to win a 42 plasma tv or your
 very own
   Sony(tm)PSP. Click here to play:
 http://sourceforge.net/geronimo.php
   ___
   Wicket-user mailing list
   Wicket-user@lists.sourceforge.net
   https://lists.sourceforge.net/lists/listinfo/wicket-user
  
 
 
  ---
  SF.Net email is sponsored by:
  Tame your development challenges with Apache's Geronimo App
 Server.
  Download
  it for free - -and be entered to win a 42 plasma tv or your very
 own
  Sony(tm)PSP. Click here to play:
 http://sourceforge.net/geronimo.php
  ___
  Wicket-user mailing list
  Wicket-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 


Jeff Miller
[EMAIL PROTECTED]




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] simple bookmarkable url

2005-11-07 Thread Jeff Miller
Where would I find an example? I could not find any on wiki, wicket.sourceforge.net, or in examples.

The javadoc isnot clear how to use ApplicationPages except that I need to use putClassAlias method. What object, if any, needs reference to the ApplicationPages object with the aliases?

Thanks,
JeffJohan Compagner [EMAIL PROTECTED] wrote:
there is already support for page aliasses see ApplicationPages
On 11/4/05, Jeff Miller [EMAIL PROTECTED] wrote:




Is there a way to create bookmarkable page without embedding any of the Wicket implementation details in the url? For example, the template example page 2 url is:
http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2 

However,"bookmarkablePage=wicket.examples.template" is a Wicket implementation detail thatis used because Wicket needs itand not because it is relevant to theurl. It would begood if the url could be simpler like:
http://www.wicket-library.com/wicket-examples/template/Page2

Now I realize that Wicket needs to knowhow to map "Page2" to "wicket.examples.template.Page2". One wayto accomplish this could beto add a method to WebApplicationlike addAlias(String alias, Class page). For example:

public class TemplateApplication extends WicketExampleApplication{ public TemplateApplication() { getPages().setHomePage(Page1.class);
addAlias("Page1", Page1.class);
addAlias("Page2", Page2.class); }}

Here are some articles that recommend keeping implementation details outof urls:
http://www.w3.org/Provider/Style/URI
http://www.useit.com/alertbox/990321.html

Thanks,
JeffJeff Miller[EMAIL PROTECTED] 


Yahoo! FareChase - Search multiple travel sites in one click. 
Jeff Miller[EMAIL PROTECTED]
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

[Wicket-user] simple bookmarkable url

2005-11-04 Thread Jeff Miller



Is there a way to create bookmarkable page without embedding any of the Wicket implementation details in the url? For example, the template example page 2 url is:
http://www.wicket-library.com/wicket-examples/template?bookmarkablePage=wicket.examples.template.Page2

However,"bookmarkablePage=wicket.examples.template" is a Wicket implementation detail thatis used because Wicket needs itand not because it is relevant to theurl. It would begood if the url could be simpler like:
http://www.wicket-library.com/wicket-examples/template/Page2

Now I realize that Wicket needs to knowhow to map "Page2" to "wicket.examples.template.Page2". One wayto accomplish this could beto add a method to WebApplicationlike addAlias(String alias, Class page). For example:

public class TemplateApplication extends WicketExampleApplication{ public TemplateApplication() { getPages().setHomePage(Page1.class);
addAlias("Page1", Page1.class);
addAlias("Page2", Page2.class); }}

Here are some articles that recommend keeping implementation details outof urls:
http://www.w3.org/Provider/Style/URI
http://www.useit.com/alertbox/990321.html

Thanks,
JeffJeff Miller[EMAIL PROTECTED]
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

[Wicket-user] servletapi-2.3.jar included?

2005-11-01 Thread Jeff Miller

Why is servletapi-2.3.jar included with wicket? Isn't the servletapi included with whatever JSP web server that I use? Is the wicket servletapi-2.3.jar a newer version and so supersede what is on my web server (Tomcat 5.5.12)?

Thanks,
JeffJeff Miller[EMAIL PROTECTED]
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

RE: [Wicket-user] SiteMesh and Wicket are compatible?

2005-10-27 Thread Jeff Miller

If I can get the ability to have common decorators (or tiles as inStruts) from Wicket markup inheritance, then I will use wicket only. I do not have to use SiteMesh. I assumed that I would need SiteMesh since I wanted the features of decorators/tiles but did not want to use Struts Tiles. I'll try out Wicket markup inheritance.

Jeff
Igor Vaynberg [EMAIL PROTECTED] wrote:


Andrew is right, wicket has features equivalent to sitemesh. If, however, you need to use it for one reason or another there shouldnt be any problems. Sitemesh is a filter and wicket is a servlet so they shouldnt work together just fine.

-Igor




From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew BermanSent: Wednesday, October 26, 2005 12:57 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] SiteMesh and Wicket are compatible?
There is no need to use SiteMesh if you are using Wicket. Wicket has mechanisms which accomplish the same thing but even better. Take a look at Borders, Panels, and markup inheritance (http://www.wicket-wiki.org.uk/wiki/index.php/Markup_inheritance)--Andrew
On 10/26/05, Jeff Miller [EMAIL PROTECTED] wrote: 


Has anyoneattempted to useSiteMesh (http://www.opensymphony.com/sitemesh/) with Wicket? If yes, are there any issues or limitations? 

Thanks,
JeffJeff Miller[EMAIL PROTECTED] 


Yahoo! FareChase - Search multiple travel sites in one click. 
Jeff Miller[EMAIL PROTECTED]
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

[Wicket-user] SiteMesh and Wicket are compatible?

2005-10-26 Thread Jeff Miller

Has anyoneattempted to useSiteMesh (http://www.opensymphony.com/sitemesh/) with Wicket? If yes, are there any issues or limitations?

Thanks,
JeffJeff Miller[EMAIL PROTECTED]
		 Yahoo! FareChase - Search multiple travel sites in one click.

 

 

[Wicket-user] wicket.extensions?

2005-09-26 Thread Jeff Miller
The form input example uses wicket.extensions package but I did not
see this package in javadoc.  Is there javadoc for extensions
package?

Jeff

Jeff Miller
[EMAIL PROTECTED]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user