custom tag.
1. I set up in a bean LabelValueBean object in a Vector
2. pass it back to form and try to create a html:selec
This part should display a combo box with options, but
it just does not work. It does not display anything.
Html code is as follows:
html:select style=font-size: 10px
. I set up in a bean LabelValueBean object in a Vector
2. pass it back to form and try to create a html:selec
This part should display a combo box with options, but
it just does not work. It does not display anything.
Html code is as follows:
html:select style=font-size: 10px
Collection getCardOptions()
{
Vector creditCardOptions = new Vector();
creditCardOptions.add(new LabelValueBean(MasterCard, mc));
creditCardOptions.add(new LabelValueBean(Visa, visa));
creditCardOptions.add(new LabelValueBean(American Express, amex));
creditCardOptions.add(new LabelValueBean(Discover
Hi,
I have problems with optionsCollection, when used with html:select
custom tag.
1. I set up in a bean LabelValueBean object in a Vector
2. pass it back to form and try to create a html:selec
This part should display a combo box with options, but
it just does not work. It does not display
=totalNumOfPagesCollection
/
/html:select
mySelectValue should be a property on your form bean.
hth,
Hubert
--- Timo_Tjäder [EMAIL PROTECTED] wrote:
Hi,
I have problems with optionsCollection, when used with html:select
custom tag.
1. I set up in a bean LabelValueBean object
--- Timo_Tjäder [EMAIL PROTECTED] wrote:
Hi,
I have problems with optionsCollection, when used with html:select
custom tag.
1. I set up in a bean LabelValueBean object in a Vector
2. pass it back to form and try to create a html:selec
This part should display a combo box with options
in a bean LabelValueBean object in a Vector
2. pass it back to form and try to create a html:selec
This part should display a combo box with options, but
it just does not work. It does not display anything.
Html code is as follows:
html:select style=font-size: 10px; property=goTo size=1
thank you for all your useful input!!! you guys are brilliant!!
[EMAIL PROTECTED]
09/24/03 04:12 PM
Please respond to Struts Users Mailing List
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:LabelValueBean - 3 fields?
Hi, is it possible
Hi, is it possible to store 3 fields in LabelValueBean instead of 2?
i.e. value, label description?
thanx!
= = = = = = = = = == = = = = = == = = = = = = = == = = = = = == = = = =
This transmittal and any attachments may contain confidential, privileged or sensitive
information
List
Subject: LabelValueBean - 3 fields?
Hi, is it possible to store 3 fields in LabelValueBean
instead of 2?
i.e. value, label description?
thanx!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Yes,
For that you need to extend the LabelValueBean and add one more variable
know as description and write setter and getter method.
Thanks
Nazeer
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:13 PM
To: Struts Users
--- [EMAIL PROTECTED] wrote:
Hi, is it possible to store 3 fields in LabelValueBean instead of 2?
i.e. value, label description?
You could subclass LabelValueBean and add the description field.
David
__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web
If you need a class that stores 10 Strings, you should be using an array
instead of 10 different variables.
David
--- Varun Garg [EMAIL PROTECTED] wrote:
I created a StringsClass with upto 10 variables.
package com.xxx.valueobjects;
import java.io.Serializable;
import
At 4:12 PM -0400 9/24/03, [EMAIL PROTECTED] wrote:
Hi, is it possible to store 3 fields in LabelValueBean instead of 2?
i.e. value, label description?
You could subclass LabelValueBean... (or just write your own bean
with whatever properties you like!)
Actually, in Struts 1.1 LabelValueBean
It is easier to use this class for Display purposes
just like the LabelValueBean.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 3:23 PM
To: Struts Users Mailing List
Subject: RE: LabelValueBean - 3 fields?
If you need a class
Why not just add it to a Collection of Strings?
-Tim
-Original Message-
From: Varun Garg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 4:19 PM
To: [EMAIL PROTECTED]
Subject: RE: LabelValueBean - 3 fields?
I created a StringsClass with upto 10 variables.
package
--- Varun Garg [EMAIL PROTECTED] wrote:
It is easier to use this class for Display purposes
just like the LabelValueBean.
The implementation of your class needs to be completely rewritten to use
an array of Strings instead of individual variables. The current
implementation is a maintenance
According to several sources (book and Internet) you should be able to use
the LabelValueBean to represent the value and label pair used for a set of
checkboxes. Unfortunately, none of them actually show the ActionForm methods
which seem to be relevant as at the moment I can't get it to work
-
From: Martin Naskovski [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Friday, June 13, 2003 8:46 PM
Subject: new LabelValueBean(nbsp + obj.getName(), obj.getValue()) is not
working
When my LabelValueBean which I construct as:
lvb = new LabelValueBean(nbsp
When my LabelValueBean which I construct as:
lvb = new LabelValueBean(nbsp + obj.getName(), obj.getValue());
when it gets displayed, it translates the into amp; and what comes out
is, literally nbsp, when in fact I wanted spaces :).
Does anyone know how to specify a nbsp; for the Label value
Can someone provide me a simple example of utilizing the LabelValueBean
class with html:multibox, the example provided on husted.com and in Struts
in Action book, doesn't utilize it, though states that you can. I just need
a small guidance on how to utilize it with html:multibox
Thanks.
Ilya
I have the following code in my jsp page for a form.
logic:iterate id=curInstallation name=theinstallations
bean:write name=curInstallation property=theInstallation /
html:select name=curInstallation property=theChoice
html:option value=ALLALL/html:option
html:option
Hi,
I am trying to populate a select dropdown using the LabelValueBean .I have
seen some examples but am unable to find them .Could some one provide me
with the links to the earlier mails or sample example.
thanks,
Kavitha
the .do into the real adress of your Action and
ActionForm files.
If you don't got them, it won't work.
Hope this helps you as much as it helped me. :-)
cya,
marcus
[EMAIL PROTECTED] schrieb:
Hi,
I am trying to populate a select dropdown using the LabelValueBean .I have
seen some examples
Hi,
html:select property=wanLinks size=1
html:options collection=wanLinkOptions property=value
labelProperty=label/
/html:select
The code above works but I don't see any values from my 'LabelValueBean'
displayed eventhough it is in application context scope. The 'dropdown' is
empty
Hi,
is your wanLinkOptions a collection of ''LabelValueBean' beans stored in
sme scope
Deepank
- Original Message -
From: Mohan Radhakrishnan [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, October 09, 2002 3:46 PM
Subject: LabelValueBean
Hi
Hi,
Yes. But I see empty 'option' tags being created. The bean is in
application scope.
bye,
Mohan
-Original Message-
From: deepank [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 6:45 PM
To: Struts Users Mailing List
Subject: Re: LabelValueBean
Hi,
is your
Subject: RE: LabelValueBean
Hi,
Yes. But I see empty 'option' tags being created. The bean is in
application scope.
bye,
Mohan
-Original Message-
From: deepank [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 6:45 PM
To: Struts Users Mailing List
Subject: Re
Hi,
I am usign struts1.0.2, I saw in the 1.0.2 release notes
http://jakarta.apache.org/struts/doc-1.0.2/release-notes-1.0.1.html that
LabelValueBean is available. But it is not included in struts.jar, and in
the release notes of 1.1.b
http://jakarta.apache.org/struts/userGuide/release-notes-1.1
On Fri, 5 Jul 2002, Javier Muguruza wrote:
Date: Fri, 5 Jul 2002 19:56:59 +0200
From: Javier Muguruza [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: LabelValueBean is 1.0.2 or 1.1b?
Hi,
I am usign
The LabelValueBean is really a simple class; it's probably almost as
easy to write one yourself as it is to move the compiled class from
one JAR to another.
However, yes, it would probably work to just copy the
LabelValueBean.class file between jars. Note that, otherwise, it's
generally
I'm getting a deserialization error in Tomcat during a reinit pointing
to LabelValueBean. Checking out the current CVS source, I note that it
doesn't implement Serializable. Is there a reason why it doesn't
implement this?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED
Hello,
I was trying to take Mr. Husted's subscription example
and create an array to hold multiple instances:
%
java.util.ArrayList list = new
java.util.ArrayList();
list.add(new
com.hfa.register.LabelValueBean(address,
address));
%
Might sound like a simple question, but how can i
output
33 matches
Mail list logo