Hello,

I have problem with ice:rowSelector in SEAM 1.1.0 GA. ICEfaces components along 
with partial submit work fine, the bean is also initialized. The ice:dataTable 
is rendered properly, but after selecting a row I get  error.

Configuration: ICEFaces 1.5.2, SEAM 1.1.0 GA, Facelets, JBoss AS 4.0.5 GA

I am deploying the ear project, libraries: icefaces.jar, icefaces-facelets.jar, 
icefaces-comps.jar, jboss-seam-debug.jar jboss-seam-ui.jar, standard.jar, 
backport-util-concurrent.jar, commons-beanutils.jar, commons-collections.jar, 
commons-digester.jar, commons-discovery.jar, commons-el.jar, 
commons-fileupload.jar, commons-lang.jar.

I think this might be a SEAM integration issue. Please help.


  | 17:23:09,153 ERROR [[Blocking Servlet]] Servlet.service() for servlet 
Blocking Servlet threw exception
  | javax.faces.el.EvaluationException: Exception while invoking expression 
#{stopa.rowSelection}
  |     at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:165)
  |     at 
com.icesoft.faces.component.ext.RowSelector.broadcast(RowSelector.java:159)
  |     at 
com.icesoft.faces.component.panelseries.UISeries$RowEvent.broadcast(UISeries.java:524)
  |     at 
com.icesoft.faces.component.panelseries.UISeries.broadcast(UISeries.java:232)
  |     at javax.faces.component.UIData.broadcast(UIData.java:513)
  |     at 
com.icesoft.faces.component.panelseries.UISeries.broadcast(UISeries.java:227)
  |     at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
  |     at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:136)
  |     at 
org.apache.myfaces.lifecycle.LifecycleImpl.applyRequestValues(LifecycleImpl.java:219)
  |     at 
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:71)
  |     at 
com.icesoft.faces.webapp.xmlhttp.BlockingServlet.renderCycle(BlockingServlet.java:438)
  |     at 
com.icesoft.faces.webapp.xmlhttp.BlockingServlet.receiveUpdates(BlockingServlet.java:426)
  |     at 
com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:279)
  |     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |     at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  |     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: java.lang.NoSuchMethodException: 
com.murzyn.Stopa$$EnhancerByCGLIB$$3a43eefc.rowSelection(com.icesoft.faces.component.ext.RowSelectorEvent)
  |     at java.lang.Class.getMethod(Class.java:1581)
  |     at 
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:118)
  |     ... 32 more
  | 17:23:09,168 ERROR [CachedConnectionValve] Application error: Blocking 
Servlet did not complete its transaction
  | 

JSF code:


  | [...]
  | <ice:dataTable
  |         var="row"
  |          value="#{stopa.list}"
  |          rowClasses="odd,eve"
  |          >
  | 
  |         <h:column id="pierwsza">
  |             <ice:rowSelector value="#{row.checked}"
  |                      multiple="true"
  |                      selectionListener="#{stopa.rowSelection}"
  |                      selectedClass="selected"  />
  |                 <f:facet name="header">
  |                          <ice:outputText value="Nazwa" />
  |                  </f:facet>
  |                 <ice:outputText name="#{row.name}" value="#{row.name}" />
  |         </h:column>
  | 
  |         <h:column >
  |                 <f:facet name="header">
  |                          <ice:outputText value="Data" />
  |                 </f:facet>
  |                 <ice:outputText value="#{row.date}" />
  |         </h:column>
  | 
  | </ice:dataTable>
  | [...]
  | 

Session Stateful Bean class code:

  | @Stateful
  | @Name("stopa")
  | @Scope(ScopeType.SESSION)
  | public class StopaBean implements Stopa{
  | 
  |     private String paluch;
  |     
  |     @DataModel
  |     private List<ListRow> list;
  | 
  | [...]
  | 
  |     public void rowSelection(RowSelectorEvent event){
  |             System.out.println("rowSelected");
  |     }
  | }
  | 

Bean interface:

  | package com.murzyn;
  | 
  | import java.util.List;
  | 
  | import javax.ejb.Local;
  | import javax.faces.event.ActionEvent;
  | 
  | import com.icesoft.faces.component.ext.RowSelectorEvent;
  | 
  | @Local
  | public interface Stopa {
  | 
  |     public String getPaluch();
  |     public void setPaluch(String paluch);
  |     public void doRoboty(ActionEvent event);
  |     public List<ListRow> getList();
  |     public void rowSelection(RowSelectorEvent event);
  |     public void destroy();
  | }
  | 

web.xml:


  | <?xml version="1.0" encoding="UTF-8"?>
  | <web-app version="2.4" 
  |     xmlns="http://java.sun.com/xml/ns/j2ee"; 
  |     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
  |     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
  |     http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
  |     
  |     <context-param>
  |         <param-name>javax.faces.CONFIG_FILES</param-name>
  |         <param-value>/WEB-INF/navigation.xml</param-value>
  |     </context-param>
  | 
  |     <!-- Seam -->
  |         
  |     <listener>
  |         <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
  |     </listener>
  |     
  | <!-- 
  |     <filter>
  |         <filter-name>Seam Redirect Filter</filter-name>
  |         
<filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
  |     </filter>
  |     <filter-mapping>
  |         <filter-name>Seam Redirect Filter</filter-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </filter-mapping>
  |  -->
  | 
  |     <filter>
  |         <filter-name>Seam Exception Filter</filter-name>
  |         
<filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
  |     </filter>
  |     <filter-mapping>
  |         <filter-name>Seam Exception Filter</filter-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </filter-mapping>
  | 
  |     <!-- JSF -->
  | 
  |     <context-param>
  |         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
  |         <param-value>server</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
  |         <param-value>.xhtml</param-value>
  |     </context-param>
  | 
  |     <context-param>
  |         <param-name>facelets.DEVELOPMENT</param-name>
  |         <param-value>true</param-value>
  |     </context-param>
  | 
  | 
  |     <!-- icefaces -->
  |     <context-param>
  |         <param-name>com.icesoft.faces.actionURLSuffix</param-name>
  |         <param-value>.seam</param-value>
  |     </context-param>
  |     
  |     <!-- icefaces -->
  |     <context-param>
  |         <param-name>com.icesoft.faces.synchronousUpdate</param-name>
  |         <param-value>true</param-value>
  |     </context-param>
  | 
  | 
  |     <servlet>
  |         <servlet-name>Faces Servlet</servlet-name>
  |         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  |         <load-on-startup>1</load-on-startup>
  |     </servlet>
  |     
  | <!--
  |     <servlet-mapping>
  |         <servlet-name>Faces Servlet</servlet-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </servlet-mapping> 
  | -->
  |     
  |     <!-- icefaces -->
  |     <servlet>
  |             <servlet-name>Blocking Servlet</servlet-name>
  |             
<servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
  |             <load-on-startup> 1 </load-on-startup>
  |     </servlet>
  |     
  |     <!-- icefaces -->
  |     <servlet>
  |         <servlet-name>Persistent Faces Servlet</servlet-name>
  |         
<servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
  |         <load-on-startup>1</load-on-startup>
  |     </servlet>
  |     
  |     <!-- icefaces -->
  |     <servlet-mapping>
  |             <servlet-name>Persistent Faces Servlet</servlet-name>
  |             <url-pattern>/xmlhttp/*</url-pattern>
  |     </servlet-mapping>
  |     
  |     <!-- icefaces -->
  |     <servlet-mapping>
  |             <servlet-name>Persistent Faces Servlet</servlet-name>
  |             <url-pattern>/xmlhttp/*</url-pattern>
  |     </servlet-mapping>
  |     
  |     <!-- icefaces -->
  |     <servlet-mapping>
  |             <servlet-name>Persistent Faces Servlet</servlet-name>
  |             <url-pattern>*.iface</url-pattern>
  |     </servlet-mapping>
  | 
  |     <!-- icefaces Blocking Servlet Mapping -->
  |     <servlet-mapping>
  |             <servlet-name>Blocking Servlet</servlet-name>
  |             <url-pattern>/block/*</url-pattern>
  |     </servlet-mapping>
  | 
  |     <!-- icefaces Faces Servlet Mapping -->
  |     <servlet-mapping>
  |         <servlet-name>Persistent Faces Servlet</servlet-name>
  |         <url-pattern>*.seam</url-pattern>
  |     </servlet-mapping>
  |     
  |     <!-- MyFaces -->
  |     <listener>
  |         
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
  |     </listener>
  | 
  | </web-app>
  | 


Regards,
Jakub

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006913#4006913

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006913
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to