create a custom tag for the board rendering ^g^

On Jan 7, 2008 12:45 PM, GF <[EMAIL PROTECTED]> wrote:

> I have matrix of objects.. somekind like ChessBoardPosition[][]
> I want to render it using Struts2.
>
> You can imagine my matrix as a Chessboard..
> I use 2 iterators, to iterate over columns and rows, and finally i
> want to render the single object inside the matrix, that will be a
> empty position of the chessboard. or a busy position with a chess
> piece.
>
> Which kind of technique do you suggest to me?
>
> My idea is to use something like:
>
> <s:iterator --rows-- >
> <s:iterator --columns-- >
> -- render the single chessboard position --
> </s:iterator>
> </s:iterator>
>
> Is there a way to use Tiles.. and I can create a tiny tile to which I
> pass the ChessBoardPosition object and the tile will do the work of
> rendering it depending of which kind of piece there is on it?
>
> Or maybe is better to do something different?
> Any idea is appreciated.
> Thanks!!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"Sit tibi terra levis"

http://yayocaturas.blogspot.com/

Reply via email to