Re: Simpler Hello World

2014-09-03 Thread Net Dawg
a template. Regarding what you call parameterized streaming pattern, that's not a Hello World anymore, and "Simpler Hello World" is the title of the thread you've created. >> Thanks Chris. The intent of this question was to get a start toward >> strea

Re: Simpler Hello World

2014-09-03 Thread Thiago H de Paula Figueiredo
e generating HTML, in Tapestry the usual method is using a template. Regarding what you call parameterized streaming pattern, that's not a Hello World anymore, and "Simpler Hello World" is the title of the thread you've created. Thanks Chris. The intent of this quest

Re: Simpler Hello World

2014-09-03 Thread Net Dawg
F content. Then I hid the button and launched > the "pure content" page as a pagelink, instead, as follows: > > PDF > > Rather convoluted, but gets the job doneand, yes, hardly a simpler > hello world now...(this workaround would be more useful to say "Hello > Ch

Re: Simpler Hello World

2014-09-03 Thread Chris Mylonas
ed > the "pure content" page as a pagelink, instead, as follows: > > PDF > > Rather convoluted, but gets the job doneand, yes, hardly a simpler > hello world now...(this workaround would be more useful to say "Hello > Chris" - after, say, selecting from a

Re: Simpler Hello World

2014-09-03 Thread Net Dawg
se that is where I get all the session variables set (search, query etc) to properly construct the PDF content. Then I hid the button and launched the "pure content" page as a pagelink, instead, as follows: PDF Rather convoluted, but gets the job done....and, yes, hardly a simp

Re: Simpler Hello World

2014-09-02 Thread Chris Mylonas
For future noobs, this is not a simpler hello world, it's making tapestry respond with text only, no template, nothing but pure text. I had to do this today and this thread caught my eye last month. In the standard tapestry 5.3.7 archetype, my Contact.java looks like this. pa

Re: Simpler Hello World

2014-08-04 Thread Thiago H de Paula Figueiredo
On Sat, 02 Aug 2014 18:21:39 -0300, Net Dawg wrote: I would like to do something simpler. No html, body tags etc, just pure streaming content. In this case, you shouldn't use a .tml template, because it's meant to generate HTML or XML, and "Hello World" isn't valid HTML or XML. Return a

Re: Simpler Hello World

2014-08-02 Thread Net Dawg
Believe the answer can be derived from following wiki: http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile use the contentType = "text/plain".  I already had the "Hello World" streaming working in another page (in response to a button click/form submit as per above wiki)

Re: Simpler Hello World

2014-08-02 Thread Net Dawg
Thanks, Eugen, for taking the time for below.  However, that does not meet requirement.  Specifically, I am *NOT* wanting to write any HTML or tags, just stream simple text content to the browser.  In this case, just two words exactly as "Hello World".   No begin, end html tags (template would b

Re: Simpler Hello World

2014-08-02 Thread Eugen
Hi, if You don't like to use the template (.tml) files the entire job is to be done in page class using the MarkupWriter, a simple example: public class Home{ void beginRender(MarkupWriter writer) { writer.element("html"); writer.write("test"); writer.end(); } } thi

Simpler Hello World

2014-08-02 Thread Net Dawg
Here is the simplest Hello World, according to jump start: http://jumpstart.doublenegative.com.au/jumpstart/helloworld I would like to do something simpler.  No html, body tags etc, just pure streaming content.  Comlpletely do away with templates and components, just use the page class to stre