portletConfig.addInitParameter(Bridge.BRIDGE_PACKAGE_PREFIX + "defaultViewId.edit", "/foo.xhtml");
HashMap<String, String> viewIdMap = new HashMap<String, String>();
viewIdMap.put("edit", "/foo.xml");
portletContext.setAttribute(Bridge.BRIDGE_PACKAGE_PREFIX + portletConfig.getPortletName() +"."+ Bridge.DEFAULT_VIEWID_MAP, viewIdMap);
portletBridge = new AjaxPortletBridge();
portletBridge.init(portletConfig);
Context appContext = new ApplicationContext( externalContext.getApplicationMap() );
installComponents(appContext);
}