You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by Pablo Borges <pa...@gmail.com> on 2010/05/25 20:48:10 UTC
error in the advanced form
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
Re: error in the advanced form
Posted by Pablo Borges <pa...@gmail.com>.
bob,
sorry, but the problem was the cache.
;)
2010/5/26 Bob Schellink <sa...@gmail.com>
> On 27/05/2010 00:18, Pablo Borges wrote:
> >
> > 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.
>
>
> I'm not sure what you mean by "the form arrives open"? What JS error do you
> receive and which
> browser and version are you using? Is it a caching issue? (hit ctrl+F5).
>
> Bob
>
Re: error in the advanced form
Posted by Bob Schellink <sa...@gmail.com>.
On 27/05/2010 00:18, Pablo Borges wrote:
>
> 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.
I'm not sure what you mean by "the form arrives open"? What JS error do you receive and which
browser and version are you using? Is it a caching issue? (hit ctrl+F5).
Bob
Re: error in the advanced form
Posted by Pablo Borges <pa...@gmail.com>.
are on every screen that has the calendar
2010/5/26 Pablo Borges <pa...@gmail.com>
> 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 <sa...@gmail.com>
>
> 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
>>
>>
>
Re: error in the advanced form
Posted by Pablo Borges <pa...@gmail.com>.
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 <sa...@gmail.com>
> 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
>
>
Re: error in the advanced form
Posted by Bob Schellink <sa...@gmail.com>.
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
Re: error in the advanced form
Posted by "Gilberto C. Andrade" <gi...@gmail.com>.
I confirm this problem!
apache-tomcat-5.5.27
java-1.6.0-openjdk
opensuse 11.2
On Tue, May 25, 2010 at 3:48 PM, Pablo Borges <pa...@gmail.com> 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.
That because the live example is running the 2.2.0-RC1 version.
Regards,
Gilberto