Hi,
You're not disturbing - this is a mailing list, if you can't post to it,
what good is it? :)
Anyhow, YourGridRowClassType is User in your case. So if you want to
disable sorting on the username property, you would do it like this:
@Inject
private BeanModelSource beanModelSource;
@Inject
private ComponentResources componentResources;
private BeanModel<User> model;
void onActivate() {
model = beanModelSource.create(User.class, false, componentResources);
model.get("username").sortable(false);
}
Hope that helps.
-Filip
daniel alonso skrev:
Sorry for disturbing again, but I'm a bit newbie in tapestry. At this moment
i have a Pojo called User, with several properties. The type of the list is
User class. I don't understand very good the GridRowClass... is a Pojo too?
which fields it has?
Sorry again for all this stuff...
2008/5/28 Adam Zimowski <[EMAIL PROTECTED]>:
You could do something like this (in your page class):
@Inject
private BeanModelSource _beanModelSource;
@Inject
private ComponentResources _componentResources;
private BeanModel<YourGridRowClassType> _model;
@OnEvent("activate")
void setupGrid() {
_model = _beanModelSource.create(YourGridRowClassType.class, false,
_componentResources);
_model.get("ColumnYouWantToChangeSortFor").sortable(false);
}
On Tue, May 27, 2008 at 7:15 AM, daniel alonso <[EMAIL PROTECTED]>
wrote:
Oh, I don't know anything about that change. Just as you said, that was
the
problem. Now It works ok. About the other thing... do you have any clues
about how to hide or erase the sort control of each column?
Thanks a lot for your response
2008/5/27 Filip S. Adamsen <[EMAIL PROTECTED]>:
Regarding "remove", it was changed to "exclude" a while ago when
"include"
was added. That could be why it doesn't work for you.
-Filip
daniel alonso skrev:
Hi again! It works perfect for me, but i wondering if is posibble to
erase
or hide the sort controls of each column. by the way, I'm trying to
hide a
whole column just like the API says, but it doesn't work ("remove"
property).
May anyone have an idea? Thanks a lot for the support :D
2008/5/26 daniel alonso <[EMAIL PROTECTED]>:
Wow! Lot of info in that link. I'm checking it at this moment :D.
Thanks
a
lot for the support, Kris. I will follow up as soon as i can ;D
2008/5/26 Kristian Marinkovic <[EMAIL PROTECTED]>:
never done it before myself but it should work
the following thread explains how to replace a gridcell with a custom
block
containing checkboxes, and links... should also work with input
fields:
http://tapestry-user.markmail.org/message/6ic34efesfbrjmhv?q=t5+input+in+grid+order:date-backward&page=3#query:t5%20input%20in%20grid%20order%3Adate-backward+page:3+mid:6ic34efesfbrjmhv+state:results
hope this helps
g,
kris
"daniel alonso" <[EMAIL PROTECTED]>
26.05.2008 12:22
Bitte antworten an
"Tapestry users" <[email protected]>
An
"Tapestry users" <[email protected]>
Kopie
Thema
Re: Is there any way to represent this?
Yes, in fact i was wandering if i can use input fields inside just
like
i
need . May i use them?
2008/5/26 Kristian Marinkovic <[EMAIL PROTECTED]>:
have you looked at the Grid component
http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Grid.html
g,
kris
"daniel alonso" <[EMAIL PROTECTED]>
26.05.2008 11:48
Bitte antworten an
"Tapestry users" <[email protected]>
An
[email protected]
Kopie
Thema
Is there any way to represent this?
Hi everybody. Firstly, thanks in advance for reading this thread.
I'm working on a brand new project here and we are trying to use
tapestry.
At this moment, we found it very nice but we have a little problem:
we
have
to represent the following situation.
In our application we have a form with a table, which has five rows.
Each
row has five input text fields with same names: name, surname,
address,
phone and customerID. The question is... there is a tapestry
components,such
as Table or something like this, that allows to represent this and
avoid
the
using of a unique big component with name_1,surname_1,address_1...
do
you
know what i mean?
col1 col2
col3 col4 col5
row1 name_1 surnname_1
address_1 phone_1 customerID_1
row2 name_2 surnname_2
address_2 phone_2 customerID_2
Thanks in advance for everything to all.
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]