[richfaces-issues] [JBoss JIRA] (RF-12130) missing javascript delimiter

Brian Leathem (JIRA) jira-events at lists.jboss.org
Tue Apr 3 13:43:47 EDT 2012


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

Brian Leathem updated RF-12130:
-------------------------------

    Steps to Reproduce: 
Click two times on link. Second request doesn't contain param javax.faces.ViewState.

{code}
<h:form>
    <rich:panel>
        <p>panel</p>
        <rich:tooltip>
            <span>test</span>
        </rich:tooltip>
    </rich:panel>
    <script>
        (1==2)? 'a':'b';
    </script>
    <h:commandLink value="render">
        <f:ajax render="@form"/>
    </h:commandLink>
</h:form>
{code}

  was:
<h:form>

			<rich:panel>
				<p>
					panel
				</p>
				<rich:tooltip>
					<span>test</span>
				</rich:tooltip>
			</rich:panel>
			<script>
				(1==2)? 'a':'b';
			</script>
			<h:commandLink value="render">
				<f:ajax render="@form"/>
			</h:commandLink>

		</h:form>

Click two times on link. Second request dosen't contain param javax.faces.ViewState.


    
> missing javascript delimiter
> ----------------------------
>
>                 Key: RF-12130
>                 URL: https://issues.jboss.org/browse/RF-12130
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component
>    Affects Versions: 4.2.0.Final
>         Environment: all
>            Reporter: wojtek k
>
> delimiter ";" is missing when JSObject (JSObject.java) is used to render js scripts.
> For example with myfaces-2.1.6
> {code}
> <script type="text/javascript"><!--
> new RichFaces.ui.Tooltip("j_id_5:j_id_8",{"ajax":{"incId":"1"} ,"target":"j_id_5:j_id_6","offset":[10,10] } )
> //--></script></span></div></div>
> 	<script><!--
> 		(1==2)? 'a':'b';
> //--></script>
> {code}
> When this sequence occurs in  html markup everything is broken. javax.faces.ViewState cannot be updated (by js) after ajax response (by js) contains 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list