DisclosurePanel + Custom images + XML

GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

DisclosurePanel + Custom images + XML

Postby rlebosse » Mon Jul 19, 2010 1:17 am

Hi everybody,
I'm trying to change the arrow icons of the GWT disclosure panels. I
made it in a GWT class.

Code: Select all
public interface CustomDisclosurePanelImages extends
DisclosurePanelImages
  {
    public AbstractImagePrototype disclosurePanelClosed();

    public AbstractImagePrototype disclosurePanelOpen();
  }

  CustomDisclosurePanelImages cdpi = (CustomDisclosurePanelImages) GWT
    .create(CustomDisclosurePanelImages.class);


However, my DisclosurePanel is created into an XML file. I created it that way.
Code: Select all
<ui:image field='disclosurePanelClosed' />
   <ui:image field='disclosurePanelOpen' />

<g:HTMLPanel>
<g:DisclosurePanel ui:field="sessions" stylePrimaryName='menu'>
      <g:header openImage='{disclosurePanelOpen}' closeImage='{disclosurePanelClosed}'>Sessions</g:header>
      <g:HTMLPanel>
        <ul class='{eres.menu.menuItems}'>
          <li>
            <g:Anchor ui:field="sessionsTotal" styleName=''>Total</
g:Anchor>
          </li>
          <li>
            <g:Anchor ui:field="sessionsByActivity" styleName=''>by
Activity</g:Anchor>
          </li>
        </ul>
      </g:HTMLPanel>
    </g:DisclosurePanel>
</g:HTMLPanel>


When I try to display my page, I've got the following error. Do you know what could be the cause of it? And how I can fix it? Thanks in advance for your help!

10:29:14.633 [ERROR] [ermin] In <g:header closeImage='{disclosurePanelClosed}' openImage='{disclosurePanelOpen}'> of <g:DisclosurePanel stylePrimaryName='menu' ui:field='sessions'>, both openImage and closedImage must be specified, or neither
rlebosse
 
Posts: 1
Joined: Mon Jul 19, 2010 1:11 am

Re: DisclosurePanel + Custom images + XML

Postby Eric Clayberg » Mon Jul 19, 2010 4:48 am

General GWT questions should be posted to Google's GWT forum.

This forum is for GWT Designer questions only.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to GWT Designer

Who is online

Users browsing this forum: No registered users and 1 guest