On 4/24/07, mraible <[EMAIL PROTECTED]> wrote:


That site has a way to view the source of the templates, but not the Java
code. Anywhere I can download that?


what i pointed to is the wicket-examples project. the source code is
available in our svn. the link to that is available on our site.

What's the least amount of required classes to do a sortable/pageable grid
with i18n?  Compared to all the other web frameworks I've used, Wicket
seems
to make this the most difficult. Stripes is 30 lines of Java code and 20
lines of JSP. ;-)


let me paste the code and we can count together, the snippet is from
DataTablePage.java

1        List columns = new ArrayList();

2       columns.add(new AbstractColumn(new Model("Actions"))
       {
3          public void populateItem(Item cellItem, String componentId,
IModel model) {
4             cellItem.add(new ActionPanel(componentId, model));
           }
       });

5        columns.add(new PropertyColumn(new Model("ID"), "id"));
6        columns.add(new PropertyColumn(new Model("First Name"),
"firstName", "firstName"));
7        columns.add(new PropertyColumn(new Model("Last Name"), "lastName",
"lastName"));
8        columns.add(new PropertyColumn(new Model("Home Phone"),
"homePhone"));
9        columns.add(new PropertyColumn(new Model("Cell Phone"),
"cellPhone"));

10        add(new DefaultDataTable("table", columns, new
SortableContactDataProvider(), 8));

DataTablePage.html
1 <table class="dataview" cellspacing="0" wicket:id="table">[table]</table>

I know, I know - Wicket gives you a much more powerful way to do grids - but
does it offer a simplistic grid as well?


so for a quickndirty pageable/sortable grid you get 10 lines of java and 1
line of markup.

-igor



Thanks,

Matt


igor.vaynberg wrote:
>
> see
>
> http://wicketstuff.org/wicket13/repeater/
>
> namely the datatable example
>
> -igor
>
>
> On 4/24/07, mraible <[EMAIL PROTECTED]> wrote:
>>
>>
>> What's the easiest way to do a pageable/sortable list with
>> Wicket?  Looking
>> at the following example, there's quite a few files required to
replicate
>> the DisplayTag's functionality.
>>
>> http://www.wicket-library.com/wicket-examples/displaytag
>>
>> Is this packaged up as a component I can use?
>>
>> The other example I found was "wicket_crud" and it seems to require 4
>> Java
>> files just for a list screen - not example simple in my mind. ;-)
>>
>> Matt
>> --
>> View this message in context:
>>
http://www.nabble.com/What%27s-the-easiest-way-to-do-a-pageable-sortable-list-screen--tf3639929.html#a10165178
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>
-------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
>
-------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

--
View this message in context:
http://www.nabble.com/What%27s-the-easiest-way-to-do-a-pageable-sortable-list-screen--tf3639929.html#a10171203
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to