[
https://issues.apache.org/jira/browse/TOBAGO-2250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17772505#comment-17772505
]
Henning Nöth commented on TOBAGO-2250:
--------------------------------------
No, jsf.js_next_gen does not add the meta tag. The meta tag is rendered by
Tobago, but with every ajax response, the <update id='jakarta.faces.Resource'>
is updated.
The ajax response look like this:
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<partial-response id='j_id__v_0'>
<changes>
<update id='jakarta.faces.Resource'><![CDATA[
<script src='/js/demo.js' type='module'></script>
<link rel='stylesheet' href='/css/demo.css' type='text/css'/>
<link rel='stylesheet' href='/css/prism.css' type='text/css'/>
<link rel='stylesheet' href='/css/font-awesome.min.css' type='text/css'/>
<meta name='keywords' content='jsf, tobago, demo'/>
<link href='/image/feather.ico' rel='shortcut icon'/>
<link href='/image/feather.png' rel='apple-touch-icon'/>]]>
</update>
<update id='page:mainForm:outputAjax'><![CDATA[
<tobago-out id='page:mainForm:outputAjax' class='tobago-label-container
tobago-auto-spacing'><label for='page:mainForm:outputAjax'
class='col-form-label'>Output</label><span
class='form-control-plaintext'>a</span></tobago-out>]]>
</update>
<update
id='j_id__v_0:jakarta.faces.ViewState:1'><![CDATA[NTY3NDZmMjI5YTQ1NTZkMDAwMDAwMDAx]]>
</update>
<update id='j_id__v_0:jakarta.faces.ClientWindow:1'><![CDATA[-u7uozxdz3]]>
</update>
</changes>
</partial-response>
{code}
The <script> and the <link> tags are not duplicated, but the <meta> tag is. I
have to write a proper test for jsf.js_next_gen.
This is not an issue in Tobago 5 because the 'javax.faces.Resource' is replaced
with 'jakarta.faces.Resource' (but this is another issue).
> Ajax request adds a new meta tag
> --------------------------------
>
> Key: TOBAGO-2250
> URL: https://issues.apache.org/jira/browse/TOBAGO-2250
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: Core
> Affects Versions: 6.0.0-beta-1
> Reporter: Henning Nöth
> Assignee: Henning Nöth
> Priority: Critical
>
> With every ajax request, a
> {code:xml}
> <meta name="keywords" content="jsf, tobago, demo">
> {code}
> tag is added to <head>.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)