Re: [Webwork-devel] isMethod patch
Brought to you by:
baldree,
rickardoberg
|
From: Bogdan G. <bo...@bl...> - 2002-04-05 02:29:53
|
> That have already been fixed, checked cvs.
>
> Regards,
> Low
ok. I updated my cvs. sorry.
But I have a new one :)
When I am trying to create a textarea like this one, I always get a read
only textarea.
<ui:textarea label="'Comments'" name="'comments'" readonly="false" cols="30"
rows="8"/>
I looked at the textarea.jsp from template and seems that the test is always
true if the readonly attribute is present.
<webwork:property value="parameters['readonly']">
<webwork:if
test="{parameters['readonly']}">READONLY</webwork:if>
</webwork:property>
If the test is modified to
<webwork:property value="parameters['readonly']">
<webwork:if test="{parameters['readonly']} ==
true">READONLY</webwork:if>
</webwork:property>
then everything works ok. This applies to other controls, too.
Regards,
Bogdan
|