cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beatejung <beatej...@online.de>
Subject Re: FW: How to find a widget type
Date Thu, 22 Sep 2005 15:25:36 GMT
Am Donnerstag, 22. September 2005 16:08 schrieb 
vijayaraghavan.subramaniam@wipro.com:
> Hi,
>
> How do I find if the widget is a repeater or not in flowscript.
> I have something like foll: -
>
> var wid1 = new Form();
>
> var wid2 = wid.lookupWidget("tag1/tag2");
>
> How do i find if wid2 is a repeater widget?

you may try this:

var className=wid2.getClass().getName();
if(className=="org.apache.cocoon.forms.formmodel.Repeater"){
....
}

hth
beate
-- 
ώνών

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


Mime
View raw message