linshi8126

          Tracking--一個JSF頁面存在多個Form導致 Oracle ADF Faces Rich Client Components無法提交到Server端

          <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
                    xmlns:h
          ="http://java.sun.com/jsf/html"
                    xmlns:f
          ="http://java.sun.com/jsf/core"
                    xmlns:trh
          ="http://myfaces.apache.org/trinidad/html"
                    xmlns:tr
          ="http://myfaces.apache.org/trinidad"
                    xmlns:af
          ="http://xmlns.oracle.com/adf/faces/rich">
          ...
          <h:form id="form1">       
          </h:form>

                    
          <h:form id="form2"
                                     rendered
          ="true">
                                     
                                
          <af:menuBar rendered="true" clientComponent="true" id="mbPop" binding="#{editor.component}">
                                  
          <af:menu textAndAccessKey="#{language.space_share}">
                                      
          <af:commandMenuItem clientComponent="true" textAndAccessKey="#{language.space_share_to_user}">
                                     
          </af:commandMenuItem>
                                      
          <af:commandMenuItem id="cmiPopup" clientComponent="true" textAndAccessKey="#{language.space_share_to_group}">
                                          
          <af:showPopupBehavior popupId="ppTest"
                                                                align
          ="afterStart"
                                                                alignId
          ="mbPop"/>
                                      
          </af:commandMenuItem>
                                  
          </af:menu>
                                
          </af:menuBar>
                                
          <af:popup id="ppTest">
                                  
          <af:commandButton text="Test Popup Button" id="testButton"
                                                    action
          ="#{backing_index.commandButton_action}"/>
                                
          </af:popup>
                                //code here
                  
          </h:form>
          ...

          backing:


              
          public String commandButton_action() {
                  System.out.println(
          "server print out.");
                  
          return null;
              }
          注:刪除form1時可得server print out.
          testButton位于//code here時可得server print out.

          posted on 2009-05-29 10:13 SteveLam 閱讀(281) 評論(0)  編輯  收藏 所屬分類: Tracking


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 北辰区| 保康县| 涿州市| 玉龙| 噶尔县| 苍梧县| 石嘴山市| 黔西县| 左云县| 镇康县| 湾仔区| 嘉义市| 通化市| 鄱阳县| 上饶县| 罗源县| 洪湖市| 绵阳市| 资阳市| 定南县| 永定县| 大余县| 长子县| 嘉义市| 丰顺县| 福州市| 唐海县| 银川市| 神木县| 祁门县| 大足县| 肥东县| 崇左市| 山阴县| 德化县| 兴义市| 昌吉市| 壶关县| 佳木斯市| 吉安市| 云龙县|