Hi Michael,

please don't use the onchange attributes.

you can add a facet 'change' with a tc:command inside:

<tc:selectOneListbox
   value="#{clientManagedBean.clientOrderBrowserController.selectedOrder}">
 <f:facet name="change">
   <tc:command action=#{...} />
 </f:facet>
 <f:selectItems value="#{clientManagedBean.orders.orders}" />
</tc:selectOneListbox>

see discussion on https://issues.apache.org/jira/browse/TOBAGO-272

Regards,
 Volker

2007/2/8, Michał 'Gandalf' Stawicki <[EMAIL PROTECTED]>:
The onchange attribute doesn't seem to work

I have this code:

<tc:selectOneListbox
onchange="Tobago.submitAction(':overview:placeOrder');"
value="#{clientManagedBean.clientOrderBrowserController.selectedOrder}">
<f:selectItems value="#{clientManagedBean.orders.orders}" />
</tc:selectOneListbox>


But when I look at the source of generated page I get:

<select name="overview:_idJsp106:_idJsp107"
id="overview:_idJsp106:_idJsp107" style="height:393px; width:374px; "
class="tobago-selectOneListbox-default " size="2"
onchange="Tobago.selectOneListboxChange(this)"
onclick="Tobago.selectOneListboxClick(this)"
>
...

and my onchange action never happens...

Anyone has a solution for this?

regards
michael

--
[EMAIL PROTECTED]
http://stawicki.jasliska.pl
GG: 3691111
JID: [EMAIL PROTECTED]

Reply via email to