jfandly
|
Posted: 01/14/2004, 7:23 AM |
|
How can I disable control in servlet ?
In asp I can do by :
HTMLTemplate.SetVar "@user_state","disabled"
and in html:
{user_state}
|
|
|
peterr
Posts: 5971
|
Posted: 01/14/2004, 12:05 PM |
|
You may want to post Java questions to:
YesSoftware Forums -> CodeCharge Studio -> Java
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
as
|
Posted: 01/15/2004, 9:18 AM |
|
Użytkownik "jfandly" <jfandly@forum.codecharge> napisał w wiadomo¶ci
news:240055f5e85a94@news.codecharge.com...
> How can I disable control in servlet ?
>
> In asp I can do by :
> HTMLTemplate.SetVar "@user_state","disabled"
> and in html:
> {user_state}
control or custom template?
control:
....getControl(controlName).setVisible(false);
custom template:
for example
....
String c = currentPath.concat("/Document");
....
if(!Tools.isEmpty(dateDis) || !Tools.isEmpty(typeDis)){
t.setVar(c.concat("/Disbursement/@dateDisbursement"), dateDis);
t.setVar(c.concat("/Disbursement/@typeDisbursement"), typeDis);
t.parse(c.concat("/Disbursement"));
t.hideBlock(c.concat("/DisbursementEmpty"));
}else{
t.parse(c.concat("/DisbursementEmpty"));
t.hideBlock(c.concat("/Disbursement"));
}
|
|
|
|