Sometimes after a restart of the JBoss Server, accessing our Seam based 
application results in a file download dialog instead of the redirection to the 
login page. Restarting the server again solved this usually.

To get a better understanding whats going on, I activated Charles in my Firefox 
and get the attached session Infos. The redirect happens and the page data will 
be send, but the last response is this:

<!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.ajax4jsf.org/rich";
  |                 template="layout/template_no_sidebar.xhtml">
  | 
  | <ui:define name="main">
  | 
  |     <h:form id="login">
  |     
  |         <rich:panel styleClass="loginPanel">
  |             <f:facet name="header">Login</f:facet>
  |     
  |             <p>Bitte melden Sie Sich an:</p>
  |         
  | <s:decorate template="/layout/display.xhtml">
  | <ui:define name="label">Username</ui:define>
  | <h:inputText id="username" value="#{identity.username}"/>
  | </s:decorate>
  | 
  | <s:decorate template="/layout/display.xhtml">
  | <ui:define name="label">Passwort</ui:define>
  |                     <h:inputSecret id="password" 
value="#{identity.password}"/>
  | </s:decorate>
  | 
  | <s:decorate template="/layout/display.xhtml">
  | <ui:define name="label"></ui:define>
  |                     <h:selectBooleanCheckbox id="rememberMe" 
value="#{identity.rememberMe}"/>
  |                     <h:outputLabel for="rememberMe">Auf diesem Computer 
merken</h:outputLabel>
  | </s:decorate>
  |                 
  | <div class="actionButtons">
  | <h:commandButton value="Login" action="#{identity.login}"/>
  | </div>
  |           
  |         </rich:panel>
  |             
  |     </h:form>
  | 
  |  </ui:define>
  | </ui:composition>
  | 
As you can see, the server sends the source instead of a rendered page.

Any ideas what's going on?

Used environment: JBoss AS 4.0.5.GA + EJB 3, Seam 1.2.1.GA, Java 5, openSUSE 
10.2 (64bit)
Browser: Firefox 2 (Linux, Mac & Windows), IE 7 (XP SP 2)

Stephan

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068448#4068448

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068448
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to