{́AJSFT|[gt[[NłS2JSFɂĐƎv܂

Today, let me show you S2JSF which is the framework to support JSF.

̃v[e[V̖ړÍAJSF̎dlɑ΂񌾂ł

The purpose of this presentation is the proposition for the specification of JSF.

S2JSF̎dlJSFɎ荞܂ȂAJSF͂Ɏg₷ȂƐMĂ܂

If the specification of S2JSF is taken into JSF, I strongly believe JSF  becomes more easy to use.

S2JSF́A{̃I[v\[XvWFNgłSeasar Project̃v_NĝЂƂɂȂ܂

S2JSF is one of the products of The Seasar Project which is the open source project of Japan.

ꂪSeasarŁACIɎz̐ł

This is a Seasar, it is the imaginative creature which is similar to the lion.

݃o[W2̊Ji߂Ă̂ŁASeasar2AS2ƌĂ΂Ă܂

Because currently development of version 2 is proceeded, it's called Seasar2, for short, S2.
--------------------------------------------------------
S2JSFɂ́A2̏dvȋ@\܂

There are two important functions in S2JSF.

Pڂ̓́Ay[W̃ev[gHTMLłƂƂłJSPł͂Ȃ̂łTapestrŷ悤Ȃ̂ł

The first feature is that the template of the page is HTML, not JSP.
It is similar to Tapestry.

2߂̓́Aev[g̃CAEg@\łTileŝ悤Ȃ̂ł

The second feature is layout solutions.
It is similar to Tiles.
----------------------------------------------------------
HTMLg_ƂĎ̂悤ȂƂ܂

I'm going to outline the advantages of using HTML.

܂ŏɋ̂Ay[W̃CAEg̊mFȒPƂƂł

First, the confirmation of layout is easy.

JSPgĂĈԕsւȂ̂AT[oɃfvCȂƃCAEg̊mFoȂ_ł

Using JSP, it is stressful that you can't even check the layout of the page
without deploying to the application server. 

uEUŒڃCAEgmFł悤ɂȂƁAJȂyɂȂ܂

When you can confirm the layout directly with the browser, development
considerably becomes easy.

ł́Af܂傤

Then, let me show you the demonstration.

炨f́A]ƈ̐VKAA폜AƉsAvP[Vł

The demonstration which we show from now is the application which does creation, correction, deletion and inquiry of the employees.

HTML̒ɂ́Â悤JSFp̑ߍ܂Ă܂

This way the attribute for JSF is embedded in HTML.

vOC̋@\ŕ⊮Eof[V邱Ƃo܂

Using S2JSF Plugin, this way it is possible also to compensate and validate.

HTMLuEUŒڕ\Ă݂܂傤

I will try indicating this HTML directly with the browser

̂悤ɃCAEgʑJڂȒPɊmFł܂

This way you can confirm layout and page transition easily.

2ڂɂ̂AfUCiƂ̘AgyƂƂł

Second, the cooperation with designer is easy.

fUCi쐬HTMLJSFp̑ǉ邾ŁAS2JSFpHTMLev[gɑς肵܂

If you just add the attribute for JSF to HTML which the designer drew up , it turn quickly to the HTML template for S2JSF.

܂AHTMLev[ǵADreamweaverȂǂHTML̕ҏWc[łȂ邽߁AHTMLev[gfUCiC邱ƂȒPł

In addition, it is easy for designer to correct the HTML template, because the HTML authoring tool like Dreamweaver can handle without problem.
----------------------------------------------------------
HTMLev[gɂĂڂb܂

I'd like to a little in detail talk about HTML template.

HTML̃^ÓAsJSF̃^Oɕϊ܂

The HTML tag is converted to the JSF tag at runtime.

Ⴆ΁Â悤HTML̃^ÓA̂悤JSF̃^Oɕϊ܂

For example, this kind of the HTML tag is converted to following kind of the  JSF tag.

injectgāAJSF̃^O𖾎IɎw肷邱Ƃł܂

Using the inject attribute, you can specify the JSF tag explicitly.

́AJSFpɏꂽJSPtaglibׂčėpłƂƂӖĂ܂

This means all JSP taglib for JSF are reusable.

S2JSF́AJSP̎sG~[gĂJSP̃^O\Ă܂

S2JSF renders these JSP tags in the way of emulating the JSP runtime environment.
----------------------------------------------------------------------
CAEg@\ɂĐ܂

I'm going to describe the layout solutions.

TilesɎĂ܂

It is similar to Tiles.

{ITiles̋@\JSFł蒼IɎg₷悤ɈڐÂł

It ports The Tiles basically,as more intuitive and easy-to-use in JSF.

ꂪCAEgp̃ev[głB

This is the template for layout.

^Cgwb_Aj[A{fBȂǂ`Ă܂

It defines title, header, menu and body etc.

wb_⃁j[́Ainsert^OsrcŁAy[Ww肵܂

The header and the menu specify the page with src attribute of the insert tag.

{fB́Aŏ㏑ł悤ɖOtĂ܂

To overwrite later, it is necessary for you to name the body.
--------------------------------------------------------------------------
̃CAEgpČʂ̃y[W쐬܂

The each page succeeds the layout which is defined some time ago.

ṕAhtml^OextendsŎw肵܂

The succession id specified the extends attribute of the html tag.

X̃y[Wł́Ãy[Winsert^OnameŎw肵e㏑邱Ƃo܂

It is possible for each page to overwrite the contents which are specified the name attribute of the insert tag of original page.

̗ł́Anamebodŷ̂łB

With this example, the name attribute is body.

ł́Ãy[W\Ă݂܂

Then, I will display this page.

Tiles蒼IŎg₷@\ɂȂĂ܂

I'm certain that the layout function of S2JSF is more intuitive and easy-to-use than Tiles.
--------------------------------------------------------------------------
_ƂāAy[W̃ev[gHTMLɂ邱ƂƁACAEg@\T|[g邱ƂŁAJSF͂g₷ȂƎv܂

In conclusion, if HTML template and layout function is taken into JSF, I believe JSF becomes more easy to use.

Ċɂ̋@\͂ɂ܂

And already there is here.
