How do you determine if a feature is available or not? How do you know
which feature you are currently processing? Are the features coming
from a database/cms backend?

If so, then why isn't the description available? Is that something you
plan on adding in the future?

Why does the page need to be wicketified? Is it dynamic? Can't you use
CSS instead?

The menu can still be a Wicket component, but the table of features
seems a bit odd to use Wicket components just for the images. A nested
repeater or listview seems better suited, or else just make it an
include editable by your marketing department.

Martijn

On 5/28/07, Thomas Singer <[EMAIL PROTECTED]> wrote:
> Well, I guess I could use a Fragment (if it would work inside a Border)
> inside a RepeatingView, but then I would need to have all feature texts in
> the Java code, which is not nice but would work.
>
> Tom
>
>
> Herman Bovens wrote:
> > Hm, can't you iterate over your collection of features and add the
> > corresponding component in each iteration?  Something like that?
> >
> >
> > Thomas Singer-3 wrote:
> >> Thanks, Alexey and Kent, for your feed-back. Unfortunately, I still have
> >> do
> >> add a lot of components to the Page instance, for each line one.
> >>
> >> Tom
> >>
> >>
> >> Kent Tong wrote:
> >>> Put that code into a panel, eg, FeatureAvailability.html:
> >>>
> >>> <wicket:panel>
> >>> <td align="center">
> >>>     &lt;img wicket:id="img" src="/graphics/feature-present.gif"
> >>> border="0"
> >>>     alt="+" width="9" height="9"&gt;
> >>> </td>
> >>> </wicket:panel>
> >>>
> >>> FeatureAvailability.java:
> >>>
> >>> public class FeatureAvailability extends Panel {
> >>>     public FeatureAvailability(String id, IModel model) {
> >>>             super(id, model);
> >>>             boolean isPresent = ((Boolean) 
> >>> getModelObject()).booleanValue();
> >>>             WebMarkupContainer img = new WebMarkupContainer("img");
> >>>             img.add(new SimpleAttributeModifier("src",
> >>>                     String.format("/graphics/feature-%s.gif",
> >>>                             new Object[] {
> >>>                                 isPresent ? "present" : "absent" })));
> >>>             img.add(new SimpleAttributeModifier("alt",
> >>>                     isPresent ? "+" : "-"));
> >>>             add(img);
> >>>     }
> >>> }
> >
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-- 
Join the wicket community at irc.freenode.net: ##wicket
Wicket 1.2.6 contains a very important fix. Download Wicket now!
http://wicketframework.org

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to