2011-06-14 45 views
0

我有2個Richfaces穿梭列表組件的問題。Richfaces listshuttle自定義按鈕定位

1:
我只希望以下按鈕可用於穿梭列表 - '複製','刪除','上移'&'下移。問題是Move Up & Down默認顯示在第二個列表的右側。我想在列表之間有全部四個按鈕。有沒有簡單的方法來做到這一點?

2:
此外,由於某種原因,我的自定義方面沒有得到在頁面加載時,只有當我點擊的項目列表中他們得到渲染應用。任何想法,爲什麼這是?

<rich:listShuttle sourceValue="#{MyBean.filteredFieldsList}" sourceSelected="MyBean.selectedFields" 
        targetValue="#{MyBean.allSelectedFields}" targetSelected="MyBean.deSelectedFields" converter="TomsShuttleListConverter" 
        listsHeight="180" sourceListWidth="260" targetListWidth="260" sourceCaptionLabel="Available Items" var="selectItems" 
        fastOrderControlsVisible="false" fastMoveControlsVisible="false" targetCaptionLabel="Currently Active Items" 
        copyControlClass="largerBtn"> 

    <f:facet name="copyControl"> 
     <h:outputText value="Add" /> 
    </f:facet> 

    <f:facet name="removeControl"> 
     <h:outputText value="Remove" /> 
    </f:facet> 

     <f:facet name="upControl"> 
     <h:outputText value="Move up" /> 
    </f:facet> 

    <f:facet name="downControl"> 
     <h:outputText value="Move down" /> 
    </f:facet> 


     <rich:column> 
     <h:outputText value="#{selectItems.label}"></h:outputText> 
    </rich:column>   

</rich:listShuttle> 

感謝

回答