IBM Support

PK66660: JSF GENERATED DROP DOWN SELECTS RESULT IN DUPLICATE TAGS CAUSING HTML VALIDATION FAILURE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Drop down boxes in a (JavaServer Faces) JSF form produces a
    duplicate class attribute in the generated HTML which then
    fails validation.
    
    The following is a JSF code sample to generate drop down
    select menu:
    
    <h:selectOneMenu id="menuTest" value="#{Test.menuValue}"
    styleClass="inputText">
     <f:selectItems value="#{TestList.items}" />
     </h:selectOneMenu>
    Here is the resulting HTML code that has the duplicate class
    attribute which fails XHTML validation:
    
    <select id="_id123:menuTest" name="_id123:menuTest"
     class="inputText" class="inputText" size="1">
     <option value="">Select an Item</option>
     </select>
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Version    *
    *                  6.1 users of JavaServer Faces (JSF).        *
    ****************************************************************
    * PROBLEM DESCRIPTION: A duplicate "class" attribute is        *
    *                      generated when using a JSF tag for a    *
    *                      drop down box with a "styleClass"       *
    *                      attribute.                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    JSF generates two "class" attributes when generating the code
    for a JSF tag used to create a drop down box with a
    "styleClass" attribute.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PK66660

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    61W

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2008-05-27

  • Closed date

    2008-07-04

  • Last modified date

    2008-07-14

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R61A PSY

       UP

  • R61H PSY

       UP

  • R61I PSY

       UP

  • R61P PSY

       UP

  • R61S PSY

       UP

  • R61W PSY

       UP

  • R61Z PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 December 2021