Jian,
I changed the "*" to "all".
This is my new definition...
ui.Form(uid: "myForm", clocator: [id: "myForm"]) {
Container(uid: "myDetails", clocator: [tag: "div", id:
"myDetails"]) {
Table(uid: "myTable", clocator: [tag: "table", id: "myTable"]) {
CheckBox(uid: "row:all, column:1", clocator: [tag: "td/input",
type: "checkbox"])
}
}
}
The error related to "*" is now gone from my error message. However,
I'm still getting the following error...
line 1:0 no viable alternative at input 'row'
java.lang.NullPointerException: Cannot invoke method getId() on null
object
at
org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:
77)
at
org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:
45)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
40)
at
org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:
17)
at
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
40)
at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:
54)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
121)
at
org.telluriumsource.ui.builder.UiObjectBuilder.internBuild(UiObjectBuilder.groovy:
86)
>From your reply, it sounds like I shouldn't be getting this error. Do
you agree?
Thanks,
Rob
On May 14, 9:53 am, Jian Fang <[email protected]> wrote:
> Hi Rob,
>
> The reason is that 0.7.0 included UDL implementation and the uid should use
> UDL syntax.
> For example, in your case, your UI module should be defined as
>
> ui.Form(uid: "myForm", clocator: [id: "myForm"]) {
> Container(uid: "myDetails", clocator: [tag: "div", id:
> "myDetails"]) {
> Table(uid: "myTable", clocator: [tag: "table", id: "myTable"]) {
> CheckBox(uid: "{row:all, column:1}", clocator: [tag: "td/input",
> type: "checkbox"])
> }
> }
>
> }
>
> More details
> here:http://code.google.com/p/aost/wiki/Tellurium070Update#Tellurium_UID_D...
>
> Thanks,
>
> Jian
>
>
>
> On Fri, May 14, 2010 at 10:46 AM, Rob Breidecker <[email protected]> wrote:
> > I have just updated Tellurium from 0.7.0-rc2 to 0.7.0. I'm now getting
> > a number of errors in my tests that are similar to this one.
>
> > This is my definition...
> > ui.Form(uid: "myForm", clocator: [id: "myForm"]) {
> > Container(uid: "myDetails", clocator: [tag: "div", id:
> > "myDetails"]) {
> > Table(uid: "myTable", clocator: [tag: "table", id: "myTable"]) {
> > CheckBox(uid: "row:all, column:1}", clocator: [tag: "td/input",
> > type: "checkbox"])
> > }
> > }
> > }
>
> > When I run my test I get this error...
> > line 1:4 no viable alternative at character '*'
> > line 1:0 no viable alternative at input 'row'
> > java.lang.NullPointerException: Cannot invoke method getId() on null
> > object
> > at
> > org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:
> > 77)
> > at
>
> > org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:
> > 45)
> > at
>
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
> > 40)
> > at
> > org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:
> > 17)
> > at
>
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:
> > 40)
> > at
>
> > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:
> > 54)
> > at
>
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:
> > 121)
> > at
>
> > org.telluriumsource.ui.builder.UiObjectBuilder.internBuild(UiObjectBuilder.groovy:
> > 86)
>
> > I also get similar errors when using the word "all" on a List
> > component. I read another post from about a month ago that said there
> > are various words that are reserved and can't be used. If so, how do I
> > specify Tables and Lists?
>
> > Best Regards,
> > Rob
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "tellurium-users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<tellurium-users%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/tellurium-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "tellurium-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group
> athttp://groups.google.com/group/tellurium-users?hl=en.
--
You received this message because you are subscribed to the Google Groups
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tellurium-users?hl=en.