By seeing what is used by what is in projects.xml is generally more helpful
then the whole code, but I can guess that the issue is with your data. You
likely have
<projects>
<project><name>foo</name></project>
<project><name>bar</name></project>
</projects>

The way you have defined the radio group's datapath you are replicating the
radiogroup not the radiobutton
Corrected snippet is
<radiogroup datapath="projects:/projects">
      <radiobutton datapath="project/name/text()" />
</radiogroup>

Note that the repeating element "project" is now on the radiobutton and not
the group.

Z

On 5/1/07, Jeremy Cowgar <[EMAIL PROTECTED]> wrote:

That didn't quite work. I had the same results. The whole code looks
like this:

<canvas height="400" width="800" bgcolor="#EAEAEA">
        <dataset name="todos" request="true" src="http:todos.xml" />
        <dataset name="projects" request="true" src="http:projects.xml" />

        <view width="${parent.width}" height="${parent.height}">
                <simplelayout axis="x" spacing="0"/>
                <tabslider width="175" height="${parent.height}">
                        <tabelement text="Contexts" selected="true">
                                <radiogroup>
                                        <radiobutton text="ALL"/>
                                        <radiobutton text="@computer"/>
                                        <radiobutton text="@errands that
have to be done sooner that
later"/>
                                        <radiobutton text="@family"/>
                                        <radiobutton text="@home"/>
                                        <radiobutton text="@outdoors"/>
                                </radiogroup>
                        </tabelement >
                        <tabelement text="Projects">
                                <radiogroup
datapath="projects:/projects/project">
                                        <simplelayout />
                                        <radiobutton
datapath="name/text()" />
                                </radiogroup>
                        </tabelement >
                </tabslider>
                <grid width="650" height="200" datapath="todos:/todos"
contentdatapath="todo">
                        <gridcolumn width="225" resizable="true">Project
                                <text datapath="project/text()"/>
                        </gridcolumn>
                        <gridcolumn width="275" resizable="true">Name
                                <text datapath="name/text()"/>
                        </gridcolumn>
                        <gridcolumn width="100" resizable="true">Due
                                <text datapath="due/text()"/>
                        </gridcolumn>
                </grid>
        </view>
</canvas>

The data is a static XML file.

Jeremy

On May 1, 2007, at 3:37 PM, Elliot Winard wrote:

> Try adding a <simplelayout/> to the <radiogroup/>
> -e
>
>
> On Tue, May 1, 2007 at  3:08 PM, Jeremy Cowgar wrote:
>
>> What is wrong with this? When I run my app with this in it, the
>> radio buttons all appear on the same line.
>>
>> <radiogroup datapath="projects:/projects/project">
>>      <radiobutton datapath="name/text()" />
>> </radiogroup>
>>
>> Jeremy
>>
>
>
>
> ---=---===-------
> Elliot Winard
> Sr. Software Engineer
> Laszlo Studios
> ---=---===-------


Reply via email to