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 94343

Summary: A simpler way to handle conditional Page Navigation
Product: obsolete Reporter: bugbridge <bugbridge>
Component: visualwebAssignee: Joelle Lam <joellelam>
Status: REOPENED ---    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description bugbridge 2007-02-05 11:33:48 UTC
Original status: 4-Defer; Suggested Status: RESOLVED (Resolution:REMIND)

Original Target Release: mako_dev; Suggested Target Milestone : Dev


Description:
In the Page Navigation view, here's a nice way
to allow for developers to add conditional logic:
Create a "Redirector" visual component which can be
placed visually between pages, and which when
clicked upon a developer can enter code to tell it
to go to page A, B or C based on some logic. So visually
it looks like page 1 on the left, with a arrow
to the Redirector on the right, and then one or more
arrows coming out of the Redirector and going into one
or more pages. Then the user double-clicks inside
the Redirector and puts the conditions (and optional
default case) under which the redirector will send
the user to any one of the pages attached to it.
  Note that the way the condition is specified
could be done really slick by giving the developer
a checkbox/dropdown/choice which allows a developer
to specify how the conditional code will be specified.
One way to specify it is "By passing the page name
as the value of a variable" or "by writing a Java Expression
that outputs a page name" or "by reading the integer
value of a variable and using it to construct the name
of the next page, as in page1, page2, etc", etc.

Evaluation:
Good RFE for Mako
Comment 1 Joelle Lam 2007-09-22 18:21:45 UTC
IDE:-------------------------------------------------
IDE: [9/22/07 10:21 AM] Committing "Navigation Support" started
Checking in VWPContentModel.java;
/cvs/visualweb/navigation/src/org/netbeans/modules/visualweb/navigation/VWPContentModel.java,v  <--  VWPContentModel.java
new revision: 1.18; previous revision: 1.17
done
Checking in VWPContentModelProvider.java;
/cvs/visualweb/navigation/src/org/netbeans/modules/visualweb/navigation/VWPContentModelProvider.java,v  <-- 
VWPContentModelProvider.java
new revision: 1.16; previous revision: 1.15
done
IDE: [9/22/07 10:21 AM] Committing "Navigation Support" finished
Comment 2 Joelle Lam 2007-09-22 18:22:23 UTC
Oops, closed the wrong bug.