Results 1 to 3 of 3

Thread: NestedDivFrame appearance relies on background resource in Blue theme

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Ext GWT Premium Member lefke123's Avatar
    Join Date
    Dec 2011

    Default NestedDivFrame appearance relies on background resource in Blue theme

    If you take a look at the CSS file for NestedDivFrame, you will notice it is full of sprites like the offending background one:

    @sprite .content {
      gwt-image: 'background';
      overflow: visible;
      height: auto;
      width: auto;
    But there's no ImageResource method for background in the NestedDivFrameResources interface. There is a background ImageResource in the BlueFramedPanelDivFrameResources interface:

    public interface BlueFramedPanelDivFrameResources extends FramedPanelDivFrameResources, ClientBundle {
        @ImageOptions(repeatStyle = RepeatStyle.Both)
        ImageResource background(); // Needs to be in NestedDivFrameResources.
    This means in any subclass of NestedDivFrame that doesn't use the Blue theme there's trouble.

    Also, the extends ClientBundle should be in the NestedDivFrameResources interface in my opinion.

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Redwood City, California


    Thanks for the critiques. You're completely right - referencing an image that the interface doesn't require is not at all what we want to do here. I've filed an API review ticket against the team and will update here with any changes we make.

    We don't add the extends ClientBundle until the very last interface because this triggers the GWT ClientBundle generators. Whenever we add extends ClientBundle, every CSS file that is included into a CssResource must already be specified. As a result, we only add extends ClientBundle on the Blue resources class.

  3. #3
    Sencha User darrellmeyer's Avatar
    Join Date
    May 2007
    Washington, DC


    NestedDivFrameResources defines the images required for the frame. However, the base theme does not provide any images. The interface should be extended to provide implementation. Because images are not provided in the base theme, the interface does not extend ClientBundle as this would cause errors as GWT tries to validate that images exist. Subclasses should extend ClientBundle.

    I have added better docs to NestedDivFrame and NestedDivFrameResources to make this clear.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts