any idea for this?
Because now ListView is always attached to the row (the thing that
iterates)
So if you want set the table or ul non visible when there are no rows.
We have to encapsulate list inside a panel (my example is not quite
right ofcourse
because the listview doesn't belong to the FeedbackPanel itself but it
should be added
to the inner class (the WebMarkupContainer)
Maybe we could introduce a component:
class ListViewHeader extends WebMarkupContainer
{
public ListViewHeader(String id, ListView listView)
{
this.listView = listView;
add(listView)
}
public boolean isVisible()
{
return ((List)listView.getModelObject()).size() > 0;
}
}
then FeedbankPanel would be:
public FeedbackPanel(final String id)
{
super(id);
this.messageListView = new MessageListView("messages");
messageListView.setVersioned(false);
add(new ListViewHeader("ulcontainer",messageListView);
}
Juergen Donnerstag wrote:
I think the point is, for the user we want to make it as easy as
possible. The solution described by Johan, IMO is possible, but of
course not very nice. It would fix the Formfeedback problem, but we
should think about a more general solution, as this is a problem not
only for FeedbackPanels. It might concern all kind of lists.
Juergen
On 8/5/05, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
This isn't as trivial as might seem. Eelco said something about pull
models being the biggest problem.
There is already a bug report in place for this:
http://sourceforge.net/tracker/index.php?func=detail&aid=1219458&group_id=119783&atid=684975
Martijn
Johan Compagner wrote:
this needs to be fixed by introducing a component for the tag:
<ul id="feedbackul">
And that component should set itself visible on messages or not.
If you want to fix this please send in a patch :)
johan
David Liebeherr wrote:
Hi all!
When i have a feedbackPanel with no messages then there is still an
list (<ul></ul>) generated.
I tried to format my feedback list with css but the problem is that
there is a emtpy ul markup when no feedback messages are there. So is
there a special reason why the ul markup is generated even when the
messages list is empty?
Thanx,
Dave
-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user