Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Currently component referencing with the JSF API is very limited.
      Keywords can currently only be used with f:ajax and not for e.g. outputLabel "for" attribute.
      Also keywords cant be combined and we dont even have many keywords.

      For PrimeFaces, i created a small modular API to enhance the search alogorithm as you can read here:
      http://blog.primefaces.org/?p=2740

      Noteable features are:

      • keywords can be used for all components
      • combinable keywords like @composite:@parent or @form:myId
      • currently a (limited) pluggable framework to allow new keywords for endusers

      For the JSF API, a new artifact for resolving expression for findComponent (like ViewHandler etc.) would be great and can easily be enhanced by component libraries.
      Maybe something like "ComponentExpressionResolver".

      If its somehow possible, i would like to help to create and finalyze the API.

      Sorry for Issue 1237 - please close it.

        Activity

        Hide
        Ed Burns added a comment -

        Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

        Show
        Ed Burns added a comment - Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.
        Hide
        Ed Burns added a comment -

        This area is very sensitive to performance problems.

        Show
        Ed Burns added a comment - This area is very sensitive to performance problems.
        Hide
        tandraschko added a comment - - edited

        The performance won't be affected for existing applications as the new search expression logic is only used if the whole expression string contains a "@".
        Some expressions are faster, some are slower but the overall performance is very good and i did a lot of optimization for it.

        Would great to see it in the next API release. BootsFaces implemented a similiar API.
        As i said, i would take care of it and would contribute my ideas to the JSF API.

        Show
        tandraschko added a comment - - edited The performance won't be affected for existing applications as the new search expression logic is only used if the whole expression string contains a "@". Some expressions are faster, some are slower but the overall performance is very good and i did a lot of optimization for it. Would great to see it in the next API release. BootsFaces implemented a similiar API. As i said, i would take care of it and would contribute my ideas to the JSF API.
        Hide
        stephanrauh added a comment - - edited

        I agree with Thomas. I consider the advanced search expressions very useful. So useful, that I implemented them in BootsFaces 0.8.0 myself. As for the performance considerations: granted, we should keep the performance in mind. However, I'm using the PrimeFaces search expressions for years now without noting a performance penalty. In particular, the expressions I use most frequently - @parent, @next and @previous - are implemented in a very efficient way.

        Show
        stephanrauh added a comment - - edited I agree with Thomas. I consider the advanced search expressions very useful. So useful, that I implemented them in BootsFaces 0.8.0 myself. As for the performance considerations: granted, we should keep the performance in mind. However, I'm using the PrimeFaces search expressions for years now without noting a performance penalty. In particular, the expressions I use most frequently - @parent, @next and @previous - are implemented in a very efficient way.
        Hide
        balusc added a comment -

        This is one of the things I'd like to see in JSF 2.3 as well. Community contribution is very welcome.

        Show
        balusc added a comment - This is one of the things I'd like to see in JSF 2.3 as well. Community contribution is very welcome.

          People

          • Assignee:
            Unassigned
            Reporter:
            tandraschko
          • Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated: