// Path: web-runner/src/main/java/org/jbehave/web/runner/context/StoryContext.java
// @SuppressWarnings("serial")
// public class StoryContext implements Serializable {
// 
//     private static final String EMPTY = "";
// 	private String input = EMPTY;
//     private String metaFilter = EMPTY;	
// 	private String output = EMPTY;
// 	private List<String> messages = new ArrayList<String>();
// 	private Throwable cause = null;
// 
// 	public StoryContext(){    
// 	}
// 	
// 	public String getInput() {
// 		return input;
// 	}
// 
// 	public void setInput(String input) {
// 		this.input = input;
// 	}
// 
//     public String getMetaFilter() {
//         return metaFilter;
//     }
// 
//     public void setMetaFilter(String metaFilter) {
//         this.metaFilter = metaFilter;
//     }	
// 	
// 	public String getOutput() {
// 		return output;
// 	}
// 
// 	public void setOutput(String output) {
// 		this.output = output;
// 	}
// 
// 	public List<String> getFailureMessages() {
// 		messages.clear();
// 		addFailureMessage(cause);
// 		return messages;
// 	}
// 
// 	private void addFailureMessage(Throwable cause) {
// 		if ( cause != null ){
// 			if ( cause.getMessage() != null ){
// 				messages.add(cause.getMessage());
// 			}
// 			// recurse
// 			addFailureMessage(cause.getCause());
// 		}
// 	}
// 
// 	public void clearFailureCause() {
// 		this.cause = null;		
// 	}
// 	
// 	public void runFailedFor(Throwable cause) {
// 		this.cause = cause;
// 	}
// 
// 	public String getFailureStackTrace() {
// 		StringWriter writer = new StringWriter();
// 		if (cause != null) {
// 			cause.printStackTrace(new PrintWriter(writer));
// 		}
// 		return writer.getBuffer().toString();
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return ToStringBuilder.reflectionToString(this);
// 	}
// 
// 
// 
// }


import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.wicket.markup.html.form.Button;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.TextArea;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.model.CompoundPropertyModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.PropertyModel;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.util.value.ValueMap;
import org.jbehave.core.embedder.Embedder;
import org.jbehave.core.embedder.PerformableTree;
import org.jbehave.core.embedder.StoryManager;
import org.jbehave.core.failures.BatchFailures;
import org.jbehave.core.model.Story;
import org.jbehave.core.reporters.CrossReference;
import org.jbehave.web.runner.context.StoryContext;
import com.google.inject.Inject;
import static java.util.Arrays.asList;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import static org.jbehave.core.io.CodeLocations.codeLocationFromPath;
import static org.jbehave.core.reporters.Format.HTML;
import static org.jbehave.core.reporters.Format.TXT;
import static org.jbehave.core.reporters.Format.XML;
package org.jbehave.web.runner.wicket.pages;





@SuppressWarnings("serial")
public class SubmitStory extends Template {

    @Inject
    private Embedder embedder;

    private StoryManager storyManager;

// Path: web-runner/src/main/java/org/jbehave/web/runner/context/StoryContext.java
// @SuppressWarnings("serial")
// public class StoryContext implements Serializable {
// 
//     private static final String EMPTY = "";
// 	private String input = EMPTY;
//     private String metaFilter = EMPTY;	
// 	private String output = EMPTY;
// 	private List<String> messages = new ArrayList<String>();
// 	private Throwable cause = null;
// 
// 	public StoryContext(){    
// 	}
// 	
// 	public String getInput() {
// 		return input;
// 	}
// 
// 	public void setInput(String input) {
// 		this.input = input;
// 	}
// 
//     public String getMetaFilter() {
//         return metaFilter;
//     }
// 
//     public void setMetaFilter(String metaFilter) {
//         this.metaFilter = metaFilter;
//     }	
// 	
// 	public String getOutput() {
// 		return output;
// 	}
// 
// 	public void setOutput(String output) {
// 		this.output = output;
// 	}
// 
// 	public List<String> getFailureMessages() {
// 		messages.clear();
// 		addFailureMessage(cause);
// 		return messages;
// 	}
// 
// 	private void addFailureMessage(Throwable cause) {
// 		if ( cause != null ){
// 			if ( cause.getMessage() != null ){
// 				messages.add(cause.getMessage());
// 			}
// 			// recurse
// 			addFailureMessage(cause.getCause());
// 		}
// 	}
// 
// 	public void clearFailureCause() {
// 		this.cause = null;		
// 	}
// 	
// 	public void runFailedFor(Throwable cause) {
// 		this.cause = cause;
// 	}
// 
// 	public String getFailureStackTrace() {
// 		StringWriter writer = new StringWriter();
// 		if (cause != null) {
// 			cause.printStackTrace(new PrintWriter(writer));
// 		}
// 		return writer.getBuffer().toString();
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return ToStringBuilder.reflectionToString(this);
// 	}
// 
// 
// 
// }


// Path: web-runner/src/main/java/org/jbehave/web/runner/wicket/pages/SubmitStory.java
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.wicket.markup.html.form.Button;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.TextArea;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.model.CompoundPropertyModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.PropertyModel;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.util.value.ValueMap;
import org.jbehave.core.embedder.Embedder;
import org.jbehave.core.embedder.PerformableTree;
import org.jbehave.core.embedder.StoryManager;
import org.jbehave.core.failures.BatchFailures;
import org.jbehave.core.model.Story;
import org.jbehave.core.reporters.CrossReference;
import org.jbehave.web.runner.context.StoryContext;
import com.google.inject.Inject;
import static java.util.Arrays.asList;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import static org.jbehave.core.io.CodeLocations.codeLocationFromPath;
import static org.jbehave.core.reporters.Format.HTML;
import static org.jbehave.core.reporters.Format.TXT;
import static org.jbehave.core.reporters.Format.XML;

package org.jbehave.web.runner.wicket.pages;





@SuppressWarnings("serial")
public class SubmitStory extends Template {

    @Inject
    private Embedder embedder;

    private StoryManager storyManager;

    private StoryContext storyContext = new StoryContext();