<%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/fenix-renderers.tld" prefix="fr" %> <%@ taglib uri="/WEB-INF/app.tld" prefix="f" %> <%@page import="net.sourceforge.fenixedu.domain.tests.NewModelRestriction"%> <%@page import="java.util.List"%>

Pode usar pergunta(s) e grupo(s)

:

<% List selectedAtomicQuestions = (List) request.getAttribute("selectedAtomicQuestions"); for(NewModelRestriction atomicRestriction : testModel.getAtomicQuestionRestrictions()) { pageContext.setAttribute("atomicRestriction", atomicRestriction); if(selectedAtomicQuestions != null && selectedAtomicQuestions.contains(atomicRestriction)) { pageContext.setAttribute("wasSelected", atomicRestriction); } else { pageContext.setAttribute("wasSelected", null); } %> ( ) <% } %>

<% NewModelRestriction selectedQuestionGroupRestriction = (NewModelRestriction) request.getAttribute("selectedQuestionGroupRestriction"); for(NewModelRestriction groupRestriction : testModel.getQuestionGroupRestrictions()) { pageContext.setAttribute("groupRestriction", groupRestriction); if(selectedQuestionGroupRestriction != null && selectedQuestionGroupRestriction.equals(groupRestriction)) { pageContext.setAttribute("wasSelected", groupRestriction); } else { pageContext.setAttribute("wasSelected", null); } %> <% } %>
:
:
: