Examples of reset()


Examples of org.apache.struts.action.DynaActionForm.reset()

    session.removeAttribute("printtemplate");
    UserObject userObject = (UserObject) session.getAttribute("userobject");
    int individualID = userObject.getIndividualID();
    try {
      DynaActionForm dynaform = (DynaActionForm) form;
      dynaform.reset(mapping, request);
      dynaform.set("templateName", "");
      dynaform.set("id", "");
      dynaform.set("savedsearch", "");
      dynaform.set("templateData", "");
      dynaform.set("file", "");
View Full Code Here

Examples of org.apache.struts.validator.DynaValidatorForm.reset()

      //clearForm(dynaForm , mapping);
      //Clears the DynaActionForm
      if (save == null)
      {
        dynaForm.reset(mapping, request);
      }

      request.setAttribute("refreshWindow", "true");
    }
    else if (addItem != null)
View Full Code Here

Examples of org.apache.tapestry.contrib.table.components.Table.reset()

    public void resetState()
    {
        initialize();
        Table objTable = (Table) getComponent("table");
        objTable.reset();
    }

    public String getSelectedNodeName()
    {
        return getSelectedFolderSource().getSelectedNodeName();
View Full Code Here

Examples of org.apache.tapestry.request.ResponseOutputStream.reset()

            // any kind of exception.

            // Attempt to switch to the exception page.  However, this may itself fail
            // for a number of reasons, in which case a ServletException is thrown.

            output.reset();

            if (LOG.isDebugEnabled())
                LOG.debug("Uncaught exception", ex);

            activateExceptionPage(cycle, output, ex);
View Full Code Here

Examples of org.apache.tapestry5.internal.util.Base64InputStream.reset()

            validateHMAC(storedHmacResult, b64in);

            // After reading it once to validate, reset it for the actual read (which includes the GZip decompression).

            b64in.reset();

            BufferedInputStream buffered = new BufferedInputStream(new GZIPInputStream(b64in));

            return new ObjectInputStream(buffered);
        } catch (IOException ex)
View Full Code Here

Examples of org.apache.tez.dag.app.rm.TestTaskSchedulerHelpers.CapturingEventHandler.reset()

    verify(taskSchedulerEventHandler, times(1)).taskAllocated(
      eq(ta31), any(Object.class), eq(containerHost1));
    verify(rmClient, times(0)).releaseAssignedContainer(
      eq(containerHost1.getId()));
    eventHandler.verifyNoInvocations(AMContainerEventStopRequest.class);
    eventHandler.reset();

    taskSchedulerEventHandler.handleEvent(
      new AMSchedulerEventTAEnded(ta21, containerHost2.getId(),
        TaskAttemptState.SUCCEEDED));
View Full Code Here

Examples of org.apache.tika.io.TikaInputStream.reset()

                if (tis.hasFile()) {
                    Font.createFont(Font.TRUETYPE_FONT, tis.getFile());
                } else {
                    tis.mark(0);
                    Font.createFont(Font.TRUETYPE_FONT, stream);
                    tis.reset();
                }
            } catch (FontFormatException ex) {
                throw new TikaException("Bad TrueType font.");
            }
        }
View Full Code Here

Examples of org.apache.tika.parser.RecursiveParserWrapper.reset()

        }
        assertEquals(2, inline);
        assertEquals(2, attach);

        stream.close();
        p.reset();

        //now try turning off inline
        stream = TikaInputStream.get(this.getClass().getResource(path));

        context.set(org.apache.tika.extractor.DocumentSelector.class, new AvoidInlineSelector());
View Full Code Here

Examples of org.apache.tiles.definition.ComponentDefinitions.reset()

        }
       
        assertNotNull("Couldn't get parent.",
                definitions.getDefinition("parent.def1"));
       
        definitions.reset();
        assertNull("Definitions should be null.",
                definitions.getDefinition("parent.def1"));
    }
   
    /**
 
View Full Code Here

Examples of org.apache.tiles.definition.ComponentDefinitionsImpl.reset()

        }
       
        assertNotNull("Couldn't get parent.",
                definitions.getDefinition("parent.def1"));
       
        definitions.reset();
        assertNull("Definitions should be null.",
                definitions.getDefinition("parent.def1"));
    }
   
    /**
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.