Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-1320

a4j:commandLink loose styleClass attribute

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.1.3, 3.2.0
    • Component/s: None
    • Labels:
      None

      Description

      a4j:commandLink with styleClass doesn't render class attribute in resulting <a> element

        Gliffy Diagrams

          Activity

          Hide
          sergeyhalipov Sergey Halipov added a comment -

          Fixed for trunk. Revision 3850.

          Show
          sergeyhalipov Sergey Halipov added a comment - Fixed for trunk. Revision 3850.
          Hide
          ilya_shaikovsky Ilya Shaikovsky added a comment -

          Fix for 3.1.x. Do not forget to set resolution version

          Show
          ilya_shaikovsky Ilya Shaikovsky added a comment - Fix for 3.1.x. Do not forget to set resolution version
          Hide
          sergeyhalipov Sergey Halipov added a comment -

          Done. Committed revision 3858.

          Show
          sergeyhalipov Sergey Halipov added a comment - Done. Committed revision 3858.
          Hide
          tkuprevich Tsikhon Kuprevich added a comment -

          It's ok in trunk, but in branch the same class name is inserted twice:

          <style>
          .test1

          { text-decoration:line-through; }

          </style>
          <a4j:commandLink action="fixes" styleClass="test1">erte</a4j:commandLink>

          renders as:

          <a class="test1" href="#" id="j_id8:j_id10" name="j_id8:j_id10" onclick="A4J.AJAX.Submit('_viewRoot','j_id8',event,{'parameters':

          {'j_id8:j_id10':'j_id8:j_id10'}

          ,'actionUrl':'/rich1/pages/fixes.jsf'} );return false;" class="test1">erte</a>

          Which causes parsiing error in FireFox 2.x

          Show
          tkuprevich Tsikhon Kuprevich added a comment - It's ok in trunk, but in branch the same class name is inserted twice: <style> .test1 { text-decoration:line-through; } </style> <a4j:commandLink action="fixes" styleClass="test1">erte</a4j:commandLink> renders as: <a class="test1" href="#" id="j_id8:j_id10" name="j_id8:j_id10" onclick="A4J.AJAX.Submit('_viewRoot','j_id8',event,{'parameters': {'j_id8:j_id10':'j_id8:j_id10'} ,'actionUrl':'/rich1/pages/fixes.jsf'} );return false;" class="test1">erte</a> Which causes parsiing error in FireFox 2.x
          Hide
          sergeyhalipov Sergey Halipov added a comment -

          Done. Committed revision 4044.

          Show
          sergeyhalipov Sergey Halipov added a comment - Done. Committed revision 4044.
          Hide
          tkuprevich Tsikhon Kuprevich added a comment -

          verified, fixed

          Show
          tkuprevich Tsikhon Kuprevich added a comment - verified, fixed
          Hide
          jbalunas Jay Balunas added a comment -

          Part of a bulk update, all resolutions changed to done, please review history to original resolution type

          Show
          jbalunas Jay Balunas added a comment - Part of a bulk update, all resolutions changed to done, please review history to original resolution type

            People

            • Assignee:
              nbelaevski Nick Belaevski
              Reporter:
              dmorozov Denis Morozov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development