FW: Article to be approved for list ops-users from adeshpande@gpo.gov

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

FW: Article to be approved for list ops-users from adeshpande@gpo.gov

Deshpande, Ashay

Hello Alex,

   I following are files I am using for the application. I am using orbeon version dev-post-3.7.1.200909302200. I have attached the style sheet I am using along with the email. The validation works fine in Fire fox. But in IE on hover over the alert exclamation; I am getting two error messages; ‘overlay.element.style’ is null or not an object followed by ‘this.cfg is null or not an object’.

 

      Could you please let me know why these error message popups appear in IE. I am using IE version 7.

 

Thank you.

 

Sincerely,

Ashay

 

View.jsp

 

<xhtml:html xmlns="http://www.w3.org/1999/xhtml"

    xmlns:xforms="http://www.w3.org/2002/xforms"

    xmlns:ev="http://www.w3.org/2001/xml-events"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xmlns:premis="info:lc/xmlns/premis-v2"

    xsi:schemaLocation="info:lc/xmlns/premis-v2 http://www.loc.gov/standards/premis/premis.xsd"

    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"

    xmlns:f="http://orbeon.org/oxf/xml/formatting"

    xmlns:xhtml="http://www.w3.org/1999/xhtml"

    xmlns:widget="http://orbeon.org/oxf/xml/widget"

    xmlns:xs="http://www.w3.org/2001/XMLSchema">

  

    <xhtml:head>

        <xhtml:title>Government Printing Office</xhtml:title>

        <link rel="stylesheet" type="text/css" href="../../../../xme/css/editor.css" />

      

    

        <%@include file="/forms/collections/common/ErrorModel.xhtml" %>

 

 

    </xhtml:head>

  

    <body>

        <div>

            <div id="header" style="margin-left: -10px;">

                <!-- toggle view buttons on the Form -->

                <%@include file="/forms/collections/common/triggerButtons.xhtml" %>

            </div>

          

            <div id="content">

          

                <div style="margin-left: -10px;">

                    <xforms:switch>

                  

                        <!-- main form view -->

                        <xforms:case id="form" selected="true">

                            <xforms:group ref="instance('header-instance')">

                          

                                <!-- Orbeon form validation logic -->

                                <%@include file="/forms/collections/common/validations.xhtml" %>

                          

                                <!-- Forms for Standard User -->

                                <%@include file="/forms/collections/common/ViewErrorDetails.xhtml" %>

                                <%@include file="/forms/collections/common/HeaderStdCommon.xhtml" %>

 

 

                            </xforms:group>

                          

                        </xforms:case>

 

                        <!-- Instance inspector view -->

                        <xforms:case id="inspector">

                            <div class="inspect-screen">

                                <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget" />

                            </div>

                        </xforms:case>

 

                    </xforms:switch>

                </div>

            </div>

            <div id="endbar" />

        </div>

      

    </body>

</xhtml:html>

 

 

HeaderStdCommon.xhtml

 

<xhtml:html xmlns="http://www.w3.org/1999/xhtml"

    xmlns:xforms="http://www.w3.org/2002/xforms"

    xmlns:ev="http://www.w3.org/2001/xml-events"

    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

    xmlns:premis="info:lc/xmlns/premis-v2"

    xsi:schemaLocation="info:lc/xmlns/premis-v2 http://www.loc.gov/standards/premis/premis.xsd"

    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"

    xmlns:f="http://orbeon.org/oxf/xml/formatting"

    xmlns:xhtml="http://www.w3.org/1999/xhtml"

    xmlns:widget="http://orbeon.org/oxf/xml/widget"

    xmlns:xs="http://www.w3.org/2001/XMLSchema">

  

      

    <!--    Dsys Header Information    Display for Standard role        -->

    <div class="metadata-section" id="form">

        <h4>Package Metadata</h4>

        <br/>

        <!-- Collection Code -->

        <p>

            <xforms:output ref="descPkgMd/collectionCode" class="input-long" incremental="true" id="object-title">

                <xforms:label class="justify-field">Collection Code</xforms:label>

            </xforms:output>

        </p>      

        <!-- For 0 to one Quality -->

        <p>

            <xforms:input ref="descPkgMd/quality" class="input-long" incremental="true"  id="qualityStdRole" >

                <xforms:label class="justify-field">Quality</xforms:label>

                <xforms:alert><xforms:output model="error-model" value="instance('resource')/messages/alert/PM/quality" /></xforms:alert>

                <xforms:action ev:event="xforms-value-changed">

                    <xforms:insert context="instance('header-instance')/descPkgMd/quality" origin="xxforms:attribute('quality', 'manual')"/>

                </xforms:action>

            </xforms:input>

            <xforms:group ref=".[count(descPkgMd/quality) gt 0]">

                <xforms:trigger appearance="minimal" ref="self::node()">

                    <xforms:label><img style="padding-left: 5px;"  src="../../../../xme/image/remove1.gif" /></xforms:label>

                    <xforms:delete ev:event="DOMActivate" nodeset="instance('header-instance')/descPkgMd/quality" />

                </xforms:trigger>

            </xforms:group>

            <xforms:group ref="instance('header-instance')/descPkgMd/quality[@quality='manual']">

                <xforms:trigger appearance="minimal" ref="self::node()">

                    <xforms:label><img src="../../../../../xme/image/remove_manual.gif" /></xforms:label>

                    <xforms:delete ev:event="DOMActivate" nodeset="instance('header-instance')/descPkgMd/quality/@quality" />

                </xforms:trigger>

            </xforms:group>

        </p>

    </div>

    </xhtml:html>

 

 

validations.xhtml

 

<!-- Orbeon form validation logic -->

<xforms:action ev:event="xforms-invalid" if="normalize-space(event('alert')) != ''">

    <xforms:action if="not(instance('errors-instance')/error[@id = event('target') and @indexes = string-join(event('repeat-indexes'), '-')])">

        <xforms:insert context="instance('errors-instance')" nodeset="error" origin="instance('error-template-instance')"/>

        <xforms:setvalue ref="instance('errors-instance')/error[last()]/@id" value="event('target')"/>

        <xforms:setvalue ref="instance('errors-instance')/error[last()]/@indexes" value="string-join(event('repeat-indexes'), '-')"/>

    </xforms:action>

    <xforms:setvalue ref="instance('errors-instance')/error[@id = event('target') and @indexes = string-join(event('repeat-indexes'), '-')]/@alert" value="event('alert')"/>

    <xforms:setvalue ref="instance('errors-instance')/error[@id = event('target') and @indexes = string-join(event('repeat-indexes'), '-')]/@label" value="event('label')"/>

</xforms:action>

<xforms:action ev:event="xforms-valid" if="instance('errors-instance')/error[@id = event('target') and @indexes = string-join(event('repeat-indexes'), '-')]">

    <xforms:delete nodeset="instance('errors-instance')/error[@id = event('target') and @indexes = string-join(event('repeat-indexes'), '-')]"/>

</xforms:action>

 

 

triggerButtons.xhtml

 

<div id="trigger-buttons" style="background: #9999cc url('../../../../../xme/image/gradbg.gif') repeat-x; padding-top: 10px;">

 

  <span style="padding-left: 10px">

    <xforms:trigger class="button" ref="instance('toggle-instance')/button2/@readonly">

        <xforms:label><span>Return to Form</span></xforms:label>

        <xforms:toggle ev:event="DOMActivate" case="form"/>

        <xforms:toggle ev:event="DOMActivate" case="sideform"/>

        <xforms:setvalue ev:event="DOMActivate" ref="instance('toggle-instance')/button2/@readonly" value="'true'" />

        <xforms:setvalue ev:event="DOMActivate" ref="instance('toggle-instance')/button1/@readonly" value="'false'" />

    </xforms:trigger>

  </span>  

 

   <span style="padding-left: 10px">

    <xforms:trigger class="button" ref="instance('control-instance')/save-trigger">

        <xforms:label><span>Save</span></xforms:label>

        <xforms:send ev:event="DOMActivate" submission="new-submission" />

    </xforms:trigger>

  </span>  

 

      <span style="padding-left: 10px">

    <xforms:trigger class="button">

        <xforms:label><span>Instance Inspector</span></xforms:label>

        <xforms:toggle ev:event="DOMActivate" case="inspector" />

        <xforms:setvalue ev:event="DOMActivate" ref="instance('toggle-instance')/button2/@readonly" value="'false'" />

    </xforms:trigger>

      </span>  

    

      <xforms:switch>

        <xforms:case id="ready" selected="true" />

        <xforms:case id="case-busy"><strong><span class="submit-error">Waiting for results from Server ...</span></strong></xforms:case>

        <xforms:case id="case-submit-error"><span class="submit-error">Save Error!</span></xforms:case>

        <xforms:case id="case-submit-done"><span class="submit-done">Saved Successfully!!</span></xforms:case>

    </xforms:switch>

</div>

 

 

ErrorModel.xhtml

<xforms:model id="error-model"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:premis="info:lc/xmlns/premis-v2"
    xsi:schemaLocation="info:lc/xmlns/premis-v2 http://www.loc.gov/standards/premis/premis.xsd"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:xs="http://www.w3.org/2001/XMLSchema">

        <!-- This instance file has a collection of all text messages -->   
        <xforms:instance id="resource" src="../../../../../resource/resource_en.xml" />
         
</xforms:model>    


resource_en.xml


<?xml version="1.0" encoding="UTF-8"?>
<resources>
    <messages>
        <alert>
          <PM>           
            <quality>Quality should be a string</quality>
            <governmentAuthor1>Government Author 1 should be a string and should not be empty</governmentAuthor1>
            <governmentAuthor2>Government Author 2 should be a string and should not be empty</governmentAuthor2>
          </PM>
        </alert>
    </messages>
 </resources>

 

 

 

-----Original Message-----
From: Alessandro Vernet [mailto:[hidden email]]
Sent: May 13, 2010 10:16 PM
To: Deshpande, Ashay
Subject: Re: Article to be approved for list ops-users from [hidden email]

 

Hi Ashay,

 

Your subscription to the mailing list worked, and your message went

through. So we're all good! I replied to that message on the list, and

suggest we continue the discussion there.

 

Alex

 

On Thu, May 13, 2010 at 12:51 PM, Deshpande, Ashay <[hidden email]> wrote:

> Hello Alex,

>   I have subscribed for the mentioned mailing list. Could you please let me know if <xforms:alert> message popoup does not work in IE 7 if there is any other javascript or css error on the page.

> 

> Sincerely,

> Ashay

> 

> 

> -----Original Message-----

> From: Alessandro Vernet [mailto:[hidden email]]

> Sent: May 12, 2010 06:51 PM

> To: Deshpande, Ashay

> Subject: Re: Article to be approved for list ops-users from [hidden email]

> 

> Hi Ashay,

> 

> The message below was rejected by the mailing list because you are not

> subscribed to the list under the [hidden email] address. I can

> manually moderate messages sent to the list under another address, but

> this can create delays. So could ask you to subscribe to the list

> under the email you are using, and resend the message below? To

> subscribe to the ops-users mailing list send an email to

> [hidden email] and leave the subject and body of your

> email empty. Thanks!

> 

> Alex

> 

>> From: "Deshpande, Ashay" <[hidden email]>

>> To: "[hidden email]" <[hidden email]>

>> Date: Wed, 12 May 2010 17:56:56 -0400

>> Subject: Request for Information

>> 

>> Hello,

>> 

>>   My name is Ashay. Currently I am working on orbeon Xforms. Could you please add me as a member for this group. Also, I ran into an IE browser error while adding GUI validation using <xforms:bind> and <xforms:alert>. I got an error saying .. "this.cfg is null or not an object" and "overlay.element.style is null or not an object" when I try to hover over the alert exclamation. I get this error only in IE. It works fine in Firefox.

>> 

>> 

>> 

>>             Could you please let me know what could be the reason for this error on IE browser.

>> 

>> 

>> 

>> 

>> 

>> Thank you.

>> 

>> 

>> 

>> Sincerely,

>> 

>> Ashay

>> 

>> 

>> 

>> 

>> 

> 

> 

> 

> --

> Orbeon Forms - Web forms, open-source, for the Enterprise -

> http://www.orbeon.com/

> My Twitter: http://twitter.com/avernet

> 

 

 

 

--

Orbeon Forms - Web forms, open-source, for the Enterprise -

http://www.orbeon.com/

My 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

editor.css (19K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: FW: Article to be approved for list ops-users from adeshpande@gpo.gov

Alessandro  Vernet
Administrator
Ashay,

I got blocked because View.jsp has a dependency on
ViewErrorDetails.xhtml, which I don't have. Realize that to be able to
answer as many question as possible here, we can only spend a few
minutes on each question. (For more dedicated support, we provide
Development Support subscriptions.) So creating an reproducible
example that is minimal is very important. It would be ideal if you
could create one that fits in one file. And it is easier if you attach
the files to your messages, rather than paste them inline. Thanks!

Alex

On Mon, May 17, 2010 at 12:26 PM, Deshpande, Ashay <[hidden email]> wrote:

> Hello Alex,
>
>    I following are files I am using for the application. I am using orbeon
> version dev-post-3.7.1.200909302200. I have attached the style sheet I am
> using along with the email. The validation works fine in Fire fox. But in IE
> on hover over the alert exclamation; I am getting two error messages;
> ‘overlay.element.style’ is null or not an object followed by ‘this.cfg is
> null or not an object’.
>
>
>
>       Could you please let me know why these error message popups appear in
> IE. I am using IE version 7.
>
>
>
> Thank you.
>
>
>
> Sincerely,
>
> Ashay
>
>
>
> View.jsp
>
>
>
> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
>
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>
>
>     <xhtml:head>
>
>         <xhtml:title>Government Printing Office</xhtml:title>
>
>         <link rel="stylesheet" type="text/css"
> href="../../../../xme/css/editor.css" />
>
>
>
>
>
>         <%@include file="/forms/collections/common/ErrorModel.xhtml" %>
>
>
>
>
>
>     </xhtml:head>
>
>
>
>     <body>
>
>         <div>
>
>             <div id="header" style="margin-left: -10px;">
>
>                 <!-- toggle view buttons on the Form -->
>
>                 <%@include
> file="/forms/collections/common/triggerButtons.xhtml" %>
>
>             </div>
>
>
>
>             <div id="content">
>
>
>
>                 <div style="margin-left: -10px;">
>
>                     <xforms:switch>
>
>
>
>                         <!-- main form view -->
>
>                         <xforms:case id="form" selected="true">
>
>                             <xforms:group ref="instance('header-instance')">
>
>
>
>                                 <!-- Orbeon form validation logic -->
>
>                                 <%@include
> file="/forms/collections/common/validations.xhtml" %>
>
>
>
>                                 <!-- Forms for Standard User -->
>
>                                 <%@include
> file="/forms/collections/common/ViewErrorDetails.xhtml" %>
>
>                                 <%@include
> file="/forms/collections/common/HeaderStdCommon.xhtml" %>
>
>
>
>
>
>                             </xforms:group>
>
>
>
>                         </xforms:case>
>
>
>
>                         <!-- Instance inspector view -->
>
>                         <xforms:case id="inspector">
>
>                             <div class="inspect-screen">
>
>                                 <widget:xforms-instance-inspector
> xmlns:widget="http://orbeon.org/oxf/xml/widget" />
>
>                             </div>
>
>                         </xforms:case>
>
>
>
>                     </xforms:switch>
>
>                 </div>
>
>             </div>
>
>             <div id="endbar" />
>
>         </div>
>
>
>
>     </body>
>
> </xhtml:html>
>
>
>
>
>
> HeaderStdCommon.xhtml
>
>
>
> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
>
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>
>
>
>
>     <!--    Dsys Header Information    Display for Standard role        -->
>
>     <div class="metadata-section" id="form">
>
>         <h4>Package Metadata</h4>
>
>         <br/>
>
>         <!-- Collection Code -->
>
>         <p>
>
>             <xforms:output ref="descPkgMd/collectionCode" class="input-long"
> incremental="true" id="object-title">
>
>                 <xforms:label class="justify-field">Collection
> Code</xforms:label>
>
>             </xforms:output>
>
>         </p>
>
>         <!-- For 0 to one Quality -->
>
>         <p>
>
>             <xforms:input ref="descPkgMd/quality" class="input-long"
> incremental="true"  id="qualityStdRole" >
>
>                 <xforms:label class="justify-field">Quality</xforms:label>
>
>                 <xforms:alert><xforms:output model="error-model"
> value="instance('resource')/messages/alert/PM/quality" /></xforms:alert>
>
>                 <xforms:action ev:event="xforms-value-changed">
>
>                     <xforms:insert
> context="instance('header-instance')/descPkgMd/quality"
> origin="xxforms:attribute('quality', 'manual')"/>
>
>                 </xforms:action>
>
>             </xforms:input>
>
>             <xforms:group ref=".[count(descPkgMd/quality) gt 0]">
>
>                 <xforms:trigger appearance="minimal" ref="self::node()">
>
>                     <xforms:label><img style="padding-left: 5px;"
> src="../../../../xme/image/remove1.gif" /></xforms:label>
>
>                     <xforms:delete ev:event="DOMActivate"
> nodeset="instance('header-instance')/descPkgMd/quality" />
>
>                 </xforms:trigger>
>
>             </xforms:group>
>
>             <xforms:group
> ref="instance('header-instance')/descPkgMd/quality[@quality='manual']">
>
>                 <xforms:trigger appearance="minimal" ref="self::node()">
>
>                     <xforms:label><img
> src="../../../../../xme/image/remove_manual.gif" /></xforms:label>
>
>                     <xforms:delete ev:event="DOMActivate"
> nodeset="instance('header-instance')/descPkgMd/quality/@quality" />
>
>                 </xforms:trigger>
>
>             </xforms:group>
>
>         </p>
>
>     </div>
>
>     </xhtml:html>
>
>
>
>
>
> validations.xhtml
>
>
>
> <!-- Orbeon form validation logic -->
>
> <xforms:action ev:event="xforms-invalid" if="normalize-space(event('alert'))
> != ''">
>
>     <xforms:action if="not(instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'), '-')])">
>
>         <xforms:insert context="instance('errors-instance')" nodeset="error"
> origin="instance('error-template-instance')"/>
>
>         <xforms:setvalue ref="instance('errors-instance')/error[last()]/@id"
> value="event('target')"/>
>
>         <xforms:setvalue
> ref="instance('errors-instance')/error[last()]/@indexes"
> value="string-join(event('repeat-indexes'), '-')"/>
>
>     </xforms:action>
>
>     <xforms:setvalue ref="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'),
> '-')]/@alert" value="event('alert')"/>
>
>     <xforms:setvalue ref="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'),
> '-')]/@label" value="event('label')"/>
>
> </xforms:action>
>
> <xforms:action ev:event="xforms-valid"
> if="instance('errors-instance')/error[@id = event('target') and @indexes =
> string-join(event('repeat-indexes'), '-')]">
>
>     <xforms:delete nodeset="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'), '-')]"/>
>
> </xforms:action>
>
>
>
>
>
> triggerButtons.xhtml
>
>
>
> <div id="trigger-buttons" style="background: #9999cc
> url('../../../../../xme/image/gradbg.gif') repeat-x; padding-top: 10px;">
>
>
>
>   <span style="padding-left: 10px">
>
>     <xforms:trigger class="button"
> ref="instance('toggle-instance')/button2/@readonly">
>
>         <xforms:label><span>Return to Form</span></xforms:label>
>
>         <xforms:toggle ev:event="DOMActivate" case="form"/>
>
>         <xforms:toggle ev:event="DOMActivate" case="sideform"/>
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button2/@readonly" value="'true'" />
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button1/@readonly" value="'false'" />
>
>     </xforms:trigger>
>
>   </span>
>
>
>
>    <span style="padding-left: 10px">
>
>     <xforms:trigger class="button"
> ref="instance('control-instance')/save-trigger">
>
>         <xforms:label><span>Save</span></xforms:label>
>
>         <xforms:send ev:event="DOMActivate" submission="new-submission" />
>
>     </xforms:trigger>
>
>   </span>
>
>
>
>       <span style="padding-left: 10px">
>
>     <xforms:trigger class="button">
>
>         <xforms:label><span>Instance Inspector</span></xforms:label>
>
>         <xforms:toggle ev:event="DOMActivate" case="inspector" />
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button2/@readonly" value="'false'" />
>
>     </xforms:trigger>
>
>       </span>
>
>
>
>       <xforms:switch>
>
>         <xforms:case id="ready" selected="true" />
>
>         <xforms:case id="case-busy"><strong><span
> class="submit-error">Waiting for results from Server
> ...</span></strong></xforms:case>
>
>         <xforms:case id="case-submit-error"><span class="submit-error">Save
> Error!</span></xforms:case>
>
>         <xforms:case id="case-submit-done"><span class="submit-done">Saved
> Successfully!!</span></xforms:case>
>
>     </xforms:switch>
>
> </div>
>
>
>
>
>
> ErrorModel.xhtml
>
> <xforms:model id="error-model"
>     xmlns="http://www.w3.org/1999/xhtml"
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns:premis="info:lc/xmlns/premis-v2"
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>         <!-- This instance file has a collection of all text messages -->
>         <xforms:instance id="resource"
> src="../../../../../resource/resource_en.xml" />
>
> </xforms:model>
>
>
> resource_en.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <resources>
>     <messages>
>         <alert>
>           <PM>
>             <quality>Quality should be a string</quality>
>             <governmentAuthor1>Government Author 1 should be a string and
> should not be empty</governmentAuthor1>
>             <governmentAuthor2>Government Author 2 should be a string and
> should not be empty</governmentAuthor2>
>           </PM>
>         </alert>
>     </messages>
>  </resources>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Alessandro Vernet [mailto:[hidden email]]
> Sent: May 13, 2010 10:16 PM
> To: Deshpande, Ashay
> Subject: Re: Article to be approved for list ops-users from
> [hidden email]
>
>
>
> Hi Ashay,
>
>
>
> Your subscription to the mailing list worked, and your message went
>
> through. So we're all good! I replied to that message on the list, and
>
> suggest we continue the discussion there.
>
>
>
> Alex
>
>
>
> On Thu, May 13, 2010 at 12:51 PM, Deshpande, Ashay <[hidden email]>
> wrote:
>
>> Hello Alex,
>
>>   I have subscribed for the mentioned mailing list. Could you please let
>> me know if <xforms:alert> message popoup does not work in IE 7 if there is
>> any other javascript or css error on the page.
>
>>
>
>> Sincerely,
>
>> Ashay
>
>>
>
>>
>
>> -----Original Message-----
>
>> From: Alessandro Vernet [mailto:[hidden email]]
>
>> Sent: May 12, 2010 06:51 PM
>
>> To: Deshpande, Ashay
>
>> Subject: Re: Article to be approved for list ops-users from
>> [hidden email]
>
>>
>
>> Hi Ashay,
>
>>
>
>> The message below was rejected by the mailing list because you are not
>
>> subscribed to the list under the [hidden email] address. I can
>
>> manually moderate messages sent to the list under another address, but
>
>> this can create delays. So could ask you to subscribe to the list
>
>> under the email you are using, and resend the message below? To
>
>> subscribe to the ops-users mailing list send an email to
>
>> [hidden email] and leave the subject and body of your
>
>> email empty. Thanks!
>
>>
>
>> Alex
>
>>
>
>>> From: "Deshpande, Ashay" <[hidden email]>
>
>>> To: "[hidden email]" <[hidden email]>
>
>>> Date: Wed, 12 May 2010 17:56:56 -0400
>
>>> Subject: Request for Information
>
>>>
>
>>> Hello,
>
>>>
>
>>>   My name is Ashay. Currently I am working on orbeon Xforms. Could you
>>> please add me as a member for this group. Also, I ran into an IE browser
>>> error while adding GUI validation using <xforms:bind> and <xforms:alert>. I
>>> got an error saying .. "this.cfg is null or not an object" and
>>> "overlay.element.style is null or not an object" when I try to hover over
>>> the alert exclamation. I get this error only in IE. It works fine in
>>> Firefox.
>
>>>
>
>>>
>
>>>
>
>>>             Could you please let me know what could be the reason for
>>> this error on IE browser.
>
>>>
>
>>>
>
>>>
>
>>>
>
>>>
>
>>> Thank you.
>
>>>
>
>>>
>
>>>
>
>>> Sincerely,
>
>>>
>
>>> Ashay
>
>>>
>
>>>
>
>>>
>
>>>
>
>>>
>
>>
>
>>
>
>>
>
>> --
>
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
>> http://www.orbeon.com/
>
>> My Twitter: http://twitter.com/avernet
>
>>
>
>
>
>
>
>
>
> --
>
> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
> http://www.orbeon.com/
>
> My 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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Re: FW: Article to be approved for list ops-users from adeshpande@gpo.gov

Deshpande, Ashay
Hello Alex,
  I ma sorry I missed the file. I have attached the ViewErrorDetails.xhtml file along with this email.

Sincerely,
Ashay

-----Original Message-----
From: Alessandro Vernet [mailto:[hidden email]]
Sent: May 18, 2010 02:23 PM
To: [hidden email]
Subject: [ops-users] Re: FW: Article to be approved for list ops-users from [hidden email]

Ashay,

I got blocked because View.jsp has a dependency on
ViewErrorDetails.xhtml, which I don't have. Realize that to be able to
answer as many question as possible here, we can only spend a few
minutes on each question. (For more dedicated support, we provide
Development Support subscriptions.) So creating an reproducible
example that is minimal is very important. It would be ideal if you
could create one that fits in one file. And it is easier if you attach
the files to your messages, rather than paste them inline. Thanks!

Alex

On Mon, May 17, 2010 at 12:26 PM, Deshpande, Ashay <[hidden email]> wrote:

> Hello Alex,
>
>    I following are files I am using for the application. I am using orbeon
> version dev-post-3.7.1.200909302200. I have attached the style sheet I am
> using along with the email. The validation works fine in Fire fox. But in IE
> on hover over the alert exclamation; I am getting two error messages;
> 'overlay.element.style' is null or not an object followed by 'this.cfg is
> null or not an object'.
>
>
>
>       Could you please let me know why these error message popups appear in
> IE. I am using IE version 7.
>
>
>
> Thank you.
>
>
>
> Sincerely,
>
> Ashay
>
>
>
> View.jsp
>
>
>
> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
>
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>
>
>     <xhtml:head>
>
>         <xhtml:title>Government Printing Office</xhtml:title>
>
>         <link rel="stylesheet" type="text/css"
> href="../../../../xme/css/editor.css" />
>
>
>
>
>
>         <%@include file="/forms/collections/common/ErrorModel.xhtml" %>
>
>
>
>
>
>     </xhtml:head>
>
>
>
>     <body>
>
>         <div>
>
>             <div id="header" style="margin-left: -10px;">
>
>                 <!-- toggle view buttons on the Form -->
>
>                 <%@include
> file="/forms/collections/common/triggerButtons.xhtml" %>
>
>             </div>
>
>
>
>             <div id="content">
>
>
>
>                 <div style="margin-left: -10px;">
>
>                     <xforms:switch>
>
>
>
>                         <!-- main form view -->
>
>                         <xforms:case id="form" selected="true">
>
>                             <xforms:group ref="instance('header-instance')">
>
>
>
>                                 <!-- Orbeon form validation logic -->
>
>                                 <%@include
> file="/forms/collections/common/validations.xhtml" %>
>
>
>
>                                 <!-- Forms for Standard User -->
>
>                                 <%@include
> file="/forms/collections/common/ViewErrorDetails.xhtml" %>
>
>                                 <%@include
> file="/forms/collections/common/HeaderStdCommon.xhtml" %>
>
>
>
>
>
>                             </xforms:group>
>
>
>
>                         </xforms:case>
>
>
>
>                         <!-- Instance inspector view -->
>
>                         <xforms:case id="inspector">
>
>                             <div class="inspect-screen">
>
>                                 <widget:xforms-instance-inspector
> xmlns:widget="http://orbeon.org/oxf/xml/widget" />
>
>                             </div>
>
>                         </xforms:case>
>
>
>
>                     </xforms:switch>
>
>                 </div>
>
>             </div>
>
>             <div id="endbar" />
>
>         </div>
>
>
>
>     </body>
>
> </xhtml:html>
>
>
>
>
>
> HeaderStdCommon.xhtml
>
>
>
> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
>
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>
>
>
>
>     <!--    Dsys Header Information    Display for Standard role        -->
>
>     <div class="metadata-section" id="form">
>
>         <h4>Package Metadata</h4>
>
>         <br/>
>
>         <!-- Collection Code -->
>
>         <p>
>
>             <xforms:output ref="descPkgMd/collectionCode" class="input-long"
> incremental="true" id="object-title">
>
>                 <xforms:label class="justify-field">Collection
> Code</xforms:label>
>
>             </xforms:output>
>
>         </p>
>
>         <!-- For 0 to one Quality -->
>
>         <p>
>
>             <xforms:input ref="descPkgMd/quality" class="input-long"
> incremental="true"  id="qualityStdRole" >
>
>                 <xforms:label class="justify-field">Quality</xforms:label>
>
>                 <xforms:alert><xforms:output model="error-model"
> value="instance('resource')/messages/alert/PM/quality" /></xforms:alert>
>
>                 <xforms:action ev:event="xforms-value-changed">
>
>                     <xforms:insert
> context="instance('header-instance')/descPkgMd/quality"
> origin="xxforms:attribute('quality', 'manual')"/>
>
>                 </xforms:action>
>
>             </xforms:input>
>
>             <xforms:group ref=".[count(descPkgMd/quality) gt 0]">
>
>                 <xforms:trigger appearance="minimal" ref="self::node()">
>
>                     <xforms:label><img style="padding-left: 5px;"
> src="../../../../xme/image/remove1.gif" /></xforms:label>
>
>                     <xforms:delete ev:event="DOMActivate"
> nodeset="instance('header-instance')/descPkgMd/quality" />
>
>                 </xforms:trigger>
>
>             </xforms:group>
>
>             <xforms:group
> ref="instance('header-instance')/descPkgMd/quality[@quality='manual']">
>
>                 <xforms:trigger appearance="minimal" ref="self::node()">
>
>                     <xforms:label><img
> src="../../../../../xme/image/remove_manual.gif" /></xforms:label>
>
>                     <xforms:delete ev:event="DOMActivate"
> nodeset="instance('header-instance')/descPkgMd/quality/@quality" />
>
>                 </xforms:trigger>
>
>             </xforms:group>
>
>         </p>
>
>     </div>
>
>     </xhtml:html>
>
>
>
>
>
> validations.xhtml
>
>
>
> <!-- Orbeon form validation logic -->
>
> <xforms:action ev:event="xforms-invalid" if="normalize-space(event('alert'))
> != ''">
>
>     <xforms:action if="not(instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'), '-')])">
>
>         <xforms:insert context="instance('errors-instance')" nodeset="error"
> origin="instance('error-template-instance')"/>
>
>         <xforms:setvalue ref="instance('errors-instance')/error[last()]/@id"
> value="event('target')"/>
>
>         <xforms:setvalue
> ref="instance('errors-instance')/error[last()]/@indexes"
> value="string-join(event('repeat-indexes'), '-')"/>
>
>     </xforms:action>
>
>     <xforms:setvalue ref="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'),
> '-')]/@alert" value="event('alert')"/>
>
>     <xforms:setvalue ref="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'),
> '-')]/@label" value="event('label')"/>
>
> </xforms:action>
>
> <xforms:action ev:event="xforms-valid"
> if="instance('errors-instance')/error[@id = event('target') and @indexes =
> string-join(event('repeat-indexes'), '-')]">
>
>     <xforms:delete nodeset="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'), '-')]"/>
>
> </xforms:action>
>
>
>
>
>
> triggerButtons.xhtml
>
>
>
> <div id="trigger-buttons" style="background: #9999cc
> url('../../../../../xme/image/gradbg.gif') repeat-x; padding-top: 10px;">
>
>
>
>   <span style="padding-left: 10px">
>
>     <xforms:trigger class="button"
> ref="instance('toggle-instance')/button2/@readonly">
>
>         <xforms:label><span>Return to Form</span></xforms:label>
>
>         <xforms:toggle ev:event="DOMActivate" case="form"/>
>
>         <xforms:toggle ev:event="DOMActivate" case="sideform"/>
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button2/@readonly" value="'true'" />
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button1/@readonly" value="'false'" />
>
>     </xforms:trigger>
>
>   </span>
>
>
>
>    <span style="padding-left: 10px">
>
>     <xforms:trigger class="button"
> ref="instance('control-instance')/save-trigger">
>
>         <xforms:label><span>Save</span></xforms:label>
>
>         <xforms:send ev:event="DOMActivate" submission="new-submission" />
>
>     </xforms:trigger>
>
>   </span>
>
>
>
>       <span style="padding-left: 10px">
>
>     <xforms:trigger class="button">
>
>         <xforms:label><span>Instance Inspector</span></xforms:label>
>
>         <xforms:toggle ev:event="DOMActivate" case="inspector" />
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button2/@readonly" value="'false'" />
>
>     </xforms:trigger>
>
>       </span>
>
>
>
>       <xforms:switch>
>
>         <xforms:case id="ready" selected="true" />
>
>         <xforms:case id="case-busy"><strong><span
> class="submit-error">Waiting for results from Server
> ...</span></strong></xforms:case>
>
>         <xforms:case id="case-submit-error"><span class="submit-error">Save
> Error!</span></xforms:case>
>
>         <xforms:case id="case-submit-done"><span class="submit-done">Saved
> Successfully!!</span></xforms:case>
>
>     </xforms:switch>
>
> </div>
>
>
>
>
>
> ErrorModel.xhtml
>
> <xforms:model id="error-model"
>     xmlns="http://www.w3.org/1999/xhtml"
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns:premis="info:lc/xmlns/premis-v2"
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>         <!-- This instance file has a collection of all text messages -->
>         <xforms:instance id="resource"
> src="../../../../../resource/resource_en.xml" />
>
> </xforms:model>
>
>
> resource_en.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <resources>
>     <messages>
>         <alert>
>           <PM>
>             <quality>Quality should be a string</quality>
>             <governmentAuthor1>Government Author 1 should be a string and
> should not be empty</governmentAuthor1>
>             <governmentAuthor2>Government Author 2 should be a string and
> should not be empty</governmentAuthor2>
>           </PM>
>         </alert>
>     </messages>
>  </resources>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Alessandro Vernet [mailto:[hidden email]]
> Sent: May 13, 2010 10:16 PM
> To: Deshpande, Ashay
> Subject: Re: Article to be approved for list ops-users from
> [hidden email]
>
>
>
> Hi Ashay,
>
>
>
> Your subscription to the mailing list worked, and your message went
>
> through. So we're all good! I replied to that message on the list, and
>
> suggest we continue the discussion there.
>
>
>
> Alex
>
>
>
> On Thu, May 13, 2010 at 12:51 PM, Deshpande, Ashay <[hidden email]>
> wrote:
>
>> Hello Alex,
>
>>   I have subscribed for the mentioned mailing list. Could you please let
>> me know if <xforms:alert> message popoup does not work in IE 7 if there is
>> any other javascript or css error on the page.
>
>>
>
>> Sincerely,
>
>> Ashay
>
>>
>
>>
>
>> -----Original Message-----
>
>> From: Alessandro Vernet [mailto:[hidden email]]
>
>> Sent: May 12, 2010 06:51 PM
>
>> To: Deshpande, Ashay
>
>> Subject: Re: Article to be approved for list ops-users from
>> [hidden email]
>
>>
>
>> Hi Ashay,
>
>>
>
>> The message below was rejected by the mailing list because you are not
>
>> subscribed to the list under the [hidden email] address. I can
>
>> manually moderate messages sent to the list under another address, but
>
>> this can create delays. So could ask you to subscribe to the list
>
>> under the email you are using, and resend the message below? To
>
>> subscribe to the ops-users mailing list send an email to
>
>> [hidden email] and leave the subject and body of your
>
>> email empty. Thanks!
>
>>
>
>> Alex
>
>>
>
>>> From: "Deshpande, Ashay" <[hidden email]>
>
>>> To: "[hidden email]" <[hidden email]>
>
>>> Date: Wed, 12 May 2010 17:56:56 -0400
>
>>> Subject: Request for Information
>
>>>
>
>>> Hello,
>
>>>
>
>>>   My name is Ashay. Currently I am working on orbeon Xforms. Could you
>>> please add me as a member for this group. Also, I ran into an IE browser
>>> error while adding GUI validation using <xforms:bind> and <xforms:alert>. I
>>> got an error saying .. "this.cfg is null or not an object" and
>>> "overlay.element.style is null or not an object" when I try to hover over
>>> the alert exclamation. I get this error only in IE. It works fine in
>>> Firefox.
>
>>>
>
>>>
>
>>>
>
>>>             Could you please let me know what could be the reason for
>>> this error on IE browser.
>
>>>
>
>>>
>
>>>
>
>>>
>
>>>
>
>>> Thank you.
>
>>>
>
>>>
>
>>>
>
>>> Sincerely,
>
>>>
>
>>> Ashay
>
>>>
>
>>>
>
>>>
>
>>>
>
>>>
>
>>
>
>>
>
>>
>
>> --
>
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
>> http://www.orbeon.com/
>
>> My Twitter: http://twitter.com/avernet
>
>>
>
>
>
>
>
>
>
> --
>
> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
> http://www.orbeon.com/
>
> My 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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My 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

ViewErrorDetails.xhtml (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Re: FW: Article to be approved for list ops-users from adeshpande@gpo.gov

Deshpande, Ashay
In reply to this post by Alessandro Vernet
Hello Alex,
   I have reproduced the error by directly using orbeon project.        [http://localhost/orbeon/example/view.xhtml]

    The error is not seen in IE 7 browser; if the cursor is hovered over the alert exclamation mark for the @isContentSearch dropdown.

   I have attached the files for the same along with the email.

Sincerely,
Ashay

-----Original Message-----
From: Deshpande, Ashay
Sent: May 18, 2010 02:33 PM
To: '[hidden email]'
Subject: RE: [ops-users] Re: FW: Article to be approved for list ops-users from [hidden email]

Hello Alex,
  I ma sorry I missed the file. I have attached the ViewErrorDetails.xhtml file along with this email.

Sincerely,
Ashay

-----Original Message-----
From: Alessandro Vernet [mailto:[hidden email]]
Sent: May 18, 2010 02:23 PM
To: [hidden email]
Subject: [ops-users] Re: FW: Article to be approved for list ops-users from [hidden email]

Ashay,

I got blocked because View.jsp has a dependency on
ViewErrorDetails.xhtml, which I don't have. Realize that to be able to
answer as many question as possible here, we can only spend a few
minutes on each question. (For more dedicated support, we provide
Development Support subscriptions.) So creating an reproducible
example that is minimal is very important. It would be ideal if you
could create one that fits in one file. And it is easier if you attach
the files to your messages, rather than paste them inline. Thanks!

Alex

On Mon, May 17, 2010 at 12:26 PM, Deshpande, Ashay <[hidden email]> wrote:

> Hello Alex,
>
>    I following are files I am using for the application. I am using orbeon
> version dev-post-3.7.1.200909302200. I have attached the style sheet I am
> using along with the email. The validation works fine in Fire fox. But in IE
> on hover over the alert exclamation; I am getting two error messages;
> 'overlay.element.style' is null or not an object followed by 'this.cfg is
> null or not an object'.
>
>
>
>       Could you please let me know why these error message popups appear in
> IE. I am using IE version 7.
>
>
>
> Thank you.
>
>
>
> Sincerely,
>
> Ashay
>
>
>
> View.jsp
>
>
>
> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
>
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>
>
>     <xhtml:head>
>
>         <xhtml:title>Government Printing Office</xhtml:title>
>
>         <link rel="stylesheet" type="text/css"
> href="../../../../xme/css/editor.css" />
>
>
>
>
>
>         <%@include file="/forms/collections/common/ErrorModel.xhtml" %>
>
>
>
>
>
>     </xhtml:head>
>
>
>
>     <body>
>
>         <div>
>
>             <div id="header" style="margin-left: -10px;">
>
>                 <!-- toggle view buttons on the Form -->
>
>                 <%@include
> file="/forms/collections/common/triggerButtons.xhtml" %>
>
>             </div>
>
>
>
>             <div id="content">
>
>
>
>                 <div style="margin-left: -10px;">
>
>                     <xforms:switch>
>
>
>
>                         <!-- main form view -->
>
>                         <xforms:case id="form" selected="true">
>
>                             <xforms:group ref="instance('header-instance')">
>
>
>
>                                 <!-- Orbeon form validation logic -->
>
>                                 <%@include
> file="/forms/collections/common/validations.xhtml" %>
>
>
>
>                                 <!-- Forms for Standard User -->
>
>                                 <%@include
> file="/forms/collections/common/ViewErrorDetails.xhtml" %>
>
>                                 <%@include
> file="/forms/collections/common/HeaderStdCommon.xhtml" %>
>
>
>
>
>
>                             </xforms:group>
>
>
>
>                         </xforms:case>
>
>
>
>                         <!-- Instance inspector view -->
>
>                         <xforms:case id="inspector">
>
>                             <div class="inspect-screen">
>
>                                 <widget:xforms-instance-inspector
> xmlns:widget="http://orbeon.org/oxf/xml/widget" />
>
>                             </div>
>
>                         </xforms:case>
>
>
>
>                     </xforms:switch>
>
>                 </div>
>
>             </div>
>
>             <div id="endbar" />
>
>         </div>
>
>
>
>     </body>
>
> </xhtml:html>
>
>
>
>
>
> HeaderStdCommon.xhtml
>
>
>
> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
>
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>
>
>
>
>     <!--    Dsys Header Information    Display for Standard role        -->
>
>     <div class="metadata-section" id="form">
>
>         <h4>Package Metadata</h4>
>
>         <br/>
>
>         <!-- Collection Code -->
>
>         <p>
>
>             <xforms:output ref="descPkgMd/collectionCode" class="input-long"
> incremental="true" id="object-title">
>
>                 <xforms:label class="justify-field">Collection
> Code</xforms:label>
>
>             </xforms:output>
>
>         </p>
>
>         <!-- For 0 to one Quality -->
>
>         <p>
>
>             <xforms:input ref="descPkgMd/quality" class="input-long"
> incremental="true"  id="qualityStdRole" >
>
>                 <xforms:label class="justify-field">Quality</xforms:label>
>
>                 <xforms:alert><xforms:output model="error-model"
> value="instance('resource')/messages/alert/PM/quality" /></xforms:alert>
>
>                 <xforms:action ev:event="xforms-value-changed">
>
>                     <xforms:insert
> context="instance('header-instance')/descPkgMd/quality"
> origin="xxforms:attribute('quality', 'manual')"/>
>
>                 </xforms:action>
>
>             </xforms:input>
>
>             <xforms:group ref=".[count(descPkgMd/quality) gt 0]">
>
>                 <xforms:trigger appearance="minimal" ref="self::node()">
>
>                     <xforms:label><img style="padding-left: 5px;"
> src="../../../../xme/image/remove1.gif" /></xforms:label>
>
>                     <xforms:delete ev:event="DOMActivate"
> nodeset="instance('header-instance')/descPkgMd/quality" />
>
>                 </xforms:trigger>
>
>             </xforms:group>
>
>             <xforms:group
> ref="instance('header-instance')/descPkgMd/quality[@quality='manual']">
>
>                 <xforms:trigger appearance="minimal" ref="self::node()">
>
>                     <xforms:label><img
> src="../../../../../xme/image/remove_manual.gif" /></xforms:label>
>
>                     <xforms:delete ev:event="DOMActivate"
> nodeset="instance('header-instance')/descPkgMd/quality/@quality" />
>
>                 </xforms:trigger>
>
>             </xforms:group>
>
>         </p>
>
>     </div>
>
>     </xhtml:html>
>
>
>
>
>
> validations.xhtml
>
>
>
> <!-- Orbeon form validation logic -->
>
> <xforms:action ev:event="xforms-invalid" if="normalize-space(event('alert'))
> != ''">
>
>     <xforms:action if="not(instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'), '-')])">
>
>         <xforms:insert context="instance('errors-instance')" nodeset="error"
> origin="instance('error-template-instance')"/>
>
>         <xforms:setvalue ref="instance('errors-instance')/error[last()]/@id"
> value="event('target')"/>
>
>         <xforms:setvalue
> ref="instance('errors-instance')/error[last()]/@indexes"
> value="string-join(event('repeat-indexes'), '-')"/>
>
>     </xforms:action>
>
>     <xforms:setvalue ref="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'),
> '-')]/@alert" value="event('alert')"/>
>
>     <xforms:setvalue ref="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'),
> '-')]/@label" value="event('label')"/>
>
> </xforms:action>
>
> <xforms:action ev:event="xforms-valid"
> if="instance('errors-instance')/error[@id = event('target') and @indexes =
> string-join(event('repeat-indexes'), '-')]">
>
>     <xforms:delete nodeset="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'), '-')]"/>
>
> </xforms:action>
>
>
>
>
>
> triggerButtons.xhtml
>
>
>
> <div id="trigger-buttons" style="background: #9999cc
> url('../../../../../xme/image/gradbg.gif') repeat-x; padding-top: 10px;">
>
>
>
>   <span style="padding-left: 10px">
>
>     <xforms:trigger class="button"
> ref="instance('toggle-instance')/button2/@readonly">
>
>         <xforms:label><span>Return to Form</span></xforms:label>
>
>         <xforms:toggle ev:event="DOMActivate" case="form"/>
>
>         <xforms:toggle ev:event="DOMActivate" case="sideform"/>
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button2/@readonly" value="'true'" />
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button1/@readonly" value="'false'" />
>
>     </xforms:trigger>
>
>   </span>
>
>
>
>    <span style="padding-left: 10px">
>
>     <xforms:trigger class="button"
> ref="instance('control-instance')/save-trigger">
>
>         <xforms:label><span>Save</span></xforms:label>
>
>         <xforms:send ev:event="DOMActivate" submission="new-submission" />
>
>     </xforms:trigger>
>
>   </span>
>
>
>
>       <span style="padding-left: 10px">
>
>     <xforms:trigger class="button">
>
>         <xforms:label><span>Instance Inspector</span></xforms:label>
>
>         <xforms:toggle ev:event="DOMActivate" case="inspector" />
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button2/@readonly" value="'false'" />
>
>     </xforms:trigger>
>
>       </span>
>
>
>
>       <xforms:switch>
>
>         <xforms:case id="ready" selected="true" />
>
>         <xforms:case id="case-busy"><strong><span
> class="submit-error">Waiting for results from Server
> ...</span></strong></xforms:case>
>
>         <xforms:case id="case-submit-error"><span class="submit-error">Save
> Error!</span></xforms:case>
>
>         <xforms:case id="case-submit-done"><span class="submit-done">Saved
> Successfully!!</span></xforms:case>
>
>     </xforms:switch>
>
> </div>
>
>
>
>
>
> ErrorModel.xhtml
>
> <xforms:model id="error-model"
>     xmlns="http://www.w3.org/1999/xhtml"
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns:premis="info:lc/xmlns/premis-v2"
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>         <!-- This instance file has a collection of all text messages -->
>         <xforms:instance id="resource"
> src="../../../../../resource/resource_en.xml" />
>
> </xforms:model>
>
>
> resource_en.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <resources>
>     <messages>
>         <alert>
>           <PM>
>             <quality>Quality should be a string</quality>
>             <governmentAuthor1>Government Author 1 should be a string and
> should not be empty</governmentAuthor1>
>             <governmentAuthor2>Government Author 2 should be a string and
> should not be empty</governmentAuthor2>
>           </PM>
>         </alert>
>     </messages>
>  </resources>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Alessandro Vernet [mailto:[hidden email]]
> Sent: May 13, 2010 10:16 PM
> To: Deshpande, Ashay
> Subject: Re: Article to be approved for list ops-users from
> [hidden email]
>
>
>
> Hi Ashay,
>
>
>
> Your subscription to the mailing list worked, and your message went
>
> through. So we're all good! I replied to that message on the list, and
>
> suggest we continue the discussion there.
>
>
>
> Alex
>
>
>
> On Thu, May 13, 2010 at 12:51 PM, Deshpande, Ashay <[hidden email]>
> wrote:
>
>> Hello Alex,
>
>>   I have subscribed for the mentioned mailing list. Could you please let
>> me know if <xforms:alert> message popoup does not work in IE 7 if there is
>> any other javascript or css error on the page.
>
>>
>
>> Sincerely,
>
>> Ashay
>
>>
>
>>
>
>> -----Original Message-----
>
>> From: Alessandro Vernet [mailto:[hidden email]]
>
>> Sent: May 12, 2010 06:51 PM
>
>> To: Deshpande, Ashay
>
>> Subject: Re: Article to be approved for list ops-users from
>> [hidden email]
>
>>
>
>> Hi Ashay,
>
>>
>
>> The message below was rejected by the mailing list because you are not
>
>> subscribed to the list under the [hidden email] address. I can
>
>> manually moderate messages sent to the list under another address, but
>
>> this can create delays. So could ask you to subscribe to the list
>
>> under the email you are using, and resend the message below? To
>
>> subscribe to the ops-users mailing list send an email to
>
>> [hidden email] and leave the subject and body of your
>
>> email empty. Thanks!
>
>>
>
>> Alex
>
>>
>
>>> From: "Deshpande, Ashay" <[hidden email]>
>
>>> To: "[hidden email]" <[hidden email]>
>
>>> Date: Wed, 12 May 2010 17:56:56 -0400
>
>>> Subject: Request for Information
>
>>>
>
>>> Hello,
>
>>>
>
>>>   My name is Ashay. Currently I am working on orbeon Xforms. Could you
>>> please add me as a member for this group. Also, I ran into an IE browser
>>> error while adding GUI validation using <xforms:bind> and <xforms:alert>. I
>>> got an error saying .. "this.cfg is null or not an object" and
>>> "overlay.element.style is null or not an object" when I try to hover over
>>> the alert exclamation. I get this error only in IE. It works fine in
>>> Firefox.
>
>>>
>
>>>
>
>>>
>
>>>             Could you please let me know what could be the reason for
>>> this error on IE browser.
>
>>>
>
>>>
>
>>>
>
>>>
>
>>>
>
>>> Thank you.
>
>>>
>
>>>
>
>>>
>
>>> Sincerely,
>
>>>
>
>>> Ashay
>
>>>
>
>>>
>
>>>
>
>>>
>
>>>
>
>>
>
>>
>
>>
>
>> --
>
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
>> http://www.orbeon.com/
>
>> My Twitter: http://twitter.com/avernet
>
>>
>
>
>
>
>
>
>
> --
>
> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
> http://www.orbeon.com/
>
> My 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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My 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

view.xhtml (147K) Download Attachment
editor.css (19K) Download Attachment
page-flow.xml (228 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: FW: Article to be approved for list ops-users from adeshpande@gpo.gov

Alessandro  Vernet
Administrator
In reply to this post by Deshpande, Ashay
Ashay,

I have this example running (for my own reference:
20100524-ashay-js-error). Now what should I do to reproduce the
JavaScript error you talked about earlier?

Alex

On Mon, May 17, 2010 at 12:26 PM, Deshpande, Ashay <[hidden email]> wrote:

> Hello Alex,
>
>    I following are files I am using for the application. I am using orbeon
> version dev-post-3.7.1.200909302200. I have attached the style sheet I am
> using along with the email. The validation works fine in Fire fox. But in IE
> on hover over the alert exclamation; I am getting two error messages;
> ‘overlay.element.style’ is null or not an object followed by ‘this.cfg is
> null or not an object’.
>
>
>
>       Could you please let me know why these error message popups appear in
> IE. I am using IE version 7.
>
>
>
> Thank you.
>
>
>
> Sincerely,
>
> Ashay
>
>
>
> View.jsp
>
>
>
> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
>
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>
>
>     <xhtml:head>
>
>         <xhtml:title>Government Printing Office</xhtml:title>
>
>         <link rel="stylesheet" type="text/css"
> href="../../../../xme/css/editor.css" />
>
>
>
>
>
>         <%@include file="/forms/collections/common/ErrorModel.xhtml" %>
>
>
>
>
>
>     </xhtml:head>
>
>
>
>     <body>
>
>         <div>
>
>             <div id="header" style="margin-left: -10px;">
>
>                 <!-- toggle view buttons on the Form -->
>
>                 <%@include
> file="/forms/collections/common/triggerButtons.xhtml" %>
>
>             </div>
>
>
>
>             <div id="content">
>
>
>
>                 <div style="margin-left: -10px;">
>
>                     <xforms:switch>
>
>
>
>                         <!-- main form view -->
>
>                         <xforms:case id="form" selected="true">
>
>                             <xforms:group ref="instance('header-instance')">
>
>
>
>                                 <!-- Orbeon form validation logic -->
>
>                                 <%@include
> file="/forms/collections/common/validations.xhtml" %>
>
>
>
>                                 <!-- Forms for Standard User -->
>
>                                 <%@include
> file="/forms/collections/common/ViewErrorDetails.xhtml" %>
>
>                                 <%@include
> file="/forms/collections/common/HeaderStdCommon.xhtml" %>
>
>
>
>
>
>                             </xforms:group>
>
>
>
>                         </xforms:case>
>
>
>
>                         <!-- Instance inspector view -->
>
>                         <xforms:case id="inspector">
>
>                             <div class="inspect-screen">
>
>                                 <widget:xforms-instance-inspector
> xmlns:widget="http://orbeon.org/oxf/xml/widget" />
>
>                             </div>
>
>                         </xforms:case>
>
>
>
>                     </xforms:switch>
>
>                 </div>
>
>             </div>
>
>             <div id="endbar" />
>
>         </div>
>
>
>
>     </body>
>
> </xhtml:html>
>
>
>
>
>
> HeaderStdCommon.xhtml
>
>
>
> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
>
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>
>
>
>
>     <!--    Dsys Header Information    Display for Standard role        -->
>
>     <div class="metadata-section" id="form">
>
>         <h4>Package Metadata</h4>
>
>         <br/>
>
>         <!-- Collection Code -->
>
>         <p>
>
>             <xforms:output ref="descPkgMd/collectionCode" class="input-long"
> incremental="true" id="object-title">
>
>                 <xforms:label class="justify-field">Collection
> Code</xforms:label>
>
>             </xforms:output>
>
>         </p>
>
>         <!-- For 0 to one Quality -->
>
>         <p>
>
>             <xforms:input ref="descPkgMd/quality" class="input-long"
> incremental="true"  id="qualityStdRole" >
>
>                 <xforms:label class="justify-field">Quality</xforms:label>
>
>                 <xforms:alert><xforms:output model="error-model"
> value="instance('resource')/messages/alert/PM/quality" /></xforms:alert>
>
>                 <xforms:action ev:event="xforms-value-changed">
>
>                     <xforms:insert
> context="instance('header-instance')/descPkgMd/quality"
> origin="xxforms:attribute('quality', 'manual')"/>
>
>                 </xforms:action>
>
>             </xforms:input>
>
>             <xforms:group ref=".[count(descPkgMd/quality) gt 0]">
>
>                 <xforms:trigger appearance="minimal" ref="self::node()">
>
>                     <xforms:label><img style="padding-left: 5px;"
> src="../../../../xme/image/remove1.gif" /></xforms:label>
>
>                     <xforms:delete ev:event="DOMActivate"
> nodeset="instance('header-instance')/descPkgMd/quality" />
>
>                 </xforms:trigger>
>
>             </xforms:group>
>
>             <xforms:group
> ref="instance('header-instance')/descPkgMd/quality[@quality='manual']">
>
>                 <xforms:trigger appearance="minimal" ref="self::node()">
>
>                     <xforms:label><img
> src="../../../../../xme/image/remove_manual.gif" /></xforms:label>
>
>                     <xforms:delete ev:event="DOMActivate"
> nodeset="instance('header-instance')/descPkgMd/quality/@quality" />
>
>                 </xforms:trigger>
>
>             </xforms:group>
>
>         </p>
>
>     </div>
>
>     </xhtml:html>
>
>
>
>
>
> validations.xhtml
>
>
>
> <!-- Orbeon form validation logic -->
>
> <xforms:action ev:event="xforms-invalid" if="normalize-space(event('alert'))
> != ''">
>
>     <xforms:action if="not(instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'), '-')])">
>
>         <xforms:insert context="instance('errors-instance')" nodeset="error"
> origin="instance('error-template-instance')"/>
>
>         <xforms:setvalue ref="instance('errors-instance')/error[last()]/@id"
> value="event('target')"/>
>
>         <xforms:setvalue
> ref="instance('errors-instance')/error[last()]/@indexes"
> value="string-join(event('repeat-indexes'), '-')"/>
>
>     </xforms:action>
>
>     <xforms:setvalue ref="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'),
> '-')]/@alert" value="event('alert')"/>
>
>     <xforms:setvalue ref="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'),
> '-')]/@label" value="event('label')"/>
>
> </xforms:action>
>
> <xforms:action ev:event="xforms-valid"
> if="instance('errors-instance')/error[@id = event('target') and @indexes =
> string-join(event('repeat-indexes'), '-')]">
>
>     <xforms:delete nodeset="instance('errors-instance')/error[@id =
> event('target') and @indexes = string-join(event('repeat-indexes'), '-')]"/>
>
> </xforms:action>
>
>
>
>
>
> triggerButtons.xhtml
>
>
>
> <div id="trigger-buttons" style="background: #9999cc
> url('../../../../../xme/image/gradbg.gif') repeat-x; padding-top: 10px;">
>
>
>
>   <span style="padding-left: 10px">
>
>     <xforms:trigger class="button"
> ref="instance('toggle-instance')/button2/@readonly">
>
>         <xforms:label><span>Return to Form</span></xforms:label>
>
>         <xforms:toggle ev:event="DOMActivate" case="form"/>
>
>         <xforms:toggle ev:event="DOMActivate" case="sideform"/>
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button2/@readonly" value="'true'" />
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button1/@readonly" value="'false'" />
>
>     </xforms:trigger>
>
>   </span>
>
>
>
>    <span style="padding-left: 10px">
>
>     <xforms:trigger class="button"
> ref="instance('control-instance')/save-trigger">
>
>         <xforms:label><span>Save</span></xforms:label>
>
>         <xforms:send ev:event="DOMActivate" submission="new-submission" />
>
>     </xforms:trigger>
>
>   </span>
>
>
>
>       <span style="padding-left: 10px">
>
>     <xforms:trigger class="button">
>
>         <xforms:label><span>Instance Inspector</span></xforms:label>
>
>         <xforms:toggle ev:event="DOMActivate" case="inspector" />
>
>         <xforms:setvalue ev:event="DOMActivate"
> ref="instance('toggle-instance')/button2/@readonly" value="'false'" />
>
>     </xforms:trigger>
>
>       </span>
>
>
>
>       <xforms:switch>
>
>         <xforms:case id="ready" selected="true" />
>
>         <xforms:case id="case-busy"><strong><span
> class="submit-error">Waiting for results from Server
> ...</span></strong></xforms:case>
>
>         <xforms:case id="case-submit-error"><span class="submit-error">Save
> Error!</span></xforms:case>
>
>         <xforms:case id="case-submit-done"><span class="submit-done">Saved
> Successfully!!</span></xforms:case>
>
>     </xforms:switch>
>
> </div>
>
>
>
>
>
> ErrorModel.xhtml
>
> <xforms:model id="error-model"
>     xmlns="http://www.w3.org/1999/xhtml"
>     xmlns:xforms="http://www.w3.org/2002/xforms"
>     xmlns:ev="http://www.w3.org/2001/xml-events"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xmlns:premis="info:lc/xmlns/premis-v2"
>     xsi:schemaLocation="info:lc/xmlns/premis-v2
> http://www.loc.gov/standards/premis/premis.xsd"
>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>         <!-- This instance file has a collection of all text messages -->
>         <xforms:instance id="resource"
> src="../../../../../resource/resource_en.xml" />
>
> </xforms:model>
>
>
> resource_en.xml
>
> <?xml version="1.0" encoding="UTF-8"?>
> <resources>
>     <messages>
>         <alert>
>           <PM>
>             <quality>Quality should be a string</quality>
>             <governmentAuthor1>Government Author 1 should be a string and
> should not be empty</governmentAuthor1>
>             <governmentAuthor2>Government Author 2 should be a string and
> should not be empty</governmentAuthor2>
>           </PM>
>         </alert>
>     </messages>
>  </resources>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Alessandro Vernet [mailto:[hidden email]]
> Sent: May 13, 2010 10:16 PM
> To: Deshpande, Ashay
> Subject: Re: Article to be approved for list ops-users from
> [hidden email]
>
>
>
> Hi Ashay,
>
>
>
> Your subscription to the mailing list worked, and your message went
>
> through. So we're all good! I replied to that message on the list, and
>
> suggest we continue the discussion there.
>
>
>
> Alex
>
>
>
> On Thu, May 13, 2010 at 12:51 PM, Deshpande, Ashay <[hidden email]>
> wrote:
>
>> Hello Alex,
>
>>   I have subscribed for the mentioned mailing list. Could you please let
>> me know if <xforms:alert> message popoup does not work in IE 7 if there is
>> any other javascript or css error on the page.
>
>>
>
>> Sincerely,
>
>> Ashay
>
>>
>
>>
>
>> -----Original Message-----
>
>> From: Alessandro Vernet [mailto:[hidden email]]
>
>> Sent: May 12, 2010 06:51 PM
>
>> To: Deshpande, Ashay
>
>> Subject: Re: Article to be approved for list ops-users from
>> [hidden email]
>
>>
>
>> Hi Ashay,
>
>>
>
>> The message below was rejected by the mailing list because you are not
>
>> subscribed to the list under the [hidden email] address. I can
>
>> manually moderate messages sent to the list under another address, but
>
>> this can create delays. So could ask you to subscribe to the list
>
>> under the email you are using, and resend the message below? To
>
>> subscribe to the ops-users mailing list send an email to
>
>> [hidden email] and leave the subject and body of your
>
>> email empty. Thanks!
>
>>
>
>> Alex
>
>>
>
>>> From: "Deshpande, Ashay" <[hidden email]>
>
>>> To: "[hidden email]" <[hidden email]>
>
>>> Date: Wed, 12 May 2010 17:56:56 -0400
>
>>> Subject: Request for Information
>
>>>
>
>>> Hello,
>
>>>
>
>>>   My name is Ashay. Currently I am working on orbeon Xforms. Could you
>>> please add me as a member for this group. Also, I ran into an IE browser
>>> error while adding GUI validation using <xforms:bind> and <xforms:alert>. I
>>> got an error saying .. "this.cfg is null or not an object" and
>>> "overlay.element.style is null or not an object" when I try to hover over
>>> the alert exclamation. I get this error only in IE. It works fine in
>>> Firefox.
>
>>>
>
>>>
>
>>>
>
>>>             Could you please let me know what could be the reason for
>>> this error on IE browser.
>
>>>
>
>>>
>
>>>
>
>>>
>
>>>
>
>>> Thank you.
>
>>>
>
>>>
>
>>>
>
>>> Sincerely,
>
>>>
>
>>> Ashay
>
>>>
>
>>>
>
>>>
>
>>>
>
>>>
>
>>
>
>>
>
>>
>
>> --
>
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
>> http://www.orbeon.com/
>
>> My Twitter: http://twitter.com/avernet
>
>>
>
>
>
>
>
>
>
> --
>
> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
> http://www.orbeon.com/
>
> My 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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

RE: Re: FW: Article to be approved for list ops-users from adeshpande@gpo.gov

Deshpande, Ashay

Hello Alex,

   The javascript error is seen when we click on the help icon/image next to the input fields. The error is seen for first two fields that are under <xforms:repeat> loop in IE version 7 browser when the script debugger is turned ON.

 

Sincerely,

Ashay

 

-----Original Message-----
From: Alessandro Vernet [mailto:[hidden email]]
Sent: May 24, 2010 12:49 PM
To: [hidden email]
Subject: [ops-users] Re: FW: Article to be approved for list ops-users from [hidden email]

 

Ashay,

 

I have this example running (for my own reference:

20100524-ashay-js-error). Now what should I do to reproduce the

JavaScript error you talked about earlier?

 

Alex

 

On Mon, May 17, 2010 at 12:26 PM, Deshpande, Ashay <[hidden email]> wrote:

> Hello Alex,

> 

>    I following are files I am using for the application. I am using orbeon

> version dev-post-3.7.1.200909302200. I have attached the style sheet I am

> using along with the email. The validation works fine in Fire fox. But in IE

> on hover over the alert exclamation; I am getting two error messages;

> ‘overlay.element.style’ is null or not an object followed by ‘this.cfg is

> null or not an object’.

> 

> 

> 

>       Could you please let me know why these error message popups appear in

> IE. I am using IE version 7.

> 

> 

> 

> Thank you.

> 

> 

> 

> Sincerely,

> 

> Ashay

> 

> 

> 

> View.jsp

> 

> 

> 

> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"

> 

>     xmlns:xforms="http://www.w3.org/2002/xforms"

> 

>     xmlns:ev="http://www.w3.org/2001/xml-events"

> 

>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

> 

>     xmlns:premis="info:lc/xmlns/premis-v2"

> 

>     xsi:schemaLocation="info:lc/xmlns/premis-v2

> http://www.loc.gov/standards/premis/premis.xsd"

> 

>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"

> 

>     xmlns:f="http://orbeon.org/oxf/xml/formatting"

> 

>     xmlns:xhtml="http://www.w3.org/1999/xhtml"

> 

>     xmlns:widget="http://orbeon.org/oxf/xml/widget"

> 

>     xmlns:xs="http://www.w3.org/2001/XMLSchema">

> 

> 

> 

>     <xhtml:head>

> 

>         <xhtml:title>Government Printing Office</xhtml:title>

> 

>         <link rel="stylesheet" type="text/css"

> href="../../../../xme/css/editor.css" />

> 

> 

> 

> 

> 

>         <%@include file="/forms/collections/common/ErrorModel.xhtml" %>

> 

> 

> 

> 

> 

>     </xhtml:head>

> 

> 

> 

>     <body>

> 

>         <div>

> 

>             <div id="header" style="margin-left: -10px;">

> 

>                 <!-- toggle view buttons on the Form -->

> 

>                 <%@include

> file="/forms/collections/common/triggerButtons.xhtml" %>

> 

>             </div>

> 

> 

> 

>             <div id="content">

> 

> 

> 

>                 <div style="margin-left: -10px;">

> 

>                     <xforms:switch>

> 

> 

> 

>                         <!-- main form view -->

> 

>                         <xforms:case id="form" selected="true">

> 

>                             <xforms:group ref="instance('header-instance')">

> 

> 

> 

>                                 <!-- Orbeon form validation logic -->

> 

>                                 <%@include

> file="/forms/collections/common/validations.xhtml" %>

> 

> 

> 

>                                 <!-- Forms for Standard User -->

> 

>                                 <%@include

> file="/forms/collections/common/ViewErrorDetails.xhtml" %>

> 

>                                 <%@include

> file="/forms/collections/common/HeaderStdCommon.xhtml" %>

> 

> 

> 

> 

> 

>                             </xforms:group>

> 

> 

> 

>                         </xforms:case>

> 

> 

> 

>                         <!-- Instance inspector view -->

> 

>                         <xforms:case id="inspector">

> 

>                             <div class="inspect-screen">

> 

>                                 <widget:xforms-instance-inspector

> xmlns:widget="http://orbeon.org/oxf/xml/widget" />

> 

>                             </div>

> 

>                         </xforms:case>

> 

> 

> 

>                     </xforms:switch>

> 

>                 </div>

> 

>             </div>

> 

>             <div id="endbar" />

> 

>         </div>

> 

> 

> 

>     </body>

> 

> </xhtml:html>

> 

> 

> 

> 

> 

> HeaderStdCommon.xhtml

> 

> 

> 

> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"

> 

>     xmlns:xforms="http://www.w3.org/2002/xforms"

> 

>     xmlns:ev="http://www.w3.org/2001/xml-events"

> 

>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

> 

>     xmlns:premis="info:lc/xmlns/premis-v2"

> 

>     xsi:schemaLocation="info:lc/xmlns/premis-v2

> http://www.loc.gov/standards/premis/premis.xsd"

> 

>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"

> 

>     xmlns:f="http://orbeon.org/oxf/xml/formatting"

> 

>     xmlns:xhtml="http://www.w3.org/1999/xhtml"

> 

>     xmlns:widget="http://orbeon.org/oxf/xml/widget"

> 

>     xmlns:xs="http://www.w3.org/2001/XMLSchema">

> 

> 

> 

> 

> 

>     <!--    Dsys Header Information    Display for Standard role        -->

> 

>     <div class="metadata-section" id="form">

> 

>         <h4>Package Metadata</h4>

> 

>         <br/>

> 

>         <!-- Collection Code -->

> 

>         <p>

> 

>             <xforms:output ref="descPkgMd/collectionCode" class="input-long"

> incremental="true" id="object-title">

> 

>                 <xforms:label class="justify-field">Collection

> Code</xforms:label>

> 

>             </xforms:output>

> 

>         </p>

> 

>         <!-- For 0 to one Quality -->

> 

>         <p>

> 

>             <xforms:input ref="descPkgMd/quality" class="input-long"

> incremental="true"  id="qualityStdRole" >

> 

>                 <xforms:label class="justify-field">Quality</xforms:label>

> 

>                 <xforms:alert><xforms:output model="error-model"

> value="instance('resource')/messages/alert/PM/quality" /></xforms:alert>

> 

>                 <xforms:action ev:event="xforms-value-changed">

> 

>                     <xforms:insert

> context="instance('header-instance')/descPkgMd/quality"

> origin="xxforms:attribute('quality', 'manual')"/>

> 

>                 </xforms:action>

> 

>             </xforms:input>

> 

>             <xforms:group ref=".[count(descPkgMd/quality) gt 0]">

> 

>                 <xforms:trigger appearance="minimal" ref="self::node()">

> 

>                     <xforms:label><img style="padding-left: 5px;"

> src="../../../../xme/image/remove1.gif" /></xforms:label>

> 

>                     <xforms:delete ev:event="DOMActivate"

> nodeset="instance('header-instance')/descPkgMd/quality" />

> 

>                 </xforms:trigger>

> 

>             </xforms:group>

> 

>             <xforms:group

> ref="instance('header-instance')/descPkgMd/quality[@quality='manual']">

> 

>                 <xforms:trigger appearance="minimal" ref="self::node()">

> 

>                     <xforms:label><img

> src="../../../../../xme/image/remove_manual.gif" /></xforms:label>

> 

>                     <xforms:delete ev:event="DOMActivate"

> nodeset="instance('header-instance')/descPkgMd/quality/@quality" />

> 

>                 </xforms:trigger>

> 

>             </xforms:group>

> 

>         </p>

> 

>     </div>

> 

>     </xhtml:html>

> 

> 

> 

> 

> 

> validations.xhtml

> 

> 

> 

> <!-- Orbeon form validation logic -->

> 

> <xforms:action ev:event="xforms-invalid" if="normalize-space(event('alert'))

> != ''">

> 

>     <xforms:action if="not(instance('errors-instance')/error[@id =

> event('target') and @indexes = string-join(event('repeat-indexes'), '-')])">

> 

>         <xforms:insert context="instance('errors-instance')" nodeset="error"

> origin="instance('error-template-instance')"/>

> 

>         <xforms:setvalue ref="instance('errors-instance')/error[last()]/@id"

> value="event('target')"/>

> 

>         <xforms:setvalue

> ref="instance('errors-instance')/error[last()]/@indexes"

> value="string-join(event('repeat-indexes'), '-')"/>

> 

>     </xforms:action>

> 

>     <xforms:setvalue ref="instance('errors-instance')/error[@id =

> event('target') and @indexes = string-join(event('repeat-indexes'),

> '-')]/@alert" value="event('alert')"/>

> 

>     <xforms:setvalue ref="instance('errors-instance')/error[@id =

> event('target') and @indexes = string-join(event('repeat-indexes'),

> '-')]/@label" value="event('label')"/>

> 

> </xforms:action>

> 

> <xforms:action ev:event="xforms-valid"

> if="instance('errors-instance')/error[@id = event('target') and @indexes =

> string-join(event('repeat-indexes'), '-')]">

> 

>     <xforms:delete nodeset="instance('errors-instance')/error[@id =

> event('target') and @indexes = string-join(event('repeat-indexes'), '-')]"/>

> 

> </xforms:action>

> 

> 

> 

> 

> 

> triggerButtons.xhtml

> 

> 

> 

> <div id="trigger-buttons" style="background: #9999cc

> url('../../../../../xme/image/gradbg.gif') repeat-x; padding-top: 10px;">

> 

> 

> 

>   <span style="padding-left: 10px">

> 

>     <xforms:trigger class="button"

> ref="instance('toggle-instance')/button2/@readonly">

> 

>         <xforms:label><span>Return to Form</span></xforms:label>

> 

>         <xforms:toggle ev:event="DOMActivate" case="form"/>

> 

>         <xforms:toggle ev:event="DOMActivate" case="sideform"/>

> 

>         <xforms:setvalue ev:event="DOMActivate"

> ref="instance('toggle-instance')/button2/@readonly" value="'true'" />

> 

>         <xforms:setvalue ev:event="DOMActivate"

> ref="instance('toggle-instance')/button1/@readonly" value="'false'" />

> 

>     </xforms:trigger>

> 

>   </span>

> 

> 

> 

>    <span style="padding-left: 10px">

> 

>     <xforms:trigger class="button"

> ref="instance('control-instance')/save-trigger">

> 

>         <xforms:label><span>Save</span></xforms:label>

> 

>         <xforms:send ev:event="DOMActivate" submission="new-submission" />

> 

>     </xforms:trigger>

> 

>   </span>

> 

> 

> 

>       <span style="padding-left: 10px">

> 

>     <xforms:trigger class="button">

> 

>         <xforms:label><span>Instance Inspector</span></xforms:label>

> 

>         <xforms:toggle ev:event="DOMActivate" case="inspector" />

> 

>         <xforms:setvalue ev:event="DOMActivate"

> ref="instance('toggle-instance')/button2/@readonly" value="'false'" />

> 

>     </xforms:trigger>

> 

>       </span>

> 

> 

> 

>       <xforms:switch>

> 

>         <xforms:case id="ready" selected="true" />

> 

>         <xforms:case id="case-busy"><strong><span

> class="submit-error">Waiting for results from Server

> ...</span></strong></xforms:case>

> 

>         <xforms:case id="case-submit-error"><span class="submit-error">Save

> Error!</span></xforms:case>

> 

>         <xforms:case id="case-submit-done"><span class="submit-done">Saved

> Successfully!!</span></xforms:case>

> 

>     </xforms:switch>

> 

> </div>

> 

> 

> 

> 

> 

> ErrorModel.xhtml

> 

> <xforms:model id="error-model"

>     xmlns="http://www.w3.org/1999/xhtml"

>     xmlns:xforms="http://www.w3.org/2002/xforms"

>     xmlns:ev="http://www.w3.org/2001/xml-events"

>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

>     xmlns:premis="info:lc/xmlns/premis-v2"

>     xsi:schemaLocation="info:lc/xmlns/premis-v2

> http://www.loc.gov/standards/premis/premis.xsd"

>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"

>     xmlns:f="http://orbeon.org/oxf/xml/formatting"

>     xmlns:xhtml="http://www.w3.org/1999/xhtml"

>     xmlns:widget="http://orbeon.org/oxf/xml/widget"

>     xmlns:xs="http://www.w3.org/2001/XMLSchema">

> 

>         <!-- This instance file has a collection of all text messages -->

>         <xforms:instance id="resource"

> src="../../../../../resource/resource_en.xml" />

> 

> </xforms:model>

> 

> 

> resource_en.xml

> 

> <?xml version="1.0" encoding="UTF-8"?>

> <resources>

>     <messages>

>         <alert>

>           <PM>

>             <quality>Quality should be a string</quality>

>             <governmentAuthor1>Government Author 1 should be a string and

> should not be empty</governmentAuthor1>

>             <governmentAuthor2>Government Author 2 should be a string and

> should not be empty</governmentAuthor2>

>           </PM>

>         </alert>

>     </messages>

>  </resources>

> 

> 

> 

> 

> 

> 

> 

> -----Original Message-----

> From: Alessandro Vernet [mailto:[hidden email]]

> Sent: May 13, 2010 10:16 PM

> To: Deshpande, Ashay

> Subject: Re: Article to be approved for list ops-users from

> [hidden email]

> 

> 

> 

> Hi Ashay,

> 

> 

> 

> Your subscription to the mailing list worked, and your message went

> 

> through. So we're all good! I replied to that message on the list, and

> 

> suggest we continue the discussion there.

> 

> 

> 

> Alex

> 

> 

> 

> On Thu, May 13, 2010 at 12:51 PM, Deshpande, Ashay <[hidden email]>

> wrote:

> 

>> Hello Alex,

> 

>>   I have subscribed for the mentioned mailing list. Could you please let

>> me know if <xforms:alert> message popoup does not work in IE 7 if there is

>> any other javascript or css error on the page.

> 

>> 

> 

>> Sincerely,

> 

>> Ashay

> 

>> 

> 

>> 

> 

>> -----Original Message-----

> 

>> From: Alessandro Vernet [mailto:[hidden email]]

> 

>> Sent: May 12, 2010 06:51 PM

> 

>> To: Deshpande, Ashay

> 

>> Subject: Re: Article to be approved for list ops-users from

>> [hidden email]

> 

>> 

> 

>> Hi Ashay,

> 

>> 

> 

>> The message below was rejected by the mailing list because you are not

> 

>> subscribed to the list under the [hidden email] address. I can

> 

>> manually moderate messages sent to the list under another address, but

> 

>> this can create delays. So could ask you to subscribe to the list

> 

>> under the email you are using, and resend the message below? To

> 

>> subscribe to the ops-users mailing list send an email to

> 

>> [hidden email] and leave the subject and body of your

> 

>> email empty. Thanks!

> 

>> 

> 

>> Alex

> 

>> 

> 

>>> From: "Deshpande, Ashay" <[hidden email]>

> 

>>> To: "[hidden email]" <[hidden email]>

> 

>>> Date: Wed, 12 May 2010 17:56:56 -0400

> 

>>> Subject: Request for Information

> 

>>> 

> 

>>> Hello,

> 

>>> 

> 

>>>   My name is Ashay. Currently I am working on orbeon Xforms. Could you

>>> please add me as a member for this group. Also, I ran into an IE browser

>>> error while adding GUI validation using <xforms:bind> and <xforms:alert>. I

>>> got an error saying .. "this.cfg is null or not an object" and

>>> "overlay.element.style is null or not an object" when I try to hover over

>>> the alert exclamation. I get this error only in IE. It works fine in

>>> Firefox.

> 

>>> 

> 

>>> 

> 

>>> 

> 

>>>             Could you please let me know what could be the reason for

>>> this error on IE browser.

> 

>>> 

> 

>>> 

> 

>>> 

> 

>>> 

> 

>>> 

> 

>>> Thank you.

> 

>>> 

> 

>>> 

> 

>>> 

> 

>>> Sincerely,

> 

>>> 

> 

>>> Ashay

> 

>>> 

> 

>>> 

> 

>>> 

> 

>>> 

> 

>>> 

> 

>> 

> 

>> 

> 

>> 

> 

>> --

> 

>> Orbeon Forms - Web forms, open-source, for the Enterprise -

> 

>> http://www.orbeon.com/

> 

>> My Twitter: http://twitter.com/avernet

> 

>> 

> 

> 

> 

> 

> 

> 

> 

> --

> 

> Orbeon Forms - Web forms, open-source, for the Enterprise -

> 

> http://www.orbeon.com/

> 

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

> 

> 

 

 

 

--

Orbeon Forms - Web forms, open-source, for the Enterprise -

http://www.orbeon.com/

My 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: FW: Article to be approved for list ops-users from adeshpande@gpo.gov

Alessandro  Vernet
Administrator
Ashay,

I am trying this in that example as well with IE7, and don't see a
JavaScript error. So it looks like this has been resolved. Also see my
comment about this here:

http://orbeon-forms-ops-users.24843.n4.nabble.com/Change-in-Conf-Files-tp2221766p2229378.html

Alex

On Mon, May 24, 2010 at 9:54 AM, Deshpande, Ashay <[hidden email]> wrote:

> Hello Alex,
>
>    The javascript error is seen when we click on the help icon/image next to
> the input fields. The error is seen for first two fields that are under
> <xforms:repeat> loop in IE version 7 browser when the script debugger is
> turned ON.
>
>
>
> Sincerely,
>
> Ashay
>
>
>
> -----Original Message-----
> From: Alessandro Vernet [mailto:[hidden email]]
> Sent: May 24, 2010 12:49 PM
> To: [hidden email]
> Subject: [ops-users] Re: FW: Article to be approved for list ops-users from
> [hidden email]
>
>
>
> Ashay,
>
>
>
> I have this example running (for my own reference:
>
> 20100524-ashay-js-error). Now what should I do to reproduce the
>
> JavaScript error you talked about earlier?
>
>
>
> Alex
>
>
>
> On Mon, May 17, 2010 at 12:26 PM, Deshpande, Ashay <[hidden email]>
> wrote:
>
>> Hello Alex,
>
>>
>
>>    I following are files I am using for the application. I am using orbeon
>
>> version dev-post-3.7.1.200909302200. I have attached the style sheet I am
>
>> using along with the email. The validation works fine in Fire fox. But in
>> IE
>
>> on hover over the alert exclamation; I am getting two error messages;
>
>> ‘overlay.element.style’ is null or not an object followed by ‘this.cfg is
>
>> null or not an object’.
>
>>
>
>>
>
>>
>
>>       Could you please let me know why these error message popups appear
>> in
>
>> IE. I am using IE version 7.
>
>>
>
>>
>
>>
>
>> Thank you.
>
>>
>
>>
>
>>
>
>> Sincerely,
>
>>
>
>> Ashay
>
>>
>
>>
>
>>
>
>> View.jsp
>
>>
>
>>
>
>>
>
>> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
>
>>
>
>>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>>
>
>>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>>
>
>>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>>
>
>>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>>
>
>>     xsi:schemaLocation="info:lc/xmlns/premis-v2
>
>> http://www.loc.gov/standards/premis/premis.xsd"
>
>>
>
>>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>>
>
>>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>>
>
>>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>>
>
>>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>>
>
>>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>>
>
>>
>
>>
>
>>     <xhtml:head>
>
>>
>
>>         <xhtml:title>Government Printing Office</xhtml:title>
>
>>
>
>>         <link rel="stylesheet" type="text/css"
>
>> href="../../../../xme/css/editor.css" />
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>         <%@include file="/forms/collections/common/ErrorModel.xhtml" %>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>     </xhtml:head>
>
>>
>
>>
>
>>
>
>>     <body>
>
>>
>
>>         <div>
>
>>
>
>>             <div id="header" style="margin-left: -10px;">
>
>>
>
>>                 <!-- toggle view buttons on the Form -->
>
>>
>
>>                 <%@include
>
>> file="/forms/collections/common/triggerButtons.xhtml" %>
>
>>
>
>>             </div>
>
>>
>
>>
>
>>
>
>>             <div id="content">
>
>>
>
>>
>
>>
>
>>                 <div style="margin-left: -10px;">
>
>>
>
>>                     <xforms:switch>
>
>>
>
>>
>
>>
>
>>                         <!-- main form view -->
>
>>
>
>>                         <xforms:case id="form" selected="true">
>
>>
>
>>                             <xforms:group
>> ref="instance('header-instance')">
>
>>
>
>>
>
>>
>
>>                                 <!-- Orbeon form validation logic -->
>
>>
>
>>                                 <%@include
>
>> file="/forms/collections/common/validations.xhtml" %>
>
>>
>
>>
>
>>
>
>>                                 <!-- Forms for Standard User -->
>
>>
>
>>                                 <%@include
>
>> file="/forms/collections/common/ViewErrorDetails.xhtml" %>
>
>>
>
>>                                 <%@include
>
>> file="/forms/collections/common/HeaderStdCommon.xhtml" %>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>                             </xforms:group>
>
>>
>
>>
>
>>
>
>>                         </xforms:case>
>
>>
>
>>
>
>>
>
>>                         <!-- Instance inspector view -->
>
>>
>
>>                         <xforms:case id="inspector">
>
>>
>
>>                             <div class="inspect-screen">
>
>>
>
>>                                 <widget:xforms-instance-inspector
>
>> xmlns:widget="http://orbeon.org/oxf/xml/widget" />
>
>>
>
>>                             </div>
>
>>
>
>>                         </xforms:case>
>
>>
>
>>
>
>>
>
>>                     </xforms:switch>
>
>>
>
>>                 </div>
>
>>
>
>>             </div>
>
>>
>
>>             <div id="endbar" />
>
>>
>
>>         </div>
>
>>
>
>>
>
>>
>
>>     </body>
>
>>
>
>> </xhtml:html>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> HeaderStdCommon.xhtml
>
>>
>
>>
>
>>
>
>> <xhtml:html xmlns="http://www.w3.org/1999/xhtml"
>
>>
>
>>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>>
>
>>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>>
>
>>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>>
>
>>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>>
>
>>     xsi:schemaLocation="info:lc/xmlns/premis-v2
>
>> http://www.loc.gov/standards/premis/premis.xsd"
>
>>
>
>>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>>
>
>>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>>
>
>>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>>
>
>>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>>
>
>>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>     <!--    Dsys Header Information    Display for Standard role
>> -->
>
>>
>
>>     <div class="metadata-section" id="form">
>
>>
>
>>         <h4>Package Metadata</h4>
>
>>
>
>>         <br/>
>
>>
>
>>         <!-- Collection Code -->
>
>>
>
>>         <p>
>
>>
>
>>             <xforms:output ref="descPkgMd/collectionCode"
>> class="input-long"
>
>> incremental="true" id="object-title">
>
>>
>
>>                 <xforms:label class="justify-field">Collection
>
>> Code</xforms:label>
>
>>
>
>>             </xforms:output>
>
>>
>
>>         </p>
>
>>
>
>>         <!-- For 0 to one Quality -->
>
>>
>
>>         <p>
>
>>
>
>>             <xforms:input ref="descPkgMd/quality" class="input-long"
>
>> incremental="true"  id="qualityStdRole" >
>
>>
>
>>                 <xforms:label class="justify-field">Quality</xforms:label>
>
>>
>
>>                 <xforms:alert><xforms:output model="error-model"
>
>> value="instance('resource')/messages/alert/PM/quality" /></xforms:alert>
>
>>
>
>>                 <xforms:action ev:event="xforms-value-changed">
>
>>
>
>>                     <xforms:insert
>
>> context="instance('header-instance')/descPkgMd/quality"
>
>> origin="xxforms:attribute('quality', 'manual')"/>
>
>>
>
>>                 </xforms:action>
>
>>
>
>>             </xforms:input>
>
>>
>
>>             <xforms:group ref=".[count(descPkgMd/quality) gt 0]">
>
>>
>
>>                 <xforms:trigger appearance="minimal" ref="self::node()">
>
>>
>
>>                     <xforms:label><img style="padding-left: 5px;"
>
>> src="../../../../xme/image/remove1.gif" /></xforms:label>
>
>>
>
>>                     <xforms:delete ev:event="DOMActivate"
>
>> nodeset="instance('header-instance')/descPkgMd/quality" />
>
>>
>
>>                 </xforms:trigger>
>
>>
>
>>             </xforms:group>
>
>>
>
>>             <xforms:group
>
>> ref="instance('header-instance')/descPkgMd/quality[@quality='manual']">
>
>>
>
>>                 <xforms:trigger appearance="minimal" ref="self::node()">
>
>>
>
>>                     <xforms:label><img
>
>> src="../../../../../xme/image/remove_manual.gif" /></xforms:label>
>
>>
>
>>                     <xforms:delete ev:event="DOMActivate"
>
>> nodeset="instance('header-instance')/descPkgMd/quality/@quality" />
>
>>
>
>>                 </xforms:trigger>
>
>>
>
>>             </xforms:group>
>
>>
>
>>         </p>
>
>>
>
>>     </div>
>
>>
>
>>     </xhtml:html>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> validations.xhtml
>
>>
>
>>
>
>>
>
>> <!-- Orbeon form validation logic -->
>
>>
>
>> <xforms:action ev:event="xforms-invalid"
>> if="normalize-space(event('alert'))
>
>> != ''">
>
>>
>
>>     <xforms:action if="not(instance('errors-instance')/error[@id =
>
>> event('target') and @indexes = string-join(event('repeat-indexes'),
>> '-')])">
>
>>
>
>>         <xforms:insert context="instance('errors-instance')"
>> nodeset="error"
>
>> origin="instance('error-template-instance')"/>
>
>>
>
>>         <xforms:setvalue
>> ref="instance('errors-instance')/error[last()]/@id"
>
>> value="event('target')"/>
>
>>
>
>>         <xforms:setvalue
>
>> ref="instance('errors-instance')/error[last()]/@indexes"
>
>> value="string-join(event('repeat-indexes'), '-')"/>
>
>>
>
>>     </xforms:action>
>
>>
>
>>     <xforms:setvalue ref="instance('errors-instance')/error[@id =
>
>> event('target') and @indexes = string-join(event('repeat-indexes'),
>
>> '-')]/@alert" value="event('alert')"/>
>
>>
>
>>     <xforms:setvalue ref="instance('errors-instance')/error[@id =
>
>> event('target') and @indexes = string-join(event('repeat-indexes'),
>
>> '-')]/@label" value="event('label')"/>
>
>>
>
>> </xforms:action>
>
>>
>
>> <xforms:action ev:event="xforms-valid"
>
>> if="instance('errors-instance')/error[@id = event('target') and @indexes =
>
>> string-join(event('repeat-indexes'), '-')]">
>
>>
>
>>     <xforms:delete nodeset="instance('errors-instance')/error[@id =
>
>> event('target') and @indexes = string-join(event('repeat-indexes'),
>> '-')]"/>
>
>>
>
>> </xforms:action>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> triggerButtons.xhtml
>
>>
>
>>
>
>>
>
>> <div id="trigger-buttons" style="background: #9999cc
>
>> url('../../../../../xme/image/gradbg.gif') repeat-x; padding-top: 10px;">
>
>>
>
>>
>
>>
>
>>   <span style="padding-left: 10px">
>
>>
>
>>     <xforms:trigger class="button"
>
>> ref="instance('toggle-instance')/button2/@readonly">
>
>>
>
>>         <xforms:label><span>Return to Form</span></xforms:label>
>
>>
>
>>         <xforms:toggle ev:event="DOMActivate" case="form"/>
>
>>
>
>>         <xforms:toggle ev:event="DOMActivate" case="sideform"/>
>
>>
>
>>         <xforms:setvalue ev:event="DOMActivate"
>
>> ref="instance('toggle-instance')/button2/@readonly" value="'true'" />
>
>>
>
>>         <xforms:setvalue ev:event="DOMActivate"
>
>> ref="instance('toggle-instance')/button1/@readonly" value="'false'" />
>
>>
>
>>     </xforms:trigger>
>
>>
>
>>   </span>
>
>>
>
>>
>
>>
>
>>    <span style="padding-left: 10px">
>
>>
>
>>     <xforms:trigger class="button"
>
>> ref="instance('control-instance')/save-trigger">
>
>>
>
>>         <xforms:label><span>Save</span></xforms:label>
>
>>
>
>>         <xforms:send ev:event="DOMActivate" submission="new-submission" />
>
>>
>
>>     </xforms:trigger>
>
>>
>
>>   </span>
>
>>
>
>>
>
>>
>
>>       <span style="padding-left: 10px">
>
>>
>
>>     <xforms:trigger class="button">
>
>>
>
>>         <xforms:label><span>Instance Inspector</span></xforms:label>
>
>>
>
>>         <xforms:toggle ev:event="DOMActivate" case="inspector" />
>
>>
>
>>         <xforms:setvalue ev:event="DOMActivate"
>
>> ref="instance('toggle-instance')/button2/@readonly" value="'false'" />
>
>>
>
>>     </xforms:trigger>
>
>>
>
>>       </span>
>
>>
>
>>
>
>>
>
>>       <xforms:switch>
>
>>
>
>>         <xforms:case id="ready" selected="true" />
>
>>
>
>>         <xforms:case id="case-busy"><strong><span
>
>> class="submit-error">Waiting for results from Server
>
>> ...</span></strong></xforms:case>
>
>>
>
>>         <xforms:case id="case-submit-error"><span
>> class="submit-error">Save
>
>> Error!</span></xforms:case>
>
>>
>
>>         <xforms:case id="case-submit-done"><span class="submit-done">Saved
>
>> Successfully!!</span></xforms:case>
>
>>
>
>>     </xforms:switch>
>
>>
>
>> </div>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> ErrorModel.xhtml
>
>>
>
>> <xforms:model id="error-model"
>
>>     xmlns="http://www.w3.org/1999/xhtml"
>
>>     xmlns:xforms="http://www.w3.org/2002/xforms"
>
>>     xmlns:ev="http://www.w3.org/2001/xml-events"
>
>>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
>>     xmlns:premis="info:lc/xmlns/premis-v2"
>
>>     xsi:schemaLocation="info:lc/xmlns/premis-v2
>
>> http://www.loc.gov/standards/premis/premis.xsd"
>
>>     xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>
>>     xmlns:f="http://orbeon.org/oxf/xml/formatting"
>
>>     xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
>>     xmlns:widget="http://orbeon.org/oxf/xml/widget"
>
>>     xmlns:xs="http://www.w3.org/2001/XMLSchema">
>
>>
>
>>         <!-- This instance file has a collection of all text messages -->
>
>>         <xforms:instance id="resource"
>
>> src="../../../../../resource/resource_en.xml" />
>
>>
>
>> </xforms:model>
>
>>
>
>>
>
>> resource_en.xml
>
>>
>
>> <?xml version="1.0" encoding="UTF-8"?>
>
>> <resources>
>
>>     <messages>
>
>>         <alert>
>
>>           <PM>
>
>>             <quality>Quality should be a string</quality>
>
>>             <governmentAuthor1>Government Author 1 should be a string and
>
>> should not be empty</governmentAuthor1>
>
>>             <governmentAuthor2>Government Author 2 should be a string and
>
>> should not be empty</governmentAuthor2>
>
>>           </PM>
>
>>         </alert>
>
>>     </messages>
>
>>  </resources>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> -----Original Message-----
>
>> From: Alessandro Vernet [mailto:[hidden email]]
>
>> Sent: May 13, 2010 10:16 PM
>
>> To: Deshpande, Ashay
>
>> Subject: Re: Article to be approved for list ops-users from
>
>> [hidden email]
>
>>
>
>>
>
>>
>
>> Hi Ashay,
>
>>
>
>>
>
>>
>
>> Your subscription to the mailing list worked, and your message went
>
>>
>
>> through. So we're all good! I replied to that message on the list, and
>
>>
>
>> suggest we continue the discussion there.
>
>>
>
>>
>
>>
>
>> Alex
>
>>
>
>>
>
>>
>
>> On Thu, May 13, 2010 at 12:51 PM, Deshpande, Ashay <[hidden email]>
>
>> wrote:
>
>>
>
>>> Hello Alex,
>
>>
>
>>>   I have subscribed for the mentioned mailing list. Could you please let
>
>>> me know if <xforms:alert> message popoup does not work in IE 7 if there
>>> is
>
>>> any other javascript or css error on the page.
>
>>
>
>>>
>
>>
>
>>> Sincerely,
>
>>
>
>>> Ashay
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> -----Original Message-----
>
>>
>
>>> From: Alessandro Vernet [mailto:[hidden email]]
>
>>
>
>>> Sent: May 12, 2010 06:51 PM
>
>>
>
>>> To: Deshpande, Ashay
>
>>
>
>>> Subject: Re: Article to be approved for list ops-users from
>
>>> [hidden email]
>
>>
>
>>>
>
>>
>
>>> Hi Ashay,
>
>>
>
>>>
>
>>
>
>>> The message below was rejected by the mailing list because you are not
>
>>
>
>>> subscribed to the list under the [hidden email] address. I can
>
>>
>
>>> manually moderate messages sent to the list under another address, but
>
>>
>
>>> this can create delays. So could ask you to subscribe to the list
>
>>
>
>>> under the email you are using, and resend the message below? To
>
>>
>
>>> subscribe to the ops-users mailing list send an email to
>
>>
>
>>> [hidden email] and leave the subject and body of your
>
>>
>
>>> email empty. Thanks!
>
>>
>
>>>
>
>>
>
>>> Alex
>
>>
>
>>>
>
>>
>
>>>> From: "Deshpande, Ashay" <[hidden email]>
>
>>
>
>>>> To: "[hidden email]" <[hidden email]>
>
>>
>
>>>> Date: Wed, 12 May 2010 17:56:56 -0400
>
>>
>
>>>> Subject: Request for Information
>
>>
>
>>>>
>
>>
>
>>>> Hello,
>
>>
>
>>>>
>
>>
>
>>>>   My name is Ashay. Currently I am working on orbeon Xforms. Could you
>
>>>> please add me as a member for this group. Also, I ran into an IE browser
>
>>>> error while adding GUI validation using <xforms:bind> and
>>>> <xforms:alert>. I
>
>>>> got an error saying .. "this.cfg is null or not an object" and
>
>>>> "overlay.element.style is null or not an object" when I try to hover
>>>> over
>
>>>> the alert exclamation. I get this error only in IE. It works fine in
>
>>>> Firefox.
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>>             Could you please let me know what could be the reason for
>
>>>> this error on IE browser.
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>> Thank you.
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>> Sincerely,
>
>>
>
>>>>
>
>>
>
>>>> Ashay
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>>
>
>>
>
>>> --
>
>>
>
>>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
>>
>
>>> http://www.orbeon.com/
>
>>
>
>>> My Twitter: http://twitter.com/avernet
>
>>
>
>>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> --
>
>>
>
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
>>
>
>> http://www.orbeon.com/
>
>>
>
>> My 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
>
>>
>
>>
>
>
>
>
>
>
>
> --
>
> Orbeon Forms - Web forms, open-source, for the Enterprise -
>
> http://www.orbeon.com/
>
> My 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
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My 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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet