Quickly Adding a Navigation Rule and Navigation Case
By johnc on Jun 01, 2006
Short and sweet revelation regarding setting JSF navigation in faces-config.xml. I thought in NetBeans IDE 5.5 you had to first add a navigation rule with the Add Navigation Rule command, then add a navigation case separately with the Add Navigation Case command.
Actually, you can do both at once by just going to Add Navigation Case right off the bat. If a navigation rule for the page you specified in From View already exists, the IDE'll add the case to that rule. If it doesn't exist, it'll create it.
Which begs the question, why do you need the separate Add Navigation Rule command at all? Would you ever want to create an empy navigation rule? Or is this just for discoverability? I could see a user saying "I can't create a navigation case yet, I haven't even defined the navigation rule!"
All of these puny revelations are brought to you from testing some very cool short tutorials which you shall soon see from the Java EE Tutorials team. So stay tuned!