Re: Simpler Hello World

2014-09-03 Thread Net Dawg
Yes, I may have hijacked my own thread ;-). Yes, I wanted to do parameterized/using flash persisted session variables. Use case being: first do query/search for a term using HTML interface to a database, then print the result rendered also in PDF format using a button/link. But realized th

Re: Simpler Hello World

2014-09-03 Thread Thiago H de Paula Figueiredo
On Wed, 03 Sep 2014 17:44:20 -0300, Net Dawg wrote: Well, the thread is still open ;-). Hopefully the tapestry framework developers will see the "parameterized" streaming pattern to be equally important as HTML (and not some sort of hack/gimmick that needs, as you put it, to "abort the

Re: Simpler Hello World

2014-09-03 Thread Net Dawg
Well, the thread is still open ;-). Hopefully the tapestry framework developers will see the "parameterized" streaming pattern to be equally important as HTML (and not some sort of hack/gimmick that needs, as you put it, to "abort the goodness"). On Tuesday, September 2, 2014 10:07 PM, Chr

Re: Simpler Hello World

2014-09-03 Thread Chris Mylonas
I was wondering if you'd want to get the last word in Net Dawg ;) On Wed, Sep 3, 2014 at 5:26 PM, Net Dawg wrote: > Thanks Chris. The intent of this question was to get a start toward > streaming "pure content" - not just text, but also (and especially PDF), > XML, imagery - whatever - anythin

Re: Simpler Hello World

2014-09-03 Thread Net Dawg
Thanks Chris. The intent of this question was to get a start toward streaming "pure content" - not just text, but also (and especially PDF), XML, imagery - whatever - anything except HTML. My solution finally was to mimic a previously coded button press on an HTML page. Why? Because that is

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. package org.example.p

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