xxforms:script bug

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

xxforms:script bug

hcr

I find a bug with xxforms:script.
     orbeon version: Orbeon Forms Nightly Build--20080729
     properties.xml:
        <property as="xs:boolean" name="oxf.xforms.cache.document" value="false"/>
 
     view.xhtml:
          <xforms:trigger>
              <xforms:label>script</xforms:label>
              <xforms:action ev:event="DOMActivate">
                 <xxforms:script>alert('this is xxforms:script');</xxforms:script>
              </xforms:action>
          </xforms:trigger>
    when click 'script' trigger, xxforms:script will not run.

 



网易邮箱,中国第一大电子邮件服务商


--
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: xxforms:script bug

Alessandro Vernet
Administrator
On Feb 3, 2009, at 7:58 PM, hechengrong wrote:

> I find a bug with xxforms:script.
>      orbeon version: Orbeon Forms Nightly Build--20080729
>      properties.xml:
>         <property as="xs:boolean" name="oxf.xforms.cache.document"  
> value="false"/>
>
>      view.xhtml:
>           <xforms:trigger>
>               <xforms:label>script</xforms:label>
>               <xforms:action ev:event="DOMActivate">
>                  <xxforms:script>alert('this is xxforms:script');</
> xxforms:script>
>               </xforms:action>
>           </xforms:trigger>
>     when click 'script' trigger, xxforms:script will not run.
It works fine for me, even when setting oxf.xforms.cache.document to  
false. Try:

http://localhost:8080/orbeon/xforms-sandbox/run?url=http://pastie.org/400329.txt
Source at: http://pastie.org/400329.txt.

BTW, why would you want to set oxf.xforms.cache.document to false?  
This can significantly impact performance.

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