Issue with radio-button and internationlization

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

Issue with radio-button and internationlization

jean-francois.rizand
This issue is reproducible on Orbeon 3.8 and 3.9

Here are the steps:

Step 1: Add a radio-button field (unnamed)
Step 2: Add 2 items: I1 and I2 - Fill the labels in only, not the values. Close
the dialog via Apply button. The 2 items appear in the radio-button field area.
Step 3: Add a language for the form (ex: français). The added language becomes
the current language for the form. The 2 items still appear in the radio-button
field.
Setp 4: Edit the radio-button items again and enter a thrid item (label I3, no
value again). Apply the edition. Now there are 3 items for the radio-button.
The current language is still the added one.
Step 5: Switch to the former language (i.e. english in my case). There are 3
itenms again for the radio-button field BUT the third items has no name (the
corresponding radio-button is visible but it has no label)
Step 6: Edit the radio-buttons again
---> BANG: an error dialog opens and
        - it says: "A sequence of more than one item is not allowed as the
first argument of string ()(,)"
        - the details are:
        - Nothing works: no button (Test, save or close), no controls. The same
error dialog always pops up.

Following is the xhtml code resulting from this test:
------------------------------------------------------------ start of code
<xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
            xmlns:xforms="http://www.w3.org/2002/xforms"
            xmlns:xs="http://www.w3.org/2001/XMLSchema"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:ev="http://www.w3.org/2001/xml-events"
            xmlns:xi="http://www.w3.org/2001/XInclude"
            xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
            xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
            xmlns:exforms="http://www.exforms.org/exf/1-0"
            xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
            xmlns:saxon="http://saxon.sf.net/"
            xmlns:sql="http://orbeon.org/oxf/xml/sql"
            xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <xhtml:head>
        <xhtml:title>Untitled Form</xhtml:title>
        <xforms:model id="fr-form-model">

           
            <xforms:instance id="fr-form-instance">
                <form>
                    <section-1>
                        <control-1/>
                        <control-2/>
                    </section-1>
                </form>
            </xforms:instance>

           
            <xforms:bind id="fr-form-binds"
nodeset="instance('fr-form-instance')">
                <xforms:bind id="section-1-bind" nodeset="section-1">
                    <xforms:bind id="control-1-bind" name="control-1"
nodeset="control-1"/>
                    <xforms:bind id="control-2-bind" nodeset="control-2"
name="control-2"/>
                </xforms:bind>
            </xforms:bind>

           
            <xforms:instance id="fr-form-metadata" xxforms:readonly="true">
                <metadata>
                    <application-name>rpm</application-name>
                    <form-name>testJF</form-name>
                    <title xml:lang="en">Untitled Form</title>
                    <description xml:lang="en"/>
                    <title xml:lang="fr">Untitled Form</title>
                    <description xml:lang="fr"/>
                    <author/>
                    <logo mediatype="" filename="" size=""/>
                </metadata>
            </xforms:instance>

           
            <xforms:instance id="fr-form-attachments">
                <attachments>
                    <css mediatype="text/css" filename="" size=""/>
                    <pdf mediatype="application/pdf" filename="" size=""/>
                </attachments>
            </xforms:instance>

           
           
            <xforms:instance id="fr-form-resources" xxforms:readonly="false">
                <resources>
                    <resource xml:lang="en">
                        <section-1>
                            <label>Untitled Section</label>
                            <help/>
                        </section-1>
                        <control-1>
                            <label/>
                            <hint/>
                            <help/>
                            <alert/>
                        </control-1>
                        <control-2>
                            <label/>
                            <hint/>
                            <help/>
                            <alert/>
                            <item>
                                <label>I1</label>
                                <label>I2</label>
                                <value/>
                            </item>
                            <item>
                                <label>I1</label>
                                <label>I2</label>
                                <value/>
                            </item>
                            <item>
                                <label/>
                                <value/>
               
               
               
               
                            </item>
                        </control-2>
                    </resource>
                    <resource xml:lang="fr">
                        <section-1>
                            <label>Untitled Section</label>
                            <help/>
                        </section-1>
                        <control-1>
                            <label/>
                            <hint/>
                            <help/>
                            <alert/>
                        </control-1>
                        <control-2>
                            <label/>
                            <hint/>
                            <help/>
                            <alert/>
                            <item>
                                <label>I1</label>
                                <value/>
                            </item>
                            <item>
                                <label>I2</label>
                                <value/>
                            </item>
                            <item>
                                <label>I3</label>
                                <value/>
               
               
               
               
                            </item>
                        </control-2>
                    </resource>
                </resources>
            </xforms:instance>

           
            <xforms:instance id="fr-service-request-instance"
xxforms:exclude-result-prefixes="#all">
                <request/>
            </xforms:instance>

            <xforms:instance id="fr-service-response-instance"
xxforms:exclude-result-prefixes="#all">
                <response/>
            </xforms:instance>

        </xforms:model>
    </xhtml:head>
    <xhtml:body>
        <fr:view>
            <xforms:label ref="instance('fr-form-metadata')/title"/>
            <fr:body>
                <fr:section id="section-1-section" bind="section-1-bind">
                    <xforms:label ref="$form-resources/section-1/label"/>
                    <xforms:help ref="$form-resources/section-1/help"/>
                    <fr:grid columns="2">
                        <xhtml:tr>
                            <xhtml:td>
                                <xforms:input id="control-1-control"
bind="control-1-bind">
                                    <xforms:label
ref="$form-resources/control-1/label"/>
                                    <xforms:hint
ref="$form-resources/control-1/hint"/>
                                    <xforms:help
ref="$form-resources/control-1/help"/>
                                    <xforms:alert
ref="$fr-resources/detail/labels/alert"/>
                                </xforms:input>
                            </xhtml:td>
                            <xhtml:td>
                                <xforms:select1
xmlns:xbl="http://www.w3.org/ns/xbl"
                                               
xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
                                               
xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
                                                appearance="full"
                                                id="control-2-control"
                                                bind="control-2-bind">
                                    <xforms:label
ref="$form-resources/control-2/label"/>
                                    <xforms:hint
ref="$form-resources/control-2/hint"/>
                                    <xforms:help
ref="$form-resources/control-2/help"/>
                                    <xforms:alert
ref="$fr-resources/detail/labels/alert"/>
                                    <xforms:itemset
nodeset="$form-resources/control-2/item">
                                        <xforms:label ref="label"/>
                                        <xforms:value ref="value"/>
                                    </xforms:itemset>
                                </xforms:select1>
                            </xhtml:td>
                        </xhtml:tr>
                    </fr:grid>
                </fr:section>
            </fr:body>
        </fr:view>
    </xhtml:body>
</xhtml:html>
------------------------------------------------------------ end of code


--
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: Issue with radio-button and internationlization

jean-francois.rizand

I'M sorry I forgot to provide the details.

Here they are:

 

Form Builder

http://www.orbeon.com/orbeon/fr/orbeon/builder/new

Capture d'écran effectuée : 2012-01-26; 15:05

 

 

 

 

-----Message d'origine-----
De : [hidden email] [mailto:[hidden email]]
Envoyé : 26 janvier 2012 15:25
À : [hidden email]
Objet : [ops-users] Issue with radio-button and internationlization

 

This issue is reproducible on Orbeon 3.8 and 3.9

 

Here are the steps:

 

Step 1: Add a radio-button field (unnamed) Step 2: Add 2 items: I1 and I2 - Fill the labels in only, not the values. Close the dialog via Apply button. The 2 items appear in the radio-button field area.

Step 3: Add a language for the form (ex: français). The added language becomes the current language for the form. The 2 items still appear in the radio-button field.

Setp 4: Edit the radio-button items again and enter a thrid item (label I3, no value again). Apply the edition. Now there are 3 items for the radio-button.

The current language is still the added one.

Step 5: Switch to the former language (i.e. english in my case). There are 3 itenms again for the radio-button field BUT the third items has no name (the corresponding radio-button is visible but it has no label) Step 6: Edit the radio-buttons again

---> BANG: an error dialog opens and

      - it says: "A sequence of more than one item is not allowed as the first argument of string ()(,)"

      - the details are:

      - Nothing works: no button (Test, save or close), no controls. The same error dialog always pops up.

 

Following is the xhtml code resulting from this test:

------------------------------------------------------------ start of code <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"

          xmlns:xforms="http://www.w3.org/2002/xforms"

          xmlns:xs="http://www.w3.org/2001/XMLSchema"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xmlns:ev="http://www.w3.org/2001/xml-events"

          xmlns:xi="http://www.w3.org/2001/XInclude"

          xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"

          xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"

          xmlns:exforms="http://www.exforms.org/exf/1-0"

          xmlns:fr="http://orbeon.org/oxf/xml/form-runner"

          xmlns:saxon="http://saxon.sf.net/"

          xmlns:sql="http://orbeon.org/oxf/xml/sql"

          xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

    <xhtml:head>

      <xhtml:title>Untitled Form</xhtml:title>

      <xforms:model id="fr-form-model">

 

         

          <xforms:instance id="fr-form-instance">

            <form>

                <section-1>

                  <control-1/>

                  <control-2/>

                </section-1>

            </form>

          </xforms:instance>

 

         

          <xforms:bind id="fr-form-binds"

nodeset="instance('fr-form-instance')">

            <xforms:bind id="section-1-bind" nodeset="section-1">

                <xforms:bind id="control-1-bind" name="control-1"

nodeset="control-1"/>

                <xforms:bind id="control-2-bind" nodeset="control-2"

name="control-2"/>

            </xforms:bind>

          </xforms:bind>

 

         

          <xforms:instance id="fr-form-metadata" xxforms:readonly="true">

            <metadata>

                <application-name>rpm</application-name>

                <form-name>testJF</form-name>

                <title xml:lang="en">Untitled Form</title>

                <description xml:lang="en"/>

                <title xml:lang="fr">Untitled Form</title>

                <description xml:lang="fr"/>

                <author/>

                <logo mediatype="" filename="" size=""/>

            </metadata>

          </xforms:instance>

 

         

          <xforms:instance id="fr-form-attachments">

            <attachments>

                <css mediatype="text/css" filename="" size=""/>

                <pdf mediatype="application/pdf" filename="" size=""/>

            </attachments>

          </xforms:instance>

 

         

          

          <xforms:instance id="fr-form-resources" xxforms:readonly="false">

            <resources>

                <resource xml:lang="en">

                  <section-1>

                      <label>Untitled Section</label>

                      <help/>

                  </section-1>

                  <control-1>

                      <label/>

                      <hint/>

                      <help/>

                      <alert/>

                  </control-1>

                  <control-2>

                      <label/>

                      <hint/>

                      <help/>

                      <alert/>

                      <item>

                        <label>I1</label>

                        <label>I2</label>

                        <value/>

                      </item>

                      <item>

                        <label>I1</label>

                        <label>I2</label>

                        <value/>

                      </item>

                      <item>

                        <label/>

                        <value/>

           

           

           

           

                      </item>

                  </control-2>

                </resource>

                <resource xml:lang="fr">

                  <section-1>

                      <label>Untitled Section</label>

                      <help/>

                  </section-1>

                  <control-1>

                      <label/>

                      <hint/>

                      <help/>

                      <alert/>

                  </control-1>

                  <control-2>

                      <label/>

                      <hint/>

                      <help/>

                      <alert/>

                      <item>

                        <label>I1</label>

                        <value/>

                      </item>

                      <item>

                        <label>I2</label>

                        <value/>

                      </item>

                      <item>

                        <label>I3</label>

                        <value/>

           

           

           

           

                      </item>

                  </control-2>

                </resource>

            </resources>

          </xforms:instance>

 

         

          <xforms:instance id="fr-service-request-instance"

xxforms:exclude-result-prefixes="#all">

            <request/>

          </xforms:instance>

 

          <xforms:instance id="fr-service-response-instance"

xxforms:exclude-result-prefixes="#all">

            <response/>

          </xforms:instance>

 

      </xforms:model>

    </xhtml:head>

    <xhtml:body>

      <fr:view>

          <xforms:label ref="instance('fr-form-metadata')/title"/>

          <fr:body>

            <fr:section id="section-1-section" bind="section-1-bind">

                <xforms:label ref="$form-resources/section-1/label"/>

                <xforms:help ref="$form-resources/section-1/help"/>

                <fr:grid columns="2">

                  <xhtml:tr>

                      <xhtml:td>

                        <xforms:input id="control-1-control"

bind="control-1-bind">

                            <xforms:label

ref="$form-resources/control-1/label"/>

                            <xforms:hint

ref="$form-resources/control-1/hint"/>

                            <xforms:help

ref="$form-resources/control-1/help"/>

                            <xforms:alert

ref="$fr-resources/detail/labels/alert"/>

                        </xforms:input>

                     </xhtml:td>

                      <xhtml:td>

                        <xforms:select1

xmlns:xbl="http://www.w3.org/ns/xbl"

                                    

xmlns:fb="http://orbeon.org/oxf/xml/form-builder"

                                    

xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"

                                    appearance="full"

                                    id="control-2-control"

                                    bind="control-2-bind">

                            <xforms:label

ref="$form-resources/control-2/label"/>

                            <xforms:hint

ref="$form-resources/control-2/hint"/>

                            <xforms:help

ref="$form-resources/control-2/help"/>

                            <xforms:alert

ref="$fr-resources/detail/labels/alert"/>

                            <xforms:itemset

nodeset="$form-resources/control-2/item">

                              <xforms:label ref="label"/>

                              <xforms:value ref="value"/>

                            </xforms:itemset>

                        </xforms:select1>

                      </xhtml:td>

                  </xhtml:tr>

                </fr:grid>

            </fr:section>

          </fr:body>

      </fr:view>

    </xhtml:body>

</xhtml:html>

------------------------------------------------------------ end of code



--
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: Issue with radio-button and internationlization

Erik Bruchez
Administrator
In reply to this post by jean-francois.rizand
Jean-François,

I reproduce the problem with your form.

I notice that the builder, on step 4, incorrectly updated the labels
of the other language. If you look at the source of the form, you now
notice things like:

<item>
    <label>I1</label>
    <label>I2</label>
    <value/>
</item>

The itemset editor doesn't expect this and crashes.

Now funnily enough, we are making some changes at the moment to the
itemset editor for the next release. One change is that there will be
more constraints, including not allowing multiple identical values
(here the blank ones).

I have entered an issue to track this:

https://github.com/orbeon/orbeon-forms/issues/12

We will make sure it does not occur with the updated itemset editor.

-Erik

On Thu, Jan 26, 2012 at 12:25 PM,  <[hidden email]> wrote:

> This issue is reproducible on Orbeon 3.8 and 3.9
>
> Here are the steps:
>
> Step 1: Add a radio-button field (unnamed)
> Step 2: Add 2 items: I1 and I2 - Fill the labels in only, not the values. Close
> the dialog via Apply button. The 2 items appear in the radio-button field area.
> Step 3: Add a language for the form (ex: français). The added language becomes
> the current language for the form. The 2 items still appear in the radio-button
> field.
> Setp 4: Edit the radio-button items again and enter a thrid item (label I3, no
> value again). Apply the edition. Now there are 3 items for the radio-button.
> The current language is still the added one.
> Step 5: Switch to the former language (i.e. english in my case). There are 3
> itenms again for the radio-button field BUT the third items has no name (the
> corresponding radio-button is visible but it has no label)
> Step 6: Edit the radio-buttons again
> ---> BANG: an error dialog opens and
>        - it says: "A sequence of more than one item is not allowed as the
> first argument of string ()(,)"
>        - the details are:
>        - Nothing works: no button (Test, save or close), no controls. The same
> error dialog always pops up.
>
> Following is the xhtml code resulting from this test:
> ------------------------------------------------------------ start of code
> <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
>            xmlns:xforms="http://www.w3.org/2002/xforms"
>            xmlns:xs="http://www.w3.org/2001/XMLSchema"
>            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>            xmlns:ev="http://www.w3.org/2001/xml-events"
>            xmlns:xi="http://www.w3.org/2001/XInclude"
>            xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>            xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>            xmlns:exforms="http://www.exforms.org/exf/1-0"
>            xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
>            xmlns:saxon="http://saxon.sf.net/"
>            xmlns:sql="http://orbeon.org/oxf/xml/sql"
>            xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
>    <xhtml:head>
>        <xhtml:title>Untitled Form</xhtml:title>
>        <xforms:model id="fr-form-model">
>
>
>            <xforms:instance id="fr-form-instance">
>                <form>
>                    <section-1>
>                        <control-1/>
>                        <control-2/>
>                    </section-1>
>                </form>
>            </xforms:instance>
>
>
>            <xforms:bind id="fr-form-binds"
> nodeset="instance('fr-form-instance')">
>                <xforms:bind id="section-1-bind" nodeset="section-1">
>                    <xforms:bind id="control-1-bind" name="control-1"
> nodeset="control-1"/>
>                    <xforms:bind id="control-2-bind" nodeset="control-2"
> name="control-2"/>
>                </xforms:bind>
>            </xforms:bind>
>
>
>            <xforms:instance id="fr-form-metadata" xxforms:readonly="true">
>                <metadata>
>                    <application-name>rpm</application-name>
>                    <form-name>testJF</form-name>
>                    <title xml:lang="en">Untitled Form</title>
>                    <description xml:lang="en"/>
>                    <title xml:lang="fr">Untitled Form</title>
>                    <description xml:lang="fr"/>
>                    <author/>
>                    <logo mediatype="" filename="" size=""/>
>                </metadata>
>            </xforms:instance>
>
>
>            <xforms:instance id="fr-form-attachments">
>                <attachments>
>                    <css mediatype="text/css" filename="" size=""/>
>                    <pdf mediatype="application/pdf" filename="" size=""/>
>                </attachments>
>            </xforms:instance>
>
>
>
>            <xforms:instance id="fr-form-resources" xxforms:readonly="false">
>                <resources>
>                    <resource xml:lang="en">
>                        <section-1>
>                            <label>Untitled Section</label>
>                            <help/>
>                        </section-1>
>                        <control-1>
>                            <label/>
>                            <hint/>
>                            <help/>
>                            <alert/>
>                        </control-1>
>                        <control-2>
>                            <label/>
>                            <hint/>
>                            <help/>
>                            <alert/>
>                            <item>
>                                <label>I1</label>
>                                <label>I2</label>
>                                <value/>
>                            </item>
>                            <item>
>                                <label>I1</label>
>                                <label>I2</label>
>                                <value/>
>                            </item>
>                            <item>
>                                <label/>
>                                <value/>
>
>
>
>
>                            </item>
>                        </control-2>
>                    </resource>
>                    <resource xml:lang="fr">
>                        <section-1>
>                            <label>Untitled Section</label>
>                            <help/>
>                        </section-1>
>                        <control-1>
>                            <label/>
>                            <hint/>
>                            <help/>
>                            <alert/>
>                        </control-1>
>                        <control-2>
>                            <label/>
>                            <hint/>
>                            <help/>
>                            <alert/>
>                            <item>
>                                <label>I1</label>
>                                <value/>
>                            </item>
>                            <item>
>                                <label>I2</label>
>                                <value/>
>                            </item>
>                            <item>
>                                <label>I3</label>
>                                <value/>
>
>
>
>
>                            </item>
>                        </control-2>
>                    </resource>
>                </resources>
>            </xforms:instance>
>
>
>            <xforms:instance id="fr-service-request-instance"
> xxforms:exclude-result-prefixes="#all">
>                <request/>
>            </xforms:instance>
>
>            <xforms:instance id="fr-service-response-instance"
> xxforms:exclude-result-prefixes="#all">
>                <response/>
>            </xforms:instance>
>
>        </xforms:model>
>    </xhtml:head>
>    <xhtml:body>
>        <fr:view>
>            <xforms:label ref="instance('fr-form-metadata')/title"/>
>            <fr:body>
>                <fr:section id="section-1-section" bind="section-1-bind">
>                    <xforms:label ref="$form-resources/section-1/label"/>
>                    <xforms:help ref="$form-resources/section-1/help"/>
>                    <fr:grid columns="2">
>                        <xhtml:tr>
>                            <xhtml:td>
>                                <xforms:input id="control-1-control"
> bind="control-1-bind">
>                                    <xforms:label
> ref="$form-resources/control-1/label"/>
>                                    <xforms:hint
> ref="$form-resources/control-1/hint"/>
>                                    <xforms:help
> ref="$form-resources/control-1/help"/>
>                                    <xforms:alert
> ref="$fr-resources/detail/labels/alert"/>
>                                </xforms:input>
>                            </xhtml:td>
>                            <xhtml:td>
>                                <xforms:select1
> xmlns:xbl="http://www.w3.org/ns/xbl"
>
> xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
>
> xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
>                                                appearance="full"
>                                                id="control-2-control"
>                                                bind="control-2-bind">
>                                    <xforms:label
> ref="$form-resources/control-2/label"/>
>                                    <xforms:hint
> ref="$form-resources/control-2/hint"/>
>                                    <xforms:help
> ref="$form-resources/control-2/help"/>
>                                    <xforms:alert
> ref="$fr-resources/detail/labels/alert"/>
>                                    <xforms:itemset
> nodeset="$form-resources/control-2/item">
>                                        <xforms:label ref="label"/>
>                                        <xforms:value ref="value"/>
>                                    </xforms:itemset>
>                                </xforms:select1>
>                            </xhtml:td>
>                        </xhtml:tr>
>                    </fr:grid>
>                </fr:section>
>            </fr:body>
>        </fr:view>
>    </xhtml:body>
> </xhtml:html>
> ------------------------------------------------------------ end of code
>
>
> --
> 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
>


--
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: Issue with radio-button and internationlization

Alessandro  Vernet
Administrator
In reply to this post by jean-francois.rizand
Hi Jean-Francois,

The new editor we have been working doesn't have this problem. The
logic, dealing with i18n resources has been improved, and also now you
can't create items with an empty value. So I will be closing the issue
opened earlier by Erik.

Alex

On Thu, Jan 26, 2012 at 12:28 PM, Jean-François Rizand
<[hidden email]> wrote:

>
> I'M sorry I forgot to provide the details.
>
> Here they are:
>
>
>
> Form Builder
>
> http://www.orbeon.com/orbeon/fr/orbeon/builder/new
>
> Capture d'écran effectuée : 2012-01-26; 15:05
>
>
>
>
>
>
>
>
>
> -----Message d'origine-----
> De : [hidden email] [mailto:[hidden email]]
> Envoyé : 26 janvier 2012 15:25
> À : [hidden email]
> Objet : [ops-users] Issue with radio-button and internationlization
>
>
>
> This issue is reproducible on Orbeon 3.8 and 3.9
>
>
>
> Here are the steps:
>
>
>
> Step 1: Add a radio-button field (unnamed) Step 2: Add 2 items: I1 and I2 - Fill the labels in only, not the values. Close the dialog via Apply button. The 2 items appear in the radio-button field area.
>
> Step 3: Add a language for the form (ex: français). The added language becomes the current language for the form. The 2 items still appear in the radio-button field.
>
> Setp 4: Edit the radio-button items again and enter a thrid item (label I3, no value again). Apply the edition. Now there are 3 items for the radio-button.
>
> The current language is still the added one.
>
> Step 5: Switch to the former language (i.e. english in my case). There are 3 itenms again for the radio-button field BUT the third items has no name (the corresponding radio-button is visible but it has no label) Step 6: Edit the radio-buttons again
>
> ---> BANG: an error dialog opens and
>
>       - it says: "A sequence of more than one item is not allowed as the first argument of string ()(,)"
>
>       - the details are:
>
>       - Nothing works: no button (Test, save or close), no controls. The same error dialog always pops up.
>
>
>
> Following is the xhtml code resulting from this test:
>
> ------------------------------------------------------------ start of code <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>           xmlns:xforms="http://www.w3.org/2002/xforms"
>
>           xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
>           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>           xmlns:ev="http://www.w3.org/2001/xml-events"
>
>           xmlns:xi="http://www.w3.org/2001/XInclude"
>
>           xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>
>           xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>           xmlns:exforms="http://www.exforms.org/exf/1-0"
>
>           xmlns:fr="http://orbeon.org/oxf/xml/form-runner"
>
>           xmlns:saxon="http://saxon.sf.net/"
>
>           xmlns:sql="http://orbeon.org/oxf/xml/sql"
>
>           xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
>
>     <xhtml:head>
>
>       <xhtml:title>Untitled Form</xhtml:title>
>
>       <xforms:model id="fr-form-model">
>
>
>
>
>
>           <xforms:instance id="fr-form-instance">
>
>             <form>
>
>                 <section-1>
>
>                   <control-1/>
>
>                   <control-2/>
>
>                 </section-1>
>
>             </form>
>
>           </xforms:instance>
>
>
>
>
>
>           <xforms:bind id="fr-form-binds"
>
> nodeset="instance('fr-form-instance')">
>
>             <xforms:bind id="section-1-bind" nodeset="section-1">
>
>                 <xforms:bind id="control-1-bind" name="control-1"
>
> nodeset="control-1"/>
>
>                 <xforms:bind id="control-2-bind" nodeset="control-2"
>
> name="control-2"/>
>
>             </xforms:bind>
>
>           </xforms:bind>
>
>
>
>
>
>           <xforms:instance id="fr-form-metadata" xxforms:readonly="true">
>
>             <metadata>
>
>                 <application-name>rpm</application-name>
>
>                 <form-name>testJF</form-name>
>
>                 <title xml:lang="en">Untitled Form</title>
>
>                 <description xml:lang="en"/>
>
>                 <title xml:lang="fr">Untitled Form</title>
>
>                 <description xml:lang="fr"/>
>
>                 <author/>
>
>                 <logo mediatype="" filename="" size=""/>
>
>             </metadata>
>
>           </xforms:instance>
>
>
>
>
>
>           <xforms:instance id="fr-form-attachments">
>
>             <attachments>
>
>                 <css mediatype="text/css" filename="" size=""/>
>
>                 <pdf mediatype="application/pdf" filename="" size=""/>
>
>             </attachments>
>
>           </xforms:instance>
>
>
>
>
>
>
>
>           <xforms:instance id="fr-form-resources" xxforms:readonly="false">
>
>             <resources>
>
>                 <resource xml:lang="en">
>
>                   <section-1>
>
>                       <label>Untitled Section</label>
>
>                       <help/>
>
>                   </section-1>
>
>                   <control-1>
>
>                       <label/>
>
>                       <hint/>
>
>                       <help/>
>
>                       <alert/>
>
>                   </control-1>
>
>                   <control-2>
>
>                       <label/>
>
>                       <hint/>
>
>                       <help/>
>
>                       <alert/>
>
>                       <item>
>
>                         <label>I1</label>
>
>                         <label>I2</label>
>
>                         <value/>
>
>                       </item>
>
>                       <item>
>
>                         <label>I1</label>
>
>                         <label>I2</label>
>
>                         <value/>
>
>                       </item>
>
>                       <item>
>
>                         <label/>
>
>                         <value/>
>
>
>
>
>
>
>
>
>
>                       </item>
>
>                   </control-2>
>
>                 </resource>
>
>                 <resource xml:lang="fr">
>
>                   <section-1>
>
>                       <label>Untitled Section</label>
>
>                       <help/>
>
>                   </section-1>
>
>                   <control-1>
>
>                       <label/>
>
>                       <hint/>
>
>                       <help/>
>
>                       <alert/>
>
>                   </control-1>
>
>                   <control-2>
>
>                       <label/>
>
>                       <hint/>
>
>                       <help/>
>
>                       <alert/>
>
>                       <item>
>
>                         <label>I1</label>
>
>                         <value/>
>
>                       </item>
>
>                       <item>
>
>                         <label>I2</label>
>
>                         <value/>
>
>                       </item>
>
>                       <item>
>
>                         <label>I3</label>
>
>                         <value/>
>
>
>
>
>
>
>
>
>
>                       </item>
>
>                   </control-2>
>
>                 </resource>
>
>             </resources>
>
>           </xforms:instance>
>
>
>
>
>
>           <xforms:instance id="fr-service-request-instance"
>
> xxforms:exclude-result-prefixes="#all">
>
>             <request/>
>
>           </xforms:instance>
>
>
>
>           <xforms:instance id="fr-service-response-instance"
>
> xxforms:exclude-result-prefixes="#all">
>
>             <response/>
>
>           </xforms:instance>
>
>
>
>       </xforms:model>
>
>     </xhtml:head>
>
>     <xhtml:body>
>
>       <fr:view>
>
>           <xforms:label ref="instance('fr-form-metadata')/title"/>
>
>           <fr:body>
>
>             <fr:section id="section-1-section" bind="section-1-bind">
>
>                 <xforms:label ref="$form-resources/section-1/label"/>
>
>                 <xforms:help ref="$form-resources/section-1/help"/>
>
>                 <fr:grid columns="2">
>
>                   <xhtml:tr>
>
>                       <xhtml:td>
>
>                         <xforms:input id="control-1-control"
>
> bind="control-1-bind">
>
>                             <xforms:label
>
> ref="$form-resources/control-1/label"/>
>
>                             <xforms:hint
>
> ref="$form-resources/control-1/hint"/>
>
>                             <xforms:help
>
> ref="$form-resources/control-1/help"/>
>
>                             <xforms:alert
>
> ref="$fr-resources/detail/labels/alert"/>
>
>                         </xforms:input>
>
>                      </xhtml:td>
>
>                       <xhtml:td>
>
>                         <xforms:select1
>
> xmlns:xbl="http://www.w3.org/ns/xbl"
>
>
>
> xmlns:fb="http://orbeon.org/oxf/xml/form-builder"
>
>
>
> xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary"
>
>                                     appearance="full"
>
>                                     id="control-2-control"
>
>                                     bind="control-2-bind">
>
>                             <xforms:label
>
> ref="$form-resources/control-2/label"/>
>
>                             <xforms:hint
>
> ref="$form-resources/control-2/hint"/>
>
>                             <xforms:help
>
> ref="$form-resources/control-2/help"/>
>
>                             <xforms:alert
>
> ref="$fr-resources/detail/labels/alert"/>
>
>                             <xforms:itemset
>
> nodeset="$form-resources/control-2/item">
>
>                               <xforms:label ref="label"/>
>
>                               <xforms:value ref="value"/>
>
>                             </xforms:itemset>
>
>                         </xforms:select1>
>
>                       </xhtml:td>
>
>                   </xhtml:tr>
>
>                 </fr:grid>
>
>             </fr:section>
>
>           </fr:body>
>
>       </fr:view>
>
>     </xhtml:body>
>
> </xhtml:html>
>
> ------------------------------------------------------------ end of code



--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet