EditCartBody instead of redirect

5 views
Skip to first unread message

rula

unread,
Sep 9, 2008, 8:21:36 AM9/9/08
to KonaKart
Hi KonaKarts,
i will extend your onePageCheckout gwt struts integration to a pure
gwt frontend.
I copy LoginBody to EditCartBody and change this in the controller
methode:
} else if (currentState == EMAIL_STATE)
{GWT.log("EMAIL_STATE", null);
if (action == BACK)
{
currentState = EDIT_CART_STATE;
getEditCartBody().renderGetEmail();
//redirect("ShowCartItems.do");
} else if (action == CONTINUE)

I do all the things which you have done with LoginBody, but I am not
able to add something new in the containerPanel of the new
EditCartBody window.

// Get the container panel
HTMLPanel containerPanel = getContainerPanel(1);
GWT.log("containerPanel1: " + containerPanel.toString(),
null);

// Get the header
Widget header = renderHeader(login_body_welcome_email,
"table_background_login.gif",
login_body_welcome_email);
GWT.log("containerPanel2: " + header.toString(), null);
// Add the header to the container panel
containerPanel.add(header, HEADER_ID);
GWT.log("containerPanel3: " + containerPanel.toString(),
null);

The comtainerPanel and header are filled correct. What's the problem
with the add methode? Regards, rula
Reply all
Reply to author
Forward
0 new messages