Hi i want to change the display value on the client form field ie text field, and wondered how this is possible?

chris

Vadim Filippov wrote:
Hello,
the problem is solved, the reason was the class object returned by the method
    public Class<?> getColumnClass(int colIndex)
it was not String.

Strange is the fact, that the ULCNumberDataType and ULCDateDataType doesn't notice this and worked well.

Vadim

Am 12.08.2010 21:12, schrieb Vadim Filippov:
Hello ULC-Support team,

I have a problem with the using of TableCellEditor.
If I define a DefaultCellEditor with a ULCTextField as editor without further initialisation, or with ULCStringDataType, I always get a null value received on the server.
E.g.
ULCTextField stringField = new ULCTextField();
DefaultCellEditor stringEditor = new DefaultCellEditor(stringField);
ULCTableColumn column = orderTable.getColumnModel().getColumn(i);
column.setCellEditor(stringEditor);

Initial state:


editor is activ:


Tab was clicked:




Method of my DefaultTableModel implementation:
    @Override
    public void setValueAt(Object value, int rowIndex, int columnIndex) {
        System.out.println(value);
        .....
    }

and here I get null.

I get this problem *only *if I use the default dataType or ULCStringDataType like this:

ULCStringDataType ulcStringDataType = new ULCStringDataType();
ulcStringDataType.setMaxLength(10);
stringField.setDataType(ulcStringDataType);

If I use ULCNumberDataType or ULCDateDataType I get the expected value on the server.
What could be the solution for that problem?

Kind regards,

Vadim Filippov



_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to