linshi8126

          My Links

          Blog Stats

          常用鏈接

          留言簿

          文章分類

          文章檔案

          搜索

          最新評(píng)論

          Tracking--一個(gè)JSF頁面存在多個(gè)Form導(dǎo)致 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時(shí)可得server print out.
          testButton位于//code here時(shí)可得server print out.

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


          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 长沙市| 广丰县| 贡觉县| 遂川县| 汾阳市| 修文县| 塘沽区| 即墨市| 昌江| 文安县| 竹溪县| 罗江县| 武定县| 洱源县| 镇康县| 天等县| 夏河县| 仁寿县| 祥云县| 河源市| 广水市| 胶南市| 调兵山市| 门头沟区| 青河县| 舞阳县| 万安县| 格尔木市| 齐河县| 手机| 柳江县| 黑山县| 康马县| 辽阳县| 蓬溪县| 抚宁县| 新昌县| 莱州市| 重庆市| 乌鲁木齐市| 邻水|