Announcement

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

    Migration to 5.0p CheckboxItem's issue

    I am trying to migrate from SmartGwt 3.1p to 5.0p
    ( v8.3p_2013-02-08/LGPL Development Only (built 2013-02-08))
    (SNAPSHOT_v10.1d_2014-09-08/LGPL Development Only (built 2014-09-08))

    With 5.0p the CheckboxItem behaves differently. The difference is with methods setCheckedImage and setUncheckedImage. They work good with 3.1p (I can see images I wish to see instead of the ordinary ones) but the same code that uses these methods does not work with 5.0p.
    I tested with FF 18.0.2 and with Chrome Version 39.0.2171.71 m


    here is the sample code you can easily run an check
    Code:
    import com.google.gwt.core.client.EntryPoint;
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.fields.CheckboxItem;
    import com.smartgwt.client.widgets.layout.VLayout;
    
    
    public class TestFormCheckbox implements EntryPoint {
    	
    	@Override
    	public void onModuleLoad() {
    
    		   VLayout layout = new VLayout(10);  
    		   
    	        final DynamicForm form = new DynamicForm();  
    	        form.setWidth(400);  
    	        form.setColWidths(120, "*");
    	        
    	        CheckboxItem checkboxItem = new CheckboxItem();  
    	        checkboxItem.setTitle("Checkbox");  
    	        checkboxItem.setHeight(15);
    	        
    	        checkboxItem.setCheckedImage("[SKIN]/headerIcons/double_arrow_left.png");
    	        checkboxItem.setUncheckedImage("[SKIN]/headerIcons/double_arrow_right.png");
    	        
    	        checkboxItem.setValueIconWidth(15);
    	        checkboxItem.setValueIconHeight(15);
    
    	        form.setFields(checkboxItem);  
    	        layout.addMember(form); 	        
    	  	        
    	        layout.draw();  
        }
    }
    I would appreciate any help. Thank in advance.

    Andrew G.

    #2
    FYI: You say 5.0p but show a version string from 5.1d. Also, this "d" version is quite old.

    Comment


      #3
      Thank you Blama. My fault. The correct version I tested with was - v10.0p_2014-09-11/LGPL Development Only (built 2014-09-11)

      So the issue can be seen with both new versions - 5.0p and 5.1d
      but everything is Ok with 3.1p. And I still need a help from Isomorphic.

      Thanks again.

      Comment


        #4
        Managed to sort it out. It was my app "cache"-issue.

        Thanks.

        Comment

        Working...
        X