RE: How to make readonly in Select Box

2004-02-20 Thread Randy Dillon
Seems to me that this violates good UI design.  I mean, what purpose does a Select Box 
have if you can't select anything.  If I rememember my UI theory correctly, the 
selections should be displayed in a form such as static text that makes it clear that 
they aren't changeable.

I might use a table (single column to mimic the layout of the Select) and display 
static text in it for the selected items.


:-> -Original Message-
:-> From: Srinivas Kusunam [mailto:[EMAIL PROTECTED]
:-> Sent: Friday, February 20, 2004 10:11 AM
:-> To: [EMAIL PROTECTED]
:-> Subject: Re: How to make readonly in Select Box
:-> 
:-> 
:-> 
:-> We are achieving the same using disabled property. First 
:-> you need to check for the mode if it is edit then make your 
:-> select box is disabled with the selected value (you might 
:-> be having this already selected value in some where 
:-> session.). If you need to retrieve the value in this 
:-> edit mode retrieve it from the already stored value (session).
:-> 
:-> otherwise as meeru suggested display it in a readonly textbox.
:-> 
:-> Thanks,
:-> Srini
:-> 
:-> 
:-> >>> [EMAIL PROTECTED] 02/20/04 09:38AM >>>
:-> Hi,
:-> 
:-> I want to make readyonly in Select Box. If i gave 
:-> readonly="true".
:-> There is no property
:-> called readonly..What i have to do for that one
:-> 
:-> 
:->   
:-> Marketing
:->   
:->   
:-> Human Resource
:->   
:->   
:-> Administration
:->   
:-> 
:-> 
:-> Bye
:-> Ram
:-> 
:-> 
:-> 
:-> -
:-> 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]
:-> 
:-> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to make readonly in Select Box

2004-02-20 Thread Srinivas Kusunam

We are achieving the same using disabled property. First you need to check for the 
mode if it is edit then make your select box is disabled with the selected value (you 
might be having this already selected value in some where session.). If you need 
to retrieve the value in this edit mode retrieve it from the already stored value 
(session).

otherwise as meeru suggested display it in a readonly textbox.

Thanks,
Srini


>>> [EMAIL PROTECTED] 02/20/04 09:38AM >>>
Hi,

I want to make readyonly in Select Box. If i gave readonly="true".
There is no property
called readonly..What i have to do for that one


  
Marketing
  
  
Human Resource
  
  
Administration
  


Bye
Ram


-
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]



RE: How to make readonly in Select Box

2004-02-20 Thread Ameer Ahmed
Use logic tags, and check if in edit mode then display the value using bean write, 
else display the drop down

Ramachandran <[EMAIL PROTECTED]> wrote:If i make it as disable means, i was not able 
to retrieve the value na.

For me now, If a user goes for a Edit Page, what he chooses while add should
be displayed but in readonly mode...

So shall i can use disable here?

-Original Message-
From: Nguyen, Hien [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 9:14 PM
To: 'Struts Users Mailing List'
Subject: RE: How to make readonly in Select Box


But select has 'disabled' as an attribute
(http://www.w3.org/TR/html401/interact/forms.html#h-17.6) so I think you can
use 'disabled' to make it read-only.

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 10:39 AM
To: 'Struts Users Mailing List'
Subject: RE: How to make readonly in Select Box


> I want to make readyonly in Select Box. If i gave
> readonly="true". There is no property called readonly..What i
> have to do for that one

HTML Select groups don't have a "readonly" property, that's why the Struts
tag doesn't have it.

--
Tim Slattery
[EMAIL PROTECTED]


-
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]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

RE: How to make readonly in Select Box

2004-02-20 Thread Ramachandran
If i make it as disable means, i was not able to retrieve the value na.

For me now, If a user goes for a Edit Page, what he chooses while add should
be displayed but in readonly mode...

So shall  i can use disable here?

-Original Message-
From: Nguyen, Hien [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 9:14 PM
To: 'Struts Users Mailing List'
Subject: RE: How to make readonly in Select Box


But select has 'disabled' as an attribute
(http://www.w3.org/TR/html401/interact/forms.html#h-17.6) so I think you can
use 'disabled' to make it read-only.

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 10:39 AM
To: 'Struts Users Mailing List'
Subject: RE: How to make readonly in Select Box


> I want to make readyonly in Select Box. If i gave
> readonly="true". There is no property called readonly..What i
> have to do for that one

HTML Select groups don't have a "readonly" property, that's why the Struts
tag  doesn't have it.

--
Tim Slattery
[EMAIL PROTECTED]


-
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]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to make readonly in Select Box

2004-02-20 Thread Ramachandran
Then what i have to do it for making as read only.

For example in Edit page they should not able to chhose the drop down. But
add page thay can...

Help please

Bye
Ram

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 9:09 PM
To: 'Struts Users Mailing List'
Subject: RE: How to make readonly in Select Box


> I want to make readyonly in Select Box. If i gave
> readonly="true". There is no property called readonly..What i
> have to do for that one

HTML Select groups don't have a "readonly" property, that's why the Struts
tag  doesn't have it.

--
Tim Slattery
[EMAIL PROTECTED]


-
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]



Re: How to make readonly in Select Box

2004-02-20 Thread Geeta Ramani
Hi Ramachandran:

So maybe you could force the issue by using Javascript: write an onChange
method to ensure the selection is always what you want it to be..? (I assume
by a "read-only" drop-down you mean you want what you have selected to not be
deselected by the user..?)

Geeta

"Slattery, Tim - BLS" wrote:

> > I want to make readyonly in Select Box. If i gave
> > readonly="true". There is no property called readonly..What i
> > have to do for that one
>
> HTML Select groups don't have a "readonly" property, that's why the Struts
> tag  doesn't have it.
>
> --
> Tim Slattery
> [EMAIL PROTECTED]
>
> -
> 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]



Re: How to make readonly in Select Box

2004-02-20 Thread Srinivas Kusunam

As you said, there is no property called "readonly" for select box why don't you try 
with "disabled" of course you need to be careful when you submit the page and try to 
retrieve the value from disabled select box.


>>> [EMAIL PROTECTED] 02/20/04 09:38AM >>>
Hi,

I want to make readyonly in Select Box. If i gave readonly="true".
There is no property
called readonly..What i have to do for that one


  
Marketing
  
  
Human Resource
  
  
Administration
  


Bye
Ram


-
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]



RE: How to make readonly in Select Box

2004-02-20 Thread Nguyen, Hien
But select has 'disabled' as an attribute
(http://www.w3.org/TR/html401/interact/forms.html#h-17.6) so I think you can
use 'disabled' to make it read-only.

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 20, 2004 10:39 AM
To: 'Struts Users Mailing List'
Subject: RE: How to make readonly in Select Box


> I want to make readyonly in Select Box. If i gave
> readonly="true". There is no property called readonly..What i 
> have to do for that one

HTML Select groups don't have a "readonly" property, that's why the Struts
tag  doesn't have it.

--
Tim Slattery
[EMAIL PROTECTED]


-
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]



RE: How to make readonly in Select Box

2004-02-20 Thread Slattery, Tim - BLS
> I want to make readyonly in Select Box. If i gave 
> readonly="true". There is no property called readonly..What i 
> have to do for that one

HTML Select groups don't have a "readonly" property, that's why the Struts
tag  doesn't have it.

--
Tim Slattery
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]