Okay, I think I understand what you need.
In Tobago the tx:-library was similar. Take some components and combine
it to a new one. But because of the disadvantages of Tag-Files we coded
it with Java-Code :-(
Did you tried running your app with Tomcat 5.5?
There are different solutions. The old solutions doesn't work in new
Containers with the new JSF spec.
When using Facelets, this will work also with JSF 1.1 and JSF 1.2.
There might be an ugly solution, but I didn't tried it:
JSP:
<% request.put("x", "Foo") %>
<my:tag/>
<% request.put("x", "Bar") %>
<my:tag/>
Tag-File:
<tc:label value="#{x} />
It is ugly, because the parameter x can't be seen and I think it will
run only with JSF 1.1, but not with JSF 1.2.
You can't use <% %> in Tag-Files, so you can't nest it.
My suggestions is: Use Facelets when you can.
The good end: The JSF 2.0 Composite Components is the *real* solution
for that issue :-)
Regards,
Udo
Am 18.03.10 16:17, schrieb Alf Felis:
I will try to discribe what I am going to do...
For example I will create a sheet (panel, box, etc.) which I can use in
different pages. The sheet content should be filled from different beans. Some
pages should contain the sheet twice with two different beans containing the
data to be displayed.
How do I solve this problem?
My approach was using jsp tag files containing the sheet part with<%@ attribute
name=... %>, but apparently this doesn't work.
Possibly there is a better solution?
Best regards,
Alf