users@woodstock.java.net

Two listbox and method refresh

From: endrinas <endrinas_at_gmail.com>
Date: Sat, 26 Apr 2008 06:36:38 -0700 (PDT)

Hello,

I have problems with listbox component and the method refresh.
I'm trying to do this:

I want to have 2 listbox components in the same page. When I select one item
in the first lisbox, I want to refresh de second one with a bakinbean.

I tryed to implement it like the examples in the TLD but I always obtain a
javascript error

'null' is null or isn't an object

My jsp code is like this



<webuijsf:listbox binding="#{EditaDatos.list}" id="list"
                            items="#{EditaDatos.informes}" />

<webuijsf:listbox binding="#{EditaDatos.listbox1}" id="listbox1"
                           
items="#{EditaDatos.listbox1DefaultOptions.options}"
                            onChange="refreshList()"
                           
valueChangeListenerExpression="#{EditaDatos.obtenerInformes}"/>

<webuijsf:script>
      function refreshList() {
                        var domNode = document.getElementById("form1:list");
                        return domNode.refresh("form1:listbox1");
                                                   
}
</webuijsf:script>

Can anybody help me?

Thanks
-- 
View this message in context: http://www.nabble.com/Two-listbox-and-method-refresh-tp16912975p16912975.html
Sent from the Project Woodstock - Users mailing list archive at Nabble.com.