facebook

Faces-config editor denies multiple usage of renderer type

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #289124 Reply

    Stephan Anft
    Member

    Hi everyone,

    I have just figured out a problem in the JSF faces-config editor of MyEclipseIDE 6.5. Using the “gui” editor, it is not possible to define two renderer elements in a renderer kit with an identical renderer type. The wizard denies this by showing the error message that the renderer type has to be unique. In fact, this is not correct. The combination of renderer type and component family has to be unique but not the renderer type itself.

    I would be nice if somebody could have a look at this. It may be that I am using the editor in a wrong way. But it also may be that this is a bug in the editor.

    Regards,
    Stephan

    #289133 Reply

    Loyal Water
    Member

    Stephan,
    I’ll ask the dev team to look into this issue. Can you please direct me to the JSF documentation where it is specifically mentioned that it is valid for render type not to be unique?

    #289161 Reply

    Stephan Anft
    Member

    Hi Nipun,

    I’ve searched the specification but did not found anything on this. But just have a look at the standard JSF component library. For example:

    Component HtmlSelectOneListbox:
    – Renderer Type: javax.faces.Listbox
    – Component Family: javax.faces.SelectOne

    Component HtmlSelectManyListbox:
    – Renderer Type: javax.faces.Listbox
    – Component Family: javax.faces.SelectMany

    You see that both components have the same renderer type but a different component family. Only the combination of both have to be unique because both values are used to find the correct renderer for the component. This is mentioned on the following web site, too: http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.jsf_apps%7Cf1tags%7Cf1_sfcf_renderkit~html/

    Regards,
    Stephan

    #289184 Reply

    Loyal Water
    Member

    Stephan,
    Thanks for this information. I’ll add this information to the bug report that I have filed.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Faces-config editor denies multiple usage of renderer type

You must be logged in to post in the forum log in