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 remove de entry from the model, but a entry specify by me.
>
>
>
>
>
> Jurgen Lust-2 wrote:
>>
>> The ScheduleModel.removeEntry() method expects a ScheduleEntry as
>> parameter. I suppose you use Hibernate for database access, so what you
>> should do is retrieve the ScheduleEntry from the database, using the id,
>> and feed the result to the removeEntry method. 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 entry in a model of schedule
>>> tomahawk. the example in remove a selected entry work fine, but how to
>>> eliminate a determinated entry?
>>>
>>>
>>> i try with this code:
>>>
>>>
>>> DefaultScheduleEntry entry = new DefaultScheduleEntry();
>>>
>>> entry.setId(select);
>>> entry.setStartTime(start);
>>> entry.setEndTime(end);
>>> entry.setTitle(select7);
>>> entry.setDescription(select2);
>>>
>>> model.removeEntry(entry);
>>> model.refresh();
>>>
>>> i defined every value for the entry, and then i want to remove that
>>> entry!
>>> Any help please!
>>>
>>> Tks for all.
>> --
>> Jurgen Lust <[EMAIL PROTECTED]>
>>
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/Re%3A-Remove-Entry-from-schedule-Tomahawk-tf4281655.html#a12198136
Sent from the MyFaces - Users mailing list archive at Nabble.com.