Its working now as long my form components not rendered in loops or grids
Hmm... I'd call that broken ;)
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 : t:zone
On Thu, 19 Feb 2015 16:56:21 -0200, George Christman
gchrist...@cardaddy.com wrote:
this should work perfectly for you
public String getZonedId() {
return resources.getId() + -zone;
}
public void onUpdateCount() {
count++;
System.out.println(getCompId());
On Thu, 19 Feb 2015 17:17:01 -0200, Sumanth roasteddra...@gmail.com
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,
On Thu, 19 Feb 2015 17:17:01 -0200, Sumanth roasteddra...@gmail.com
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
On Thu, 19 Feb 2015 16:45:48 -0200, Sumanth roasteddra...@gmail.com
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
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 roasteddra...@gmail.com
wrote:
Well I
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
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.
On Thu, 19 Feb 2015 11:01:13 -0200, Sumanth roasteddra...@gmail.com
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
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
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
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
Forgot. :)
TestPage.tml
t:test.TestComponent t:id=abcd t:count=countForComponentA /
t:test.TestComponent t:id=hijk t:count=countForComponentB /
TestPage.java
public class TestPage {
@Property
@Persist
private int countForComponentA;
@Property
@Persist
private int
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
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:
body
t:Zone t:id=inline id=inline
/t:Zone
t:EventLink t:event=showDoc t:zone=inline
Show Doc
/t:EventLink
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
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
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
t:eventlink t:event=showDocumentShow/t:eventlink
Important: you have to rename your listener method from showDocument() to
On Thu, 19 Feb 2015 11:17:57 -0200, Sumanth roasteddra...@gmail.com
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
@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
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);
}
t:zone t:id=countZone
On Thu, 19 Feb 2015 16:32:16 -0200, George Christman
gchrist...@cardaddy.com 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
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 14:14:55 -0200, Chris Poulsen mailingl...@nesluop.dk
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
Try this
t:zone t:id=countZone id=${compId}
Count : ${count}
/t:zone
t:eventLink t:async=true t:event=updateCount Update Count for
Component ${compId}/t:eventLink
public class TestComponent {
@Parameter(required = true)
@Property
private int count;
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
On Thu, 19 Feb 2015 16:13:34 -0200, George Christman
gchrist...@cardaddy.com 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
On Thu, 19 Feb 2015 16:19:54 -0200, George Christman
gchrist...@cardaddy.com wrote:
t:zone t:id=countZone id=${compId}
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
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
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 socac...@gmail.com wrote:
Hi Geoff,
here the missing parts :)
The JavaScriptLibraryModule now have configured four new modules based on
non-AMD JavaScript:
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
On Thu, 19 Feb 2015 12:28:02 -0200, Poggenpohl, Daniel
daniel.poggenp...@isst.fraunhofer.de 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
On Thu, 19 Feb 2015 13:50:09 -0200, Poggenpohl, Daniel
daniel.poggenp...@isst.fraunhofer.de 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.
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
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
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 roasteddra...@gmail.com
wrote:
Forgot. :)
It happens, and I do that a lot. :P
What beta are you using?
--
Thiago H. de Paula Figueiredo
Java
@Inject
private ComponentResources resources;
public void getPdfLink() {
return resources.createPageLink(path/to/pdfpage, someContext);
}
TML
iframe src=${pdfLink} ...
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;
39 matches
Mail list logo