Hi,

Pleaase compare my wicket java class with corresponding html and tell me 
what I'm going wrong.
The comunicate in browser is: WicketMessage: Unable to find component 
with id 'wmc' in [MarkupContainer [Component id = wmc]]. This means that 
you declared wicket:id=wmc in your markup, but that you either did not 
add the component to your page at all, or that the hierarchy does not 
match.[markup = 
file:/C:/Instal/tomcat/apache-tomcat-6.0.16/temp/10-basicPortlets/WEB-INF/classes/no/arrive/portlets/client/ArriveDriftsmeldingerListView.html


JAVA CLASS
Content objectcontent = new Content();
                         RepeatingView rv = new RepeatingView("rv");
                        add(rv);
                        WebMarkupContainer wmc = new WebMarkupContainer("wmc");
                        wmc.add(new Label("title", "Title"));
                        wmc.add(new Label("list","List"));
                        rv.add(wmc);

                        new Label("title",objectcontent.getGENERAL());
                                // for(Message item :msg ){
                        new 
ListView<Message>("list",objectcontent.getGeneral()){
                                            protected void 
populateItem(ListItem item) {
                                             Message m = 
(Message)item.getModelObject();
                                             //item.add(new Label("message1", 
m.getFormattedTime()));
                                             item.add(new Label("message2", 
m.getAffects()));
                                             item.add(new Label("message3", 
m.getDetails()));
                                             item.add(new Label("message4", 
m.getEvent()));
                                             //item.add(new Label("message5", 
m.getFormattedMessageTitle()));
                                             item.add(new Label("message6", 
m.getTime()));
                                             item.add(new Label("message7", 
m.getTest()));
                                            }
                                        };




HTML FILE
<div wicket:id="rv">
    <div wicket:id="wmc">
       <h2 wicket:id="title"></h2>
       <div wicket:id="list">
         <!--  <span wicket:id="message1"></span>-->
          <span wicket:id="message2"></span>
          <span wicket:id="message3"></span>
          <span wicket:id="message4"></span>
          <!-- <span wicket:id="message5"></span>-->
          <span wicket:id="message6"></span>
          <span wicket:id="message7"></span>
       </div>
    </div>
  </div>


-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to