Seam操作EL表達式

Set:

ValueExpression el = Expressions.instance().createValueExpression("#{annualPlanningId}");
		el.setValue((Integer) Contexts.getSessionContext().get(
						"annualPlanningId"));

 Get:

System.out.println(Expressions.instance().createValueExpression("#{annualPlanningId}").getValue());

 

你可能感兴趣的:(seam)