How to pass Calendar new date in the bean without listener?

UI Components for JSF
Post Reply
isabsent
Posts: 7
Joined: 03 Jun 2011, 09:48

18 Aug 2011, 12:41

I am trying to pass new date from p:calendar (placed in p:dataTable column) to the backing bean:

Code: Select all

<p:column >
     <p:calendar  value="#{bean.date}" >
          <p:ajax />
     </p:calendar>
</p:column> 
It does not update bean.date :( Variants with

Code: Select all

<p:ajax update="@this" event="change"/>
<p:ajax update="@this" event="select"/>
do not update bean.date too. The only way I have found is using of listener. However, I suppose, there should be a way without listener implementation like for simple facelets:

Code: Select all

<p:column>
      <h:inputText value="#{bean.note}" >
          <f:ajax/>
      </h:inputText> 
</p:column>
that works fine for me. Does anybody know how to get it working!?
PrimeFaces 2.2.1 Tomcat 7.0 Mojarra 2.0.3

isabsent
Posts: 7
Joined: 03 Jun 2011, 09:48

18 Aug 2011, 21:50

up! :(
PrimeFaces 2.2.1 Tomcat 7.0 Mojarra 2.0.3

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

18 Aug 2011, 22:02

See forum rules; viewtopic.php?f=3&t=1194 Especially #3.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests