This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 115178 - TwoPageCrudTable sample doesn't delete data upon Delete
Summary: TwoPageCrudTable sample doesn't delete data upon Delete
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: John Baker
URL:
Keywords:
Depends on: 119252
Blocks:
  Show dependency tree
 
Reported: 2007-09-10 17:32 UTC by Dan Kolar
Modified: 2007-10-17 17:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Kolar 2007-09-10 17:32:53 UTC
full build 200709100000  jdk1.5.0_13

1) Create TwoPageCrudTable sample
2) Run it
3) click Delete on any entry

Entry isn't deleted.
Comment 1 _ alexpetrov 2007-09-10 17:54:02 UTC
Please, answer the following questions:
1). Does the method "delete_action()" contain a set of lines? 
    tripDataProvider.removeRow(rk);
    tripDataProvider.commitChanges();
    tripDataProvider.refresh();

2). Does a virtual form "add/revert/delete" exist?
    Does this virtual form include 3 JSF buttons "add", "revert", "delete"?
Comment 2 Dan Kolar 2007-09-10 18:02:16 UTC
1) Didn't found any delete_action() anywhere, where it should be?

2) I see only Delete / Update buttons in Page1.jsp 
Comment 3 _ alexpetrov 2007-09-10 18:28:36 UTC
Oh, I'm sorry, I meant the method "deleteButton_action()" (and I see that there are no virtual forms in this project).

OK, please, try to add the line
tripDataProvider.refresh();
after the line "tripDataProvider.commitChanges();".

And then check whether the selected table row will be deleted or not.
Comment 4 John Baker 2007-10-10 23:19:36 UTC
dkolar please evaluate based on the latest comments
Comment 5 Dan Kolar 2007-10-11 09:02:35 UTC
Adding this line doesn't fix it. Data still note deleted and persist in table.
Comment 6 John Baker 2007-10-16 03:06:40 UTC
Fixed.  Action expression was missing from Page1.jsp 

Checking in visualweb/samples/webapps/TwoPageCrudTable/web/Page1.jsp;
/cvs/visualweb/samples/webapps/TwoPageCrudTable/web/Page1.jsp,v  <--  Page1.jsp
new revision: 1.2; previous revision: 1.1
done
Comment 7 Dan Kolar 2007-10-17 11:59:17 UTC
Seems fine now.