struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mouratidis, Georg" <GMourati...@heiler.com>
Subject RE: dynamically disable a input field.
Date Tue, 10 Dec 2002 11:57:58 GMT
Hi edgar,

i had never used struts-EL. does this work with struts 1.02 or do i have to
user 1.1? Where can i found any sources/infos

thx

-----Original Message-----
From: Edgar P. Dollin [mailto:edgar@blue-moose.net]
Sent: Dienstag, 10. Dezember 2002 13:03
To: 'Struts Users Mailing List'
Subject: RE: dynamically disable a input field.


A couple of choices:

	Actually put the <html:text> inside the logic and use an else
clause.

	Use struts-EL for the disabled attribute calculation
${OrganizationSession.isProvider==0?"disabled":"enabled"}

Edgar

-----Original Message-----
From: Mouratidis, Georg [mailto:GMouratidis@heiler.com] 
Sent: Tuesday, December 10, 2002 6:40 AM
To: 'struts-user@jakarta.apache.org'
Subject: dynamically disable a input field.


Greetings

i want to disable some input elements but only if a bean property is not
set:

e.g.

<logic:equal name="OrganizationSession" property="isProvider" value="0">
	
	here i want to set a variable to be used than in each input
element.
      e.g. something like disabled="disabled"
      
</logic:equal>

in the inputs than i would like to use the above setted variable.
somthing like :

<html:text name="CatalogProfileDataForm" property="catalogID"
disabled="value of the above variable named disabled"/>

is this possible? can somebody help? any other suggestions?

thx in advance


mit freundlichen Grüßen 

Georg XL. Mouratidis 
Web Application Developer 

Heiler|Software AG
Mittlerer Pfad 9 
D-70499 Stuttgart 

Tel: 0711-139 84-265
Fax: 0711-866 63 01 
Email: gmouratidis@heiler.com 

Connecting Buyer and Supplier
http://www.heiler.com 

--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message