Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何调用GWT'-CellTable CustomEditTextCells api,如Commit()&;是否从javascript/jquery中取消()?_Java_Javascript_Jquery_Gwt - Fatal编程技术网

如何调用GWT'-CellTable CustomEditTextCells api,如Commit()&;是否从javascript/jquery中取消()?

如何调用GWT'-CellTable CustomEditTextCells api,如Commit()&;是否从javascript/jquery中取消()?,java,javascript,jquery,gwt,Java,Javascript,Jquery,Gwt,我正在使用GWT2.3 celltable 如何使用javascript/jquery从L调用GWT'-CellTable CustomEditTextCells api,如Commit()&Cancel() 以下是EdittextCell GWT的cancel() 有没有其他方法可以在javascript中实现这一点 /** * Commit the current value. * * @param context the context of the cell

我正在使用GWT2.3 celltable

如何使用javascript/jquery从L调用GWT'-CellTable CustomEditTextCells api,如Commit()&Cancel()

以下是EdittextCell GWT的cancel()

有没有其他方法可以在javascript中实现这一点

    /**
   * Commit the current value.
   * 
   * @param context the context of the cell
   * @param parent the parent Element
   * @param viewData the {@link ViewData} object
   * @param valueUpdater the {@link ValueUpdater}
   */
  private void commit(Context context, Element parent, ViewData viewData,
      ValueUpdater<String> valueUpdater) {
    String value = updateViewData(parent, viewData, false);
    clearInput(getInputElement(parent));
    setValue(context, parent, viewData.getOriginal());  
    if (valueUpdater != null) {
      valueUpdater.update(value);
    }
  }
使用javascript我想将新值更新到所选单元格并将其转换为非编辑模式如何使用javascript/jquery

额外信息:

当EditTextCell处于非编辑模式时,其内部html代码为 单击editTextCell后,单元格将从非编辑模式转换为编辑模式。 我在那个单元格中创建了输入元素+Img

点击图片,我打开了jQuerysDatePicker

单击jquery datepicker上的“完成”按钮,我需要将该单元格转换为非edt模式,并将新值更新为GWT celltable提供的valueUpdater。 valueUpdater将新值更新到celltable

请为我提供解决方案或任何解决此问题的指针


提前感谢。

单元格中的渲染方法将“id”附加到它并

使用
$('renderId').val(“updatedValue”)


我没有试过。

你试过
$('renderId').val(“updatedValue”).blur()吗

使用gwt时,此功能正常工作,并且值正确更新为呈现id,但单元格未转换为非编辑模式,也未提交(即未通知celltable值已更新)
/**
   * Convert the cell to non-edit mode.
   * 
   * @param context the context of the cell
   * @param parent the parent Element
   * @param value the value associated with the cell
   */
  private void cancel(Context context, Element parent, String value) {
    clearInput(getInputElement(parent));
    setValue(context, parent, value);
  }