[richfaces-issues] [JBoss JIRA] (RF-12309) CDK: naming conventions to avoid necessity write all the FQNs of classes in Renderer template and Component stub

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Mon Jun 4 08:51:17 EDT 2012


Lukáš Fryč created RF-12309:
-------------------------------

             Summary: CDK: naming conventions to avoid necessity write all the FQNs of classes in Renderer template and Component stub
                 Key: RF-12309
                 URL: https://issues.jboss.org/browse/RF-12309
             Project: RichFaces
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: cdk
    Affects Versions: 4.2.0.Final
            Reporter: Lukáš Fryč


There are lot of bindings which needs to be manually hard-coded in order to make the component work:

Look at sample of the calendar component:
1. [Renderer template|https://github.com/richfaces/components/blob/4.2.2.20120513-Final/input/ui/src/main/templates/calendar.template.xml#L19]
2. [Component interface|https://github.com/richfaces/components/blob/4.2.2.20120513-Final/input/ui/src/main/java/org/richfaces/component/AbstractCalendar.java#L71]

----

What could follow naming conventions?

1. *Renderer template*

* {{<class>}} - use the package where the template resides in: {{calendar.template.xml}} -> {{CalendarRenderer}}
* {{<superclass}} - use the {{<class> + Base}}: {{CalendarRenderer}} -> {{CalendarRendererBase}}, if not exists, use {{org.richfaces.renderkit.RendererBase}}

2. *component* {{org.richfaces.component.AbstractCalendar}}

* component-type: {{org.richfaces.Calendar}}
* component-family: {{org.richfaces.Calendar}}
* generated class: {{org.richfaces.component.UICalendar}}
* renderer: {{org.richfaces.CalendarRenderer}}
* tag: {{@Tag(name = "calendar", handler = "org.richfaces.view.facelets.CalendarHandler")}}

Some definitions what need to be configured per component library: e.g. prefix for component type/family/renderer, etc.

Only classes which violates conventions would be necessary to configure specifically.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list