Multi-section support in graphical application builder
A system for managing a web application is disclosed. The system is programmed to enable graphically building a web application having one webpage with multiple views, where a view can have multiple sections and can contain a section from another view. The web application includes a hierarchical structure of nodes respectfully for generating the multiple views. Each node can be accessed separately and each node can reference certain other nodes.
1 . A non-transitory, computer-readable storage medium storing one or more sequences of instructions which when executed cause one or more processors to perform:
receiving a webpage of a web application from a server,
the web application including a hierarchical structure of nodes corresponding to a hierarchy of web addresses,
the webpage including control logic for accessing the hierarchical structure of nodes,
each node including code segments or related data for generating a view of the webpage that conform to specific formats corresponding to specific graphical commands;
generating a first view of the webpage associated with a first web address based on a first node in the hierarchical structure,
the first view having a set of sections;
receiving a request to visit a second web address;
identifying a second node below the first node in the hierarchical structure for generating a second view of the webpage associated with the second web address,
the second view having a plurality of sections;
the second node including a reference to the first node indicating that the second view reuses a first section of the set of sections;
generating the second view based on the second node, wherein the first section of the first view is already rendered and wherein generating the second view comprises keeping, based on the reference to the first node included in the second node, the first section of the first view such that it remains displayed and rendering every other section of the plurality of sections.
2 . The non-transitory, computer-readable storage medium of claim 1 , the one or more sequences of instructions when executed causing the one or more processors to further perform:
in response to the identifying, requesting the second node from the server;
receiving the second node from the server;
loading the received second node into a local memory.
3 . The non-transitory, computer-readable storage medium of claim 2 , the one or more sequences of instructions when executed causing the one or more processors to further perform:
after generating the second view, receiving a second request to visit the first web address;
unloading the received second node from the local memory.
4 . The non-transitory, computer-readable storage medium of claim 1 , the one or more sequences of instructions when executed causing the one or more processors to further perform:
after generating the second view, receiving a second request to visit the first web address;
generating the first view, comprising keeping the first section of the first view and rendering every other section of the set of sections.
5 . The non-transitory, computer-readable storage medium of claim 1 , a node in the hierarchical structure including a configuration indicating when to unload the node or load additional nodes.
6 . The non-transitory, computer-readable storage medium of claim 1 , the graphical commands being translatable to code segments or related data for forming a widget or associating an action with the widget.
7 . The non-transitory, computer-readable storage medium of claim 1 , the graphical commands being translatable to code segments or related data for forming a view of the webpage having multiple sections out of a plurality of views.
8 . The non-transitory, computer-readable storage medium of claim 1 , the second web address being lower in the hierarchy of web addresses than the first web address and being an extension of the first web address.
9 . The non-transitory, computer-readable storage medium of claim 1 ,
identifying the first node associated with the first web address;
requesting the first node from the server;
receiving the first node from the server;
loading the received first node into a local memory.
10 . The non-transitory, computer-readable storage medium of claim 1 , the one or more sequences of instructions when executed causing the one or more processors to further perform
receiving a certain request to visit the first web address,
the webpage being received in response to the certain request.
11 . The non-transitory, computer-readable storage medium of claim 1 , the one or more sequences of instructions when executed causing the one or more processors to further perform:
receiving a certain request to visit a third web address, which is lower than a root of the hierarchy of web addresses;
requesting a third node corresponding to the third web address from the server;
receiving the third node from the server,
the third node including a specific reference to a fourth node;
requesting the fourth node from the server.
12 . The non-transitory, computer-readable storage medium of claim 1 , the one or more sequences of instructions when executed causing the one or more processors to further perform:
receiving a specific request to visit a specific web address;
determining that the specific web address is invalid based on the hierarchical structure;
identifying a third web address based on the specific request;
determining a third node in the hierarchical structure for generating a third view of the webpage associated with the third web address;
generating the third view based on the third node.
13 . A method of managing a computer application, comprising:
receiving a webpage of a web application from a server,
the web application including a hierarchical structure of nodes corresponding to a hierarchy of web addresses,
the webpage including control logic for accessing the hierarchical structure of nodes,
each node including code segments or related data for generating a view of the webpage that conform to specific formats corresponding to specific graphical commands;
generating a first view of the webpage associated with a first web address based on a first node in the hierarchical structure,
the first view having a set of sections;
receiving a request to visit a second web address;
identifying a second node below the first node in the hierarchical structure for generating a second view of the webpage associated with the second web address,
the second view having a plurality of sections;
the second node including a reference to the first node indicating that the second view reuses a first section of the set of sections;
generating the second view based on the second node, wherein the first section of the first view is already rendered and wherein generating the second view comprises keeping, based on the reference to the first node included in the second node, the first section of the first view such that it remains displayed and rendering every other section of the plurality of sections.
14 . The method of claim 13 , further comprising:
in response to the identifying, requesting the second node from the server;
receiving the second node from the server;
loading the received second node into a local memory.
15 . The method of claim 14 , further comprising:
after generating the second view, receiving a second request to visit the first web address;
unloading the received second node from the local memory.
16 . The method of claim 13 , further comprising:
after generating the second view, receiving a second request to visit the first web address;
generating the first view, comprising keeping the first section of the first view and rendering every other section of the set of sections.
17 . A system for managing a computer application, comprising:
one or more processors; and
a computer-readable storage medium storing one or more sequences of instructions which, when executed cause the one or more processors to perform the following processes:
receiving a webpage of a web application from a server,
the web application including a hierarchical structure of nodes corresponding to a hierarchy of web addresses,
the webpage including control logic for accessing the hierarchical structure of nodes,
each node including code segments or related data for generating a view of the webpage that conform to specific formats corresponding to specific graphical commands;
generating a first view of the webpage associated with a first web address based on a first node in the hierarchical structure,
the first view having a set of sections;
receiving a request to visit a second web address;
identifying a second node below the first node in the hierarchical structure for generating a second view of the webpage associated with the second web address,
the second view having a plurality of sections;
the second node including a reference to the first node indicating that the second view reuses a first section of the set of sections;
generating the second view based on the second node, wherein the first section of the first view is already rendered and wherein generating the second view comprises keeping, based on the reference to the first node included in the second node, the first section of the first view such that it remains displayed and rendering every other section of the plurality of sections.
18 . The system of claim 17 , wherein the processes performed by the processors further comprise:
in response to the identifying, requesting the second node from the server;
receiving the second node from the server;
loading the received second node into a local memory.
19 . The system of claim 18 , wherein the processes performed by the processors further comprise:
after generating the second view, receiving a second request to visit the first web address;
unloading the received second node from the local memory.
20 . The system of claim 17 , wherein the processes performed by the processors further comprise:
after generating the second view, receiving a second request to visit the first web address;
generating the first view, comprising keeping the first section of the first view and rendering every other section of the set of sections.