Proper Navigation Problem of Richfaces 4.0
hamzas100 Jul 20, 2012 3:45 AMIn the quest for performance problem solution of richfaces I came into solution that I have break my application into small pages with less richfaces components. Because since I used pupup panel, memory consumption of my application grows drastically. But unfortunately richfaces navigation components with action attribute does not handle well navigation(when you navigate from one page to another some of the components does not get rendered or selection of extended table does not work properly..etc).
why ???
Lets show you code example(the same applies to a4j:commandLink or h:commandLink ) :
<rich:menuItem label="Прих Накл Для Прилавки " action="#{navigator.goToPurchaseInvoiceForCounterOperations}" >
<f:setPropertyActionListener target="#{purchaseInvoiceForCounter.defaultLocation}"
value="#{customization.defaultSalesPoint}" />
<f:setPropertyActionListener target="#{purchaseInvoiceForCounter.defaultReevaluationActDone}"
value="#{customization.defaultReevaluationActDoneForPurchaseInvoice}" />
<f:setPropertyActionListener target="#{purchaseInvoiceForCounter.defaultCurrencyExchangeRate}"
value="#{customization.defaultCurrencyExchangeRate}" />
<a4j:ajax event="click" execute="@this" />
</rich:menuItem>
or
<a4j:commandLink label="Прих Накл Для Прилавки " action="#{navigator.goToPurchaseInvoiceForCounterOperations}" >
<f:setPropertyActionListener target="#{purchaseInvoiceForCounter.defaultLocation}"
value="#{customization.defaultSalesPoint}" />
<f:setPropertyActionListener target="#{purchaseInvoiceForCounter.defaultReevaluationActDone}"
value="#{customization.defaultReevaluationActDoneForPurchaseInvoice}" />
<f:setPropertyActionListener target="#{purchaseInvoiceForCounter.defaultCurrencyExchangeRate}"
value="#{customization.defaultCurrencyExchangeRate}" />
<a4j:ajax event="click" execute="@this" />
</a4j:commandLink>