Bug 171730 - [faces-config editor] Saves source file three times for each Save action
Summary: [faces-config editor] Saves source file three times for each Save action
Status: NEW
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P4 minor (vote)
Target Milestone: Future   Edit
Assignee: Debajit Adhikary CLA
QA Contact:
URL:
Whiteboard: faces-config editor
Keywords: bugday, helpwanted, performance
Depends on:
Blocks:
 
Reported: 2007-01-25 15:22 EST by Cameron Bateman CLA
Modified: 2016-03-31 17:11 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron Bateman CLA 2007-01-25 15:22:41 EST
When the Faces Config Editor's doSave() method is called by the workbench, the source file is saved three times: 

1) The FacesConfigArtifactEdit's save is called
2) The PageFlow Editor's save is called
3) The SSE editor's save is called.

Need to determine if there is a reason for this.  It creates secondary problems because three distinct workspace change events are fired each time the file is saved.  So, for example, each VPD refreshes its palette three times everytime the Faces Config file is saved (as a side issue, I wonder why saving Faces Config triggers a palette reload to begin with).  This is not trivial operation but the palette manager has no way to know whether the three save events it sees are one user save or three.
Comment 1 Raghunathan Srinivasan CLA 2007-01-25 16:32:59 EST
Triaging for 2.0
Comment 2 John Lanuti CLA 2007-04-11 10:46:29 EDT
Updating target to RC0.
Comment 3 Raghunathan Srinivasan CLA 2007-04-13 17:26:55 EDT
Consider for 3.0
Comment 4 Raghunathan Srinivasan CLA 2008-04-14 18:52:35 EDT
Deferred due to lack of resources.