Annotation Type FindByParentPartialId


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface FindByParentPartialId
    Alternative FindBy annotation, which should only be used in page fragments. It searches by id, starting from the parent element, based on the id of the parent concatenated with value(). Sometimes, for example with appendTo="...", the child element is moved to somewhere else in the DOM. In this case you have to set searchFromRoot() to true.

    NOTE: If a sub-element under the parent does not have an ID but only a name you can use the name attribute to specify it and it will look for the name="xx" instead of ID.

    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String value
      ID of the component under the parent to find.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String name
      Name attribute to find instead of using the ID of the component.
      boolean searchFromRoot  
    • Element Detail

      • value

        String value
        ID of the component under the parent to find.
        Returns:
        the ID
      • name

        String name
        Name attribute to find instead of using the ID of the component.
        Returns:
        the name attribute or default "".
        Default:
        ""
      • searchFromRoot

        boolean searchFromRoot
        Default:
        false