Thiago,
I will probably do something like this for now, but in my opinion its
not a suitable solution. Even with this method I am left with the burden
of injecting however many stylesheets I need, and then providing getters
for them. I must do this for every page or component that needs its ow
Em Wed, 26 Sep 2007 13:23:47 -0300, Chris Lewis
<[EMAIL PROTECTED]> escreveu:
Indeed, but its not declarative and it doesn't address style sheets.
Like I said, I'm not hell-bent on a declarative solution, but I do not
want to:
1) @Inject/@Path my css ...
2) .. and provide a getter ...
3) .. f
I wish I had figured it out. As it stands it looks to be quite
impossible to capture the content of a component. I'm beginning to
think that components are woefully insufficient in anything but
trivial examples. More complicated examples like the beanform, or grid
are vastly more complex than they
Indeed, but its not declarative and it doesn't address style sheets.
Like I said, I'm not hell-bent on a declarative solution, but I do not
want to:
1) @Inject/@Path my css ...
2) .. and provide a getter ...
3) .. for every page!
On top of that it would be quite nice to know only from the temp
e tag contents.
>
> I know that an alternative is just to slap it in the page where the
> component is rendered, but that's just sloppy.
>
--
View this message in context:
http://www.nabble.com/T5-component-content-tf4424504.html#a129041
Hello Todd,
I'm curious if you've made any progress on this as I too am interested
in a declarative way to insert JS and CSS. The best thing I've come up
with is a general component used for inserting elements into the head of
the document. It could be used like this:
It may make sense to
I'm trying to create a component that will allow me to define blocks
of HTML to insert into the head. I think this would be useful for ad
hoc JS, style declarations, etc. I know that this can be inserted
using other mechanisms like:
Element head = writer.getDocument().find("html/head");
and inser
It's somewhat impossible. The content isn't stored as a string, but as a
large collection of objects representing different parts of the template as
well as components. You're better off explaining what you want to do if you
want to avoid a blind alley.
It's a bit easier to get the renderered HT
What do you want to do with it?
If you want to render it somewhere in the component then use a block
parameter.
Some Content
there are fuller examples in the list.
If you actually want to put into a String, then I don't know. Maybe tell us
your use case and we can figure something ou
I've been pulling my hair out over this problem. How do simply get the
content of a component?
usage given:
Some content
I have found that it's quite impossible to get the content into a
variable from within the component events.
Any ideas?
---
10 matches
Mail list logo