Re: Wicketstuff updated!

2010-04-02 Thread nino martinez wael
is that when running a test or? 2010/4/2 新希望软件 -- 俞宏伟 nhsoft@gmail.com: i found thant push component has some problem. after update push compenet to 1.4.7-snapshot, the application throws some error message: 04-02 09:34:55.546[ RequestCycle.java:1521:ERROR] There is no application

Image Upload Using TinyMCE Within Wicket Framework

2010-04-02 Thread Michał Letyński
I wrote an article for following topic: Image upload using TinyMce within Wicket Framework Article is based on functionality which i wrote to my project. I wrote it since during investigation i saw high demand for such fuctionality. I hope it will be helpful :) Any comments are welcome :)

Re: Create cookie before redirect

2010-04-02 Thread Pawel Koziorowski
Hi! I slightly customized your code and it works fine. After redirecting I checked http://localhost:8084/WicketTest/ (where is the code) domain for CustomerCookie cookie and it existed and every time I click submit a new cookie is added. public class Index extends WebPage { public Index() {

RE: Hibernate - OSIV

2010-04-02 Thread Pointbreak
With OSIV every user will have a different hibernate-session, hence a different hibernate object, so your example would work. But your approach is wrong. For your example I would make a SurveyResult object that holds a reference to your hibernate Survey object. Problem solved. No need to play

Wicket GAE performance

2010-04-02 Thread Alejandro
Hi all, I've been actively using wicket on GAE for quite a lot of months and I love it, but I've quite serious performance problems. I already checked all the advices to speed up the performance but still is quite slow specially for some requests or opening a bookmarkable page. I don't know

Wicket GAE performance

2010-04-02 Thread Ian Marshall
Hello there, I delegate the construction of my singleton PersistenceManagerFactory (PMF) (for data exchange with the datastore) to a queued task, since this operation can take a few seconds. This way, my home page can show without waiting for PMF construction to be complete. I know that the

Properties of model are set to NULL even though we have setRequired set to true

2010-04-02 Thread Wayne Pope
Hi, we've got several examples in our logs of properties of the model being set to null even though the textfield is set to required. I have NO idea how on earth this can happen - its just doesn't make sense - and its really frustrating me!! here's an example: Caused by:

Re: DynamicWizards and Forms

2010-04-02 Thread Jeremy Thomerson
have you looked at the wizard examples in the wicket-examples package? http://www.wicket-library.com/wicket-examples/ -- Jeremy Thomerson http://www.wickettraining.com On Thu, Apr 1, 2010 at 8:49 AM, Sumit Raja sumitr...@gmail.com wrote: Hello, I am trying to get a dynamic wizard to work

CookieValuePersister and addOrReplace

2010-04-02 Thread Nikita Tovstoles
Hi, We have a TextField whose object value we'd like to populate from a Cookie using CookieValuePersister. Things work fine (persister.save and .load) when the input is added to the form at Form's construction time. However, in cases when the input's added to the form using addOrReplace during

What about an onInitialRender method ?

2010-04-02 Thread Joseph Pachod
hi The other day, I was busy creating reusable components. To make them safe, I used what I believe is a wicket good practices: adding the components in onBeforeRender. In fact, it's not just in onBeforeRender, it's rather : @Override protected void onBeforeRender() {

Re: What about an onInitialRender method ?

2010-04-02 Thread Igor Vaynberg
from Component.java in 1.5 (trunk) /** * Callback method invoked after the component was added to its parent AND you can walk up the * hierarchy up until the Page. That is, all parents must be have been added to their parents as * well. Add this point in time

Wicket GAE performance

2010-04-02 Thread Ian Marshall
A quick afternote: in my previous post, I assumed that you were using persistence via JDO code (using PMF). I don't know how long it takes to construct any equivalent datastore connection using JPA or the GAE/J persistence API. -- View this message in context:

Re: What about an onInitialRender method ?

2010-04-02 Thread Joseph Pachod
Thanks a lot, glad to know that :) Yet, I should have figured it out by myself. Next time I'll look directly at the source rather than doing a bad nabble search. ++ joseph _ From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] To: users@wicket.apache.org Sent: Fri, 02 Apr 2010

Re: What about an onInitialRender method ?

2010-04-02 Thread mbrictson
Joseph, Could you elaborate on why adding components in onBeforeRender is safe and a wicket good practice? I haven't come across this very often in my projects. Under what circumstances would you recommend this approach? josephpachod wrote: hi The other day, I was busy creating reusable

Re: What about an onInitialRender method ?

2010-04-02 Thread Igor Vaynberg
one usecase is when you want the user to be able to change which components will be created. this is bad: class mycomponent extends panel { public mycomponent(string id) { add(newCounter(counter)); } protected Component newCounter(String id) { return new Label(id, ); } } because you are

Re: What about an onInitialRender method ?

2010-04-02 Thread mbrictson
Good example. Thanks for clarifying. igor.vaynberg wrote: one usecase is when you want the user to be able to change which components will be created. this is bad: class mycomponent extends panel { public mycomponent(string id) { add(newCounter(counter)); } protected Component