logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: (no subject): msg#00056

Subject: Re: (no subject)
hello Paul,

just looked at the example you gave and i'm really not wiser than you. very strange behaviour and its hard to find an answer to the question how its done right.

but thanks for the good report - we'll have to watch this problem further. i've opened a bug for it so its not lost.

Joern


Paul Miniato wrote:
Hi Joern,

I've run into some behavior concerning binding to text() that I don't
quite understand.  Perhaps this is a bug, or perhaps I'm breaking
some rules.

There are 2 examples.

The first shows a form where the second control is bound to text
within an element.  It exhibits some strange behavior, including the
following:

- it appears that it sneaks by the required() test.  (Examination of
the chiba:data values indicate that Chiba had actually recognized
that the field is invalid, but somehow when it goes time to validate
the whole form, it doesn't seem to care.)

- the test refresh button appears to zap the entire subtree in the
instance, making the control vanish from the screen entirely -- at
least I think that's what's happening.

The second form shows that the string-length(.) constraint appears
not to refer to the current bound item when the item is bound to
text().  The only way I found to make the test work was to use an
absolute XPath expression, like the second constraint.
(string-length(.) works just fine on binds to non-text().)

After running into all these issues, I decided to try and restructure
things to that binding to text() would not be necessary -- it was
just too problematic.

However, I would still like to know whether I broke some rule, or
whether I just stumbled into a rarely used XForms construct with
unstable Chiba behavior.

PS.  I tried to run these examples under FormsPlayer, but so far,
they run differently there, but still not the way I would have
expected, leaving me no wiser.  Also, there may be some overlap
between the area covered by this posting and one I just sent,
entitled "Label Refs with Markup -- markup not copied".

Thanks for any hints.

Regards, Paul



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>