Revision history [back]

click to hide/show revision 1
initial version

answered 2021-05-04 20:58:36 +0800

RomanZK gravatar image RomanZK

In my view model

I have attempted the following logic

Map<string, object=""> arguments = new HashMap<string, object="">(); arguments.put("detailsPojo", pojo); arguments.put("scDetailPojo", scPojo); arguments.put("bindVarPojoParam", selectedRecord);
arguments.put("parentSubBindVarPojoParam", editRecord); arguments.put("subBindVarPojoParam", subBindVariable);

BindUtils.postGlobalCommand(null, null, "openSubBindVarDetailsView2", arguments);

The page does not reload.

I have also tried this

Execution exec = Executions.getCurrent();

                  HashMap arguments = (HashMap)exec.getArg();

                  arguments.put("detailsPojo", pojo);
                  arguments.put("scDetailPojo", scPojo);
                  arguments.put("bindVarPojoParam", selectedRecord);   // parentSubBindVarPojoParam                   
                  arguments.put("parentSubBindVarPojoParam", editRecord);
                  arguments.put("subBindVarPojoParam", subBindVariable);

exec.sendRedirect("");

I get the following error

java.lang.ClassCastException: java.util.Collections$EmptyMap cannot be cast to java.util.HashMap

In my view model

I have attempted the following logic

Map<string, object="">

Map<String, Object> arguments = new HashMap<string, object="">();
 HashMap<String, Object>();
arguments.put("detailsPojo", pojo);
                      arguments.put("scDetailPojo", scPojo);
                      arguments.put("bindVarPojoParam", selectedRecord); 
arguments.put("parentSubBindVarPojoParam", editRecord); arguments.put("subBindVarPojoParam", subBindVariable);

subBindVariable); BindUtils.postGlobalCommand(null, null, "openSubBindVarDetailsView2", arguments);

arguments);

The page does not reload.

I have also tried this

Execution exec = Executions.getCurrent();

Executions.getCurrent();

                  HashMap arguments = (HashMap)exec.getArg();

                  arguments.put("detailsPojo", pojo);
                  arguments.put("scDetailPojo", scPojo);
                  arguments.put("bindVarPojoParam", selectedRecord);   // parentSubBindVarPojoParam                   
                  arguments.put("parentSubBindVarPojoParam", editRecord);
                  arguments.put("subBindVarPojoParam", subBindVariable);


exec.sendRedirect("");

exec.sendRedirect("");

I get the following error

java.lang.ClassCastException: java.util.Collections$EmptyMap cannot be cast to java.util.HashMap

java.util.HashMap
Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More