How to make a WebPage Application aware?

2007-12-15 Thread chickabee
Hi Guys, I have a tomcat webapp with two Wicket Applications, say A and B. Now, if I create a bookmarkable link in application A for a WebPage which actually belongs to application B then it balks out for obvious reasons. I wonder if there is a way to make a WebPage application aware, so that

Re: GWT + Wicket

2007-12-15 Thread chickabee
Yes, you are right Dan, comparing GWT and Wicket is like comparing apples and oranges. In theory you can have complete website using GWT, but here are the pitfalls: 1. With GWT your site will not be indexed in search engines because you have only one page for the whole website and the contents

Re: How to make a WebPage Application aware?

2007-12-15 Thread chickabee
well be a hidden core wicket functionality where a webpage knows by itself about the application it belongs to. I believe this functionality will be very useful if incorporated in case it is not present presently. Cheers, -J Gabor Szokoli wrote: On Dec 15, 2007 9:41 PM, chickabee [EMAIL

Dot ( . ) in the URL !

2007-10-14 Thread chickabee
Hi Guys, It seems that wicket has the special meaning of a dot ( . ) in the URL. Wicket expects anything after a dot to be a number and throws Number format exception if it is not, Is there is a way to use dots in the url?? Here is the example of the url where it is failing:

Dynamic Page Titles !

2007-09-22 Thread chickabee
Hi, I am looking for some insight on how to render page title dynamically in wicket. I tried: html head title/title /head body /body /html But, apparently wicket tags are not recognized under head, How can I achieve this functionality?? Thanks. -- View this message in

Dynamic Page Titles !

2007-09-22 Thread chickabee
-Posting agagin so that span tag is visible-- Hi, I am looking for some insight on how to render page title dynamically in wicket. I tried: html head titles-p-a-n wicket:id=catPageTitle//title /head body /body /html Note : s-p-s-n = span But, apparently wicket

Re: Dynamic Page Titles !

2007-09-22 Thread chickabee
It is rendering the wicket tag itself in the page title which is kinda funny... Any more clues?? Thanks !! Gwyn wrote: On Saturday, September 22, 2007, 10:48:50 PM, chickabee [EMAIL PROTECTED] wrote: -Posting agagin so that span tag is visible-- Hi, I am looking for some insight on how

Re: Dynamic Page Titles !

2007-09-22 Thread chickabee
This worked well eventually: head title wicket:id=catPageTitle /title /head Thanks for the pointer.. chickabee wrote: Thanks, A little better but not quite there yet. Now I have my tag as: head titles-p-a-n wicket:id=catPageTitle/s-p-a-n/title

Image Scaling Feature !

2007-09-20 Thread chickabee
Hi, I like to know if wicket has any built-in feature for scaling images while maintaining aspect ratios, Thanks ! -- View this message in context: http://www.nabble.com/Image-Scaling-Feature-%21-tf4485782.html#a12792030 Sent from the Wicket - User mailing list archive at Nabble.com.

Re: Images Example Question!

2007-09-20 Thread chickabee
Internal Image URL worked fine but the third party Image URLs still have problems, Here is the sample third party url: http://images.overstock.com/f/102/3117/8h/www.overstock.com/images/products/T10577058.jpg If I use Image: image = new Image(prodImg, 'url ); then I get this: WARN -

Re: Images Example Question!

2007-09-20 Thread chickabee
Very interesting! That was easy, all good again, thanks for the help !! Eelco Hillenius wrote: com/ezfizz/whisky/http:/images.overstock.com/f/102/3117/8h/www.overstock.com/images/products/T10577058.jpg If I use Context Image: image = new ContextImage(prodImg, new Model( url ) );

Re: Passing Parameters to Bookmarkable Page

2007-09-19 Thread chickabee
It seems like in: parameters.put(filter, filter); the filter object is the instance of com.foo.bar.Filter class, I guess if you implement toString() correctly within this object that might help, also instead of com.foo.bar.Filter object, try supplying a String as an alternate, Good luck.

Images Example Question!

2007-09-19 Thread chickabee
Referring to Imge examples if I drop a few images into folder: src\main\webapp\images e.g. src\main\webapp\images\cat.gif src\main\webapp\images\dog.gif src\main\webapp\images\snake.gif Then how do I show these imges into the: src\main\java\org\apache\wicket\examples\images\HomePge.java

Re: Images Example Question!

2007-09-19 Thread chickabee
Thanks Eelco for the prompt response, here is what I have. Image url woring fine in the browser: https://lilo:8443/whisky/images/mlogo/Merchant.gif Then in my class this is what i have: item.add( new Image(merchantLogo, https://lilo:8443/whisky/images/mlogo/Merchant.gif;) ); And my html looks

Re: Images Example Question!

2007-09-19 Thread chickabee
Thanks Eelco, This is working now with ContextImage, as you suggested, Now how do I use this image to create one external link, I tried: td width=20% /td but it fails miserably after complaining about hierarchy, i can't really find any method like: ExternalLink(java.lang.String id,

Re: Images Example Question!

2007-09-19 Thread chickabee
Sorry, Posting again with image tag, and anchor hack--- Thanks Eelco, This is working now with ContextImage, as you suggested, Now how do I use this image to create one external link, I tried: td width=20%-a- wicket:id=merchantLink i-m-g wicket:id=merchantLogo/ /td but it fails miserably

Re: Encoding the Nice URL Parameters !

2007-09-17 Thread chickabee
Bookmarkable urls are doing correct encoding, the problem is only with the the setResponsePage call. chickabee wrote: Hi, I am using: setResponsePage(SearchPage.class, params); Now if any of the params value has a space then the url fails miserably because it replaces the space

Capturing Form Data into Nice URL !

2007-09-16 Thread chickabee
I have simple form: = private class SearchForm extends Form { private final ValueMap properties = new ValueMap(); private TextField querystring; public SearchForm(String id){ super(id); add(querystring = new

DropDownChoice.setSelected(Object object)

2007-09-16 Thread chickabee
Hi, I am looking for an equivalent to: DropDownChoice.setSelected(Object object) I looked into API docs but can't figure it out. I have drop down with 18 different choices and I want to select one from either on the available values based on a PageParameter received. Help please! Thanks!! --

Re: PageNavigator Vs Nice Url

2007-09-11 Thread chickabee
. (there is a BookmarkableLink in the API), if you want pages with state to be bookmarkable, the relevant state needs to be encoded in the URL and passed with PageParameters I believe. Johan chickabee wrote: Yes, Now the urls are like: https://lilo:8443/whisky/app/plist/.1.2 https://lilo:8443

Re: PageNavigator Vs Nice Url

2007-09-11 Thread chickabee
with state to be bookmarkable, the relevant state needs to be encoded in the URL and passed with PageParameters I believe. Johan chickabee wrote: Yes, Now the urls are like: https://lilo:8443/whisky/app/plist/.1.2 https://lilo:8443/whisky/app/plist/.1.3 ...etc...these are much better than

Re: How to create Dynamic ListView

2007-09-11 Thread chickabee
You can follow the GridView code in the examples, it is the easiest way to learn how effortlessly wicket can provide data grids in a webpage. As far as the tablename etc is there, I believe this is your very own business logic situation, so deal with it. Good luck wicketing!! Edi wrote:

Re: PageNavigator Vs Nice Url

2007-09-11 Thread chickabee
that the PageNavigator can itself create the navigable urls. Thanks Sebastiaan van Erk wrote: Hi, chickabee wrote: I think it will be easily achievable by adding one more constructor to PageNavigator which can take the starting page param: Exising: add(new PagingNavigator(navigator

Re: First Day Disgust!

2007-09-10 Thread chickabee
of the projects involved). Or use maven to build the war for you, then copy it manually to tomcat or jboss or whatever... Or use ant (if you like it so much) to do the same thing. Alex. chickabee wrote: 2. It favors Jetty. ( Why even say Jetty, pom.xml has jetty dependencies defined

Param = null

2007-09-10 Thread chickabee
Here is the constructor of the class i have: public CategoryBrowser(final PageParameters parameters) { // Add the simplest type of label add(new Label(message, Welcome to the Category Browser Page)); System.out.println(Param = + parameters.getString(id) ); }

Re: Param = null

2007-09-10 Thread chickabee
Simply Amazing! It works like a charm. So the Wicket syntx is: https://lilo:8443/whisky/app/cat/param1/value1/param2/value2 Gracias para la ayuda Fancis! = tried https://lilo:8443/whisky/app/cat/id/1 ? -- View this message in context:

Re: Param = null

2007-09-10 Thread chickabee
it using a different UrlCodingStrategy On 9/10/07, chickabee [EMAIL PROTECTED] wrote: Simply Amazing! It works like a charm. So the Wicket syntx is: https://lilo:8443/whisky/app/cat/param1/value1/param2/value2 Gracias para la ayuda Fancis! = tried https://lilo:8443

Re: mountBookmarkablePage and missing parameters - exception thrown

2007-09-10 Thread chickabee
I believe the org.apache.wicket.request.target.coding.AbstractRequestTargetUrlCodingStrategy.decodeParameters(), shold not throw a RunTime Exception as it does now, if the url is tampered, instead it should always provide the parameters and values to it's best guess and then let the user decided

Re: Param = null

2007-09-10 Thread chickabee
only if you deploy your application in development mode. in deployment mode only the internal error page. see IApplicationSettings#setInternalErrorPage(Class) gerolf Thanks for the good piece of info. I still do not see why the wicket should treat it as an internal error if there are missing

Re: Param = null

2007-09-10 Thread chickabee
are free to give wicket a own CodingStrategy by extending any of these strategys chickabee schrieb: Simply Amazing! It works like a charm. So the Wicket syntx is: https://lilo:8443/whisky/app/cat/param1/value1/param2/value2 Gracias para la ayuda Fancis! = tried

Re: Param = null

2007-09-10 Thread chickabee
, 12:23:36 PM, chickabee [EMAIL PROTECTED] wrote: I still do not see why the wicket should treat it as an internal error if there are missing parameters? I guess wicket needs to follow the same paradigm as in the raw HttpRequest, let the user pull the parameters if they exist and take their own

Re: Param = null

2007-09-10 Thread chickabee
need to do is set your own custom error page and switch to Deployment mode, so as not to get the developer-friendly error messages. /Gwyn On Monday, September 10, 2007, 1:05:17 PM, chickabee [EMAIL PROTECTED] wrote: I would disagree because this is the first problem any web developer

Re: Param = null

2007-09-10 Thread chickabee
. /Gwyn On Monday, September 10, 2007, 1:58:55 PM, chickabee [EMAIL PROTECTED] wrote: Ok, let me give you a different scenario and see if wicket has a way to handle it. Assume there are 10 parameters are being passed to the app as below: http://some.web.site/wicket/app/page/p1/v1/p2/v2/p3

Re: First Day Disgust!

2007-09-09 Thread chickabee
with wicket at first sight. Thank you all for listening. === Craig Tataryn wrote: FYI Chickabee, if you are using Netbeans and use the Wicket plugin it is bundled with some helpful sample apps. Craig. On 9/8/07, chickabee [EMAIL PROTECTED] wrote

[Wicket] Vs [HTTP 404 - File not found]

2007-09-09 Thread chickabee
Hi Guys, What is the preferred strategy for customization of error page under HTTP 404 - File not found situations, any helpful pointer will be appreciated. At present i have used error directive in web.xml and I wonder how should i go about it, if i want to handle this from within wicket.

First Day Disgust!

2007-09-08 Thread chickabee
Hi Wicketers, I tried wicket today and the example application was up and running on tomcat in no time, so that was the good part, after that if I like to create a sample application on my own then I found no easy way to start. Examples are good to browse through and tell about wicket

Re: First Day Disgust!

2007-09-08 Thread chickabee
=wicket-archetype-quickstart -DarchetypeVersion=1.3.0-beta3 -DgroupId=com.mycompany -DartifactId=myproject $ cd myproject $ more pom.xml then in this project try (copy/paste) the samples from the website. /david chickabee wrote: Hi Wicketers, I tried wicket

Re: First Day Disgust!

2007-09-08 Thread chickabee
. Al Maw wrote: chickabee wrote: Thanks for the great idea. Note that this is displayed fairly prominently on the web site at http://wicket.apache.org under QuickStart. It believe it will be good to put a few of the examples application in their own folders and war files