6 Replies Latest reply on Jun 3, 2009 9:41 PM by Nick Belaevski

    action is not perform inside default pages

    benziman kirism Newbie

      Hi all.

      I am just insert successful the other pages into body of default page when clicking each menuItems on the item will be display the corresponding pages of user , But i have trouble for transaction on the load page on body of default page.
      I can do action on this page , it is not get the result to interact them.

      here is default page:

      <body>
       <f:view>
       <h:form>
      
       <tr>
      
       <rich:dropDownMenu styleClass="myClass">
       <f:facet name="label">
       <h:panelGroup>
      
       <h:outputText value="File"/>
       </h:panelGroup>
       </f:facet>
       <rich:menuItem submitMode="ajax" reRender="content" value="New">
       <a4j:actionparam name="pageGoTo" value="testmenu.jsp" assignTo="#{BeanPageGoTo.current}"/>
       </rich:menuItem>
       <rich:menuItem submitMode="ajax" reRender="content" value="Open" >
       <a4j:actionparam name="pageGoTo" value="chapter1.jsp" assignTo="#{BeanPageGoTo.current}"/>
       </rich:menuItem>
      
       </rich:dropDownMenu> </h:form>
       </tr>
      
       <tr>
       <a4j:outputPanel id="content">
       <a4j:include viewId="#{BeanPageGoTo.current}"/>
       </a4j:outputPanel>
      
       </tr>
      
      
       </f:view>
       </body>


      here is page display on the body of default page.

      <body>
      
      
       <h:form>
       <rich:toolBar>
      
       <rich:dropDownMenu>
       <f:facet name="label">
       <h:panelGroup>
       <h:graphicImage value="/images/icons/copy.gif" styleClass="pic"/>
       <h:outputText value="File"/>
       </h:panelGroup>
       </f:facet>
       <rich:menuItem submitMode="ajax" value="New"
       action="#{MenuTab.doNew}" icon="/images/icons/create_doc.gif">
       </rich:menuItem>
       <rich:menuItem submitMode="ajax" value="Open"
       action="#{MenuTab.doOpen}" icon="/images/icons/open.gif" />
       <rich:menuGroup value="Save As...">
       <rich:menuItem submitMode="ajax" value="Save"
       action="#{MenuTab.doSave}" icon="/images/icons/save.gif" />
       <rich:menuItem submitMode="ajax" value="Save All"
       action="#{MenuTab.doSaveAll}">
       <f:facet name="icon">
       <h:graphicImage value="/images/icons/save_all.gif" />
       </f:facet>
       </rich:menuItem>
       </rich:menuGroup>
       <rich:menuItem submitMode="ajax" value="Close"
       action="#{MenuTab.doClose}" />
       <rich:menuSeparator id="menuSeparator11" />
       <rich:menuItem submitMode="ajax" value="Exit"
       action="#{MenuTab.doExit}" />
      
       </rich:dropDownMenu>
      
       <rich:dropDownMenu>
      
       <f:facet name="label">
       <h:panelGrid cellpadding="0" cellspacing="0" columns="2"
       style="vertical-align:middle">
       <h:outputText value="Links" />
       </h:panelGrid>
       </f:facet>
      
       <rich:menuItem submitMode="none"
       onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
       <h:outputLink value="http://labs.jboss.com/jbossrichfaces/">
       <h:outputText value="RichFaces Home Page"></h:outputText>
       </h:outputLink>
       </rich:menuItem>
      
       <rich:menuItem submitMode="none"
       onclick="document.location.href='http://jboss.com/index.html?module=bb&amp;op=viewforum&amp;f=261'">
       <h:outputLink
       value="http://jboss.com/index.html?module=bb&amp;op=viewforum&amp;f=261">
       <h:outputText value="RichFaces Forum"></h:outputText>
       </h:outputLink>
       </rich:menuItem>
      
       </rich:dropDownMenu>
       </rich:toolBar>
       </h:form>
       <rich:spacer width="1" height="5"/>
       <br />
       <a4j:outputPanel ajaxRendered="true">
       <h:outputText value="Current Selection: "></h:outputText>
       <h:outputText style="font-weight:bold" value="#{MenuTab.current}"></h:outputText>
       </a4j:outputPanel>
       <br />
       <rich:spacer width="1" height="25" />
      
      
       </body>


      when i interacts to it , no happen occur .

      please help me .

      please give me advice.

      thank regards