[JBoss Seam] - ui:insert and setting values
by EricJava
Simple question: I'm defining a template which I want to display one of the defined items twice. For example, here's what the template looks like:
<ui:composition>
| <h2>Here it is the first time:</h2>
| <ui:insert name="groupA"/>
| <h2>And now we see it again:</h2>
| <ui:insert name="groupA"/>
| </ui:composition>
And that works correctly. Next step, I would like to have different settings within the template when I run it the second time. For example:
The file using the template:
(Some stuff)
|
| <ui:decorate template="/my-template.xhtml">
|
| <ui:define name="groupA">
| This content shows up always!
|
| <s:div rendered="{showFirstTime}">
| This div will show only when showFirstTime is true
| </s:div>
|
| <s:div rendered="{showSecondTime}">
| This div will show only when showFirstTime is true
| </s:div>
| </ui:define>
| </ui:decorate>
|
| (some more stuff)
Then I would like to make the template look like this:
<ui:composition>
| <h2>Here it is the first time:</h2>
|
| <ui:insert name="groupA">
| <ui:param name="showFirstTime" value="#{true}"/>
| <ui:param name="showSecondTime" value="#{false}"/>
| </ui:insert>
|
| <ui:insert name="groupA">
| <ui:param name="showFirstTime" value="#{false}"/>
| <ui:param name="showSecondTime" value="#{true}"/>
| </ui:insert>
|
| <h2>And now we see it again:</h2>
| <ui:insert name="groupA"/>
| </ui:composition>
But that doesn't work. The value set by ui:param doesn't show up.
Any ideas on how to do this? I'm obviously missing something with Facelets here. Is there some tag to set a value in the page context? That seems like what I want to do, but <ui:param> (and f:param) don't do it.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125864#4125864
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125864
18 years, 2 months
[JBoss Seam] - Seam & JBPM (WebConsole)
by mjung85
Hi,
i'm using JBoss Seam 1.2.1. I want to use JBPM Business Processes (not only for pageflow).
Unfortunately i have found not so much documentation about that sceneria. In the Seam reference the JBPM part is very small. Additionally i have the JBoss Seam book of Michael Juntao Yuan which is very good about Seam, but the JBPM part isn't big.
1. Where can i get good documentation about the usage of JBPM in Seam (especially for business process and not only for pageflow definition)?
2. JBPM standalone has a Web Console to access the JBPM engine. I can't find a Web Console in Seam, that allows me to access the JBPM engine in Seam. Where can i find it?
Currently i'm doing a kind of reverse engineering with the dvd-store example, where business processes are used. This is very slow and not very satisfying.
Thanks four your help!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125860#4125860
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125860
18 years, 2 months
[EJB/JBoss] - EJB Passivation Time
by JEFFASTOREY
Hi, I've deployed an EJB (in a .ear file using EJB3 annotations) to my JBoss server, and for some reason, they always take 10 minutes of inactivity to passivate (and then I let the server run for another 12 hours and the bean was still not removed from the container completely).
I'm running the default configuration and I've modified the JBoss standardjboss.xml file (in server\default\conf) that relates to the container configuration to look as follows:
<container-configuration>
| <container-name>Standard Stateful SessionBean</container-name>
| <call-logging>false</call-logging>
| <invoker-proxy-binding-name>stateful-unified-invoker</invoker-proxy-binding-name>
| <container-interceptors>
| <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
| <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
| <!-- CMT -->
| <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
| <interceptor transaction="Container">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
| <interceptor transaction="Container">org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor</interceptor>
| <!-- BMT -->
| <interceptor transaction="Bean">org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor</interceptor>
| <interceptor transaction="Bean">org.jboss.ejb.plugins.TxInterceptorBMT</interceptor>
| <interceptor transaction="Bean">org.jboss.ejb.plugins.CallValidationInterceptor</interceptor>
| <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
| <interceptor>org.jboss.ejb.plugins.SecurityInterceptor</interceptor>
| </container-interceptors>
| <instance-cache>org.jboss.ejb.plugins.StatefulSessionInstanceCache</instance-cache>
| <persistence-manager>org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager</persistence-manager>
| <container-cache-conf>
| <cache-policy>org.jboss.ejb.plugins.LRUStatefulContextCachePolicy</cache-policy>
| <cache-policy-conf>
| <min-capacity>50</min-capacity>
| <max-capacity>1000000</max-capacity>
| <remover-period>30</remover-period>
| <max-bean-life>30</max-bean-life>
| <overager-period>30</overager-period>
| <max-bean-age>30</max-bean-age>
| <resizer-period>5</resizer-period>
| <max-cache-miss-period>5</max-cache-miss-period>
| <min-cache-miss-period>1</min-cache-miss-period>
| <cache-load-factor>0.75</cache-load-factor>
| </cache-policy-conf>
| </container-cache-conf>
| <container-pool-conf>
| <MaximumSize>100</MaximumSize>
| </container-pool-conf>
| </container-configuration>
I would think the beans should now passivate within 30 seconds of inactivity.
Can anyone explain why passivation still takes 10 minutes or why the beans are never removed from the container? Thanks.
Also, I am using the default jboss configuration and just starting it with bin/run.bat script.
Jeff
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125859#4125859
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4125859
18 years, 2 months