[JBoss Seam] - Wildcard view-id descriptions for conversation switcher
by jacob.orshalick
I have recently run into a requirement where it would be nice to have descriptions applied to wildcard view-ids. For example, if I have the following:
...
| <page view-id="/section/*" conversation-required="true">
| <description>Section 1</description>
| ...
| </page>
| ...
Section 1 would be the description for all pages in /section/* unless specified otherwise in a higher precedence page definition.
Currently, the FacesManager asks the Page instance directly for a description rather than looking at the page stack (as the login-required, no-conversation-view-id, etc does). This means that every view-id under /section/* must have a description (even if they all have the same page definition). The behavior I require can be accomplished by accessing protected methods (which is certainly not desirable for backwards compatibility), but it is possible.
Would there be interest in having this supported directly by Seam? If so, I would be happy to provide a JIRA issue with the patch. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115726#4115726
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115726
17 years
[Tomcat, HTTPD, Servlets & JSP] - Http Session expiration
by epleisman
Scenario:
2 non-clustered JBoss servers.
Stateless sessions.
We have a development and staging duplication of servers as well as a hosted production environment.
The only difference in our production environment is our ISP uses a different firewall and hardware load balancer.
We are seeing the sessions timeout before they are scheduled to timeout ( a 4 hour timeout timing out after 1 hour ). The session is being set in the application using session.setMaxInactiveInterval(clientTimeout * 60);
We suspect the firewall is possibly killing the sessions due to TCP session inactivity... possibly...
QUESTION:
Has anyone seen such a scenario?
If so, how did you resolve?
If we suspect incorrectly, is there something we could be overlooking which could be expring the sessions? As we said - same config and code deployment, works properly in other 2 envisonments.
Please advise.
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115715#4115715
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115715
17 years
[JBoss jBPM] - number of swimlanes retrieved by taskMgmntInstance.getSwimla
by Marc321a
Hi all,
Does anybody know how it comes that the number of swimlanes reported by TaskMgmtInstance is not constant, and how to get swimlanes when they are not reported by TaskMgmtInstance? After adding an Action with the following code to a processdefinition:
| ProcessInstance pi = executionContext.getProcessInstance();
| if (pi != null) {
| TaskMgmtInstance taskMgmtInstance = pi.getTaskMgmtInstance();
| if (taskMgmtInstance != null) {
| Map swimlanes = taskMgmtInstance.getSwimlaneInstances();
| if (swimlanes != null) {
| int nSwimlanes = swimlanes.size();
| log.info("ProcessInstance contains " + nSwimlanes + " swimlanes.");
| for (Iterator iterator = swimlanes.values().iterator(); iterator.hasNext();) {
| SwimlaneInstance swimlane = (SwimlaneInstance) iterator.next();
| log.info("Swimlane: " + swimlane.getName());
| }
| } else {
| log.info("Swimlane instances is null");
| }
| } else {
| log.info("TaskManagementInstance is null.");
| }
| } else {
| log.info("ProcessInstance is null.");
| }
|
The number of swimlanes varied and getSwimlaneInstances() returned null at some point, logging details:
| 2007-12-27 15:35:13,812 INFO [com.syfact.workflow.jbpm.handler.LoggingActionHandler] Swimlane instances is null
| ...
| 2007-12-27 15:35:45,265 INFO [com.syfact.workflow.jbpm.handler.LoggingActionHandler] ProcessInstance contains 1 swimlanes.
| ...
| 2007-12-27 15:35:45,265 INFO [com.syfact.workflow.jbpm.handler.LoggingActionHandler] ProcessInstance contains 2 swimlanes.
|
Please say so if you need more information. We would like to call setActorId() on a swimlane but can't retrieve it now.
thanks for the help,
Marc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115713#4115713
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115713
17 years
[JBoss Seam] - Seam Remoting failing on Firefox 2.0
by cvigouroux
Hi, I'm having some trouble to use Seam Remoting on Firefox. My example works fine on IE 6, but when debugging within firebug I catch the following exception :
[Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: :: anonymous :: line 1" data: no]
Here are the versions :
- Firefox 2.0.0.11
- Seam 2.0.1CR1
Did anybody have some trouble with this setup ? Did I something wrong ?
Here is my example code :
---------------------------------------------------------------------------------
"Remote" interface
---------------------------------------------------------------------------------
@Local
public interface HelloAction {
@WebRemote
public String getAllIsoCodes();
@WebRemote
public List getPays();
}
---------------------------------------------------------------------------------
XHTML page
---------------------------------------------------------------------------------
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
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:rich="http://richfaces.org/rich"
xmlns:a="http://richfaces.org/a4j" template="layout/template.xhtml">
<ui:define name="body">
//<![CDATA[
function getAllIsoCodes() {
Seam.Component.getInstance("helloAction").getAllIsoCodes(getAllIsoCodesCallback);
}
function getAllIsoCodesCallback(result) {
alert(result);
}
function listePays() {
Seam.Component.getInstance("helloAction").getPays(listePaysCallback);
}
function listePaysCallback(result) {
alert(result[0].getCdpayiso());
}
// ]]>
<h:messages globalOnly="true" styleClass="message" />
<rich:panel>
<f:facet name="header">helloAction</f:facet>
<h:form id="helloActionForm">
All Iso Codes
Countries List
</h:form>
</rich:panel>
</ui:define>
</ui:composition>
Thanks for your answers !
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4115708#4115708
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4115708
17 years