Hi,
An approach I've just used, is to render the XML into to the page,
convert the generated markup into a String and then remove the XML
from the DOM.
It may not be appropriate for all cases but it works if you just want
to template pure XML with no javascript or CSS.
Here's a component which r
o do this or if I'm going down a dead end street
> please let me know. I'm also very open to alternate solutions.
>
> thanks in advanced!
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Rendering-a-Block-tp3401393p3795483.html
there is a better way to do this or if I'm going down a dead end street
please let me know. I'm also very open to alternate solutions.
thanks in advanced!
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Rendering-a-Block-tp3401393p3795483
at 1:04 PM, Joe Klecko wrote:
>>> provide more details. Anyway, there isn't a ready made way of rendering a
>>> block to a string. Please file a JIRA about it. Meanwhile, this message
>>> in
>>> the mailing list provide a way of doing exactly what you want:
>>
>> provide more details. Anyway, there isn't a ready made way of rendering a
>> block to a string. Please file a JIRA about it. Meanwhile, this message
>> in
>> the mailing list provide a way of doing exactly what you want:
>> http://www.mail-archiv
I've also had a use-case like this - I wanted to use tapestry to
generate html based on a .tml, in response to an ajax request that I was
initiating from my own javascript, ie nothing to do with a zone.
We've had a few people on the list say they'd like to do this. Given
that tapestry is doing th
DIV of my choice.
As other people stated here, Tapestry zones already provides something at
least similar to what you want. I can't say for sure because you didn't
provide more details. Anyway, there isn't a ready made way of rendering a
block to a string. Please file a JIRA ab
That was my issue. I did not want to work with zones either, and as a
result pounded my head against the wall. Using Tapestry features -
zones and blocks - solves this problem (although not very intuitive).
The tricky part is the Tapestry specific JavaScript which isn't
readily documented.
On Sat,
Unless I'm missing something (which is possible), in both cases the
complexity comes because you are trying to NOT use the features of Tapestry.
Both of you want to bypass the tools Tapestry gives you.
Use an EventLink and use a context and a zone.
As for an arbitrary div... you can update any
The thing is, he does not want to work with zones!
Heh.. this is funny, but it sounds like the issue I just described in
my "Grid with multiple forms" thread. Anyway, to call a Tapestry event
from a JavaScript you probably want this in your javascript:
function yourJavaScriptMethod(yourParameter
Heh.. this is funny, but it sounds like the issue I just described in
my "Grid with multiple forms" thread. Anyway, to call a Tapestry event
from a JavaScript you probably want this in your javascript:
function yourJavaScriptMethod(yourParameterIfYouHaveOne) {
var url = '${tapestryEvent}' + '/
Hi,
Well, it is an AJAX request. The X-Requested-With header is properly
set, isXHR() will return true. I'm executing it in Javascript, just a
normal call. It's supposed to return a form that I can then display in
any DIV that I want, and I don't want to use zones here. So I would
think I sho
Hi Tom.
You can definitely return a block as the result of an AJAX request. If it's
not an AJAX request then you will get an error about not having a result
processor.
Make sure that the zone parameter is set on the link you are using to
initiate the zone update, and that javascript is turned on.
Hello,
I want to do something that should be simple but appears to be complex.
I want to render a Block and return the result. The context is a website
in which I want to use Javascript to fill a . I don't want to use a
zone for this. What I did was make a in the .tml file. Now what I
want to do
Hi there,
still developing my tree component, now I have a new problem.
My tree consists of a recursive list, each entry is a rendered block.
While this works great while being in the rendering phase (by returning
the correct block from my beginRender method, and looping said method by
return
Hi Josh,
thanks, this works great!
I think I understand the rendering process now a little bit better, so a
Delegate would have been fine too - thank you, Howard. I just didn't
understand how to render that Delegate before, since it is a component
too. (I hope I now understand it correctly th
But you can't use a delegate component without a template, right?
On Wed, Jul 9, 2008 at 12:15 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:
> Another option is to use the Delegate component and pass it the Block
> instance.
>
> On Wed, Jul 9, 2008 at 9:59 AM, Josh Canfield <[EMAIL PROTECTED]>
Another option is to use the Delegate component and pass it the Block instance.
On Wed, Jul 9, 2008 at 9:59 AM, Josh Canfield <[EMAIL PROTECTED]> wrote:
> I don't recall if you can use MarkupWriter to write blocks yet, but one
> method I've used is to return the block from the beginRender method,
I don't recall if you can use MarkupWriter to write blocks yet, but one
method I've used is to return the block from the beginRender method, it's
rendered after whatever you write within the method. I believe for both
blocks you would have to use both beginRender and beforeRenderTemplate, or I
supp
Hi there,
I am developing a tree component which can take several classes as
nodes. Each class should have it's own body, stored in parameters - and
then rendered, of course.
Now, lets say I have I have this code in my Test.tml:
---
Wow, Josh. Thanks, that's a lot of work! I'll try.
On Fri, Apr 18, 2008 at 6:53 PM, Josh Canfield <[EMAIL PROTECTED]>
wrote:
> I'm not sure if there is an easier way to do this, but you could
> configure a MarkupRendererFilter that finds and moves your elements
> before the page is written. Thi
I'm not sure if there is an easier way to do this, but you could
configure a MarkupRendererFilter that finds and moves your elements
before the page is written. This is how pageRenderSupport.addScript
works, sortof...
Here's something I whipped up. You could push something on the
environment to st
I have a component that picks up a Block via
componentResources.getBlockParameter(String). No problem. But I need to
render this Block at the very bottom of the overall page, right before the
.
Any thoughts?
--
Bill @ PeoplePad
23 matches
Mail list logo