beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Ramirez (JIRA)" <>
Subject [jira] Closed: (BEEHIVE-863) Passing a FormBean to a popup
Date Tue, 20 Dec 2005 16:05:31 GMT
     [ ]
Alejandro Ramirez closed BEEHIVE-863:

Verifed fixed with build synched to svn revision 357225.

There is now a new "updateFormFields" attribute on the configurePopup tag. If this is set
to true, then the generated JavaScript will include a function that takes the form name and
then pulls the name/value pairs from the form fields to include as parameters of the query
on the url of the popup window request. 

There is also a bvt tests that can be used as an example (The test is passing).  The code
for the test is located here:

> Passing a FormBean to a popup
> -----------------------------
>          Key: BEEHIVE-863
>          URL:
>      Project: Beehive
>         Type: Improvement
>   Components: NetUI
>     Reporter: Jack Rudnick
>     Assignee: Alejandro Ramirez
>     Priority: Critical
>      Fix For: 1.1
>  Attachments: j863-first-patch.txt, j863-patch2.txt, j863-patch3.txt
> A popup is currently reached via a nested action, however, you can't pass a FormBean
(and more importantly, its values) from a parent action to the nested action for use in the
popup.  An example of how you may want to use this would be:
> 	>       1) parent form/page has a "To" text field in a form.
> 	>       2) I type in ""
> 	>       3) click the button (netui:button popup=true) to trigger the popup in the
parent page
> 	>       4) popup has its own form/page that has a "To" text field.
> 	>       5) When the popup renders, the popups "To" field should be prepopulated with
the "hello" value.
> You can currently pass the values of a popup to the parent, thus you should be able to
go the other way (pass the parent values to the popup) with a given framework way other than
constructing some javascript to do this in a custom manner.  One reason why this probably
doesn't currently work, is when you click the netui:button it doesn't submit the parent form,
thus the form and values don't get persisted for use by the popup.
> This is currently a very limiting shortcoming of using popups.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message