GWT Celltable : How to avoid entering particular value in editTextCell- column- Celltable?

755 views
Skip to first unread message

vaibhav bhalke

unread,
Mar 27, 2012, 9:55:38 AM3/27/12
to google-we...@googlegroups.com
Hi,

I am using GWT2.3.

How to avoid entering particular value in editTextCell- column- Celltable?

Is there any event  in editTextCell?

Validation while entering values in cells of celltable
In case of
String :Dont enter spaces in cell
Integer : Dont use characters

+ avoiding spaces in cell i.e if cell is type of string then user can't use spaces
although user presses "space bar"  button multiple times then that spaces should not be enter in cell a
How to achieve this ?


final EditTextCell editTextCell = new EditTextCell();

    final Column<RecordVO, String> stringColumn = new Column<RecordVO, String>(
                editTextCell) {
            @Override
            public String getValue(RecordVO object) {
              
            }

@Override
            public void render(Context context, RecordVO object,SafeHtmlBuilder sb) {
                // Any code?

            }

column.setFieldUpdater(new FieldUpdater<RecordVO, String>() {
            public void update(int index, RecordVO object, String value) {
               // This will return updated value
            }

Any help or guidance in this matter would be appreciated.
--
Best Regards,
V








Thomas Broyer

unread,
Mar 27, 2012, 11:52:59 AM3/27/12
to google-we...@googlegroups.com

vaibhav gwt

unread,
Mar 28, 2012, 4:50:05 AM3/28/12
to Google Web Toolkit
Thanks for reply. How to cancel key events for spaces when in edit
mode?

On Mar 27, 8:52 pm, Thomas Broyer <t.bro...@gmail.com> wrote:
> Answered on
> SO:http://stackoverflow.com/questions/9891671/gwt-celltable-how-to-avoid...
> > <http://about.me/vaibhavbhalke>

Thomas Broyer

unread,
Mar 28, 2012, 5:14:29 AM3/28/12
to google-we...@googlegroups.com


On Wednesday, March 28, 2012 10:50:05 AM UTC+2, vaibhav gwt wrote:
Thanks for reply. How to cancel key events for spaces when in edit
mode?

Answered on SO. Could we please stop this silly cross-posting?
Reply all
Reply to author
Forward
0 new messages