I am having a hard time getting my context input screen up.

In the finishLoad method of one of my context dependent screens(call it
DependentScreenA) I have the following code:

PagoState state = (PagoState) getVisit();
                if (state.getCurrentFacilityGroup() == null)
                {
                        logger.debug("current fg is null, let's select
it");
                        // todo, must figure out way to get name here

                        state.selectFGMonth(cycle, "Test");
                }


Now, in my visit object I have the following:
public void selectFGMonth(IRequestCycle cycle, String returnPage)
        {
                logger.debug("Being asked to select fg/ month, return
page is:" + returnPage);
                mReturnPage = returnPage;

                new
PageRedirectException(cycle.getPage("SelectFGMonth"));
        }


And this is what I thought I would call when the context information is
entered:

public void fgMonthSelected(IRequestCycle cycle, FacilityGroup fg, Month
month)
        {

                setCurrentFacilityGroup(fg);
                setCurrentMonth(month);
                assert mReturnPage != null;
                cycle.activate(mReturnPage);

        }

However, when I bring up DependentScreenA, it does call the
selectFGMonth method, but DependentScreenA renders.



Is this approach all wrong?

Thanks
craig

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to