我必須流式傳輸網(wǎng)絡(luò)攝像頭視頻,所以我要使用ustream來執(zhí)行此操作,這會為我生成一個Flash嵌入代碼,而且我有一個按鈕可以關(guān)閉/打開燈,但是當(dāng)我按該按鈕時,它將刷新整個頁面,因此是Flash組件。有一些方法可以不刷新頁面而仍然發(fā)送到命令?好吧,現(xiàn)在是這樣的: <h:form id="form_supervisory"> <h:panelGrid> <h:column> <iframe width="480" height="296" src="http://www.ustream.tv/embed/9599890" scrolling="no" frameborder="0" style="border: 0px none transparent;"> </iframe> <h:commandButton value="Lampada" action="#{supervisoryc.invertBo}" /> <h:graphicImage value="#{supervisoryc.imageBo}" /> </h:column> </h:panelGrid> </h:form>
如何使commandButton不能完全刷新頁面?如何使用f:ajax?
慕勒3428872
2020-01-05 13:00:12