Re: [Wicket-user] label - input

2007-06-13 Thread Pieter Cogghe
The panel is part of the form, but only needs to access one property of MyModel. The rest is handled by other components of the form. The compoundPropertyModel is passed through like this: MyForm form = new MyForm("form", ); Then within MyForm, the panel is added. I also want to reuse the panel f

Re: [Wicket-user] label - input

2007-06-13 Thread Gregory Maes
Where do you use a CompoundPropertyModel? For your problem you have several solutions. Here is 2 of them : 1) - With the CompoundPropertyModel class MyModel { private String text; public MyModel(String text) { this.text = text; } public String getText(){ return text; } pu

Re: [Wicket-user] label - input

2007-06-13 Thread Pieter Cogghe
Thanks for the responses, I ran into trouble when using a panel. Somehow I can't get my model property associated with the textfield in the panel. class MyModel { (...) public String getText(){ return text; } (...) } My panel (simplified) class MyPanel extends Panel{ public MyPa

Re: [Wicket-user] label - input

2007-06-13 Thread Jean-Baptiste Quenot
* Pieter Cogghe: > Hi, > > (I'm new to Wicket and relatively new to Java so beware of stupid > questions and bad code) > I've got a form with a text input. I want it rendered like this: > > > (...) > > Name > > > (...) > > > I want to write my own component, so I only have to write this

Re: [Wicket-user] label - input

2007-06-12 Thread Huergo Perez
SimpleFormComponentLabel seems to work for things like input fields, etc. It however does not seem to work for radio buttons because a Radio button in Wicket is not a FormComponent... Pieter Cogghe wrote: > I've found SimpleFormComponentLabel in the api, which wasn't listed in > the component re

Re: [Wicket-user] label - input

2007-06-12 Thread Pieter Cogghe
I've found SimpleFormComponentLabel in the api, which wasn't listed in the component reference. With this I get (more or less) what I want. 2007/6/12, Pieter Cogghe <[EMAIL PROTECTED]>: > Hi, > > (I'm new to Wicket and relatively new to Java so beware of stupid > questions and bad code) > I've got

[Wicket-user] label - input

2007-06-12 Thread Pieter Cogghe
Hi, (I'm new to Wicket and relatively new to Java so beware of stupid questions and bad code) I've got a form with a text input. I want it rendered like this: (...) Name (...) I want to write my own component, so I only have to write this template html-code: (...) (...) The jav