Re: Label and textfiled component
thanks guys. I was working on someone else's code and thought I might need that. We did use FormComponents but eventually I didn't have to associate these components. What we did is: create an Enum that holds the keys (for the markup), type (field / area) and enabled status. In the init method, we run on all values of this enum, for each one we created a TextField (or TextArea) and added it and the label to the form. According to the enabled status, we have set the styling class dynamically. Thanks On Sun, Mar 23, 2008 at 11:34 PM, Maurice Marrink [EMAIL PROTECTED] wrote: If you want to build your own FormComponentWithLabel component you probably want to use FormComponentPanel. Maurice On Sun, Mar 23, 2008 at 6:50 PM, James Carman [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 1:05 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: see formcomponentlabel And, if you wanted to bake your own FormComponentWithLabel component, that's a great idea. However, some folks might display a component's label and the component itself completely differently (some might use a table for instance) than the way you do it. So, I don't know if it would be a good candidate for a cross-project, reusable component. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/
Label and textfiled component
Hello, Has anyone made a component that is made out of a Label and a TextField. I am looking for something like that. I have a situation as follows: If a TextField is supposed to be read-only, I am adding an AttributeModifier with a class name for styling. I want that the label associated to this field will also get an AttributeModifier. So the situation is: associating a label with a textfield. Hope I was clear -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/
Re: Label and textfiled component
see formcomponentlabel -igor On Sun, Mar 23, 2008 at 4:38 AM, Eyal Golan [EMAIL PROTECTED] wrote: Hello, Has anyone made a component that is made out of a Label and a TextField. I am looking for something like that. I have a situation as follows: If a TextField is supposed to be read-only, I am adding an AttributeModifier with a class name for styling. I want that the label associated to this field will also get an AttributeModifier. So the situation is: associating a label with a textfield. Hope I was clear -- Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Label and textfiled component
On Sun, Mar 23, 2008 at 1:05 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: see formcomponentlabel And, if you wanted to bake your own FormComponentWithLabel component, that's a great idea. However, some folks might display a component's label and the component itself completely differently (some might use a table for instance) than the way you do it. So, I don't know if it would be a good candidate for a cross-project, reusable component. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Label and textfiled component
If you want to build your own FormComponentWithLabel component you probably want to use FormComponentPanel. Maurice On Sun, Mar 23, 2008 at 6:50 PM, James Carman [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 1:05 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: see formcomponentlabel And, if you wanted to bake your own FormComponentWithLabel component, that's a great idea. However, some folks might display a component's label and the component itself completely differently (some might use a table for instance) than the way you do it. So, I don't know if it would be a good candidate for a cross-project, reusable component. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]