struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shirishchandra.sakh...@ubs.com
Subject RE: dynamically disable a input field.
Date Tue, 10 Dec 2002 12:05:15 GMT
If u dont want to wory about netscape then i think u can go the other way.And i 
Am talking about netscape 4.77.
So in the other case u can use logic equla in just one place as u said.
<%!String isDisbled="false"%>
<logic:equal name="OrganizationSession" property="isProvider" value="0">	
	<%isDisbled= "false";%>      
</logic:equal>

and then in ur html:text just use this
<html:text name="" property="" disbled="<%=isDisbled%>">
then u dont need to do this 25 times as u said.



-----Original Message-----
From: GMouratidis [mailto:GMouratidis@heiler.com]
Sent: Tuesday, December 10, 2002 12:56 PM
To: struts-user
Cc: GMouratidis
Subject: RE: dynamically disable a input field.


the disadvange is that i have to do it for 25 inputfields.

25x <logic:equal>...</logic:equal>
25x <logic:notEqual>...</logic:notEqual>

is this the only way you know?

thx
georg

-----Original Message-----
From: shirishchandra.sakhare@ubs.com
[mailto:shirishchandra.sakhare@ubs.com]
Sent: Dienstag, 10. Dezember 2002 12:51
To: struts-user@jakarta.apache.org
Subject: RE: dynamically disable a input field.


Hi,
I had similar functionality.But I will advice u not to use <html:text 
disable="true"/> because it does not work with Netscape.
So instead i used logic:equal tag and bean write.

<logic:equal name="OrganizationSession" property="isProvider" value="true">	
	<html:text name="" property=""/>      
</logic:equal>
<logic:notEqual name="OrganizationSession" property="isProvider" 
value="true">	
     <bean:write name="" property=""/>
	//Also use html:hidden if u stil want to pass the parameter in request 
	 <html:hidden name="" property=""/> 
</logic:notEqual>

hope this helps..
regards,
Shirish
-----Original Message-----
From: GMouratidis [mailto:GMouratidis@heiler.com]
Sent: Tuesday, December 10, 2002 12:40 PM
To: struts-user
Cc: GMouratidis
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>



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