[jboss-user] [JBoss Seam] - Navigation Bar and String[]
rengar
do-not-reply at jboss.com
Tue Jan 9 03:02:46 EST 2007
I have a navigation bar:
| <s:link view="/lstEstablecimientos.xhtml" action="#{lstEstablecimientos.listadoAv}"
| rendered="#{lstEstablecimientos.previousExists}"
| value="<<"
| id="firstPage">
| <f:param name="firstResult" value="0"/>
| </s:link>
|
| <s:link view="/lstEstablecimientos.xhtml" action="#{lstEstablecimientos.listadoAv}"
| rendered="#{lstEstablecimientos.previousExists}"
| value="<"
| id="previousPage">
| <f:param name="firstResult"
| value="#{lstEstablecimientos.previousFirstResult}"/>
| </s:link>
|
| <h:outputText value="#{lstEstablecimientos.actualPage}"/>/<h:outputText value="#{lstEstablecimientos.numPages}"/>
|
| <s:link view="/lstEstablecimientos.xhtml" action="#{lstEstablecimientos.listadoAv}"
| rendered="#{lstEstablecimientos.nextExists}"
| value=">"
| id="nextPage">
| <f:param name="firstResult"
| value="#{lstEstablecimientos.nextFirstResult}"/>
| </s:link>
|
| <s:link view="/lstEstablecimientos.xhtml" action="#{lstEstablecimientos.listadoAv}"
| rendered="#{lstEstablecimientos.nextExists}"
| value=">>"
| id="lastPage">
| <f:param name="firstResult"
| value="#{lstEstablecimientos.lastFirstResult}"/>
| </s:link>
|
In bean:
| .
| .
| private String[] tiposEstablecimientosParam;
| .
| .
| public String[] getTiposEstablecimientosParam() {
| return tiposEstablecimientosParam;
| }
|
| public void setTiposEstablecimientosParam(String[] tiposEstablecimientosParam) {
| this.tiposEstablecimientosParam = tiposEstablecimientosParam;
| }
| .
| .
|
|
|
When I access this page works fine, but I use navigation bar throws this exception :
| javax.faces.el.EvaluationException: Exception setting property tiposEstablecimientosParam of base with class com.minalink.reservas.LstEstablecimientos$$EnhancerByCGLIB$$2aeaae37
| at org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:185)
| at org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:275)
| at org.jboss.seam.core.Expressions$1.setValue(Expressions.java:61)
| at org.jboss.seam.core.Pages.applyRequestParameterValues(Pages.java:542)
| at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:186)
| at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:51)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
| at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:32)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:46)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: javax.faces.el.EvaluationException: Bean: com.minalink.reservas.LstEstablecimientos$$EnhancerByCGLIB$$2aeaae37, property: tiposEstablecimientosParam
| at org.apache.myfaces.el.PropertyResolverImpl.setProperty(PropertyResolverImpl.java:410)
| at org.apache.myfaces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:173)
| ... 33 more
| Caused by: java.lang.IllegalArgumentException: argument type mismatch
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.apache.myfaces.el.PropertyResolverImpl.setProperty(PropertyResolverImpl.java:406)
| ... 34 more
|
If I remove tiposEstablecimientosParam works fine.
In browser bar, thr url is:
| http://localhost:8080/reservas/lstEstablecimientos.seam?firstResult=10&tiposEstablecimientosParam=%5BLjava.lang.String%3B%40655c8c&actionMethod=lstEstablecimientos.xhtml%3AlstEstablecimientos.listadoAv
|
Any idea?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3999344#3999344
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3999344
More information about the jboss-user
mailing list