[Wicket-user] Property file substitution

2007-03-10 Thread Jonathan Cone
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.

[Wicket-user] @SpringBean and Model objects

2007-03-08 Thread Jonathan Cone
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

Re: [Wicket-user] HelloWorldApplication won't show index page

2006-04-22 Thread Jonathan Cone
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

Re: [Wicket-user] objects in session

2006-03-16 Thread Jonathan Cone
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'

Re: [Wicket-user] objects in session

2006-03-16 Thread Jonathan Cone
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

Re: [Wicket-user] objects in session

2006-03-16 Thread Jonathan Cone
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)

Re: [Wicket-user] Newbie question: applying dynamic form component with ListView

2006-03-15 Thread Jonathan Cone
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

Re: [Wicket-user] Newbie question: applying dynamic form component with ListView

2006-03-15 Thread Jonathan Cone
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. 

Re: [Wicket-user] validating input

2006-03-14 Thread Jonathan Cone
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

Re: [Wicket-user] DropDownChoice

2006-02-20 Thread Jonathan Cone
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

[Wicket-user] DropDownChoice

2006-02-20 Thread Jonathan Cone
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

Re: [Wicket-user] VOTE

2006-02-17 Thread Jonathan Cone
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

[Wicket-user] ListMultipleChoice

2006-02-10 Thread Jonathan Cone
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