Hi

In an editwizard I try to show a "virtual" field previewURL for an object of
type Webpagina.  Here's what I've done :

 - Added the field in the builder XML, with type virtual
 - Created a builder class with a getValue() method which returns the
calulated value
 - In the editwizard xmls
        * in the load action, added
        <field name="previewurl"></field>
        * in the form-schema
        <field name="previewurl" ftype="data"><prompt>Preview</prompt></field>

That all works fine, but only for existing Webpaginas.  When I try to create
a new one, I get the error :
org.mmbase.applications.editwizard.WizardException: The field with name
'previewurl' does not exist.
        at
org.mmbase.applications.editwizard.Wizard.createPreHtmlForm(Wizard.java:854)
        at org.mmbase.applications.editwizard.Wizard.createPreHtml(Wizard.java:661)
        at org.mmbase.applications.editwizard.Wizard.getPreForm(Wizard.java:245)
        at org.mmbase.applications.editwizard.Wizard.writeHtmlForm(Wizard.java:467)
        at org.apache.jsp.wizard_jsp._jspService(wizard_jsp.java:562)

What am I doing wrong? Does anyone have a clue?

I tried to add something like <field name="previewurl">empty</field> to the
create action with no success.

I am using MMBase 1.6.4

Toon Nevelsteen
Lesire Software Engineering
http://www.lesire.com
Tel: +32 16 301673
Fax: +32 16 299726


Reply via email to