I have an form for a 'Contact' class that looks like this :

<<Class>> Contact 
  name : String
  organization :  OrganizationInfo
  ...

<<Class>>OrganizationInfo 
  name : String
  ...

My problem is to display the 'organization.name' field : I cant get
wicket to translate any organization fields in the HTML view. I've
tried 3 syntaxes to reference the field :

   <input type="text" wicket:id="organization.name" value=""
style="width:120px" />

   <input type="text" wicket:id="organization:name" value=""
style="width:120px" />

and finally wrapping the organization fields in an 'organization' span :
<span wicket:id="organization">
      <input type="text" wicket:id="name" value="" style="width:120px" />


Stacktrace top ( third syntax )
wicket.markup.MarkupException: Unable to find component with id
'organization' in [MarkupContainer [Component id = form, page =
test.wicket.ContactForm, path = 2:form.CtcForm, isVisible = true,
isVersioned = true]]
[markup = file:/projects/w4j/web/WEB-INF/classes/w4j.view/ContactForm.html,
index = 25, current = '<span wicket:id="organization">' (line 67,
column 1)]
    at wicket.markup.MarkupStream.throwMarkupException(MarkupStream.java:277)
    at wicket.MarkupContainer.renderNext(MarkupContainer.java:1139)
    at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:781)
    at wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:723)
    at wicket.Component.renderComponent(Component.java:1805)
    ....

thanks for your time,

Leo


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to