Package net.sourceforge.stripes.ajax

Examples of net.sourceforge.stripes.ajax.JavaScriptResolution


  @DefaultHandler
  public Resolution ping() throws Exception {
    final String sNickName = getSessionAttribute("nickname");
    final String sPassword = getSessionAttribute("password");
    if (sNickName==null || sPassword==null) {
      return new JavaScriptResolution("expiredsession");
    } else {
      try {
        connect (sNickName, sPassword);
        disconnect();
        return new JavaScriptResolution("");
      } catch (Exception xcpt) {
        return new JavaScriptResolution("passwordmismatch");
      } finally {
        close();
      }
    } // fi
  }
View Full Code Here


                   + "<pais>"+Tpv.getPais()+"</pais>"
                   + "<urlredir>"+Tpv.getUrlredir(request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath())+"?engage=true&order_id="+order.getId()+"</urlredir>"
                   + "<localizador>"+order.getOrderId()+"</localizador>"
                   + "<firma>"+Tpv.getFirma(order.getTransaction(), order.getTotal_price(), order.getOrderId())+"</firma>"
                   + "</oppago></tpv>";
            return new JavaScriptResolution(peticion);
        } catch (StorageException ex) {
            Exceptions.printStackTrace(ex);
        }
        return null;
    }
View Full Code Here

 
  @HandlesEvent("getListOfDivisionsForStd")
  public Resolution getListOfDivisionsForStd(){
    Standard standard = standardService.getById(this.standardId);
    List<Division> listOfDivisions = this.divisionService.getDivisionsForStandard(standard);
    return new JavaScriptResolution(listOfDivisions, 
        net.sf.esims.model.entity.School.class,
        net.sf.esims.model.entity.Standard.class,
        net.sf.esims.model.entity.Exam.class,
        net.sf.esims.model.entity.AcademicYear.class,
        net.sf.esims.model.entity.Subject.class);
View Full Code Here

    // Get all standards for the academic year
    List<Standard> listOfStandards = this.divisionService
    .getAllStandards(academicYear);
    // Since a division depends on standard, academic year and school we
    // need to filter them from being parsed by the JavaScriptResolution
    return new JavaScriptResolution(listOfStandards,
        net.sf.esims.model.entity.School.class,
        net.sf.esims.model.entity.AcademicYear.class,
        net.sf.esims.model.entity.Subject.class);
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.stripes.ajax.JavaScriptResolution

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.