Re: Remove Entry from schedule Tomahawk

2007-08-18 Thread ignicolist
Your last mail have the same thing! :confused: Dont have nathing changed!! Michał 'Gandalf' Stawicki wrote: Yes, it was wrong. I have posted correct one, working. see my previous mail. On 18/08/07, ignicolist [EMAIL PROTECTED] wrote: Hi again, Tks for your great example, i do every

Re: Remove Entry from schedule Tomahawk

2007-08-18 Thread ignicolist
for me. On 18/08/07, ignicolist [EMAIL PROTECTED] wrote: Your last mail have the same thing! :confused: Dont have nathing changed!! Michał 'Gandalf' Stawicki wrote: Yes, it was wrong. I have posted correct one, working. see my previous mail. On 18/08/07, ignicolist [EMAIL

Re: Remove Entry from schedule Tomahawk

2007-08-18 Thread ignicolist
here!! Michał 'Gandalf' Stawicki wrote: http://www.mail-archive.com/users@myfaces.apache.org/msg41756.html You copied whole class from this post and it still doesn't work? Worked for me. On 18/08/07, ignicolist [EMAIL PROTECTED] wrote: Your last mail have the same thing

Re: Remove Entry from schedule Tomahawk

2007-08-17 Thread ignicolist
Any help please? Tks! ignicolist wrote: Its what i am doing but don´t work! an example: DefaultScheduleEntry entry = new DefaultScheduleEntry(); entry.setId(1); model.removeEntry(entry); this code is supose to remove the entry from de model with id 1 no? i just want

Re: Remove Entry from schedule Tomahawk

2007-08-17 Thread ignicolist
entry from the database, using the supplied id, before you delete it? Jurgen Op donderdag 16-08-2007 om 14:01 uur [tijdzone -0700], schreef ignicolist: Its what i am doing but don´t work! an example: DefaultScheduleEntry entry = new DefaultScheduleEntry(); entry.setId(1

Re: Remove Entry from schedule Tomahawk

2007-08-17 Thread ignicolist
model.removeEntry(entry);//*2 model.refresh(); } this is was the method that remove a selected entry from the example in myfaces, so i change *1 and *2 that was supose to work no? but dont work! Any sujesction? ignicolist wrote: Yes, because the entry

Re: Remove Entry from schedule Tomahawk

2007-08-17 Thread ignicolist
); ScheduleEntry foo2 = new MyScheduleEntry(bar); model.addEntry(foo); model.removeEntry(foo2); // wrong mode.removeEntry(foo); //ok On 17/08/07, ignicolist [EMAIL PROTECTED] wrote: Yes, because the entry when i select it remove with model.removeSelectedEntry(); but if i specify his

Re: Remove Entry from schedule Tomahawk

2007-08-17 Thread ignicolist
'Gandalf' Stawicki wrote: I wrote the code in 'on the fly' just to give you idea how should it look, I didn't try it On 17/08/07, Michał 'Gandalf' Stawicki [EMAIL PROTECTED] wrote: Simply casting it should be fine: for(ScheduleEntry e : (TreeSetScheduleEntry)entries) On 17/08/07, ignicolist

Re: Remove Entry from schedule Tomahawk

2007-08-17 Thread ignicolist
the entries. ignicolist wrote: Well i am a litle noob to all these, so i cant put your ideas to work! :-(( So i am using SimpleScheduleModel, so you say to create that class in the component Schedule or in my aplication? Because i create the class in my aplication and don´t work. Dam

Re: Remove Entry from schedule Tomahawk

2007-08-17 Thread ignicolist
; } private TreeSetScheduleEntry entries; } On 17/08/07, ignicolist [EMAIL PROTECTED] wrote: Sorry to bee so boring and noob, but i realy need to do this, i need a funcionality to show and occult calendars, and i have a entry associate to a calendar, so when i need occult the calendar i need

Re: Remove Entry from schedule Tomahawk

2007-08-17 Thread ignicolist
; } return false; } private TreeSetScheduleEntry entries; } On 17/08/07, ignicolist [EMAIL PROTECTED] wrote: Sorry to bee so boring and noob, but i realy need to do this, i need a funcionality to show and occult calendars, and i have

Re: Remove Entry from schedule Tomahawk

2007-08-17 Thread ignicolist
; } return false; } } On 17/08/07, ignicolist [EMAIL PROTECTED] wrote: i have the class correct without errors. But when i call it show a blank page! ExtendedScheduleModel x = new ExtendedScheduleModel(); x.Remove2(8); I call the class like that. I

Re: Remove Entry from schedule Tomahawk

2007-08-16 Thread ignicolist
. In that removeEntry method, you just delete it with your Hibernate DAO. You could of course add a method removeEntry(String/Long/Whatever id) that does all of this. Jurgen Op donderdag 16-08-2007 om 11:20 uur [tijdzone -0700], schreef ignicolist: Hi to all, i want to eliminate a especific

commandButton

2007-08-09 Thread ignicolist
Hi, i have this code: h:selectOneRadio id=mode value=#{scheduleSettings2.mode} f:selectItem itemValue=0 itemLabel=day/ f:selectItem itemValue=1 itemLabel=workweek/ f:selectItem itemValue=2

Re: commandButton

2007-08-09 Thread ignicolist
you can get param value like this: this.operation = (String)getApplication().createValueBinding(#{param.operation}).getValue(facesContext); I hope it will help you. - Mensaje original De: ignicolist [EMAIL PROTECTED] Para: users@myfaces.apache.org Enviado: jueves, 9 de

JSF Authentication

2007-08-08 Thread ignicolist
Hi, i need some help, i have a aplication in jsf, with a sql database using hibernate, and i want implement a login and logout, but i dont know how, i google much, but all the solutions are so complicated. so i have a example with a filter, and a put that filter block the pages for non log

Re: JSF Authentication

2007-08-08 Thread ignicolist
is if you could send to me i would apreciate very much. TKS Anton Gavazuk wrote: What you mean - filter for sessions? I can send you some pieces of my own app with login\logut funcs 2007/8/8, ignicolist [EMAIL PROTECTED]: Hi, i need some help, i have a aplication in jsf

Re: JSF Authentication

2007-08-08 Thread ignicolist
this approach. unfortunately I can't share my code. On 08/08/07, ignicolist [EMAIL PROTECTED] wrote: is if you could send to me i would apreciate very much. TKS Anton Gavazuk wrote: What you mean - filter for sessions? I can send you some pieces of my own app with login\logut funcs

RE: JSF Authentication

2007-08-08 Thread ignicolist
in if he wants to access pages that need hi to be logged in, and redirect to login page if he is not. there were some good articles describing this approach. unfortunately I can't share my code. On 08/08/07, ignicolist [EMAIL PROTECTED] wrote: is if you could send to me i would

Re: JSF Authentication

2007-08-08 Thread ignicolist
is logged in if he wants to access pages that need hi to be logged in, and redirect to login page if he is not. there were some good articles describing this approach. unfortunately I can't share my code. On 08/08/07, ignicolist [EMAIL PROTECTED] wrote: is if you could send to me i would

RE: JSF Authentication

2007-08-08 Thread ignicolist
Tks kito, and good Book You write. Congr! kito99 wrote: -Original Message- From: ignicolist [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 10:28 AM To: users@myfaces.apache.org Subject: RE: JSF Authentication My way is like in the book: JavaServer Faces JSF

Re: JSF Authentication

2007-08-08 Thread ignicolist
://www.acegisecurity.org/ If you should need help with this I can help. Martin - http://www.martinahrer.at/blog/ ignicolist wrote: Hi, i need some help, i have a aplication in jsf, with a sql database using hibernate, and i want implement a login and logout, but i dont know how, i google much

Re: Schedule tomahawk

2007-08-02 Thread ignicolist
ignicolist: Hi again, but i cant make it! :-(( i have this: private ArrayList scheduleItems = new ArrayList(); List scheduleResult = session.createQuery(select s.id, s.description, s.comments, s.endTime, s.startTime, s.subtitle, s.title, s.isAllDay from + Schedule as s

Re: Schedule tomahawk

2007-08-01 Thread ignicolist
,Date) and loadDayAttributes(Date). In the first method, you load the entries for the specified period of time from the database. Jurgen 2007/7/31, ignicolist [EMAIL PROTECTED]: Hi, i am making a project using myfaces schedule. and everything is working fine, but my problem is how i

Re: Schedule tomahawk

2007-08-01 Thread ignicolist
stuff isn't required, since it is only a read operation. Jurgen Op woensdag 01-08-2007 om 03:00 uur [tijdzone -0700], schreef ignicolist: Hi, this is my loadentries in SimplesScheduleModel.java, can i do this? Is this correct? Because it give me error. I want to know

Re: Schedule tomahawk

2007-08-01 Thread ignicolist
stuff isn't required, since it is only a read operation. Jurgen Op woensdag 01-08-2007 om 03:00 uur [tijdzone -0700], schreef ignicolist: Hi, this is my loadentries in SimplesScheduleModel.java, can i do this? Is this correct? Because it give me error. I want to know

Re: Schedule tomahawk

2007-08-01 Thread ignicolist
=markup Make sure that the id property of each ScheduleEntry is unique. You can use the database primary key for this. Jurgen Op woensdag 01-08-2007 om 06:42 uur [tijdzone -0700], schreef ignicolist: Hi, first of all tks for your patience to me. i have this in loadEntries: private

Schedule tomahawk

2007-07-31 Thread ignicolist
Hi, i am making a project using myfaces schedule. and everything is working fine, but my problem is how i coud make the the entries of schedule could be read by a database? And how to put the views day,week and moth using the same model? Because if i use diferent models the entries in day view

Re: Schedule tomahawk

2007-07-31 Thread ignicolist
org.apache.myfaces.custom.schedule.model.AbstractScheduleModel for convenience. Now you just need to implement the methods loadEntries(Date,Date) and loadDayAttributes(Date). In the first method, you load the entries for the specified period of time from the database. Jurgen 2007/7/31, ignicolist [EMAIL PROTECTED]: Hi, i

Database in Schedule Tomahawk

2007-07-30 Thread ignicolist
Database in Schedule Tomahawk Search: Hi, i am very new jsf an java, so i am making a project using schedule from tomahawk myfaces, and i need some help in puting a database to read de entries and save. i am using hibernate and mysql. If someoane have any examples to help me...i apreciate. Tks