Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread Eelco Hillenius
> I agree that using Wicket's decoration mechanism is probably a better way to > go. One small question though - how do I put the contextPath into URLs in my > BasePage.html? In my SiteMesh decorator, I have: > > > > type="image/x-icon"/> > href="${ctx}/styles/deliciouslyblue/theme.

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread mraible
Eelco Hillenius wrote: > >> // Fixed SiteMesh: >> http://spatula.net/blog/2006/10/wicket-sitemesh-feces-nocturnus.html >> >> getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER); >> >> It's likely be pretty easy to port when I have with SiteMesh to use the

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread Eelco Hillenius
> // Fixed SiteMesh: > http://spatula.net/blog/2006/10/wicket-sitemesh-feces-nocturnus.html > > getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER); > > It's likely be pretty easy to port when I have with SiteMesh to use the page > extension stuff that Wicket

Re: [Wicket-user] Is there a success message example?

2007-04-25 Thread Eelco Hillenius
> rofl, ok thats only three of the same response so far, lets see if we can > rack up some more. i wish gmail could tell you that someone is responding to > the same message you are. it does IM, why not this??? Gmail actually had the feature that showed you updates in the thread while you are writ

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread mraible
Eelco Hillenius wrote: > >> Does it do this with 1.2.6? >> >> When I don't have it, and I hit refresh after submitting a form, I get >> the >> good ol' "postdata" message from Firefox. If I add setRedirect(true), >> there >> is no message. > > That's surprising. What does your application obje

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread Igor Vaynberg
rofl, ok thats only three of the same response so far, lets see if we can rack up some more. i wish gmail could tell you that someone is responding to the same message you are. it does IM, why not this??? -igor On 4/24/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote: On 4/25/07, mraible <[EMAI

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread Martijn Dashorst
On 4/25/07, mraible <[EMAIL PROTECTED]> wrote: > Does it do this with 1.2.6? > When I don't have it, and I hit refresh after submitting a form, I get the > good ol' "postdata" message from Firefox. If I add setRedirect(true), there > is no message. If you haven't changed the default render strate

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread Eelco Hillenius
> Does it do this with 1.2.6? > > When I don't have it, and I hit refresh after submitting a form, I get the > good ol' "postdata" message from Firefox. If I add setRedirect(true), there > is no message. That's surprising. What does your application object look like? The default IRequestCycleSett

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread Igor Vaynberg
its been doing that since before 1.0 afaik. in fact i dont even remember what that dialog looks like anymore :) did you mess with render strategies at all? i think if you change the strat to one-pass-render it might not do it for you. -igor On 4/24/07, mraible <[EMAIL PROTECTED]> wrote: ig

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread mraible
igor.vaynberg wrote: > > On 4/24/07, mraible <[EMAIL PROTECTED]> wrote: >> >> > >> > You typically don't need to call setRedirect yourself though. Was >> > there any reason for doing that? Also, flash message works good here, >> > but if you already know the page you are going to display it on,

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread Igor Vaynberg
On 4/24/07, mraible <[EMAIL PROTECTED]> wrote: > > You typically don't need to call setRedirect yourself though. Was > there any reason for doing that? Also, flash message works good here, > but if you already know the page you are going to display it on, you > might as well set it on there. > >

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread mraible
Got it - I needed getSession().info() instead of info(). Thanks guys - I really appreciate the excellent support. Matt mraible wrote: > > > > Eelco Hillenius wrote: >> >>> I'm trying to success messages working. In my Detail.java page, I have: >>> >>> protected void onSaveUser(User use

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread mraible
Eelco Hillenius wrote: > >> I'm trying to success messages working. In my Detail.java page, I have: >> >> protected void onSaveUser(User user) { >> userManager.saveUser(user); >> getSession().info("It worked!"); >> setRedirect(true); >> setResponsePage(backP

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread Igor Vaynberg
for a full crud app wicket+spring+hibernate/ibatis/shades see wicket-phonebook project in wicket-stuff.sf.net it has the feedback messages and grids you want. also for models you can read here http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 4/24/07, mraibl

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread Eelco Hillenius
> I'm trying to success messages working. In my Detail.java page, I have: > > protected void onSaveUser(User user) { > userManager.saveUser(user); > getSession().info("It worked!"); > setRedirect(true); > setResponsePage(backPage); > } > > First of all, is t

Re: [Wicket-user] Is there a success message example?

2007-04-24 Thread Nick Heudecker
You can just add a FeedbackPanel to the Page: add(new FeedbackPanel("feedback")); Then call your info(...), error(...) or whatever method: info("It Worked!"); I haven't worked with 1.3 yet, so I don't know if anything has changed there. On 4/24/07, mraible <[EMAIL PROTECTED]> wrote: I'm

[Wicket-user] Is there a success message example?

2007-04-24 Thread mraible
I'm trying to success messages working. In my Detail.java page, I have: protected void onSaveUser(User user) { userManager.saveUser(user); getSession().info("It worked!"); setRedirect(true); setResponsePage(backPage); } First of all, is this the proper wa