bob,

I saw that you updated the site avoka to version 2.2.0.
but when trying to access the link
http://www.avoka.com/click-examples/introduction/advanced-form.htm, the form
arrives
open so that gives a javascript error alert.

2010/5/25 Bob Schellink <[email protected]>

> Good catch Pablo, I've checked in the fix. AdvancedForm's Select control is
> populated through a
> DataProvider which is returning a list of Strings, instead of a list of
> Options. In Release
> candidate 1 (which is the version of the live examples) this restriction
> was not in place yet, which
> is why the examples are working.
>
> Kind regards
>
> Bob
>
>
> On 26/05/2010 04:48, Pablo Borges wrote:
> > to make the deployment of clickexamples.war and try to access via the
> > menu item Advanced Form. is returning the following error below
> >
> > Select Message option class not instance of Option or OptionGroup:
> > java.lang.String
> >
> > java.lang.IllegalArgumentException: Select option class not instance of
> > Option or OptionGroup: java.lang.String
> > at org.apache.click.control.Select.render (Select.java: 998)
> > at org.apache.click.control.FieldSet.renderFields (FieldSet.java: 1173)
> > at org.apache.click.control.FieldSet.render (FieldSet.java: 928)
> > at org.apache.click.control.Form.renderControls (Form.java: 2475)
> > at org.apache.click.control.Form.renderFields (Form.java: 2409)
> > at org.apache.click.control.Form.render (Form.java: 2220)
> > at org.apache.click.control.AbstractContainer.toString
> > (AbstractContainer.java: 362)
> > at org.apache.velocity.runtime.parser.node.ASTReference.render
> > (ASTReference.java: 393)
> > at org.apache.velocity.runtime.parser.node.SimpleNode.render
> > (SimpleNode.java: 336)
> > at org.apache.velocity.runtime.directive.Parse.render (Parse.java: 263)
> > at org.apache.velocity.runtime.parser.node.ASTDirective.render
> > (ASTDirective.java: 175)
> > at org.apache.velocity.runtime.parser.node.SimpleNode.render
> > (SimpleNode.java: 336)
> >
> > Page
> > Classname org.apache.click.examples.page.introduction.AdvancedForm
> > Path / introduction / advanced-form.htm
> >
> > Funny that if I access the link
> > http://www.avoka.com/click-examples/introduction/advanced-form.htm the
> > error does not appear.
> >
> > Thank you and congratulations on the framework
>
>

Reply via email to