Women in Technology

Hear us Roar

  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"
width="36" border="0"/>

And in addition:

<component id="guessesLeft"
value="#{guessesLeftImages[visit.game.incorrectGuessesLeft]}" />

we can use something like this:

height="36" src="images/Chalkboard_3x8.png"
width="36" border="0"/>

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Dropping View-Specification file
    2004-06-10 10:10:35  Hans Bergsten | O'Reilly Author [View]

    For simple cases, yes, you could put some JSF expressions directly into the template (and I know Tapestry allows this). But then you're back to having special, non-HTML pieces in the template again.

    There's may be a balance somewhere, but I prefer to keep the template files completely clean and keep all the JSF specific stuff in separate files.