Hi,
Thanks for the reply.I have used NetUI button with proper tagId, as
mentioned. Also I am getting the following error in the weblogic console ( I
am using weblogic application server ) .
*ERROR error, Auto-render forward _auto used, but no ViewRenderer was
registered
-- not doing any forward or redirect.
*
I looked up in the internet for this issue and found that it was a bug in
1.0 release and has been fixed in 1.0.1. I am using the latest version of
beehive , which is 1.0.2 . I am I using a wrong version of beehive NetUI ?
Has anybody able to get the popup sample running ?
Looking forward for some help.
*
*
On Tue, Mar 11, 2008 at 7:36 AM, Carlin Rogers <[EMAIL PROTECTED]>
wrote:
> Sounds like the framework JavaScript to update the parent page in the
> main flow and close the popup does not execute correctly. Does the
> color text box field of the parent page get populated when you close
> the popup? If not, do you have a NetUI text box with the tagId
> attribute set to the same value as the tagIdRef="colorField" attribute
> of your configurePopup? From the example, something like the
> following.
> <netui:textBox dataSource="actionForm.color" tagId="colorField"/>
>
> Look for any JavaScript errors that your browser detects. They may
> give you more detail about the issue.
>
> Kind regards,
> Carlin
>
> On Mon, Mar 10, 2008 at 4:41 PM, Balasubramaniam Rajagopal
> <[EMAIL PROTECTED]> wrote:
> > Hello group,
> >
> > I was trying to execute a Popup sample with NetUI tags based on the
> example
> > given in the documentation. After submitting the form from the pop up
> window
> > the the control comes back to the main flow as expected. But the pop up
> > window is not closed and hence the control doesn't come back to
> original
> > page that created the popup. It seems that the 'return new
> Forward("_auto")
> > has not effect. I feel that I am definitely missing something but
> could not
> > figure that out. Expecting some help from the experts..
> >
> > JSP Code used to create the Pop up window.
> >
> > <netui:button type="submit" value="Go to the Color Picker"
> > action="getColor" popup="true">
> >
> > <netui:configurePopup
> > location="false"
> > width="170" height="150">
> > <netui:retrievePopupOutput dataSource="
> > outputFormBean.color"
> > tagIdRef="colorField" />
> > </netui:configurePopup>
> > </netui:button>
> >
> > The following is the (Significant)code for MainController
> >
> > @Jpf.Action()
> > public Forward getColorSuccess(GetColorController.ColorFormcolorForm) {
> >
> > System.out.println(" Inside getColorSuccess method
> > "+colorForm.getColor());
> >
> > return new Forward("_auto");
> >
> > }
> >
> > @Jpf.Action(forwards = { @Jpf.Forward(name = "success", path = "
> show.jsp")
> > }, validationErrorForward = @Jpf.Forward(name = "failure", navigateTo =
> > Jpf.NavigateTo.currentPage))
> > public Forward submit(SubmitForm form) {
> > Forward forward = new Forward("success");
> > forward.addActionOutput("form", form);
> > return forward;
> > }
> >
> > @Jpf.FormBean()
> > public static class SubmitForm implements Serializable {
> >
> > private String _name;
> >
> > private String _color;
> >
> > public String getName() {
> > return _name;
> > }
> >
> > public void setName(String value) {
> > _name = value;
> > }
> >
> > public String getColor() {
> > return _color;
> > }
> >
> > public void setColor(String color) {
> > _color = color;
> > }
> > }
> >
> > And the following is the code for the Nested Controller
> >
> > @Jpf.Action(
> > useFormBean = "_returnFormBean",
> > forwards = {
> > @Jpf.Forward(
> > name = "confirm",
> > path = "confirm.jsp",
> > actionOutputs = {
> > @Jpf.ActionOutput(name = "chosenColor", type = String.class,
> > required = true)
> > }
> > )
> > }
> > )
> > public Forward submitColor(ColorForm form) {
> > Forward fwd = new Forward("confirm");
> > fwd.addActionOutput("chosenColor", form.getColor());
> > return fwd;
> > }
> >
> > @Jpf.Action(
> > forwards = {
> > @Jpf.Forward(name = "success", returnAction = "getColorSuccess",
> > outputFormBeanType = ColorForm.class)
> > }
> > )
> > public Forward done(ColorForm form) {
> > System.out.println(" Inside Action Done ");
> > return new Forward("success", _returnFormBean);
> > }
> >
> > public static class ColorForm
> > implements Serializable {
> > private String _color;
> >
> > public String getColor() {
> > return _color;
> > }
> >
> > public void setColor(String value) {
> > _color = value;
> > }
> > }
> >
> > Your help is sincerely appreciated in this regard.
> >
> > Thanks.
> >
>