Orbeon Server incorrectly setting back focus on XBL control

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

Orbeon Server incorrectly setting back focus on XBL control

vikash kumar
Hi,


In a form, We have 3 radio button selection. By default when page is loaded, 1st radio button is selected.When I switch to another radio button and click somewhere else on the page. then automatically it switch to 1st radio button.

When I debug the chrome browser I found that
 
-> Request and Response when Switch to another radio button selection

<xxf:event-request xmlns:xxf="http://orbeon.org/oxf/xml/xforms">
    <xxf:uuid>e4895cf2264dc409a57a07c10f23ac83329b1db4</xxf:uuid>
    <xxf:sequence>1</xxf:sequence>
    <xxf:action>
        <xxf:event name="xforms-focus" source-control-id="section-1-control=xf-463=offers-control-control"></xxf:event>
        <xxf:event name="xxforms-value" source-control-id="section-1-control=xf-463=offers-control-control">MY Content</xxf:event>
    </xxf:action>
</xxf:event-request>

<xxf:event-response xmlns:xxf="http://orbeon.org/oxf/xml/xforms">
        <xxf:action>
                <xxf:control-values>
                        <xxf:control id="o0section-1-control=xf-463=offers-control-control">My Content</xxf:control>
                </xxf:control-values>
                <xxf:repeat-indexes>…</xxf:repeat-indexes>
                <xxf:blur control-id="o0section-1-control=xf-463=offers-control-control" />
        </xxf:action>
</xxf:event-response>

-> Once click somewhere else on the page. 1st radio button is selected automatically. Request and Response in this case

<xxf:event-request xmlns:xxf="http://orbeon.org/oxf/xml/xforms">
    <xxf:uuid>e4895cf2264dc409a57a07c10f23ac83329b1db4</xxf:uuid>
    <xxf:sequence>2</xxf:sequence>
    <xxf:action>
        <xxf:event name="xxforms-blur" source-control-id="section-1-control=xf-463=offers-control-control"></xxf:event>
    </xxf:action>
</xxf:event-request>

<xxf:event-response xmlns:xxf="http://orbeon.org/oxf/xml/xforms">
        <xxf:action>
                <xxf:control-values/>
        </xxf:action>
</xxf:event-response>

How to resolve automatic movement of control ?

I have checked below link having similar issue

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

But not able to resolve the issue.

Please help on this issue.
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon Server incorrectly setting back focus on XBL control

Alessandro  Vernet
Administrator
Hi Vikash,

I am not sure to follow what you're saying. Would you be able to record a short video that shows what this problem looks like? The issue you referenced is a focus issue with XBL controls, but are you using an XBL controls here? (The radio button isn't an XBL control; what is the other control you set the focus to after the radio button?) Finally, what version of Orbeon Forms are you on?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon Server incorrectly setting back focus on XBL control

vikash kumar
Hi Alex,


Actually we have one input text field where we are populating client html. In client html there are 3 radio buttons selection. Above mentioned issue , occurred only 1st time. We are facing same issue as mentioned in below link.

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

Request and response I have mentioned in above post that is also almost similar.


Please share any possible solution to resolve this issue and let me know if you need any more information.

Reply | Threaded
Open this post in threaded view
|

Re: Orbeon Server incorrectly setting back focus on XBL control

Alessandro  Vernet
Administrator
Hi Vikash,

We've fixed issue 2433 back in November, but the fix hasn't made its way into a release yet. It will be in the upcoming 4.11, but I think you are using Orbeon Forms PE, correct? In that case, we can send you a stable build that includes that fix through our support channel. You'll let me know!

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Orbeon Server incorrectly setting back focus on XBL control

Alessandro  Vernet
Administrator
Hi Vikash,

Just checking: are you using the PE? If so, we should be able to send you a custom build with that fix. You'll let us know!

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