Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7696887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:53:03+00:00 2026-05-31T21:53:03+00:00

Can anybody tell me, why this source List<Data> datas = ~getData(); PropertyListView<Data> listView =

  • 0

Can anybody tell me, why this source

List<Data> datas = ~getData();
PropertyListView<Data> listView = 
new PropertyListView<Data>("listView", new PropertyModel<List<Data>>(this, "datas")){

    private static final long serialVersionUID = 1L;

    @Override
    protected void populateItem(final ListItem<Data> item) {
        Data data = item.getModelObject();
        item.add(new MultiLineLabel("textLabel", data.getText());

        @SuppressWarnings("unchecked")
        ArrayList<DataParam> params = (ArrayList<DataParam>) ~getParamsForData(data);

        DropDownChoice<DataParam> dropDownChoice = 
            new DropDownChoice<DataParam>("choiceSelector", new Model<ArrayList<DataParam>>(params), new ChoiceRenderer<Object>("key", "value")){
            private static final long serialVersionUID = 1L;

            @Override
            protected boolean wantOnSelectionChangedNotifications(){
                return true;
            }

            @Override
            protected void onSelectionChanged(DataParam newSelection) {
                super.onSelectionChanged(newSelection);
            }

        };
        item.add(dropDownChoice);                   

    }
};


public static final class DataParam implements Serializable{
    private String key;
    private String value;
    public DataParam(String key, String value){ this.key=key; this.value=value;}
    public String getKey() { return key; }
    public void setKey(String key) { this.key = key; }
    public String getValue() { return value; }
    public void setValue(String value) { this.value = value; }
}

throws this exception

WicketMessage: No get method defined for class: 
class Data expression: choiceSelector
Root cause:
org.apache.wicket.WicketRuntimeException: 
No get method defined for class: class Data expression: choiceSelector

? (so looking for get method for choiceSelector wicket component id in Data class ?!) i don’t even understand

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T21:53:05+00:00Added an answer on May 31, 2026 at 9:53 pm

    Wicket is looking for a Model to read from and store to the selection made by the user (as well as the initially selected value).

    Since you are using the DDC constructor without a model, wicket is looking in the parent of the DDC (the item) for an CompoundPropertyModel and uses the wicket:id of the DDC as expression. Hence you get the ‘choiceSelectecor’.

    You will either have to use an wicket:id to math the structure of your Data class or construct a DDC with a model for this.

    Bert

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anybody tell me why this works <g:each var=n in=${com.pp.News.list()}> <h2>${n.t}</h2> <p>${n.tx}</p> </g:each> but
Can anybody tell me the C# equivalent for this C code? static const value_string
Can anybody tell my why this doesn't work in the Android emulator? From the
hi can anybody tell me the error in this? #include<stdio.h> int main() { char
Can anybody tell me why this line isn't working? window.open('entertainers/drilldown.php?state=' + varlocation + '?p=','performers_frame')
Can anybody tell me when this event is fired?
Can anybody tell me How to store and return List of Strings. I am
Can anybody tell me why this doesn't work as expected? <?php $merchant_string = '123-Reg|Woolovers|Roxio|Roxio|BandQ|Roxio|Roxio|Big
Can anybody tell me why this function isn't copying the file at all? $pluginfile
Can anybody tell me why this CURL code only works on my local server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.