Here is my script: Note that the --- line below is just for debugging and I'll remove it soon.
function enable_recurrence_rwp(on) { ---- ${display_rwp} ----------- <if expression="'${display_rwp}' == 'true'"> <![CDATA[ ${formname}.${rwp_monday.name}.disabled = !on; ${formname}.${rwp_tuesday.name}.disabled = !on; ${formname}.${rwp_wednesday.name}.disabled = !on; ${formname}.${rwp_thursday.name}.disabled = !on; ${formname}.${rwp_friday.name}.disabled = !on; ${formname}.${rwp_saturday.name}.disabled = !on; ${formname}.${rwp_sunday.name}.disabled = !on; ]]> </if> } I invoke the script with display_rwp set to the string 'true'. Here's what gets rendered function enable_recurrence_rwp(on) { ---- true ----------- } Any idea why the stuff inside the CDATA block is not being rendered? I don't seem to understand how the boolean expression in the expression attribute of the <if> tag works. Madhavan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]