Re: [T5.0.11] how to build zebra effect for grid

2008-03-21 Thread Davor Hrg
it's there on the wiki, use it any way you wish :)

On Fri, Mar 21, 2008 at 2:53 PM, Sven Homburg <[EMAIL PROTECTED]> wrote:
> nice implementation!
>  i want to implement it into the t5component project ...
>  is that problematic for you ?
>
>  2008/3/21, Davor Hrg <[EMAIL PROTECTED]>:
>
>
> >
>  > it is just what the exception says:
>  > class de.hsofttec.tapestry.components.grid.ZebraGrid overrides final
>  > method
>  >
>  >
>  >
>  > tapestry core compoennts are being rewritten to
>  > disallow extending (quote: for client code to be less dependant, and
>  > framework easier to maintain)..
>  >
>  > for zebra effect.. may I suggest :
>  > http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle
>  >
>  > ...
>  >
>  >
>  >
>  > Davor Hrg
>  >
>  >
>  > On Fri, Mar 21, 2008 at 12:52 PM, Sven Homburg <[EMAIL PROTECTED]>
>  > wrote:
>  > > hi there,
>  > >
>  > >  i realized the zebra effect before release 5.0.11
>  > >  with a ZebraGrid class extends from Grid component.
>  > >
>  > >  public class ZebraGrid extends Grid
>  > >  {
>  > > private boolean _even = true;
>  > >
>  > > /**
>  > >  * return the row class to enable the zebra look.
>  > >  *
>  > >  * @return the row class
>  > >  */
>  > > String getRowClass()
>  > > {
>  > > String cssStyle = "h-even";
>  > >
>  > > if (_even)
>  > > {
>  > > _even = false;
>  > > cssStyle = "h-odd";
>  > > }
>  > > else
>  > > _even = true;
>  > >
>  > > return cssStyle;
>  > > }
>  > >  }
>  > >
>  > >  but since release .5.0.11 (@Property) my compoment throw an exception
>  > like
>  > >  this
>  > >  "class de.hsofttec.tapestry.components.grid.ZebraGrid overrides final
>  > method
>  > >   . "
>  > >
>  > >  any idea ?
>  > >
>  > >  --
>  > >  with regards
>  > >  Sven Homburg
>  > >  http://tapestry5-components.googlecode.com
>  > >
>  >
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>  >
>  >
>
>
>  --
>
>
> with regards
>  Sven Homburg
>  http://tapestry5-components.googlecode.com
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5.0.11] how to build zebra effect for grid

2008-03-21 Thread Sven Homburg
nice implementation!
i want to implement it into the t5component project ...
is that problematic for you ?

2008/3/21, Davor Hrg <[EMAIL PROTECTED]>:
>
> it is just what the exception says:
> class de.hsofttec.tapestry.components.grid.ZebraGrid overrides final
> method
>
>
>
> tapestry core compoennts are being rewritten to
> disallow extending (quote: for client code to be less dependant, and
> framework easier to maintain)..
>
> for zebra effect.. may I suggest :
> http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle
>
> ...
>
>
>
> Davor Hrg
>
>
> On Fri, Mar 21, 2008 at 12:52 PM, Sven Homburg <[EMAIL PROTECTED]>
> wrote:
> > hi there,
> >
> >  i realized the zebra effect before release 5.0.11
> >  with a ZebraGrid class extends from Grid component.
> >
> >  public class ZebraGrid extends Grid
> >  {
> > private boolean _even = true;
> >
> > /**
> >  * return the row class to enable the zebra look.
> >  *
> >  * @return the row class
> >  */
> > String getRowClass()
> > {
> > String cssStyle = "h-even";
> >
> > if (_even)
> > {
> > _even = false;
> > cssStyle = "h-odd";
> > }
> > else
> > _even = true;
> >
> > return cssStyle;
> > }
> >  }
> >
> >  but since release .5.0.11 (@Property) my compoment throw an exception
> like
> >  this
> >  "class de.hsofttec.tapestry.components.grid.ZebraGrid overrides final
> method
> >   . "
> >
> >  any idea ?
> >
> >  --
> >  with regards
> >  Sven Homburg
> >  http://tapestry5-components.googlecode.com
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com


Re: [T5.0.11] how to build zebra effect for grid

2008-03-21 Thread Davor Hrg
it is just what the exception says:
class de.hsofttec.tapestry.components.grid.ZebraGrid overrides final method


tapestry core compoennts are being rewritten to
disallow extending (quote: for client code to be less dependant, and
framework easier to maintain)..

for zebra effect.. may I suggest :
http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefixCycle

...



Davor Hrg

On Fri, Mar 21, 2008 at 12:52 PM, Sven Homburg <[EMAIL PROTECTED]> wrote:
> hi there,
>
>  i realized the zebra effect before release 5.0.11
>  with a ZebraGrid class extends from Grid component.
>
>  public class ZebraGrid extends Grid
>  {
> private boolean _even = true;
>
> /**
>  * return the row class to enable the zebra look.
>  *
>  * @return the row class
>  */
> String getRowClass()
> {
> String cssStyle = "h-even";
>
> if (_even)
> {
> _even = false;
> cssStyle = "h-odd";
> }
> else
> _even = true;
>
> return cssStyle;
> }
>  }
>
>  but since release .5.0.11 (@Property) my compoment throw an exception like
>  this
>  "class de.hsofttec.tapestry.components.grid.ZebraGrid overrides final method
>   . "
>
>  any idea ?
>
>  --
>  with regards
>  Sven Homburg
>  http://tapestry5-components.googlecode.com
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5.0.11] how to build zebra effect for grid

2008-03-21 Thread Sven Homburg
hi there,

i realized the zebra effect before release 5.0.11
with a ZebraGrid class extends from Grid component.

public class ZebraGrid extends Grid
{
private boolean _even = true;

/**
 * return the row class to enable the zebra look.
 *
 * @return the row class
 */
String getRowClass()
{
String cssStyle = "h-even";

if (_even)
{
_even = false;
cssStyle = "h-odd";
}
else
_even = true;

return cssStyle;
}
}

but since release .5.0.11 (@Property) my compoment throw an exception like
this
"class de.hsofttec.tapestry.components.grid.ZebraGrid overrides final method
."

any idea ?

-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com