【问题标题】:Change Skin of Richfaces Application without reloading the page在不重新加载页面的情况下更改 Richfaces 应用程序的皮肤
【发布时间】:2014-11-19 15:05:59
【问题描述】:

我有一个 JSF 2.2 和 Richfaces 4 应用程序,在那个应用程序中我有一个 h:selectonemeun,其中我有一个 a4j:ajax 和 event: on change 和 listner et status 属性。我希望当我更改该 selectonemenu 的值时更改它们或我的页面的外观,而无需重新加载所有页面(ajax)。

 <h:selectOneMenu
                        value="#{managController.selectedProdGroup}"
                        class="validate[required] text-input"
                        requiredMessage="#{messages['group.product.required']}"
                        style=" width : 285px;"
                        converter="omnifaces.SelectItemsConverter">

                        <f:selectItem
                            itemLabel="#{messages['productgroup.noselection']}"
                            itemValue="" />
                        <f:selectItems value="#{bManager.productGroupList}"
                            var="productGroupVar" itemLabel="#{productGroupVar.label}" />

                        <a4j:ajax status="loading" execute="@this"
                            listener="#{managController.getProductListByProductGroup()}"
                            onbegin="#{managController.getProductListByProductGroup()}"
                            render="matTable,productList,mForm"
                            event="change" />

                    </h:selectOneMenu>

【问题讨论】:

  • 我做了 ...converter="omnifaces.SelectItemsConverter" onchange="this.form.submit()"> 并更改了页面,但它可以工作,所以我会这样做

标签: richfaces jsf-2.2 jboss6.x


【解决方案1】:

您需要重新加载页面:

onchange="this.form.submit()"

【讨论】:

    猜你喜欢
    • 2020-10-04
    • 2013-07-07
    • 1970-01-01
    • 2020-04-20
    • 2016-10-28
    • 2013-06-21
    • 2012-05-26
    • 2020-12-29
    相关资源
    最近更新 更多