You shouldn't be using Map - it should be Map> if you want it to work right. You're using a "push" method
of coding, pushing your data (strings in this case) into a component prior
to rendering. This will break down on you when using it in Wicket. Use a
"pull" method - IOW, get familiar with mod
Sounds Top of the Line!!
Yeah, you are right to laugh.
:-)
f(t)
On Sat, Feb 28, 2009 at 7:23 PM, Korbinian Bachl - privat <
korbinian.ba...@whiskyworld.de> wrote:
>
>
> Francisco Diaz Trepat - gmail schrieb:
>
>> Hi all.
>>
>> I am building a small shopping app for my girlfriend who sells wom
Perhaps start a vote thread, with the subject something like: "VOTE: Remove
? extends from constructor of DropDownChoice".
I'd be +1 non-binding
--
Jeremy Thomerson
http://www.wickettraining.com
On Sat, Feb 28, 2009 at 3:33 PM, Brill Pappin wrote:
> I'm of the don't widen it camp anyway :)
I do it all the time. Its transient anyway unless you actually persist
or merge it (unless your entity beans handle persistence on change
themselves).
Actually, I typically have a form data object, one of the fields being
the entity I'm creating. I usually do that so that custom values can
I think your issue is with the way you set it up.
It looks to me as if your DropDownChoice is isolated from your data
model so that when the form submits you getting the property set to
null, which it is in the input.
could of things to try:
- use a property model for the form model.
- name
I'm of the don't widen it camp anyway :)
So how do I go about gathering support for having the DropDownChoice
work with the models the way everything else does?
- Brill
On 28-Feb-09, at 1:42 AM, Igor Vaynberg wrote:
yes, the choice was intentional. personally i do not care if it is
all th
Francisco Diaz Trepat - gmail schrieb:
Hi all.
I am building a small shopping app for my girlfriend who sells women
underwear (no, i do not get to run around with hot models, other than the
uml ones).
HA HA HA! :P
*sorry could not resist*
As the He-Man of this project I opted for Wicket
Always file systems. Never put images in a database unless it is an
absolute business requirement. You bypass every piece of the system
that is good at managing images (filesystem and webserver).
John-
On Sat, Feb 28, 2009 at 1:06 PM, Francisco Diaz Trepat - gmail
wrote:
> Hi all.
>
> I am build
Hi all.
I am building a small shopping app for my girlfriend who sells women
underwear (no, i do not get to run around with hot models, other than the
uml ones).
As the He-Man of this project I opted for Wicket (obviously) with
ActiveObjects and Postgres.
Now to the question or opinion request.
The category is still null. Could someone tell me where it goes wrong?
Thanks,
Hbiloo
On Sat, Feb 28, 2009 at 6:39 PM, Azzeddine Daddah wrote:
> The Recipe object is indeed serializable. Below some code from
> the AddRecipeForm and Recipe:
>
> public class Recipe implements Serializable {
>
> factor out an init method that both constructors call.
Thanks for you help. I've found this solution with the approved trial-and-error
method during you wrote me.
Regards
Christian
-
To unsubscribe, e-mail: users-unsubsc
Excuse my bit by bit mailings but I don't want to keep the solution secret. The
problem with my first try was the missing implicit call to super() within the
constructor because I used this() instead. The line
InjectorHolder.getInjector().inject(this);
is not necessary when I put the code in a se
Christian,
It sounds like you're sinking fast into some quicksand you've created in
your mind - partly because you don't trust, Wicket, Spring, the
Wicket-Spring integration or even Java yet! Your question has nothing to do
with Wicket, Spring or Wicket-Spring integration.
First of all, forget
a) dont start a new thread for the same problem
b) you dont need this InjectorHolder.getInjector().inject(this); since
your repository is no longer abstract.
-igor
On Sat, Feb 28, 2009 at 11:29 AM, Christian Helmbold
wrote:
> I've found a workaround. Not elegant, but it works:
>
> public class A
factor out an init method that both constructors call.
-igor
On Sat, Feb 28, 2009 at 11:14 AM, Christian Helmbold
wrote:
> Hi Martjin,
>
> it is not possible to compile the code without static. Without static I get
> the compiler error: "cannot reference repository before supertype constructor
Christian Helmbold wrote:
I've found a workaround. Not elegant, but it works:
public class ArticlePage extends WebPage
{
@SpringBean
private ArticleRepository repository;
private Article article;
public ArticlePage()
{
InjectorHolder.getInjector().inject(this);
I've found a workaround. Not elegant, but it works:
public class ArticlePage extends WebPage
{
@SpringBean
private ArticleRepository repository;
private Article article;
public ArticlePage()
{
InjectorHolder.getInjector().inject(this);
construct(repository.find
Hi Martjin,
it is not possible to compile the code without static. Without static I get the
compiler error: "cannot reference repository before supertype constructor has
been called". But I cannot write
public ArticlePage()
{
super();
this();
}
because each of them must be the fi
Also, it will inject prior to your constructor is called.
On Feb 28, 2009 11:03 AM, "Martijn Reuvers"
wrote:
Hi Christian,
I think you should not use use the static modifier with this, instead use:
@SpringBean
private ArticleRepository repos;
This should work fine and you can use it inside yo
Hello Stephen,
Does not sound like a problem to me. As long as your hibernate session
is closed after the save you do, this object will be in a detached
state and generally should cause no trouble (same goes for if you
fetch an object from the database thru hibernate).
Martijn
On Sat, Feb 28, 20
Hi all,
I'm after your thoughts on the following method.
Suppose there is a wicket form with some fields that can map directly
to a simple Hibernate object, and hence a db table. Is it safe to
simply wrap this object in a CompoundPropertyModel and use it as the
backing model for the form?
The Recipe object is indeed serializable. Below some code from
the AddRecipeForm and Recipe:
public class Recipe implements Serializable {
public static final int NAME_LENGTH = 50;
public static final int DIFFICULTY_LENGTH = 6;
public static final int INTRODUCTION_LENGTH =
Hmm. Strange things I see with image paths in my borders with variants.
My page is mounted like:
mountBookmarkablePage("/getFrame", OrderPaymentPage.class);
So, when I reach my theme with:
.../getFrame?theme=white
- everything is alright.
But asking it with:
.../getFrame/theme/white
- and my b
where is the code that creates your form? and is Recipe serializable?
-igor
On Sat, Feb 28, 2009 at 8:58 AM, Azzeddine Daddah wrote:
> Thanks Igor,
> I've already tried that but still have the same problem.
> add(new CategoriesDropDown("categories", new PropertyModel(recipe,
> "category")).setRe
Thanks Igor,
I've already tried that but still have the same problem.
add(new CategoriesDropDown("categories", new PropertyModel(recipe,
"category")).setRequired(true));
...
private class CategoriesDropDown extends DropDownChoice {
public CategoriesDropDown(String id, IModel model) {
use a property model instead of recipe.getcategories()
-igor
On Sat, Feb 28, 2009 at 8:17 AM, Azzeddine Daddah wrote:
> Hi,
> I'm trying to use a DropDownChoice to display and store the selected
> category in the database. The value selected in the drop down is correctly
> set, but when I look t
Hi all,
I have a HashMap I need to localise like so:
LinkedHashMap options = new LinkedHashMapString>();
options.put("1", new StringResourceModel(option.1",
this,null).getString());
options.put("2", new StringResourceModel("option.2",
this,null).getString());
options.put("3", new StringResou
Hi,
I'm trying to use a DropDownChoice to display and store the selected
category in the database. The value selected in the drop down is correctly
set, but when I look to the model (Category) of this drop down, it returns
always null. Do I do something wrong? Below some code.
public AddRecipeForm
Hi Christian,
I think you should not use use the static modifier with this, instead use:
@SpringBean
private ArticleRepository repos;
This should work fine and you can use it inside your constructor.
Static does not add anything useful in this case, as its already a
singleton in Spring.
Martijn
A page in my Wicket app has a contructor which should access an injected
repository, but the repository is injected not until construction is complete..
public class ArticlePage extends WebPage
{
@SpringBean
private static ArticleRepository repository; // initialized after
construction!
On Sat, Feb 28, 2009 at 2:17 AM, Stephen Swinsburg <
s.swinsb...@lancaster.ac.uk> wrote:
> Well you can run Tomcat just fine in that setup, but if it's going to need
> to handle lots of concurrent users and sessions then you might hit the
> limits quickly. Just run some profiling on it and see how
On 19.02.2009, at 19:06, Kaspar Fischer wrote:
I am trying to create a form using Wicket-RAD 0.6 and get
Caused by: java.lang.NoSuchMethodError:
org.wicketrad.jpa.propertyeditor.CreateBeanForm.add(Lorg/apache/
wicket/Component;)Lorg/apache/wicket/MarkupContainer;
at
org
.wicketrad
.jpa
Well you can run Tomcat just fine in that setup, but if it's going to
need to handle lots of concurrent users and sessions then you might
hit the limits quickly. Just run some profiling on it and see how you
go. Profile locally and you can see how much your app server/JVM that
Wicket is run
Hello Jaime
I use a Linode plan myself, in this exact configuration (360MB ram-20$/M).
It runs on Ubuntu 8.10, with Apache2, Tomcat6, Mysql.
It's perfect for what i do with it : development, testing, and code
repository (Subversion).
But don't expect to host amazon.com on it !
360MB is the bare
Thanks guys!
patched - http://wicketstuff.org/jira/browse/WSGMAPP-7
Martin Funk-3 wrote:
>
> Sven Meier wrote:
>> Regretfully there's no direct API call in GMap2 supporting your case.
>>
>> Here's a description how to do it with Javascript only:
>>http://econym.googlepages.com/basic14.htm
>
patched - http://wicketstuff.org/jira/browse/WSGMAPP-7
Nino.Martinez wrote:
>
> Hmmm, I got so far:
>
> public boolean isWithInBounds(GLatLngBounds bounds, GLatLng point) {
>
> //if (pointlat < maxY && pointlat > minY && pointlng > minX &&
> pointlng < maxX) { //execute script }
patched - http://wicketstuff.org/jira/browse/WSGMAPP-7
ryantxu wrote:
>
> Strangely I needed to get this to work just yesterday!
>
> I was able to hack it by letting GMap2.java take a list of strings it
> will output at the end of getJSinit()
>
> GLatLngBounds bounds = new GLatLngBound
Your markup didn't make it into the mail message. Since you need component
ids for two components in the second example (instead of one), you need
different markup.
Thomas
On Sat, Feb 28, 2009 at 12:53 AM, novotny wrote:
>
> Hi,
>
> The sample from the javadocs works:
>
> Java:
>
> RepeatingV
MissingMarkupError, but...
and:
RepeatingView rv = new RepeatingView("repeatme");
rv.add(new BookmarkablePageLink(rv.newChildId(),
FooPage.class).add(new Label("label", "Foo")));
rv.add(new BookmarkablePageLink(rv.newChildId(),
BarPage.class).add(new Label("label", "Bar")));
add(rv);
would work
39 matches
Mail list logo