Board index JavaServer Faces General p:schedule view attribute

p:schedule view attribute

Components, Ajax Framework, Utilities and More.

Post 07 Apr 2010, 17:19

Posts: 2
Is it possible to store the value of the view selection to a bean ?
<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.

Post 08 Apr 2010, 10:36

Posts: 14916
Location: Cybertron

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?
PrimeFaces Lead

Post 08 Apr 2010, 11:47

Posts: 2
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.

Post 09 Apr 2010, 17:15

Posts: 14916
Location: Cybertron

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

Post 12 Apr 2012, 14:25

Posts: 78
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

Post 12 Apr 2012, 19:48

Posts: 5701
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 4.0.x, Extensions 1.2.1, Push (Atmosphere 2.1.3)
TomEE 1.6.1 (Tomcat 7.0.53), MyFaces Core 2.2.2
JUEL 2.2.6 | OmniFaces | EclipseLink-JPA/Derby | Chrome

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

Post 13 Apr 2012, 06:44

Posts: 78
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


Return to General