This is already a wish in the bugtracker
http://www.mmbase.org/development/bugtracker/fullview.jsp?portal=199&page=54
6&base=%2Fdevelopment%2Fbugtracker&bugreport=918

The javascript code in the searchlist.js could do the trick. The only hard
thing is to get the value of the maxoccurance. IIRC it is not available in
the xml passed to the xsl.

Nico


> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Namens Ted Vinke
> Verzonden: vrijdag 5 november 2004 10:16
> Aan: [EMAIL PROTECTED]
> Onderwerp: maxconstraint="1" workaround
> 
> 
> Although in my editwizard
> 
> <list role="posrel" destination="somebuilder" maxoccurs="1">
> 
> is specified, the popup searchwindow still makes it possible 
> to select multiple items from the searchwindow.
> 
> In that case the editwizard does disable to Save link 
> correctly, but is there a way to have the searchwindow limit 
> the amount of selection to just only one, the value I set the 
> maxoccurs-attribute to? Could be confusing to the user if he 
> selects more items from the list than the maxoccurs attrib 
> says and doesn't understand why he can't save the editwizard...
> 
> Maybe I'm overlooking some attribute I could use?
> 
> --
> Met vriendelijke groet,
> Ted Vinke
> 
> First8 BV
> Groenestraat 294
> 6531 JC Nijmegen
> [EMAIL PROTECTED]
> 


Reply via email to