Package org.apache.juneau.petstore.console.pages


package org.apache.juneau.petstore.console.pages
Builder twins of the petstore console pages: each page's .ftlh file rebuilt with PageSpec, served when the page is requested with ?builder.

Each method mirrors its template card for card; PetstoreTwins_Test checks the two render the same page contract. The base chrome (base.ftlh: title, nav, badge, facts, scripts, footer) is not rebuilt: a spec with no page template renders inside the console mixin's chrome template, the same as an FTL page.

Example:

@RestGet(path="/") public View page(RestRequest req) { return builder(req) ? twin(req, OpsPageBuilders.audit()) : FreemarkerView.of("audit.ftlh"); }

  • Class
    Description
    Builder twin of the About page (about.ftlh).
    Builder twin of the Pending changes page (P10, changes.ftlh).
    Builder twins of the Developer pages: Custom cards (cards.ftlh), Rendering flavors (flavors.ftlh, flavors-react.ftlh), Secure (secure.ftlh), Themes (themes.ftlh), Charts (builder only), Data sources (builder only) and Dashboard (builder only).
    Builder twins of the Operations pages: P6 Jobs (jobs.ftlh) and P7 Audit (audit.ftlh).
    Builder twin of the Orders page (P5, orders.ftlh).
    Builder twins of the Pets pages: P2 Pets (pets.ftlh), its ?mixed variant, P3 Sold (pets-sold.ftlh) and P4 one pet (pet.ftlh).
    Builder twin of the Store page (P1, store.ftlh).
    The Store page's quick-stat tiles, shared by both render paths.
    Builder twin of the Users page (P11, users.ftlh).