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

Aurelian <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Allan Beaufour wrote:
> Friday 14 October 2005 15:30 skrev Rojek Piotr:
> 
>>how can i add new item to my select1 element using JavaScript??
>>code example or website would be appreciated
> 
> 
> 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
insert.xhtml (application/xhtml+xml, 4.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.