xform:group reference behavior Varies Between Browsers in Orbeon 3.6

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

xform:group reference behavior Varies Between Browsers in Orbeon 3.6

Keegan
I was developing a form using "Orbeon Forms 3.6.0.200712061930"  and found some differences in behavior for the same form, but in different browsers.  

The functionality I have added displays a table of data for a specific instance ('tasks')/task.  Then by selecting a row in the table an xform:group is loaded with the data from the selected row.  The group section has the following tag: <xforms:group ref="instance('tasks')/task[index('tasks-repeat')]">.  tasks-repeat is the id of the xforms:repeat.

In Safari 3, Safari 4 beta and IE7 this works, but when run in Firefox it doesn't work.

I have stripped it down to the basics for easy copy/pasting and testing:


<html xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <style type="text/css"> .tasks-table { border: solid #000 1px;border-collapse: collapse; border-color: black; border: background-color: #FFFFFF } .task-table { border-collapse: collapse; } .task-td { border: solid #000 1px;background-color: #CCCCCC} .xforms-label { font-weight: bold } </style>        <title>Tasks Demo</title>
        <xforms:model id="test">
            <xforms:instance id="tasks">
                <tasks xmlns="">
                    <task>
                        <activity>Activity One</activity>
                    </task>
                    <task>
                        <activity>Activity Two</activity>
                    </task>
                    <task>
                        <activity>Activity Three</activity>
                    </task>
                </tasks>
            </xforms:instance>
        </xforms:model>
    </head>
    <body>
                                                            <xforms:repeat nodeset="instance('tasks')/task" id="tasks-repeat">
                                                                </xforms:repeat>
       
Activity
                        <xforms:output ref="activity">
                            <xforms:label/>
                        </xforms:output>
                   
        <hr/>
        <xforms:group ref="instance('tasks')/task[index('tasks-repeat')]">
                                                                           
                        <xforms:input ref="activity">
                            <xforms:label class="task-label">Activity:</xforms:label>
                        </xforms:input>
                   
        </xforms:group>
    </body>
</html>
Reply | Threaded
Open this post in threaded view
|

Re: xform:group reference behavior Varies Between Browsers in Orbeon 3.6

Erik Bruchez
Administrator
Keegan,

This seems to work just fine with recent builds. There is a known  
issue with Firefox 3 and Orbeon Forms 3.6, which was fixed a long time  
ago. Maybe that's what you are hitting.

-Erik

On Feb 27, 2009, at 11:47 AM, Keegan wrote:

>
> I was developing a form using "Orbeon Forms 3.6.0.200712061930"  and  
> found
> some differences in behavior for the same form, but in different  
> browsers.
>
> The functionality I have added displays a table of data for a specific
> instance ('tasks')/task.  Then by selecting a row in the table an
> xform:group is loaded with the data from the selected row.  The group
> section has the following tag: <xforms:group
> ref="instance('tasks')/task[index('tasks-repeat')]">.  tasks-repeat  
> is the
> id of the xforms:repeat.
>
> In Safari 3, Safari 4 beta and IE7 this works, but when run in  
> Firefox it
> doesn't work.
>
> I have stripped it down to the basics for easy copy/pasting and  
> testing:
>
>
> <html xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:xforms="http://www.w3.org/2002/xforms"
> xmlns:xhtml="http://www.w3.org/1999/xhtml"
> xmlns:ev="http://www.w3.org/2001/xml-events"
> xmlns="http://www.w3.org/1999/xhtml">
>    <head>
>        <style type="text/css">
> .tasks-table { border: solid #000 1px;border-collapse: collapse;
> border-color: black; border: background-color: #FFFFFF }
> .task-table { border-collapse: collapse; }
> .task-td { border: solid #000 1px;background-color: #CCCCCC}
> .xforms-label { font-weight: bold }
>
> </style>
>        <title>Tasks Demo</title>
>        <xforms:model id="test">
>            <xforms:instance id="tasks">
>                <tasks xmlns="">
>                    <task>
>                        <activity>Activity One</activity>
>                    </task>
>                    <task>
>                        <activity>Activity Two</activity>
>                    </task>
>                    <task>
>                        <activity>Activity Three</activity>
>                    </task>
>                </tasks>
>            </xforms:instance>
>        </xforms:model>
>    </head>
>    <body>
>        <table class="tasks-table">
>            <tr>
>                <th class="task-td">Activity</th>
>            </tr>
>            <xforms:repeat nodeset="instance('tasks')/task"
> id="tasks-repeat">
>                <tr class="form-td">
>                    <td>
>                        <xforms:output ref="activity">
>                            <xforms:label/>
>                        </xforms:output>
>                    </td>
>                </tr>
>            </xforms:repeat>
>        </table>
>        <hr/>
>        <xforms:group ref="instance('tasks')/task[index('tasks-
> repeat')]">
>            <table>
>                <tr>
>                    <td>
>                        <xforms:input ref="activity">
>                            <xforms:label
> class="task-label">Activity:</xforms:label>
>                        </xforms:input>
>                    </td>
>                </tr>
>            </table>
>        </xforms:group>
>    </body>
> </html>
>
> --
> View this message in context: http://www.nabble.com/xform%3Agroup-reference-behavior-Varies-Between-Browsers-in-Orbeon-3.6-tp22253101p22253101.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.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
--
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: xform:group reference behavior Varies Between Browsers in Orbeon 3.6

Alessandro Vernet
Administrator
Keegan,

On Feb 27, 2009, at 12:17 PM, Erik Bruchez wrote:

> This seems to work just fine with recent builds. There is a known  
> issue with Firefox 3 and Orbeon Forms 3.6, which was fixed a long  
> time ago. Maybe that's what you are hitting.

Adding to what Erik said, if you want to test this with a nightly  
build, you can get one from:

http://forge.objectweb.org/nightlybuilds/ops/ops/orbeon.war

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



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