Hi, Maybe try:
${form.getChild('validity_work').getState().equals (WidgetState.INVISIBLE)}
Also, if you don't have it already you will need to have: importClass(org.apache.cocoon.forms.formmodel.WidgetState) at the top of the flowscript that calls your JXTemplate. Robin On 27 May 2008, at 09:41, Kamal Bhatt wrote:
Hi,I would like to determine if a particular field is invisible in JXTemplates, unfortunately, if I do ${form.getChild ('validity_work').getState() == WidgetState.INVISIBLE}, it doesn't work.I have to setup an invisible field and compare the state against that field. Is there a way I can achieve this test without adding a pointless field or comparing an arbitary field?Cheers. -- Kamal Bhatt --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
smime.p7s
Description: S/MIME cryptographic signature
