cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <g...@tuffmail.com>
Subject Re: Determining invisible state in JXTemplates
Date Tue, 27 May 2008 22:15:01 GMT
Kamal Bhatt pisze:
> Robin Wyles wrote:
>> Hi,
>>
>> Maybe try:
>>
>> ${form.getChild('validity_work').getState().equals(WidgetState.INVISIBLE)} 
>>
> Nope, sorry.
> 
> I have tried to do this:
> 
>    <jx:set var="invisible" 
> value="#{org.apache.cocoon.forms.formmodel.WidgetState.stateForName('invisible')}"/>

> 
>    <jx:out value="${invisible}"/>
>    !!<jx:out value="${form.getChild('invisibleField').getState()}"/>!!
>    ??<jx:out value="${form.getChild('validity_work').getState()}"/>??
> 
> What I get is this:
> 
> WidgetState[invisible=1] !!!! ????
> 
> Now, validity_work is the field I want to test, invisibleField is the 
> field that I am using to test invibility. Neither prints a value, yet, I 
> can test both. This is starting to look like a bug.

That's interesting. Have you tried whether

   <jx:out value="${form.getChild('invisibleField')}"/>

Returns something?

If it does, I guess only debugging may help. You can find some tips here:
http://cocoon.apache.org/1301_1_1.html
http://article.gmane.org/gmane.text.xml.cocoon.devel/77857

-- 
Grzegorz Kossakowski (catching the train...)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message