[jboss-jira] [JBoss JIRA] Assigned: (JBPORTAL-2457) Reset button in dashboard configuration console

Luca Stancapiano (JIRA) jira-events at lists.jboss.org
Tue Sep 15 18:52:23 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBPORTAL-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luca Stancapiano reassigned JBPORTAL-2457:
------------------------------------------

    Assignee: Luca Stancapiano


> Reset button in dashboard configuration console
> -----------------------------------------------
>
>                 Key: JBPORTAL-2457
>                 URL: https://jira.jboss.org/jira/browse/JBPORTAL-2457
>             Project: JBoss Portal
>          Issue Type: Patch
>      Security Level: Public(Everyone can see) 
>          Components: Portal Core Admin
>    Affects Versions: 2.7.2 Final
>         Environment: JBoss Portal 2.7.2 in JBoss 4.2.3 or JBoss 5.1
>            Reporter: Luca Stancapiano
>            Assignee: Luca Stancapiano
>             Fix For: 2.8 Final
>
>
> I think a Reset button in the dashboard configuration console could be useful......so the user can synchronize own dashboard through the template. Here there re the new code:
> core-admin/src/resources/portal-admin-war/jsf/dashboard/dashboard.xhtml: 126
> added the button:
>                   <tr>
>                      <td>
>                         <h:form id="dashboardResetForm">
>                            <h:commandButton value="#{bundle.DASHBOARD_RESET}" styleClass="portlet-form-button"
>                                             action="#{dashboard.actionReset}"/>
>                         </h:form>
>                      </td>
>                   </tr>
>                   <tr>
>                      <td height="20"></td>
>                   </tr>
> core-admin/src/resources/portal-admin-war/WEB-INF/faces-config.xml
> core-admin/src/resources/portal-admin-war/WEB-INF/jboss-portlet.xml
> In theese files has to be added the CustomizationService reference
> core-admin/src/resources/portal-admin-war/WEB-INF/classes/Resource.properties
> core-admin/src/resources/portal-admin-war/WEB-INF/classes/Resource_it.properties
> In the resource files I added the DASHBOARD_RESET feature
> org.jboss.portal.core.admin.ui.dashboard.DashboardBean
> Here I added the customizationManager property and a new method:
>    public void actionReset()
>    {
>       String userId = FacesContext.getCurrentInstance().getExternalContext().getRemoteUser();
>       customizationManager.destroyDashboard(userId);
>    }
> It destroies the dashboard when the user clicks the new button in the dashboard configuration console. Then, when the user go in own dashboard, automatically it is copied from template

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list