IDEMPIERE-92 - Integrate Selenium. Prevent id space error caused by bad data.
This commit is contained in:
parent
748ed726b4
commit
93387fff01
|
@ -43,6 +43,7 @@ public class Combobox extends org.zkoss.zul.Combobox implements IdSpace
|
||||||
public Comboitem appendItem(String label)
|
public Comboitem appendItem(String label)
|
||||||
{
|
{
|
||||||
ComboItem item = new ComboItem(label);
|
ComboItem item = new ComboItem(label);
|
||||||
|
if (getFellowIfAny(label) == null )
|
||||||
item.setId(label);
|
item.setId(label);
|
||||||
item.setParent(this);
|
item.setParent(this);
|
||||||
return item;
|
return item;
|
||||||
|
@ -64,6 +65,7 @@ public class Combobox extends org.zkoss.zul.Combobox implements IdSpace
|
||||||
|
|
||||||
public void appendItem(String name, Object value) {
|
public void appendItem(String name, Object value) {
|
||||||
ComboItem item = new ComboItem(name, value);
|
ComboItem item = new ComboItem(name, value);
|
||||||
|
if (getFellowIfAny(name) == null)
|
||||||
item.setId(name);
|
item.setId(name);
|
||||||
this.appendChild(item);
|
this.appendChild(item);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue