required="true"

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

required="true"

Einar Moos
Hello,

The indicators (!) of fields required according to schema or binds are not working on 3.7.0beta1.200809050411. I studied the code in your DMV form that has them displayed, unable to discover a solution. The G form either never did or I don't remember. Can you provide a clue?

-- einar
Reply | Threaded
Open this post in threaded view
|

Re: re quired="true"

Erik Bruchez
Administrator
Are they not appearing even if you visit the fielsd (e.g. tab out from  
them)?

Also, if you use something like Firebug, do you see the xforms-invalid  
class on the controls?

-Erik

On Sep 5, 2008, at 1:38 PM, parisiana wrote:

>
> Hello,
>
> The indicators (!) of fields required according to schema or binds  
> are not
> working on 3.7.0beta1.200809050411. I studied the code in your DMV  
> form that
> has them displayed, unable to discover a solution. The G form either  
> never
> did or I don't remember. Can you provide a clue?
>
> -- einar
> --
> View this message in context: http://www.nabble.com/required%3D%22true%22-tp19339057p19339057.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: re quired="true"

Einar Moos
Sorry, not appearing and there is no xforms-invalid class.

-- einar

On Mon, Sep 8, 2008 at 7:24 PM, Erik Bruchez <[hidden email]> wrote:

> Are they not appearing even if you visit the fielsd (e.g. tab out from
> them)?
>
> Also, if you use something like Firebug, do you see the xforms-invalid class
> on the controls?
>
> -Erik
>
> On Sep 5, 2008, at 1:38 PM, parisiana wrote:
>
>>
>> Hello,
>>
>> The indicators (!) of fields required according to schema or binds are not
>> working on 3.7.0beta1.200809050411. I studied the code in your DMV form
>> that
>> has them displayed, unable to discover a solution. The G form either never
>> did or I don't remember. Can you provide a clue?
>>
>> -- einar
>> --
>> View this message in context:
>> http://www.nabble.com/required%3D%22true%22-tp19339057p19339057.html
>> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
-- Einar Moos
-- parisiana.com

Tel: 0676660080


--
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 quired="true"

Einar Moos
In reply to this post by Erik Bruchez
In Firebug I found class xforms-required empty and xforms-invalid.

The DMV form, however, has xforms-invalid xforms-required
xforms-required-empty and *show* the (!) pointer.

The bookcast form no longer displays the warning.

Could you tell me were the image comes from?

Thanks,

-- einar



On Mon, Sep 8, 2008 at 7:24 PM, Erik Bruchez <[hidden email]> wrote:

> Are they not appearing even if you visit the fielsd (e.g. tab out from
> them)?
>
> Also, if you use something like Firebug, do you see the xforms-invalid class
> on the controls?
>
> -Erik
>
> On Sep 5, 2008, at 1:38 PM, parisiana wrote:
>
>>
>> Hello,
>>
>> The indicators (!) of fields required according to schema or binds are not
>> working on 3.7.0beta1.200809050411. I studied the code in your DMV form
>> that
>> has them displayed, unable to discover a solution. The G form either never
>> did or I don't remember. Can you provide a clue?
>>
>> -- einar
>> --
>> View this message in context:
>> http://www.nabble.com/required%3D%22true%22-tp19339057p19339057.html
>> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com.
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
-- Einar Moos
-- parisiana.com

Tel: 0676660080


--
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: required="true"

Frank Feng
In reply to this post by Einar Moos
I had the same problem! The "!" does not work at all while enterring invalid data in.

Any suggestions?

Frank


parisiana wrote
Hello,

The indicators (!) of fields required according to schema or binds are not working on 3.7.0beta1.200809050411. I studied the code in your DMV form that has them displayed, unable to discover a solution. The G form either never did or I don't remember. Can you provide a clue?

-- einar
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: re quired="true"

Erik Bruchez
Administrator
In reply to this post by Einar Moos
Einar,

Can you send a simple example that runs in the sandbox?

-Erik

On Sep 8, 2008, at 11:50 AM, Einar Moos wrote:

> In Firebug I found class xforms-required empty and xforms-invalid.
>
> The DMV form, however, has xforms-invalid xforms-required
> xforms-required-empty and *show* the (!) pointer.
>
> The bookcast form no longer displays the warning.
>
> Could you tell me were the image comes from?
>
> Thanks,
>
> -- einar
>
>
>
> On Mon, Sep 8, 2008 at 7:24 PM, Erik Bruchez <[hidden email]>  
> wrote:
>> Are they not appearing even if you visit the fielsd (e.g. tab out  
>> from
>> them)?
>>
>> Also, if you use something like Firebug, do you see the xforms-
>> invalid class
>> on the controls?
>>
>> -Erik
>>
>> On Sep 5, 2008, at 1:38 PM, parisiana wrote:
>>
>>>
>>> Hello,
>>>
>>> The indicators (!) of fields required according to schema or binds  
>>> are not
>>> working on 3.7.0beta1.200809050411. I studied the code in your DMV  
>>> form
>>> that
>>> has them displayed, unable to discover a solution. The G form  
>>> either never
>>> did or I don't remember. Can you provide a clue?
>>>
>>> -- einar
>>> --
>>> View this message in context:
>>> http://www.nabble.com/required%3D%22true%22-tp19339057p19339057.html
>>> Sent from the ObjectWeb OPS - Users mailing list archive at  
>>> Nabble.com.
>>
>> --
>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>> http://www.orbeon.com/
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]  
>> mailing
>> list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
>
>
> --
> -- Einar Moos
> -- parisiana.com
>
> Tel: 0676660080
>
> --
> 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 for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: re quired="true"

Einar Moos
Erik,

This test runs in the sandbox (without showing the validation indicators on the
element "counter"):

From the page flow:

    <page  path-info="/afl-TEST/" view="view.xhtml">

TESTXML page:

<xhtml:html xsl:version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
    xmlns="http://www.w3.org/1999/xhtml"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:p="http://www.orbeon.com/oxf/pipeline"
xmlns:oxf="http://www.orbeon.com/oxf/processors">
    <xhtml:head>

        <title>TEST  XHTML</title>
      <style type="text/css">
            .xforms-label { font-weight: bold  }
            .xforms-textarea-appearance-xxforms-autosize {  width:
20em; margin-bottom: 2px;  }
            .xforms-input input {   width: 15em;  margin-bottom: 2px;  }
            .test-table {color: white;  }
            .test-table .add-td {  width: 18em; clear: left;
margin-left: 10em;   }
            .test-table .form-td { width: 30em;  background: white;
padding: .9em }</style>
        <xforms:model id="TESTXML">
            <!-- Load testxml.xml when the XForms engine is ready -->
            <xforms:send ev:event="xforms-ready" submission="list-submission">
            </xforms:send>

            <!-- Instance that contains the TEST -->
            <xforms:instance id="instance" xmlns="">
                <TESTXML xmlns="">
                    <DateTime xmlns=""/>
                    <Message>
                        <counter/>
                        <notes/>
                    </Message>
                </TESTXML>
            </xforms:instance>


            <!-- Submission to get the document containing the TEST -->
            <xforms:submission id="list-submission" serialize="false"
method="get"

action="http://localhost/eXist-1.2.4-rev8072/rest//db/afl-TEST/testxml-000111.xml"
                replace="none"/>

            <xforms:submission id="log-submission"
ref="instance('TESTXML-instance')"

action="http://localhost/eXist-1.2.4-rev8072/rest//db/afl-TEST/testxml-000111.xml"
                xxforms:username="admin" xxforms:password=""
method="put" replace="none">
                <xforms:message ev:event="xforms-submit-error"
level="modal">An error occurred while
                    saving!</xforms:message>
            </xforms:submission>

               <xforms:bind nodeset="DateTime" type="xs:string"
                calculate="if (. = '') then substring(now(), 1, 19) else ."/>

                                      <!-- Counter value -->
            <xforms:bind
nodeset="instance('instance')//TESTXML/Message/counter"
required="true()"/>

        </xforms:model>
    </xhtml:head>
    <xhtml:body>

        <!-- This table contains the main actions for the page  -->
        <xhtml:table class="test-action-table">
            <xhtml:tr>
                <xhtml:td>
                    <xforms:submit submission="log-submission"
appearance="full">
                        <xforms:label><img
src="../apps/afl-TEST/images/save.gif" alt="LOG"/>
                            LOG</xforms:label>
                    </xforms:submit>
                </xhtml:td>
            </xhtml:tr>
            <xhtml:tr>
                <xhtml:td>
                    <xforms:input ref="//TESTXML/DateTime" incremental="true">
                        <xforms:label>Date : </xforms:label>
                    </xforms:input>
                </xhtml:td>
            </xhtml:tr>
            <xforms:group ref="Message">
                <xhtml:tr>
                    <xhtml:td class="form-td">
                        <xforms:input ref="counter" incremental="true">
                            <xforms:label class="test-label">Number :
</xforms:label>
                        </xforms:input>
                        <xhtml:br/>
                        <xforms:textarea ref="notes"
appearance="xxforms:autosize"
                            incremental="true">
                            <xforms:label class="test-label">Comment :
 </xforms:label>
                        </xforms:textarea>
                    </xhtml:td>
                </xhtml:tr>
            </xforms:group>
        </xhtml:table>
        <widget:xforms-instance-inspector
xmlns:widget="http://orbeon.org/oxf/xml/widget"/>
    </xhtml:body>
</xhtml:html>

Thanks,

-- einar


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: re quired="true"

Erik Bruchez
Administrator
We now have a bug to track this:

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

But note you have an issue in your example anyway:

   instance('instance')//TESTXML

will not match anything, because instance() returns the root element,  
that is <TESTXML>, and <TESTXML> does not have a descendant element  
called <TESTXML>.

-Erik

On Sep 9, 2008, at 11:57 PM, Einar Moos wrote:

> Erik,
>
> This test runs in the sandbox (without showing the validation  
> indicators on the
> element "counter"):
>
> From the page flow:
>
>    <page  path-info="/afl-TEST/" view="view.xhtml">
>
> TESTXML page:
>
> <xhtml:html xsl:version="2.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
>    xmlns="http://www.w3.org/1999/xhtml"
> xmlns:xhtml="http://www.w3.org/1999/xhtml"
>    xmlns:xforms="http://www.w3.org/2002/xforms"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
>    xmlns:ev="http://www.w3.org/2001/xml-events"
> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>    xmlns:xi="http://www.w3.org/2001/XInclude"
> xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>    xmlns:p="http://www.orbeon.com/oxf/pipeline"
> xmlns:oxf="http://www.orbeon.com/oxf/processors">
>    <xhtml:head>
>
>        <title>TEST  XHTML</title>
>      <style type="text/css">
>            .xforms-label { font-weight: bold  }
>            .xforms-textarea-appearance-xxforms-autosize {  width:
> 20em; margin-bottom: 2px;  }
>            .xforms-input input {   width: 15em;  margin-bottom:  
> 2px;  }
>            .test-table {color: white;  }
>            .test-table .add-td {  width: 18em; clear: left;
> margin-left: 10em;   }
>            .test-table .form-td { width: 30em;  background: white;
> padding: .9em }</style>
>        <xforms:model id="TESTXML">
>            <!-- Load testxml.xml when the XForms engine is ready -->
>            <xforms:send ev:event="xforms-ready" submission="list-
> submission">
>            </xforms:send>
>
>            <!-- Instance that contains the TEST -->
>            <xforms:instance id="instance" xmlns="">
>                <TESTXML xmlns="">
>                    <DateTime xmlns=""/>
>                    <Message>
>                        <counter/>
>                        <notes/>
>                    </Message>
>                </TESTXML>
>            </xforms:instance>
>
>
>            <!-- Submission to get the document containing the TEST -->
>            <xforms:submission id="list-submission" serialize="false"
> method="get"
>
> action="http://localhost/eXist-1.2.4-rev8072/rest//db/afl-TEST/testxml-000111.xml 
> "
>                replace="none"/>
>
>            <xforms:submission id="log-submission"
> ref="instance('TESTXML-instance')"
>
> action="http://localhost/eXist-1.2.4-rev8072/rest//db/afl-TEST/testxml-000111.xml 
> "
>                xxforms:username="admin" xxforms:password=""
> method="put" replace="none">
>                <xforms:message ev:event="xforms-submit-error"
> level="modal">An error occurred while
>                    saving!</xforms:message>
>            </xforms:submission>
>
>               <xforms:bind nodeset="DateTime" type="xs:string"
>                calculate="if (. = '') then substring(now(), 1, 19)  
> else ."/>
>
>                                      <!-- Counter value -->
>            <xforms:bind
> nodeset="instance('instance')//TESTXML/Message/counter"
> required="true()"/>
>
>        </xforms:model>
>    </xhtml:head>
>    <xhtml:body>
>
>        <!-- This table contains the main actions for the page  -->
>        <xhtml:table class="test-action-table">
>            <xhtml:tr>
>                <xhtml:td>
>                    <xforms:submit submission="log-submission"
> appearance="full">
>                        <xforms:label><img
> src="../apps/afl-TEST/images/save.gif" alt="LOG"/>
>                            LOG</xforms:label>
>                    </xforms:submit>
>                </xhtml:td>
>            </xhtml:tr>
>            <xhtml:tr>
>                <xhtml:td>
>                    <xforms:input ref="//TESTXML/DateTime"  
> incremental="true">
>                        <xforms:label>Date : </xforms:label>
>                    </xforms:input>
>                </xhtml:td>
>            </xhtml:tr>
>            <xforms:group ref="Message">
>                <xhtml:tr>
>                    <xhtml:td class="form-td">
>                        <xforms:input ref="counter" incremental="true">
>                            <xforms:label class="test-label">Number :
> </xforms:label>
>                        </xforms:input>
>                        <xhtml:br/>
>                        <xforms:textarea ref="notes"
> appearance="xxforms:autosize"
>                            incremental="true">
>                            <xforms:label class="test-label">Comment :
> </xforms:label>
>                        </xforms:textarea>
>                    </xhtml:td>
>                </xhtml:tr>
>            </xforms:group>
>        </xhtml:table>
>        <widget:xforms-instance-inspector
> xmlns:widget="http://orbeon.org/oxf/xml/widget"/>
>    </xhtml:body>
> </xhtml:html>
>
> Thanks,
>
> -- einar
>
> --
> 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 for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws