Re: xforms-link-error target

Aaron Reed wrote:

 >>I am however wondering what the reasoning is behind sending
 >>xforms-link-error to the model.
 >
 > I'm just guessing here since I wasn't around when the decision was
 > made, but I think that it makes sense.  The errors are because the
 > links are bad, which is a reflection on the instance data that the
 > model contains.  It isn't a reflection on anything being wrong with
 > the control.  Changing the control won't fix the problem.

With something like:

<xforms:input ...>
   <xforms:hint src="http://..."/>
</xforms:input>

In this case, the failing hint is related to the control, and has
nothing to do with a model or instance.

 > The link that failed should be in the context info for the event
 > according to the spec
 > (http://www.w3.org/TR/xforms/index-all.html#evt-linkError)

True. However, you don't have a way, with XForms, to extract this
context information, or to identify the control whose hint's src
failed.

-Erik

Received on Saturday, 8 October 2005 15:50:47 UTC