At a second thought, we can simply change the Div object to be a
container type object.

Will do that.

On Mar 31, 5:32 pm, Jonathan Share <[email protected]> wrote:
> Thanks for the quick reply, this was indeed my problem.
>
> On 31 March 2010 23:21, Jian Fang <[email protected]> wrote:
>
> > We should really remove the Div object since it always causes confusions.
> > Div is not a container
> > type. Since Tellurium objects are abstract objects, Container can be used
> > for this purpose and there
> > is really no need to define a separate Div object. Please use the Container
> > object to replace the Div object
> > and add tag attribute to the clocator.
>
> > The latest code has the i18nBundle in the base UI object and you shouldn't
> > get any problem for it.
>
> >     public UiObject(){
> >       i18nBundle = Environment.instance.myResourceBundle()
> >     }
>
> > Thanks,
>
> > Jian
>
> > On Wed, Mar 31, 2010 at 5:12 PM, Jonathan Share <[email protected]> wrote:
>
> >> Hi,
>
> >> I know I've seen this error message before but I don't remember how I
> >> fixed it. I have the following model
>
> >> ui.Form(uid: "nameAllocation", clocator: [name: "nameAllocation"]) {
> >>            Div(uid: "outbound", clocator: [id: "ferryWrapper1"]) {
> >>                Repeat(uid: "cabin", clocator: [tag: "div", 'class':
> >> "segment"]) {
> >>                    List(uid: "passenger", clocator: [tag: "ul"]) {
> >>                        Container(uid: "all", clocator: [tag: "li"]) {
> >>                            Selector(uid: "select", clocator: [:])
> >>                        }
> >>                    }
> >>                }
> >>            }
> >> }
>
> >> And when I call (with appropriate values for all paramters);
>
> >> selectByValue
> >> "nameAllocation.${leg}.cabin[${cabinNumber}].passenger[${passengerIndex}].select",
> >> passengerSequence.toString()
>
> >> I get the following error;
>
> >> groovy.lang.MissingPropertyException: No such property: i18nBundle for
> >> class: org.telluriumsource.ui.object.Div
> >>        at
> >> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:49)
> >>        at
> >> org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(GetEffectivePogoPropertySite.java:71)
> >>        at
> >> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:241)
> >>        at
> >> org.telluriumsource.ui.object.UiObject.walkTo(UiObject.groovy:297)
> >>        at org.telluriumsource.ui.object.UiObject$walkTo.call(Unknown
> >> Source)
> >>        at
> >> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
> >>        at org.telluriumsource.ui.object.Container$walkTo.call(Unknown
> >> Source)
> >>        at
> >> org.telluriumsource.ui.object.Container.walkTo(Container.groovy:184)
> >>        at org.telluriumsource.ui.object.Container$walkTo.call(Unknown
> >> Source)
> >>        at
> >> org.telluriumsource.dsl.UiDslParser.walkTo(UiDslParser.groovy:73)
> >>        at org.telluriumsource.dsl.UiDslParser$walkTo.call(Unknown Source)
> >>        at
> >> org.telluriumsource.dsl.BaseDslContext.walkToWithException(BaseDslContext.groovy:147)
> >>        at
> >> org.telluriumsource.dsl.BaseDslContext$walkToWithException.callCurrent(Unknown
> >> Source)
> >>        at
> >> org.telluriumsource.dsl.BaseDslContext.selectByValue(BaseDslContext.groovy:288)
>
> >> Can anyone see what I'm doing wrong here?
>
> >> Thanks in advance
>
> >> Jonathan
>
> >> --
> >> 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.
>
> > --
> > 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.

-- 
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.

Reply via email to