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

CDK: generate get* method for Boolean and is* for boolean expression

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 4.2.0.Final
    • Fix Version/s: 4.3.0.M1
    • Component/s: cdk
    • Labels:
      None

      Description

      Generate both "get..." and "is..." method for Boolean and boolean attributes

      If you have an attribute like :

      @Attribute
      abstract public boolean isClosable();
      

      This will generate a "isClosable()" method of course. But, then, trying to access it in a template like :

      <c:if test="#{alert.closable}">
      

      Will crash since JSF try to call the "getClosable()" method. The workaround is to write :

      <c:if test="#{alert.isClosable()}">
      

      But it would be nicer if the "geClosable()" method was generated in the same time of the "isClosable()" method.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lfryc Lukáš Fryč
                  Reporter:
                  paul.dijou Paul Dijou
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: