Package org.araneaframework

Examples of org.araneaframework.OutputData


  }
 
  protected int before(Writer out) throws Exception {
    super.before(out);
   
    OutputData output = (OutputData) UiUtil.readAttribute(pageContext, UiAraneaRootTag.OUTPUT_DATA_KEY, PageContext.REQUEST_SCOPE);
    Map messageMap = (Map) output.getAttribute(StandardMessagingFilterWidget.MESSAGE_KEY);
   
    List entries = new ArrayList();
    for (Iterator i = messageMap.entrySet().iterator(); i.hasNext(); ) {
      Map.Entry entry = (Map.Entry) i.next();
      if (type == null || ((String)entry.getKey()).equals(type)) {
View Full Code Here


  public static final String OUTPUT_DATA_KEY = "outputData";
 
  protected int before(Writer out) throws Exception {
    super.before(out);
   
    OutputData output =
      (OutputData) pageContext.getRequest().getAttribute(
          StandardServletServiceAdapterComponent.OUTPUT_DATA_REQUEST_ATTRIBUTE);
    StandardJspFilterService.Configuration config =
      (StandardJspFilterService.Configuration) output.getAttribute(
          StandardJspFilterService.JSP_CONFIGURATION_KEY);
   
    pushAttribute(
        OUTPUT_DATA_KEY,
        output,
View Full Code Here

*/
public class UiAraneaViewPortTag extends UiBaseTag {
  protected int before(Writer out) throws Exception {
    super.before(out);
   
    OutputData output =
      (OutputData) pageContext.getRequest().getAttribute(
          StandardServletServiceAdapterComponent.OUTPUT_DATA_REQUEST_ATTRIBUTE);
    StandardViewPortWidget rootWidget =
      (StandardViewPortWidget) output.getAttribute(StandardViewPortWidget.VIEW_PORT_WIDGET_KEY);
    StandardJspFilterService.Configuration config =
      (StandardJspFilterService.Configuration) output.getAttribute(
          StandardJspFilterService.JSP_CONFIGURATION_KEY);

    pushAttribute(
        UiWidgetContainer.REQUEST_CONTEXT_KEY,
        new UiAraneaWidgetContainer(rootWidget, config),
View Full Code Here

   
    registerSubtag(widgetContextTag);
    widgetContextTag.setId(widgetId);
    executeStartSubtag(widgetContextTag);
   
    OutputData output =
      (OutputData) pageContext.getRequest().getAttribute(
          StandardServletServiceAdapterComponent.OUTPUT_DATA_REQUEST_ATTRIBUTE);
   
    try {
      if (page == null) {
View Full Code Here

  //
  // Implementation
  //
 
  protected int after(Writer out) throws Exception {
    OutputData output =
      (OutputData) pageContext.getRequest().getAttribute(
          StandardServletServiceAdapterComponent.OUTPUT_DATA_REQUEST_ATTRIBUTE);
   
    Path currentScope = output.getScope();
   
  // Call
  Standard.StandardWidgetInterface widget = UiWidgetUtil.getWidgetFromContext(widgetId, pageContext);

    while (output.getScope().hasNext())
      output.popScope();
   
    try {
      widget._getWidget().render(output);
    }
    finally {
      for (; currentScope.hasNext(); ) {
        Object next = currentScope.next();
        output.pushScope(next);
      }
    }
   
    // Continue
    super.after(out);
View Full Code Here

*/
public class WizardBodyTag extends UiBaseTag {
  protected int before(Writer out) throws Exception {
    Standard.StandardWidgetInterface widget = (StandardWidgetInterface) UiWidgetUtil.getWidgetFromContext(null, pageContext);
   
    OutputData output =
      (OutputData) pageContext.getRequest().getAttribute(
          StandardServletServiceAdapterComponent.OUTPUT_DATA_REQUEST_ATTRIBUTE);
   
    out.flush();
    widget._getWidget().render(output);   
View Full Code Here

  /**
   * Reads the {@link FileInfo}data from request using the {@link MultipartWrapper}.
   */
  protected void readFromRequest(String controlName, HttpServletRequest request) {
    OutputData output =
      (OutputData) request.getAttribute(StandardServletServiceAdapterComponent.OUTPUT_DATA_REQUEST_ATTRIBUTE);
    ServletFileUploadOutputExtension fileUpload =
      (ServletFileUploadOutputExtension) output.narrow(ServletFileUploadOutputExtension.class);   
   
    if (fileUpload.getUploadedFile(controlName)!= null) {
      FileItem file = fileUpload.getUploadedFile(controlName);
      String mimeType = file.getContentType();

View Full Code Here

  protected void process() throws Exception {}
  protected void render(OutputData output) throws Exception {}
 
  protected InputData getCurrentInput() {
    InputData input = super.getCurrentInput();
    OutputData output = super.getCurrentOutput();

    // lets try to give a not null answer to the user
    if (input == null && output != null) {
        return output.getCurrentInputData();
    }
   
    return super.getCurrentInput();
  }
View Full Code Here

   
    return super.getCurrentInput();
  }
 
  protected OutputData getCurrentOutput() {
    OutputData output = super.getCurrentOutput();
    InputData input = super.getCurrentInput();
    if (output == null && input != null) {
      return input.getCurrentOutputData();
    }
   
View Full Code Here

      throw new NoSuchNarrowableException(interfaceClass);
    return extension;
  }

  public OutputData getCurrentOutputData() {
    OutputData output = (OutputData)req.getAttribute(StandardServletServiceAdapterComponent.OUTPUT_DATA_REQUEST_ATTRIBUTE);
    if (output == null)
      throw new NoCurrentOutputDataSetException("No OutputData set in the request.");
    else
      return output;
  }
View Full Code Here

TOP

Related Classes of org.araneaframework.OutputData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.