]
RH Bugzilla Integration commented on GTNPORTAL-2581:
----------------------------------------------------
Petr Mensik <pmensik(a)redhat.com> changed the Status of [bug
RichFaces is not defined after adding a RF portlet to a page
------------------------------------------------------------
Key: GTNPORTAL-2581
URL:
https://issues.jboss.org/browse/GTNPORTAL-2581
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment: GateIn 3.4.0.Final
Reporter: Peter Palaga
Attachments: jsf2-rf4-hello-world-portlet.war
(1) Start a fresh GateIn 3.4.0.Final:
cd tmp
wget
http://downloads.jboss.org/gatein/Releases/Portal/3.4.0.Final/GateIn-3.4....
unzip GateIn-3.4.0.Final-jbossas7.zip
cd GateIn-3.4.0.Final-jbossas7/bin
./standalone.sh
(2) Install gatein-bom-3.4
git clone
https://github.com/ppalaga/gatein-bom.github
cd gatein-bom
mvn install -Dgpg.skip=true
(3) Pack and deploy jsf2-rf4-hello-world-portlet:
cd tmp
git clone
https://github.com/ppalaga/gatein-portal-quickstart.git
cd gatein-portal-quickstart/jsf2-rf4-hello-world-portlet
mvn package jboss-as:deploy
(4) In web browser:
* login as root
http://127.0.0.1:8080/portal/login?username=root&password=gtn&ini...
(5) In web browser:
* Group > Administration > Application Registry > Import Applications
* Site > Classic > Home
* Site Editor > Edit Page
* Drag jsf2-rf4-hello-world-portlet and drop it e.g. under the Home Page portlet
* make the console with server log visible to you
* Open developer tools (F12 in Chrome) and switch to Resources. Have a look at loaded
scripts. Note that there are no PBR-related scripts there.
(6) Hit Finish (Diskette Icon) in Page Editor dialog
(7) UNEXPECTED: After hitting Finish, there comes a modal message in the browser window
saying "RichFaces is not defined".
* Note that while this message is being displayed, there is no change in the scripts
compared to before (5).
* Note that nothing happened in the server log.
(8) Hit OK in the "RichFaces is not defined" alert.
* Note that one or more PBR-related scripts were loaded. Some of them have error markers
in them
* Sometimes one or more org.exoplatform.portal.config.NoSuchDataExceptions appear in the
server log
The problem seems to be related to the fact that the inline JavaScript needed to render
the rich:select component is evaluated before the needed js resources were loaded. After
reloading the whole page or accessing the page from another session
jsf2-rf4-hello-world-portlet works as expected.
For further observations, define one more step:
(9)
* Site > Classic > Home
* Site Editor > Edit Page
* remove jsf2-rf4-hello-world-portlet from the page
* Hit Finish (Diskette Icon) in Page Editor dialog
When in the state after (8), one performs (9) and then again (5) and (6), "RichFaces
is not defined" does not appear.
"RichFaces is not defined" appears only when one signs out from the portal and
signs in again between (9) and (5) of the previous scenario.