> If you want the option with a '' value to be selected, set the corresponding
> property in your bean to ''.
I can't because the type is Boolean.
I was wanting to display the empty option if the value returned is null.
-
To unsu
To: Struts Users Mailing List
Subject: Re: html:select - can't display default option
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Matthew Hegarty wrote:
| Hi all
|
| I am using , and trying to get the drop-down to default
to a Boolean value in a bean, ie true, false, or blank if the bean
Hi all
I am using , and trying to get the drop-down to default to a Boolean
value in a bean, ie true, false, or blank if the bean is null.
My bean (MyBean) contains the method getMyValue() which returns a Boolean object.
In the code snippet below, the c:out statement confirms that the value of
Cracked it.
I cut and paste your code snippet in, and confirmed the body of 'messagesPresent' is
being output.
So maybe the message was being output, and it just happened to be a blank string.
This appears to be the case - as soon as I put the correct message into
'application.properties' (the de
ionMessages.
-----Original Message-
From: Matthew Hegarty [mailto:[EMAIL PROTECTED]
Sent: 19 April 2004 15:49
To: '[EMAIL PROTECTED]'
Subject: ActionMessages won't display
Hello
I am hoping someone can help with an ActionMessages problem
I am setting ActionMessages in my act
Hello
I am hoping someone can help with an ActionMessages problem
I am setting ActionMessages in my action, but they are not appearing in the page.
The action code is:
if(showDetails.size() == 0 ) {
LOGGER.debug("no ShowDetails found");
ActionMessages messages = new ActionMes
6 matches
Mail list logo