What is your Wicket version? This is from CVS HEAD
* @param modelObject
* The model object, which may or may not implement IModel
and the whole file does not contain the word OGNL. Actually there is
only one file NumericTypes.java which contains the word OGNL. Which
makes sense as we don't use OGNL any more. The performance of OGNL was
quite poor and because usually you'll need only a very limited subset
of OGNL we decided to reimplement this piece of code. If you really
require full OGNL support, you could create your own OgnlPropertyModel
which uses the OGNL jar.
Juergen
On 1/25/06, Frank Silbermann <[EMAIL PROTECTED]> wrote:
>
>
>
> The JavaDoc for the PropertyModel constructor says that its parameters are
> an IModel and an OGNL string, but I noticed that the code accepts any
> java.lang.Object as the first parameter. I discovered this when trying to
> sort out my confusion when the linkomatic example created a PropertyModel
> using "this" (the page itself) instead of an IModel.
>
>
>
> At first I thought this looked like a hack, and asked myself: "If you
> wanted to be able to accept either kind of object, why not use two
> constructors?" Then I realized that java.lang.Object is the supertype of
> everything, and maybe Java doesn't let you create overloaded constructors
> where the only difference in parameter is type versus subtype. But if the
> convenience of passing a non-IModel POJO is so important, then why not
> mention it in the JavaDoc?
>
>
>
> Or is the capability of passing a non-IModel POJO to the constructor a
> "deprecated" capability, perhaps included to ease the conversion of programs
> from earlier versions of Wicket? (If that is the case, perhaps the
> linkomatic example should be updated. The Page object could easily have
> been wrapped before passing it to the PropertyModel constructor.)
>
>
>
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user