DOMActivate event is not working with xforms:secret

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

DOMActivate event is not working with xforms:secret

Joseph Lawrence
Hi Alex,
       It seems that the DOMActivate event is not working good with xforms:secret control
 
Thanks
Joseph Lawrence
Stabilix Solutions

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

Reply | Threaded
Open this post in threaded view
|

Re: DOMActivate event is not working with xforms:secret

Alessandro  Vernet
Administrator
Joseph,

Would you have a stand-alone example that we can use to reproduce this?

Alex

On 12/24/06, joseph lawrence <[hidden email]> wrote:

> Hi Alex,
>        It seems that the DOMActivate event is not working good with
> xforms:secret control
>
> Thanks
> Joseph Lawrence
> Stabilix Solutions
>
>  __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: DOMActivate event is not working with xforms:secret

Joseph Lawrence
Alex,
    Thanks for the response. I am attaching a sample stand-alone application. In this sample, i expect clicking ENTER on the xforms:secret to yeild the same result as clicking on the login BUTTON
 
Thanks
Joseph Lawrence
Stabilix Solutions

Alessandro Vernet <[hidden email]> wrote:
Joseph,

Would you have a stand-alone example that we can use to reproduce this?

Alex

On 12/24/06, joseph lawrence wrote:

> Hi Alex,
> It seems that the DOMActivate event is not working good with
> xforms:secret control
>
> Thanks
> Joseph Lawrence
> Stabilix Solutions
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>


--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
<xhtml:html xsl:version="2.0" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xi="http://www.w3.org/2003/XInclude"
            xmlns:widget="http://orbeon.org/oxf/xml/widget" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ui="http:/www.example.org/ui">
    <xhtml:head>
        <xhtml:title>Login Page</xhtml:title>
        <xforms:model>
            <xforms:action ev:event="xforms-ready">
               <xforms:setfocus control="name"/>
            </xforms:action>
            <xforms:instance id="main">
                <main>
                    <username/>
                    <password/>
                    <message></message>
                </main>
            </xforms:instance>
        </xforms:model>
        <xhtml:style type="text/css">
            .labelc {
                font-weight:bolder;
                font-size:18px;
                color:red;
            }
        </xhtml:style>
    </xhtml:head>
    <xhtml:body>
        <table>
            <tr>
                <td align="center" style="color:red">
                   <xforms:output ref="instance('main')/message"/>
                    </td>
            </tr>
            <tr>
                <td>
                    <xforms:input id="name" ref="instance('main')/username">
                        <xforms:label>Username&#160;</xforms:label>
                    </xforms:input>
                </td>
            </tr>
            <tr>
                <td>
                    <xforms:secret ref="instance('main')/password">
                        <xforms:label>Password&#160;&#160;</xforms:label>
                        <xforms:action ev:event="DOMActivate">
                            <xforms:action if="instance('main')/username=instance('main')/password">
                                <xforms:setvalue ref="instance('main')/message" value="'Successful'"/>
                            </xforms:action>
                            <xforms:action if="not(instance('main')/username=instance('main')/password)">
                                <xforms:setvalue ref="instance('main')/message" value="'Failure'"/>
                            </xforms:action>
                        </xforms:action>
                    </xforms:secret>                
                </td>
            </tr>
            <tr>
                <td align="center">
                    <xforms:trigger>
                        <xforms:label>Login</xforms:label>
                        <xforms:action ev:event="DOMActivate">
                            <xforms:action if="instance('main')/username=instance('main')/password">
                                <xforms:setvalue ref="instance('main')/message" value="'Successful'"/>
                            </xforms:action>
                            <xforms:action if="not(instance('main')/username=instance('main')/password)">
                                <xforms:setvalue ref="instance('main')/message" value="'Failure'"/>
                            </xforms:action>
                        </xforms:action>
                    </xforms:trigger>
                </td>
            </tr>
        </table>
    </xhtml:body>
</xhtml: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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

Reply | Threaded
Open this post in threaded view
|

Re: DOMActivate event is not working with xforms:secret

Alessandro  Vernet
Administrator
On 12/26/06, joseph lawrence <[hidden email]> wrote:
>     Thanks for the response. I am attaching a sample stand-alone
> application. In this sample, i expect clicking ENTER on the xforms:secret to
> yeild the same result as clicking on the login BUTTON

Joseph,

Thank you for the test case! This is now fixed. (You will find the fix
will in the next nightly build.) Thank you for the bug report. For
reference, here is the bug in the tracker:

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

Alex
--
Blog (XML, Web apps, Open Source):
http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet