portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vku...@apache.org
Subject svn commit: r713371 - in /portals/jetspeed-2/applications/j2-admin/trunk/src: main/java/org/apache/jetspeed/portlets/pam/PortletApplicationBrowser.java webapp/WEB-INF/view/pam-browser.jsp
Date Wed, 12 Nov 2008 13:50:36 GMT
Author: vkumar
Date: Wed Nov 12 05:50:35 2008
New Revision: 713371

URL: http://svn.apache.org/viewvc?rev=713371&view=rev
Log:
Fixing issue https://issues.apache.org/jira/browse/JS2-165
Now Portlet Application Manager will have refresh button to reload tree, with out logging
out.

Modified:
    portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/pam/PortletApplicationBrowser.java
    portals/jetspeed-2/applications/j2-admin/trunk/src/webapp/WEB-INF/view/pam-browser.jsp

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/pam/PortletApplicationBrowser.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/pam/PortletApplicationBrowser.java?rev=713371&r1=713370&r2=713371&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/pam/PortletApplicationBrowser.java
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/main/java/org/apache/jetspeed/portlets/pam/PortletApplicationBrowser.java
Wed Nov 12 05:50:35 2008
@@ -97,7 +97,15 @@
     
 	public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws
PortletException, IOException
 	{
-		TreeControl control = (TreeControl) actionRequest.getPortletSession().getAttribute("j2_tree");
+		String refreshTrue = actionRequest.getParameter("refershTree");
+		
+		if(refreshTrue !=null && refreshTrue.equals("true"))
+		{
+		        actionRequest.removeAttribute("j2_tree");
+		        actionRequest.getPortletSession().removeAttribute("j2_tree");
+		}
+		
+	    TreeControl control = (TreeControl) actionRequest.getPortletSession().getAttribute("j2_tree");
 		//assert control != null
 		if(control != null)
 		{

Modified: portals/jetspeed-2/applications/j2-admin/trunk/src/webapp/WEB-INF/view/pam-browser.jsp
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/applications/j2-admin/trunk/src/webapp/WEB-INF/view/pam-browser.jsp?rev=713371&r1=713370&r2=713371&view=diff
==============================================================================
--- portals/jetspeed-2/applications/j2-admin/trunk/src/webapp/WEB-INF/view/pam-browser.jsp
(original)
+++ portals/jetspeed-2/applications/j2-admin/trunk/src/webapp/WEB-INF/view/pam-browser.jsp
Wed Nov 12 05:50:35 2008
@@ -37,7 +37,10 @@
 	<input type="submit" value="Search" class="portlet-form-button"/>
 
 </form>
-
+<form name="refresh" action="<c:out value="${searchLink}"/>" method="post">
+	<input type="hidden" name="refershTree" value="true" />
+	<input type="submit" value="Refresh" class="portlet-form-button"/>
+</form>
 <c:set var="results" value="${requestScope.search_results}" />
 
 <c:if test="${results != null}">



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message