Package play.mvc.Scope

Examples of play.mvc.Scope.Params


            entity2.cities = null;
            entity2.save();

            // Try to bind with other field
            Validation.clear();
            Params params = new Params();
            params.put("entity2.cities.a", city.name);

            ParamNode rootParamNode = ParamNode.convert(params.all());
            entity2.edit(rootParamNode, "entity2");
            assertTrue(Validation.hasErrors());

            entity2.save();
            entity2.refresh();
View Full Code Here


            entity2.cities = null;
            entity2.save();

            // Try to bind with other field
            Validation.clear();
            Params params = new Params();
            params.put("entity2.cities.id.1", city.getId().toString());

            ParamNode rootParamNode = ParamNode.convert(params.all());
            entity2.edit(rootParamNode, "entity2");
            assertTrue(Validation.hasErrors());

            entity2.save();
            entity2.refresh();
View Full Code Here

            entity2.city = city;
            entity2.cities = new ArrayList<City>();
            entity2.cities.add(city);
            entity2.save();

            Params params = new Params();

            Validation.clear();
            ParamNode rootParamNode = ParamNode.convert(params.all());
            entity2.edit(rootParamNode, "entity2");
            assertFalse(Validation.hasErrors());

            entity2.save();
            entity2.refresh();
View Full Code Here

            entity2.city = city;
            entity2.cities = new ArrayList<City>();
            entity2.cities.add(city);
            entity2.save();

            Params params = new Params();
            params.put("entity2", (String) null);

            Validation.clear();
            ParamNode rootParamNode = ParamNode.convert(params.all());
            entity2.edit(rootParamNode, "entity2");
            assertFalse(Validation.hasErrors());

            entity2.save();
            entity2.refresh();
View Full Code Here

      RenderArgs renderArg = RenderArgs.current();
      if (renderArg != null && renderArg.data != null) {
    Logger.error(renderArg.data.toString());
      }

      Params params = Params.current();
      if (params != null && params.data != null) {
    Logger.error(params.toString());
      }

      Session session = Session.current();
      if (session != null) {
    Logger.error(session.all().toString());
View Full Code Here

TOP

Related Classes of play.mvc.Scope.Params

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.