Incidentally, another strategy for mixing an html template with direct
java output would be to use an @Insert element that calls a method
that returns the necessary string.  That would allow you to call into
multiple methods at various locations during the template rendering. 
I'm afraid I don't know the answer to your question about outputting
all the content in java, although I am pretty sure it is covered in
the Enjoying Web Development with Tapestry ebook.  I seem to recall
some mention of that during the component writing chapter.

--sam


On 4/9/06, Andreas Bulling <[EMAIL PROTECTED]> wrote:
> On 09. Apr 2006 - 12:48:30, Mike Snare wrote:
> | Take a look at the Table and/or TableView components, as well as the
> | Palette components.  They both allow the user of the component to
> | specify the css class for different elements in the component, and
> | images (Palette) that should be used to render certain things like the
> | move left/right buttons.
> |
> | Your component should probably just _do_ something useful, and let the
> | user of the component dress it up.
> |
> | Let's say your Panel uses a div for the outer shell.  Allow a
> | panelClass parameter, and use it for the value of the class attribute
> | of the div.
>
> OK, now I got it ;)
>
> But as I don't want to rewrite the whole component could
> someone please explain how to output the mentioned html
> stuff in Java? Thanks a lot!
>
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to