1 29 30 package nextapp.echo2.webrender.servermessage; 31 32 import org.w3c.dom.Element ; 33 34 import nextapp.echo2.webrender.ServerMessage; 35 36 37 42 public class VirtualPosition { 43 44 private static final String MESSAGE_PART_NAME = "EchoVirtualPosition.MessageProcessor"; 45 private static final String [] EMPTY = new String []{}; 46 47 54 public static void renderRegister(ServerMessage serverMessage, String elementId) { 55 Element itemizedUpdateElement = serverMessage.getItemizedDirective(ServerMessage.GROUP_ID_POSTUPDATE, 56 MESSAGE_PART_NAME, "register", EMPTY, EMPTY); 57 Element itemElement = serverMessage.getDocument().createElement("item"); 58 itemElement.setAttribute("eid", elementId); 59 itemizedUpdateElement.appendChild(itemElement); 60 } 61 } 62 | Popular Tags |