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(
> 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
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() {
>
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
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
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
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
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
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
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
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
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))
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
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
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
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
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
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,
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
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
> 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)
21 matches
Mail list logo