[JBoss Seam] - Re: selectOneMenu and commandButton conflict
by grdzeli_kaci
"petemuir" wrote : #{application.name} references a String, you are trying to set it with a Application object. Likewise for language. Read up on JSF converters and what they do. And take a look at the EntityConverter on the wiki as it does what you are trying to do for you...
hi again,
for background i read JSF converters,
then i go to wiki for SeamEntityConverter (http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamEntityConverter)
i download zip file ant tryed to understand.
after all i deside to do my job.
1.i added xmlns:ec="http://jboss.com/products/seam/entityconverter/taglib" into my facelet. and change selectonemenu component tag like this :
| <s:decorate>
| <h:selectOneMenu styleClass="font_style" value="#{application.name}">
| <s:selectItems value="#{applications.resultList}" var="name" label="#{application.name}"/>
| <ec:convertEntity entityClass="com.magti.seam.beans.billAdmin.Application"/>
| </h:selectOneMenu>
| </s:decorate>
|
2. i modifyed my component.xml file :
| <framework:entity-query name="applications" ejbql="select a from Application a" />
| <framework:entity-home name="applicationHome" entity-class="com.magti.seam.beans.billAdmin.Application"/>
| <factory name="application" value="#{applicationHome.instance}" />
|
3. i put entityconverter.jar file into my WEB-INF/lib.
but page did not load :
| Value is no String (class=com.magti.seam.beans.billAdmin.Application, value=com.magti.seam.beans.billAdmin.Application[applicationId=4]) and component _id17:_id26with path: {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /login.xhtml][Class: javax.faces.component.html.HtmlForm,Id: _id17][Class: org.jboss.seam.ui.UIDecorate,Id: _id25][Class: javax.faces.component.html.HtmlSelectOneMenu,Id: _id26]} does not have a Converter
|
is there any mistake i did ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019724#4019724
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019724
19Â years, 2Â months
[JBoss Seam] - Re: Seam Authenticator and GlassFish
by wstrange
Did the glassfish fix for web.xml actually get commited to cvs? I can't see anything related to declaring the Authenticator.
This is what I added to my web.xml:
<ejb-local-ref>
| <ejb-ref-name>SeamBookingOpenSSO/AuthenticatorAction/local</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local-home/>
| <local>org.jboss.seam.example.booking.Authenticator</local>
| <ejb-link>AuthenticatorAction</ejb-link>
| </ejb-local-ref>
I did not modify the AuthenticatorAction from the version in cvs. The other poster indicated this needs to be changed to a stateless bean?
I'm confused....
The error I am getting is:
/home.xhtml @24,85 value="#{identity.username}": Target Unreachable, identifier 'identity' resolved to null
| javax.el.PropertyNotFoundException: /home.xhtml @24,85 value="#{identity.username}": Target Unreachable, identifier 'identity' resolved to null
|
I am running on glassfish 9.0 UR1 - build 48 (the latest production build)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019720#4019720
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019720
19Â years, 2Â months
[JBoss Seam] - what is concurrent-request-timeout
by mnrz
Hello
actually I have two question
one is the same as title, what is the concurrent-request-timeout in components.xml and what happen if it being increased or decreased?
second, I have a session bean with Conversation scope and it has an action listener method. in xhtml file I have a button which call that action listener.
this method builds an Excel format file from the given data. if the data is a little it works fine but if the records are more than say,10000 records a strange exception is thrown. I said strange, because it is not about the data proccessing it's something about JSF, it say the method not found however, the logs show me the method is started to proccessing the data??!! and after this exception the cursor exit the method and converting is uncopleted.
| ERROR Servlet.service() for servlet Faces Servlet threw exception
| javax.faces.el.MethodNotFoundException: /pages/main/resultQuery.xhtml @34,28 actionListener="#{exportData.expo
| rt}": Method not found: ExportDataAction:5c4o04d-ph7jai-eyfckqo4-1-eyfd8jd9-7.export(javax.faces.event.ActionE
| vent)
| at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:71)
| at javax.faces.component.UICommand.broadcast(UICommand.java:89)
| at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
| at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
| at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
| at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
| 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:100)
| 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:147)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:29)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.seam.servlet.SeamCharacterEncodingFilter.doFilter(SeamCharacterEncodingFilter.java:41)
| 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.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:856)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.ja
| va:744)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
| at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019719#4019719
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019719
19Â years, 2Â months
[Clustering/JBoss] - Re: Load Balancing using client Proxy
by nirajal
I have already used Xdoclet for configuring clustered to true in jboss.xml. But that's not exactly the problem. I will explain the problem with an example:
1) I have three machines in cluster namely A, B and C.
2) IP Address for Machine A is 192.168.10.1, B is 192.168.10.2 and for C is 192.168.10.3.
3) All the three machines A, B and C are in cluster. EJB's are configured with clustered set to true and deployed on all the 3 machines.
4) I have a JNDI Client machine. I am doing lookup using HA-JNDI.
5) I specify the IP Address for access as 192.168.10.1 and port 1100.
6) I configure Round Robin Load Balancing.
7) In case an EJB is not there specific on one machine it will be fetched from the other.
The problem is that in case Machine A(192.168.10.1) is down then I will not be able to do the lookup for EJB's. I want to have the access mechanism such that the lookup is generic. In case Machine A is down lookup should happen from Machine B or Machine C. I basiclly want some clarity on the access approach so that the lookup is generic.
Any clarity on the approach would be really helpful.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019709#4019709
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4019709
19Â years, 2Â months