Calendar and required="true"

UI Components for JSF
User avatar
FredMestre
Posts: 31
Joined: 07 Jul 2010, 22:29
Location: Teresina

04 Aug 2010, 15:38

When i use calendar component with mode="popup" and required="false" it works fine. But with mode="popup" and required="true", it doesnt works after require validation. Popup doesn't appears anymore. Some idea :?:
  • Primefaces 2.2 Final
    Glassfish 3.1

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

05 Aug 2010, 12:41

Do you get any error, javascript or java?

User avatar
FredMestre
Posts: 31
Joined: 07 Jul 2010, 22:29
Location: Teresina

05 Aug 2010, 13:35

No :(
  • Primefaces 2.2 Final
    Glassfish 3.1

timotius_pamungkas
Posts: 117
Joined: 19 May 2010, 03:50

06 Aug 2010, 03:06

I've mentioned this issue before, bot not yet accepted

http://code.google.com/p/primefaces/iss ... %20Summary

thanks
Tomcat 7.0.25
Mojarra 2.1.6
Primefaces 3.1, 3.2
Firefox 10 and IE 7/IE 8

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

06 Aug 2010, 12:13

Hi,

Can you try with attached required validator please?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
FredMestre
Posts: 31
Joined: 07 Jul 2010, 22:29
Location: Teresina

06 Aug 2010, 13:18

This is my xhtml:

Code: Select all

<p:column>
  <p:calendar id="dataCapital" pattern="dd/MM/yyyy" locale="pt_BR" effect="fadeIn" required="true" requiredMessage="Preenchimento Obrigatório" value="#{empresaController.empresa.dataCapital}"/>
  <p:message for="dataCapital"/>
</p:column>
if required="true", after require validation, calendar dont works anymore.
  • Primefaces 2.2 Final
    Glassfish 3.1

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

06 Aug 2010, 20:52

That calendar is in a column, can you try outside the datatable?

User avatar
FredMestre
Posts: 31
Joined: 07 Jul 2010, 22:29
Location: Teresina

06 Aug 2010, 21:09

The column its just for organize the code:

Code: Select all

<h:panelGrid columns="2" id="panelGeral" columnClasses="odd-row,even-row">
  <h:outputLabel value="Data do Capital:" styleClass="saidaTexto" for="dataCapital" />
  <p:column>
    <p:calendar id="dataCapital" pattern="dd/MM/yyyy" locale="pt_BR" effect="fadeIn" required="true" requiredMessage="Preenchimento Obrigatório" value="#{empresaController.empresa.dataCapital}"/>
    <p:message for="dataCapital"/>
  </p:column>
</h:panelGrid>
  • Primefaces 2.2 Final
    Glassfish 3.1

callahan
Posts: 768
Joined: 27 May 2010, 22:52

06 Aug 2010, 22:11

Hi,

p:column is intended for usage in p:dataTable. You should replace it with h:panelGroup.

User avatar
FredMestre
Posts: 31
Joined: 07 Jul 2010, 22:29
Location: Teresina

06 Aug 2010, 22:21

Still did not work:

Code: Select all

<h:panelGroup columns="2" id="panelGeral" columnClasses="odd-row,even-row">
  <h:outputLabel value="Data do Capital:" styleClass="saidaTexto" for="dataCapital" />
  <p:column>
    <p:calendar id="dataCapital" pattern="dd/MM/yyyy" locale="pt_BR" effect="fadeIn" required="true" requiredMessage="Preenchimento Obrigatório" value="#{empresaController.empresa.dataCapital}"/>
    <p:message for="dataCapital"/>
  </p:column>
</h:panelGroup>
:geek:
  • Primefaces 2.2 Final
    Glassfish 3.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 57 guests