89909192939495
public void initializeFromPageParameters(BrixPageParameters params) { // restore symbol from url symbol = params.get("symbol").toString(null); // restore value by looking it up value = new StockQuoteRequest(symbol).getQuote(); }
5556575859606162636465
private static final long serialVersionUID = 1L; @Override protected void onSubmit() { // form is submitted, update symbol value value = new StockQuoteRequest(symbol).getQuote(); } }; add(form); // symbol name textfield