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

Volodymyr Siedlecki edited comment on MYFACES-4624 at 8/15/25 2:48 PM:
-----------------------------------------------------------------------

[~tandraschko] 

There's a regression caused by this change.

If you reference a component from another page, it will also fail to be 
resolved.

See https://issues.apache.org/jira/browse/MYFACES-4695


was (Author: volosied):
[~tandraschko] 

There's a regression caused by this change. 

If you reference a component from another page, it will also fail to be 
resolved.

a.xhtml
{color:#cccccc}...
<f:ajax 
{color}{color:#9cdcfe}render{color}{color:#cccccc}={color}{color:#ce9178}"test"{color}{color:#808080}
 />
...

<ui:define name="include_b">
  <ui:include src="b.xhtml"></ui:include>
</ui:define>
{color}

b.xhtml
{color:#808080}<{color}{color:#569cd6}ui:composition{color}{color:#cccccc} 
{color}{color:#9cdcfe}xmlns{color}{color:#cccccc}={color}{color:#ce9178}"http://www.w3.org/1999/xhtml"{color}
{color:#cccccc} 
{color}{color:#9cdcfe}xmlns:h{color}{color:#cccccc}={color}{color:#ce9178}"jakarta.faces.html"{color}
{color:#cccccc} 
{color}{color:#9cdcfe}xmlns:ui{color}{color:#cccccc}={color}{color:#ce9178}"jakarta.faces.facelets"{color}{color:#808080}>{color}
{color:#cccccc} 
{color}{color:#808080}<{color}{color:#569cd6}h:form{color}{color:#cccccc} 
{color}{color:#9cdcfe}id{color}{color:#cccccc}={color}{color:#ce9178}"test"{color}{color:#808080}>{color}
{color:#cccccc} Hello{color}
{color:#cccccc} 
{color}{color:#808080}</{color}{color:#569cd6}h:form{color}{color:#808080}>{color}
{color:#cccccc} 
{color}{color:#808080}</{color}{color:#569cd6}ui:composition{color}{color:#808080}>{color}

> SearchExpressions must fail when component in viewroot is not resolvable
> ------------------------------------------------------------------------
>
>                 Key: MYFACES-4624
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4624
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.3.10, 3.0.2, 2.3-next-M8, 4.0.1
>            Reporter: Thomas Andraschko
>            Assignee: Thomas Andraschko
>            Priority: Minor
>             Fix For: 2.3.11, 3.0.3, 4.0.2, 2.3-next-M9, 4.1.0-RC1
>
>
> when using something like:
> ```
> <h:form id="mainForm">
>      <h:inputText id="input"></h:inputText>
> </h:form>
> <f:ajax render=":input"/>
> ```
> the result was that it was resolved to "j_id__v_0" instead of throwing a 
> ComponentNotFoundException
> ":mainForm:input" would be the right expression



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

Reply via email to