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
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
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
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
Does tapestry have a way to detect browser/version within component/page class?
Or by convention recommend some procedure? To support logic rendering something
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
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
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
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
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
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
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.
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.
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
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
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
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
, 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
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
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
- 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
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
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;
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);
...
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
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
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:
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
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
>
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".
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?
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
32 matches
Mail list logo