You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Melloware (Jira)" <de...@myfaces.apache.org> on 2024/04/16 18:51:00 UTC

[jira] [Commented] (MYFACES-4624) SearchExpressions must fail when component in viewroot is not resolvable

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

Melloware commented on MYFACES-4624:
------------------------------------

I just tested with 2.3-next-M9-SNAPSHOT and can confirm its fixed `Caused by: javax.faces.component.search.ComponentNotFoundException: Cannot find component for expression ":subview1:txtString" referenced from "frmTest:j_id_k".`

> 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)