Re: Timestamp - java.util.Date convertion in Wicket

2008-06-01 Thread Jeremy Thomerson
Weird indeed. Do this... capture the return of your ((ConverterLocator) getConverterLocator()).set(...) call. In that method, it is returning the result of a Map.put(Timestamp.class, your-converter). Therefore, the result should be non-null, as you should be overriding the default

Wicket in Action PDF - font size

2008-06-01 Thread Eyal Golan
Hi, I plan to buy this book but not sure if to buy only the ebook or also the paper version as well. I prefer just the e-book so I won't waist another tree :) I downloaded the free first chapter of WIA. It seems to me that the font is a bit small. even when I fit width it is still too small. I

Re: Changing Link string conditionally?

2008-06-01 Thread Erik van Oosten
The idea is to put a span inside the a, and then attach a Label to the span. Is that something you can work with? Regards, Erik. Michael Mehrle wrote: Okay, this seems so easy, but I'm somehow stuck. How do I change the string of a Link based on some condition? Do I simply provide a

Re: tabbed pages not panels

2008-06-01 Thread Erik van Oosten
Tabbed pages are easy to create yourself (a lot easier then tabbed panels). Just create a list (ol) with elements (li) with in each a link (a). Now attach a Link component to the latter (any link type, but you probably are looking for a BookmarkableLink). Put this all in a Panel you can reuse

Re: tabbed pages not panels

2008-06-01 Thread Maurice Marrink
Just add your custom tabbar and a panel to your page. and let the tabbar know which panel it should update. Note that in the case of panels you should use Link in your tabbar component. Maurice On Sun, Jun 1, 2008 at 12:01 PM, cresc [EMAIL PROTECTED] wrote: Thanks Erik.. I understand ur

Re: Wicket in Action PDF - font size

2008-06-01 Thread Martijn Dashorst
All Manning e-books use the same font and layout between the PDF and printed versions. I don't know if our sample chapter will be updated (I certainly hope so!) but the final PDF will look like all the other Manning PDF ebooks, for example: http://www.manning.com/gallo/sample-ch2.pdf Martijn On

Re: Wicket in Action PDF - font size

2008-06-01 Thread Eyal Golan
cool thanks On Sun, Jun 1, 2008 at 12:51 PM, Martijn Dashorst [EMAIL PROTECTED] wrote: All Manning e-books use the same font and layout between the PDF and printed versions. I don't know if our sample chapter will be updated (I certainly hope so!) but the final PDF will look like all the

Re: tabbed pages not panels

2008-06-01 Thread cresc
Thanks Erik.. I understand ur suggestion. But I do have an other problem where I need to split the navigation panel the panel content. Any idea how to achieve this? http://www.nabble.com/split-tabpanel-navigation-and-panel-content-tt17583663.html - nazeem Erik van Oosten wrote: Tabbed

split tabpanel navigation and panel content

2008-06-01 Thread cresc
When using wickets tabbed panel can I split the navigation and the panel contents to diff blocks. The use cases I require is use a vertical tab (sidebar) as tab and display the contents in RHS side. Please suggest any workaround to achieve this. Thank u. -- View this message in context:

Re: split tabpanel navigation and panel content

2008-06-01 Thread Maurice Marrink
Well if you are talking about having other html elements between the tab bar and the content itself, then no you would have to write your own components. but using some css or overriding the default markup for the tabbedpanel you might be able to achieve the same visual effect. Maurice On Sun,

Weird exceptions. Has anyone seen any exceptions like these

2008-06-01 Thread atul singh
Hi, As a result of code integration from various teams we have introduced some change which is causing problems... but the sad part is that we do not know what is happening-- I will loove to know if someone else has seen similar exceptions and how they solved if they were able to:: Also what do

fieldlabel Component

2008-06-01 Thread Jürgen Lind
Hi, I am looking for the solution for a quite common problem: I want the label of a form element to change its color if the input is invalid. Searching the web I found some very old postings of Igor and Jonathan discussing this matter; however, I have not found any links to the final solution.

Re: fieldlabel Component

2008-06-01 Thread Jürgen Lind
Thx, J. Martijn Dashorst wrote: label.add(new AttributeModifier(class, true, new Model() { public Object getObject() { return formcomponent.isValid() ? : error; }}); On Sun, Jun 1, 2008 at 8:05 PM, Jürgen Lind [EMAIL PROTECTED] wrote: Hi, I am looking for the solution for a quite common

Re: Weird exceptions. Has anyone seen any exceptions like these

2008-06-01 Thread Maurice Marrink
Are you by any chance replacing components? This could happen if you let the ajax render a component that has been removed from the page. Maurice On Sun, Jun 1, 2008 at 7:32 PM, atul singh [EMAIL PROTECTED] wrote: Hi, As a result of code integration from various teams we have introduced some

Re: fieldlabel Component

2008-06-01 Thread Martijn Dashorst
label.add(new AttributeModifier(class, true, new Model() { public Object getObject() { return formcomponent.isValid() ? : error; }}); On Sun, Jun 1, 2008 at 8:05 PM, Jürgen Lind [EMAIL PROTECTED] wrote: Hi, I am looking for the solution for a quite common problem: I want the label of a form

RE: Changing Link string conditionally?

2008-06-01 Thread Michael Mehrle
Okay, so I need to treat the link text as a separate entity - makes sense. Thanks a lot - can't believe I didn't think of that... Michael -Original Message- From: Erik van Oosten [mailto:[EMAIL PROTECTED] Sent: Sunday, June 01, 2008 2:00 AM To: users@wicket.apache.org Subject: Re:

AjaxFallbackLink to Show/Hide a checkGroup problem...

2008-06-01 Thread smallufo
Hi I want to use an AjaxFallbackLink to show/hide a checkGroup , but I can only hide it , cannot re-show it... I did checkGroup.setRenderBodyOnly(false); and listView.setReuseItems(true); But still can still only hide the checkGroup , cannot make it re-appear... Can somebody help me

RE: AjaxFallbackLink to Show/Hide a checkGroup problem...

2008-06-01 Thread Jeremy Thomerson
There's another boolean on component that you should set to true. It will output a container where the component should be, even if the component is invisible. Unfortunately, I'm not at my computer, and I can't remember the name. Look for set*(boolean), and it may have the word container in

users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Eelco Hillenius
Hi all, We have had several threads in this and the dev list, and some discussions in the public on how to incorporate generics in Wicket. I'd like to use this thread to gather the opinions of as many regular Wicket users as we can. Please help us get an impression of what our users think about

What is Wicket? from WIA

2008-06-01 Thread Eyal Golan
Hi, I read chapter 1 in Wicket in Action and I have a question. in section 1.2.1 it says: You can get rid of all of these problems by using Wicket. It is a stateful framework, so you don't have to follow the REST (though you can, but we will talk about that later in this book)

Re: AjaxFallbackLink to Show/Hide a checkGroup problem...

2008-06-01 Thread Igor Vaynberg
setoutputmarkupplaceholdertag(true) -igor On Sun, Jun 1, 2008 at 1:39 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: There's another boolean on component that you should set to true. It will output a container where the component should be, even if the component is invisible.

RE: AjaxFallbackLink to Show/Hide a checkGroup problem...

2008-06-01 Thread Jeremy Thomerson
Found the method: public final ComponentT setOutputMarkupPlaceholderTag(final boolean outputTag) Jeremy Thomerson http://www.wickettraining.com -- sent from a wireless device -Original Message- From: smallufo [EMAIL PROTECTED] Sent: Sunday, June 01, 2008 3:04 PM To:

Re: What is Wicket? from WIA

2008-06-01 Thread Eelco Hillenius
Wicket supports private state for individual components, whereas the traditional (REST) pattern assumes to take the state out (to string based request parameters) and up to the request level. The big difference is that without using a framework like Wicket, you can't really create self contained

Re: Weird exceptions. Has anyone seen any exceptions like these

2008-06-01 Thread atul singh
Thanks, But i am sure, that is not happening ..I looked at all that code.. Any other suggestions/guesses?? On Mon, Jun 2, 2008 at 12:09 AM, Maurice Marrink [EMAIL PROTECTED] wrote: Are you by any chance replacing components? This could happen if you let the ajax render a component that has been

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread atul singh
1) [ X] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. *Reason::* I think generifying

Re: What is Wicket? from WIA

2008-06-01 Thread Eyal Golan
wow. thanks. That was very helpful :) Eyal On Mon, Jun 2, 2008 at 12:08 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: Wicket supports private state for individual components, whereas the traditional (REST) pattern assumes to take the state out (to string based request parameters) and up to

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Ayodeji Aladejebi
scan this user forum, you will realize that there is no high demand for generics in wicket from users. I am yet to see one user or thread here of wicket users screeming out for generics addition. I think users has been doing just fine without it at least speaking for myself. Anything more than

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Ayodeji Aladejebi
[X ] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. [ X] Whatever choice ultimately made, I'll happily

RE: Timestamp - java.util.Date convertion in Wicket

2008-06-01 Thread Michael Mehrle
Okay, this is what I'm getting: [DEBUG EviteApplication] I OVERRODE THIS CONVERTER: null Strange - isn't it? The only thing I changed was to remove Timestamp from your IConverter definition. I'm using Wicket 1.3.4. Thoughts? Michael -Original Message- From: Jeremy Thomerson

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Eelco Hillenius
On Sun, Jun 1, 2008 at 2:46 PM, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: scan this user forum, you will realize that there is no high demand for generics in wicket from users. I am yet to see one user or thread here of wicket users screeming out for generics addition. I think users has been

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Eyal Golan
[X] *Can best be done in a limited fashion*, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. *Reason* - Well, I haven't started working hard on

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Peter Ertl
1) Generifying* Wicket [X ] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. 2) How strongly do you

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Nick Heudecker
1) Generifying* Wicket [X] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. 2) How strongly do

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Advanced Technology®
1) [ X] Can best be done like currently in the 1.4 branch, where models and components are both generified. I care most about the improved static type checking generified models and components give Wicket. 2) [ X] I might rethink upgrading if my choice doesn't win. AT

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread James Carman
On Sun, Jun 1, 2008 at 4:44 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: 1) Generifying* Wicket [ ] Can best be done like currently in the 1.4 branch, where models and components are both generified. I care most about the improved static type checking generified models and components give

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Ricky
[X ] Can best be done like currently in the 1.4 branch, where models and components are both generified. I care most about the improved static type checking generified models and components give Wicket. I think generifying Components give more clarity (Don't blame Wicket for Messed up Generic

How to access properties files outside of Wicket components?

2008-06-01 Thread Michael Mehrle
I just refactored one of my pages and externalized an inner class into an outer class that however still needs access to that page's property stings. Can I just treat that page's properties file as a resource bundle and retrieve the strings the old fashioned way? Or will there be problems?

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Matthew Young
[X] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. [X] I might rethink upgrading if my choice doesn't

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Ricky
wow this has a pattern for sure doesn't it ? ;) Rick On Sun, Jun 1, 2008 at 7:25 PM, Matthew Young [EMAIL PROTECTED] wrote: [X] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a

Re: users, please give us your opinion: what is your take on generics with Wicket

2008-06-01 Thread Vit Rozkovec
1) Generifying* Wicket [X] Can best be done in a limited fashion, where we only generify IModel but not components. I care more about what generifying can do for API clarity (declaring a component to only accept certain models for instance) than static type checking. 2) How strongly do you

RE: How to access properties files outside of Wicket components?

2008-06-01 Thread Michael Mehrle
Right now I had to resort to the solution below, but I would very much like to know the standard way of doing this, as this required me to place my properties file into the src/main/resources folder: static { try {

Re: Wicket in Action PDF - font size

2008-06-01 Thread dtoffe
You can also try changing fit width to fit visible, in the example pdf provided before the zoom went from 137% to 171% Daniel Eyal Golan wrote: I downloaded the free first chapter of WIA. It seems to me that the font is a bit small. even when I fit width it is still too small.

Re: Weird exceptions. Has anyone seen any exceptions like these

2008-06-01 Thread Timo Rantalaiho
On Sun, 01 Jun 2008, atul singh wrote: I will loove to know if someone else has seen similar exceptions and how they solved if they were able to:: Also what do these exceptions mean--i mean situation they might happen in?? 1. java.lang.IllegalStateException: No Page found for component

Re: Changing Link string conditionally?

2008-06-01 Thread Michael Allan
Erik van Oosten wrote: The idea is to put a span inside the a, and then attach a Label to the span. Fearing a span-demic in my code, I came up with this: http://zelea.com/project/votorola/g/servlet/BookmarkablePageLinkX.java

RE: maven deployment..?

2008-06-01 Thread Brill Pappin
Because deployment happens to a staging or production server, I simply set the jvm startup params with -Dwicket.configuration=deployment. I also have a small block in my Application instance that turns params on and off depending on the mode as well, so for instance I can have tags stripped etc.

how to do i18n of javascript file with Wicket?

2008-06-01 Thread Quan Zhou
My application's supposed to support both English,Simpilify Chinese,Traditional Chinese,and even Vietnamese. The great I18N feature of Wicket helps me solve many i18n problems. The only remains is how to do i18n of javascript. Due to the initial design, we put some of messages in the .js file,like

Re: Feedback message related problem--info,debug etc take string arguments which is not very flexible

2008-06-01 Thread Erik van Oosten
Hi, Atul, That sounds like a reasonable request to me (I am no core member). Its best to open a new issue in Wicket's jira, preferably with a patch attached. Regards, Erik. atul singh wrote: Hi, I see that only error() feedback takes a serializabel message. This allows me to pass any

Re: Changing Link string conditionally?

2008-06-01 Thread Erik van Oosten
Michael Allan wrote: Fearing a span-demic in my code, I came up with this:... There's probably a more elegant way to code it, though. Neh, that is a very common approach ;) Erik. - To unsubscribe, e-mail: [EMAIL

Re: How to access properties files outside of Wicket components?

2008-06-01 Thread Erik van Oosten
You should the other getResource*() methods, those on Class: http://java.sun.com/javase/6/docs/api/java/lang/Class.html#getResourceAsStream(java.lang.String) Regards, Erik. Michael Mehrle wrote: Right now I had to resort to the solution below, but I would very much like to know the

Re: how to do i18n of javascript file with Wicket?

2008-06-01 Thread Erik van Oosten
We use approach 1. We do not pull messages from Wicket resources, they are just static in the file. The link to the correct js file is however created by a dynamic component that uses the current Locale. You could go with approach 2, but to me it sounds like a lot of work. Regards, Erik.