Hi,

<wicket:child wicket:id="statistics">  - this is wrong. <wicket:child>
cannot have wicket:id, i.e. it cannot be used to connect HTML to Java
component.

The HTML should be like:
<div wicket:id="statistics">
  <div wicket:id="statistics2">
     <div wicket:id="statistics3">
     </div>
  </div>
</div>

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

On Wed, Jan 13, 2016 at 9:32 AM, Ilia <[email protected]> wrote:

> Hello.
> I have a wicket:id(statistics) in which children are wicket:id(
> "statistics2", "statistics3").
> Attention to the question how to display the more ListView in ListView in
> html wicket:id( "statistics2", "statistics3")???
>
> This source code.
>
> ListView<StatisticsAvgTimeServiceWaitingOperatorPeriodDTO>
> statisticsListView = new
> ListView<StatisticsAvgTimeServiceWaitingOperatorPeriodDTO>("statistics",
> countClientDTOs) {
>             @Override
>             protected void
> populateItem(ListItem<StatisticsAvgTimeServiceWaitingOperatorPeriodDTO>
> item) {
>                 StatisticsAvgTimeServiceWaitingOperatorPeriodDTO
> timeServiceWaitingOperatorDTO = item.getModelObject();
> ..............................................
> ..............................................
> item.add(new ListView<String>("statistics2",
> timeServiceWaitingOperatorDTO.getStatisticsAvgTimeDTO().getTimeWaiting()) {
>                     @Override
>                     protected void populateItem(ListItem<String>
> itemCountServiceByDate) {
>                         String statisticsAvgTimeDTO =
> itemCountServiceByDate.getModelObject();
>                         itemCountServiceByDate.add(new Label("waitingTime",
> statisticsAvgTimeDTO));
>                     }
>                 });
>                 item.add(new ListView<String>("statistics3",
> timeServiceWaitingOperatorDTO.getStatisticsAvgTimeDTO().getTimeService()) {
>                     @Override
>                     protected void populateItem(ListItem<String>
> itemCountServiceByDate) {
>                         String statisticsAvgTimeDTO =
> itemCountServiceByDate.getModelObject();
>                         itemCountServiceByDate.add(new Label("serviceTime",
> statisticsAvgTimeDTO));
>                     }
>                 });
>
> This source code html
>
>
>
>
>
>
>
>
>
>                     <wicket:message
> key="statistics.avg.time.service.waiting.operator.period.waiting"/>
>
>
>                     <wicket:child wicket:id="statistics">
>
>                         <label wicket:id="statistics2">
>                     </label>
>                     </wicket:child>
>
>
>
>
>
>
>
>
>
>                     <wicket:message
> key="statistics.avg.time.service.waiting.operator.period.service"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/how-to-display-the-more-ListView-in-ListView-in-html-wicket-id-tp4673283.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to