bind and readonly

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

bind and readonly

Nicolas Modrzyk-3
Hi,

I have two binds in an xform like the following:
<xforms:bind nodeset="instance('taskoutput')/fe:Campo_A3"
readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>
<xforms:bind nodeset="instance('taskoutput')/fe:Campo_A2"
readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>

Elements are properly defined in the model:
<xforms:instance id="taskoutput">
        <fe:output>
          <selecionar_abas
xmlns="http://example.com/Forms/F11form/xform">a</selecionar_abas>
          <Campo_A3 xmlns="http://example.com/Forms/F11form/xform"/>
          <Campo_A2 xmlns="http://example.com/Forms/F11form/xform"/>
...

A select has a ref to selecionar_abas in the xforms:
<xforms:select1 appearance="full"
ref="instance('taskoutput')/fe:selecionar_abas">
                  <xforms:item>
                    <xforms:label>Aba A</xforms:label>
                    <xforms:value>a</xforms:value>
                  </xforms:item>
                  <xforms:item>
                    <xforms:label>Aba B</xforms:label>
                    <xforms:value>b</xforms:value>
                  </xforms:item>
</xforms:select1>

And the two other fields have refs like this:
<xhtml:div id="xforms_cntrl_Campo_A3">
                <xforms:select1 appearance="minimal"
ref="instance('taskoutput')/fe:Campo_A3">
                  <xforms:label>Campo A3: </xforms:label>
                  <xforms:item>
                    <xforms:label>Selecione</xforms:label>
                    <xforms:value>selecione</xforms:value>
                  </xforms:item>
                </xforms:select1>
              </xhtml:div>

              <xhtml:div id="xforms_cntrl_Campo_A2">
                <xforms:input ref="instance('taskoutput')/fe:Campo_A2">
                  <xforms:label>Campo A2: </xforms:label>
                </xforms:input>
              </xhtml:div>

The problem I am facing is that:
The select with a ref on Campo_A3 will behave properly when the value
of "selecionar_abas" changes, but the xforms:input with ref to
Campo_A2 will throw a client side error, as shown in the attachment.
No error detected in the server logs.

Would you have any idea ?
This is using 3.7beta1.

Thank you in advance for any hint!

Niko,


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

Picture 2.png (39K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: bind and readonly

Nicolas Modrzyk-3
Going on a little bit further, I extracted the ops-resource-public.jar
and change the properties.xml to not use minimal resources.

    <property as="xs:boolean" name="oxf.xforms.minimal-resources"
              value="false"/>

I ended with the following:
2008-09-12 10:19:49,816 WARN
[org.intalio.tempo.workflow.wds.servlets.WDSServlet] - <Item not
found: 'ops/yui/container/assets/skins/sam/container.css'>
2008-09-12 10:19:49,817 ERROR [org.orbeon.oxf.webapp.ProcessorService]
- <Exception at line 75, column 61 of
oxf:/ops/xforms/xforms-server.xpl (executing processor:
name='{http://www.orbeon.com/oxf/processors}xforms-resource-server')>
org.orbeon.oxf.resources.ResourceNotFoundException: Cannot find
resource /ops/yui/container/assets/skins/sam/container.css
        at org.orbeon.oxf.resources.PriorityResourceManagerImpl.lastModified(PriorityResourceManagerImpl.java:155)
        at org.orbeon.oxf.xforms.processor.XFormsResourceServer.computeCombinedLastModified(XFormsResourceServer.java:227)
        at org.orbeon.oxf.xforms.processor.XFormsResourceServer.start(XFormsResourceServer.java:156)
        at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:644)
        at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
        at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:641)
        at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:242)
        at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:644)
        at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
        at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:641)
        at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:95)
        at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:96)
        at org.orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.java:148)

This is with version 3.7 beta.

Did I do something wrong ?

Niko,

On Thu, Sep 11, 2008 at 4:24 PM, Nicolas Modrzyk <[hidden email]> wrote:

> Hi,
>
> I have two binds in an xform like the following:
> <xforms:bind nodeset="instance('taskoutput')/fe:Campo_A3"
> readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>
> <xforms:bind nodeset="instance('taskoutput')/fe:Campo_A2"
> readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>
>
> Elements are properly defined in the model:
> <xforms:instance id="taskoutput">
>        <fe:output>
>          <selecionar_abas
> xmlns="http://example.com/Forms/F11form/xform">a</selecionar_abas>
>          <Campo_A3 xmlns="http://example.com/Forms/F11form/xform"/>
>          <Campo_A2 xmlns="http://example.com/Forms/F11form/xform"/>
> ...
>
> A select has a ref to selecionar_abas in the xforms:
> <xforms:select1 appearance="full"
> ref="instance('taskoutput')/fe:selecionar_abas">
>                  <xforms:item>
>                    <xforms:label>Aba A</xforms:label>
>                    <xforms:value>a</xforms:value>
>                  </xforms:item>
>                  <xforms:item>
>                    <xforms:label>Aba B</xforms:label>
>                    <xforms:value>b</xforms:value>
>                  </xforms:item>
> </xforms:select1>
>
> And the two other fields have refs like this:
> <xhtml:div id="xforms_cntrl_Campo_A3">
>                <xforms:select1 appearance="minimal"
> ref="instance('taskoutput')/fe:Campo_A3">
>                  <xforms:label>Campo A3: </xforms:label>
>                  <xforms:item>
>                    <xforms:label>Selecione</xforms:label>
>                    <xforms:value>selecione</xforms:value>
>                  </xforms:item>
>                </xforms:select1>
>              </xhtml:div>
>
>              <xhtml:div id="xforms_cntrl_Campo_A2">
>                <xforms:input ref="instance('taskoutput')/fe:Campo_A2">
>                  <xforms:label>Campo A2: </xforms:label>
>                </xforms:input>
>              </xhtml:div>
>
> The problem I am facing is that:
> The select with a ref on Campo_A3 will behave properly when the value
> of "selecionar_abas" changes, but the xforms:input with ref to
> Campo_A2 will throw a client side error, as shown in the attachment.
> No error detected in the server logs.
>
> Would you have any idea ?
> This is using 3.7beta1.
>
> Thank you in advance for any hint!
>
> Niko,
>


--
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: bind and readonly

Nicolas Modrzyk-3
Reproducing the original problem in IE, not firefox, gives the
following js message:

Line:  106
Char:  79171
Error:  'ORBEON.xforms.GLobals.formStaticState[...].value' is null or
not an object
Code: 0

Does that give more hints ?

Niko

On Fri, Sep 12, 2008 at 10:24 AM, Nicolas Modrzyk <[hidden email]> wrote:

> Going on a little bit further, I extracted the ops-resource-public.jar
> and change the properties.xml to not use minimal resources.
>
>    <property as="xs:boolean" name="oxf.xforms.minimal-resources"
>              value="false"/>
>
> I ended with the following:
> 2008-09-12 10:19:49,816 WARN
> [org.intalio.tempo.workflow.wds.servlets.WDSServlet] - <Item not
> found: 'ops/yui/container/assets/skins/sam/container.css'>
> 2008-09-12 10:19:49,817 ERROR [org.orbeon.oxf.webapp.ProcessorService]
> - <Exception at line 75, column 61 of
> oxf:/ops/xforms/xforms-server.xpl (executing processor:
> name='{http://www.orbeon.com/oxf/processors}xforms-resource-server')>
> org.orbeon.oxf.resources.ResourceNotFoundException: Cannot find
> resource /ops/yui/container/assets/skins/sam/container.css
>        at org.orbeon.oxf.resources.PriorityResourceManagerImpl.lastModified(PriorityResourceManagerImpl.java:155)
>        at org.orbeon.oxf.xforms.processor.XFormsResourceServer.computeCombinedLastModified(XFormsResourceServer.java:227)
>        at org.orbeon.oxf.xforms.processor.XFormsResourceServer.start(XFormsResourceServer.java:156)
>        at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:644)
>        at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
>        at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:641)
>        at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:242)
>        at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:644)
>        at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
>        at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:641)
>        at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:95)
>        at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:96)
>        at org.orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.java:148)
>
> This is with version 3.7 beta.
>
> Did I do something wrong ?
>
> Niko,
>
> On Thu, Sep 11, 2008 at 4:24 PM, Nicolas Modrzyk <[hidden email]> wrote:
>> Hi,
>>
>> I have two binds in an xform like the following:
>> <xforms:bind nodeset="instance('taskoutput')/fe:Campo_A3"
>> readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>
>> <xforms:bind nodeset="instance('taskoutput')/fe:Campo_A2"
>> readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>
>>
>> Elements are properly defined in the model:
>> <xforms:instance id="taskoutput">
>>        <fe:output>
>>          <selecionar_abas
>> xmlns="http://example.com/Forms/F11form/xform">a</selecionar_abas>
>>          <Campo_A3 xmlns="http://example.com/Forms/F11form/xform"/>
>>          <Campo_A2 xmlns="http://example.com/Forms/F11form/xform"/>
>> ...
>>
>> A select has a ref to selecionar_abas in the xforms:
>> <xforms:select1 appearance="full"
>> ref="instance('taskoutput')/fe:selecionar_abas">
>>                  <xforms:item>
>>                    <xforms:label>Aba A</xforms:label>
>>                    <xforms:value>a</xforms:value>
>>                  </xforms:item>
>>                  <xforms:item>
>>                    <xforms:label>Aba B</xforms:label>
>>                    <xforms:value>b</xforms:value>
>>                  </xforms:item>
>> </xforms:select1>
>>
>> And the two other fields have refs like this:
>> <xhtml:div id="xforms_cntrl_Campo_A3">
>>                <xforms:select1 appearance="minimal"
>> ref="instance('taskoutput')/fe:Campo_A3">
>>                  <xforms:label>Campo A3: </xforms:label>
>>                  <xforms:item>
>>                    <xforms:label>Selecione</xforms:label>
>>                    <xforms:value>selecione</xforms:value>
>>                  </xforms:item>
>>                </xforms:select1>
>>              </xhtml:div>
>>
>>              <xhtml:div id="xforms_cntrl_Campo_A2">
>>                <xforms:input ref="instance('taskoutput')/fe:Campo_A2">
>>                  <xforms:label>Campo A2: </xforms:label>
>>                </xforms:input>
>>              </xhtml:div>
>>
>> The problem I am facing is that:
>> The select with a ref on Campo_A3 will behave properly when the value
>> of "selecionar_abas" changes, but the xforms:input with ref to
>> Campo_A2 will throw a client side error, as shown in the attachment.
>> No error detected in the server logs.
>>
>> Would you have any idea ?
>> This is using 3.7beta1.
>>
>> Thank you in advance for any hint!
>>
>> Niko,
>>
>


--
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: bind and readonly

Nicolas Modrzyk-3
Coming back on this one :)

Any chance for a hint as to where it's better to start looking to fix
it myself?

the original behavior is perfectly reproduce-able, meaning:
try to use a dynamic value for read-only on a bind, like
readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>

will throw a client side exception.

Any advice or idea would be good.

Thank you in advance,

Niko

On Sat, Sep 13, 2008 at 10:42 AM, Nicolas Modrzyk <[hidden email]> wrote:

> Reproducing the original problem in IE, not firefox, gives the
> following js message:
>
> Line:  106
> Char:  79171
> Error:  'ORBEON.xforms.GLobals.formStaticState[...].value' is null or
> not an object
> Code: 0
>
> Does that give more hints ?
>
> Niko
>
> On Fri, Sep 12, 2008 at 10:24 AM, Nicolas Modrzyk <[hidden email]> wrote:
>> Going on a little bit further, I extracted the ops-resource-public.jar
>> and change the properties.xml to not use minimal resources.
>>
>>    <property as="xs:boolean" name="oxf.xforms.minimal-resources"
>>              value="false"/>
>>
>> I ended with the following:
>> 2008-09-12 10:19:49,816 WARN
>> [org.intalio.tempo.workflow.wds.servlets.WDSServlet] - <Item not
>> found: 'ops/yui/container/assets/skins/sam/container.css'>
>> 2008-09-12 10:19:49,817 ERROR [org.orbeon.oxf.webapp.ProcessorService]
>> - <Exception at line 75, column 61 of
>> oxf:/ops/xforms/xforms-server.xpl (executing processor:
>> name='{http://www.orbeon.com/oxf/processors}xforms-resource-server')>
>> org.orbeon.oxf.resources.ResourceNotFoundException: Cannot find
>> resource /ops/yui/container/assets/skins/sam/container.css
>>        at org.orbeon.oxf.resources.PriorityResourceManagerImpl.lastModified(PriorityResourceManagerImpl.java:155)
>>        at org.orbeon.oxf.xforms.processor.XFormsResourceServer.computeCombinedLastModified(XFormsResourceServer.java:227)
>>        at org.orbeon.oxf.xforms.processor.XFormsResourceServer.start(XFormsResourceServer.java:156)
>>        at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:644)
>>        at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
>>        at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:641)
>>        at org.orbeon.oxf.processor.pipeline.choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:242)
>>        at org.orbeon.oxf.processor.pipeline.PipelineProcessor$11.run(PipelineProcessor.java:644)
>>        at org.orbeon.oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
>>        at org.orbeon.oxf.processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:641)
>>        at org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:95)
>>        at org.orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:96)
>>        at org.orbeon.oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.java:148)
>>
>> This is with version 3.7 beta.
>>
>> Did I do something wrong ?
>>
>> Niko,
>>
>> On Thu, Sep 11, 2008 at 4:24 PM, Nicolas Modrzyk <[hidden email]> wrote:
>>> Hi,
>>>
>>> I have two binds in an xform like the following:
>>> <xforms:bind nodeset="instance('taskoutput')/fe:Campo_A3"
>>> readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>
>>> <xforms:bind nodeset="instance('taskoutput')/fe:Campo_A2"
>>> readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>
>>>
>>> Elements are properly defined in the model:
>>> <xforms:instance id="taskoutput">
>>>        <fe:output>
>>>          <selecionar_abas
>>> xmlns="http://example.com/Forms/F11form/xform">a</selecionar_abas>
>>>          <Campo_A3 xmlns="http://example.com/Forms/F11form/xform"/>
>>>          <Campo_A2 xmlns="http://example.com/Forms/F11form/xform"/>
>>> ...
>>>
>>> A select has a ref to selecionar_abas in the xforms:
>>> <xforms:select1 appearance="full"
>>> ref="instance('taskoutput')/fe:selecionar_abas">
>>>                  <xforms:item>
>>>                    <xforms:label>Aba A</xforms:label>
>>>                    <xforms:value>a</xforms:value>
>>>                  </xforms:item>
>>>                  <xforms:item>
>>>                    <xforms:label>Aba B</xforms:label>
>>>                    <xforms:value>b</xforms:value>
>>>                  </xforms:item>
>>> </xforms:select1>
>>>
>>> And the two other fields have refs like this:
>>> <xhtml:div id="xforms_cntrl_Campo_A3">
>>>                <xforms:select1 appearance="minimal"
>>> ref="instance('taskoutput')/fe:Campo_A3">
>>>                  <xforms:label>Campo A3: </xforms:label>
>>>                  <xforms:item>
>>>                    <xforms:label>Selecione</xforms:label>
>>>                    <xforms:value>selecione</xforms:value>
>>>                  </xforms:item>
>>>                </xforms:select1>
>>>              </xhtml:div>
>>>
>>>              <xhtml:div id="xforms_cntrl_Campo_A2">
>>>                <xforms:input ref="instance('taskoutput')/fe:Campo_A2">
>>>                  <xforms:label>Campo A2: </xforms:label>
>>>                </xforms:input>
>>>              </xhtml:div>
>>>
>>> The problem I am facing is that:
>>> The select with a ref on Campo_A3 will behave properly when the value
>>> of "selecionar_abas" changes, but the xforms:input with ref to
>>> Campo_A2 will throw a client side error, as shown in the attachment.
>>> No error detected in the server logs.
>>>
>>> Would you have any idea ?
>>> This is using 3.7beta1.
>>>
>>> Thank you in advance for any hint!
>>>
>>> Niko,
>>>
>>
>


--
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: bind and readonly

Erik Bruchez
Administrator
Niko,

Can you send a reproducible case that works in the sandbox? There  
seems to be several separate issues here, so I am not sure where to  
start without an actual sample.

-Erik

On Sep 18, 2008, at 10:14 PM, Nicolas Modrzyk wrote:

> Coming back on this one :)
>
> Any chance for a hint as to where it's better to start looking to fix
> it myself?
>
> the original behavior is perfectly reproduce-able, meaning:
> try to use a dynamic value for read-only on a bind, like
> readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>
>
> will throw a client side exception.
>
> Any advice or idea would be good.
>
> Thank you in advance,
>
> Niko
>
> On Sat, Sep 13, 2008 at 10:42 AM, Nicolas Modrzyk <[hidden email]>  
> wrote:
>> Reproducing the original problem in IE, not firefox, gives the
>> following js message:
>>
>> Line:  106
>> Char:  79171
>> Error:  'ORBEON.xforms.GLobals.formStaticState[...].value' is null or
>> not an object
>> Code: 0
>>
>> Does that give more hints ?
>>
>> Niko
>>
>> On Fri, Sep 12, 2008 at 10:24 AM, Nicolas Modrzyk  
>> <[hidden email]> wrote:
>>> Going on a little bit further, I extracted the ops-resource-
>>> public.jar
>>> and change the properties.xml to not use minimal resources.
>>>
>>>   <property as="xs:boolean" name="oxf.xforms.minimal-resources"
>>>             value="false"/>
>>>
>>> I ended with the following:
>>> 2008-09-12 10:19:49,816 WARN
>>> [org.intalio.tempo.workflow.wds.servlets.WDSServlet] - <Item not
>>> found: 'ops/yui/container/assets/skins/sam/container.css'>
>>> 2008-09-12 10:19:49,817 ERROR  
>>> [org.orbeon.oxf.webapp.ProcessorService]
>>> - <Exception at line 75, column 61 of
>>> oxf:/ops/xforms/xforms-server.xpl (executing processor:
>>> name='{http://www.orbeon.com/oxf/processors}xforms-resource-
>>> server')>
>>> org.orbeon.oxf.resources.ResourceNotFoundException: Cannot find
>>> resource /ops/yui/container/assets/skins/sam/container.css
>>>       at  
>>> org
>>> .orbeon
>>> .oxf
>>> .resources
>>> .PriorityResourceManagerImpl
>>> .lastModified(PriorityResourceManagerImpl.java:155)
>>>       at  
>>> org
>>> .orbeon
>>> .oxf
>>> .xforms
>>> .processor
>>> .XFormsResourceServer
>>> .computeCombinedLastModified(XFormsResourceServer.java:227)
>>>       at  
>>> org
>>> .orbeon
>>> .oxf
>>> .xforms
>>> .processor.XFormsResourceServer.start(XFormsResourceServer.java:156)
>>>       at org.orbeon.oxf.processor.pipeline.PipelineProcessor
>>> $11.run(PipelineProcessor.java:644)
>>>       at  
>>> org
>>> .orbeon
>>> .oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
>>>       at  
>>> org
>>> .orbeon
>>> .oxf
>>> .processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:
>>> 641)
>>>       at  
>>> org
>>> .orbeon
>>> .oxf
>>> .processor
>>> .pipeline
>>> .choose.ConcreteChooseProcessor.start(ConcreteChooseProcessor.java:
>>> 242)
>>>       at org.orbeon.oxf.processor.pipeline.PipelineProcessor
>>> $11.run(PipelineProcessor.java:644)
>>>       at  
>>> org
>>> .orbeon
>>> .oxf.processor.ProcessorImpl.executeChildren(ProcessorImpl.java:519)
>>>       at  
>>> org
>>> .orbeon
>>> .oxf
>>> .processor.pipeline.PipelineProcessor.start(PipelineProcessor.java:
>>> 641)
>>>       at  
>>> org.orbeon.oxf.pipeline.InitUtils.runProcessor(InitUtils.java:95)
>>>       at  
>>> org
>>> .orbeon.oxf.webapp.ProcessorService.service(ProcessorService.java:
>>> 96)
>>>       at  
>>> org
>>> .orbeon
>>> .oxf.servlet.OPSServletDelegate.service(OPSServletDelegate.java:148)
>>>
>>> This is with version 3.7 beta.
>>>
>>> Did I do something wrong ?
>>>
>>> Niko,
>>>
>>> On Thu, Sep 11, 2008 at 4:24 PM, Nicolas Modrzyk  
>>> <[hidden email]> wrote:
>>>> Hi,
>>>>
>>>> I have two binds in an xform like the following:
>>>> <xforms:bind nodeset="instance('taskoutput')/fe:Campo_A3"
>>>> readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>
>>>> <xforms:bind nodeset="instance('taskoutput')/fe:Campo_A2"
>>>> readonly="instance('taskoutput')/fe:selecionar_abas = 'b'"/>
>>>>
>>>> Elements are properly defined in the model:
>>>> <xforms:instance id="taskoutput">
>>>>       <fe:output>
>>>>         <selecionar_abas
>>>> xmlns="http://example.com/Forms/F11form/xform">a</selecionar_abas>
>>>>         <Campo_A3 xmlns="http://example.com/Forms/F11form/xform"/>
>>>>         <Campo_A2 xmlns="http://example.com/Forms/F11form/xform"/>
>>>> ...
>>>>
>>>> A select has a ref to selecionar_abas in the xforms:
>>>> <xforms:select1 appearance="full"
>>>> ref="instance('taskoutput')/fe:selecionar_abas">
>>>>                 <xforms:item>
>>>>                   <xforms:label>Aba A</xforms:label>
>>>>                   <xforms:value>a</xforms:value>
>>>>                 </xforms:item>
>>>>                 <xforms:item>
>>>>                   <xforms:label>Aba B</xforms:label>
>>>>                   <xforms:value>b</xforms:value>
>>>>                 </xforms:item>
>>>> </xforms:select1>
>>>>
>>>> And the two other fields have refs like this:
>>>> <xhtml:div id="xforms_cntrl_Campo_A3">
>>>>               <xforms:select1 appearance="minimal"
>>>> ref="instance('taskoutput')/fe:Campo_A3">
>>>>                 <xforms:label>Campo A3: </xforms:label>
>>>>                 <xforms:item>
>>>>                   <xforms:label>Selecione</xforms:label>
>>>>                   <xforms:value>selecione</xforms:value>
>>>>                 </xforms:item>
>>>>               </xforms:select1>
>>>>             </xhtml:div>
>>>>
>>>>             <xhtml:div id="xforms_cntrl_Campo_A2">
>>>>               <xforms:input ref="instance('taskoutput')/
>>>> fe:Campo_A2">
>>>>                 <xforms:label>Campo A2: </xforms:label>
>>>>               </xforms:input>
>>>>             </xhtml:div>
>>>>
>>>> The problem I am facing is that:
>>>> The select with a ref on Campo_A3 will behave properly when the  
>>>> value
>>>> of "selecionar_abas" changes, but the xforms:input with ref to
>>>> Campo_A2 will throw a client side error, as shown in the  
>>>> attachment.
>>>> No error detected in the server logs.
>>>>
>>>> Would you have any idea ?
>>>> This is using 3.7beta1.
>>>>
>>>> Thank you in advance for any hint!
>>>>
>>>> Niko,
>>>>
>>>
>>
>
> --
> 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