Re: [Wicket-user] Question about DataTable

2006-11-27 Thread Igor Vaynberg
you add the link to the panel/fragment and then add that into the cell -igor On 11/27/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > How customize your cell table : > You may create a panel which contains only your link : > > > > > and in the populateItem: > MyPanel panel = new MyPanel(

Re: [Wicket-user] Question about DataTable

2006-11-27 Thread Carfield Yim
> How customize your cell table : > You may create a panel which contains only your link : > > > > > and in the populateItem: > MyPanel panel = new MyPanel(componentId); > cellItem.add(panel); > > And in your panel constructor > MyPanel() > { > add(new BookmarkablePageLink(componentId, E

Re: [Wicket-user] Question about DataTable

2006-11-27 Thread Robert Jacolin
Carfield Yim a écrit : >On 11/14/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > > >[snip] > >However, if I like to display a link, I will not work if I just add a >BookmarkableLink like > > >private static class OrderIdColumn extends AbstractColumn { >public OrderIdColumn() { >

Re: [Wicket-user] Question about DataTable

2006-11-27 Thread Carfield Yim
On 11/14/06, Carfield Yim <[EMAIL PROTECTED]> wrote: > Look like it is more easier to show a sortable and pagable table than > using DataView. However if I need to show more than property from an > object. Like a BookmarkablePageLink , How should I do? Look like I > need to extended a custom Abstra

Re: [Wicket-user] Question about DataTable

2006-11-15 Thread Igor Vaynberg
On 11/15/06, Carfield Yim <[EMAIL PROTECTED]> wrote: 1) For now if there is not record, look like it is usingNoRecordsToolbar() and show "No Records Found" messages with columnhander, can I instead just show nothing? May be an empty table withouteven a ? dont use the DefaultDataTable, create your o

Re: [Wicket-user] Question about DataTable

2006-11-15 Thread Carfield Yim
Yes, it work nicely, But I still have 2 things like to do. 1) For now if there is not record, look like it is using NoRecordsToolbar() and show "No Records Found" messages with column hander, can I instead just show nothing? May be an empty table without even a ? 2) If there anyway to add a tag

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread dulanov
Its work fine, I wrote it only for example purposes. igor.vaynberg wrote: > > this looks like it should work what is the stack trace you are getting? > > -igor > > > On 11/14/06, dulanov <[EMAIL PROTECTED]> wrote: >> >> >> May be usefull my follow code snippet: >> >> List columns = n

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread dulanov
Yes, you are right, I invented the previous code. The next piece of code from my project works fine exactly ;) columns.add(new AbstractColumn(new Model("")) { @Override public Component getHeader(String componentId) { Fragment checkBoxFragment = new IssueSelec

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread Carfield Yim
The problem solved, and I guess the document needed to update. First, I just copy the example that using DataTable directly but in fact I should use either AjaxFallbackDefaultDataTable or DefaultDataTable. And I should use add component at top or bottom using addBottomToolbar or addTopToolbar, but

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread Igor Vaynberg
this looks like it should work what is the stack trace you are getting?-igorOn 11/14/06, dulanov <[EMAIL PROTECTED] > wrote:May be usefull my follow code snippet:List columns = new ArrayList(); columns.add(new PropertyColumn(new Model("column1"), "column1","column1"));column

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread Igor Vaynberg
you cannot do this, you have to add a panel or a fragment that contains the link you want. this is because whatever you add is attached to tags, and you cannot attach a link to a , only to -igorOn 11/14/06, dulanov <[EMAIL PROTECTED]> wrote: To add a bookmarkable link:columns.add(new Abst

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread dulanov
To add a bookmarkable link: columns.add(new AbstractColumn(new Model("column6"), "column6") { public void populateItem(Item cellItem, String componentId, IModel rowModel) { cellItem.add(new BookmarkablePageLink(componentId, SomePage.class, somePageParameters))

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread dulanov
May be usefull my follow code snippet: List columns = new ArrayList(); columns.add(new PropertyColumn(new Model("column1"), "column1", "column1")); columns.add(new AbstractColumn(new Model("column2"), "column2") { @Override public Component getHeader(String com

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread Igor Vaynberg
see addTopToolbar(), addBottomToolbar() and the constructor of DefaultDataTable-igorOn 11/14/06, Carfield Yim < [EMAIL PROTECTED]> wrote:I just really try out this class with only PropertyColumn. However, I still get this error when I add HeadersToolbar liketable.add(new HeadersToolbar(tabl

Re: [Wicket-user] Question about DataTable

2006-11-14 Thread Carfield Yim
I just really try out this class with only PropertyColumn. However, I still get this error when I add HeadersToolbar like table.add(new HeadersToolbar(table, provider)); [MarkupContainer [Component id = datatable, page = , path = datatable.DataTable]] java.lang.IllegalArgumentException: A

Re: [Wicket-user] Question about DataTable

2006-11-13 Thread Igor Vaynberg
there is an example in wicket-phonebook which lives in wicket-stuff svn.basically you extend the abstractcolumn and add a panel or a fragment. its pretty easy. look at the example - mainly in listcontactspage/actioncolumn i believe -igorOn 11/13/06, Carfield Yim <[EMAIL PROTECTED]> wrote: Look like

Re: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-05 Thread Igor Vaynberg
no, the model() is there to wrap every object returned from the iterator() call in its own (detachable) model. this model is used in Item components which represent a rows inside a dataview.-Igor On 4/5/06, Frank Silbermann <[EMAIL PROTECTED]> wrote: Me:>> I suppose the usual approach is to trigger

RE: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-05 Thread Frank Silbermann
Me: >> I suppose the usual approach is to trigger the download of >> IDataProvider's data via the event handler of the submit button. >> That way, the data would be available for both "Iterator >> IDataProvider.iterate(first, count)" and "int IDataProvider.size()". Eelco Hillenius Sent: Tuesday,

Re: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-04 Thread Igor Vaynberg
there is nothing to "trigger" for idataprovider. whenever the datatable renders it will call the appropriate methods. simply make your dataprovide have a reference to your form model and then use that as the criteria for quieries in both size and iterator. -IgorOn 4/4/06, Frank Silbermann <[EMAIL P

RE: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-04 Thread Frank Silbermann
I suppose the usual approach is to trigger the download of IDataProvider’s data via the event handler of the submit button.  That way, the data would be available for both “Iterator IDataProvider.iterate(first, count)” and “int IDataProvider.size()”.   However, I do not have a single subm

Re: [Wicket-user] Question about DataTable and IDataProvider restated

2006-04-04 Thread Eelco Hillenius
> I suppose the usual approach is to trigger the download of IDataProvider's > data via the event handler of the submit button. That way, the data would > be available for both "Iterator IDataProvider.iterate(first, count)" and > "int IDataProvider.size()". It's the responsibility of the model(s)