Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
Validation Errors for Standard JSF Inputs NOT Rendered in an Ajax Request
Forum Index -> General
Author Message
catalinpetrisor


Joined: 07/06/2009 08:52:04
Messages: 11
Online

Hi Simplica,

I am using standard JSF input components (like h:inputText, h:selectManyListbox etc) in an Ecruiser e:window component set to be ajax-enabled.

When my input components generate FacesMessages as part of their validation process the messages do not get displayed on the screen.

This is the xml snippet of the page:



Please let me know if you need more details.

Thanks,
Catalin P.
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 183
Offline

Hi Catalin,

I've made a simple example based on your code, which works fine for me. I suppose you didn't implement properly the validation method. Please see my example:

catalinpetrisor


Joined: 07/06/2009 08:52:04
Messages: 11
Online

Hi Adina,

I've just noticed that your response came to my inbox as spam.

Regarding the issue, I think I forgot to set ajax=true on the button. That is, the e:button definition should look like below:

<e:window ajax="true">
<h:messages style="color:red;"/>
<h:inputText value="#{StaticBean.age}" validator="#{StaticBean.validateAge}"/>
<e:button action="true" ajax="true" value="Submit"/>
</e:window>

Could you please re-test and check if the issue does reproduce?

Thanks,
Catalin P.
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 183
Offline

Hi Catalin,

We've reproduced the problem, and we've fixed it. By the end of this week we will release a new version of Ecruiser components, which will include also this fix.

Adina
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.7 © JForum Team
Home   |  News   |  Contact   |  About   |  License   |  Privacy   |  Documentation
Copyright © 2009 Simplica Corporation. All rights reserved.