composite-component

    1熱度

    1回答

    使用Omniface的Components #includeCompositeComponent動態創建組合組件時,是否可以傳遞屬性值(例如屬性myValue),以便它可用於複合材料上的預渲染事件? <composite:interface> <composite:attribute name="myValue" required="true" /> </composite:inter

    2熱度

    1回答

    好吧。 我創建了一個自定義組件到CRUD,並且表單頁面是一個參數。 在這種情況下,我需要兩個頁面,一個用來定義組件,另一個用窗體。 有沒有辦法做到這一點? 如下: 實現: 組件 <cc:interface> <cc:attribute name="formPage" type="java.lang.String" required="true"/> ..... </cc:in

    0熱度

    1回答

    我想在使用複合組件時(後臺bean是複合attribute)設置支持bean屬性。 有一個bean屬性(例如,finalDraft),我想有條件地填充該屬性(有條件地,因爲該屬性不是必需的)。 背襯豆: class Bean ... { String finalDraft; // getters+setters @PostConstruct void init()

    0熱度

    1回答

    Iam在我的項目中使用primefaces,除了p:Primefaces的日曆組件之外,一切正常。下面的xhtml文件不會顯示日曆組件。 <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.s

    0熱度

    1回答

    我有以下JSF複合部件: <composite:interface componentType="myComp"> <composite:attribute name="input" type="java.lang.Integer" /> <composite:attribute name="output" type="java.lang.Integer" /> <c

    2熱度

    1回答

    我有一個用JSF 2.0 + PrimeFaces 3.4編寫的標記庫,現在我試圖更新到JSF 2.2和PrimeFaces 4.0。 但我意識到傳遞給組件評估的屬性的值,並導致渲染錯誤的ID。 enum.xhtml(複合部件) <cc:interface> <cc:attribute name="render" default="@this"/> ..... </c

    0熱度

    1回答

    我試圖創建一個數據表複合組件,這個組件需要由兩組開發人員使用,一個使用Spring web flow,他們需要一個action屬性用於複合組件數據表中的命令鏈接,其他需要屬性actionListener。 我想對這兩種情況使用相同的xhtml。這是可行的嗎? <composite:attribute name="isWebFlow" /> 像上面這樣的屬性能幫我配置嗎?問題是,我在數據表中複合

    3熱度

    1回答

    將列添加到Primefaces panelGrid的我有點新的JSF和Primefaces,我想提出一個包含Primefaces GridPanel中的複合成分: <composite:interface> <composite:attribute name="bind" type="com.whatever.IBackingBean"/> <composite:facet n

    0熱度

    1回答

    嗨,我創建了構建動態表單的複合組件。 我將3個參數傳遞給組件支持bean。其中2個是對象。 <p:outputPanel id="dynaForm" > <p:outputPanel rendered="#{formTest.dynamicForm!=null}" > Form in parent: #{formTest.dynamicForm.id}<br/> <c

    0熱度

    1回答

    我已經搜索瞭如何參數化Managed Bean類,直到現在還沒有。 我在做什麼? 我有一個JSF組件可以從我的Bean訪問一些方法,但是這個方法已經被一個抽象類實現了。 方法和屬性的名稱不會改變,但現在我正在複製和粘貼,只更改Bean名稱。 第一個實現是工作,但我想改進第二個。 1組分(現在): ... <cc:interface> <cc:attribute name="title"