2 Replies Latest reply: Dec 4, 2012 5:50 AM by DiegoVélez RSS

    Adf: dataFlavor java.lang.Integer returns null

    DiegoVélez
      Hi,
      I've set a client attribute with the id as attribute drag source, and I want to get it from my backing bean, but it always returns null.

      What am I doing wrong? Is it not the correct dataFlavor?
      <af:forEach items="#{proyectos.children}" var="tareas">
         <af:outputText value="#{tareas.Id}" id="ot8">
             <af:attributeDragSource attribute="tareaID"/>
             <af:clientAttribute name="tareaID" value="#{tareas.Id}"/>
         </af:outputText>
      </af:forEach>
      <af:calendarDropTarget dropListener="#{Bussiness.onDropHandler}" actions="COPY">
        <af:dataFlavor flavorClass="java.lang.Integer"/>
      </af:calendarDropTarget>
      Integer dragAttribute = transferable.getData(DataFlavor.getDataFlavor(Integer.class));
      Thanks,
      DV