Author: chris.laprun(a)jboss.com
Date: 2012-03-13 12:15:00 -0400 (Tue, 13 Mar 2012)
New Revision: 8578
Modified:
components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerBean.java
components/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/web.xml
Log:
- GTNWSRP-250: Make portletHandles, existingExports and currentExport transient and
regenerate the data from persistence instead. Re-activated distributable mode. Needs to be
more thoroughly tested.
Modified:
components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerBean.java
===================================================================
---
components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerBean.java 2012-03-13
15:53:47 UTC (rev 8577)
+++
components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerBean.java 2012-03-13
16:15:00 UTC (rev 8578)
@@ -1,6 +1,6 @@
/*
* JBoss, a division of Red Hat
- * Copyright 2011, Red Hat Middleware, LLC, and individual
+ * Copyright 2012, Red Hat Middleware, LLC, and individual
* contributors as indicated by the @authors tag. See the
* copyright.txt in the distribution for a full listing of
* individual contributors.
@@ -88,9 +88,9 @@
private static final String FAILED_PORTLETS =
"bean_consumer_import_failed_portlets";
private static final String CONSUMER_TYPE = "CONSUMER_TYPE";
- private DataModel portletHandles;
- private DataModel existingExports;
- private ExportInfoDisplay currentExport;
+ private transient DataModel portletHandles;
+ private transient DataModel existingExports;
+ private transient ExportInfoDisplay currentExport;
private static void bypassAndRedisplay()
{
@@ -571,7 +571,7 @@
public boolean isReadyForExport()
{
- List<SelectablePortletHandle> handles =
(List<SelectablePortletHandle>)portletHandles.getWrappedData();
+ List<SelectablePortletHandle> handles =
(List<SelectablePortletHandle>)getPortlets().getWrappedData();
for (SelectablePortletHandle handle : handles)
{
if (handle.isSelected())
@@ -588,7 +588,7 @@
final WSRPConsumer consumer = getConsumer();
if (consumer != null)
{
- List<SelectablePortletHandle> handles =
(List<SelectablePortletHandle>)portletHandles.getWrappedData();
+ List<SelectablePortletHandle> handles =
(List<SelectablePortletHandle>)getPortlets().getWrappedData();
List<String> selectedHandles = new
ArrayList<String>(handles.size());
for (SelectablePortletHandle selectablePortletHandle : handles)
{
@@ -737,7 +737,7 @@
public void selectExport()
{
- currentExport = (ExportInfoDisplay)existingExports.getRowData();
+ currentExport = (ExportInfoDisplay)getExistingExports().getRowData();
}
public boolean isImportExportSupported()
Modified: components/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/web.xml
===================================================================
--- components/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/web.xml 2012-03-13 15:53:47
UTC (rev 8577)
+++ components/wsrp/trunk/admin-gui/src/main/webapp/WEB-INF/web.xml 2012-03-13 16:15:00
UTC (rev 8578)
@@ -79,7 +79,7 @@
<location>/faces/jsf/error.xhtml</location>
</error-page>
- <!--<distributable/>-->
+ <distributable/>
</web-app>
Show replies by date