[richfaces-issues] [JBoss JIRA] (RF-12543) a4j:push after ajax-rendered does not have its javascript included

nimo stephan (JIRA) jira-events at lists.jboss.org
Fri Oct 19 03:26:01 EDT 2012


     [ https://issues.jboss.org/browse/RF-12543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nimo stephan updated RF-12543:
------------------------------

    Description: 
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.


<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>

If I only render my-form after changing the property, a4j:push does not work:

<h:form>
<h:commandButton value="Activate Push " action="#{myBean.setActivatePushToTrue}">
<f:ajax render=":my-form"/>
</h:commandButton>
</h:form>

I have to do a full page refresh, only then aj4:push works:

<h:form>
<h:commandButton value="Activate Push " action="#{myBean.setPushActivateToTrue}" onclick="submit();" />
</h:form>


Richfaces does insert the needed javascript only after a full page request:

<script type="text/javascript">RichFaces.Push.setPushResourceUrl.....;</script>

If I make a ajax-rendering, Richfaces does NOT (!) insert the needed javascript. Hence a4j does not work.

  was:
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.


<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>

If I only render my-form after changing the property, a4j:push does not work:

<h:form>
<h:commandButton value="Activate Push " action="#{myBean.setActivatePushToTrue}">
<f:ajax render=":my-form"/>
</h:commandButton>
</h:form>

I have to do a full page refresh, only then aj4:push works:

<h:form>
<h:commandButton value="Activate Push " action="#{myBean.setPushActivateToTrue}" onclick="submit();" />
</h:form>


Richfaces does insert the needed javascript only after a full page request:

<script type="text/javascript">RichFaces.Push.setPushResourceUrl.....;</script>

If I make a ajax-rendering, Richfaces does insert the needed javascript. Hence a4j does not work.


    
> 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
>
> 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.
> <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>
> If I only render my-form after changing the property, a4j:push does not work:
> <h:form>
> <h:commandButton value="Activate Push " action="#{myBean.setActivatePushToTrue}">
> <f:ajax render=":my-form"/>
> </h:commandButton>
> </h:form>
> I have to do a full page refresh, only then aj4:push works:
> <h:form>
> <h:commandButton value="Activate Push " action="#{myBean.setPushActivateToTrue}" onclick="submit();" />
> </h:form>
> Richfaces does insert the needed javascript only after a full page request:
> <script type="text/javascript">RichFaces.Push.setPushResourceUrl.....;</script>
> If I make a ajax-rendering, Richfaces does NOT (!) insert the needed javascript. Hence a4j 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


More information about the richfaces-issues mailing list