[richfaces-issues] [JBoss JIRA] (RF-13573) Included Page in UI:Include not working on first click in wizard like bhevaiour

Brian Leathem (JIRA) issues at jboss.org
Tue Mar 18 01:22:10 EDT 2014


    [ https://issues.jboss.org/browse/RF-13573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12953699#comment-12953699 ] 

Brian Leathem edited comment on RF-13573 at 3/18/14 1:20 AM:
-------------------------------------------------------------

Hi Brian,
Thanks for replying first of all ..  please find below the code snippet what exacty we are doing ...and also let me explain the complet implementation.

so we are using rich:panlemenuitem on a click of which we submit a page name and setit into bean and that page gets called from UI : Include inside other rich:panle which we renderd oncomplete request of rich:panelmenuitem.

{code}
<rich:panelMenuItem   label="Cage Code" 
    mode="server"
    itemMode="ajax"
    leftIcon="disc"
    style="font-size:10px;text-align:left ;font-weight:bold;"
    action="#{panelMenuHandler.updateCurrent}"
    render="content"
    rendered="#{sessionScope.dto.treeMap.containsKey('FRMCGCDMT')}">
  <f:param name="current" value="../cageCode/cageCode.xhtml" />
  <f:param name="header" value="Cage Code" />
</rich:panelMenuItem>	

<rich:panel  id="content" bodyClass="nopaddingBody" style="border:none;" >
  <f:facet name="header">
    <h:outputText value="#{panelMenu.header}"></h:outputText>
  </f:facet>
  <h:graphicImage url="/images/leftarrow.gif" id="contentResize" title="Maximize" onclick="fnContentResize(this)" onmouseout="fnChangeImage(this);" onmouseover="fnChangeImage(this);"/>
  <ui:include    src="#{panelMenu.current}" id="contentPage" style="width:100%;" />
</rich:panel> 
{code}

now if we keep mode 'ajax' in rich:panleemenu item then richfaces resources will not get loaded in included page and any action on included page work on second click also as we are using jquery for some of the functionalites so all jquery action get falled.

but if we keep mode 'server'  then at that time resoruces get loaded but complete  page gets refreshed every time and also menu gets refreshed which we don't want.

there is one more issue in rich:panlemenuitem that suppose i click on one panelmenuitem and the facelet attached with that panel menu gets loaded into centre panel then after i click on that panelmenu  again the request is not getting triggered until and unless i'll open some other link and then come back to that link

	  
 
                
      was (Author: neehitmittal):
    Hi Brian,
Thanks for replying first of all ..  please find below the code snippet what exacty we are doing ...and also let me explain the complet implementation.

so we are using rich:panlemenuitem on a click of which we submit a page name and setit into bean and that page gets called from UI : Include inside other rich:panle which we renderd oncomplete request of rich:panelmenuitem.

{code}
<rich:panelMenuItem   label="Cage Code" mode="server"  itemMode="ajax" leftIcon="disc" style="font-size:10px;text-align:left ;font-weight:bold;" action="#{panelMenuHandler.updateCurrent}"  render="content" rendered="#{sessionScope.dto.treeMap.containsKey('FRMCGCDMT')}">
  <f:param name="current" value="../cageCode/cageCode.xhtml" />
  <f:param name="header" value="Cage Code" />
</rich:panelMenuItem>	

<rich:panel  id="content" bodyClass="nopaddingBody" style="border:none;" >
  <f:facet name="header">
    <h:outputText value="#{panelMenu.header}"></h:outputText>
  </f:facet>
  <h:graphicImage url="/images/leftarrow.gif" id="contentResize" title="Maximize" onclick="fnContentResize(this)" onmouseout="fnChangeImage(this);" onmouseover="fnChangeImage(this);"/>
  <ui:include    src="#{panelMenu.current}" id="contentPage" style="width:100%;" />
</rich:panel> 
{code}

now if we keep mode 'ajax' in rich:panleemenu item then richfaces resources will not get loaded in included page and any action on included page work on second click also as we are using jquery for some of the functionalites so all jquery action get falled.

but if we keep mode 'server'  then at that time resoruces get loaded but complete  page gets refreshed every time and also menu gets refreshed which we don't want.

there is one more issue in rich:panlemenuitem that suppose i click on one panelmenuitem and the facelet attached with that panel menu gets loaded into centre panel then after i click on that panelmenu  again the request is not getting triggered until and unless i'll open some other link and then come back to that link

	  
 
                  
> Included Page in UI:Include not working on first click  in wizard like bhevaiour
> --------------------------------------------------------------------------------
>
>                 Key: RF-13573
>                 URL: https://issues.jboss.org/browse/RF-13573
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Neehit Mittal
>              Labels: waiting_on_user
>
> After migration to Richfaces 4 as a4j:include is not available in Richfaces 4.  I have used UI:Include but using Ui:include in Wizard like bhehaviour with rich:panelmenuitem where on click on left panel menu my center pages need to be refreshed according to the link user clicked, and that corresponding xhtml gets displayed in the content panel.   But the problem is that on first click none of the action works on included page also the richfaces resources doesn't gets loaded properly as I have using j:query so it is contradicting with that.
> So please suggest what is the work around, becuase right now to keep application working i have set Mode = 'server' in rich:panelmenuitem but in that my complete page is getting refreshed which is not an expected behvaiour of the application.
> Let me know if there is any addiitonal information requiered.

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