Knowing whether a model instance is valid

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

Knowing whether a model instance is valid

Jack Cox
Is there a means by which one can determine if the contents of a model
instance or a sub-tree of the model is valid according to the schema and
binding properties?

I need to be able to display information on screen that summarizes whether
the model and parts of the model are valid prior to the user performing an
application action.  The form is non trivial (300+ fields) and spans many
'case' sections and has much relevance activity going on, so we cannot
depend on the user spotting invalid fields.

Thanks,

Jack Cox
---------------------
Jack Cox
CapTech Ventures, Inc.
1118 W. Main St.
Richmond, VA 23220
804-545-8765




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

Re: Knowing whether a model instance is valid

Daniel E. Renfer
Several months ago, Erik posted a blog entry explaining how to do
custom error summaries in Orbeon Forms. You might be able to modify it
to suit your needs.


http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-error-summary/

On 6/19/07, Jack Cox <[hidden email]> wrote:

> Is there a means by which one can determine if the contents of a model
> instance or a sub-tree of the model is valid according to the schema and
> binding properties?
>
> I need to be able to display information on screen that summarizes whether
> the model and parts of the model are valid prior to the user performing an
> application action.  The form is non trivial (300+ fields) and spans many
> 'case' sections and has much relevance activity going on, so we cannot
> depend on the user spotting invalid fields.
>
> Thanks,
>
> Jack Cox
> ---------------------
> Jack Cox
> CapTech Ventures, Inc.
> 1118 W. Main St.
> Richmond, VA 23220
> 804-545-8765
>
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>

--
Daniel E. Renfer
http://kronkltd.net/



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

Re: Knowing whether a model instance is valid

Jack Cox
Daniel,

This looks like it should do what I need, and I've don't the appropriate
cutting-and-pasting to put it on a couple test fields.

It appears that the event('target-id') construct (actually anything from the
event functions) is not returning a value.  Elements are getting added to
the errors-instance when there is an constraint violation, but no values are
getting set to the various attributes of the error element.

Do I need to do anything to activate that error function?

Thanks,

Jack



On 6/19/07 3:36 PM, "Daniel E. Renfer" <[hidden email]> wrote:

> Several months ago, Erik posted a blog entry explaining how to do
> custom error summaries in Orbeon Forms. You might be able to modify it
> to suit your needs.
>
>
> http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-error
> -summary/
>
> On 6/19/07, Jack Cox <[hidden email]> wrote:
>> Is there a means by which one can determine if the contents of a model
>> instance or a sub-tree of the model is valid according to the schema and
>> binding properties?
>>
>> I need to be able to display information on screen that summarizes whether
>> the model and parts of the model are valid prior to the user performing an
>> application action.  The form is non trivial (300+ fields) and spans many
>> 'case' sections and has much relevance activity going on, so we cannot
>> depend on the user spotting invalid fields.
>>
>> Thanks,
>>
>> Jack Cox
>> ---------------------
>> Jack Cox
>> CapTech Ventures, Inc.
>> 1118 W. Main St.
>> Richmond, VA 23220
>> 804-545-8765
>>
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>
>>
>
---------------------
Jack Cox
CapTech Ventures, Inc.
1118 W. Main St.
Richmond, VA 23220
804-545-8765




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

Re: Knowing whether a model instance is valid

Jack Cox
Sorry, meant to say activate that event() function.

Thanks



On 6/19/07 4:23 PM, "Jack Cox" <[hidden email]> wrote:

> Daniel,
>
> This looks like it should do what I need, and I've don't the appropriate
> cutting-and-pasting to put it on a couple test fields.
>
> It appears that the event('target-id') construct (actually anything from the
> event functions) is not returning a value.  Elements are getting added to the
> errors-instance when there is an constraint violation, but no values are
> getting set to the various attributes of the error element.
>
> Do I need to do anything to activate that error function?
>
> Thanks,
>
> Jack
>
>
>
> On 6/19/07 3:36 PM, "Daniel E. Renfer" <[hidden email]> wrote:
>
>> Several months ago, Erik posted a blog entry explaining how to do
>> custom error summaries in Orbeon Forms. You might be able to modify it
>> to suit your needs.
>>
>>
>>
http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-erro>>
r

>> -summary/
>>
>> On 6/19/07, Jack Cox <[hidden email]> wrote:
>>> Is there a means by which one can determine if the contents of a model
>>> instance or a sub-tree of the model is valid according to the schema and
>>> binding properties?
>>>
>>> I need to be able to display information on screen that summarizes whether
>>> the model and parts of the model are valid prior to the user performing an
>>> application action.  The form is non trivial (300+ fields) and spans many
>>> 'case' sections and has much relevance activity going on, so we cannot
>>> depend on the user spotting invalid fields.
>>>
>>> Thanks,
>>>
>>> Jack Cox
>>> ---------------------
>>> Jack Cox
>>> CapTech Ventures, Inc.
>>> 1118 W. Main St.
>>> Richmond, VA 23220
>>> 804-545-8765
>>>
>>>
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email]
>>> mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>
>>>
>>
>
> ---------------------
> Jack Cox
> CapTech Ventures, Inc.
> 1118 W. Main St.
> Richmond, VA 23220
> 804-545-8765
---------------------
Jack Cox
CapTech Ventures, Inc.
1118 W. Main St.
Richmond, VA 23220
804-545-8765




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

Re: Knowing whether a model instance is valid

Erik Bruchez
Administrator
Jack,

No, nothing special. Are you using a recent version, e.g. 3.5.1? If the
Forms example shows errors, then it should be working for you.

-Erik

Jack Cox wrote:

> Sorry, meant to say activate that event() function.
>
> Thanks
>
>
>
> On 6/19/07 4:23 PM, "Jack Cox" <[hidden email]> wrote:
>
>> Daniel,
>>
>> This looks like it should do what I need, and I've don't the appropriate
>> cutting-and-pasting to put it on a couple test fields.
>>
>> It appears that the event('target-id') construct (actually anything from the
>> event functions) is not returning a value.  Elements are getting added to the
>> errors-instance when there is an constraint violation, but no values are
>> getting set to the various attributes of the error element.
>>
>> Do I need to do anything to activate that error function?
>>
>> Thanks,
>>
>> Jack
>>
>>
>>
>> On 6/19/07 3:36 PM, "Daniel E. Renfer" <[hidden email]> wrote:
>>
>>> Several months ago, Erik posted a blog entry explaining how to do
>>> custom error summaries in Orbeon Forms. You might be able to modify it
>>> to suit your needs.
>>>
>>>
>>>
> http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-erro>>
> r
>>> -summary/
>>>
>>> On 6/19/07, Jack Cox <[hidden email]> wrote:
>>>> Is there a means by which one can determine if the contents of a model
>>>> instance or a sub-tree of the model is valid according to the schema and
>>>> binding properties?
>>>>
>>>> I need to be able to display information on screen that summarizes whether
>>>> the model and parts of the model are valid prior to the user performing an
>>>> application action.  The form is non trivial (300+ fields) and spans many
>>>> 'case' sections and has much relevance activity going on, so we cannot
>>>> depend on the user spotting invalid fields.
>>>>
>>>> Thanks,
>>>>
>>>> Jack Cox
>>>> ---------------------
>>>> Jack Cox
>>>> CapTech Ventures, Inc.
>>>> 1118 W. Main St.
>>>> Richmond, VA 23220
>>>> 804-545-8765
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the [hidden email]
>>>> mailing list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>>
>>>>
>> ---------------------
>> Jack Cox
>> CapTech Ventures, Inc.
>> 1118 W. Main St.
>> Richmond, VA 23220
>> 804-545-8765
>
> ---------------------
> Jack Cox
> CapTech Ventures, Inc.
> 1118 W. Main St.
> Richmond, VA 23220
> 804-545-8765
>
>
>

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Knowing whether a model instance is valid

Jack Cox
Erik,

We'll I am getting the events, but they appear to be empty.

I've attached a simple example app (view.xml, page-flow.xml, person.xsd, and
some gifs and css files).

I am running 3.5.1.200703310056.

Thanks for all your help.

Jack



On 6/19/07 6:31 PM, "Erik Bruchez" <[hidden email]> wrote:

> Jack,
>
> No, nothing special. Are you using a recent version, e.g. 3.5.1? If the
> Forms example shows errors, then it should be working for you.
>
> -Erik
>
> Jack Cox wrote:
>> Sorry, meant to say activate that event() function.
>>
>> Thanks
>>
>>
>>
>> On 6/19/07 4:23 PM, "Jack Cox" <[hidden email]> wrote:
>>
>>> Daniel,
>>>
>>> This looks like it should do what I need, and I've don't the appropriate
>>> cutting-and-pasting to put it on a couple test fields.
>>>
>>> It appears that the event('target-id') construct (actually anything from the
>>> event functions) is not returning a value.  Elements are getting added to
>>> the
>>> errors-instance when there is an constraint violation, but no values are
>>> getting set to the various attributes of the error element.
>>>
>>> Do I need to do anything to activate that error function?
>>>
>>> Thanks,
>>>
>>> Jack
>>>
>>>
>>>
>>> On 6/19/07 3:36 PM, "Daniel E. Renfer" <[hidden email]> wrote:
>>>
>>>> Several months ago, Erik posted a blog entry explaining how to do
>>>> custom error summaries in Orbeon Forms. You might be able to modify it
>>>> to suit your needs.
>>>>
>>>>
>>>>
>> http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-erro
>> >>
>> r
>>>> -summary/
>>>>
>>>> On 6/19/07, Jack Cox <[hidden email]> wrote:
>>>>> Is there a means by which one can determine if the contents of a model
>>>>> instance or a sub-tree of the model is valid according to the schema and
>>>>> binding properties?
>>>>>
>>>>> I need to be able to display information on screen that summarizes whether
>>>>> the model and parts of the model are valid prior to the user performing an
>>>>> application action.  The form is non trivial (300+ fields) and spans many
>>>>> 'case' sections and has much relevance activity going on, so we cannot
>>>>> depend on the user spotting invalid fields.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Jack Cox
>>>>> ---------------------
>>>>> Jack Cox
>>>>> CapTech Ventures, Inc.
>>>>> 1118 W. Main St.
>>>>> Richmond, VA 23220
>>>>> 804-545-8765
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the [hidden email]
>>>>> mailing list.
>>>>> To unsubscribe: mailto:[hidden email]
>>>>> For general help: mailto:[hidden email]?subject=help
>>>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>>>
>>>>>
>>> ---------------------
>>> Jack Cox
>>> CapTech Ventures, Inc.
>>> 1118 W. Main St.
>>> Richmond, VA 23220
>>> 804-545-8765
>>
>> ---------------------
>> Jack Cox
>> CapTech Ventures, Inc.
>> 1118 W. Main St.
>> Richmond, VA 23220
>> 804-545-8765
>>
>>
>>
>
---------------------
Jack Cox
CapTech Ventures, Inc.
1118 W. Main St.
Richmond, VA 23220
804-545-8765



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

errors-instance-example.zip (54K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Knowing whether a model instance is valid

Jack Cox
Erik,

A little more followup.  It appears that the event('alert') and
event('label') values are getting set, but the event('target-id') is
returning an empty string.

Jack



On 6/20/07 8:18 AM, "Jack Cox" <[hidden email]> wrote:

> Erik,
>
> We'll I am getting the events, but they appear to be empty.
>
> I've attached a simple example app (view.xml, page-flow.xml, person.xsd, and
> some gifs and css files).
>
> I am running 3.5.1.200703310056.
>
> Thanks for all your help.
>
> Jack
>
>
>
> On 6/19/07 6:31 PM, "Erik Bruchez" <[hidden email]> wrote:
>
>> Jack,
>>
>> No, nothing special. Are you using a recent version, e.g. 3.5.1? If the
>> Forms example shows errors, then it should be working for you.
>>
>> -Erik
>>
>> Jack Cox wrote:
>>> Sorry, meant to say activate that event() function.
>>>
>>> Thanks
>>>
>>>
>>>
>>> On 6/19/07 4:23 PM, "Jack Cox" <[hidden email]> wrote:
>>>
>>>> Daniel,
>>>>
>>>> This looks like it should do what I need, and I've don't the appropriate
>>>> cutting-and-pasting to put it on a couple test fields.
>>>>
>>>> It appears that the event('target-id') construct (actually anything from
>>>> the
>>>> event functions) is not returning a value.  Elements are getting added to
>>>> the
>>>> errors-instance when there is an constraint violation, but no values are
>>>> getting set to the various attributes of the error element.
>>>>
>>>> Do I need to do anything to activate that error function?
>>>>
>>>> Thanks,
>>>>
>>>> Jack
>>>>
>>>>
>>>>
>>>> On 6/19/07 3:36 PM, "Daniel E. Renfer" <[hidden email]> wrote:
>>>>
>>>>> Several months ago, Erik posted a blog entry explaining how to do
>>>>> custom error summaries in Orbeon Forms. You might be able to modify it
>>>>> to suit your needs.
>>>>>
>>>>>
>>>>>
>>>
http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-err>>>
o

>>>>>
>>> r
>>>>> -summary/
>>>>>
>>>>> On 6/19/07, Jack Cox <[hidden email]> wrote:
>>>>>> Is there a means by which one can determine if the contents of a model
>>>>>> instance or a sub-tree of the model is valid according to the schema and
>>>>>> binding properties?
>>>>>>
>>>>>> I need to be able to display information on screen that summarizes
>>>>>> whether
>>>>>> the model and parts of the model are valid prior to the user performing
>>>>>> an
>>>>>> application action.  The form is non trivial (300+ fields) and spans many
>>>>>> 'case' sections and has much relevance activity going on, so we cannot
>>>>>> depend on the user spotting invalid fields.
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Jack Cox
>>>>>> ---------------------
>>>>>> Jack Cox
>>>>>> CapTech Ventures, Inc.
>>>>>> 1118 W. Main St.
>>>>>> Richmond, VA 23220
>>>>>> 804-545-8765
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You receive this message as a subscriber of the [hidden email]
>>>>>> mailing list.
>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>>>>
>>>>>>
>>>> ---------------------
>>>> Jack Cox
>>>> CapTech Ventures, Inc.
>>>> 1118 W. Main St.
>>>> Richmond, VA 23220
>>>> 804-545-8765
>>>
>>> ---------------------
>>> Jack Cox
>>> CapTech Ventures, Inc.
>>> 1118 W. Main St.
>>> Richmond, VA 23220
>>> 804-545-8765
>>>
>>>
>>>
>>
>
> ---------------------
> Jack Cox
> CapTech Ventures, Inc.
> 1118 W. Main St.
> Richmond, VA 23220
> 804-545-8765
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
---------------------
Jack Cox
CapTech Ventures, Inc.
1118 W. Main St.
Richmond, VA 23220
804-545-8765




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

Re: Knowing whether a model instance is valid

Jack Cox
Erik,

Found the problem.  In the example code, the event() function references
'target-id'.  It appears that target-id is no longer valid.  'target'
produces the id of the field that is in error.  So, if I change all the
'target-id' entries to 'target' it works just fine.


Jack



On 6/20/07 11:01 AM, "Jack Cox" <[hidden email]> wrote:

> Erik,
>
> A little more followup.  It appears that the event('alert') and
> event('label') values are getting set, but the event('target-id') is
> returning an empty string.
>
> Jack
>
>
>
> On 6/20/07 8:18 AM, "Jack Cox" <[hidden email]> wrote:
>
>> Erik,
>>
>> We'll I am getting the events, but they appear to be empty.
>>
>> I've attached a simple example app (view.xml, page-flow.xml, person.xsd, and
>> some gifs and css files).
>>
>> I am running 3.5.1.200703310056.
>>
>> Thanks for all your help.
>>
>> Jack
>>
>>
>>
>> On 6/19/07 6:31 PM, "Erik Bruchez" <[hidden email]> wrote:
>>
>>> Jack,
>>>
>>> No, nothing special. Are you using a recent version, e.g. 3.5.1? If the
>>> Forms example shows errors, then it should be working for you.
>>>
>>> -Erik
>>>
>>> Jack Cox wrote:
>>>> Sorry, meant to say activate that event() function.
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> On 6/19/07 4:23 PM, "Jack Cox" <[hidden email]> wrote:
>>>>
>>>>> Daniel,
>>>>>
>>>>> This looks like it should do what I need, and I've don't the appropriate
>>>>> cutting-and-pasting to put it on a couple test fields.
>>>>>
>>>>> It appears that the event('target-id') construct (actually anything from
>>>>> the
>>>>> event functions) is not returning a value.  Elements are getting added to
>>>>> the
>>>>> errors-instance when there is an constraint violation, but no values are
>>>>> getting set to the various attributes of the error element.
>>>>>
>>>>> Do I need to do anything to activate that error function?
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Jack
>>>>>
>>>>>
>>>>>
>>>>> On 6/19/07 3:36 PM, "Daniel E. Renfer" <[hidden email]> wrote:
>>>>>
>>>>>> Several months ago, Erik posted a blog entry explaining how to do
>>>>>> custom error summaries in Orbeon Forms. You might be able to modify it
>>>>>> to suit your needs.
>>>>>>
>>>>>>
>>>>>>
>>>>
>
http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-err>>>

>
> o
>>>>>>
>>>> r
>>>>>> -summary/
>>>>>>
>>>>>> On 6/19/07, Jack Cox <[hidden email]> wrote:
>>>>>>> Is there a means by which one can determine if the contents of a model
>>>>>>> instance or a sub-tree of the model is valid according to the schema and
>>>>>>> binding properties?
>>>>>>>
>>>>>>> I need to be able to display information on screen that summarizes
>>>>>>> whether
>>>>>>> the model and parts of the model are valid prior to the user performing
>>>>>>> an
>>>>>>> application action.  The form is non trivial (300+ fields) and spans
>>>>>>> many
>>>>>>> 'case' sections and has much relevance activity going on, so we cannot
>>>>>>> depend on the user spotting invalid fields.
>>>>>>>
>>>>>>> Thanks,
>>>>>>>
>>>>>>> Jack Cox
>>>>>>> ---------------------
>>>>>>> Jack Cox
>>>>>>> CapTech Ventures, Inc.
>>>>>>> 1118 W. Main St.
>>>>>>> Richmond, VA 23220
>>>>>>> 804-545-8765
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> You receive this message as a subscriber of the [hidden email]
>>>>>>> mailing list.
>>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>>>>>
>>>>>>>
>>>>> ---------------------
>>>>> Jack Cox
>>>>> CapTech Ventures, Inc.
>>>>> 1118 W. Main St.
>>>>> Richmond, VA 23220
>>>>> 804-545-8765
>>>>
>>>> ---------------------
>>>> Jack Cox
>>>> CapTech Ventures, Inc.
>>>> 1118 W. Main St.
>>>> Richmond, VA 23220
>>>> 804-545-8765
>>>>
>>>>
>>>>
>>>
>>
>> ---------------------
>> Jack Cox
>> CapTech Ventures, Inc.
>> 1118 W. Main St.
>> Richmond, VA 23220
>> 804-545-8765
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
> ---------------------
> Jack Cox
> CapTech Ventures, Inc.
> 1118 W. Main St.
> Richmond, VA 23220
> 804-545-8765
>
>
>
> --
> You receive this message as a subscriber of the [hidden email]
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
---------------------
Jack Cox
CapTech Ventures, Inc.
1118 W. Main St.
Richmond, VA 23220
804-545-8765




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

Re: Knowing whether a model instance is valid

Erik Bruchez
Administrator
Jack,

Glad you figured it out :-)

-Erik

Jack Cox wrote:

> Erik,
>
> Found the problem.  In the example code, the event() function references
> 'target-id'.  It appears that target-id is no longer valid.  'target'
> produces the id of the field that is in error.  So, if I change all the
> 'target-id' entries to 'target' it works just fine.
>
>
> Jack
>
>
>
> On 6/20/07 11:01 AM, "Jack Cox" <[hidden email]> wrote:
>
>> Erik,
>>
>> A little more followup.  It appears that the event('alert') and
>> event('label') values are getting set, but the event('target-id') is
>> returning an empty string.
>>
>> Jack
>>
>>
>>
>> On 6/20/07 8:18 AM, "Jack Cox" <[hidden email]> wrote:
>>
>>> Erik,
>>>
>>> We'll I am getting the events, but they appear to be empty.
>>>
>>> I've attached a simple example app (view.xml, page-flow.xml, person.xsd, and
>>> some gifs and css files).
>>>
>>> I am running 3.5.1.200703310056.
>>>
>>> Thanks for all your help.
>>>
>>> Jack
>>>
>>>
>>>
>>> On 6/19/07 6:31 PM, "Erik Bruchez" <[hidden email]> wrote:
>>>
>>>> Jack,
>>>>
>>>> No, nothing special. Are you using a recent version, e.g. 3.5.1? If the
>>>> Forms example shows errors, then it should be working for you.
>>>>
>>>> -Erik
>>>>
>>>> Jack Cox wrote:
>>>>> Sorry, meant to say activate that event() function.
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>> On 6/19/07 4:23 PM, "Jack Cox" <[hidden email]> wrote:
>>>>>
>>>>>> Daniel,
>>>>>>
>>>>>> This looks like it should do what I need, and I've don't the appropriate
>>>>>> cutting-and-pasting to put it on a couple test fields.
>>>>>>
>>>>>> It appears that the event('target-id') construct (actually anything from
>>>>>> the
>>>>>> event functions) is not returning a value.  Elements are getting added to
>>>>>> the
>>>>>> errors-instance when there is an constraint violation, but no values are
>>>>>> getting set to the various attributes of the error element.
>>>>>>
>>>>>> Do I need to do anything to activate that error function?
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Jack
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 6/19/07 3:36 PM, "Daniel E. Renfer" <[hidden email]> wrote:
>>>>>>
>>>>>>> Several months ago, Erik posted a blog entry explaining how to do
>>>>>>> custom error summaries in Orbeon Forms. You might be able to modify it
>>>>>>> to suit your needs.
>>>>>>>
>>>>>>>
>>>>>>>
> http://www.orbeon.com/blog/2006/08/04/xforms-tip-creating-a-configurable-err>>>
>> o
>>>>> r
>>>>>>> -summary/
>>>>>>>
>>>>>>> On 6/19/07, Jack Cox <[hidden email]> wrote:
>>>>>>>> Is there a means by which one can determine if the contents of a model
>>>>>>>> instance or a sub-tree of the model is valid according to the schema and
>>>>>>>> binding properties?
>>>>>>>>
>>>>>>>> I need to be able to display information on screen that summarizes
>>>>>>>> whether
>>>>>>>> the model and parts of the model are valid prior to the user performing
>>>>>>>> an
>>>>>>>> application action.  The form is non trivial (300+ fields) and spans
>>>>>>>> many
>>>>>>>> 'case' sections and has much relevance activity going on, so we cannot
>>>>>>>> depend on the user spotting invalid fields.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Jack Cox
>>>>>>>> ---------------------
>>>>>>>> Jack Cox
>>>>>>>> CapTech Ventures, Inc.
>>>>>>>> 1118 W. Main St.
>>>>>>>> Richmond, VA 23220
>>>>>>>> 804-545-8765
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> You receive this message as a subscriber of the [hidden email]
>>>>>>>> mailing list.
>>>>>>>> To unsubscribe: mailto:[hidden email]
>>>>>>>> For general help: mailto:[hidden email]?subject=help
>>>>>>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>>>>>>>>
>>>>>>>>
>>>>>> ---------------------
>>>>>> Jack Cox
>>>>>> CapTech Ventures, Inc.
>>>>>> 1118 W. Main St.
>>>>>> Richmond, VA 23220
>>>>>> 804-545-8765
>>>>> ---------------------
>>>>> Jack Cox
>>>>> CapTech Ventures, Inc.
>>>>> 1118 W. Main St.
>>>>> Richmond, VA 23220
>>>>> 804-545-8765
>>>>>
>>>>>
>>>>>
>>> ---------------------
>>> Jack Cox
>>> CapTech Ventures, Inc.
>>> 1118 W. Main St.
>>> Richmond, VA 23220
>>> 804-545-8765
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email]
>>> mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>> ---------------------
>> Jack Cox
>> CapTech Ventures, Inc.
>> 1118 W. Main St.
>> Richmond, VA 23220
>> 804-545-8765
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
> ---------------------
> Jack Cox
> CapTech Ventures, Inc.
> 1118 W. Main St.
> Richmond, VA 23220
> 804-545-8765
>
>
>

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