Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Warnings

    I'm getting some messages like this one:
    Code:
    17:49:23.072:TMR8:WARN:TextItem:isc_TextItem_2033[dateTextField]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
    What could this mean?
    using smartgwt 4.1p power 27.01

    #2
    This basically means that our framework logic is failing to find the form item's handle -- or more accurately the "focusable element" in the DOM after the item has been drawn.

    Can you show us how you're getting this?

    Comment


      #3
      An example:

      Code:
      @Override
      	public void onModuleLoad() {
      
      		VLayout layout = new VLayout();
      
      		IButton clickMe = new IButton("click me");
      
      		clickMe.addClickHandler(new ClickHandler() {
      
      			@Override
      			public void onClick(ClickEvent event) {
      				MyWindow w = new MyWindow();
      				w.show();
      			}
      		});
      
      		layout.addMembers(clickMe);
      		layout.setWidth100();
      		layout.setHeight100();
      
      		layout.draw();
      	}
      
      	private class MyWindow extends Window {
      		public MyWindow() {
      			setWidth(300);
      			setHeight(300);
      			LinkItem urlItem = new LinkItem("myUrl");
      			urlItem.setLinkTitle("www.google.de");
      			urlItem.setShowTitle(false);
      			urlItem.addClickHandler(new com.smartgwt.client.widgets.form.fields.events.ClickHandler() {
      
      				@Override
      				public void onClick(
      						com.smartgwt.client.widgets.form.fields.events.ClickEvent event) {
      					com.google.gwt.user.client.Window.open(
      							"http://www.google.de", "_blank", "");
      				}
      			});
      
      			LinkItem linkItem = new LinkItem("myEmail");
      			linkItem.setLinkTitle("info@info.com");
      			linkItem.setShowTitle(false);
      			linkItem.addClickHandler(new com.smartgwt.client.widgets.form.fields.events.ClickHandler() {
      
      				@Override
      				public void onClick(
      						com.smartgwt.client.widgets.form.fields.events.ClickEvent event) {
      					com.google.gwt.user.client.Window.open(
      							"mailto:info@info.com", "_self", "");
      				}
      			});
      
      			VLayout layout = new VLayout();
      			DynamicForm df = new DynamicForm();
      			df.setNumCols(1);
      			df.setFields(urlItem, linkItem);
      			layout.addMember(df);
      			addItem(layout);
      		}
      	}
      Using smartgwt 5.0p eval 27.01

      Message:
      Code:
      00:58:32.400:MUP2:WARN:LinkItem:isc_LinkItem_2[myUrl]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
      00:58:32.404:MUP2:WARN:LinkItem:isc_LinkItem_2[myUrl]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
      00:58:32.405:MUP2:WARN:LinkItem:isc_LinkItem_3[myEmail]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
      00:58:32.406:MUP2:WARN:LinkItem:isc_LinkItem_3[myEmail]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
      00:58:32.429:TMR7:WARN:LinkItem:isc_LinkItem_2[myUrl]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
      00:58:32.430:TMR7:WARN:LinkItem:isc_LinkItem_3[myEmail]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element

      Comment


        #4
        Thanks for the clear test case. We've found and fixed the issue.
        Please try the next nightly build dated Feb 10 or above

        Regards
        Isomorphic Software

        Comment


          #5
          I am also getting this issue and having searched the forum found this thread.

          I have just upgraded my smartGWT pro version today (SmartClient Version: v10.0p_2015-02-18/Pro Deployment (built 2015-02-18)) and I'm still getting the warnings.

          Sometimes the warnings appear and everything from a user perspective seems ok, most of the time however the link is disabled.

          Seems like a timing issue as sometimes it will render correctly, tried attaching the click event in a schedule deferred event but that has made no difference.

          Code:
          17:19:49.757:MOU5[E0]:WARN:LinkItem:isc_LinkItem_1[viewEditLink]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
          17:19:49.766:MOU5[E0]:WARN:LinkItem:isc_LinkItem_1[viewEditLink]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
          17:19:49.835:MOU5[E0]:WARN:LinkItem:isc_LinkItem_5[addParticipantLink]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
          17:19:49.845:MOU5[E0]:WARN:LinkItem:isc_LinkItem_5[addParticipantLink]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
          17:19:51.401:TMR1:WARN:LinkItem:isc_LinkItem_1[viewEditLink]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
          17:19:51.414:TMR1:WARN:LinkItem:isc_LinkItem_5[addParticipantLink]:Attempting to apply event handlers to this item. Unable to get a pointer to this item's focus element
          Thanks,
          Dale

          Comment

          Working...
          X