Re: Simpler Hello World

2014-09-03 Thread Net Dawg
that I could not even print "Hello World" using tapestry - (without HTML tags) - let alone create a fancy custom PDF! That is how this got started... On Wednesday, September 3, 2014 11:12 AM, Thiago H de Paula Figueiredo wrote: On Wed, 03 Sep 2014 17:44:20 -0300, Net Daw

Re: Simpler Hello World

2014-09-03 Thread Net Dawg
ber 2, 2014 10:07 PM, Chris Mylonas wrote: 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 t

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: Browser Detection

2014-08-12 Thread Net Dawg
nts very handy: http://tapestry.apache.org/switching-cases.html http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Delegate.html *-* *Muhammad Gelbana* http://www.linkedin.com/in/mgelbana On Tue, Aug 12, 2014 at 12:33 PM, Net Dawg wrote: > Does tapes

Browser Detection

2014-08-12 Thread Net Dawg
Does tapestry have a way to detect browser/version within component/page class?  Or by convention recommend some procedure?  To support logic rendering something

Re: Simpler Hello World

2014-08-02 Thread Net Dawg
it as per above wiki) so I just did this and it seems to work fine as it is the one and only method in the page class:     @InjectPage     private Index index;       //   public StreamResponse onActivate()    {   return index.onSelectedFromHelloWorld();     } On Saturday, August 2, 201

Re: Simpler Hello World

2014-08-02 Thread Net Dawg
oid beginRender(MarkupWriter writer) {         writer.element("html");         writer.write("test");         writer.end();     } } this will write to the output html the text "test". in this case, important is to start the page with the element. Best regards Eug

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

Re: javax.servlet.UnavailableException: org.apache.tapestry.ApplicationServlet

2014-07-29 Thread Net Dawg
Indeed.  Good riddance ;-).  Thanks Thiago.  On Tuesday, July 29, 2014 7:59 AM, Thiago H de Paula Figueiredo wrote: On Tue, 29 Jul 2014 14:38:07 -0300, Net Dawg   wrote: >  >    orgs >    org.apache.tapestry.ApplicationServlet >    1 >  Remove this and the prob

Re: javax.servlet.UnavailableException: org.apache.tapestry.ApplicationServlet

2014-07-29 Thread Net Dawg
http://java.sun.com/dtd/web-app_2_3.dtd";>     project Tapestry 5 Application         tapestry.app-package     org.ideademo.project             tapestry.development-modules         org.ideademo.project.services.DevelopmentModule                 tapestry.qa-m

Re: javax.servlet.UnavailableException: org.apache.tapestry.ApplicationServlet

2014-07-29 Thread Net Dawg
ms overall.  __  __ /_  __/__   ___ ___ / /___ __  / __/  / / / _ `/ _ \/ -_|_- wrote: On Tue, 29 Jul 2014 05:43:00 -0300, Net Dawg   wrote: > when I run mvn jetty:run, I get this:javax.servlet.UnavailableException:  > org.apache.tapestry.ApplicationServlet Full stack trace please. Anyway, you seem to have misstyped something in  your web.xm

javax.servlet.UnavailableException: org.apache.tapestry.ApplicationServlet

2014-07-29 Thread Net Dawg
when I run mvn jetty:run, I get this:  javax.servlet.UnavailableException: org.apache.tapestry.ApplicationServlet I am hoping this is a simple fix in pom.xml or web.xml.  Thanks.

Re: Turn Off or switch from Streaming to regular HTML

2014-07-29 Thread Net Dawg
Thanks, Lance.  So problem #1 is probably best solved by rendering a whole new page, just have to pass/share/persist the request parameters.  How about question #2?  Resetting the streaming behavior?  After streaming once, the page is stuck in streaming mode, does not do any HTML anymore. 

Turn Off or switch from Streaming to regular HTML

2014-07-29 Thread Net Dawg
Hi I followed the instruction per below: http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF However, 1) I would like HTML version to be rendering (in parallel with streaming) 2) subsequent reloads should render HTML, not stream unless requested. Basically, how would the s

Re: Page Method for Stream Response to Pagelink

2014-07-06 Thread Net Dawg
Solved: basically, replaced pagelink by eventlink using StreamResponse Return Type per below http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1 On Sunday, July 6, 2014 6:13 PM, Net Dawg wrote: I am trying to stream PDF in response to a pagelink, NOT

Page Method for Stream Response to Pagelink

2014-07-06 Thread Net Dawg
I am trying to stream PDF in response to a pagelink, NOT submit button as in: http://wiki.apache.org/tapestry/Tapestry5HowToStreamAnExistingBinaryFile In the above wiki, the method used is "onSubmit"...what would be the corresponding method for pagelink.  // what method should be used instead

Re: Importing Images on FileSystem in Page Class

2014-07-01 Thread Net Dawg
  catch (Exception e)      {   logger.info("Unable to process logo file " + logoFile + " while rendering PDF of Orgs List");   logger.info(e);;      }     } On Tuesday, July 1, 2014 10:21 AM, Net Dawg wrote: Is there an example of

Re: Importing Images on FileSystem in Page Class

2014-07-01 Thread Net Dawg
, Jul 1, 2014 at 8:58 PM, Net Dawg wrote: > How can I import an image into page class (without advance knowledge of > its name)?  I would like to use it to stream PDF dynamically. > > According to Assets in Component Classes( > http://tapestry.apache.org/assets.html), components lea

Importing Images on FileSystem in Page Class

2014-07-01 Thread Net Dawg
How can I import an image into page class (without advance knowledge of its name)?  I would like to use it to stream PDF dynamically.    According to Assets in Component Classes(http://tapestry.apache.org/assets.html), components learn about assets via injection. The @Inject annotation allows As

Preload All Pages On Startup

2014-06-25 Thread Net Dawg
On server startup, what is the best way to preload all *.tml under [...]resources[...]pages?    With all defaults - locale, etc.  In other words, how are tapestry (5.3.x) pages mapped to servlets so that something like this may be attempted in web.xml?    Employees    Employee

Re: Error in BeginRender[...]: Parameter 'translate' of component .. is bound to null. This parameter is not allowed to be null.

2014-06-18 Thread Net Dawg
- Stack Overflow I have an object I'd like to edit via beaneditor. One of the properties is of the Number class. When I try to display the beaneditor, I get the following error: View on stackoverflow.com Preview by Yahoo   On Tuesday, June 17, 2014 7:32 AM, Thiago H de Paula Figueire

Re: Error in BeginRender[...]: Parameter 'translate' of component .. is bound to null. This parameter is not allowed to be null.

2014-06-17 Thread Net Dawg
looking at the bulletin boards, stack overflow and seems like a known issue... should I file JIRA? On Tuesday, June 17, 2014 12:25 AM, Net Dawg wrote: Getting this parameter not allowed to be null error.  Actually there is no restriction whatsoever on this parameter.  I have a entity class

Error in BeginRender[...]: Parameter 'translate' of component .. is bound to null. This parameter is not allowed to be null.

2014-06-17 Thread Net Dawg
Getting this parameter not allowed to be null error.  Actually there is no restriction whatsoever on this parameter.  I have a entity class called "Project" with the field "details",  @Entity @Indexed public class Project {     @Id @GeneratedValue @DocumentId @NonVisual     private Long id;

Re: Use Lablel.for within page class

2014-06-09 Thread Net Dawg
Indeed.  Much Thanks!  @Inject private Messages messages; // used for RDF objects  private String getLabel (String varName)  {        String key = varName + "-label";        if (messages.contains(key)) return messages.get(key);        return TapestryInternalUtils.toUserPresentable(varName);

Re: Use Lablel.for within page class

2014-06-09 Thread Net Dawg
... On Monday, June 9, 2014 4:09 AM, Thiago H de Paula Figueiredo wrote: On Mon, 09 Jun 2014 05:50:33 -0300, Net Dawg   wrote: > Has anyone used org.apache.tapestry5.corelib.components.Label within  > page class?  I looked at the code for Lable and see method like  > beginRender, af

Use Lablel.for within page class

2014-06-09 Thread Net Dawg
Has anyone used org.apache.tapestry5.corelib.components.Label within page class?  I looked at the code for Lable and see method like beginRender, afterRender...nothing obvious... Use Case: I am trying to export the data and semantics of tapestry entity class ("model" package) into semantic web

Re: Send StreamReposne in Page to File On Server

2014-06-08 Thread Net Dawg
te: I'm confused. I would have the streamer use something else first to create or find the PDF, then it streams it. That "something" is the part that is common and could be shared, not the streamer. Am I off track? Cheers, Geoff On 8 Jun 2014, at 6:49 am, Net Dawg wrote:

Send StreamReposne in Page to File On Server

2014-06-07 Thread Net Dawg
Would like to reuse a page event handler function to render that specific response on server as a file.  Generally, how does one make an service wrapper to tapestry pages?  Specifically, how can tapestry application context be injected in stand-alone java program? Use-Case: There is a

Re: How to Use Image as Form Submit Button That Has OnSelectedFrom Handler in Page Class

2014-06-06 Thread Net Dawg
wnloadImage; > > and in your .tml file: > > > > > On 06/06/14 08:17, Net Dawg wrote: >> I have the following submit button that works great: >> >> >> >> with an onSelectedFromPdf() method in page class that references component >

How to Use Image as Form Submit Button That Has OnSelectedFrom Handler in Page Class

2014-06-05 Thread Net Dawg
I have the following submit button that works great: with an onSelectedFromPdf() method in page class that references component id "pdf". Question:  How can this submit button be changed from just "Run Report" to an image?  I tried: which gives the error that "id Pdf does not exist".

Show Form Button Only to Logged in Users

2013-10-22 Thread Net Dawg
Want to show form button only if the user is already logged in.   Using HTTP BASIC Authentication provided by Tomcat host http://docs.oracle.com/cd/E11035_01/wls100/security/thin_client.html#wp1033295 Does Tapestry have out-of-box solution for this?  

Generate faithful PDF from Tapestry rendered HTML

2013-10-18 Thread Net Dawg
The requirement is to provide a PDF option to a page that is already being rendered in HTML as faithfully as possible. Specifically,  1) generate dynamic HTML from database based on posted parameters.  The HTML features imagery, optional javascript includes.  Importantly, this page features a l