-
1. Want to display the status message while rendering the image when tree node is clicked
ilya40umov Jan 21, 2011 12:59 AM (in response to bhanu.sistla)1) If it works with ajax you can use a4j:status:
http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/a4j_status.html
2) If it works with your custom JS you should do it by yourself on JS.
3) If some data is loading after non-AJAX submit I'm afraid that it's not possible to show status. It can do only a browser.
-
2. Want to display the status message while rendering the image when tree node is clicked
bhanu.sistla Jan 21, 2011 9:23 PM (in response to ilya40umov)Yes its ajax call only, i tried to <a4j:status some thing like this
<rich:tree style="width:100%;" switchType="client"
value="#{kmTree.rootNode}" var="item"
adviseNodeOpened="#{kmTree.adviseNodeOpened}"
adviseNodeSelected="#{kmTree.adviseNodeSelected}"
nodeSelectListener="#{kmTree.processSelection}"
ajaxSubmitSelection="true" status="waitStatus">
<h:outputText styleClass="text" value="#{item.resource.name}" />
</rich:treeNode-->
<rich:treeNode onexpand="kmNodeExpanded(#{item.node.id});"
oncollapse="kmNodeCollapsed(#{item.node.id});"
rendered="#{!item.node.isFolder}"
reRender="__km_display"
limitToList="true">
<h:outputText styleClass="text" value="#{item.node.name}" />
</rich:treeNode><rich:treeNode onexpand="kmNodeExpanded(#{item.node.id});"
oncollapse="kmNodeCollapsed(#{item.node.id});"
rendered="#{item.node.isFolder}">
<h:outputText styleClass="text" value="#{item.node.name}" />
</rich:treeNode>
</rich:tree><a4j:status
id="waitStatus"
forceId="true"
onstart="javascript:Richfaces.showModalPanel('waitModalPanel');"
onstop="javascript:Richfaces.hideModalPanel('waitModalPanel');"/><rich:modalPanel
id="waitModalPanel"
autosized="true"
width="200"
height="120"
moveable="false"
resizeable="false">
<f:facet name="header">
<h:outputText value="Processing"/>
</f:facet>
<h:outputText value="Please wait..."/>
</rich:modalPanel>But this still did not work
Thanks
Bhanu S
-
3. Want to display the status message while rendering the image when tree node is clicked
ilya40umov Jan 22, 2011 2:03 AM (in response to bhanu.sistla)1) I can't see h:form in your example. But I guess it must be somewere on your page. Please provide more detailed code.
2) Try to debug JS with alert('message'); before using showModalPanel.
3) So as I understood everything works fine and nodeSelectListener is fired and only a4j:status does not wokk. Am I right?