Problem with AJAX and IE 8

UI Components for JSF
Post Reply
User avatar
benpad
Posts: 58
Joined: 24 Jun 2010, 04:54
Location: Makati, City Philippines
Contact:

28 Jul 2010, 15:58

Hello,

I'm developing a simple modal window with a simple form inside:

Code: Select all

<p:dialog widgetVar="myDialogVar"
	id="myDialog"
	draggable="true"
	resizable="false"
	modal="true"
	header="My Dialog">

	<h:form id="myForm">
		<p:messages id="myMessages" showDetail="false" showSummary="true"/>

		<h:inputText value="#{myBean.car.name}"
				required="true"
				validator="#{myBean.validator}">
	
		<p:commandButton value="Cancel"
				 immediate="true"
				 actionListener="#{myBean.cancel}"
				 onsuccess="myDialogVar.hide();"
				 update="@form"/>

		<p:commandButton value="Save"
				 actionListener="#{myBean.save}"
				 async="true"
				 ajax="true"
				 id="createUserSaveButton"
				 update="@form"/>
	</h:form>

</p:dialog>
I put a 'required' attribute in the inputText to validate the content. However, when I click on save, the dialog box closes. This is not the behavior expected. In Firefox, the dialog stays open and the message will be shown.

I'm testing the application on IE8 and I'm using JBoss server 4.2.3GA (The client requested this kind of JBoss version). Primefaces version is PrimeFaces 2.1 RC1 SNAPSHOT
PrimeFaces 2.1
JSF 2.0
GlassFish 3 Server
Mojarra 2.0.2

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

28 Jul 2010, 19:07

Do you get an error?

User avatar
benpad
Posts: 58
Joined: 24 Jun 2010, 04:54
Location: Makati, City Philippines
Contact:

28 Jul 2010, 19:25

Nope. But I found the cause. The modal attribute.
PrimeFaces 2.1
JSF 2.0
GlassFish 3 Server
Mojarra 2.0.2

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests