1 23 package com.sun.enterprise.tools.jsfext.event.handlers; 24 25 26 32 public class RequestAttributeOutputType implements OutputType { 33 34 52 public Object getValue(HandlerContext context, IODescriptor outDesc, String key) { 53 if (key == null) { 54 key = context.getHandlerDefinition().getId() 56 + ':' + outDesc.getName(); 57 } 58 59 return context.getFacesContext().getExternalContext(). 61 getRequestMap().get(key); 62 } 63 64 82 public void setValue(HandlerContext context, IODescriptor outDesc, String key, Object value) { 83 if (key == null) { 84 key = context.getHandlerDefinition().getId() 86 + ':' + outDesc.getName(); 87 } 88 89 context.getFacesContext().getExternalContext(). 91 getRequestMap().put(key, value); 92 } 93 } 94 | Popular Tags |