p:schedule view attribute

UI Components for JSF
Post Reply
ginopablo
Posts: 2
Joined: 06 Apr 2010, 16:36

07 Apr 2010, 17:19

Is it possible to store the value of the view selection to a bean ?

Code: Select all

<p:schedule id="myschedule" view="#{scheduleController.view}" value="#{scheduleController.eventModel}" editable="true" widgetVar="myschedule" 
this doesn't work because the view attribute does not get updated by the schedule component.
It's only update in one way from code to component.
Any change made with the buttons month , day or week do not update the view attribute and thus the bean.

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

08 Apr 2010, 10:36

That is for initial display only on page load and not used to update that property, after a whole page refresh, schedule will use whatever scheduleController.view returns.

I think we can add an ajax listener for you to hook-in to the view change, like onViewChangeListener="#{bean.listener}" will be processed with ajax when user changes the view, it can give you a hook to save the state of schedule right? What do you think?

ginopablo
Posts: 2
Joined: 06 Apr 2010, 16:36

08 Apr 2010, 11:47

first of all thanks for your quick reply cagatay.
I think such a hook would give us more possibilities on functionality we could create.

well done with primefaces.

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

09 Apr 2010, 17:15

Can you please create a ticket in issue tracker so we can't lose this discussion?

badhuman7
Posts: 78
Joined: 29 Mar 2012, 07:00

12 Apr 2012, 14:25

Hi.

Can you please guide me from this Question that

--> How to give link from Calendar to Schedule (i.e) if i click on the date in the Calendar as 12 april,2012 it should display as 12th april ,2012 on the schedule time table .

So can you please help me to sort out from this problem..Please. :?:
PrimeFaces-3.2,Tomcat-6.0, Java-6,Eclipse-Helios

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

12 Apr 2012, 19:48

badhuman7 wrote:Hi.

Can you please guide me from this Question that

--> How to give link from Calendar to Schedule (i.e) if i click on the date in the Calendar as 12 april,2012 it should display as 12th april ,2012 on the schedule time table .

So can you please help me to sort out from this problem..Please. :?:
Click URLs below and read from top to bottom (each page opened via URL):

viewtopic.php?f=3&t=18176

(which is referenced by forum topic at URL above; adding this comment, because some don't like to 'read' entire topics and 'learn' from 'entire' conversation)
http://code.google.com/p/primefaces/iss ... ail?id=930

Please don't miss the recommended solutions/workarounds in the URLs above. Reply with your solution (provide bean/xhtml, please).
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

badhuman7
Posts: 78
Joined: 29 Mar 2012, 07:00

13 Apr 2012, 06:44

smithh032772 wrote:
badhuman7 wrote:Hi.

Can you please guide me from this Question that

--> How to give link from Calendar to Schedule (i.e) if i click on the date in the Calendar as 12 april,2012 it should display as 12th april ,2012 on the schedule time table .

So can you please help me to sort out from this problem..Please. :?:
Click URLs below and read from top to bottom (each page opened via URL):

viewtopic.php?f=3&t=18176

(which is referenced by forum topic at URL above; adding this comment, because some don't like to 'read' entire topics and 'learn' from 'entire' conversation)
http://code.google.com/p/primefaces/iss ... ail?id=930

Please don't miss the recommended solutions/workarounds in the URLs above. Reply with your solution (provide bean/xhtml, please).

Thanks Smithh ...i will definitely try for that..i am new to this field..so learning slowly...surely the links that u have provide are very useful...what ever i come up with i will be sharing here...
PrimeFaces-3.2,Tomcat-6.0, Java-6,Eclipse-Helios

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 42 guests