Tutorials to .com

Tutorials to .com » Jsp » Tapestry-hivemind » Tapestry template technology into

Tapestry template technology into

Print View , by: iSee ,Total views: 3 ,Word Count: 1180 ,Date: Thu, 16 Apr 2009 Time: 2:45 AM

tapestry template technology provides a very good template for the special low-invasive.
Allows artists and developers to work together as much as possible. It is precisely the advantage of many other web frameworks weaknesses.

See the following analysis:

I, art work
First of all, to facilitate the use of available tools such as DreamWeaver to create the design of HTML page, including CSS, images and so on.
Then, in the dynamic content has been added to modify the page, modify, and then modified until the customer satisfaction ...... so far.
Please note that at this time of the dynamic content is basically an increase of SPAN tags, modify the label (just added a property JWCID)
Art design tools use basically do not feel any change. Perhaps not everyone is very clear, please continue to look down ...

Second, the development of staff

1, a simple dynamic content
,: If the content is purely show the need to use static content surrounded SPAN, such as:
<td> San </ td>
<td> 30 </ td>

Amended to read:
<td> <span jwcid="name"> Zhang </ span> </ td>
<td> <span jwcid="age"> 30 </ span> </ td>

,: If users need to enter the content, you need to add a JWCID attributes, such as:
<td> <input type="text" name="username" value=""/> </ td>
<td> <input type="text" name="age" value="30"/> </ td>

Amended to read:
<td> <input jwcid="name" type="text" name="username"/> </ td>
<td> <input jwcid="age" type="text" name="age" value="30"/> </ td>

nameage。 Of course, page file name and age need to define other properties of components.
jwcid ,page,。 Strongly recommended: HTML page span and an increase of only jwcid, other parts of the document into the page, which is as little as possible in order to interfere with the work of artists.

2, branches of dynamic content
Page may exist under different conditions show different content, that is, if-then-else.
Art in this situation need to make a static page to all the circumstances (which may be on the static pages have a certain impact), such as:
<! - If> 0 then H else L ->
<td> HL </ td>

Amended to read
<! - If> 0 then H ->
<td> <span jwcid="if"> H </ span> <span jwcid="else"> L </ span> </ td>

3, cycle dynamic content
<tr>
<td> 1 </ td>
<td> a </ td>
</ tr>
<tr>
<td> 1 </ td>
<td> b </ td>
</ tr>

Amended to read
<span jwcid="items">
<tr>
<td> <span jwcid="item.id"> 1 </ span> </ td>
<td> <span jwcid="item.name"> a </ span> </ td>
</ tr>
</ span>
<span jwcid="$REMOVE$">
<tr>
<td> 1 </ td>
<td> b </ td>
</ tr>
</ span>

Note that the repeated use of the contents of $ REMOVE $ surrounded.

Third, art and developer collaboration
In the above two steps, based on the art staff and developers to share the same set of pages, non-interfering, work together to achieve as much as possible.

In this paper, the structure of the procedure are supported on the template Tapestry classified technology that can be seen for the art staff and the division of responsibilities between developers and collaboration can play a significant role. I think this should be the biggest selling points of Tapestry!
Tapestry is particularly suitable in the "art made by all the pages, and then modified by the developer, and then artists have been revising the page, developers continue to correspond to this ......" workflow.

Of course, for the page is very complex, Tapestry might not do anything about it, can only be used as a way to compromise.


tapestry & hivemind Articles


Can't Find What You're Looking For?


Rating: Not yet rated

Comments

No comments posted.