jsf - How many state information is saved when client mode -


how define max number of component trees in client mode? how prevent calling @postconstruct method?

i'm developing application javaee7 glassfish 4.1. if remember correctly, when javax.faces.state_saving_method client, there no limit of component tree. when opened more 25 tabs in chrome , operate first tab, tab's managed bean construct , call @postconstruct method. think behavior seems losing component tree me.

the following source code of application.

test.xhtml

<?xml version="1.0" encoding="utf-8" ?> <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en"     "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <ui:composition     template="/template/template.xhtml"     xmlns="http://www.w3.org/1999/xhtml"     xmlns:f="http://java.sun.com/jsf/core"     xmlns:h="http://java.sun.com/jsf/html"     xmlns:ui="http://java.sun.com/jsf/facelets"     xmlns:p="http://primefaces.org/ui"     >     <h:panelgrid columns="5" cellpadding="5" >         <p:commandbutton id="returnbutton" value="return"                          action="#{testeditbean.return()}"                          immediate="true"                          />     </h:panelgrid> </ui:composition> 

testbean.java

import java.io.serializable; import javax.annotation.postconstruct; import javax.faces.view.viewscoped; import javax.inject.named;  @named(value = "testbean") @viewscoped public class testbean implements serializable {      @postconstruct     public void index() {     }      public string doreturn() {         string ret = "/content/tmp/testsearch.xhtml";         return ret;     } } 

[postscript 2016/01/28] understand http session stored view scoped beans (max 25) , view state stored component tree. new question.

unless change mojjara 2.x jsf implementation, couldn't open more 25tabs? "more 25 tabs" contains case "an user open 2 tabs, , 23 transition occur in 2nd tab."


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -