View Full Version : GWT + DisclosurePanel + arrows

July 19th, 2010, 10:41 AM
Hi everybody,
I'm trying to change the arrow icons of the GWT disclosure panels. I
made it in a GWT class.

public interface CustomDisclosurePanelImages extends
public AbstractImagePrototype disclosurePanelClosed();

public AbstractImagePrototype disclosurePanelOpen();

CustomDisclosurePanelImages cdpi = (CustomDisclosurePanelImages) GWT

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

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

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

April 6th, 2011, 03:55 PM
closedImage will do. just a typo.