Package org.apache.wicket.security.examples.multilogin.entities

Examples of org.apache.wicket.security.examples.multilogin.entities.Entry


   */
  public InitiateTransferMoneyPage()
  {
    add(new ButtonContainer("buttoncontainer", ButtonContainer.BUTTON_TRANSACTION));
    final Form<Entry> form =
      new Form<Entry>("form", new CompoundPropertyModel<Entry>(new Entry()));
    add(form);
    form.add(new Button("transfer")
    {
      private static final long serialVersionUID = 1L;

      /**
       * @see org.apache.wicket.markup.html.form.Button#onSubmit()
       */
      @Override
      public void onSubmit()
      {
        // usually we would check to see if all required fieds are
        // entered etc
        MySession.getSessesion().getMoneyTransfers().add(form.getModelObject());
        form.setModelObject(new Entry());
      }
    });
    form.add(new Button("commit")
    {
      private static final long serialVersionUID = 1L;
View Full Code Here


    for (int i = 0; i < size; i++)
    {
      Calendar cal = Calendar.getInstance();
      cal.add(Calendar.DAY_OF_YEAR, (-1 * size) + i);
      cal.add(Calendar.HOUR_OF_DAY, (int) Math.random() * 12);
      data.add(new Entry("" + cal.getTimeInMillis(), to, cal.getTime().toString(), "foobar",
        "$" + (Math.random() * 2546.789)));
    }
    return data;
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.security.examples.multilogin.entities.Entry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.