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

2008-06-01 Thread Johan Compagner
Didnt you encounter the big thread (at least 100 messages) where we discussed/voted going to 1.4? (and cool down dev on 1.3) On 6/1/08, 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 t

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

2008-06-01 Thread Stephan Koch
1) Generifying* Wicket [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) How strongly do you feel about your choice above? [ ] Whatever

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

2008-06-01 Thread Johan Compagner
In 1.3.4 this error shouldnt happen, it is just ignored On 6/1/08, atul singh <[EMAIL PROTECTED]> wrote: > 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 l

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.

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 standard

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 PROTECT

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 java

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: 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.

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 http://zelea.com/project/votorola/_/javadoc/votorola/g/servle

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: 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 st

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 { properties.load(Thread.currentThread().getContextClassLoad

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 f

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 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 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 gi

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 Nota

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? Than

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 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 strong

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 fee

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 be

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 from your IConverter definition. I'm using Wicket 1.3.4. Thoughts? Michael -Original Message- From: Jeremy Thomerson [mailto:[EMAIL PROTE

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: 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" o

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 IMo

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 data-structure/mod

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 t

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 b

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 co

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

2008-06-01 Thread Jeremy Thomerson
Found the method: public final Component 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: users@wicket.apac

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. Unfortuna

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) approac

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 t

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 i

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 c

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: Changi

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 > s

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 c

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

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. Ca

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 the

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

2008-06-01 Thread atul singh
Hi, I see that only error() feedback takes a serializabel message. This allows me to pass any java object as message and implement custom filtering of messages by components. but info,debug etc take a string and so do not help me in that kind of filtering. Actually what we have is a TabbedWizard th

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 su

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, Ju

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

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: 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

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: http:/

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 ov

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 termin

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