-
60. Schedule
blabno Jan 20, 2011 9:56 AM (in response to moha1984)In schedule's online demo it works as it should so it is 100% your backend/configuragion mistake.
-
61. Schedule
narvava Feb 1, 2011 4:11 AM (in response to blabno)Hi,
Is data iteration possible in this calendar like we iterate through rich datagrid. I need to iterate data on this calendar from particular date to another date.
If it is, could you plz send me any example code if possible.
Regards,
Naresh.
-
62. Schedule
blabno Feb 1, 2011 4:15 AM (in response to narvava)Yes, data iteration is posible. Just provide apropriate data model. See http://bernard.labno.pl/svn/richfaces/samples/schedule-sample/
-
63. Schedule
narvava Feb 1, 2011 2:45 PM (in response to blabno)hi,
Thanx a lot for quick reply. I can not access this link as I don't have svn. I am new to richfaces ...Could you please attach any rich faces page which contains calendar with data iteration code. What I have done is I m getting a hashmap with date and schedule data(key and object) and comparing date in calendar and show the respective schedule on that particular date. I hope this is possible with Schedule.
Another thing is I have included jar and required taglib but could not work with schedule tags. I am using richfaces 3.3.3thanks
Naresh.
-
64. Schedule
blabno Feb 1, 2011 4:53 PM (in response to narvava)Checkout the demo (link is somewhere in this thread).
This component is not part of official release so you must grab a separate jar which is linked at thread this root post.
-
65. Re: Schedule
blabno Mar 18, 2011 6:05 AM (in response to blabno)Major bug in schedule component has been found recently and fixed. There was a problem when server and client were in different timezones. Date (i.e. selected day) was converted on client side to milliseconds since epoch, on server it was done the other way around, but the same number had different meaning in different timezones. Thus user could select 9:30-11:00 and on server date could be i.e. 10:30-12:00.
Please note that schedule component is now maintained under 3.3.4-SNAPSHOT version. You may still use it with RF 3.3.3.Final.
-
66. Schedule
gprobst81 Apr 6, 2011 10:58 AM (in response to blabno)Hi Bernard,
few days I found here this great schedule component. Seems to be great work.
Unfortunetly I don't know how to use it in my app.
I have deploy the snapshot.jar you offer on first page in our nexus and can built my project with maven.
I include the backing bean and schedule.xhtml out of the example. As result nothing happens ... no error no scheduler :-(
I would say I forgot some urgent steps ;-) Can you, or somebody else on the board, explain more in detail what I have to do?
Thanks in advance!
Guido
-
67. Schedule
blabno Apr 6, 2011 11:15 AM (in response to gprobst81)Make sure you have default script and style loading strategy configured.
-
68. Re: Schedule
gprobst81 Apr 7, 2011 6:46 AM (in response to blabno)Thx for quick reply!
Is LoadScript=All strategy a must criteria? Because we have a portal environment (liferay) with another jquery so we had to switch it off.
We load both framework.pack.js and ui.pack.js manually. While loading schedule.xhtml I get no js error (ex. missing objects, etc.).
What about configuration like faces-config (excluding bean definition) or taglib.xml. Is there something to do for the schedule component/tag or is it implicit configured in jar?
-
69. Re: Schedule
blabno Apr 6, 2011 1:59 PM (in response to gprobst81)If you must have it switched off then add following to your facelet:
{code:xml}
<a4j:loadStyle src="resource://org/richfaces/renderkit/html/css/fullcalendar.css"/>
<a4j:loadScript src="resource://org/richfaces/renderkit/html/scripts/ui.core.js"/>
<a4j:loadScript src="resource://org/richfaces/renderkit/html/scripts/ui.draggable.js"/>
<a4j:loadScript src="resource://org/richfaces/renderkit/html/scripts/ui.resizable.js"/>
<a4j:loadScript src="resource://org/richfaces/renderkit/html/scripts/fullcalendar.js"/>
<a4j:loadScript src="resource://org/richfaces/renderkit/html/scripts/richfaces.schedule.js"/>
<a4j:loadScript src="resource://org.richfaces.renderkit.html.scripts.ScheduleMessages"/>{code:xml}
-
70. Re: Schedule
gprobst81 Apr 7, 2011 6:46 AM (in response to blabno)Hi,
thanks for your help. Scheduler renders now :-)
Currently I cannot move or resize such items. Is there some known issue on that?
During debug, if I try to resize or move I see that no Listener method (taskMoved(), taskResized()) is called, except editable is true.
I attached my schedule.xhtml and the backing bean ScheduleBean.java.
Do you see anything going wrong? Tell me, if you need more info from me...
-
ScheduleBean.java.zip 4.2 KB
-
schedule.xhtml.zip 1.5 KB
-
-
71. Re: Schedule
blabno Apr 7, 2011 10:41 AM (in response to gprobst81)I've tested your code in tomcat and i'm getting nullpointers cause your taskMoved and taskResized methods return nulls, while they should return booleans.
Jay, or Nick, if event listener have wrong signature (returning void in stead of boolean), then how should the component act? Treating void/null as false may make it difficult to debug.
-
72. Re: Schedule
gprobst81 Apr 7, 2011 11:54 AM (in response to blabno)Oh damn, I just forgot to change it back. This was a test to try what happens.
The origin code from you has boolean return value as you said and those two listerners are also not working proberly in my version.
Except the wrong viod return statement, is the code looking right? I might changed some listerner class names, because some out of the example not exist. For example in the example the listener dateRangeSelected(ScheduleDateRangeSelectedEvent event) method dont know ScheduleDateRangeSelectedEvent.class. I have to change it to ScheduleDateRangeSelectEvent!
Maybe it could st. wrong because of our Portal environment. I know it uses potal specific classes for instance PortalAjaxViewRoot and runs in a PortletSession instead HttpSession, etc.
I'am not a js developer but my feeling is something wrong with js. As I try to resize or move items some js should be calling first, isn't it?
Hmm...any idea I could try out?
Thx in advance!
Guido
-
73. Re: Schedule
blabno Apr 7, 2011 1:26 PM (in response to gprobst81)Your code was working good when i've changed signatures to return Boolean. Component hasn't been tested in portal environment. I don't have portal so if anyone else could test it I would be greateful.
Are you using schedule 3.3.3.Final or 3.3.4-SNAPSHOT? I suggest using 3.3.4-SNAPSHOT. You can use schedule-3.3.4-SNAPSHOT with richfaces 3.3.3.Final.
-
74. Re: Schedule
gprobst81 Apr 8, 2011 2:29 AM (in response to blabno)Ok! I'll further try to make it working. If there sth. portal specific things to recognize I will tell you.
We use the snapshot version.