[JBoss Seam] - seam generate-entities with recursive table
by dacloutier@gmail.com
I need help.
I am new to seam, I am reading the book, and playing with seam gen.
I am having a problem with application generated by seam gen and I can't figure out how to manually fix it.
I am having a problem where as the seam generated app, which has a recursive table ( it can't add new child entries ) and I can't figure out how to manually fix it.
This is because the link to add the new child points to the same edit page that I am currently on, and goes back to the same parent entry....
Details:
I have a ReportSection class which has a Set<ReportSection> reportSections property and ReportSection parentReportSection property.
My ReportSectionEdit.xhtml page has a tab which lists the reportSections and has a "Add reportSection" button, as follows:
| <s:button id="addreportSection"
| value="Add reportSection"
| view="/ReportSectionEdit.xhtml"
| propagation="none">
| <f:param name="reportSectionId" value="#{reportSectionHome.instance.id}"/>
| <f:param name="reportSectionFrom" value="ReportSection"/>
| </s:button>
|
When I click on "Add reportSection" button, I just go back to the same page.
Any help is appreciated.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044343#4044343
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044343
19 years, 1 month
[JBoss Seam] - EvaluationExcepion for page-action
by mugwump
I'm getting a strange exception when I try to execute a page-action:
| javax.faces.el.EvaluationException: Exception while invoking expression #{resultsManager.selectResults}
|
| org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
| org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
| org.jboss.seam.core.Expressions$2.invoke(Expressions.java:148)
| org.jboss.seam.pages.Page.enter(Page.java:229)
| org.jboss.seam.core.Pages.enterPage(Pages.java:276)
| org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:276)
| org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:214)
| org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:56)
| org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:70)
| org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| java.lang.Thread.run(Thread.java:619)
|
This is the pageAction:
| <page view-id="/protected/examResults.xhtml"
| action="#{resultsManager.selectResults(examId)}">
| <param name="examId" />
| </page>
|
And this is the interface:
| public interface ResultsManager {
| public void selectResults(String examId);
| }
|
with a StatelessSessionBean named "resultsManager" implementing it.
This works fine on a windows-box where I develop, however it fails with the above exception on a linux-box where I deploy it. Anyone knows why this should not work?
I even tried to go back to a request-parameter and calling the method without a parameter, but this gives the same exception on linux (and works fine on the windows-box) - is it maybe something about the expression-language extensions??!? I'm currently cluelless and any hints are highly appreciated!!!
cheers
stefan
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044334#4044334
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044334
19 years, 1 month