Foros de discusión
Portlet Instance - render() is called but site is not reloaded
Steven Behne, modificado hace 11 años.
Portlet Instance - render() is called but site is not reloaded
New Member Mensajes: 4 Fecha de incorporación: 17/10/12 Mensajes recientes
Hi everybody,
in moment im working on a project using the Portlet-Framework. No hooks, no externals.
My Portlet is configured with instanceable=true;
Add: Working with 6.1.1
My problem:
1. Calling processAction() and fire a new Event. (OK)
2. Calling ProcessEvent and save a value in response. (OK)
3. Calling get the Parameter in Render(override) and Saving the value in Preferences for every Instance(OK)
4. Back to view i do Syso.print with value(works), but the browser is not rendering(Problem)?
If i understand Portlet 2.0 right, after a ProcessAction and ProcessEvent every Portlet has to render itself. It's running through the render-phase up to the view and then there is no reload. Is there any Attribute, which i have to set for Instances to get this working. Is it an knows issues, or did I forget sth important?
If i reload the site, the content will be displayed fine.
Best Regards
in moment im working on a project using the Portlet-Framework. No hooks, no externals.
My Portlet is configured with instanceable=true;
Add: Working with 6.1.1
My problem:
1. Calling processAction() and fire a new Event. (OK)
2. Calling ProcessEvent and save a value in response. (OK)
response.setRenderParameter("project", value);
3. Calling get the Parameter in Render(override) and Saving the value in Preferences for every Instance(OK)
prefs.setValue("project", zwerg);
prefs.store();
4. Back to view i do Syso.print with value(works), but the browser is not rendering(Problem)?
<%
PortletPreferences prefs = renderRequest.getPreferences();
String wert = prefs.getValue("project", "Kein Projekt");
%>
// code is working, but there is no output on Browser
<% if(!wert.equals("Kein Projekt")){%>
Projekt geladen : <%= wert%>
<%
}else{%>
Kein Projekt geladen! <%= wert.length()%>
<%}%>
If i understand Portlet 2.0 right, after a ProcessAction and ProcessEvent every Portlet has to render itself. It's running through the render-phase up to the view and then there is no reload. Is there any Attribute, which i have to set for Instances to get this working. Is it an knows issues, or did I forget sth important?
If i reload the site, the content will be displayed fine.
Best Regards