Hello,

What about using the diabled parameter of TextField itself? This can be the value of "readOnly".

Ivano wrote:
Had the same problem.
I opted to substitute readonly fields with Insert components using a Conditional (or better yet an If / Else combination). Or you could implement your own subclass of TextField that checks for a formal parameter readonly="true/false" and writes the output attribute only when needed (just like the Checkbox component).

If there's a neat solution other than this I'm interested, too.

Bye bye

Ivano Pagano.

yosifun wrote:

Hi,

I have a form with for loop.
the for loop generates a list of textfields.

Some of the fields are readonly and some are not.
I know if a field is readonly by using ognl function that return true or false.

however the readonly attribute is not set as readonly=true or readonly=false. It sets as follows : if readonly appears, the textfield is readonly otherwise it is readable.

Not readable : Readable :
My problem is how to "write" is the span while running the loop readonly if needed and don't write readonly if not needed.


-------------------- m2f --------------------

Sent from www.TapestryForums.com

Read this topic online here: <<topic_link>>

http://www.tapestryforums.com/viewtopic.php?p=13727#13727

-------------------- m2f --------------------




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


__________ NOD32 1.1275 (20051103) Information __________

This message was checked by NOD32 antivirus system.
http://www.eset.com





--
.........................................

Derick Fernando
Lead Architect
[EMAIL PROTECTED]
(323) 314-9593
http://www.thelabllc.com

Content is for intended recipient only.
Copyright 2001-2005, The Lab, LLC

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

Reply via email to