Igor, thanks for the quick reply.
When i try usng the RadioGroup/Radio
components, its complaining with a
wicket.markup.MarkupException
my code looks like this
RadioGroup outGroup = new
RadioGroup("outGroup");
add(outGroup);
//OutBoundPanel
outBoundPanel = new
OutBoundPanel("outBoundPanel",holiday,pi);
//add(outBoundPanel);
final
ListView departListView;
add(departListView = new
ListView("departures",departureGroups)
{
private
static final long serialVersionUID =
-987128877678683548L;
public void
populateItem(final ListItem
listItem)
{
final
SimplePackageHoliday holiday =
(SimplePackageHoliday)listItem.getModelObject();
OutBoundPanel
outBoundPanel = new
OutBoundPanel("outBoundPanel",holiday,pi);
listItem.add(outBoundPanel);
}
});
And HTML
<
span wicket:id="outGroup" >
<span wicket:id=
"departures">
<div class="fade1
cc8_bg pad6_tp">
<span wicket:id=
"outBoundPanel"></span>
</div>
</span>
</span>
am i
doing some thing wrong here ? I am using the version
wicket-1.1-b4
wicket.markup.MarkupException
: Unable to find
component with id 'departures' in [MarkupContainer [Component id = outGroup,
page = com.xmltravel.fab1.wicket.flights.FlightSearchResultPage, path =
14:flightSearchResForm:flights:0:itineraryPanel:outGroup.RadioGroup,
isVisible = true, isVersioned = false]]. This means that you declared
wicket:id=departures 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 =
C:\work\webapps\flightcentre\skins\devsite\flights\ItineraryPanel.html,
index = 11, current = '<span wicket:id="departures">' (line 18, column
2)]
at
wicket.markup.MarkupStream.throwMarkupException(
MarkupStream.java:277)
at
wicket.MarkupContainer.renderNext(
MarkupContainer.java:1179)
at
wicket.MarkupContainer.renderComponentTagBody(
MarkupContainer.java:811)
at
wicket.MarkupContainer.onComponentTagBody(
MarkupContainer.java:753)
at
wicket.Component.renderComponent(
Component.java:1888)
at
wicket.markup.html.WebMarkupContainer.onRender(
WebMarkupContainer.java:77)
at
wicket.Component.render(
Component.java:1163)
at
wicket.MarkupContainer.renderNext(
MarkupContainer.java:1136)
at
wicket.MarkupContainer.renderComponentTagBody(
MarkupContainer.java:811)
at
wicket.MarkupContainer.renderAssociatedMarkup(
MarkupContainer.java:475)
at
wicket.markup.html.panel.Panel.onRender(
Panel.java:95)
at
wicket.Component.render(
Component.java:1163)
at
wicket.MarkupContainer.renderNext(
MarkupContainer.java:1136)
at
wicket.MarkupContainer.renderComponentTagBody(
MarkupContainer.java:811)
at
wicket.MarkupContainer.onComponentTagBody(
MarkupContainer.java:753)
at
wicket.Component.renderComponent(
Component.java:1888)
at
wicket.markup.html.WebMarkupContainer.onRender(
WebMarkupContainer.java:77)
at
wicket.Component.render(
Component.java:1163)
at
wicket.markup.html.list.ListView.renderItem(
ListView.java:569)
at
wicket.markup.html.list.ListView.onRender(
ListView.java:535)
at
wicket.Component.render(
Component.java:1163)
at
wicket.MarkupContainer.renderNext(
MarkupContainer.java:1136)
at
wicket.MarkupContainer.renderComponentTagBody(
MarkupContainer.java:811)
at
wicket.MarkupContainer.onComponentTagBody(
MarkupContainer.java:753)
-----
Original Message -----
Sent:
Thursday, January 19, 2006 4:58 PM
Subject:
Re: [Wicket-user] Grouping Radio Type
see RadioGroup/Radio components
you can put the
RadioGroup outside the listview, and have Radio components inside the
panels.
the Radio component always links to the closest RadioGroup
in its upstream hierarchy.
-Igor
On 1/19/06, Dipu <[EMAIL PROTECTED]> wrote:
Hi
I have a panel displayed in a listView , if
there is a radio type in the panel, is there any way i can group it
.
Additionally i require to display one
instance of the panel out side the list view.
Is there any way i can group the radio
types of all the rendered panels together so that it will behave as a
radio group.
For example
MyPanelWithRadio
ListView
MyPanelWithRadio
MyPanelWithRadio
MyPanelWithRadio
.
.
Is there any way to group
the occurances of the radio types in all the rendered
panels.
Any help is greatly appreciated.
Thanks
Dipu