[JBoss JIRA] (RF-13592) a4j:push doesn't work after rendering
by Pavol Pitonak (JIRA)
[ https://issues.jboss.org/browse/RF-13592?page=com.atlassian.jira.plugin.s... ]
Pavol Pitonak reassigned RF-13592:
----------------------------------
Assignee: Juraj Húska (was: Pavol Pitonak)
Juraj, please try to reproduce with attached reproducer.
> a4j:push doesn't work after rendering
> -------------------------------------
>
> Key: RF-13592
> URL: https://issues.jboss.org/browse/RF-13592
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-push/poll
> Affects Versions: 4.3.5
> Environment: JBoss EAP 6.2
> Browser: Chrome 33.0.1750.154 and IE 8.0.7601.17514
> JSF 2.19, Richfaces 4.3.5
> Reporter: Igor Bolshakov
> Assignee: Juraj Húska
> Priority: Critical
> Attachments: a4j.log, localhost.har, push-test.zip, push-test.zip, screenshot.png, web.xml
>
>
> I use {{rendered}} attribute to start/stop a4j:push component in example below. After rendering of a4j:push element the handling of incoming push messages is broken. In my simple example I set alert to notify about recieved message (see attached screenshot).
> View xhtml code:
> {code:xml}<?xml version="1.0" encoding="ISO-8859-1"?>
> <ui:composition xmlns="http://www.w3.org/1999/xhtml"
> xmlns:a4j="http://richfaces.org/a4j"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:ui="http://java.sun.com/jsf/facelets">
> <h:form>
> <a4j:outputPanel id="push-panel">
> <a4j:push address="TEST_ADDRESS" ondataavailable="alert('event.rf.data=' + event.rf.data)"
> rendered="#{testBean.enabled}"/>
> </a4j:outputPanel>
> <a4j:commandButton id="startBtn" value="Start Push" action="#{testBean.startPush}" render="push-panel"/>
> <a4j:commandButton id="stopBtn" value="Stop Push" action="#{testBean.stopPush}" render="push-panel"/>
> <a4j:commandButton id="sendMessage" value="Send Message" action="#{testBean.sendMessage}"/>
> </h:form>
> </ui:composition>{code}
> Backing bean class:
> {code}public class TestBean {
> private boolean enabled = false;
> public boolean isEnabled() {
> return enabled;
> }
> public void startPush() {
> enabled = true;
> }
> public void stopPush() {
> enabled = false;
> }
> public void sendMessage() throws MessageException {
> TopicsContext.lookup().publish(new TopicKey("TEST_ADDRESS"), "Hello World");
> }
> }{code}
> Configuration in web.xml (see attachment).
> Scenario:
> 1) Open page
> 2) Click "Start Push" button
> 3) Click "Send Message" button
> 4) Alert "event.rf.data=Hello World" is shown (see attached screenshot)
> 5) Click "Stop Push" button
> 6) Polling is closed (see localhost.har in attachment)
> 7) Click "Start Push" button
> 8) Polling is started (see localhost.har in attachment)
> 9) Click "Send Message" button
> 10) Message is recieved (see localhost.har in attachment)
> 11) No alert, no javascript error
> For more details I saved a4j:log output in a4j.log file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 3 months
[JBoss JIRA] (RF-13592) a4j:push doesn't work after rendering
by Igor Bolshakov (JIRA)
[ https://issues.jboss.org/browse/RF-13592?page=com.atlassian.jira.plugin.s... ]
Igor Bolshakov updated RF-13592:
--------------------------------
Labels: (was: waiting_on_user)
> a4j:push doesn't work after rendering
> -------------------------------------
>
> Key: RF-13592
> URL: https://issues.jboss.org/browse/RF-13592
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-push/poll
> Affects Versions: 4.3.5
> Environment: JBoss EAP 6.2
> Browser: Chrome 33.0.1750.154 and IE 8.0.7601.17514
> JSF 2.19, Richfaces 4.3.5
> Reporter: Igor Bolshakov
> Assignee: Pavol Pitonak
> Priority: Critical
> Attachments: a4j.log, localhost.har, push-test.zip, push-test.zip, screenshot.png, web.xml
>
>
> I use {{rendered}} attribute to start/stop a4j:push component in example below. After rendering of a4j:push element the handling of incoming push messages is broken. In my simple example I set alert to notify about recieved message (see attached screenshot).
> View xhtml code:
> {code:xml}<?xml version="1.0" encoding="ISO-8859-1"?>
> <ui:composition xmlns="http://www.w3.org/1999/xhtml"
> xmlns:a4j="http://richfaces.org/a4j"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:ui="http://java.sun.com/jsf/facelets">
> <h:form>
> <a4j:outputPanel id="push-panel">
> <a4j:push address="TEST_ADDRESS" ondataavailable="alert('event.rf.data=' + event.rf.data)"
> rendered="#{testBean.enabled}"/>
> </a4j:outputPanel>
> <a4j:commandButton id="startBtn" value="Start Push" action="#{testBean.startPush}" render="push-panel"/>
> <a4j:commandButton id="stopBtn" value="Stop Push" action="#{testBean.stopPush}" render="push-panel"/>
> <a4j:commandButton id="sendMessage" value="Send Message" action="#{testBean.sendMessage}"/>
> </h:form>
> </ui:composition>{code}
> Backing bean class:
> {code}public class TestBean {
> private boolean enabled = false;
> public boolean isEnabled() {
> return enabled;
> }
> public void startPush() {
> enabled = true;
> }
> public void stopPush() {
> enabled = false;
> }
> public void sendMessage() throws MessageException {
> TopicsContext.lookup().publish(new TopicKey("TEST_ADDRESS"), "Hello World");
> }
> }{code}
> Configuration in web.xml (see attachment).
> Scenario:
> 1) Open page
> 2) Click "Start Push" button
> 3) Click "Send Message" button
> 4) Alert "event.rf.data=Hello World" is shown (see attached screenshot)
> 5) Click "Stop Push" button
> 6) Polling is closed (see localhost.har in attachment)
> 7) Click "Start Push" button
> 8) Polling is started (see localhost.har in attachment)
> 9) Click "Send Message" button
> 10) Message is recieved (see localhost.har in attachment)
> 11) No alert, no javascript error
> For more details I saved a4j:log output in a4j.log file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 3 months
[JBoss JIRA] (RF-13601) DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RF-13601?page=com.atlassian.jira.plugin.s... ]
Juraj Húska commented on RF-13601:
----------------------------------
The showcase dataTable with sorting columns works fine.
> DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
> ---------------------------------------------------------------------------------------------
>
> Key: RF-13601
> URL: https://issues.jboss.org/browse/RF-13601
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.3.6
> Environment: Firefox 25 & Chrome
> EAP & JBoss AS 7.1.1.Final
> Reporter: Juraj Húska
> Priority: Critical
> Labels: regression
> Attachments: brokenDataTableSortingHeaderColumns.png
>
>
> {{DataTable}} with multiple sorting columns does not work properly. After initial render it looks good, but then after refresh it is broken.
> The header facet is visually broken and following JS error is thrown into the console:
> {{TypeError: RichFaces.ui.DataTable is not a constructor}}.
> The rendered code contains following usage of the DataTable constructor:
> {code}
> new RichFaces.ui.DataTable("form:richDataTable",{"ajaxEventOptions":{} } )
> {code}
> It seems that the sorting functionality works even though there is JS error and it is visually broken. However, the functional tests failed so I need to investigate more.
> It worked in {{4.3.5.Final}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 3 months
[JBoss JIRA] (RF-13601) DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RF-13601?page=com.atlassian.jira.plugin.s... ]
Juraj Húska commented on RF-13601:
----------------------------------
Chrome is throwing similar:
{{Uncaught TypeError: undefined is not a function sorting-using-column.xhtml:244}}
> DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
> ---------------------------------------------------------------------------------------------
>
> Key: RF-13601
> URL: https://issues.jboss.org/browse/RF-13601
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.3.6
> Environment: Firefox 25 & Chrome
> EAP & JBoss AS 7.1.1.Final
> Reporter: Juraj Húska
> Priority: Critical
> Labels: regression
> Attachments: brokenDataTableSortingHeaderColumns.png
>
>
> {{DataTable}} with multiple sorting columns does not work properly. After initial render it looks good, but then after refresh it is broken.
> The header facet is visually broken and following JS error is thrown into the console:
> {{TypeError: RichFaces.ui.DataTable is not a constructor}}.
> The rendered code contains following usage of the DataTable constructor:
> {code}
> new RichFaces.ui.DataTable("form:richDataTable",{"ajaxEventOptions":{} } )
> {code}
> It seems that the sorting functionality works even though there is JS error and it is visually broken. However, the functional tests failed so I need to investigate more.
> It worked in {{4.3.5.Final}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 3 months
[JBoss JIRA] (RF-13601) DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RF-13601?page=com.atlassian.jira.plugin.s... ]
Juraj Húska updated RF-13601:
-----------------------------
Environment:
Firefox 25 & Chrome
EAP & JBoss AS 7.1.1.Final
was:
Firefox 25
EAP & JBoss AS 7.1.1.Final
> DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
> ---------------------------------------------------------------------------------------------
>
> Key: RF-13601
> URL: https://issues.jboss.org/browse/RF-13601
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.3.6
> Environment: Firefox 25 & Chrome
> EAP & JBoss AS 7.1.1.Final
> Reporter: Juraj Húska
> Priority: Critical
> Labels: regression
> Attachments: brokenDataTableSortingHeaderColumns.png
>
>
> {{DataTable}} with multiple sorting columns does not work properly. After initial render it looks good, but then after refresh it is broken.
> The header facet is visually broken and following JS error is thrown into the console:
> {{TypeError: RichFaces.ui.DataTable is not a constructor}}.
> The rendered code contains following usage of the DataTable constructor:
> {code}
> new RichFaces.ui.DataTable("form:richDataTable",{"ajaxEventOptions":{} } )
> {code}
> It seems that the sorting functionality works even though there is JS error and it is visually broken. However, the functional tests failed so I need to investigate more.
> It worked in {{4.3.5.Final}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 3 months
[JBoss JIRA] (RF-13601) DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RF-13601?page=com.atlassian.jira.plugin.s... ]
Juraj Húska updated RF-13601:
-----------------------------
Description:
{{DataTable}} with multiple sorting columns does not work properly. After initial render it looks good, but then after refresh it is broken.
The header facet is visually broken and following JS error is thrown into the console:
{{TypeError: RichFaces.ui.DataTable is not a constructor}}.
The rendered code contains following usage of the DataTable constructor:
{code}
new RichFaces.ui.DataTable("form:richDataTable",{"ajaxEventOptions":{} } )
{code}
It seems that the sorting functionality works even though there is JS error and it is visually broken. However, the functional tests failed so I need to investigate more.
It worked in {{4.3.5.Final}}.
was:
{{DataTable}} with multiple sorting columns does not work properly. After initial render it looks good, but then after refresh it is broken.
Sorting functionality does not work, the header facet is visually broken and following JS error is thrown into the console:
{{TypeError: RichFaces.ui.DataTable is not a constructor}}.
The rendered code contains following usage of the DataTable constructor:
{code}
new RichFaces.ui.DataTable("form:richDataTable",{"ajaxEventOptions":{} } )
{code}
It worked in {{4.3.5.Final}}.
> DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
> ---------------------------------------------------------------------------------------------
>
> Key: RF-13601
> URL: https://issues.jboss.org/browse/RF-13601
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.3.6
> Environment: Firefox 25
> EAP & JBoss AS 7.1.1.Final
> Reporter: Juraj Húska
> Priority: Critical
> Labels: regression
> Attachments: brokenDataTableSortingHeaderColumns.png
>
>
> {{DataTable}} with multiple sorting columns does not work properly. After initial render it looks good, but then after refresh it is broken.
> The header facet is visually broken and following JS error is thrown into the console:
> {{TypeError: RichFaces.ui.DataTable is not a constructor}}.
> The rendered code contains following usage of the DataTable constructor:
> {code}
> new RichFaces.ui.DataTable("form:richDataTable",{"ajaxEventOptions":{} } )
> {code}
> It seems that the sorting functionality works even though there is JS error and it is visually broken. However, the functional tests failed so I need to investigate more.
> It worked in {{4.3.5.Final}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 3 months
[JBoss JIRA] (RF-13601) DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RF-13601?page=com.atlassian.jira.plugin.s... ]
Juraj Húska updated RF-13601:
-----------------------------
Steps to Reproduce:
# deploy Metamer and load: http://localhost:8080/metamer/faces/components/richDataTable/sorting-usin...
# refresh the page, or set attribute {{sortMode}} to multi
# see broken header of the table and JS error in the console
> DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
> ---------------------------------------------------------------------------------------------
>
> Key: RF-13601
> URL: https://issues.jboss.org/browse/RF-13601
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.3.6
> Environment: Firefox 25
> EAP & JBoss AS 7.1.1.Final
> Reporter: Juraj Húska
> Priority: Critical
> Labels: regression
> Attachments: brokenDataTableSortingHeaderColumns.png
>
>
> {{DataTable}} with multiple sorting columns does not work properly. After initial render it looks good, but then after refresh it is broken.
> Sorting functionality does not work, the header facet is visually broken and following JS error is thrown into the console:
> {{TypeError: RichFaces.ui.DataTable is not a constructor}}.
> The rendered code contains following usage of the DataTable constructor:
> {code}
> new RichFaces.ui.DataTable("form:richDataTable",{"ajaxEventOptions":{} } )
> {code}
> It worked in {{4.3.5.Final}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 3 months
[JBoss JIRA] (RF-13601) DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
by Juraj Húska (JIRA)
[ https://issues.jboss.org/browse/RF-13601?page=com.atlassian.jira.plugin.s... ]
Juraj Húska updated RF-13601:
-----------------------------
Attachment: brokenDataTableSortingHeaderColumns.png
> DataTable - when has sorting columns - TypeError: RichFaces.ui.DataTable is not a constructor
> ---------------------------------------------------------------------------------------------
>
> Key: RF-13601
> URL: https://issues.jboss.org/browse/RF-13601
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-tables
> Affects Versions: 4.3.6
> Environment: Firefox 25
> EAP & JBoss AS 7.1.1.Final
> Reporter: Juraj Húska
> Priority: Critical
> Labels: regression
> Attachments: brokenDataTableSortingHeaderColumns.png
>
>
> {{DataTable}} with multiple sorting columns does not work properly. After initial render it looks good, but then after refresh it is broken.
> Sorting functionality does not work, the header facet is visually broken and following JS error is thrown into the console:
> {{TypeError: RichFaces.ui.DataTable is not a constructor}}.
> The rendered code contains following usage of the DataTable constructor:
> {code}
> new RichFaces.ui.DataTable("form:richDataTable",{"ajaxEventOptions":{} } )
> {code}
> It worked in {{4.3.5.Final}}.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 3 months