Uploaded image for project: 'MyFaces Tobago'
  1. MyFaces Tobago
  2. TOBAGO-1737

Dynamic CSS in <tc:style> support inside of <tc:sheet> and <ui:repeat>

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0
    • Core
    • None

    Description

      Example:

      <ui:repeat value="#{bean.entries}" var="entry">
        <tc:panel>
          <tc:style customClass="#{entry.author == request.remoteUser ? 'self' : 'notself'}"/>
        </tc:panel>
      </ui:repeat>
      

      Currently the customClass will only evaluated one, so the style class would be the same for all entries.

      The improvement would be, that the evaluation will be done for each component, to give each component it individual style depending on its data.

      Attachments

        Issue Links

          Activity

            People

              lofwyr Udo Schnurpfeil
              lofwyr Udo Schnurpfeil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: