Quickly Adding a Navigation Rule and Navigation Case

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!

Comments:

Post a Comment:
Comments are closed for this entry.
About

johnc

Search

Archives
« April 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today