Hi Andrew,
yeah, sorry, you have to explictly cast it :

Form model = (Form)fi.getModel();

Simone

Andrew Madu wrote:

 Simone,

Form form = fi.getModel();


this incorrect as I get a 'Type mismatch: cannot convert from widget to form' error. What is the issue here?:

            FormInstance fi = new FormInstance("forms/register.xml");
            fi.show("register1.xml", new VarMap()
                    .add("msg",Registermsg)
                    .add("newOrderReg2",neworderreg2));
Form model = fi.getModel();

many thanks

Andrew



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



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

Reply via email to