Hi Diego and Geoff thanks a lot for the examples. Will work on it again
next week.
On Wed, Feb 18, 2015 at 11:01 PM, Diego Socaceti wrote:
> Hi Geoff,
>
> here the missing parts :)
>
> The JavaScriptLibraryModule now have configured four new modules based on
> non-AMD JavaScript:
> ["modernizr",
Hello,
it seems that somehow I believed Tapestry would be more magical than it is.
Yeah, after reading your answers, it sure is stupid to believe that some web
page can magically embed and render some pdf as part of a page.
So, going back to my intent, I want to display a pdf as part of a page.
Thank you guys,
the solution works fine without much changes to the component. Only had
generate clientID's dynamically
On Thu, Feb 19, 2015 at 8:34 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Thu, 19 Feb 2015 17:17:01 -0200, Sumanth
> wrote:
>
> Well I can certainly try
On Thu, 19 Feb 2015 17:17:01 -0200, Sumanth
wrote:
Well I can certainly try the way you have suggested, but wouldn't it be
better tif tapestry can handle it? Because, I know that we need to
specify client id for the zone when we use it, so generally a static
client id will be given to the
On Thu, 19 Feb 2015 17:17:01 -0200, Sumanth
wrote:
Hello George, Hello Thiago,
Hi!
Well I can certainly try the way you have suggested, but wouldn't it be
better tif tapestry can handle it? Because, I know that we need to
specify id for the zone when we use it, so generally a static cli
On Thu, 19 Feb 2015 16:45:48 -0200, Sumanth
wrote:
I've tried with zone's with t:async and even zone with ^ but doesnt solve
the problem.
zone="^" wouldn't work because the link is outside the zone. In addition,
for it to work, you'd need to return the object you wanted to be rendered
(
Hello George, Hello Thiago,
Well I can certainly try the way you have suggested, but wouldn't it be
better tif tapestry can handle it? Because, I know that we need to specify
client id for the zone when we use it, so generally a static client id will
be given to these component eg : but if
the zo
On Thu, 19 Feb 2015 16:56:21 -0200, George Christman
wrote:
this should work perfectly for you
public String getZonedId() {
return resources.getId() + "-zone";
}
public void onUpdateCount() {
count++;
System.out.println(getCompId());
ajaxResponseRenderer.ad
On Thu, 19 Feb 2015 16:32:16 -0200, George Christman
wrote:
We should probably clarify that in the docs, it's always been my
assumption you needed to use a component id with zones which you can
can't dynamically set.
t:id is the component id and it's static, not being able to be set
dy
this should work perfectly for you
public String getZonedId() {
return resources.getId() + "-zone";
}
public void onUpdateCount() {
count++;
System.out.println(getCompId());
ajaxResponseRenderer.addRender(getZonedId(), countZone);
}
Count : ${count}
As Thiago pointed out, you need to come up with some sort of dynamic id
generator that can be used to set the id in the tml and the
responseRenderer. I happened to just use the id you used for your
component, but as thiago said, you may want to use that else where and may
want to generate a unique
@Chris
Hi Chris,
I've tried with zone's with t:async and even zone with ^ but doesnt solve
the problem.
shouldn't the component be a black box from my perspective? And like
George Christman has said, the zone's client id's are uniquely generated by
tapestry itself, but some how it is unaware of
We should probably clarify that in the docs, it's always been my assumption
you needed to use a component id with zones which you can can't dynamically
set. Thanks Thiago.
On Thu, Feb 19, 2015 at 1:27 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Thu, 19 Feb 2015 16:19:54 -02
On Thu, 19 Feb 2015 16:19:54 -0200, George Christman
wrote:
Never, never, never ever use ${} expansions when binding Tapestry
parameters. In 100% of the cases, it's either harmless, but
philosophically wrong (as in this case, where the parameter type is
String) or completelywrong
On Thu, 19 Feb 2015 16:13:34 -0200, George Christman
wrote:
I would have thought tapestry would have done this automatically,
It cannot by the reasons I've described in my other e-mail in this thread.
:)
but the problem is your ajaxresponserender is telling the first zone to
update
r
On Thu, 19 Feb 2015 14:14:55 -0200, Chris Poulsen
wrote:
Coul be clash of zone ids in the html? - try generating unique zone id
(client side id, not t:id) e.g using the supplied t:id + something
You've nailed it, Chris. :) When using Zones, in one way of the other you
need to pass Tapestr
Try this
Count : ${count}
Update Count for
Component ${compId}
public class TestComponent {
@Parameter(required = true)
@Property
private int count;
@Inject
private ComponentResources componentResources;
@Inject
private AjaxResponseRender
I would have thought tapestry would have done this automatically, but the
problem is your ajaxresponserender is telling the first zone to update
rather than _0. This will get your second zone updating.
ajaxResponseRenderer.addRender("countZone_0", countZone);
I'm not sure what the best automated
On Thu, 19 Feb 2015 13:50:09 -0200, Poggenpohl, Daniel
wrote:
Hi,
Hi!
I think I've reduced the problem... Can I have a page containing a zone
that displays the contents of a pdf file?
It depends on what you're going to use to render the PDF file.
--
Thiago H. de Paula Figueiredo
Tapes
On Thu, 19 Feb 2015 12:28:02 -0200, Poggenpohl, Daniel
wrote:
Hello,
Hi!
well, embedding the component in a page shows not the PDF but the Java
object identity, e.g.
InlineViewingStreamResponse@8173c6
Maybe the error is somewhere else?
My component template is basically only ${showDocu
Hi Daniel,
Yes, you need an iframe. It isn't possible to directly embed a PDF file into an
HTML page (independent of Tapestry). As suggested, use the ComponentResource to
get the link for the iframe.
Best,
Thilo
From: Poggenpohl, Daniel
Sent: Thursday,
Coul be clash of zone ids in the html? - try generating unique zone id
(client side id, not t:id) e.g using the supplied t:id + something more or
wrap the link in the zone and use zone ^ (may be too simplistic for a real
use).
--
Chris
On Thu, Feb 19, 2015 at 3:49 PM, Sumanth wrote:
> 5.4 Beta
Hi,
I think I've reduced the problem... Can I have a page containing a zone that
displays the contents of a pdf file?
tml:
Show Doc
Java:
Object onShowDoc() {
// Some Object containing a member describing a path to a PDF doc
Hi,
I've found out that the "src" value is a web app context relative path (could
have thought of that myself...).
So the embedding of another page shouldn't be a problem.
Also thanks to Lance Java for helping with that, so there are at least two ways
to generate page links to a separate viewer
Java
@Inject
private ComponentResources resources;
public void getPdfLink() {
return resources.createPageLink("path/to/pdfpage", "someContext");
}
TML
5.4 Beta 22
On Thu, Feb 19, 2015 at 3:46 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Thu, 19 Feb 2015 11:17:57 -0200, Sumanth
> wrote:
>
> Forgot. :)
>>
>
> It happens, and I do that a lot. :P
>
> What beta are you using?
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestr
On Thu, 19 Feb 2015 11:17:57 -0200, Sumanth
wrote:
Forgot. :)
It happens, and I do that a lot. :P
What beta are you using?
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
Hi Daniel,
Your problem is triggering the event. Try using an event link:
http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/EventLink.html
Show
Important: you have to rename your listener method from showDocument() to
onShowDocument() or use the corresponding annota
Hello,
well, embedding the component in a page shows not the PDF but the Java object
identity, e.g.
InlineViewingStreamResponse@8173c6
Maybe the error is somewhere else?
My component template is basically only ${showDocument()}.
Re: iframe - If I use an iframe for embedding a document viewer p
Hi Daniel,
What exactly is the issue with your code? We use something similar (and content
type "application/pdf"); see below.
I'm sure you will take care of it when the code works, but your implementation
is extremely dangerous :-)
Best,
Thilo
public abstract class AbstractStreamResponse imp
Hi,
a little bit more information (read: code)...
I know the code is imperfect but this was just a quick and dirty setup to try
inline document viewing.
My Viewer component:
public class Viewer {
@Parameter(required=true)
@Property
String documentUrl;
Hi Daniel,
If you want to render a PDF on client side (instead of just sending a stream),
you could use pdf.js:
http://mozilla.github.io/pdf.js/
We use it for rather large PDFs and it works well.
Best,
Thilo
From: Poggenpohl, Daniel
Sent: Thursday, F
Use an iframe to load the StreamResponse page embedded in an html page.
On 19 Feb 2015 13:35, "Poggenpohl, Daniel" <
daniel.poggenp...@isst.fraunhofer.de> wrote:
> Hello,
>
> I am trying to build a component which can be embedded in a page and has a
> path parameter. If the parameter is set, the c
Hello,
I am trying to build a component which can be embedded in a page and has a path
parameter. If the parameter is set, the component should show/render the file
contents (a pdf). The StreamResponse class allows me to create a page
containing a pdf that can be viewed. Is it possible to embed
Forgot. :)
TestPage.tml
TestPage.java
public class TestPage {
@Property
@Persist
private int countForComponentA;
@Property
@Persist
private int countForComponentB;
}
TestComponent.tml
http://tapestry.apache.org/schema/tapestry_5_4.xsd";
xmlns:p="tapestry:parameter">
On Thu, 19 Feb 2015 11:01:13 -0200, Sumanth
wrote:
Hello Users,
Hi!
Please post the code when asking for help. We're not psychics (well, at
least I know I'm not). :)
I am facing a problem with Tapestry components and would like to know if
this is a bug.
I have two components which a
Hello Users,
I am facing a problem with Tapestry components and would like to know if
this is a bug.
I have two components which are the same . They have a count field and a
link to update the count via ajax.
The problem is when you click on the link from the second component then
the count zone
Luca,
Your reply was tremendously helpful. I don't really know my way around apache
and tomcat but using your guide I managed to figure it out and am now doing as
you suggest, terminating SSL at Apache then running two Tomcat connectors over
HTTP, one with secure=true.
All working great. Tha
> Its working now as long my form components not rendered in loops or grids
Hmm... I'd call that broken ;)
39 matches
Mail list logo