beehive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers" <>
Subject Re: retrievePopupOutput can't work when using onPopupDone
Date Tue, 29 Aug 2006 16:40:07 GMT
When you configure a popup without setting the onPopupDone property, the
popup window defaults to use a NetUI JavaScript routine. Before closing, the
popup window calls the routine in the original page. That routine takes a
map of name value pairs of the retrieved data and updates the fields in the
original page.

You can take a look at the routine to see what it does. Edit your JSP so
that the <netui:configurePopup> does not include the onPopupDone attribute.
Then hit the page so it is rendered in your browser window and view the
source of the page. Look for the routine called "Netui_OnPopupDone" that
takes a map as a parameter.

The onPopupDone property is provided so that a developer can override/extend
the NetUI JavaScript routine. This allows you to change the the default
field-mapping behavior. If you still want the same field mapping behavior,
you could have your "done()" JavaScript method do something similar to
Netui_OnPopupDone(), or just call it.

Hope that helps. Kind regards,

On 8/28/06, jephen <> wrote:
> hi,all:
> my netui:retrievePopupOutput can't work when the configurePopup have the
> onPopupDone property.
> for example:
> <netui:anchor action="begin" popup="true">begin
>     <netui:configurePopup height="200" onPopupDone="done" width="200">
>         <netui:retrievePopupOutput dataSource="outputFormBean.code"
>                               tagIdRef="labelCode" />
>     </netui:configurePopup>
> </netui:anchor>
>   ... <snip> ...
>         </netui:form></p>
>    <netui:scriptBlock placement="after">
>     function done() {
>        alert("1");
>     }
>    </netui:scriptBlock>
> </netui:body>
> But It can receive the retrieved value without onPopupDone property.
> Why?  can you help me?
> --
> View this message in context:
> Sent from the Beehive - User forum at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message