Hi Arve,

We're using an if to display grid only when it has data. Like this:

test.java:
...




On Nov 16, 2007 2:40 PM, adamh <[EMAIL PROTECTED]> wrote:
>
> Hi Arve,
>
> Yep, I got it to work as well - I should have been a bit more persistent
> with my searching, still its little 'should be simple' things like this that
> can trip you up if you are new to the T5 way. Its just a question of the
> docs getting updated, I thought I saw talk of a grid section/tutorial
> somewhere.
>
>
>
> Arve Klev wrote:
> >
> > yes, it works fine.
> >
> >
> > 2007/11/16, Joshua Jackson <[EMAIL PROTECTED]>:
> >>
> >> On 11/16/07, Arve Klev <[EMAIL PROTECTED]> wrote:
> >> > hi,
> >> > as a novice in regards to Tapestry, I first thought it was a bug,
> >> > but at last I tried to supply a beanmodel, and everything is fine
> >> (obvious
> >> > to others, I think).
> >> > I found the tip here:
> >> >
> >> http://tapestry.apache.org/tapestry5/tapestry-core/guide/beaneditform.html
> >> .
> >> >
> >> > <table t:type="grid" pagerPosition="both" source="persons" model="
> >> > personModel" reorder="firstName" />
> >> >
> >> >    @Inject
> >> >    private BeanModelSource _beanModelSource;
> >> >
> >> >    @Inject
> >> >    private ComponentResources _resources;
> >> >
> >> >    @Retain
> >> >    private BeanModel _model;
> >> >
> >> >    public BeanModel getPersonModell() {
> >> >        return _model;
> >> >    }
> >> >
> >> >    void pageLoaded() {
> >> >        _model = _beanModelSource.create(Person.class, false,
> >> _resources);
> >> >    }
> >> >
> >> > Is this the right way to inform the grid component to use the "
> >> Person.class
> >> > "?
> >>
> >> Have you tried it yet?
> >>
> >>
> >> --
> >> What you want today, may not exist tommorrow
> >>
> >> Blog: http://joshuajava.wordpress.com/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/T5%3A-Grid-component%2C-reorder-and-empty-source-tf4782045.html#a13797863
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to