yes but why would you have that?

Why not if you have the page call:

page.getExpression()

Then it is compile time save it refactores nicely
In my eyes the the PropertyModel is just handy and there is no otherway to do it then by using strings.

It is a pitty that we can give method or field pointers like:

new PropertyModel(user, User.class.name)

where name is then the field itself that is compile time and refactor save.

I don't see the big plus why you would script everywhere. You could make it yourself if you want
pretty easy just subclass a page and make that performAction method.

johan


On 5/8/06, Anders Peterson <[EMAIL PROTECTED]> wrote:
Johan Compagner wrote:

> then we get partial scripting inside java/page.

Didn't know that was a bad thing...

> Why would we have that. What would you call with performAction?

We can already do this:

PropertyResolver.getValue("_expression_", this.getPage());

I'd like to just be able to type:

this.getValue("_expression_");

or

this.getPage().getValue("_expression_");


...or, something like that.

Did you look at the NSKeyValueCoding docs?

/Anders


> On 5/8/06, *Anders Peterson* < [EMAIL PROTECTED]
> <mailto: [EMAIL PROTECTED]>> wrote:
>
>     I assume you mean PropertyResolver.getValue(String _expression_, Object
>     object);
>
>     That's not the kind of context I meant. I was thinking there could be an
>     additional context parameter - maybe RequestCycle. Don't know if that is
>     possible or necessary. It was just an idea.
>
>     I would specifically like to have the performAction method in Page, but
>     why not put it in Component.
>
>     /Anders
>
>     Johan Compagner wrote:
>      > You also have this now.
>      > Just call PropertyResolver.getValue(contextObject, propertyString)
>      >
>      > where should that performAction method be located?
>      >
>      > On 5/8/06, * Anders Peterson* < [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>      > <mailto:[EMAIL PROTECTED] <mailto: [EMAIL PROTECTED]>>> wrote:
>      >
>      >     A different web application framework that I've worked with
>     has "ognl"
>      >     available everywhere. It's extremely convenient and powerful!
>      >
>      >
>     http://developer.apple.com/documentation/WebObjects/Reference/API5.2.4/com/webobjects/foundation/NSKeyValueCoding.html
>     <http://developer.apple.com/documentation/WebObjects/Reference/API5.2.4/com/webobjects/foundation/NSKeyValueCoding.html >
>      >
>      >     Seems to me it wouldn't be difficult to add...
>      >
>      >     /Anders
>      >
>      >     Anders Peterson wrote:
>      >      > I'm looking for the equivalent of Ognl.setValue(...) and
>     guessing I
>      >      > should use wicket.util.lang.PropertyResolver.setvalue(...);
>      >      >
>      >      > The wicket.util.object package (referred to in the wiki
>     migrate
>      >      > instructions) does not exist.
>      >      >
>      >      > Would it be possible to add a method performActionNamed(String
>      >      > _expression_) to wicket.Component? That's what I'm aiming for...
>      >      >
>      >      > /Anders
>      >
>      >
>      >     --
>      >     http://ojalgo.org/
>      >
>      >     Mathematics, Linear Algebra and Optimisation with Java
>      >
>      >
>      >     -------------------------------------------------------
>      >     Using Tomcat but need to do more? Need to support web services,
>      >     security?
>      >     Get stuff done quickly with pre-integrated technology to make
>     your
>      >     job easier
>      >     Download IBM WebSphere Application Server v.1.0.1 based on Apache
>      >     Geronimo
>      >
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >
>      >
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642>>
>      >     _______________________________________________
>      >     Wicket-user mailing list
>      >     Wicket-user@lists.sourceforge.net
>     <mailto: Wicket-user@lists.sourceforge.net>
>      >     <mailto:Wicket-user@lists.sourceforge.net
>     <mailto: Wicket-user@lists.sourceforge.net>>
>      >     https://lists.sourceforge.net/lists/listinfo/wicket-user
>      >
>      >
>
>
>     --
>     http://ojalgo.org/ <http://ojalgo.org/>
>
>     Mathematics, Linear Algebra and Optimisation with Java
>
>
>     -------------------------------------------------------
>     Using Tomcat but need to do more? Need to support web services,
>     security?
>     Get stuff done quickly with pre-integrated technology to make your
>     job easier
>     Download IBM WebSphere Application Server v.1.0.1 based on Apache
>     Geronimo
>     http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>     <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >
>     _______________________________________________
>     Wicket-user mailing list
>     Wicket-user@lists.sourceforge.net
>     <mailto: Wicket-user@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>


--
http://ojalgo.org/

Mathematics, Linear Algebra and Optimisation with Java


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to