سؤال

By default, a GWT CellTable renders certain widgets (e.g. EditTextCell and DatePickerCell) to look like they're non-editable until you click on them. After you click on them, they're displayed as editable. When you click off, they go back to looking like they're read-only. I want all the fields to always appear editable by default, whether they're selected or not. Is there a way to do this?

BTW: I'm using GWT 2.1.

هل كانت مفيدة؟

المحلول

Here is the sample best fit your needs Cell Sampler (showcase)

You should use TextInputCell

نصائح أخرى

Well you can use TextInputCell instead of EditTextCell so text cells will look like form fields.
Extending TextInputCell with some copy-paste from DatePickerCell should do the trick for date cells.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top