Could someone expand (expound?) more on rendering a Tapestry 5 component
*inside* a java class?

For example, I have an application I'm rewriting (from an
ancient-god-help-me-C-program) in Tapestry.  It's a venerable forum tool
that lets users put "macros" in their posts.  Each macro is rather like a
Tapestry component.

So as I'm rendering the page in the normal Tapestry way, I also want to
parse the users's posts, and be able to evaluate (render) the macros
(components) in the posts, and then spit the output, probably via
outputraw(?), to the Tapestry page.

So for example, a user's post might have something like:
   "Hey, I'm living now at %googleMap(latitude,longitude), and it's really
%blink(cool)!"

I want to be able to parse out the %googleMap and evaluate it (render it) as
a component (that I will write), then parse out the %blink and evaluate it
as another component (say, ye olde HTML blink tag)... accumulate all of the
user's text plus the rendered components, and THEN spit out all of the text.

Trying to do this with a (large!) collection of blocks would be tedious, and
maybe even impossible.  But this thread suggests that there are other ways
to do it, programmatically inside the Java class for a page.

Any hints or pointers are most welcome.  Thanks in advance!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Programmatical-page-component-rendering-tp5159795p5549303.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to