Re: Response with FeedBackMessage

2009-12-31 Thread Martin Makundi
if you do getSession().info() 2010/1/1 Marek Šabo : > Hi, > > I would like to ask how can I achieve propagation of a feedback message to a > page that is set in setResponsePage(). > Consider this: > > try { > ... > info(); > setResponsePage(); > } catch (e) { > error(e); > } > > Of course the erro

Response with FeedBackMessage

2009-12-31 Thread Marek Šabo
Hi, I would like to ask how can I achieve propagation of a feedback message to a page that is set in setResponsePage(). Consider this: try { ... info(); setResponsePage(); } catch (e) { error(e); } Of course the error is propagated, is it possible or can you suggest a workaround to achieve p

Re: question about swarm

2009-12-31 Thread sam
Wow that was quick. Thanks a lot I really appreciate it Sent via BlackBerry from T-Mobile -Original Message- From: Olger Warnier Date: Thu, 31 Dec 2009 23:31:34 To: Subject: Re: question about swarm Hi Sam, Found the way to solve it. It is fixed in the trunk. Still need to fix the

Re: question about swarm

2009-12-31 Thread Olger Warnier
Hi Sam, Found the way to solve it. It is fixed in the trunk. Still need to fix the build server - so a check out and build of the whole is probably best. An anonymous class will act like its' parent now. Happy new year (to you all). Olger On 31 dec 2009, at 22:43, s...@sambarrow.com wrote:

SOLVED: FormTester.submit(buttonId) unchecks CheckBoxes @L

2009-12-31 Thread Alec Swan
formTester.submit("deleteButton") failed because component with "deleteButton" id was a SubmitLink. The following code works: formTester.submitLink("deleteButton", false); On Thu, Dec 31, 2009 at 2:38 PM, Alec Swan wrote: > Note that the code works on the live system. In other words, records > s

Re: question about swarm

2009-12-31 Thread sam
In my opinion, that's how it should work; just seems like common sense to me. Even for regular (non-anonymous) classes, it would be useful although that's not as important. As far as the technical part I have no idea. I've only been working with swam for 3 days. But I will do some looking at th

progressbar mvn repository

2009-12-31 Thread Eduardo Charvel
Hello, I'm using the mvn repository to retrieve the 1.3.0 snapshot for the wicketstuff-progressbar. The following folder is empty: http://wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-progressbar/1.3.0-SNAPSHOT/ And maven fails when trying to retrieve the wicketstuff-progressbar.j

Re: FormTester.submit(buttonId) unchecks CheckBoxes @L

2009-12-31 Thread Alec Swan
Note that the code works on the live system. In other words, records selected by the user get deleted from the database when the user submits the form. I'd appreciate any thoughts on why formTester.submit("deleteButton") deselects each checkbox before submitting the form. Thanks On Thu, Dec 31,

Re: question about swarm

2009-12-31 Thread Olger Warnier
Hi Sam & Jeremy, Together with the remark that Jeremy made - I agree, it is quite fragile - I had a look at the code that does the checks. I could 'assume' that an anonymous class needs the same rights as the 'normal' class. so when your CreateItemPage has the proper rights, an anonymous varia

Re: render javascript included in ajax update

2009-12-31 Thread Jeremy Thomerson
If you're doing it in an AJAX request, why not use AjaxRequestTarget.appendJavascript()? Other than that, I suspect you're using a Label to render the javascript and just need to add Label.setEscapeModelStrings(false). -- Jeremy Thomerson http://www.wickettraining.com On Thu, Dec 31, 2009 at 1

FormTester.submit(buttonId) unchecks CheckBoxes @L

2009-12-31 Thread Alec Swan
I have a form which contains a DataView where each row has a checkbox. The form also contains a submit link which deletes the rows with selected checkboxes from the database. The following code uses WicketTester to test the form behavior. The checkboxes are selected correctly before FormTester.sub

Re: Problem with palette components

2009-12-31 Thread Ernesto Reinaldo Barreiro
Hi Victor Can you provide more info? E.g. How your are defining your palette? Or the exception you get? Without more information there is little else I can suggest... Best, Ernesto On Thu, Dec 31, 2009 at 6:09 PM, victorTrapiello wrote: > > Hello Eranesto, > I was trying to use the method ("ge

render javascript included in ajax update

2009-12-31 Thread wic...@geofflancaster.com
I'm using panels to add some javascript to a page via ajax. As of right now, all that is visible is the script text (in the

Re: Problem with palette components

2009-12-31 Thread victorTrapiello
Hello Eranesto, I was trying to use the method ("getselectedChoices"), but I´m facing more problems, look a simple example: Iterator iter = palette.getSelectedChoices(); while (iter.hasNext()) { System.out.println(iter.next()); } it only prints the fi

Re: question about swarm

2009-12-31 Thread Jeremy Thomerson
That's extremely fragile. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Dec 31, 2009 at 3:41 AM, Olger Warnier wrote: > Hi Sam, > > I have added a sample to the secureform sample where the home page creates > an anonymous class of the MySecurePage > An anonymous page has a kind of

Re: SV: wicketstuff portlets - where did it go?

2009-12-31 Thread Steve Swinsburg
Right I thought as much once I found the source. Unfortunately it doesn't provide the actual JSR168 implementations from Apache Portals Bridges Common which I was hoping for. Cheers ~ steve (sent from my ipod) On 31/12/2009, at 7:48 PM, Wilhelmsen Tor Iver wrote: Ah looks like I may ha

Re: error page

2009-12-31 Thread Ilja Pavkovic
Hi, > what is the difference between > > @Override > public IApplicationSettings getApplicationSettings() { > IApplicationSettings settings= super.getApplicationSettings(); > settings.setInternalErrorPage(internalErrorPage) > return settings;

Re: question about swarm

2009-12-31 Thread Sam Barrow
I know I can do that, but there's no way do do it by inheritance? I have hundreds of anonymous subclasses throughout my application. Seems sensible that subclasses should inherit their parent's permissions. On Thu, 2009-12-31 at 10:41 +0100, Olger Warnier wrote: > Hi Sam, > > I have added a samp

Re: question about swarm

2009-12-31 Thread Olger Warnier
Hi Sam, I have added a sample to the secureform sample where the home page creates an anonymous class of the MySecurePage An anonymous page has a kind of a class name. Look for a ERROR - RequestCycle - Not authorized to instantiate class org.apache.wicket.security.examples.secur

SV: creating item after form is submitted via ajax

2009-12-31 Thread Wilhelmsen Tor Iver
> I'm doing that. I'm doing what the link referenced earlier in this > thread > said to do. Wicket Ajax cannot update anything that isn't in the DOM. You need a placeholder element for what you want to render in the Ajax, e.g. add(new WebMarkupContainer("panel2").setVisible(false).setOutputMark

SV: wicketstuff portlets - where did it go?

2009-12-31 Thread Wilhelmsen Tor Iver
> Ah looks like I may have found it: > http://wicket-stuff.svn.sourceforge.net/viewvc/wicket- > stuff/attic/wicket-portlets/ probably put in the attic because Wicket has supported portlets "natively" since 1.4-m3 or thereabouts. - Tor Iver --