[
https://issues.jboss.org/browse/RF-12543?page=com.atlassian.jira.plugin.s...
]
Lukáš Fryč commented on RF-12543:
---------------------------------
Official schedule and estimations are available in the [project
Roadmap|https://issues.jboss.org/browse/RF#selectedTab=com.atlassian.jira...].
However please keep this discussion strictly technical.
---
I assume the push widget needs to be refactored that the Atmosphere won't actually
never hang and connect again.
If you volunteer to help with this refactoring, we could include the fix sooner than
later. I would be glad to help you.
a4j:push after ajax-rendered does not have its javascript included
------------------------------------------------------------------
Key: RF-12543
URL:
https://issues.jboss.org/browse/RF-12543
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Environment: RichFaces 4.2.2 FINAL
Reporter: nimo stephan
Fix For: 5-Tracking
I have a4j:push within my page which should be rendered only if the property
"pushIsActivated" is true. When changing the property by a button to true, then
I want to make a ajax-rendering which renders the a4j:push. However, the javascript
portion is not created within the aj4:push, hence the component does not work! I have to
make a full page refresh, then the javascript portion is inserted and a4j:push works as
expected. However, I have to do a full page refresh. I guess, it is a bug, because the
a4j:push has a rendered-property which can be changed by ajax, hence it has to work after
ajax-update.
{code}
<h:form id="my-form" prependId="false"
style="display:none;">
<a4j:push rendered="#{mybean.pushIsActivated}" address=".."
onerror=".." ondataavailable="..">
<a4j:ajax event="dataavailable" render="my-section"/>
</a4j:push>
</h:form>
{code}
If I only render my-form after changing the property, a4j:push does not work:
{code}
<h:form>
<h:commandButton value="Activate Push "
action="#{myBean.setActivatePushToTrue}">
<f:ajax render=":my-form"/>
</h:commandButton>
</h:form>
{code}
I have to do a full page refresh, only then aj4:push works:
{code}
<h:form>
<h:commandButton value="Activate Push "
action="#{myBean.setPushActivateToTrue}" onclick="submit();" />
</h:form>
{code}
Richfaces does insert the needed javascript only after a full page request:
{code}
<script
type="text/javascript">RichFaces.Push.setPushResourceUrl.....;</script>
{code}
If I make a ajax-rendering, Richfaces does NOT (!) insert the needed javascript. Hence
a4j:push does not work.
--
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