Skip to content

Instantly share code, notes, and snippets.

@gusthavosouza
Created May 13, 2016 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gusthavosouza/8570c2fb2ac842829579e87458614d9a to your computer and use it in GitHub Desktop.
Save gusthavosouza/8570c2fb2ac842829579e87458614d9a to your computer and use it in GitHub Desktop.
<rich:tab header="Escolher Metricas" id="tabMetrica"
rendered="#{SistemaController.passo eq 2}">
<rich:dragIndicator id="ind2" acceptClass="accept"
rejectClass="reject" draggingClass="default">
Arraste o item para a area disponivel
</rich:dragIndicator>
<h:form>
<h:panelGrid style="width:100%;" columns="2">
<rich:panel id="metricas" style="width:100%">
<f:facet name="header">
<h:outputText value="Metricas Disponiveis" />
</f:facet>
<div style="overflow: auto; max-height: 300px; height: 500px;">
<rich:dropTarget id="dropTarget3"
acceptedTypes="rmSub,rmCar,rmPerg" dropValue="rm"
dropListener="#{CaracteristicasController.processDrop}"
render="metricas, metricasComp" />
<rich:dataTable var="items" style="width:100%;"
value="#{CaracteristicasController.caracteristicas}">
<rich:column colspan="2">
<f:facet name="header">
<h:outputText value="Descricação" />
</f:facet>
<rich:collapsibleSubTableToggler for="sbtbl" />
<h:outputText value="#{items.descCaracteristicas}" />
<rich:dragSource id="dragSubCaracteristica" type="car"
dragValue="#{items}" dragIndicator="ind2" />
</rich:column>
<rich:collapsibleSubTable id="sbtbl"
value="#{items.subCaracteristicas}" var="subItems">
<rich:column>
<rich:dragSource id="dragSubCaracteristica" type="sub"
dragValue="#{subItems}" dragIndicator="ind2" />
<h:outputText value="#{subItems.descSubCaracterisca}" />
</rich:column>
<rich:column>
<rich:dataTable value="#{subItems.perguntasChave}"
style="width:100%;" var="perg" id="sbtb2">
<rich:column>
<rich:dragSource id="dragSubCaracteristicaPerguntas"
type="perg" dragValue="#{perg}" dragIndicator="ind2" />
<h:outputText value="#{perg.descPergunta}" />
</rich:column>
</rich:dataTable>
</rich:column>
</rich:collapsibleSubTable>
</rich:dataTable>
</div>
</rich:panel>
<rich:panel id="metricasComp" style="width:100%;">
<f:facet name="header">
<h:outputText value="Metricas á Utilizar" />
</f:facet>
<div style="overflow: auto; max-height: 300px; height: 500px;">
<rich:dropTarget id="dropTarget2" acceptedTypes="sub,car,perg"
dropValue="add"
dropListener="#{CaracteristicasController.processDrop}"
render="metricas, metricasComp" />
<rich:dataTable var="items" style="width:100%;"
value="#{CaracteristicasController.caracteristicasTarget}">
<rich:column colspan="2">
<f:facet name="header">
<h:outputText value="Descricação" />
</f:facet>
<rich:collapsibleSubTableToggler for="sbtb2" />
<h:outputText value="#{items.descCaracteristicas}" />
<rich:dragSource id="dragSubCaracteristica" type="rmCar"
dragValue="#{items}" dragIndicator="ind2" />
</rich:column>
<rich:collapsibleSubTable id="sbtb2"
value="#{items.subCaracteristicas}" var="subItems">
<rich:column>
<rich:dragSource id="dragSubCaracteristica" type="rmSub"
dragValue="#{subItems}" dragIndicator="ind2" />
<h:outputText value="#{subItems.descSubCaracterisca}" />
</rich:column>
<rich:column>
<rich:dataTable value="#{subItems.perguntasChave}"
style="width:100%;" var="perg" id="sbtb2">
<rich:column>
<rich:dragSource id="dragSubCaracteristicaPerguntas"
type="rmPerg" dragValue="#{perg}" dragIndicator="ind2" />
<h:outputText value="#{perg.descPergunta}" />
</rich:column>
</rich:dataTable>
</rich:column>
</rich:collapsibleSubTable>
</rich:dataTable>
</div>
</rich:panel>
<a4j:commandButton value="init" render="metricas"
action="#{CaracteristicasController.init}" />
</h:panelGrid>
</h:form>
</rich:tab>
</rich:tabPanel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment