[BUG] PF 3.4-SNAPSHOT p:button type (double attribute)

UI Components for JSF
Post Reply
Hamsterbau
Posts: 409
Joined: 28 Dec 2011, 17:44

15 Jun 2012, 11:39

Hi,

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>							
Both buttons have 2 type attributes in HTML. Switching back to my older SNAPSHOT version (7595) removed this problem.

Have a nice day,

Daniel
Primefaces 8.0.7 (PF Extensions 8.0)
JSF: Mojarra 2.3.2 (Spec 2.3) - running on WildFly 22

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 51 guests