Can you give me a code exmaple?
private String username;
...
new PropertyModel(username);
does not work. Maybe i just missunderstood how to use OGNL in that way.
A eymaple by cde would help me much!
Thanx,
Dave
PS: I tired it with ValueMap, but the problem is that ValueMap is
immutable, isn't it?
Igor Vaynberg wrote:
Change your model to a property model, that way the value will be updated
when the form is processed.
-Igor
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
David Liebeherr
Sent: Monday, August 01, 2005 6:21 PM
To: [email protected]
Subject: [Wicket-user] What Model to use for simple String
fiel access with TextFields?
Hi!
I have a TextField and i want to store the value of it in a
String field.
something like:
private String username;
...
add(new TextField("username", new Model(this.username)); ...
onSubmit() {
username = username+"hello";
}
...
so after submit the text field shall have the value username
+ the string "hello" in it.
How is this possible to do?
Thankx a lot,
Dave
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration
Strategies from IBM. Find simple to follow Roadmaps,
straightforward articles, informative Webcasts and more! Get
everything you need to get up to speed, fast.
http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user