I found the solution.
Dont forget the "d" of "closedImage".
closedImage="{disclosurePanelClosed}"On Jul 19, 11:43 am, rlebosse <[email protected]> wrote: > 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 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
