a4j:commandButton returning from an action method loses css-styles

94 views Asked by At

I'm using Mojarra 2.1 and RichFaces.

I have the following action method:

public String doSave() {
    //do some
    return "someView";
}

invoked by cliccking the

<a4j:commandButton action="#{theBean.doSave}" />

and the view-file someView.jspx. But after the action method has invoked I'm redirected to the appropriate view, but lose all css-styles in that view. Actually, the head tag of the page is empty:

<head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>

The someView page bounded to a session-scoped bean.

I have really no idea about what it can be tied with? Need some advice.

BTW, it works perfectly fine with h:commandButton. Is it a richFaces bug?

0

There are 0 answers