English 中文(简体)
f:ajax只使用@form或@all
原标题:f:ajax works only with @form or @all

i 有一个综合构成部分,包含一个有亚氮的表格。 我可以指出的是,它只是用于“@all”的参数。

    <cc:interface>
    <cc:attribute name="radioItem"/>
    <cc:attribute name="radioItems" />
    <cc:attribute name="compImage" />
    <cc:attribute name="compSpecification"/>

    </cc:interface>

<!-- IMPLEMENTATION -->
<cc:implementation>
    <h:form> 
        <div id="options">
            <h:selectOneRadio value="#{cc.attrs.radioItem}" >
                <f:selectItems value="#{cc.attrs.radioItems}" />
                <f:ajax render=":details" />
    </h:selectOneRadio>
        </div>

        <div id="details">
            <h:graphicImage value="#{cc.attrs.compImage}"/>
            <h:outputText value="#{cc.attrs.compSpecification}"/>
        </div>      
   </h:form> 
</cc:implementation>

什么是失踪的?

最佳回答

This problem is two-fold:

  1. 请重新说明绝对客户身份识别码:details,而要重新招标的内容则在sameNamingContainer的括号内,因此,共同财产基金获得的树号能够将其定位在成分树中。 您需要具体说明一个相对客户的IDdetails

  2. You have specified the ID on a plain vanilla HTML element instead of a real JSF component, so JSF won t be able to locate it in the component tree. You need to use a real JSF component. You need to replace <div> by <h:panelGroup layout="block">.

因此,将两者固定下来:

<h:form> 
    <div id="options">
        <h:selectOneRadio value="#{cc.attrs.radioItem}" >
            <f:selectItems value="#{cc.attrs.radioItems}" />
            <f:ajax render="details" />
        </h:selectOneRadio>
    </div>

    <h:panelGroup id="details" layout="block">
        <h:graphicImage value="#{cc.attrs.compImage}"/>
        <h:outputText value="#{cc.attrs.compSpecification}"/>
    </h:panelGroup>      
</h:form> 

它使用@form@all,只是因为共同财产基金可以找到与援引亚x行动的组成部分,即:母体编码Form和分别重新招标的内容。

问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...