Bug in Adempiere ZK WListbox component not rest the value for the column

Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3108141
This commit is contained in:
vpj-cd 2011-03-26 00:08:37 -05:00
parent f4631da9a8
commit d6dfbb39ff
1 changed files with 6 additions and 0 deletions

View File

@ -556,6 +556,8 @@ public class WListbox extends Listbox implements IMiniTable, TableValueChangeLis
rsColOffset = 1; rsColOffset = 1;
for (col = 0; col < m_layout.length; col++) for (col = 0; col < m_layout.length; col++)
{ {
//reset the data value
data=null;
columnClass = m_layout[col].getColClass(); columnClass = m_layout[col].getColClass();
rsColIndex = col + rsColOffset; rsColIndex = col + rsColOffset;
@ -607,6 +609,10 @@ public class WListbox extends Listbox implements IMiniTable, TableValueChangeLis
{ {
data = s.trim(); // problems with NCHAR data = s.trim(); // problems with NCHAR
} }
else
{
data=null;
}
} }
// store in underlying model // store in underlying model
getModel().setDataAt(data, row, col); getModel().setDataAt(data, row, col);