horizontal format for an xforms repeat

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

horizontal format for an xforms repeat

Andrew Bailey
Hello

I am using the 3.7beta of xforms and I have the following code and
want the repeat to be horizontal
<xf:repeat id="entryRepeat" bind="entry" xf:appearance="minimal" >
<xf:output bind="entryContent" mediatype="text/html"/>
</xf:repeat>

Im not sure the minimal appearance is supposed to be supported or not
on a repeat.

However it gives me
<div id="repeat-begin-entryRepeat" class="xforms-repeat-begin-end"></div>
<div class="xforms-repeat-delimiter"></div>
<div id="xforms-element-43·1" class="xforms-control xforms-output
xforms-mediatype-text-html xforms-mediatype-text
xforms-repeat-selected-item-1">
<span>Test1</span>
</div>
<div class="xforms-repeat-delimiter"></div>
...

What I would like is:

<span>Test1</span><span>Test2</span>

I know I could use css to do the trick but was wondering if there was
a standard way in xforms to do that
I thought xf:appearance="minimal" was logical to format the repeat as
a row but its not working.

Also why are there:
<div id="repeat-begin-entryRepeat" class="xforms-repeat-begin-end"></div>
<div class="xforms-repeat-delimiter"></div>
what purpose do they serve.

Thanks in advance

Andy Bailey


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: horizontal format for an xforms repeat

Erik Bruchez
Administrator
The XForms does not specify a particular behavior for  
appearance="minimal" on xforms:repeat, and we don't implement this  
appearance either. At the moment, CSS is your best bet.

The delimiters you are seeing help the client update the DOM when  
iterations are added or removed.

-Erik

On Feb 18, 2009, at 9:41 AM, Andrew Bailey wrote:

> Hello
>
> I am using the 3.7beta of xforms and I have the following code and
> want the repeat to be horizontal
> <xf:repeat id="entryRepeat" bind="entry" xf:appearance="minimal" >
> <xf:output bind="entryContent" mediatype="text/html"/>
> </xf:repeat>
>
> Im not sure the minimal appearance is supposed to be supported or not
> on a repeat.
>
> However it gives me
> <div id="repeat-begin-entryRepeat" class="xforms-repeat-begin-end"></
> div>
> <div class="xforms-repeat-delimiter"></div>
> <div id="xforms-element-43·1" class="xforms-control xforms-output
> xforms-mediatype-text-html xforms-mediatype-text
> xforms-repeat-selected-item-1">
> <span>Test1</span>
> </div>
> <div class="xforms-repeat-delimiter"></div>
> ...
>
> What I would like is:
>
> <span>Test1</span><span>Test2</span>
>
> I know I could use css to do the trick but was wondering if there was
> a standard way in xforms to do that
> I thought xf:appearance="minimal" was logical to format the repeat as
> a row but its not working.
>
> Also why are there:
> <div id="repeat-begin-entryRepeat" class="xforms-repeat-begin-end"></
> div>
> <div class="xforms-repeat-delimiter"></div>
> what purpose do they serve.
>
> Thanks in advance
>
> Andy Bailey
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: horizontal format for an xforms repeat

Andrew Bailey
Erik,

Thanks for the super fast reply.

By the way I really like the new features in 3.7
Keep up the good work!

Andy Bailey


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws