This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > October 2005 > Re: XF: Why won't select1 react to model changes?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: XF: Why won't select1 react to model changes?
Aurelian

2005-10-17, 6:35 pm

Allan Beaufour wrote:
> Friday 14 October 2005 15:30 skrev Rojek Piotr:
>
>
>
> Why does it have to be through JavaScript?
>
> If the <select1> is using an <itemset>, you can use <insert> and <setvalue> to
> add to it.
>

Hi Allan,

Why wouldn't this attached sample work? I can use JavaScript or Insert
to alter the model backing the instance but the select1 seems completely
insensitive to xforms-rebuild, xforms-recalculate, xforms-revalidate,
xforms-refresh. All the other controls (repeat, output, and input)
behave as expected.

I see that the nsXFormsSelect1Element does not implement the Refresh
method but I cannot tell if this is the problem.

Are my expectations incorrect?

Best Regards,
Aurelian Penciu

Allan Beaufour

2005-10-19, 6:25 am

Hi,

Monday 17 October 2005 23:26 skrev Aurelian:
> Why wouldn't this attached sample work? I can use JavaScript or Insert
> to alter the model backing the instance but the select1 seems completely
> insensitive to xforms-rebuild, xforms-recalculate, xforms-revalidate,
> xforms-refresh. All the other controls (repeat, output, and input)
> behave as expected.
>
> I see that the nsXFormsSelect1Element does not implement the Refresh
> method but I cannot tell if this is the problem.
>
> Are my expectations incorrect?


Nope, it should work:
https://bugzilla.mozilla.org/show_bug.cgi?id=311475

--
Allan Beaufour
Linux Software Engineer

Novell, Inc.
Software for the Open Enterprise
www.novell.com/open
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews