Bug 820579

Summary: RichFaces resources ordering load is broken
Product: [Retired] JBoss Enterprise WFK Platform 2 Reporter: Karel Piwko <kpiwko>
Component: RichFacesAssignee: Marek Novotny <mnovotny>
Status: CLOSED CURRENTRELEASE QA Contact: Karel Piwko <kpiwko>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 2.0.0.ER5CC: lfryc, myarboro, trepel
Target Milestone: ---   
Target Release: 2.0.0.ER6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-22 07:32:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 820950, 821418    

Description Karel Piwko 2012-05-10 12:19:16 UTC
Description of problem:

RichFaces button cannot be clicked anymore. Seems to be the same manifestation as for https://bugzilla.redhat.com/show_bug.cgi?id=801172


Version-Release number of selected component (if applicable):

RichFaces 4.2.1.Final-redhat-1

How reproducible:

Always.

Steps to Reproduce:
1. Deploy sportsclub example
2. Go to http://localhost:8080/sportsclub/reservations
3. Try to click on anything
  
Actual results:

Button are not clickable. Firebug console shows that something is broken with JS:

[14:13:14.318] jQuery is not defined @ http://localhost:8080/sportsclub/reservations/org.richfaces.resources/javax.faces.resource/org.richfaces.staticResource/4.2.1.Final-redhat-1/PackedCompressed/packed/packed.js:885
[14:13:14.522] RichFaces.ui is undefined @ http://localhost:8080/sportsclub/reservations/:29
[14:13:14.596] Use of getAttributeNodeNS() is deprecated. Use getAttributeNS() instead. @ http://localhost:8080/sportsclub/reservations/

Expected results:

It works.

Additional info:

Comment 3 Lukáš Fryč 2012-05-11 09:01:15 UTC
The same issues as with https://bugzilla.redhat.com/show_bug.cgi?id=801172 .

javax.faces\:jsf.js=org.richfaces.staticResource/4.2.1.Final-redhat-1/Packed/packed/packed.js

Comment 4 JBoss JIRA Server 2012-05-11 09:04:14 UTC
Lukáš Fryč <lfryc> updated the status of jira RF-12240 to Resolved

Comment 5 JBoss JIRA Server 2012-05-11 09:04:14 UTC
Lukáš Fryč <lfryc> made a comment on jira RF-12240

This issue occurs only with WFK bits.

Comment 7 Marek Novotny 2012-05-22 13:51:11 UTC
I and Lukas discovered that the cause is jboss jsf-api starting from 2.0.1.Final introduces inclusion of javax.faces resources.

Hack for fixing it is definition of changed scope for jsf-api in static-resources pom.xml:
             <dependency>
                    <groupId>org.jboss.spec.javax.faces</groupId>
                    <artifactId>jboss-jsf-api_2.1_spec</artifactId>
                    <scope>test</scope>
             </dependency>

Comment 8 Karel Piwko 2012-06-04 12:42:17 UTC
Verified with WFK ER7 via testsuite.

Comment 10 JBoss JIRA Server 2014-02-07 23:17:46 UTC
Farah Juma <fjuma> updated the status of jira JBEE-114 to Resolved