JSF bean不止一次创建

时间:2016-03-06 11:11:53

标签: jsf jsf-2 managed-bean postconstruct requestscope

当我打开jsf页面时,Notice: iconv(): Detected an illegal character in input string in 会创建两次。那为什么会这样呢? jsf页面:

catalog bean

豆:

<h:dataTable value="#{catalog.products}" var="p">
    <h:column>
        <h:form>
            <h:commandLink action="detail?faces-redirect=true"
                value="#{p.brand} #{p.model}">
                <f:setPropertyActionListener value="#{p}"
                    target="#{ph.currentProduct}" />
            </h:commandLink>
        </h:form>
    </h:column>
</h:dataTable>

0 个答案:

没有答案