ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Improving JSF by Dumping JSP
Subject:   Dropping View-Specification file
Date:   2004-06-10 04:03:32
From:   Seyyed Jamal
I think by extending Tapestry idea (adding new jwsid attribute to basic html tags)
we may be able to drop the view specification xml file.


For example instead of:


<img id="guessesLeft" height="36"
src="images/Chalkboard_3x8.png"
width="36" border="0"/>


And in addition:


<view-specification>
<component id="guessesLeft"
type="javax.faces.Graphic"
value="#{guessesLeftImages[visit.game.incorrectGuessesLeft]}" />
...
</view-specification>


we can use something like this:


<img
graphicId="#{guessesLeftImages[visit.game.incorrectGuessesLeft]}"
height="36" src="images/Chalkboard_3x8.png"
width="36" border="0"/>



1 to 1 of 1
  1. Dropping View-Specification file
    2004-06-10 10:10:35  Hans Bergsten | O'Reilly Author [View]

1 to 1 of 1