Is it possible to substitute properties into other properties? I tried the
Ant-like syntax:
Page1.properties:
my.label=My homepage
my.other.label=${my.label} is neat.
Is there a syntax which would render my.other.label as 'My homepage is
neat.'?
--
View this message in context:
http://www.
Using Wicket 1.2.5 / Spring 2.0.2
Is it possible (or reasonable) to inject Page model implementations with the
@SpringBean annotation? I've tried this with prototype-scoped beans. The
problem is that if I submit a form with an injected model object and leave
the page, then come back later, the
Check your deployment descriptor (web.xml). Your
servlet name is not consistent in case in the servlet and servlet mapping
tags.
Cheers,
Jon
- Original Message -
From:
Rui
Pacheco
To: wicket-user@lists.sourceforge.net
Sent: Saturday, April 22, 2006 9:21
PM
S
One thing to keep in mind is that you could put a
method in your page subclass like:
public class MyWebPageSubclass extends Webpage
{
public User getUser() {
return
((MySessionObject)getSession()).getUser();
}}
this would allow you to abstract some of the
chained invocations if that'
MySessionObject being a class you created subclassing
WebSession?
On 3/16/06, Jonathan
Cone <[EMAIL PROTECTED]
> wrote:
Hey Vincent,
What I would do is override getSessionFactory
in your application class, something like this:
@Override pro
Hey Vincent,
What I would do is override getSessionFactory in
your application class, something like this:
@Override protected ISessionFactory
getSessionFactory() { return new ISessionFactory()
{
public Session newSession()
{return new
MySessionObject(YourApplicationClass.this)
Vincent,
I'm not sure I understand your question. The Label objects are used to
render some value field of your model object. In my opinion, its easiest to
understand the ListView as a black box that takes a list of domain objects,
wires up the proper rendering components for the elements you de
Hi Michael,
One thing that I personally think is important
to understanding ListView is knowing that each item in the ListView is one
concrete model object instance. If you think about it, then you will see
you shouldn't need many(if any) collections in your form backing model
classes.
Hey Vincent,
In wicket, validators can be add()ed to components
like anything else. For example, one way to make a textfield required
without using the helper class would be to do something like:
TextField tf = new
TextField("id",...);
tf.add(RequiredValidator.getInstance());
Check out
Oops, problem solved I think I need to implement IChoiceRenderer. +1 for
RTFM. :)
- Original Message -
From: "Jonathan Cone" <[EMAIL PROTECTED]>
To:
Sent: Monday, February 20, 2006 2:55 PM
Subject: [Wicket-user] DropDownChoice
Greetings,
I have a form with 20 or s
Greetings,
I have a form with 20 or so drop downs and I'm having a hard time with the
model (conceptually). I just want to bind the contents of the value
attribute for each tag to my model, not the displayed value of the
option tag. For example, say I want a drop down choice to be backed by
Vote:
1. Give me the constructor change and the Java 5 functionality in one
pass (Wicket 2.0)
---
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 make
Description:
I'm using a ListMultipleChoice component to populate a List model object.
When the user selects multiple items in the list, I want the list model
object to be populated with those items.
Problem:
The ListMultipleChoice renders correctly with all the proper 'choices' and
corresponding
13 matches
Mail list logo