You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ilia <il...@gmail.com> on 2016/01/13 09:32:16 UTC

how to display the more ListView in ListView in html wicket:id

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: how to display the more ListView in ListView in html wicket:id

Posted by Ilia <il...@gmail.com>.
Thanks!

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-display-the-more-ListView-in-ListView-in-html-wicket-id-tp4673283p4673767.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: how to display the more ListView in ListView in html wicket:id

Posted by Martin Grigorov <mg...@apache.org>.
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 <il...@gmail.com> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>