Re: Wicket and FileUpload on Google App Engine

2009-09-08 Thread Esteban Masoero
Hi uudashr, I gotta tell you've done terrific work! I tried it in my wicket-GAE app and it worked :) Comments/questions: About wicket framework: 1- Is it possibly that the MultipartServletWebRequest can have this line: DiskFileItemFactory factory = new DiskFileItemFactory(); ...changed for...

Extract method suggestion in MultipartServletWebRequest class

2009-09-10 Thread Esteban Masoero
Hi there: In MultipartServletWebRequest constructor we have: ... (line 93) DiskFileItemFactory factory = new DiskFileItemFactory(); ... which inhibits anyone from reusing MultipartServletWebRequest with a different factory. The only solution is generate a new class that is a copy of this one,

Re: Extract method suggestion in MultipartServletWebRequest class

2009-09-15 Thread Esteban Masoero
a refactor in a future release? Thanks a lot! :) Nico Esteban Masoero-2 wrote: Hi there: In MultipartServletWebRequest constructor we have: ... (line 93) DiskFileItemFactory factory = new DiskFileItemFactory(); ... which inhibits anyone from reusing MultipartServletWebRequest

Re: Exceptions and Ajax Events

2009-10-01 Thread Esteban Masoero
Hi: We found out we need something else. Is there a way we can access to the component asociated to the listener that was processing the event? (of course it only applies to ajax events), becase from onRuntimeException we ony have the Page. Thanks, Esteban Jeremy Thomerson escribió:

Showing session-stored messages in another window/tab

2009-10-19 Thread Esteban Masoero
Hi: We've implemented the classic registration process: - user registers - app sends him an email with a generated link - user clicks that link, which it's oppened in a new window/tab - The UserActivationPage that responds to that link request does: this.info(User account activated);

Re: Showing session-stored messages in another window/tab

2009-10-19 Thread Esteban Masoero
But as I see in org.apache.wicket.Component.info(String), that method already adds that message to the session. Wouldn't be the same? Vytautas Racelis escribió: Hi, maybe getSession().info http://this.info/(User account activated); would help On Mon, Oct 19, 2009 at 8:08 PM, Esteban Masoero

Re: Showing session-stored messages in another window/tab

2009-10-19 Thread Esteban Masoero
Vytautas Racelis escribió: Well, Component.info takes WebPage as reporter. Session.info reporter is null. As i understand this will be rendered in session scope instead of single page. But i may be wrong :) Esteban Masoero wrote: But as I see in org.apache.wicket.Component.info(String), that method

Re: Showing session-stored messages in another window/tab

2009-10-19 Thread Esteban Masoero
, Esteban Masoero emaso...@getsense.com.ar wrote: Hi: We've implemented the classic registration process: - user registers - app sends him an email with a generated link - user clicks that link, which it's oppened in a new window/tab - The UserActivationPage that responds to that link request does

Re: Showing session-stored messages in another window/tab

2009-10-19 Thread Esteban Masoero
escribió: - app sends him an email with a generated link can this link encode an parameter like:isActivationFromEmail ? so: loginPageOrActivationPage.add(new Label(id,User account activated).setVisible(getPageParameters().get(isActivationFromEmail)); On Mon, Oct 19, 2009 at 4:24 PM, Esteban Masoero

Re: Showing session-stored messages in another window/tab

2009-10-19 Thread Esteban Masoero
to the session and is kept there until rendered. -igor On Mon, Oct 19, 2009 at 12:12 PM, Esteban Masoero emaso...@getsense.com.ar wrote: I want it to be shown in the LoginPage, because the activation page does not show anything, it only activates the user. I tried something like: LoginPage page

Re: Page instantiated twice

2009-10-20 Thread Esteban Masoero
First of all, thanks to all of you for your help. I haven't solved the problem, but I'm getting closer to it. (something like: new PageLink(new MyPage()); = I checked it and I'm not doing that. ) Here's what I've found out: After debugging a lot, I find out that TWO REQUESTS are made. The

Re: Page instantiated twice

2009-10-21 Thread Esteban Masoero
, Oct 20, 2009 at 4:23 PM, Esteban Masoero emaso...@getsense.com.ar wrote: First of all, thanks to all of you for your help. I haven't solved the problem, but I'm getting closer to it. (something like: new PageLink(new MyPage()); = I checked it and I'm not doing that. ) Here's what I've found

Re: Page instantiated twice

2009-10-21 Thread Esteban Masoero
isn't the one that will be seen in the browser. what do you think? Esteban Esteban Masoero escribió: That is correct. I'm openning the page in a new tab just because of the process registration I'm doing: - user registers - app sends him an email with a generated link - user clicks that link

Re: Page instantiated twice

2009-10-21 Thread Esteban Masoero
not know if the page is opened in a new tab until it is fully loaded and we can check via javascript the name of the window. to fix this you can try storing your messages in your own collection and somehow figuring out when to clear them. -igor On Wed, Oct 21, 2009 at 12:25 PM, Esteban Masoero emaso

Re: AccessControlException with Wicket on Google App Engine (GAE)

2009-10-29 Thread Esteban Masoero
I'm sure the answer is yes but to be sure: have you done everything that is said here http://stronglytypedblog.blogspot.com/2009/04/wicket-on-google-app-engine.html ? Also, what versions of gae sdk and wicket are you using? A. Maza escribió: Hi, I've encountered now (and have seen reported

AbstractDefaultAjaxBehavior using onComponentRendered rendered many times

2010-01-13 Thread Esteban Masoero
Hi: Using wicket 1.3.5, I have a MyAbstractExtensibleChoiceAutocompleteBehavior (that extends AbstractDefaultAjaxBehavior, and I think it is a modification of some wicket class) related to the autocomplete feature that inside onComponentRendered method does something like:

Image that loads from a database, and use a default when no data exists

2010-02-15 Thread Esteban Masoero
Hi there: I know how to instanciate an image component that loads the image from a database, and I know how to make an image component that loads an image from a static resource. Can I make a single image component that upon some condition, uses the database and upon another uses the static

Hint on best way of setting a dinamic value to a localized message

2010-02-25 Thread Esteban Masoero
Hi there: In a onSubmit() method, I'm supossed to send an email that says something like Follow this link: ${url} to activate your accout, and the url has just been obtained dynamically. I could add an url field to my page and do this.getString(someKey, new Model(this)) (using a .properties

Re: Hint on best way of setting a dinamic value to a localized message

2010-02-26 Thread Esteban Masoero
Thanks igor. Would it be possible to add this example to some wicket example page? Because I think it could be a common use case. Thanks, Esteban El 25/02/2010 20:22, Igor Vaynberg escribió: getstring(key,new model(new micromap(url,url)); -igor On Thu, Feb 25, 2010 at 1:59 PM, Esteban

Re: Hint on best way of setting a dinamic value to a localized message

2010-02-26 Thread Esteban Masoero
ok, let me find the right place for it. In the meantime, who is allowed to give me access to edit the wiki? El 26/02/2010 14:12, Igor Vaynberg escribió: you are more then welcome to add it to the wiki -igor On Fri, Feb 26, 2010 at 8:52 AM, Esteban Masoero emaso...@getsense.com.ar wrote