Skip to content

Commit

Permalink
Remove 'singleSession' parameter from OpenSessionInViewFilter's confi…
Browse files Browse the repository at this point in the history
…guration + add ajax=false on certain buttons

OpenSessionInViewFilter's with singleSession=false => tremendous drop of performances
  • Loading branch information
gneuvill committed Jan 20, 2014
1 parent a1d2058 commit bb183c0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion esup-opi-web-jsf-servlet/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
</init-param>
<init-param>
<param-name>singleSession</param-name>
<param-value>false</param-value>
<param-value>true</param-value>
</init-param>
</filter>
<filter-mapping>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
<p:commandLink styleClass="ui-button ui-widget ui-state-default ui-corner-all"
style="padding: .4em;"
action="#{calendarController.goSeeOneCal}"
title="#{msgs['_.BUTTON.DISPLAY']}">
title="#{msgs['_.BUTTON.DISPLAY']}"
ajax="false">
<div class="ui-button-icon-left ui-icon ui-icon-search" />
<f:setPropertyActionListener value="#{calendarController.actionEnum.updateAction}"
target="#{calendarController.actionEnum.whatAction}"/>
Expand All @@ -91,7 +92,8 @@
style="padding: .4em;"
title="#{msgs['BUTTON.UPDATE']}"
action="#{calendarController.goUpdateCal}"
rendered="#{managedAccess.updateAuthorized}">
rendered="#{managedAccess.updateAuthorized}"
ajax="false">
<div class="ui-button-icon-left ui-icon ui-icon-pencil" />
<f:setPropertyActionListener value="#{calendarController.actionEnum.updateAction}"
target="#{calendarController.actionEnum.whatAction}"/>
Expand All @@ -111,8 +113,8 @@
<div class="ui-button-icon-left ui-icon ui-icon-minus" />
<f:setPropertyActionListener value="#{calendar}"
target="#{calendarController.beanCalendar.calendar}"/>
</p:commandLink>
</p:column>
</p:commandLink>
</p:column>
</p:dataTable>
<p:blockUI block="seeCalendrierForm" trigger="calendarsData">
<p:graphicImage library="images" name="ajax-loader.gif"/>
Expand All @@ -122,4 +124,4 @@
</div>
</div>
</ui:define>
</ui:composition>
</ui:composition>
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@
<p:commandButton value="#{msgs['_.BUTTON.UPDATE']}"
immediate="true"
action="#{calendarController.goUpdateCal}"
rendered="#{managedAccess.updateAuthorized}" >
rendered="#{managedAccess.updateAuthorized}"
ajax="false">
<f:setPropertyActionListener value="#{calendarController.actionEnum.updateAction}" target="#{calendarController.actionEnum.whatAction}" />
</p:commandButton>
<p:commandButton value="#{msgs['_.BUTTON.BACK']}" immediate="true"
action="#{calendarController.goSeeAllCal}" />
action="#{calendarController.goSeeAllCal}" ajax="false" />
</h:panelGroup>
</h:panelGrid>
</div>
Expand Down

0 comments on commit bb183c0

Please sign in to comment.