Skip to content

Commit

Permalink
Merge pull request #6796 from IQSS/6230-gf-upgrade-part-deux
Browse files Browse the repository at this point in the history
6230 gf upgrade part deux
  • Loading branch information
kcondon authored Apr 7, 2020
2 parents 076bc32 + 396e177 commit d04d09c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/main/webapp/guestbook.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<f:viewParam name="id" value="#{GuestbookPage.guestbookId}"/>
<f:viewParam name="ownerId" value="#{GuestbookPage.ownerId}"/>
<f:viewParam name="sourceId" value="#{GuestbookPage.sourceId}"/>
<f:viewParam name="editMode" value="#{GuestbookPage.editMode}"/>
<f:viewAction action="#{dataverseSession.updateLocaleInViewRoot}"/>
<f:viewAction action="#{GuestbookPage.init}" />
<f:viewAction action="#{dataverseHeaderFragment.initBreadcrumbs(GuestbookPage.dataverse, (GuestbookPage.editMode == 'CREATE' ? bundle['dataset.manageGuestbooks.createBtn'] : GuestbookPage.guestbook.name))}"/>
Expand Down Expand Up @@ -197,4 +196,4 @@
</ui:define>
</ui:composition>
</h:body>
</html>
</html>
9 changes: 5 additions & 4 deletions src/main/webapp/template.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:o="http://omnifaces.org/ui"
xmlns:jsf="http://xmlns.jcp.org/jsf">
<h:head>
</h:head>
Expand All @@ -19,7 +20,7 @@
<f:metadata>
<f:viewParam name="id" value="#{TemplatePage.templateId}"/>
<f:viewParam name="ownerId" value="#{TemplatePage.ownerId}"/>
<f:viewParam name="editMode" value="#{TemplatePage.editMode}"/>
<o:viewParam name="editMode" value="#{TemplatePage.editMode}"/>
<f:viewAction action="#{dataverseSession.updateLocaleInViewRoot}"/>
<f:viewAction action="#{TemplatePage.init}"/>
<f:viewAction action="#{dataverseHeaderFragment.initBreadcrumbs(TemplatePage.template.dataverse, (TemplatePage.editMode == 'CREATE' ? bundle['dataset.manageTemplates.createBtn'] : TemplatePage.template.name))}"/>
Expand Down Expand Up @@ -110,12 +111,12 @@
</ui:fragment>
<!-- Create/Save Dataset Button Panel -->
<div class="button-block" jsf:rendered="#{!empty TemplatePage.editMode}">
<p:commandButton styleClass="btn btn-default" action="#{TemplatePage.save('Terms')}" update="@all"
<p:commandButton styleClass="btn btn-default" action="#{TemplatePage.save('Terms')}" update=":@form,messagePanel"
value="#{bundle['dataset.create.add.terms']}"
rendered="#{TemplatePage.editMode == 'CREATE'}">
<f:ajax onerror="window.scrollTo(0, 0)"/>
</p:commandButton>
<p:commandButton styleClass="btn btn-default" action="#{TemplatePage.save('')}" update="@all"
<p:commandButton styleClass="btn btn-default" action="#{TemplatePage.save('')}" update="@form,messagePanel"
value="#{TemplatePage.editMode == 'LICENSEADD' ? bundle['dataset.manageTemplates.saveNewTerms'] : bundle.saveChanges}"
rendered="#{TemplatePage.editMode == 'METADATA' or TemplatePage.editMode == 'LICENSE' or TemplatePage.editMode == 'LICENSEADD'}">
<f:ajax onerror="window.scrollTo(0, 0)"/>
Expand All @@ -127,4 +128,4 @@
</ui:define>
</ui:composition>
</h:body>
</html>
</html>

0 comments on commit d04d09c

Please sign in to comment.