PDA

View Full Version : GWT + DisclosurePanel + arrows



rlebosse
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
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.
<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

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