<div id="contentDiv"> <strong>Question</strong> <h:outputText id="tagQuestion" value="#{knowledgeBean.questionBody}" escape="false" /><span class="subheading"> <strong>Choice(s)</strong></span> <h:panelGroup rendered="#{knowledgeBean.componentStatus}"> <h:dataTable value="#{knowledgeBean.questionChoices}" var="row" > <h:column> <h:inputText id="choiceList" value="#{knowledgeBean.choiceText[knowledgeBean.row]}" styleClass="input" tabindex="2" readonly="false" size="30" /> </h:column> </h:dataTable> </h:panelGroup> <h:panelGroup rendered="#{knowledgeBean.multipleChoiceStatus}"> <h:selectManyCheckbox id="multipleChoices" layout="pageDirection" value="#{knowledgeBean.multipleChoices}" styleClass="input" tabindex="2"> <f:selectItems value="#{knowledgeBean.allQuestChoices}"/> </h:selectManyCheckbox> </h:panelGroup> <h:panelGroup rendered="#{knowledgeBean.dragDropStatus}"> <rich:dragIndicator id="indicator" /> <rich:panel style="width:133px"> <f:facet name="header"> <h:outputText value="Source List" /> </f:facet> <h:dataTable id="src" value="#{knowledgeBean.questionChoices}" var="row" footerClass="footerClass"> <h:column> <a4j:outputPanel style="width:100px;border:1px solid gray;padding:2px" layout="block"> <rich:dragSupport dragIndicator=":indicator" dragType="text" dragValue="#{row}" > <rich:dndParam value="#{row.description}" name="label"/> </rich:dragSupport> <h:outputText value="#{row.description}"></h:outputText> </a4j:outputPanel> </h:column> </h:dataTable> </rich:panel> <rich:panel styleClass="dropTargetPanel"> <f:facet name="header"> <h:outputText value="Selected Values" /> </f:facet> <rich:dropSupport id="dragChoices" acceptedTypes="text" dropListener="#{knowledgeBean.processDrop}" reRender="dragChoicetable,src"> </rich:dropSupport> <h:dataTable id="dragChoicetable" value="#{knowledgeBean.draggedItems}" var="fm1"> <h:column> <h:outputText value="#{fm1.description}"></h:outputText> </h:column> </h:dataTable> </rich:panel> </h:panelGroup> </div> |
|
<strong> </strong> | <h:commandButton id="submit1" action="#{knowledgeBean.nextQuestion}" styleClass="button" style="width:60px" value="Next" tabindex="6" onclick="hideDiv({duration:0.7});return true;" /> <h:commandButton id="unknown" action="#{knowledgeBean.skipQuestion}" styleClass="button" style="width:100px" value="I don't know" tabindex="6" onclick="hideDiv({duration:0.7});return true;" /> <h:commandButton id="finish" action="#" styleClass="button" style="width:60px" value="Finish" tabindex="6" onclick="javascript:resetTheForm();"/> |