[jboss-user] [JBoss Tools (users)] - Re: How to run the test cases?
Hi everyone, I got the same problem and according teh issue I upgraded JBossTools from 2.0.0 to current 2.1.2. But the error isn't gone. What else can I do? Perhaps it might help to know that the "ejbModule" directory in the ejb project is a linked folder since I didn't want to reflect the eclipse directory structure into our versioning system. Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171707#4171707 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171707 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [EJB 3.0] - Re: Could not find stateful bean (Seam2 & ICEfaces: Uploadin
I just forgot the rest of the stacktrace: anonymous wrote : 08:58:29,179 ERROR [SeamPhaseListener] uncaught exception | java.lang.IllegalStateException: Could not start transaction | at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:581) | at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsBeforePhase(SeamPhaseListener.java:312) | at org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:140) | at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:114) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222) | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117) | at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:17) | at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCyclePartial(ReceiveSendUpdates.java:64) | at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:40) | at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:65) | at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:44) | at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50) | at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19) | at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19) | at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29) | at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:106) | at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35) | at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52) | at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29) | at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:79) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) | at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445) | at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:343) | at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292) | at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | 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:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav
[jboss-user] [EJB 3.0] - Could not find stateful bean (Seam2 & ICEfaces: Uploading a
.invoke(RootInterceptor.java:107) | at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54) | at org.javassist.tmp.java.lang.Object_$$_javassist_0.afterTransactionBegin(Object_$$_javassist_0.java) | at org.jboss.seam.transaction.UTTransaction.begin(UTTransaction.java:40) | at org.jboss.seam.jsf.SeamPhaseListener.begin(SeamPhaseListener.java:576) | ... 56 more | 2008-04-08 08:43:30,796 DEBUG [org.jboss.seam.faces.Navigator] redirecting to: /error.xhtml Almost directly after the beginning of the new LifeCycle, a stateful bean can't be found. And I don't know why. I assume that it has to do something with this upload because all page actions work fine until I upload a file. I'm pretty sure that I've done a mistake in my application since it worked before. So I think I've done something to cause this exception. But I can't remember of a change in my application that could cause this. Perhaps somebody knows or sees a correlation between the upload request and the (empty) StatefulCache? BTW: Does somebody know how to find out the name of the bean that should be activated? I can't find any information about this bean's id in the log. Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142291#4142291 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142291 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security: How to override messages
Tomcat shows this error: anonymous wrote : javax.el.PropertyNotFoundException: /template.xhtml @20,77 value="#{messages.org.jboss.seam.loginSuccessful}" This is my template.xhtml: | | ... | | And this is the messages.properties: org.jboss.seam.loginSuccessful=Nusseis Exactly what I expected since the special meaning of the dot in EL. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129564#4129564 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129564 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security: How to override messages
And what to do if this doesn't work as expected? I have two locales, english and german. Both with a line: BundleNameHere.properties wrote : org.jboss.seam.loginSuccessful=Nusseis After I logged in, the h:messages-Tag shows: h:messages wrote : Welcome, jeweWelcome, jewe where jewe is my user id. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127731#4127731 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127731 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception calling component @Destroy method
| | does not work ... :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123393#4123393 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123393 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception calling component @Destroy method
OK. Thanks. It's working with s:link now. But perhaps you know how to propagate the current conversation id? | | I think the name would be "cid" or whatever I configured in components.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123385#4123385 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123385 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Exception calling component @Destroy method
Hmm. Is there a possibility to include the logout button in a dynamic ice:menuBar? And another question: Is this conversation scope so essential that a Seam app can't live without it? For my app session and page scope are sufficient. Do I have to use this conversation scope? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123379#4123379 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123379 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security: How to override messages
Never mind. So normally it's enough to define an own "org ... loginSuccessful" property in the locale? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123316#4123316 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123316 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Security: How to override messages
"[EMAIL PROTECTED]" wrote : Did you read the docs (I think not...)? Oh, come on. Of course I read the docs. That was the first I've done. I added a line "org.jboss.seam.security.loginSuccessful=Message" to my property file. But it didn't worked. That's why I'm asking. Perhaps I have to add a blank line to the end of the file (the message is the last line)??? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123203#4123203 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123203 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Security: How to override messages
Hi, I'm currently testing Seam 2.0.1CR1 and introduced those security features in my app. Now everytime an user logs in, there's a FacesMessage "Welcome " displayed. I traced this message back to "FacesSecurityEvents" where the method "getLoginSuccessfulMessage()" just does this: public String getLoginSuccessfulMessage() |{ | return "Welcome, #0"; |} How can I provide another message or switch this message off? Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122265#4122265 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122265 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: The old ClassLoading problem with ICEfaces
Thanks for your reply. I don't use any async component. I built the icefaces example (BTW: the jboss repository doesn't have any icefaces dependency stored, I had to create a "local" repository). It uses the same structure as my app does. But the ICEfaces example doesn't use menuBar ;) And it is using an old version of ICEfaces so this isn't really helpful. So I think you first proposal could help me. And since I have never used seam-gen and don't want to create a new project I would really appreciate a description of the EAR structure that I should create. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122108#4122108 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122108 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - The old ClassLoading problem with ICEfaces
Hi, is there any news about the CLassLoading issue with ICEfaces (see http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989111)? I started to migrate from Seam 1.2.1, ICEfaces 1.6.3 to Seam 2.0.1CR1 and ICEfaces 1.7.0 DR#3. Given the information in seam2migrate.txt I removed all jars (except jboss-seam.jar) from the root of my .ear. So icefaces.jar, icefaces-comps etc. are now placed in WEB-INF\lib. That worked fine until I enabled the ice:menuBar with dynamic ice:menuItems. A stateless bean generates a menu structure (depending the user's role) like this: public List getPanelNavigationItems() There were two work-arounds: | * Change "UseJBossWebLoader" to "true" in deploy/*tomcat*/jboss-service.xml | * Put all jars from WEB-INF\lib to ear's root | Is there a more elegant possibility? Is it OK to put all jars into the root of the ear? I tried it with UseJBossWebLoader=true and ran into the next exception which told me that there's sth wrong with a logger class (must have sth to do with the "commons-logging.jar" of ICEfaces; can't be found anymore or somewhat). Thanks in advance Newlukai[/url] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121291#4121291 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121291 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - ClassCastException: ArrayList in DataModelBinder while outje
Hi, I've had a problem with JBoss AS 4.2.2, Seam 2.0.1.CR1 and ICEfaces 1.7.0#DR3. I've a session scoped bean which has a @DataModel(scope=PAGE) and a @DataModelSelection. When I try the page that should display that DataModel, I get an error. Let me show you the code: @Stateful | @Scope(ScopeType.SESSION) | @Name("toDos") | public class ToDoAction implements ToDo, Serializable { | private static final long serialVersionUID = 1513406105656113102L; | | @PersistenceContext(unitName = "aresDatabase") | private transient EntityManager em; | | @In @Valid | private User user; | | @Out | private List toDosForUser; | | @DataModelSelection | private StatisticsForUser selectedToDo; | | @Factory("toDosForUser") | public void initToDosForUser() { | List releases = StatisticsHelper.getReleasesForUser(em, user); | toDosForUser = new ArrayList(); | for(Release release : releases) { | StatisticsForUser sfu = StatisticsHelper.buildStatisticsForUser(em, release, user); | toDosForUser.add(sfu); | } | } | | @DataModel | public List getToDosForUser() { | initToDosForUser(); | return toDosForUser; | } | | public void setToDosForUser(List toDosForUser) { | this.toDosForUser = toDosForUser; | } | ...} | | | #{toDo.releaseToken} | | | | | | Stacktrace wrote : 11:42:51,670 ERROR [ExceptionFilter] handling uncaught exception | javax.faces.FacesException: Problem in renderResponse: java.lang.ClassCastException: java.util.ArrayList | at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:298) | at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:154) | at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) | at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18) | at com.icesoft.faces.webapp.http.core.PageServer$1.respond(PageServer.java:25) | at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:162) | at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36) | at com.icesoft.faces.webapp.http.core.PageServer.service(PageServer.java:30) | at com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:48) | at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50) | at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19) | at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19) | at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29) | at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:117) | at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:37) | at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52) | at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29) | at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:76) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44) | at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) |
[jboss-user] [JBoss Seam] - Re: Server start - starting app -> ViewExpiredException
As soon as I recognized that this error was caused by ICEfaces i found a solution in their forums: http://www.icefaces.org/JForum/posts/list/6511.page#28416. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119078#4119078 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119078 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Server start - starting app -> ViewExpiredException
I should mention that I use Seam 2.0.1.CR1 with ICEfaces 1.6.2 on a JBoss AS 4.2.2.GA. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118968#4118968 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118968 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Server start - starting app -> ViewExpiredException
Hi, after I upgraded to Seam 2 I have wanted to use Seam Security for authentication. Several times my app worked, i. e. I could enter my login credentials (mysteriously this resulted in "login failed"). But for two hours now, displaying any page of my app results in a ViewExpiredException. Even when I restart the server. Don't know what this could be. Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118961#4118961 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118961 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Re: Bug with Seam-Wizard created project
I didn't make this policy, but IMO a powerful IDE like Eclipse should be able to handle linked folders ;) The consequence is that the plugins should be able too. OK, I'll open an issue. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114935#4114935 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114935 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Tools (users)] - Bug with Seam-Wizard created project
For months I've been using JBoss IDE Tools 1.6 to develop my Seam application. This week I try to migrate to Eclipse Europa with JBoss Tools. Pretty nice work. To migrate I created a Seam project with the "Seam Web Project"-wizard. We have some defaults regarding directory structure. And since we want to separate the "Eclipse-project-specific" files from the "source", I "linked" some directories like "WebContent" to directories outside Eclipse's workspace. Perhaps you can imagine what happened. The EAR-project contained two directories "EarContent" and "resources". I deleted them and created two linked folders "EarContent" and "resources". "EarContent" contains jboss-seam.jar, application.xml and jboss-app.xml. "resources" contains the datasource xml file. Since I deleted and recreated those two folders it's impossible to include e.g. jboss-seam.jar to the other projects. As soon as I click on "J2EE Module Dependencies" on the Seam or the EJB project I get an error: "The currently displayed page contains invalid values." Is it a bug? Is there a workaround? Without the possibility to include the ear project's modules to the other projects I will not be able to build my app. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114928#4114928 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114928 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - EL changes according to JSF 1.2
Hi, since the JBoss Tools 2 are available we decided to upgrade our Seam 1.2.1 based application to Seam 2.0. I had and still have to fiddle with JBossTools to deploy my app, but this is another problem. I made all the changes described in seam2migration.txt regarding the configuration files. Now I'm stuck on the coding part. With JSF 1.2 the EL is changed and the class MethodBinding was replaced by MethodExpression. I use a menu provided by ICEfaces for the navigation in my app. Since I have normal links that return navigation strings AND menu items that should invoke a method I wrote sth like this: if(link.charAt(0) == '#' && facesContext != null) { | menuItem.setAction(new ActionParamMethodBinding(facesContext.getApplication(), link)); | } else { | menuItem.setAction(new ActionMethodBinding(link)); | } All links that had to invoke a method have a preceding '#'. if this is the case the action of this link is an object of the Seam class ActionParamMethodBinding. But as you can guess this class is gone. How can I implement the behaviour I had with the new versions of Seam and JSF? BTW: Is there any document where one can see how to create a Seam Dynamic Web Project with Eclipse, which jars have to be included and how to deploy and test it? And how to configure Seam 2.0 with ICEfaces 1.6.2? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113875#4113875 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113875 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Entity Convert
@ffh: The tag convertEntity doesn't have any attributes. And as far as I can see, the EntityConverter is intelligent enough to recognize classes. Perhaps the problem is not the EntityConverter but the implementation of h:selectManyMenu? Since nusseis doesn't have problems with selectOneMenu. @Peter: I got the same advice from you. But I think that updating to Seam2 is only imaginable when Seam2 is released. I read a few times about this "selection is invalid" problem. Maybe they are all caused by the same little bug. Would be nice if this could be fixed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088850#4088850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088850 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - When uploading a file via ice:inputFile, a component is nul
oke(ENCPropagationInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203) | at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98) | at $Proxy134.upload(Unknown Source) | 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.jboss.seam.util.Reflections.invoke(Reflections.java:20) | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31) | at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57) | at org.jboss.seam.interceptors.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:40) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.interceptors.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:31) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:113) | at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50) | at org.javassist.tmp.java.lang.Object_$$_javassist_36.upload(Object_$$_javassist_36.java) | 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 com.sun.el.parser.AstValue.invoke(AstValue.java:130) | at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274) | at org.jboss.seam.ui.facelet.OptionalParameterMethodExpression.invoke(OptionalParameterMethodExpression.java:34) | at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) | at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69) | ... 37 more | Caused by: org.jboss.seam.RequiredException: In attribute requires non-null value: testactionDeveloper.user | at org.jboss.seam.Component.getValueToInject(Component.java:1919) | at org.jboss.seam.Component.injectAttributes(Component.java:1368) | at org.jboss.seam.Component.inject(Component.java:1195) | at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) | at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103) | at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:53) | at sun.reflect.GeneratedMethodAccessor275.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118) | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:46) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | ... 77 more Thanks in advance Newlukai View the original post : http://www.jboss.com/i
[jboss-user] [JBoss Seam] - Re: @PersistenceContext in a SFSB created by a factory
OK. I changed this. I'm wondering why I didn't do that before ... And yap, it works now ;) Now I'm running into another problem I've to figure out. You don't know why an uninvolved Seam component turns to null as soon as I click on upload on a ice:inputFile? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071606#4071606 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071606 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: @PersistenceContext in a SFSB created by a factory
So I have to change the @Factory method to upDownload = Component.getInstance("upDownload"); ? But, the component "upDownload" isn't yet instantiated, so Seam would look up for "upDownload" and since the @Name is missing on UpDownloadDatabase it would just find the @Factory in UpDownloadFactory. I'm sure I've accidentally ignored something but for me it looks like this would be a recursive call, isn't it? On the other side, when I call Component.getInstance() it isn't possible to switch the implementation via components.xml anymore?!? A workaround would be sth like this: @Name("upDownloadFactory") | @Scope(ScopeType.APPLICATION) | @Startup | public class UpDownloadFactory implements Serializable { | private String className; | | @Out(required=false) | private UpDownload upDownload; | | @Factory(value="upDownload", scope=ScopeType.SESSION, autoCreate=true) | public UpDownload getUpDownload() { | if(upDownload == null) { | try { | if(className == null || className.equals("")) { | className = "Database"; | } | upDownload = (UpDownload) Component.getInstance("upDownload"+className); | ... and so on ... | } | | return upDownload; | } | | public void setClassName(String className) { | this.className = className; | } | } @Scope(ScopeType.SESSION) | @Stateful | @Name("upDownloadDatabase") | public class UpDownloadDatabase implements UpDownload, Serializable { | @PersistenceContext(unitName = "aresDatabase") | private transient EntityManager em; | | public boolean upload(UpDownloadFileinfo fileInfo) { | ... do the upload with em ... | } | | public List getAttachedFiles(long testactionID) { | ... show a list of attached files ... | } | | @Remove @Destroy | public void destroy() { | } | } @Scope(ScopeType.SESSION) | @Stateful | @Name("upDownloadFilesystem") | public class UpDownloadFilesystem implements UpDownload, Serializable { | public boolean upload(UpDownloadFileinfo fileInfo) { | ... do the upload with em ... | } | | public List getAttachedFiles(long testactionID) { | ... show a list of attached files ... | } | | @Remove @Destroy | public void destroy() { | } | } Would that be possible? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071584#4071584 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071584 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - @PersistenceContext in a SFSB created by a factory
Hi there, is it possible to have a PersistenceContext in a bean (don't really know which type it is, sorry, I'm a noob somedays :D) which is created by a factory? The thing I want to do is to imlpement the possibility to switch the implementation of an interface. This works. In one of these implementations I want to obtain the PersistenceContext and that doesn't work. But let me show you some code: @Name("upDownloadFactory") | @Scope(ScopeType.APPLICATION) | @Startup | public class UpDownloadFactory implements Serializable { | private String className; | | @Out(required=false) | private UpDownload upDownload; | | @Factory(value="upDownload", scope=ScopeType.SESSION, autoCreate=true) | public UpDownload getUpDownload() { | if(upDownload == null) { | try { | if(className == null || className.equals("")) { | className = "com.idsscheer.ares.sessions.UpDownloadDatabase"; | } | upDownload = (UpDownload) Class.forName(className).newInstance(); | ... and so on ... | } | | return upDownload; | } | | public void setClassName(String className) { | this.className = className; | } | } This is the factory I wrote. As you can see the implementation has to be set in components.xml and sets the className property. All those parameters I set in the @Factory annotation shall setup the "upDownload" as SFSB. Here is one implementation of the managed bean: @Scope(ScopeType.SESSION) | @Stateful | public class UpDownloadDatabase implements UpDownload, Serializable { | @PersistenceContext(unitName = "aresDatabase") | private transient EntityManager em; | | public boolean upload(UpDownloadFileinfo fileInfo) { | ... do the upload with em ... | } | | public List getAttachedFiles(long testactionID) { | ... show a list of attached files ... | } | | @Remove @Destroy | public void destroy() { | } | } In this implementation the EntityManager is needed but on invokation of this bean the console tells me that Caused by: java.lang.IllegalArgumentException: @PersistenceContext may only be used on session bean or message driven bean components: upDownload | at org.jboss.seam.Component.initMembers(Component.java:663) | at org.jboss.seam.Component.(Component.java:253) | at org.jboss.seam.Component.(Component.java:203) | at org.jboss.seam.init.Initialization.addComponent(Initialization.java:851) | ... 93 more Has anybody an idea how to implement such a factory? Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071517#4071517 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071517 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found
Is it just since 1.2.1.GA that the entity has to be Seam managed? It could be an explanation for my problem. Fortunately since I tried to update to Seam 2 and then went back to 1.2.1 the problem has gone. But I'm still interested in recovering the reason. Therefore could you please tell me what steps are necessary to assure that those entities are Seam managed? And does this only refer to the entities which are in the list itself or also to the component which provides the list (which should be Seam managed since it's a component, isn't it?)? Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071443#4071443 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071443 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found
I tried it. I really did. But I had to surrender facing the list of things to do to migrate to Seam 2.0. Sorry. So I'm on 1.2.1.GA again. The only major change before this mibehaviour occured was to introduce a @Startup component which is injected to the backing bean. But I don't know why this should produce an error in the EntityConverter when the page is submitted after it was successfully rendered. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071176#4071176 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071176 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found
Hehe. OK. I'll test it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070279#4070279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070279 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found
Hmm. OK. I don't want to try it since it's still beta, but I'll do it next week. Do you have an idea what it could be? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070233#4070233 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070233 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: EntityConverter: Entity Manager not found
Seam 1.2.1.GA ICEfaces 1.6.0 JBoss AS 4.0.5.GA View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069752#4069752 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069752 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - EntityConverter: Entity Manager not found
Hi there, I've encountered a strange behavior in my application. There are several s:selectItems on a page using s:convertEntity to display dropdown-boxes filled with entities. | | | When the page is rendered the first time, the dropdowns are rendered as they should be. So I think everything is fine with the EntityManager. Below the dropdowns there's a dataTable. The dataTable shows some information according to the selected items in those drop-downs. With a commandLink you can select an entry to display further information. | | | | | | | As you can see I use Seam's EL enhancement to let the backing bean know which item was clicked. OK. Let's remember that the page was displayed normally. Now I click on a commandLink to display further information resulting in a message "Error selecting object" in the h:message tag. The console tells me that "ERROR [EntityConverter] Entity Manager not found". But why? The EntityConverter has already converted the entities from the database. Why isn't it possible to select an item in the datatable? Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069683#4069683 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Seam injects null when using ice:inputFile
Hi there, I've a page which displays data of an entity. On this page I defined an ice:popupPanel containing an ice:inputFile. In the backing bean, which controls saving the changes, displaying the popup and so on, there is the component defined as follows: @In(required=false) | @Out(required=false, scope=ScopeType.SESSION) | protected Testaction testaction; | As soon as I upload a file, the testaction equals to null. In any other case, like changing an ajax-enabled drop-down-field, the testaction has the expected values. With ICEfaces 1.5.3 the upload worked fine. The null-injection occurs since I updated to ICEfaces 1.6.0 DR #5. Has anybody a hint how to solve this problem? Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060780#4060780 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060780 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Writing a custom converter which wraps EntityConverter
Thanks. Have a nice weekend. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054774#4054774 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054774 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Writing a custom converter which wraps EntityConverter
Thanks. I've it implemented this way: public class SeverityConverter implements Converter { | public Object getAsObject(FacesContext context, UIComponent component, String value) throws ConverterException { | Converter entityConverter = (Converter) Component.getInstance("org.jboss.seam.ui.entityConverter"); | | if(NoSelectionConverter.NO_SELECTION_VALUE.equals(value)) { | return entityConverter.getAsObject(context, component, value); | } | | int severity = Integer.parseInt(value); | if(severity >= 0) { | return entityConverter.getAsObject(context, component, value); | } | | return AdditionalSeverities.getSeverityByID(severity); | } | | public String getAsString(FacesContext context, UIComponent component, Object value) throws ConverterException { | Converter entityConverter = (Converter) Component.getInstance("org.jboss.seam.ui.entityConverter"); | Severityclass severity = (Severityclass) value; | | if(severity == null || severity.getID() >= 0) { | return entityConverter.getAsString(context, component, value); | } | | return String.valueOf(severity.getID()); | } | } I'm wondering if the way I get the EntityConverter is OK or if there's a more elegant way. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054768#4054768 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054768 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Writing a custom converter which wraps EntityConverter
Isn't there anyone who's done such an implementation? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054616#4054616 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054616 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Let Seam instantiate a second component?
Found somewhere the call Component.getInstance and solved my problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050140#4050140 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050140 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Writing a custom converter which wraps EntityConverter
Hi, I can't find any hint about this issue: I want to write a custom converter which wraps Seam's EntityConverter. I've a drop-down list which should display several entities. Additionally it should contain some "custom entities" which describe a set of the real entities. Image these entities were priorities from 1 to 7. The custom entities should provide values "priorities < 3" and "priorities > 3". Those custom entities aren't persisted in the database so the EntityConverter isn't applicable here. I had the idea to write a custom converter which delegates the noSelectionLabel and the real entities to EntityConverter and handles the custom entities itself. But I can't find a document or somewhat that describes how I can do this. Could anyone help me? Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050110#4050110 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050110 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Let Seam instantiate a second component?
Hi, I'm wondering if and how it is possible to let Seam instantiate a component B from a component A. I have a component A - call it Manager - which is supposed to receive some data to create and persist a new entity. Therefore the Manager outjects a "blank entity" which is later injected with the data from the user. Some values are preset using a @Factory method in the Manager. On the page the user sees to input his data, there is a drop-down menu, realised with s:selectItems which doesn't use the noSelectionLabel. Depending on the selected value some other values are set by the Manager. The drop-down menu gets its values from a component B - call it Selector. The current selected value is bijected in a third component - call it selectedValue - so that the Manager can adapt some values depending on the selectedValue. Since there's no noSelectionLabel, i. e. the user has to choose a value, the @Create method of this Selector queries the database for some values and outjects the first one as selectedValue. That works pretty good, but there's only one last thing to do: The first time the page is displayed, the @Factory method in Manager is invoked. And as you might guess the selectedValue is null. That's because the Selector is instantiated after the instantiation of the Manager since it occurs later on the page. But actually I want to preset some values depending on the selectedValue outjected by the @Create method of the Selector. Is there a way to tell Seam to instantiate the Selector before the @Factory method of the Manager is invoked? One way would be to place a dummy call from the JSF page before the Manager is called. But that isn't a good design I think. Another way would be the usage of @Startup(depends). But actually I don't want to have both components instantiated before they are needed. Is there another way? Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050027#4050027 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050027 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: noSelectionLabel s:selectItems NumberFormatException
Is there any information about the strange behaviour of the selectItems feature in 1.2.1 with ICEfaces? I hope that my problems will be gone if this one is fixed. I've added a valueChangeListener on the ice:selectOneMenu which just sets a scoped object to the selected value. But as soon as the user selects a value, there's a validation error occuring which says that the value is invalid. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047199#4047199 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047199 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.2 released
"petemuir" wrote : Post the exception :), see if it pins things down... | | If you submit a testcase to JIRA (needs to be simple and have just enough code to demonstrate the problem) I'll take a look at it. You could probably take the ui example and manipulate it... Hi Peter, I tested the ui exmaple. It works as expected. Today I tried to modify the ui example to work with ICEfaces. It's not complete, since the pages aren't rendered correctly. But there's rendered enough to see that the value of the noSelection-option is an empty string instead of "org.jboss.seam.ui.NoSelectionConverter.noSelectionValue". Here's the code of that page: http://www.w3.org/1999/xhtml"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:s="http://jboss.com/products/seam/taglib"; | xmlns:ice="http://www.icesoft.com/icefaces/component"; | template="template.xhtml" | > | | | This example shows example usage of the s:selectItems tag being used for CRUD on a Person entity. | The example also uses: | | s:span | s:convertEnum | s:message | s:decorate | s:link | s:conversationPropagation | s:decorate | | | | | Title | | | | | | | | Name | Enter your name as it appears on your passport | | | | | Continent of Birth | | | | | If I had a smooth running example I would post it. Perhaps you've better luck switching from ajax4jsf to ICEfaces in the ui example. Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043948#4043948 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043948 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.2 released
We tried this with normal h:selectOneMenus. But it's the same exception ... So we thought the bug has to be in Seam. And with the mentioned workaround this app works as it should. Hmm. I'm wondering which framework delivers the converters, since the excpetion tells that a conversion from null to Integer failed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039298#4039298 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039298 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.2 released
Hi, thanks for your answer. Here's some code: Page: | | | | | | | | | | When the page is rendered the first time both selectOneMenus show the noSelectionLabel. Then I change the value of "projectselection" and since there's a partial submit, the lifecycle is invoked. The "projectselection" value is converted correctly. But the conversion of the noSelectionLabel in "taskselection" throws an exception because "null" can't be converted to "Integer". Inspecting the HTML page source I saw that the noSelectionLabel of the selectOneMenus were represented by an empty string. Perhaps it's a compatibility error with ICEfaces 1.5.3??? Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039277#4039277 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039277 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.2 released
Hi, don't know if it has been corrected or not. We just detected a problem in org.jboss.seam.ui.UISelectItems. There's a private static final String NO_SELECTION_VALUE = null; defined which should be replaced by import static org.jboss.seam.ui.NoSelectionConverter.NO_SELECTION_VALUE; Because: SelectItems class always uses 'null' as value of NullableSelectItem. Therefore during conversion this is not recognized by the NoSelectionConverter. Without this change the s:selectItems will not work with noSelectionLabel set. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038378#4038378 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038378 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: File(data) Download problem...
I got it. Almost. I'm stuck on a Seam/ICEfaces integration problem with embedded JavaScript. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025813#4025813 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025813 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to use ice:dataTable and @DataModel?
Great. It works. Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025692#4025692 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025692 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to use ice:dataTable and @DataModel?
Thanks for your answers. But the thing is that - under certain circumstances - the sorting does work in my application. My problem is a little bit more complex. Imagine that you just want to show up companies (danoakland) or organisations (Tony) that match certain criterias which can be varied by the user with selectOneMenus. Just think of one selectOneMenu which gives the user the option to filter for companies which have just 0-25, 25-50 or >50 employees. Implementing this let me decide between two options how the application would act: 1 - The filtering works correctly, which means that the dataTable always show the entries matching the current filters. But: @DataModelSelection(Index) doesn't work. 2 - @DataModelSelection(Index) works, but then the dataTable shows the entries matching the filters the request before the current request. It's just driving me crazy. But I would thank you, Tony, you just give me some hope, that I would get it to work with your use of "the_organisation" in the buttons. Does this work in normal ice:commandLinks or does it only work with s:buttons? Anyhow, it shows me I have to attend to EL again. Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025687#4025687 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025687 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to use ice:dataTable and @DataModel?
Hi, I still don't get this working. Regards Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025411#4025411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025411 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: File(data) Download problem...
Hi jazir, I tried your code in my application where I get a file out of a database blob and want to send it to the browser. But I ran into a NullPointerException, since I don't get a HttpServletResponse object from the FacesContext object. Could it be that I inject the wrong context? @In | private FacesContext context; Or is it because I use ICEfaces, that I can't get a HttpServletResponse? Has somebody implemented a file download with ICEfaces? Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025108#4025108 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025108 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: New fileUpload component
That's not so good. At the moment I use Seam 1.1.5.GA and ICEfaces 1.5.3 and I'm using the ICEfaces upload component. I've not completed the upload feature for my application, but right now, the uploaded file is placed in the deployment directory and I retrieve an InputFile object with the path to this file. So I think I'll use this until ICEfaces and Seam work together ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021001#4021001 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021001 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: New fileUpload component
Hi, is this upload tag compatible with ICEfaces? Or should the ICEfaces fileUpload be used? Regards Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4020539#4020539 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4020539 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Why don't instance RenderManager in Seam?
Could you successfully use the RenderManager with renderManager.requestRender(this) or something? I can't do this ... Thanks Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013651#4013651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013651 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to use ice:dataTable and @DataModel?
I'm wondering if there's anybody using ice:dataTable, @DataModel and @DataModelSelectionIndex without any problems. Imagine you have a list rendered by an ice:dataTable. One column consists of h:commandLinks. The action method gathers information about the selected item and returns an outcome that tells JSF to show a page where the selected item is displayed more detailed. Just like a list of users. You click on a username and on the next page you see his address or something. The problem is that the @DataModelSelection(Index) is injected with the default value. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013059#4013059 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013059 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: User Experiences with IceFaces & How important are compo
I'm a little late, but in my application I've massive problems with ice:dataTable and @Factory, @DataTable and @DataTableSelection. The workaround you once mentioned with Tomahawk (see Wiki) doesn't work anymore. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012906#4012906 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012906 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to use ice:dataTable and @DataModel?
refresh() { | testactions = null; | return ""; | } | | private void updateTestactionsListAndSelectionModels() { | currentTestactions.set(currentTestactionIndex, currentTestaction); | testaction = currentTestaction; | testactions = currentTestactions; | } | } And here is one of the subclasses: @Stateful | @Scope(ScopeType.SESSION) | @LoggedIn | @Name("testactionDeveloper") | public class TestactionDeveloperAction extends TestactionHandling implements | TestactionDeveloper, Serializable { | @In(required=false) | private Release selectedRelease; | | @In(required=false) | private Priorityclass selectedPriority; | | @In(required=false) | private Severityclass selectedSeverity; | | @In(required=false) | private User selectedUser; | | private Long lastSelectedReleaseID; | private String lastSelectedPriorityID; | private Integer lastSelectedSeverityID; | private String lastSelectedUserID; | | | @Factory("testactionsForDeveloper") | public void initTestactions() { | if(hasAFilterChanged() || shouldRefresh() || testactions == null) { | testactions = EMHelper.execQuery(em, "from Testaction | where (TACT_REV_ID=2 or TACT_REV_ID=9) and | (TACT_BFV_ID=4 or TACT_BFV_ID=99)" + generateFilterStatements() + | "order by TACT_ID asc" | ); | | updateFilterHelpers(); | } | Collections.sort(testactions, new TestactionComparator(column, ascending)); | } | | @DataModel//(scope=ScopeType.PAGE) | public List getTestactionsForDeveloper() { | initTestactions(); | return testactions; | } | } Here is the page for that subclass: http://www.w3.org/1999/xhtml"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:ice="http://www.icesoft.com/icefaces/component"; | template="template.xhtml"> | | | #{ares_messages.header_listForDeveloper} | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... | | | | | | | | | | | | | | | | | | | | ... I think it's enough ;) Now my problem: I don't get it working properly with ICEfaces. It worked with Tomahawk, but doesn't with ICEfaces. There are three ways I tried: | * The way described in the WIKI for Tomahawk's dataTable. The @DataModel and the @Factory are in the subclass and the dataTable refers to the @DataModel's name ("#{testactionForDevelopers}"). | The result is that when the user changes the filter, the list applies the filter values that were applied before. E. g. the user selects priority A, the list doesn't change. The user select priority B, then the list shows priority A and so on. | * The way it's done in the Seam icefaces example. @Factory in the subclass, @DataModel on the testactions member in the superclass and the dataTable refers to the @Factory's name. | The list is empty. | * The way it's done in the ICEfaces TimeZone example. Remove @Factory and put the @DataModel on the testactions member in the superclass. The dataTable refers to "#{testactionDeveloper.testactionsForDeveloper}". | The list can be filtered like it should. But when the user selects a testaction always the first one in the list is displayed. I think Seam can't determine the Index in this constellation. | I've to excuse for this monster, but I don't know how to solve my problem and I don't want to give you too little information to help me. Thanks in advance Newlukai BTW: Did anyone get this ice:menuBar working with more than one level? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006413#4006413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006413 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Eclipse IDE (users)] - Which version to use?
Hi there, I still use JBossIDE 1.5 but I'm thinking about upgrading. But I'm wondering which version I should use. The installation guide is written for 1.5, the last release is 1.6 and since October 2006 there's only a beta2 of JBossIDE 2.0. I develop an application with Seam 1.1.1, ICEfaces 1.5.2 and Facelets. Can somebody recommend a version of JBossIDE? Thanks in advance Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4005683#4005683 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4005683 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1.1.GA
"[EMAIL PROTECTED]" wrote : Actually Seam 1.1.1 bundles ICEFaces 1.5.2. | | But we are really waiting for a bugfix that will be released in ICEFaces 1.5.3. Then things should be working much nicer together. That's nice. But does it mean what I think it means? I don't have to download ICEfaces and fiddle with icefaces.jar and so on? I just use the jars from Seam and can use ice:menuBar and the rest? That would be really nice. At the moment I've problems related to errors in the jscripts from ICEfaces. Would this bugfix solve those problems? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004766#4004766 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004766 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1.1.GA
Is there any documentation where to put all the necessary jars in the ear and which jar is needed since Seam and ICEfaces use similar jars, e. g. commons-beanutils-1.7.0.jar (Seam) and commons-beanutils.jar (ICEfaces). I think it's better to use the versioned Seam jars since I can determine the version of the jar. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003802#4003802 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003802 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam And ICEFaces menubar
Perhaps you should return something? And not null. Or you change the scope to APPLICATION? Here's my menu bean: @Stateless | @Name("sideNavigationMenu") | @Scope(ScopeType.APPLICATION) | public class SideNavigationMenu implements SideNavigation { | @In | private FacesContext facesContext; | | @In @Valid | private User user; | | public List getPanelNavigationItems() { | List menu = new ArrayList(); | | // generate menu | | return menu; | } And the JSF: | | | | | | But I've another problem: As soon as I click on a menu item, an ICEfaces dialog pops up telling me the session is expired. What's that? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995866#3995866 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995866 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How to use ice:menuBar with Seam in an EAR application?
Thank you. It works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993276#3993276 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993276 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How to use ice:menuBar with Seam in an EAR application?
Hi, I'm trying to get my application started, but it fails with a NoClassDefFounfError: 11:21:37,140 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=ares.jar | java.lang.NoClassDefFoundError: com/icesoft/faces/component/menubar/MenuItem As you can see this error occurs while the jar is loaded. To create a dynamic menuBar I've to use the above mentioned class in the bean that generaties the menu. The class is in the icefaces-comps.jar which is already in my war file to use the ICEfaces tags. My problem now is: Where do I've to put the icefaces-comps.jar so that it can be used by the jar and by the war of my application? I don't want to put it twice in my ear. Here's a short overview over the contents of the ear: | /ares.ear | - META-INF | application.xml | jboss-app.xml | - /ares.jar | + com ... (all the session and entity beans) | - META-INF | | ejb-jar.xml | | persistence.xml | seam.properties | - /ares.war | + com ... (resource bundle) | - WEB-INF | | - lib | | | commons-fileupload.jar | | | el-api.jar | | | el-ri.jar | | | icefaces.jar | | | icefaces-comps.jar | | | icefaces-facelets.jar | | | jboss-seam-debug.jar | | | jboss-seam-ui.jar | | | selectitems.jar | | | selectitems-ui.jar | | components.xml | | faces-config.xml | | navigation.xml | | tomahawk.taglib.xml (I'm currently migrating from tomahawk to ICEfaces) | | web.xml | jboss-seam.jar | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993012#3993012 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993012 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1CR1 + IceFaces & Tomahawk problem!
I think you have to tell it until all the users heard it. I didn't know to avoid Tomahawk. But right now I'm changing from Tomahawk to ICEfaces. And it's quite a lot to do ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990039#3990039 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3990039 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error in SimpleStatefulCache$SessionTimeoutTask
I could solve this problem by including a portlet-api-lib (don't know where I found it). But after that I ran into other problems while serializing/deserializing the session and marked some members as transient where necessary (the SessionContext for example). But there were still problems when using the session 5 minutes before timeout. Now I use Seam 1.1 and ICEfaces 1.5.1 and after the application works as before the migration I'll check this problem again. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989976#3989976 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989976 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Seam 1.1 & Tomahawk Datatable
Sure. Here we go: The session bean: @Stateful | @Scope(ScopeType.SESSION) | @LoggedIn | @Name("searchTestaction") | public class SearchTestactionAction implements Serializable, SearchTestaction { | @PersistenceContext(unitName = "aresDatabase") | private transient EntityManager em; | | @In(required=false) | private Testaction testaction; | | private List foundTestactions; | @DataModelSelection | @Out(required=false, scope=ScopeType.SESSION) | private Testaction foundTestaction; | //@DataModelSelectionIndex workaround | private int foundTestactionIndex; | | @In(required=false) | private Release selectedRelease; | | private String sortColumn = "id"; | private boolean ascending = true; | | @Factory("foundTestactions") | public String search() { | //omitted: generate the query | | if(query.length() != 0) { | if(selectedRelease != null) { | addPrefix(query); | query.append("TACT_REL_ID="); | query.append(selectedRelease.getID()); | } | foundTestactions = EMHelper.execQuery(em, "from Testaction " + query.toString() + " order by TACT_ID asc"); | Collections.sort(foundTestactions, new TestactionComparator(sortColumn, ascending)); | } | | return "search"; | } | | @DataModel | public List getFoundTestactions() { | return foundTestactions; | } The page with a search form and a result list: | #{ares_messages.header_searchTestaction} | | | | | | | | | | | | | | | | | | | | | | | This ocde adresses the first problem I mentioned. The second problem occurs here: Bean: @Stateful | @Scope(ScopeType.SESSION) | @LoggedIn | @Name("testactionValidator") | public class TestactionValidatorAction extends TestactionHandling implements Serializable, TestactionValidator { | @In(required=false) | private Release selectedRelease; | | @In(required=false) | private User selectedUser; | | private Long lastSelectedReleaseID; | private String lastSelectedUserID; | | @Factory("testactionsForValidator") | public void initTestactions() { | if(hasAFilterChanged() || shouldRefresh() || testactions == null) { | StringBuffer filter = new StringBuffer(); | if(selectedRelease != null) { | filter.append(" and TACT_REL_ID="); | filter.append(selectedRelease.getID()); | } | testactions = EMHelper.execQuery(em.createQuery( | "from Testaction where TACT_VALIDATOR_USR_ID=:validator and " + | "TACT_BFV_ID=" + BugfixValidation.Constants.TO_VALIDATE.value() + " and " + | "TACT_REV_ID!=" + Revisionclass.Constants.TO_BUGFIX.value() + | filter.toString() + | " order by TACT_ID asc" | ).setParameter("validator", user.getIsAdmin().equals(new Integer(-1)) ? selectedUser.getID() : user.getID())); | | lastSelectedReleaseID = (selectedRelease == null) ? null : selectedRelease.getID(); | lastSelectedUserID = (selectedUser == null) ? null : selectedUser.getID(); | } | Collections.sort(testactions, new TestactionComparator(column, ascending)); | } | | @DataModel(scope=ScopeType.PAGE) | public List getTestactionsForValidator() { | initTestactions(); | return testactions; | } And the page: | | | | | | | | | | | The members "column" and "ascending" are defined in the superclass (with getters and setters). Perhaps that's is the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989607#3989607
[jboss-user] [JBoss Seam] - Seam 1.1 & Tomahawk Datatable
Hi, I'm trying to migrate to Seam 1.1 and having some problems. I hope that somebody can help. On several pages in my application I make use of the DataModelWithTomahawkDataTable workaround mentioned on the wiki (http://wiki.jboss.org/wiki/Wiki.jsp?page=DataModelWithTomahawkDataTable). Since I use Seam 1.1 this workaround doesn't work anymore. Or I made a mistake. The workaround proposes to annotate a method as @Factory("xyz") for a member and to annotate the corresponding getter with @DataModel. So when I use "xyz" on a page there are two methods related to the attribute. In the past the @DataModel was invoked, but now it seems that the @Factory is invoked. That's fatal since the @Factory returns String (in the wiki it returns void) so all the subsequent calls to the "var" of the dataTable are invoked on the String. That's one problem. The other problem also has to do with this workaround and I hope it will disappear when the first problem is fixed. There has to be something wrong with the column member which is introduced to make a dataTable sortable, but I don't know what's wrong with it at all. And there's only a stack-trace which doesn't tell me anything useful. Perhaps somebody else knows what's the problem: 16:44:25,500 ERROR [ExceptionInterceptor] redirecting to debug page | javax.ejb.EJBException: java.lang.IllegalStateException: No page context active | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:69) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83) | at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:83) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77) | at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203) | at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98) | at $Proxy220.setColumn(Unknown Source) | at com.idsscheer.ares.sessions.interfaces.TestactionValidator$$FastClassByCGLIB$$18d04061.invoke() | at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) | at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45) | at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:69) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55) | at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39) | at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18) | at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64) | at org.jboss.seam.interceptors.ExceptionInterceptor.handleExceptions(ExceptionInterceptor.java:28) | at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.seam.util.Reflections.invoke(Reflections.java:18) | at org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169) | at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64) | at org.jboss.seam.interceptors.SynchronizationInterceptor.serialize(SynchronizationInterceptor.java:30) | at sun.reflect.GeneratedMethodAccessor298.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) |
[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro
Ah... OK. Seems interesting. I will test it these days. I will tell you how it works. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988829#3988829 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988829 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro
No problem. But ... erm ... I've another question: In my application there is a table which contains priorities. The table contains two columns: the ID and the description of the priority. On some pages the user can filter all shown entries by priority. Adding a noSelectionLabel the user has also the option to disable the filtering. But now the user should be able to filter for priorities greater or less than a distinct value, say 3. So I want to add two further rows in the si:selectItems which have this special meaning. I know that the EntityConverter can't handle rows, which are created in my bean and not persisted in the database. So I think the best solution would be a custom converter which handles the special meanings and invokes the EntityConverter for all the other cases. Is that possible? Has to be something like this (got it from the wiki): public Converter getPriorityConverter() { |return new PriorityConverter() { | | protected Object getIdAsObject(String id, Class clazz) { | int priority = Integer.parseInt(id); | if(priority == -2) return SpecialPriorities.GREATER_3; | if(priority == -3) return SpecialPriorities.LESS_3; | Converter entityConverter = new EntityConverter(); | return entityConverter.getIdAsObject(id, clazz); | } | | protected String getIdAsString(Priority entity) { | return entity.getId() + " (" + entity.getDescription() + ")"; | } |}; | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988735#3988735 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988735 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro
I've got an appointment so I quickly wrote down what I've done: 1. Download selectitems.jar and selectitems-ui.jar. 2. Place them in WEB-INF/lib of your war file. 3. Add following property to your persistence.xml: 4. Add following entry to your components.xml: | java:/selectItemsEntityManagerFactory | As you might guess the property has to be the same value you set in persistence.xml. 5. Now you can establish the relationships between your entities using @OneToOne and so on. (Don't forget to adjust getters and setters) 6. The method which outjected the SelectItems can now be rewritten to outject an list containing the entities. 7. Use to retrive the entities. With attribute "label" you can define the label shown on each row. To use si you have to include xmlns:si="http://jboss.com/products/seam/selectitems/taglib"; and xmlns:s="http://jboss.com/products/seam/taglib"; You have to use attributes Value, var and label. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988182#3988182 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988182 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro
*dancing on my desk* It works ... I'v full access on all the columns entity B and entity A have. And I can choose an entity B from a dropdown to save in entity A. It's just great. Thank you Mr Muir. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988177#3988177 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988177 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro
Ah. OK. I didn't set this value in persistence.xml. What does this property do? I try to explain it for my own: In persistence.xml I'm setting up how to connect the database. Whit the property you mentioned I give it a JNDI name?!? And this JNDI name is the value that is needed by the SelectItemsConfig. Right? BTW: I just use the annotation @PersistenceContext(name="aresDatabase") to inject the EntityManager in each component that needs the EntityManager. I saw some guys using only the @In annotation. Why does it work for them? Does it have to do with the org.jboss.seam.core.ManagedPersistenceContext property in components.xml? Where do I find more to read on this topic? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988174#3988174 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988174 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro
Yeah, it works. Thanks! Now I've got the real error message: Cannot access entityManager; ensure persistenceUnitJndiName is set on SelectItemsConfig class in components.xml So I've to set the JNDIName. But to which value? I didn't have a components.xml before I used si:selectItems. I set it to the jta-data-source I defined in persistence.xml: | | org.hibernate.ejb.HibernatePersistence | java:/aresDatasource | ... rest omitted ... But it didn't work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988151#3988151 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988151 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro
It's 1.0.1 GA on a AS 4.0.4 Patch1. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988116#3988116 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988116 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro
I'm trying to use and I followed all the hints in the example, but I still get an exception: java.lang.NullPointerException | at org.jboss.seam.core.Messages$1.get(Messages.java:51) | at org.jboss.seam.core.Messages$1.get(Messages.java:79) | at org.jboss.seam.selectitems.jsf.SelectItemsConverter.getMessage(SelectItemsConverter.java:74) | at org.jboss.seam.selectitems.jsf.EntityConverter.loadEntityFromPersistenceContext(EntityConverter.java:122) | at org.jboss.seam.selectitems.jsf.EntityConverter.convertToObject(EntityConverter.java:48) | at org.jboss.seam.selectitems.jsf.SelectItemsConverter.getAsObject(SelectItemsConverter.java:52) | at org.apache.myfaces.shared_impl.renderkit.RendererUtils.getConvertedUIOutputValue(RendererUtils.java:651) | at org.apache.myfaces.shared_impl.renderkit.html.HtmlMenuRendererBase.getConvertedValue(HtmlMenuRendererBase.java:111) | at javax.faces.component.UIInput.getConvertedValue(UIInput.java:395) | at javax.faces.component.UIInput.validate(UIInput.java:349) | at javax.faces.component.UIInput.processValidators(UIInput.java:183) | at javax.faces.component.UIForm.processValidators(UIForm.java:70) | at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:624) | at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:146) | at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:262) | at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:97) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) | at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144) | 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.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) It seems that during validation the converter can't get a message. So I think I didn't setup your jars (1.1.1beta2) properly. I placed the two jars to the \WEB-INF\lib directory of my war and included them in the Class-Path entry of the manifest for the war. Do I have to do something else? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988106#3988106 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988106 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro
Hmm. OK. Yesterday I searched around the web for possibilities to handle a ManyToOne-releationship in a dropdown-box. And I think that your http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamSelectItemsNewDesign offers all the things I need with a great usability. But I think there should be a guideline or an explanation on how to use it, step-by-step. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988066#3988066 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988066 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Challenge: Simple Example Adding Records With Lookup Dro
I#ve got the same problem. The real differences between your and my version is the usage of the EntityConverter and the @SelectItems. Could you please tell me what you did to get it working? Do I have to use @SelectItems and/or the EntityConverter or does it also work with a "pure" Seam? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3987895#3987895 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3987895 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: How can I set the writable properties of a bean?
Yeehaw. I got it. Just have a look at the http://forum.java.sun.com/thread.jspa?threadID=592471&start=15&tstart=0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983747#3983747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983747 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Sharing an Entity Between JSP's
In my app I've a similar use-case. I think I had the same problem, too. My solution was to integrate the "detailed code" like your getFirstName() method in the component which manages the list and the selected item. I would prefer separated components, but I didn't find out how. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983661#3983661 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983661 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - How can I set the writable properties of a bean?
Hi folks, I've a little problem and hope that somebody can help. My application displays properties of an entity bean. The user can edit some properties (h:inputText), some of theam are read-only (h:outputText). At the top of the page there is a drop-down-list. When the user selects an item from this list, some properties of the displayed entity bean shall be changed. Now my problem: Only the read-only properties are changed. I think that's because JSF has a "browser" data model and just accepts changes made on read-only properties. Is there a known workaround, technique or setting to enable my component to overwrite entity bean properties? Thanks a lot Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983477#3983477 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983477 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error in SimpleStatefulCache$SessionTimeoutTask
At the moment it's 1.0.1 GA. But I'm planning to migrate. I'm not sure whether I should update or wait for a non-beta release. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983434#3983434 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983434 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error in SimpleStatefulCache$SessionTimeoutTask
Hi, back from my holidays I see that anybody had an idea. But my problem still exists. Maybe "I get this error after some minutes" was not exact enough. This error occurs when I log in to my application and then stay logged in whithout doing anything. Greets Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3983423#3983423 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3983423 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Error in SimpleStatefulCache$SessionTimeoutTask
Hi there, when I start the JBoss AS with my application, I get this error after some minutes. 15:04:22,046 ERROR [STDERR] Exception in thread "SFSB Passivation Thread - jboss.j2ee:ear=ares.ear,jar=ares.jar,name=SelectOneMenuHelperAction,service=EJB3" | 15:04:22,046 ERROR [STDERR] java.lang.NoClassDefFoundError: javax/portlet/PortletContext | 15:04:22,046 ERROR [STDERR] at java.lang.Class.getDeclaredConstructors0(Native Method) | 15:04:22,046 ERROR [STDERR] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) | 15:04:22,046 ERROR [STDERR] at java.lang.Class.getConstructor0(Class.java:2671) | 15:04:22,046 ERROR [STDERR] at java.lang.Class.getDeclaredConstructor(Class.java:1953) | 15:04:22,046 ERROR [STDERR] at org.jboss.serial.classmetamodel.SunConstructorManager.getConstructor(SunConstructorManager.java:70) | 15:04:22,046 ERROR [STDERR] at org.jboss.serial.classmetamodel.ClassMetaData.findConstructor(ClassMetaData.java:381) | 15:04:22,046 ERROR [STDERR] at org.jboss.serial.classmetamodel.ClassMetaData.(ClassMetaData.java:127) | 15:04:22,046 ERROR [STDERR] at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:335) | 15:04:22,046 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:171) | 15:04:22,046 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:202) | 15:04:22,046 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:275) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:202) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:275) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:202) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181) | 15:04:22,062 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.io.MarshalledObject.(MarshalledObject.java:51) | 15:04:22,062 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:401) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:275) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:202) | 15:04:22,062 ERROR [STDERR] at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181) | 15:04:22,062 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298) | 15:04:22,062 ERROR [STDERR] at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:347) | 15:04:22,062 ERROR [STDERR] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:194) | 15:04:22,062 ERROR [STDERR] at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:129) I found "PortletContext" in the "portlet-api-lib.jar" and put it in my ear file, but this didn't solve the problem. i don't know what's wrong. Can anybody help me? Regards Newlukai View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976305#3976305 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976305 ___
[jboss-user] [JBoss Seam] - Outjection problem(s)
Hi, I didn't know how to search for this specific problem, so I started a new thread. I hope you don't mind. I have a form which allows the user to enter some values, which are attached to a bean (called testactionToCreate). As the name says, this form should allow the user to create a new testaction. To specify a testaction the user can choose a testcase from a dropdown-list, but he doesn't need to. But as soon as he chooses a testcase, some fields on the page should be filled with the values of the testcase. Then the user adds some data and submits the form. That's the idea. The dropdown-list gets its entries from a stateful bean, the testcaseSelector. In this bean I defined a valueChangeListener which sets some values of the injected testactionToCreate. This works fine. After those values are set, the testactionToCreate is outjected. Now comes my problem: I only see the attributes set by testcaseSelector if they are displayed in an output field like h:outputText. Next step would be to save the testactionToCreate. The save method is defined in a third bean, called createTestaction. When the save method is invoked all attributes set by the testcaseSelector are null. And that's a problem, too. But I think it's related to the first problem. Here is some code: The entity bean (testactionToCreate): @Entity | @Table(name="TESTACTIONS") | @Name("testaction") | @Scope(ScopeType.SESSION) | public class Testaction implements Serializable, Cloneable { | private long m_ID; | //... the attribute list is too long. Ask me, if you need more | private Long m_TCaseID; | private Long m_TObjID; The bean saving the entitiy bean (createTestaction): @Stateless | @LoggedIn | @Name("createTestaction") | public class CreateTestactionAction implements CreateTestaction, Serializable { | @PersistenceContext(unitName = "aresDatabase") | private EntityManager em; | | @In | @Valid | private User user; | | @Valid | @In(required=false) | @Out(required=false) | private Testaction testactionToCreate; | | @In(required=false) | private Release selectedRelease; | | @Factory("testactionToCreate") | public void initTestactionToCreate() { | if(testactionToCreate != null) { | return; | } | testactionToCreate = new Testaction(); | testactionToCreate.setTesterUsrID(user.getID()); | testactionToCreate.setValidatorUsrID(user.getID()); | } | | @IfInvalid(outcome=Outcome.REDISPLAY) | public String createTestaction() { | // do something and return an outcome | } The bean managing the dropdown-list (testcaseSelector): @Stateful | @Scope(ScopeType.SESSION) | @LoggedIn | @Name("testcaseSelector") | public class TestcaseSelection implements TestcaseSelector, Serializable { | @PersistenceContext(unitName = "aresDatabase") | private EntityManager em; | | @In(required=false) | private Release selectedRelease; | | @In(required=false) @Out(required=false) | private Testaction testactionToCreate; | | private Long lastSelectedReleaseID; | | @In(required=false) @Out(required=false, scope=ScopeType.SESSION) | private Testcase selectedTestcase; | | private List testcases; | | | public void valueChanged(ValueChangeEvent event) { | setSelectedTestcaseNumber((Long) event.getNewValue()); | if(selectedTestcase != null && testactionToCreate != null) { | testactionToCreate.setTObjID(selectedTestcase.getTObjID()); | testactionToCreate.setTCaseToken(selectedTestcase.getToken()); | testactionToCreate.setTCaseDescr(selectedTestcase.getDescr()); | } | } And the form: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | |
[jboss-user] [JBoss Seam] - Re: @Out frustration
I have this client vs. server error, too. I have to use client state saving, since if I use server state saving the login button doesn't work. Could you solve the problem? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976028#3976028 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976028 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Javassist errors with latest jboss
anonymous wrote : Would someone be kind enough to post a fixed javassit.jar Would be nice. I got this error while trying to override Object.clone(). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962441#3962441 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962441 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user