[ 
https://issues.apache.org/jira/browse/MYFACES-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17844642#comment-17844642
 ] 

Melloware commented on MYFACES-4378:
------------------------------------

[~werpu] yes i don't think its your TS I was just wondering what s weird about 
the issue is that Myfaces is sending the script back in both 
`javax.faces.Resource` and in `EVAL` sections which to me is the bug.  It 
should only be in the `<eval>` section in this scenario.

 
{code:java}
<?xml version="1.0" encoding="UTF-8"?>
<partial-response id="j_id__v_0">
        <changes>
                <update id="javax.faces.Resource"><![CDATA[
            console.log('hi');
        ]]></update>
                <update id="j_id_9:acSimple"><![CDATA[<ul 
class="ui-autocomplete-items ui-autocomplete-list ui-widget-content ui-widget 
ui-corner-all ui-helper-reset" role="listbox"><li id="j_id_9:acSimple_item_0" 
class="ui-autocomplete-item ui-autocomplete-list-item ui-corner-all" 
data-item-label="Result 1" data-item-value="Result 1" data-item-class="">Result 
1</li><li id="j_id_9:acSimple_item_1" class="ui-autocomplete-item 
ui-autocomplete-list-item ui-corner-all" data-item-label="Result 2" 
data-item-value="Result 2" data-item-class="">Result 2</li><li 
id="j_id_9:acSimple_item_2" class="ui-autocomplete-item 
ui-autocomplete-list-item ui-corner-all" data-item-label="Result 3" 
data-item-value="Result 3" data-item-class="">Result 3</li></ul>]]></update>
                <update 
id="j_id__v_0:javax.faces.ViewState:1"><![CDATA[YTFlMDk1NzRjYzBmMTlmYjAwMDAwMDAx]]></update>
                <eval><![CDATA[console.log('hi');]]></eval>
        </changes>
</partial-response> {code}

> onloadScript not rendering with non ajax command button if jstl type tag c:if 
> is present on the page
> ----------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-4378
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4378
>             Project: MyFaces Core
>          Issue Type: Task
>    Affects Versions: 2.3.10, 2.3-next-M8, 4.0.2, 4.1.0-RC1
>            Reporter: Thomas Andraschko
>            Assignee: Thomas Andraschko
>            Priority: Minor
>         Attachments: pf-11780.zip, test.7z
>
>
> See https://github.com/omnifaces/omnifaces/issues/366



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to