in the current PF 3.4 SNAPSHOT, there is currently a problem with p:button. The latest code adds type="button" no matter if it still exists or not. Another problem is type="button" would only work for client side stuff, so this should never be the default setting for a button. Code which adressed this error (see double attribute error in FF12 error console):
Code: Select all
<p:dialog
header="#{msg.text_session_timeout}"
widgetVar="idleDialog"
modal="true"
closable="false"
draggable="false"
resizable="false"
width="350">
<div class="buttons">
<p:button
type="submit"
outcome="logout"
value="#{msg.action_logout}"/>
<p:button
type="button"
onclick="location.reload(true);"
value="#{msg.action_refresh_session}" />
</div>
</p:dialog>
Have a nice day,
Daniel