xforms:repeat without xforms:input under Orbeon4/Chrome

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

xforms:repeat without xforms:input under Orbeon4/Chrome

bgawel
1) I downloaded a how-to for repeat-insert from https://raw.github.com/orbeon/orbeon-forms/master/src/resources/apps/xforms-sandbox/samples/howto/repeat-insert.xhtml
and run with Orbeon 4.0.0.m7.201207162324 PE / Chrome 16.0.912.75 m – it works as expected.

2) I edited the code and changed xforms:input rendered by xforms:repeat to xforms:output, so:

from

            <xforms:repeat nodeset="fruit" id="fruit-repeat">
                <xforms:output value="position()"/>
                <xforms:input ref="."/>
                <br/>
            </xforms:repeat>

to

            <xforms:repeat nodeset="fruit" id="fruit-repeat">
                <xforms:output value="position()"/>
                <xforms:output ref="."/>
                <br/>
            </xforms:repeat>

Result:
It does not work correctly under Chrome 16:
- click Insert: At the end -> inserted into instance, rendered
- click Insert: At the end -> inserted into instance (displayed by Inspector), NOT rendered
- click Insert: At the end -> inserted into instance, NOT rendered but now the previous one is rendered.

It works fine under Firefox and IE.

Any idea what causes the problem under Chrome?

--
Bartek Gawel
Reply | Threaded
Open this post in threaded view
|

Re: xforms:repeat without xforms:input under Orbeon4/Chrome

Alessandro  Vernet
Administrator
Hi Bartek,

I have been able to reproduce this, but the changes Orbeon Forms does to the DOM seem to be correct, and this looks like a WebKit bug to me. It is easy to work around it by using a <div> instead of a <br> in your HTML, which you would most likely do anyway. Also, I don't have the time right now to create a simple JavaScript-only reproducible test case so I can file a bug against WebKit, so I think I'll leave this as it is for now.

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet