title: Shiny submitButton not working
body: <p>Just started learning Shiny.  I tried building a simple, non-reactive app where the user clicks a button and a random vector gets printed to the screen.  However, I can't get the submit button to work.</p>
  
  <pre><code># Load required files
  lapply(c("data.table", "shiny"), require, character.only=T)
  
  #=================================================================
  # Define UI for application that draws a histogram
  
  ui &lt;- shinyUI(fluidPage(
  
     # Application title
     titlePanel("App-4"),
  
     # Sidebar
     sidebarLayout(
        sidebarPanel(
          submitButton("Submit")
        ),
  
        # Print the data
        mainPanel(
          textOutput("myTable")
        )
     )
  ))
  
  #=================================================================
  # Define server logic
  
  server &lt;- shinyServer(function(input, output) {
     output$myTable &lt;- renderPrint({
       sample(10)
     })
  })
  
  #=================================================================
  
  # Run the application 
  shinyApp(ui = ui, server = server)
  </code></pre>
  
  <p>What am I doing wrong?  I was able to get this to work with an <code>actionButton</code>, but I'd like to understand why the above code doesn't work. Thanks.</p>