Bug in the <xforms:load> action

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

Bug in the <xforms:load> action

Markku Laine
Hi,


The <xforms:load> action does not work with other events than DOMActivate.
At least it does not work with the ev:event="xforms-ready" when placed
within the <xforms:model> (tried to implement meta refresh functionality
using XForms).

Attached is a simple form for testing the functionality. The form
works fine with Mozilla XForms so the syntax ought to be correct. I am
using Orbeon Forms 3.6.0.200712181809.

Regards


-Markku Laine

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

refresh.xforms (820 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Bug in the <xforms:load> action

Ryan Puddephatt-3
This is probably a browser popup blocker, rather than a bug in orbeon. I don't think there is a way around this

-----------------------------------------------
Ryan Puddephatt
FIX Developer
Fidessa LatentZero
1 Alfred Place
London WC1E 7EB
Office: +44 (0) 20 7462 4200
Direct: +44 (0) 20 7323 6112
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7462 4242
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: .::: Markku :::. [mailto:[hidden email]]
Sent: 21 July 2008 13:04
To: [hidden email]
Subject: [ops-users] Bug in the <xforms:load> action

Hi,


The <xforms:load> action does not work with other events than DOMActivate.
At least it does not work with the ev:event="xforms-ready" when placed within the <xforms:model> (tried to implement meta refresh functionality using XForms).

Attached is a simple form for testing the functionality. The form works fine with Mozilla XForms so the syntax ought to be correct. I am using Orbeon Forms 3.6.0.200712181809.

Regards


-Markku Laine

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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: Bug in the <xforms:load> action

Markku Laine
Hi,


> This is probably a browser popup blocker, rather than a bug in orbeon. I
> don't think there is a way around this

Well, I still think it's a bug :) Or can you give me a reasonable
explanation why the same action works when used with the DOMActivate event
but doesn't when used with the xforms-ready event. Or howcome the form
works fine when I am using Mozilla XForms as an XForms implementation but
it doesn't when I am using Orbeon Forms. In both cases, I am using the
same browser, Firefox 2.0.0.16.

Regards


-Markku


--
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: RE: Bug in the <xforms:load> action

Ryan Puddephatt-3
Well popup blockers detect the changing on pages on any events other than clicking a link, such as a DOMActivate. Seeing as both browser and xforms implementation are written by Mozilla its likely they have purposely built the application to ignore it, whereas FF sees orbeon as just another webpage...try turning off any popup blockers within FF or that you have installed and see if it works, that should decide if it is a bug within orbeon or an oversensitive popup blocker ;-)

-----------------------------------------------
Ryan Puddephatt
FIX Developer
Fidessa LatentZero
1 Alfred Place
London WC1E 7EB
Office: +44 (0) 20 7462 4200
Direct: +44 (0) 20 7323 6112
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7462 4242
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: .::: Markku :::. [mailto:[hidden email]]
Sent: 21 July 2008 14:25
To: [hidden email]
Subject: [ops-users] Re: RE: Bug in the <xforms:load> action

Hi,


> This is probably a browser popup blocker, rather than a bug in orbeon.
> I don't think there is a way around this

Well, I still think it's a bug :) Or can you give me a reasonable explanation why the same action works when used with the DOMActivate event but doesn't when used with the xforms-ready event. Or howcome the form works fine when I am using Mozilla XForms as an XForms implementation but it doesn't when I am using Orbeon Forms. In both cases, I am using the same browser, Firefox 2.0.0.16.

Regards


-Markku


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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: Re: RE: Bug in the <xforms:load> action

Markku Laine
Hi,


> Well popup blockers detect the changing on pages on any events other
> than clicking a link, such as a DOMActivate. Seeing as both browser and
> xforms implementation are written by Mozilla its likely they have
> purposely built the application to ignore it, whereas FF sees orbeon as
> just another webpage...try turning off any popup blockers within FF or
> that you have installed and see if it works, that should decide if it is
> a bug within orbeon or an oversensitive popup blocker ;-)

Well that was a very convincing explanation. I disabled the pop-up blocker
from Firefox by following the instructions available at:
http://support.cox.com/sdccommon/asp/contentredirect.asp?sprt_cid=f7c32e32-5ce1-4756-932e-e84465effb96

However, this did not change a thing and the <xforms:load ...
ev:event="xforms-ready" /> (refresh/redirect) still doesn't work with
Orbeon Forms.

Did you try it out? Did you managed to get the form work by turning off
the pop-up blocker?

Regards


-Markku


--
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: RE: Re: RE: Bug in the <xforms:load> action

Ryan Puddephatt-3
I didn't try it, I just made the assumption that this would be the root cause as it has been in the past, I think your right this probably is a bug

Ryan

-----------------------------------------------
Ryan Puddephatt
FIX Developer
Fidessa LatentZero
1 Alfred Place
London WC1E 7EB
Office: +44 (0) 20 7462 4200
Direct: +44 (0) 20 7323 6112
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7462 4242
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: .::: Markku :::. [mailto:[hidden email]]
Sent: 21 July 2008 15:27
To: [hidden email]
Subject: [ops-users] Re: RE: Re: RE: Bug in the <xforms:load> action

Hi,


> Well popup blockers detect the changing on pages on any events other
> than clicking a link, such as a DOMActivate. Seeing as both browser
> and xforms implementation are written by Mozilla its likely they have
> purposely built the application to ignore it, whereas FF sees orbeon
> as just another webpage...try turning off any popup blockers within FF
> or that you have installed and see if it works, that should decide if
> it is a bug within orbeon or an oversensitive popup blocker ;-)

Well that was a very convincing explanation. I disabled the pop-up blocker from Firefox by following the instructions available at:
http://support.cox.com/sdccommon/asp/contentredirect.asp?sprt_cid=f7c32e32-5ce1-4756-932e-e84465effb96

However, this did not change a thing and the <xforms:load ...
ev:event="xforms-ready" /> (refresh/redirect) still doesn't work with Orbeon Forms.

Did you try it out? Did you managed to get the form work by turning off the pop-up blocker?

Regards


-Markku


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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: Re: RE: Re: RE: Bug in the <xforms:load> action

Alessandro Vernet
Administrator
Ryan, Markku,

On Mon, Jul 21, 2008 at 7:32 AM, Ryan Puddephatt
<[hidden email]> wrote:
> I didn't try it, I just made the assumption that this would be the root cause as it has been in the past, I think your right this probably is a bug

Exactly, this is not supported at this point. It has never been
supported so was marked as "RFE". The classification is arguable :),
but the bottom line is that this would need to be implemented.

http://forge.objectweb.org/tracker/index.php?func=detail&aid=306918&group_id=168&atid=350207

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
Reply | Threaded
Open this post in threaded view
|

Re: Re: RE: Re: RE: Re: RE: Bug in the <xforms:load> action

Markku Laine
Hi Alex,


> Exactly, this is not supported at this point. It has never been
> supported so was marked as "RFE". The classification is arguable :),
> but the bottom line is that this would need to be implemented.
>
> http://forge.objectweb.org/tracker/index.php?func=detail&aid=306918&group_id=168&atid=350207

Do you suggest any work around for accomplishing the same result as in
the sample form i.e. redirecting the user to another web page using XForms
syntax only?

I tried to accomplish the functionality using a couple of different ways.
Unfortunately, only one of them worked but it's pretty ugly hack.
------------------------- 8< ----------------------
[...]
<head>
   <title>XForms - Refresh 3</title>
   <xforms:model>
     <xforms:instance id="temp">
       <temp xmlns="" />
     </xforms:instance>
     <xforms:setfocus control="my-hidden-input" ev:event="xforms-ready" />
   </xforms:model>
   <style type="text/css">
     .hidden {
       visibility: hidden;
     }
   </style>
</head>
<body>
   <h1>XForms - Refresh 3</h1>
   <p class="hidden">
     <xforms:input id="my-hidden-input" ref="instance( 'temp' )">
       <xforms:load resource="http://www.orbeon.com" show="replace"
ev:event="DOMFocusIn" />
     </xforms:input>
   </p>
</body>
[...]
---------------------------- 8< ---------------------

As you can see, I set focus to a hidden input control which then activates
the <xforms:load> action. If I use display: none; the form does not work.


Here is another one (really simple) that I tried out but it didn't work
with Orbeon Forms either (works with Mozilla XForms).
--------------------------- 8< ------------------------
[...]
<xforms:model id="my-model">
   <xforms:load resource="http://www.orbeon.com" show="replace"
ev:event="my-refresh-event" />
   <xforms:dispatch name="my-refresh-event" target="my-model"
ev:event="xforms-ready" />
</xforms:model>
[...]
-------------------------- 8< --------------------------

Regards


-Markku


--
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: Re: RE: Re: RE: Re: RE: Bug in the <xforms:load> action

Markku Laine
Okay... here is the version of the Orbeon Forms redirector hack that I am
using at the moment, if somebody is interested.

-Markku

Ps. CSS in the code can be left out. It's there just as a precaution.

---------------------- 8< -------------------------
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
       xml:lang="en"
       lang="en"
       xmlns:ev="http://www.w3.org/2001/xml-events"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:xforms="http://www.w3.org/2002/xforms">
  <head>
  <title>Orbeon Forms Redirector Hack</title>
  <xforms:model>
  <xforms:instance id="dummy-instance">
  <dummy xmlns="" />
  </xforms:instance>
  <xforms:setfocus ev:event="xforms-ready"
control="redirector" />
  </xforms:model>
  <style type="text/css">
  #redirector {
  font-size: 0px;
  left: -100px;
  line-height: 0px;
  position: absolute;
  top: -100px;
  }
  </style>
  </head>
  <body>
  <xforms:trigger id="redirector" appearance="minimal">
  <xforms:label />
  <xforms:action ev:event="DOMFocusIn">
  <xforms:load
resource="http://www.orbeon.com" show="replace" />
  </xforms:action>
  </xforms:trigger>
  </body>
</html>


--
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: Re: RE: Re: RE: Re: RE: Bug in the <xforms:load> action

Alessandro Vernet
Administrator
In reply to this post by Markku Laine
Markku ,

On Tue, Jul 22, 2008 at 12:27 AM, .::: Markku :::. <[hidden email]> wrote:
> Do you suggest any work around for accomplishing the same result as in the
> sample form i.e. redirecting the user to another web page using XForms
> syntax only?

I have done this in the past with some JavaScript, using
YAHOO.util.Event.onDOMReady(your function), where "your function"
calls ORBEON.xforms.Document.dispatchEvent() to dispatch an XForms
event.

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
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: RE: Re: RE: Re: RE: Bug in the <xforms:load> action

Markku Laine
Hi Alex,


> On Tue, Jul 22, 2008 at 12:27 AM, .::: Markku :::. <[hidden email]> wrote:
>> Do you suggest any work around for accomplishing the same result as in the
>> sample form i.e. redirecting the user to another web page using XForms
>> syntax only?
>
> I have done this in the past with some JavaScript, using
> YAHOO.util.Event.onDOMReady(your function), where "your function"
> calls ORBEON.xforms.Document.dispatchEvent() to dispatch an XForms
> event.

Thanks for your suggestion. However, I am looking for pure XForms 1.1
compatible solution. Is there any better way than the one I am using
at the moment?

Other possible, but not pure XForms 1.1 compatible, solutions would be
implementing the functionality using JavaScript or the <meta> tag.

Regards


-Markku


--
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: Bug in the <xforms:load> action

Erik Bruchez
Administrator
>> I have done this in the past with some JavaScript, using

>> YAHOO.util.Event.onDOMReady(your function), where "your function"
>> calls ORBEON.xforms.Document.dispatchEvent() to dispatch an XForms
>> event.
>
> Thanks for your suggestion. However, I am looking for pure XForms  
> 1.1 compatible solution. Is there any better way than the one I am  
> using at the moment?
>
> Other possible, but not pure XForms 1.1 compatible, solutions would  
> be implementing the functionality using JavaScript or the <meta> tag.
The best thing to do would be to add support for xforms:load upon page  
initialization. Other than that, I don't see a workaround in pure  
XForms.

-Erik

--
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: Bug in the <xforms:load> action

Markku Laine
> The best thing to do would be to add support for xforms:load upon page
> initialization. Other than that, I don't see a workaround in pure XForms.

Erik, thanks for your answer. Is this feature going to be available in the
next stable release (3.7.0) of Orbeon Forms?

Regards


-Markku


--
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: Re: Bug in the <xforms:load> action

Erik Bruchez
Administrator
It depends when 3.7 comes out, but given our workload at the moment, I  
would say most likely not since our plan for 3.7 is just to close a  
few blockers, not to implement new features (unless they are needed  
for current projects we are working on).

-Erik

On Jul 24, 2008, at 11:34 PM, .::: Markku :::. wrote:

>> The best thing to do would be to add support for xforms:load upon  
>> page initialization. Other than that, I don't see a workaround in  
>> pure XForms.
>
> Erik, thanks for your answer. Is this feature going to be available  
> in the next stable release (3.7.0) of Orbeon Forms?
>
> Regards
>
>
> -Markku
--
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