Schedule: edit events from database

UI Components for JSF
Post Reply
it_is_not_eve
Posts: 6
Joined: 19 Sep 2010, 12:42

20 Sep 2010, 14:16

I've got a problem with edition events saved in database :( I mean, that changes are not saved in database.

My code in Stateless ScheduleFacade:

Code: Select all

    public void editSE(ScheduleEvent event) {
            try {
                Query q = em.createQuery("UPDATE Schedule e SET e.title = :title, e.startDate = :startDate, e.endDate = :endDate, e.allDay = :allDay WHERE e.id = :id");
                q.setParameter("id", event.getId());
                q.setParameter("title", event.getTitle());
                q.setParameter("startDate", event.getStartDate());
                q.setParameter("endDate", event.getEndDate());
                q.setParameter("allDay", event.isAllDay());
                int updated1 = q.executeUpdate();
            } catch (Exception e) {
                System.out.println(e);
            }

    }
And I have no errors in console.. :(
How can I resolve edition events in database?

mirzabilal186
Posts: 5
Joined: 09 Apr 2013, 16:22

01 May 2013, 23:50

same problelm :(

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

02 May 2013, 08:00

I don't want to sound rude, but you should read the forum posting rules (link in my signature) since your post is kind of the worst one ever... And no, I'm not kidding...

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

08 May 2013, 07:30

kukeltje wrote:since your post is kind of the worst one ever... And no, I'm not kidding...
Wow +1

i was about to respond, until i saw your comment. i was reading the OP and overlooked the 'worst one ever'. :)
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

pzoli
Posts: 100
Joined: 27 Feb 2012, 20:52
Location: Hungary
Contact:

08 May 2013, 09:27

it_is_not_eve wrote:I've got a problem with edition events saved in database :( I mean, that changes are not saved in database.
I used Schedule with JBoss and GlassFish,too.
There is server side persistence problem, which isn't JSF task.

As far as I post here, and as kukeltje post it, the signature can help the answer, because it show your development enviroment.
JBoss Developer Studio 11.3.0.GA
Eclipse Oxygen
Wildfly 11
PrimeFaces 6.2.3, PrimaFaces Extensions 6.2.3
Mojarra 2.2.11-jbossorg-1, MyFaces 2.2.8, Deltaspike 1.7.1
MySQL, Oracle, MS-SQL, PostgreSQL, NoSQL

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 57 guests