| Sign In/My Account | View Cart |
| Article: |
Improving JSF by Dumping JSP | |
| Subject: | Attributing blame | |
| Date: | 2004-06-10 12:28:23 | |
| From: | BigBadaboom | |
|
When you describe the problem of using JSPs and JSF together, you seem to blame JSPs. It seems to me that the fault isn't really with JSPs or tag libraries in general. It is a problem with the JSF tag library specifically. After all, they could be written in a way that would preserve body content, could they not? |
||
Showing messages 1 through 3 of 3.
<h:panelGroup>
Some text
<h:outputText value="Some other text" />
Some more text
</h:panelGroup>
That's not strictly true, I have created a couple of tag libraries that do this. The solution is for the outputText tag to write a marker into the body content of the panelGroup tag which gets checked for in panelGroup.doAfterTag(). It's not exactly elegant, but it works.