return success;
}
status = "refresh";
}
Page page = requestContext.getPage();
String layoutId = getActionParameter(requestContext, LAYOUTID);
Fragment fragment = pageManager.newFragment();
fragment.setType(Fragment.PORTLET);
fragment.setName(portletId);
//fragment.setLayoutColumn(iCol);
//fragment.setLayoutRow(iRow);
Fragment placeInLayoutFragment = null;
if ( layoutId != null && layoutId.length() > 0 )
{
placeInLayoutFragment = page.getFragmentById( layoutId );
if ( placeInLayoutFragment == null )
{
throw new Exception( "layout id not found: " + layoutId );
}
}
else
{
placeInLayoutFragment = page.getRootFragment();
}
success = placeFragment( requestContext,
pageManager,
batch,