[JBoss Seam] - Re: How to end converstation when user doesn't cooperate?
by matt.drees
"tynor" wrote :
| Recall that these are seam-gen generated views and Home classes -- and they are indeed generated as conversational:
|
| | <page no-conversation-view-id="/WidgetList.xhtml"
| | login-required="true">
| | <begin-conversation join="true"/>
| | <action execute="#{widgetHome.wire}"/>
| | ...
| |
|
That code ought to be in WidgetEdit.page.xml, which is for the edit page, which is conversational. I think you'll find the WidgetList.page.xml file doesn't start a conversation.
I agree that if you are going to be editing a widget, you want it to happen in a new conversation. And I'm pretty sure seamgen does this correctly.
In seamgen, if you're on an edit screen (in a conversation), the links to get out (either the menu or the cancel/done button) either end the conversation (cancel/done) or don't propagate it (menu.xhtml links). So, the conversation won't be re-used the next time you edit or create a new widget.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078091#4078091
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078091
18Â years, 8Â months
[JBoss Seam] - select multiple entities for datatable
by hispeedsurfer
Have used several attempts to display data from multiple entities without success
List reslist = entityManager.createQuery("select qr.gpnum, csy.name from QueryResult qr, Csy20oats csy where qr.gpnum=csy.y20gpnum").getResultList();
| return reslist;
<rich:dataTable id="entitylist" var="results" value="#{gmBean.resultList}">
| <h:column>
| <f:facet name="header">name</f:facet>
| #{results.name}
| </h:column>
| <h:column>
| <f:facet name="header">gpnum</f:facet>
| #{results.gpnum}
| </h:column>
|
| </rich:dataTable>
display data from only one entity - no problem
List reslist = entityManager.createQuery("select qr from QueryResult qr, Csy20oats csy where qr.gpnum=csy.y20gpnum").getResultList();
| return reslist;
Also have used ListDataModel, but it's the same.
Is it possible to display data from multiple entities and if 'yes', what I have to do?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078086#4078086
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078086
18Â years, 8Â months
[JBoss Seam] - h:messages renderer or firefox bug?
by tony.herstellï¼ gmail.com
When using markup as such:
| <div id="template_global_messages_area">
| <center>
| <h:messages errorClass="error" warnClass="warn" infoClass="info" globalOnly="true" layout="table" />
| </center>
| </div>
|
with css as such:
|
| /* GLOBAL MESSAGES */
| #template_global_messages_area {
| margin-top: -5px;
| text-align: center;
| width: 100%;
| background-color: rgb(81, 81, 81);
| padding-top: 2px;
| padding-bottom: 2px;
| }
|
|
| .info {
| text-align: left;
| color: rgb(135 206 250);
| }
|
I get markup delivered as such:
| <div id="template_global_messages_area">
| <center><table><tr class="info"><td> You have the following Role(s):Administrator. </td></tr><tr class="info"><td> Login Successful </td></tr></table>
|
| </center>
| </div>
|
| |
| |
| | It appears that Firefox doesn't like the class="info" on the tr wheras IE is tolerent...
| |
| | Is this a bug with the h:messages renderer? Should it put the style on the td?
| | Or is firefox buggy?
| |
| |
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078084#4078084
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078084
18Â years, 8Â months
[JBoss Seam] - seam-gen and hibernate tools! Target Unreachable, identifier
by dashti
Hi there !
I wanted to generate my entites automatically from my database !
I used jboss-seam-2.0.0.BETA1 , jboss-4.2.1.GA, JBossTools-200706241629-nightly-ALL-win32.
I had 2 ways:
1. I used hibernate tools reverse engineering to do this approach!
I get the lastest dev Jboss IDE from the eclipse update center
and do the tutorial follow the flash ,
http://www.jboss.com/products/seam/captivate/SeamHBTools.swf
there was a big problem that there was no longer @jboss.seam.annotations.IfInvalid in the jboss-seam.jar. and after deleting all references to it, it doesn't work either !
how can I get it work ??!?
2. after that I used Seam Gen:
first of all , I made a new project, and the I used generate entites, it worked properly, but when I run the project, I can login, and after logging in, I go to one of the xyzList pages, and after trying to use Create New row or Search the table, I encounter this exeption:
so now i cannot ran this tutorial ,
maybe this tutorial cannot work in the lastest Jboss IDE or something i do wrong .
Exception during request processing:
| Caused by javax.el.PropertyNotFoundException with message: "Target Unreachable, identifier 'humansHome' resolved to null"
|
| org.jboss.el.parser.AstValue.getTarget(AstValue.java:38)
| org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
| org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
| org.jboss.seam.core.Expressions$2.invoke(Expressions.java:174)
| org.jboss.seam.navigation.Page.preRender(Page.java:275)
| org.jboss.seam.navigation.Pages.preRender(Pages.java:292)
| org.jboss.seam.jsf.SeamPhaseListener.preRenderPage(SeamPhaseListener.java:541)
| org.jboss.seam.jsf.SeamPhaseListener.beforeRender(SeamPhaseListener.java:473)
| org.jboss.seam.jsf.SeamPhaseListener.beforeServletPhase(SeamPhaseListener.java:146)
| org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:116)
| com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:222)
| com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
| org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
| org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
| org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:40)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
| org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
| org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
| org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
| org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| java.lang.Thread.run(Unknown Source)
|
|
and I couldn't find any help all over the world wide web !!!
please help me ! please !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078081#4078081
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078081
18Â years, 8Â months
[JBoss Seam] - Re: How to end converstation when user doesn't cooperate?
by tynor
My last reply prompted me to confirm that the following button does in fact reset the id in the home class:
| <s:div styleClass="actionButtons" rendered="#{empty from}">
| <s:button view="/WidgetEdit.xhtml"
| id="create"
| value="Create widget">
| <f:param name="widgetWidgetId"/>
| </s:button>
| </s:div>
|
You'd think that that means that setWidgetWidgetId() would get called with null (which would in turn call setId(null) and reset the instance to null). In fact, it's never called! So maybe my problems are not conversational so much as due to the fact that the mechanism for setting id is broken or otherwise not being invoked. Is there something wrong with the above? Can I pass a null explicitly?
I've tried
| <f:param name="widgetWidgetId" value="#{null}"/>
|
but my breakpoint in setId() is never called for my Create Button...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078080#4078080
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078080
18Â years, 8Â months