SmartGWT the mysterious xxx is not a function

sponsored links
Among the calendar, added some EventEditor Fields.

Two of SelectItem, SelectItem do want to use these two linked, but how

Not successful. Set criterian not work. So like lazy, one of the SelectItem

Changes to disable the other out, so call otherSelectItem.disable () method.

This time, there has been an exception, the error is disable is not a function.

This time, either disable or hide, is this an exception. So remember previously

There have been such a mistake, then using the grid of fetchData way, but that time grid also

Not initialized, so fetchData method naturally does not exist.

The same reasoning about, is it this time, selectItem have not initialized? Calendar thought

Particularity, it is not I create a form, but I use setEventEditorFields (...) to

Settings. In other words, I set the field are initialized, but this may just be a template, so

In the run-time, the fact that it is in accordance with my template to create an instance of another. I created this

field, the client simply does not initialize.

Would like to see this thing easier to handle. In onChanged incident, you can get to the current form

And then use the current form to obtain the appropriate field, and then to disable, ok.

Can be seen in the use SmartGWT, many instances of state, is much needed attention.

Echo impression previously used when a similar situation. Grid seems to be the Editor before there have been such a problem.

Also, now form.getField, only to return TextItem. If you want to get SelectItem, must do:

SelectItem item = new SelectItem( event.getForm().getField("other").getJsObject());
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of SmartGWT the mysterious xxx is not a function

  • JRuby on Rails migration experience

    Recently, a number of reasons, want to do a project migration from JRuby cruby up, it encountered a number of questions and doubts, write them down to share with you and explore. 1. Project Overview The original configuration: rails 2.2.2, ruby 1.8.7 ...

  • Ruby Medium Module

    Constant use of module: module name:: constant name The definition of modules with module ... end. Module with the type is very similar to, but: A) module object can not have instances; B) modules can not have subclasses.

  • javascript typeof operator

    typeof operator typeof operator has a parameter, that is, to check the variable or value. For example: Values of variables or call typeof operator will return the following values: undefined - if the types of variables are Undefined boolean - If the ...

  • Topsy Ruby Series: Topsy Symbol

    Learn Ruby would Symbol it puzzled me too, so look to spend more time Symbol. Symbol Chinese name symbols, because the tags are used to a certain kind of things. Early read some information, in my mind, feel like a String, like Symbol, you can visit ...

  • ror get openssl error problem under redhat

    For a whole day yesterday Playing with Bahrain sqlite -driven, and built my first rails of the wrong time require_frameworks': no such file to load - openssl (RuntimeError I found a line at this mistake a lot of newspapers but rarely resolved, th ...

  • mac development environment to deploy ror

    I do not have any type of unix experience, so middle of the book while watching the linux side found the web page, which eventually led http://danbenjamin.com/articles/2008/02/ruby-rails-leopard Rubystack package also has a good selection mistake, very la

  • In the Windows platform using Apache2.2 and Mongrel running Ruby on Rails

    First, install Ruby, rails, mongrel and Apache2.2 Rubyforge download from the web site One-Click Ruby Install, run setup on installed ruby and rubygems. Run the command: gem install rails-y gem install mongrel-y gem install mongrel_service-y Installed rai

  • Msxml2.XMLHTTP version problem

    Projects with an import feature prototype.js of Ajax functionality to update the prompt, the code is very simple, do not have the framework of the background on a jsp to output Text, future use of timers and to update the page Ajax.request encountere ...

  • Real design pattern

    I hate the thought of the time to teach some provide a lot of code, because I think the thought process of acceptance should be a pleasure to read as a novel process, rather than spend a lot of brain power for a certain process details And this world ...

  • Answer: After 2.2 upgrade mysql question-driven

    windows installed after the mysql gem error, error is approximately: ArgumentError (NULL pointer given): (eval): 3: in `each_hash ' (eval): 3: in `all_hashes' This is feeling under the windows of the question if the mysql gem version libmysql ...

blog comments powered by Disqus
Recent
Recent Entries
Tag Cloud
Random Entries