2 zhaohang6688 zhaohang6688 于 2014.08.20 12:41 提问

jsf 页面元素多就无法恢复视图是什么原因?
<div style=" width:5000px; left: 0px; position: absolute;"
                            id="PicSliderDIV">
                            <ul class="PicSliderUl">
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList1[0].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList1[0].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList1[1].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList1[1].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList1[2].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList1[2].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList1[3].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList1[3].lineName}</span></a></li>
                                <div class="clear"></div>
                            </ul>
                            <ul class="PicSliderUl">
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList2[0].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList2[0].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList2[1].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList2[1].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList2[2].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList2[2].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList2[3].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList2[3].lineName}</span></a></li>
                                <div class="clear"></div>
                            </ul>
                            <ul class="PicSliderUl">
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList3[0].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList3[0].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList3[1].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList3[1].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList3[2].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList3[2].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList3[3].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList3[3].lineName}</span></a></li>
                                <div class="clear"></div>
                            </ul>
                            <ul class="PicSliderUl">
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList4[0].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList4[0].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList4[1].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList4[1].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList4[2].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList4[2].lineName}</span></a></li>
                                <li><a href="#"><img
                                        src="#{homePageFunction.specialPriceList4[3].linePic}" /><span
                                        class="intro">#{homePageFunction.specialPriceList4[3].lineName}</span></a></li>
                                <div class="clear"></div>
                            </ul>
                            <div class="clear"></div>
                        </div>

javax.faces.application.ViewExpiredException: viewId:/index.xhtml - 无法恢复视图 /index.xhtml。
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:205)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.yg.lyxxw.util.BFilter.doFilter(BFilter.java:55)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:879)
at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:617)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1774)
at java.lang.Thread.run(Thread.java:744)
我把元素("#{homePageFunction.specialPriceList2[0].linePic}")减少几个就好了 不知道为什么
在线等!急急急!!!!!

1个回答

zhaohang6688
zhaohang6688   2014.08.20 12:47

不要沉啊!我自己顶一下

Csdn user default icon
上传中...
上传图片
插入图片