[JBoss Seam] - Full JSF Lifecycle, Action not invoked
by monkeyden
I have a situation where the JSF lifecycle is being completed, including INVOKE_APPLICATION, but my action method is not being invoked. <s:link> gets in there but I'd prefer a post.
Synopsis:
I basically have three conditionally rendered <s:div>s representing a movie filetype selector (WMV, Real). The radio buttons just toggle the attribute used by <s:div>s rendered attribute, which is "selectedFileType".
public class MoviePopupAction implements Serializable{
| @Create
| @Begin(nested = true)
| public void create() {
| //some code to find the movie, see if it has both filetypes and set selectedFileType = 0 if it does
| }
|
| @End(ifOutcome = { "success" })
| public String close() {
| return "success";
| }
|
| public String playMovie() {
|
| }
|
| public Integer getSelectedFileType() {
| return selectedFileType;
| }
|
| public void setSelectedFileType(Integer selectedFileType) {
| this.selectedFileType = selectedFileType;
| }
| ....
| }
<h:form id="moviePopupForm1">
| <s:div rendered="#{displayType == 0}">
| <!-- Display File Selector -->
| <table border="0" cellpadding="0" cellspacing="0">
| <tr>
| <td align="center"><h:graphicImage value="/images/home_movie_header.jpg"/></td>
| </tr>
| <tr>
| <td><h:outputText value="#{messages['popup.movie.label.selectPlayer']}"/></td>
| </tr>
| <tr>
| <td>
| <h:selectOneRadio id="playerType" value="#{popupMovieAction.selectedFileType}" layout="pageDirection" required="true">
| <f:selectItem itemValue="1" itemLabel ="#{messages['wmp.label']}"/>
| <f:selectItem itemValue="2" itemLabel ="#{messages['rp.label']}"/>
| <f:attribute name="fieldLabel" value="'File Type'"/>
| </h:selectOneRadio>
| </td>
| </tr>
| <tr>
| <td align="center">
| <s:link action="#{popupMovieAction.playMovie}" value="hit it"/>
| <h:commandButton id="playMovieButton" value="#{messages['popup.homemovie.playMovie']}"
| action="#{popupMovieAction.playMovie}" image="/images/btn_play_homemovie.gif"
| onmouseover="javascript:this.src='/images/btn_play_homemovie_hover.gif'"
| onmouseout="javascript:this.src='/images/btn_play_homemovie.gif'"/>
| </td>
| </tr>
| </table>
| </s:div>
| <s:div rendered="#{displayType == 1}">
| <!-- Display REAL Movie -->
| <table border="0" cellpadding="0" cellspacing="0">
| <tr>
| <td align="center"><h:graphicImage value="/images/home_movie_header.jpg"/></td>
| </tr>
| <tr>
| <td align="center">
| <object id="RAOCX" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="244" width="300" name="javaPlug1">
| <param name="controls" value="ImageWindow"/>
| <param name="console" value="Clip1"/>
| <param name="autostart" value="-1"/>
| <param name="src" value="#{popupMovieAction.movie.realURL}"/>
| <param name="_ExtentX" value="8467"/>
|
| <param name="_ExtentY" value="6350"/>
| <param name="SHUFFLE" value="0"/>
| <param name="PREFETCH" value="0"/>
| <param name="NOLABELS" value="-1"/>
| <param name="LOOP" value="0"/>
| <param name="NUMLOOP" value="0"/>
| <param name="CENTER" value="0"/>
| <param name="MAINTAINASPECT" value="0"/>
| <param name="BACKGROUNDCOLOR" value="#000000"/>
|
| <embed name="javaPlug1" src="#{popupMovieAction.movie.realURL}" type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ImageWindow" height="260" width="320" autostart="true" ></embed>
| </object>
| <br/>
| <object id="video1" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="50" width="320">
| <param name="controls" value="ControlPanel"/>
| <param name="console" value="Clip1"/>
| <param name="_ExtentX" value="8467"/>
| <param name="_ExtentY" value="609"/>
| <param name="AUTOSTART" value="0"/>
| <param name="SHUFFLE" value="0"/>
| <param name="PREFETCH" value="0"/>
| <param name="NOLABELS" value="0"/>
| <param name="LOOP" value="0"/>
| <param name="NUMLOOP" value="0"/>
| <param name="CENTER" value="0"/>
| <param name="MAINTAINASPECT" value="0"/>
| <param name="BACKGROUNDCOLOR" value="#000000"/>
| <embed name="javaPlug1" type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ControlPanel" height="23" width="320"></embed>
|
| </object>
| </td>
| </tr>
| </table>
| </s:div>
| <s:div rendered="#{displayType == 2}">
| <!-- Display WMV Movie -->
| <table border="0" cellpadding="0" cellspacing="0">
| <tr>
| <td align="center"><h:graphicImage value="/images/home_movie_header.jpg"/></td>
| </tr>
| <tr>
| <td align="center">
| <object id="Player" type="application/x-oleobject" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="320" height="305">
| <param name="URL" value="#{popupMovieAction.movie.wmvURL}"/>
| <param name="AutoSize" value="1" />
| <param name="AutoStart" value="True" />
| <embed name="MediaPlayer"
| src="#{popupMovieAction.movie.wmvURL}"
| type="application/x-mplayer2" showaudiocontrols="0" showcontrols="1"
| autosize="0" showstatusbar="0" width="320" height="290"
| pluginspage="http://www.microsoft.com/windows/windowsmedia/" >
| </embed>
| </object>
| </td>
| </tr>
| </table>
| </s:div>
| </h:form>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057722#4057722
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057722
18Â years, 10Â months
[JBoss Portal] - HelloWorldPortlet complications
by durand
We're currently trying out JBoss Portal, to perhaps use it in a project. We are running JBoss Portal + JBoss AS (version 2.6-CR3) on Solaris 10.
Downloaded the HelloWorldPortlet from Portletswap.com and it works just fine out-of-the-box, but when we're compiling it ourselves, running ANT, we get the following errors.
| 15:45:42,913 INFO [TomcatDeployer] deploy, ctxPath=/helloworldportlet, warUrl=.../tmp/deploy/tmp2465helloworldportlet-exp.war/
| 15:45:43,727 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet HelloWorldPortlet threw an error during init
| 15:45:43,729 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:283)
| 15:45:43,730 ERROR [STDERR] at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:124)
| 15:45:43,730 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:152)
| 15:45:43,731 ERROR [STDERR] at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:94)
| 15:45:43,731 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
| 15:45:43,731 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.PortalDeploymentInfoContext.start(PortalDeploymentInfoContext.java:211)
| 15:45:43,732 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.start(ServerDeployer.java:217)
| 15:45:43,732 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| 15:45:43,732 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| 15:45:43,732 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
| 15:45:43,733 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:45:43,733 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 15:45:43,733 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:45:43,734 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:45:43,734 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 15:45:43,734 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:45:43,734 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 15:45:43,735 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:45:43,735 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:45:43,735 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:45:43,736 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 15:45:43,736 ERROR [STDERR] at $Proxy187.deploy(Unknown Source)
| 15:45:43,736 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.ServerDeployer.deploy(ServerDeployer.java:259)
| 15:45:43,736 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source)
| 15:45:43,737 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:45:43,737 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 15:45:43,737 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:45:43,738 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:45:43,738 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 15:45:43,738 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:45:43,738 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:45:43,739 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 15:45:43,739 ERROR [STDERR] at $Proxy153.deploy(Unknown Source)
| 15:45:43,739 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppAdapter.deploy(WebAppAdapter.java:54)
| 15:45:43,740 ERROR [STDERR] at org.jboss.portal.server.deployment.WebAppIntercepter.handleNotification(WebAppIntercepter.java:160)
| 15:45:43,740 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| 15:45:43,741 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:45:43,741 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 15:45:43,741 ERROR [STDERR] at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
| 15:45:43,742 ERROR [STDERR] at $Proxy190.handleNotification(Unknown Source)
| 15:45:43,742 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.handleNotification(JBossNotificationBroadcasterSupport.java:127)
| 15:45:43,742 ERROR [STDERR] at org.jboss.mx.util.JBossNotificationBroadcasterSupport.sendNotification(JBossNotificationBroadcasterSupport.java:108)
| 15:45:43,743 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.emitNotification(SubDeployerSupport.java:340)
| 15:45:43,743 ERROR [STDERR] at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:308)
| 15:45:43,743 ERROR [STDERR] at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:482)
| 15:45:43,743 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
| 15:45:43,744 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:45:43,744 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 15:45:43,744 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:45:43,745 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:45:43,745 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 15:45:43,745 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:45:43,745 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 15:45:43,746 ERROR [STDERR] at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| 15:45:43,746 ERROR [STDERR] at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| 15:45:43,746 ERROR [STDERR] at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| 15:45:43,746 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| 15:45:43,747 ERROR [STDERR] at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 15:45:43,747 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:45:43,747 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:45:43,748 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:45:43,748 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 15:45:43,748 ERROR [STDERR] at $Proxy168.start(Unknown Source)
| 15:45:43,748 ERROR [STDERR] at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| 15:45:43,749 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| 15:45:43,749 ERROR [STDERR] at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 15:45:43,750 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor111.invoke(Unknown Source)
| 15:45:43,750 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 15:45:43,751 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
| 15:45:43,751 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 15:45:43,751 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 15:45:43,751 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 15:45:43,752 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:45:43,752 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 15:45:43,752 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 15:45:43,753 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 15:45:43,753 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 15:45:43,753 ERROR [STDERR] at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| 15:45:43,753 ERROR [STDERR] at $Proxy8.deploy(Unknown Source)
| 15:45:43,754 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| 15:45:43,754 ERROR [STDERR] at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
| 15:45:43,754 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| 15:45:43,755 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| 15:45:43,755 ERROR [STDERR] at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| 15:45:43,757 ERROR [STDERR] Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
| 15:45:43,757 ERROR [STDERR] at java.lang.ClassLoader.defineClass1(Native Method)
| 15:45:43,758 ERROR [STDERR] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
| 15:45:43,758 ERROR [STDERR] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
| 15:45:43,758 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1815)
| 15:45:43,759 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:869)
| 15:45:43,759 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1322)
| 15:45:43,759 ERROR [STDERR] at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1201)
| 15:45:43,759 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:242)
| 15:45:43,760 ERROR [STDERR] ... 83 more
|
Bad version number in .class file is what puzzles us, why would it be any difference if we compile it ourselves?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057721#4057721
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057721
18Â years, 10Â months
[JBossWS] - Re: MTOM + WS Security = problem
by davideling
I'm sorry Rio, I'm at work now and
I can't look JBossWS sources now.
All I can do now is look at client log4j logs.
If I enable WS-Security I can see this where I can find
two times
...HEADER={SOAPAction="", Content-Type=text/xml...
| ...
| DEBUG main org.jboss.remoting.MicroRemoteClientInvoker - org.jboss.remoting.transport.http.HTTPClientInvoker@1922f46 connecting
| DEBUG main org.jboss.remoting.MicroRemoteClientInvoker - org.jboss.remoting.transport.http.HTTPClientInvoker@1922f46 connected
| DEBUG main org.jboss.ws.core.client.RemotingConnectionImpl - Remoting metadata: {http.basic.password=mypassword, http.basic.username=myusername, HEADER={SOAPAction="", Content-Type=text/xml; charset=UTF-8}, NoThrowOnError=true}
| DEBUG main org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request header with SOAPAction : ""
| DEBUG main org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request header with Content-Type : text/xml; charset=UTF-8
| DEBUG main org.jboss.ws.core.soap.SOAPContentElement - MTOM enabled: Restore XOP data
| DEBUG main org.jboss.ws.extensions.xop.XOPContext - Replace base64 representation on element [xmlName=inputMessage]
| DEBUG main org.jboss.ws.extensions.xop.jaxrpc.XOPMarshallerImpl - serialize: [xmlName=attachment]
| DEBUG main org.jboss.ws.core.soap.attachment.CIDGenerator - generateFromName: attachment-37b4f42c-7f38-43b1-b905-9e5d3a3b08c8(a)ws.jboss.org
| DEBUG main org.jboss.ws.extensions.xop.jaxrpc.XOPMarshallerImpl - Created attachment part attachment-37b4f42c-7f38-43b1-b905-9e5d3a3b08c8(a)ws.jboss.org, with content-type application/octet-stream
| DEBUG main org.jboss.ws.extensions.xop.XOPContext - Restored xop:Include element on [xmlName=attachment]
| DEBUG main org.jboss.ws.core.soap.SOAPMessageUnMarshaller - getMimeHeaders from: {X-Powered-By=[Servlet 2.4; JBoss-4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)/Tomcat-5.5], ResponseCodeMessage=OK, http.basic.password=mypassword, Date=[Tue, 26 Jun 2007 13:23:19 GMT], http.basic.username=myusername, Content-Type=[text/xml;charset=UTF-8], Server=[Apache-Coyote/1.1], HEADER={SOAPAction="", Content-Type=text/xml; charset=UTF-8}, Transfer-Encoding=[chunked], NoThrowOnError=true, ResponseCode=200}
| DEBUG main org.jboss.ws.core.soap.MessageFactoryImpl - createMessage: [contentType=text/xml; charset=UTF-8]
|
Instead If I disable WS-Security the Content-Type is correct (and type too)
| ...
| DEBUG main org.jboss.remoting.MicroRemoteClientInvoker - org.jboss.remoting.transport.http.HTTPClientInvoker@82751 connected
| DEBUG main org.jboss.ws.core.client.RemotingConnectionImpl - Remoting metadata: {http.basic.password=mypassword, http.basic.username=myusername, HEADER={SOAPAction="", Content-Type=multipart/related; type="application/xop+xml"; start="<rootpart(a)ws.jboss.org>";
|
| start-info="text/xml";
|
| boundary="----=_Part_0_7896086.1182865340817"}, NoThrowOnError=true}
| DEBUG main org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request header with SOAPAction : ""
| DEBUG main org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request header with Content-Type : multipart/related; type="application/xop+xml"; start="<rootpart(a)ws.jboss.org>";
|
| start-info="text/xml";
|
| boundary="----=_Part_0_7896086.1182865340817"
| DEBUG main org.jboss.ws.core.soap.SOAPMessageUnMarshaller - getMimeHeaders from: {Connection=[close], X-Powered-By=[Servlet 2.4; JBoss-4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)/Tomcat-5.5], ResponseCodeMessage=Internal Server Error, http.basic.password=mypassword, Date=[Tue, 26 Jun 2007 13:42:21 GMT], http.basic.username=myusername, Content-Type=[text/xml;charset=UTF-8], Server=[Apache-Coyote/1.1], HEADER={SOAPAction="", Content-Type=multipart/related; type="application/xop+xml"; start="<rootpart(a)ws.jboss.org>";
|
| start-info="text/xml";
|
| boundary="----=_Part_0_7896086.1182865340817"}, Transfer-Encoding=[chunked], NoThrowOnError=true, ResponseCode=500}
| DEBUG main org.jboss.ws.core.soap.MessageFactoryImpl - createMessage: [contentType=text/xml; charset=UTF-8]
| ...
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057717#4057717
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057717
18Â years, 10Â months
[JBoss Seam] - sending a class threw page parameters
by adrien.loyat
Hello, I have a pobleme with page parameters.
I have generated a very simple CRUD application with seam-gen from a database containing 2 tables : col and typecol (which means the sort of col).
The link between the two tables is : col.type = typecol.id
typecol.id is an Integer
The generation is ok. The col class contain a property Typecol typecol. A colList.xhtml was generated too.
Now, I want to search for col of a certain type. So I've had a selectBox in colList.xtml :
| <s:decorate template="layout/display.xhtml">
| <ui:define name="label">Type de collectivité</ui:define>
| <h:selectOneMenu id="typecol" value="#{colList.col.typecol}" >
| <s:selectItems value="#{typecolList.resultList}" var="untypcol"
| label="#{untypcol.nom}" noSelectionLabel="Select..."
| hideNoSelectionLabel="false"/>
| <s:convertEntity />
| </h:selectOneMenu>
| </s:decorate>
|
In ColList.page.xml, I've added the param :
<param name="typecol" value="#{colList.col.typecol}" converter="EntityConverter" />
In RESTRICTION property of ColList.java, I've added this :
"col.typecol = #{colList.col.typecol}",
When I tried the new selectBox, nothing happend.
I put a conversation scope to colList class, then the search was ok. Was-it good to add conversation scope ?
Nevertheless, all is not perfect, as I cannot use links (to order the list, or to navigate between the pages of results) because my param typecol is then not written in the url( http://localhost.../ColList.seam?firstResult=25&nom=&cid=4).
Am I wrong from the beginning ? Am I wrong with the param in page.xml ?
Thank you for having a look a fiew second at my issue.
Adrien
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057709#4057709
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057709
18Â years, 10Â months