문제

I need to get a button in JSF to bring up a simple message box saying Hello World. How would i do this Simply?

Ive looked at many examples online but they all dont relate to what i want. They use JavaBean classes to store users values ect.

도움이 되었습니까?

해결책

If you are using primefaces, you should try this:

XHTML:

<p:commandButton id="basic" value="Basic" onclick="PF('dlg1').show();" type="button" />  

<p:dialog id="basicDialog" header="HELLO" widgetVar="dlg1">  
    <h:outputText value="Hello world!" />  
</p:dialog>  
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top