Hi,

I have this definition file :

 <fd:widgets>
   <fd:class id="widgetClass">
     <fd:widgets>
       <fd:union id="union" default="" case="type">
        <fd:datatype base="string"/>
        <fd:widgets>
          <fd:struct id="simpleList">
            <fd:widgets>
              <fd:multivaluefield id="list">
               <fd:label>just another List </fd:label>
               <fd:datatype base="string"/>
               <fd:selection-list type="flow-jxpath" list-path="list"
               value-path="value" label-path="label"/>
              </fd:multivaluefield>
            </fd:widgets>
          </fd:struct>
          <fd:struct id="complexList">
            <fd:widgets>
              <fd:multivaluefield id="list">
               <fd:label>just a complex List </fd:label>
               <fd:datatype base="string"/>
               <fd:selection-list type="flow-jxpath" list-path="list"
               value-path="value" label-path="label"/>
              </fd:multivaluefield>
              <fd:repeater id="lists">
               <fd:widgets>
                 <fd:new id="widgetClass"/>
               </fd:widgets>
              </fd:repeater>
            </fd:widgets>
          </fd:struct>
        </fd:widgets>
       </fd:union>
     </fd:widgets>
   </fd:class>

I would like to fill it with values from a bean, in a flowcsript so I did ;

var model = form.getModel();
var p = form.lookupWidget("widgetClass");
var f = p.lookupWidgetWidget("union").getChild("simpleList").lookupWidget
("list"); /* error here because p is null*/
 f.setSelectionList( c, "listId", "label" );

but then I have a "cannot convert nul to a n object" error (p is null)
I took a look at the cocooon API but I really don't know how to deal with
class, union, ans struct in flowscript (or java).

any help greatly appreciated,
Stephane



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

Reply via email to