[richfaces-issues] [JBoss JIRA] (RF-13682) Stateless view: CSS stylesheets not included in head after form submit

Brian Leathem (JIRA) issues at jboss.org
Tue Jul 8 20:38:24 EDT 2014


     [ https://issues.jboss.org/browse/RF-13682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem updated RF-13682:
-------------------------------

    Comment: was deleted

(was: Disregard the comment below, I was confused.  I have since found a resolution to the issue.  I will delete this comment since it adds nothing of value to the conversation.

----

On further investigation, it seems that the _RestoreViewPhase#execute_ method believes the submission is a _postback_.  The view is then not created anew, despite the subsequemt response consisting of the full page html.

Whether or not the submission is a _postback_ is determined by the _[ResponseStateManagerImpl|https://github.com/jboss/mojarra/blob/2.2.7-jbossorg-1/jsf-ri/src/main/java/com/sun/faces/renderkit/ResponseStateManagerImpl.java#L82]_:
{code}
    public boolean isPostback(FacesContext context) {

        return context.getExternalContext().getRequestParameterMap().
              containsKey(ResponseStateManager.VIEW_STATE_PARAM);

    }
{code}


The _requestParameterMap_ contains the {{VIEW_STATE_PARAM}} value _stateless_.  It seems this was added in RF-13093.

[~lfryc] can you comment on the addition of this request parameter?  Since it's causing difficulties elsewhere, can you suggest an alternate resolution for RF-13093?)


> Stateless view: CSS stylesheets not included in head after form submit
> ----------------------------------------------------------------------
>
>                 Key: RF-13682
>                 URL: https://issues.jboss.org/browse/RF-13682
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.3.7
>         Environment: OpenSuse 13.1 x64
> OpenJDK 1.7.0_51
> Apache Tomcat 8.0.8
> JSF: org.glassfish:javax.faces:2.1.28
>            Reporter: Tony Cramer
>            Assignee: Brian Leathem
>             Fix For: 4.5.0.Alpha3
>
>         Attachments: rf-demo-skinning.zip, rf-demo-skinning_and_style.zip
>
>   Original Estimate: 4 hours
>  Remaining Estimate: 4 hours
>
> If view is stateless <f:view transient="true"...
> Issue 1. skinning.css is not included after submitting a form at all.
> Issue 2. Any other stylesheets manually included with h:outputStylesheet are not included in head but in body after submit.
> Maven project reproducing the issue attached.
> Please use "rf-demo-skinning_and_style.zip" - reproduces both issues.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the richfaces-issues mailing list