[Wicket-user] New Suggestion: Form components as labels

2006-04-19 Thread Ali Zaid
Hi Guys; I have been working with the RC1 and I found it wonderful, today I came across something that make me think about new thing to add to wicket (unless it is there and I don't know) The thing is, I want to create some Information sheet (I always do ;)), and I need to show info, and give

Re: [Wicket-user] New Suggestion: Form components as labels

2006-04-19 Thread Igor Vaynberg
but you can do this yourself by creating a panel that swaps between a label and a textfield. i see no need for this to be part of the core textfield component, maybe a set of these swappable panels can go into extensions. another alternative is to add a behavior that morphs the tag in

Re: [Wicket-user] New Suggestion: Form components as labels

2006-04-19 Thread Timo Stamm
Ali, that's a nice idea. But I think it has some disadvantages: The TextInput component would have to change the entire tag. So it would have to be responsible not only for input tags, but for the static representation as a span or div as well. I am not a friend of putting that much

Re: [Wicket-user] New Suggestion: Form components as labels

2006-04-19 Thread Eelco Hillenius
I agree that this shouldn't be part of the core components. It shouldn't be too hard to write your own components that do this though (or as Igor suggested you might look into behaviors for this); that would be a one-time undertaking for your whole project. Do a little bit of extra work now, and