On a related note to this original question.
Can someone explain the difference between the two lines below?
listItem.add(new Label(when, new ModelPost(blogPost)));
listItem.add(new Label(text, blogPost.getText()));
The first one gives me some random but predictable
Sorry for the barrage of emails.
It seems like when I changed the Post.toString() method, it changed all of my
models in the blog page. Also not sure why this happened.
Thanks for your patience. I'm really trying to understand this.
On Sep 22, 2012, at 09:25, Stephen Walsh
Hi,
Label is designed to display a text, and that's what you supplied in the
second line.
But you provides a typed model in the first one. So the effect is that le
Label will call blobPost.toString().
If you wish to provide a model to the Label (which is recommended in case
the text changes),
Thanks, Sebastien.
I'll give that a try.
On Sep 22, 2012, at 10:08, Sebastien seb...@gmail.com wrote:
Hi,
Label is designed to display a text, and that's what you supplied in the
second line.
But you provides a typed model in the first one. So the effect is that le
Label will call
This worked wonderfully. Thanks for the guidance on this.
Stephen Walsh | http://connectwithawalsh.com
On Sep 22, 2012, at 10:08, Sebastien seb...@gmail.com wrote:
Hi,
Label is designed to display a text, and that's what you supplied in the
second
I attempted your solution Sebastien and did parameters.set(id, 43); This
was one of the id's that was showing up in the link when I looked at the
status bar. I still got the same error (string value exception) and it
also said something about a null pointer. I'm at work and don't have the
stack
Got this resolved. I missed a line in my Post class
add(this);
which adds the Post in question to the HashMap.
On Sep 21, 2012, at 08:38, Stephen Walsh step...@connectwithawalsh.com wrote:
I attempted your solution Sebastien and did parameters.set(id, 43); This
was one of the id's that
parameters.get(id).toLong() throws this exception when id can't be converted
to long.
François
Le 20 sept. 2012 à 19:06, Stephen Walsh step...@connectwithawalsh.com a écrit
:
I am new to Wicket and Java, so forgive any ignorance or lack of information.
I am modeling a blog type
Thanks for responding. That would make sense. Is there any way to
identify when or when it couldn't be converted?
Does the array that I provided cause this issue? In my Post class I
followed the example code and have the class assigning ids as long.
___
I don't see where you set the parameters...
parameters.set(id, x);
It has to be done somewhere.
If parameters.get(id) return null, as null can't be converted to long, you
get the exception.
François
Le 20 sept. 2012 à 21:16, Stephen Walsh step...@connectwithawalsh.com a écrit
:
Thanks for
Hi,
You may also use #toLong(defaultValue) which does not throws exception and
return a default value in case of conversion error (or value not supplied).
Regards,
Sebastien.
On Thu, Sep 20, 2012 at 9:22 PM, Francois Meillet
francois.meil...@gmail.com wrote:
I don't see where you set the
Are they not being set when the BlogDetails.link gives the blogPost
object and it set page parameters there?
__
Stephen Walsh
On Sep 20, 2012, at 14:23, Francois Meillet francois.meil...@gmail.com wrote:
I don't see where you set the parameters...
12 matches
Mail list logo