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.
Jsf config loader does not pick up VWP faces-config.xml. Please refer to the picture attached. The lower project is vwp project while the upper one is simply a jsf project. Notice the icon attached to the faces-config. This problem seems to be intermittent. I believe I have seen a VWP project with this loaded correctly. This also seems to be a new issue as it did not seem to be a problem before April 17, 2007. The JSF Configuration File Loader is looking for Mime Type : text/x-jsf+xml
Created attachment 41126 [details] Loading issue image
Confirmation: Sometimes the jsf configuration loader does pick up this file even in VWP, but most of the times it does not. But it does seem in only works once and then does not work again.
Created attachment 41127 [details] It did get loaded.
I restarted the ide this time, and it came back. See the image I just attached.
I can always reproduce here. Looks like the org.netbeans.modules.web.jsf.JSFConfigLoader is filtered out the config file from other places. I.e., it only accepts config file created by JSF framework.
JSFConfigDataLoader doesn't have any notion about jsf framework. It's standard dataloader. Could you attach the file, which is not recognized properly?
Created attachment 41177 [details] faces-config file that is sometimes picked up by the loader.
Created attachment 41178 [details] beginning faces config.
VWP users rely on a visual page navigation design experience. I've seen this bug almost 3-4 times today on our latest bits (VWP 070418_4). Bumping priority due to following: - frequently observed - loss of expected VWP design functionality Interestingly, when I re-started the IDE to test the workaround, I saw the pop-up message shown in the attached image.
Created attachment 41195 [details] session settings pop-up error
The message is just result, that the serialized top component is not not able to deserialized. The reason is that the file in the opened editor is handled by different DataLoader, then was diring serialization.
NB 0704171800 and VW 070419_1 I'm seeing every time when a new project is created. I have to close and restart the IDE.
I have workaround for this issue. Currently visualweb creates "faces-config.xml" by using DataObject.createFromTemplate API. If I change the creating exactly just like JSF framework by using FileUtil.createData instead, then it works. Looks like there is some kind of race condition among the DataLoader. Petr, any comments?
This workaround is now in the trunk. Please verify.
Try creating more than 40 projects so far today and all work.
I'm sorry to be quiet so far. How does the template look like, when you use DataObject.createFromTemplate ? The template has the appropriate content or you include the content after? If you include the content after creation it has to be done in the same atomic action as creating.
Verified the fix in Build 200705021220, WinXP JDK 1.5U11.