Revision history [back]

click to hide/show revision 1
initial version

asked 2013-08-13 18:44:44 +0800

phdsong gravatar image phdsong

Combobox model='xxx' whcih is not ListModel

I see many examples with List<String> xxx object is used in Zul code.

<Combobox model='xxx' />

I checked Combobox.java and see setModel signature as follows:

public void setModel(ListModel<?> model) {

I am not very clear how List<String> converts to ListModel when the model is set to Combobox object. I believe some behind-the-scene operations converts List<Sometype> of object to ListModel<Sometype>. Can you explain how it works?

Combobox model='xxx' whcih is not ListModel

I see many examples with List<String> xxx object is used in Zul code.

<Combobox model='xxx' />

I checked Combobox.java and see setModel signature as follows:

public void setModel(ListModel<?> model) {

I am not very clear how List<String> converts to ListModel when the model is set to Combobox object. I believe some behind-the-scene operations converts List<Sometype> of object to ListModel<Sometype>. Can you explain how it works?

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More