日期:2014-05-17  浏览次数:20767 次

会richfaces帮忙看看
做练习使用<a4j:commandButton>标签,但是页面却看不见按钮,自然也没有办法点击
HTML code

 <body>
  点击按钮
    <f:view>
        <h:form>
            <h:panelGrid>
                <a4j:commandButton value="点击" action="#{bean.click}" rendered="output" />
                <h:outputText value="#{bean.text}" id="output"></h:outputText>
            </h:panelGrid>
        </h:form>
    </f:view>
  </body>



应该是很简单的问题,但我google了半天也搜不到。。。。
注:value="点击"可以正常显示,只是看不见按钮

------解决方案--------------------
我用过icefaces没用过richfaces

<a4j:commandButton value="点击" action="#{bean.click}" rendered="output" style=""/>
你在a4j:commandButton标签中添加style设置一下背景色看看能不能点击
------解决方案--------------------
属性是reRender,不是rendered