[JBoss Seam] - Trinidad table binding
by marcopan
I'm writing an application using a mix of Trinidad and RichFaces controls. I used the SeamDisc example in CVS for the setup and it's working.
I'm using a tr:table with the following header:
<tr:table id="partyTypeList" value="#{partyTypes.dataModel}"
| var="partyType" rowBandingInterval="1" rows="10"
| rowSelection="multiple" binding="#{partyTypesManager.table}">
The binding does not work, I get a
javax.el.ELException: /party/partyTypes.xhtml @31,68 binding="#{partyTypesManager.table}": java.lang.IllegalArgumentException: argument type mismatch.
As you can imagine I carefully used the example in the TRinidad web site and double.checked the code of the bean, that is:
@Name("partyTypesManager")
| @Scope(ScopeType.SESSION)
| public class PartyTypesManager {
|
| public void performDelete(ActionEvent action){
| UIXTable table = getTable();
| Iterator selection = table.getSelectedRowKeys().iterator();
| Object oldKey = table.getRowKey();
| while(selection.hasNext()){
| Object rowKey = selection.next();
| table.setRowKey(rowKey);
| PartyType pt = (PartyType) table.getRowData();
| System.out.println("PartyType "+pt.getId()+" marked for deletion");
| }
| table.setRowKey(oldKey);
| }
|
| private UIXTable _table;
| public UIXTable getTable() {
| return _table;
| }
| public void setTable(UIXTable table) {
| this._table = table;
| }
|
| }
I red an old post that said to not try to use a binding of a trinidad table in Seam. Is it still true? The SeamDisc example did not bind any table to a backing bean, so i do not have any hint.
The binding is necessary to use the multirow selection feature, one of the many differences between the Trinidad table and the RichFaces table.
Thanks
Marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073414#4073414
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073414
18Â years, 10Â months
[Beginners Corner] - What goes where ? packaging and deployment question
by Yacho
OK so im beginning my adventure with JBoss Seam - i have 2+ J2SE learning experience and 2yrs+ exp developing PHP apps.
First and foremost - thanks JBoss team for a great Seam Documentation - it answered not all-but some of my questions where others didnt even scratch the surface !
Root of my problem is :
Im having big time trouble with understanding project file structure.
- what comprises for a ear file (my guess is - jars)
- what should be the structure of webapp and ejb module inside ear ? (where i should put sources and where to put compiled stuff ?
- what exactly happens when JBOSS AS deploys ear files ? wich files go where ?
- how can i remove app thats partially deployed and moving ear to undeploy/ dosent work ?
if anyone could help me or point me to a specific articles - ill' be much obliged :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073412#4073412
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073412
18Â years, 10Â months
[JBoss Seam] - sjsas and Seam. method not found exception
by cisrudlow
I write simple application and I have problem, that I can't resolve. It always show me error that, method test.TestLocal_15902127.test() hasn't been found. There is Seam.propertis in web/conf dir in ejb project and there are all business interfaces. Please help.
My error:
| javax.el.MethodNotFoundException: /template-client.xhtml @23,78
| action="#{test.test}": Method not found: test.TestLocal_15902127.test()
| javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException:
| /template-client.xhtml @23,78 action="#{test.test}": Method not found:
| test.TestLocal_15902127.test()
| at
| javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:81)
| at
| com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:96)
| at javax.faces.component.UICommand.broadcast(UICommand.java:383)
| at
| org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
| at
| org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
| at
| org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:329)
| at
| com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
| at
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
|
|
web.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
| http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
| <context-param>
| <param-name>com.sun.faces.verifyObjects</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.validateXml</param-name>
| <param-value>true</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>false</param-value>
| </context-param>
| <context-param>
| <param-name>facelets.SKIP_COMMENTS</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>*.xhtml</url-pattern>
| </servlet-mapping>
| <session-config>
| <session-timeout>
| 30
| </session-timeout>
| </session-config>
| <welcome-file-list>
| <welcome-file>
| index.xhtml
| </welcome-file>
| </welcome-file-list>
| <context-param>
| <description>
| </description>
| <param-name>org.jboss.seam.core.init.jndiPattern</param-name>
| <param-value>java:comp/env/Tets-ejb/#{ejbName}/local</param-value>
| </context-param>
|
| <listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <ejb-local-ref>
| <ejb-ref-name>Tets-ejb/TestBean/local</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local>test.TestLocal</local>
| <ejb-link>TestBean</ejb-link>
| </ejb-local-ref>
| </web-app>
|
|
| <?xml version='1.0' encoding='UTF-8'?>
| <faces-config version="1.2"
| xmlns="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
| http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
|
| <application>
| <view-handler>
| com.sun.facelets.FaceletViewHandler
| </view-handler>
| </application>
| <lifecycle>
| <phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
| </lifecycle>
| <application>
| <el-resolver>
| org.jboss.seam.jsf.SeamELResolver
| </el-resolver>
| </application>
| </faces-config>
|
ejb-jar.xml
| <?xml version="1.0" encoding="UTF-8"?>
| <ejb-jar xmlns = "http://java.sun.com/xml/ns/javaee" version = "3.0"
| xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation =
| "http://java.sun.com/xml/ns/javaee
| http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
| <interceptors>
| <interceptor>
| <interceptor-class>
| org.jboss.seam.ejb.SeamInterceptor
| </interceptor-class>
| </interceptor>
| </interceptors>
| <assembly-descriptor>
| <interceptor-binding>
| <ejb-name>*</ejb-name>
| <interceptor-class>
| org.jboss.seam.ejb.SeamInterceptor
| </interceptor-class>
| </interceptor-binding>
| </assembly-descriptor>
| </ejb-jar>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073407#4073407
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073407
18Â years, 10Â months