> Ronald Wildenberg <[EMAIL PROTECTED]> wrote:
> > I'd like to remove the 'new' button from my wizard and
> > just show the search stuff. I have an object from which
> > I do not wish to create new items, just add items that
> > already exist.
> >
> >
> >    <command name="startwizard" inline="true" 
> >             wizardname="config/urls/urls"
> >             objectnumber="new">
> >        <prompt>Nieuw</prompt>
> >    </command>
> 
> Remove this startwizard command. I think that should work?
> 

This does not work. The 'new' button still shows and now clicking
on it results in the following stacktrace (partially):

org.mmbase.applications.editwizard.WizardException: Could not find action
(add or create) to add a item to list with id f_1
   at
org.mmbase.applications.editwizard.Wizard.addListItem(Wizard.java:2206)
   at
org.mmbase.applications.editwizard.Wizard.processCommand(Wizard.java:2090)
   at
org.mmbase.applications.editwizard.Wizard.processCommands(Wizard.java:1857)
   at
org.mmbase.applications.editwizard.Wizard.processRequest(Wizard.java:464)
   at
org.apache.jsp.mmbase.edit.wizard.jsp.wizard_jsp._jspService(wizard_jsp.java
:454)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at ...


For reference, my list now looks like below. Removing the
<field ftype="startwizard" .../> also does not solve the problem.
There is still a 'new' button and the same exception occurs.

<list role="posrel" destination="urls" minoccurs="0"
      maxoccurs="*" ordertype="number">
   <title>Link</title>
   <item>
      <field ftype="data" name="name"/>
      <field ftype="startwizard" wizardname="config/urls/urls"/>
   </item>

   <command name="search" nodepath="urls" age="-1" fields="name,">
      <prompt>Zoek urls</prompt>
      <search-filter>
         <name>Naam bevat</name>
         <search-fields>[name]</search-fields>
      </search-filter>
   </command>

   <action type="create">
      <relation destinationtype="urls" role="posrel">
      <field name="pos">{sum(//[EMAIL PROTECTED]'posrel' and
@lastitem='true']/[EMAIL PROTECTED]'pos'])+{$pos}}</field>
      </relation>
   </action>
</list>


Thanks for any further tips,
Ronald Wildenberg

Reply via email to