Data in wicket components is wrapped in models. You can ask a component for its model: getModel() and then ask the model for its data: getObject(). Or you can use the shortcut getModelObject() on a component. Setting data is done in a similar way.
Maurice On Feb 12, 2008 3:11 PM, carloc <[EMAIL PROTECTED]> wrote: > > hi everyone, > > I would like to ask how I could actually get data from the different > components in the wicket examples... > For example in the YUI selection or in the RatingPanel... > > What will my code look like if I have a submit button and I want to know the > rating? > (e.g. how many stars were pressed) > > I can display the components properly but I can't get data from them... > Same as with the other examples... > > What is the best way to do this? > -- > View this message in context: > http://www.nabble.com/Harnessing-Data-From-Components-tp15433918p15433918.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
