Label is correct. It's exactly what you are looking for functionally.

Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-----Original Message-----
From: Luther Baker <lutherba...@gmail.com>
Sent: Sunday, May 31, 2009 11:38 PM
To: users@wicket.apache.org
Subject: Re: Long content

Ah, thanks for the suggestion Vasu.

I looked at this component and don't think I'm looking to have '\n' replaced
or <br/>'s and <p/>'s automatically generated.

In my case, most cases, "Post" content might include some paragraphs,
blockquotes, pictures and a few more paragraphs. After a blog entry, there
might be a few comments - maybe someone will post some code examples ... so
Post.content and Post.comments[n] might just be somewhat long
strings/database fields.

For what it's worth, *Label* works just fine in my little mock up - but
again, Post.content doesn't really *feel* like a Label so it gave me room
for pause.

Thanks for the quick response Vasu.

-Luther



On Sun, May 31, 2009 at 10:49 PM, Vasu Srinivasan <vasy...@gmail.com> wrote:

> How about MultiLineLabel ?
>
> On Sun, May 31, 2009 at 10:43 PM, Luther Baker <lutherba...@gmail.com
> >wrote:
>
> > I'm working on an application something akin to blog posts. A 'Post' has
> a
> > title, date, tags, a category ... and *content*.
> >
> > For most of the 'smaller' properties in a 'Post', I use a Label as the
> > component and that works just fine - but for much larger datasets, say,
> > "content", I feel odd using something called 'Label'.
> >
> > Is there a more precise Wicket Component for, what could amount to
> hundreds
> > of words or lines? (see below)
> >
> > (By the way, kudos on the DateLabel and everything else in wicket-date
> > project - I just came across that ...)
> >
> > Thanks,
> >
> > -Luther
> >
> >
> >        final Post post = postService.findPostById(postId);
> >        final IModel<Post> postModel = new
> > CompoundPropertyModel<Post>(post);
> >        final WebMarkupContainer outer = new WebMarkupContainer("post",
> > postModel);
> >        outer.add(new Label("title"));
> >        outer.add(new BookmarkablePageLink<Void>("category",
> > CategoryPage.class));
> > *        outer.add(new Label("content"));*
> >        outer.add(new DateLabel("publishedOn", new
> StyleDateConverter("M-",
> > true)));
> >        add(outer);
> >
>
>
>
> --
> Regards,
> Vasu Srinivasan
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to