You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by andre seame <an...@hotmail.fr> on 2016/08/29 13:31:25 UTC

Having an array that manage the header raw and cells or adding colunm action to a cell array ?

Hello,


I have already written a HTML page 1 with a repeater that works on line level. In the header of the array, I have a complex header, with the name of the column, filtering and sorting capabilities. Each line of the array has the same number of cells


I have already written a HTML page 2 with a repeater that works on cell level. So according the type of data, i modify the number of cells (via colspan) to have raw with 2 or 4 cells. On this page, there is no header for the array repeater.


Question is it easy to have an array the manage header and cell :

I would like to have in the header the name of the column, filtering and sorting capabilities, but the number of cell varying according the data. For instance 2 cells to give the name and the address of people. But only one cell to say that you are not granted to consult this people.


Perhaps I can do that with  a "cell" array (like my page 2), but how to detect in the populate cell that I am on data raw or on header raw ?In order words, how to add colunm action to a cell array ? If I click on the header of the column, I would like to ordering the full array.


Thanks,

PHL


Re: Having an array that manage the header raw and cells or adding colunm action to a cell array ?

Posted by Martin Grigorov <mg...@apache.org>.
On Mon, Aug 29, 2016 at 11:27 PM, andre seame <an...@hotmail.fr> wrote:

> Hello,
>
>
> <tr><td>Name + LinkToSortColumn + InputFields for Filtering </td>
>
>       <td>Date+ LinkToSortColumn + InputFields for Filtering </td>
>
> </tr>
>
> <tr><td>Namex</td><td>2016-08-29</td></tr>
>
> <tr ><td colspan = 2 >Sorry, you are not allowed to see this
> information</td></tr>
>
>
> I think that header toolbar, is not the solution, because it is not design
> to have cells.
>

Sure the header toolbar has cells!
It produces markup like: <thead><tr><th>...


>
> And I need to have a sort action or a filtering action when I do action on
> header of the associated column.
>

Sorting:
http://examples6x.wicket.apache.org/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.DataTablePage
Filtering:
http://examples6x.wicket.apache.org/repeater/wicket/bookmarkable/org.apache.wicket.examples.repeater.DataTableFilterToolbarPage



>
> I don't know if it possible to introduce the notion of "header line" and
> line with DataView or GridView.
>

I think it should be possible!


>
>
> Thanks,
>
> PHL.
>
>
>
>
>
>
>
>
>
> ________________________________
> De : Martin Grigorov <mg...@apache.org>
> Envoyé : lundi 29 août 2016 19:56
> À : users@wicket.apache.org
> Objet : Re: Having an array that manage the header raw and cells or adding
> colunm action to a cell array ?
>
> Hi,
>
> Which component do you use as a repeater ?
> Wicket provides DataTable component which can use Toolbars as
> headers/footers.
> Also DataView and GridView which provide a lot of flexibility in rendering
> tabular data.
>
> By the way: when you say "raw" you really mean "row" ;-)
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> [https://pbs.twimg.com/profile_images/498383088007643136/rWBpAHsz_
> 400x400.jpeg]<https://twitter.com/mtgrigorov>
>
> Martin Grigorov (@mtgrigorov) | Twitter<https://twitter.com/mtgrigorov>
> twitter.com
> The latest Tweets from Martin Grigorov (@mtgrigorov). Funemployed. R&D
> guy. Freelancer in the Scala/Java/Web/Wicket universe. Bulgaria
>
>
>
> On Mon, Aug 29, 2016 at 3:31 PM, andre seame <an...@hotmail.fr> wrote:
>
> > Hello,
> >
> >
> > I have already written a HTML page 1 with a repeater that works on line
> > level. In the header of the array, I have a complex header, with the name
> > of the column, filtering and sorting capabilities. Each line of the array
> > has the same number of cells
> >
> >
> > I have already written a HTML page 2 with a repeater that works on cell
> > level. So according the type of data, i modify the number of cells (via
> > colspan) to have raw with 2 or 4 cells. On this page, there is no header
> > for the array repeater.
> >
> >
> > Question is it easy to have an array the manage header and cell :
> >
> > I would like to have in the header the name of the column, filtering and
> > sorting capabilities, but the number of cell varying according the data.
> > For instance 2 cells to give the name and the address of people. But only
> > one cell to say that you are not granted to consult this people.
> >
> >
> > Perhaps I can do that with  a "cell" array (like my page 2), but how to
> > detect in the populate cell that I am on data raw or on header raw ?In
> > order words, how to add colunm action to a cell array ? If I click on the
> > header of the column, I would like to ordering the full array.
> >
> >
> > Thanks,
> >
> > PHL
> >
> >
>

RE: Having an array that manage the header raw and cells or adding colunm action to a cell array ?

Posted by andre seame <an...@hotmail.fr>.
Hello,


<tr><td>Name + LinkToSortColumn + InputFields for Filtering </td>

      <td>Date+ LinkToSortColumn + InputFields for Filtering </td>

</tr>

<tr><td>Namex</td><td>2016-08-29</td></tr>

<tr ><td colspan = 2 >Sorry, you are not allowed to see this information</td></tr>


I think that header toolbar, is not the solution, because it is not design to have cells.

And I need to have a sort action or a filtering action when I do action on header of the associated column.


I don't know if it possible to introduce the notion of "header line" and line with DataView or GridView.


Thanks,

PHL.









________________________________
De : Martin Grigorov <mg...@apache.org>
Envoyé : lundi 29 août 2016 19:56
À : users@wicket.apache.org
Objet : Re: Having an array that manage the header raw and cells or adding colunm action to a cell array ?

Hi,

Which component do you use as a repeater ?
Wicket provides DataTable component which can use Toolbars as
headers/footers.
Also DataView and GridView which provide a lot of flexibility in rendering
tabular data.

By the way: when you say "raw" you really mean "row" ;-)

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
[https://pbs.twimg.com/profile_images/498383088007643136/rWBpAHsz_400x400.jpeg]<https://twitter.com/mtgrigorov>

Martin Grigorov (@mtgrigorov) | Twitter<https://twitter.com/mtgrigorov>
twitter.com
The latest Tweets from Martin Grigorov (@mtgrigorov). Funemployed. R&D guy. Freelancer in the Scala/Java/Web/Wicket universe. Bulgaria



On Mon, Aug 29, 2016 at 3:31 PM, andre seame <an...@hotmail.fr> wrote:

> Hello,
>
>
> I have already written a HTML page 1 with a repeater that works on line
> level. In the header of the array, I have a complex header, with the name
> of the column, filtering and sorting capabilities. Each line of the array
> has the same number of cells
>
>
> I have already written a HTML page 2 with a repeater that works on cell
> level. So according the type of data, i modify the number of cells (via
> colspan) to have raw with 2 or 4 cells. On this page, there is no header
> for the array repeater.
>
>
> Question is it easy to have an array the manage header and cell :
>
> I would like to have in the header the name of the column, filtering and
> sorting capabilities, but the number of cell varying according the data.
> For instance 2 cells to give the name and the address of people. But only
> one cell to say that you are not granted to consult this people.
>
>
> Perhaps I can do that with  a "cell" array (like my page 2), but how to
> detect in the populate cell that I am on data raw or on header raw ?In
> order words, how to add colunm action to a cell array ? If I click on the
> header of the column, I would like to ordering the full array.
>
>
> Thanks,
>
> PHL
>
>

Re: Having an array that manage the header raw and cells or adding colunm action to a cell array ?

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Which component do you use as a repeater ?
Wicket provides DataTable component which can use Toolbars as
headers/footers.
Also DataView and GridView which provide a lot of flexibility in rendering
tabular data.

By the way: when you say "raw" you really mean "row" ;-)

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Aug 29, 2016 at 3:31 PM, andre seame <an...@hotmail.fr> wrote:

> Hello,
>
>
> I have already written a HTML page 1 with a repeater that works on line
> level. In the header of the array, I have a complex header, with the name
> of the column, filtering and sorting capabilities. Each line of the array
> has the same number of cells
>
>
> I have already written a HTML page 2 with a repeater that works on cell
> level. So according the type of data, i modify the number of cells (via
> colspan) to have raw with 2 or 4 cells. On this page, there is no header
> for the array repeater.
>
>
> Question is it easy to have an array the manage header and cell :
>
> I would like to have in the header the name of the column, filtering and
> sorting capabilities, but the number of cell varying according the data.
> For instance 2 cells to give the name and the address of people. But only
> one cell to say that you are not granted to consult this people.
>
>
> Perhaps I can do that with  a "cell" array (like my page 2), but how to
> detect in the populate cell that I am on data raw or on header raw ?In
> order words, how to add colunm action to a cell array ? If I click on the
> header of the column, I would like to ordering the full array.
>
>
> Thanks,
>
> PHL
>
>