Re: Wicket tester test coverage

2009-12-01 Thread ZedroS Schwart
If the element is not in a loop, just specify the HTML ID in the template. If it is in a loop, use xpath. oh. Thanks :$ I thought wicket id were incremeting on request, meaning that even without loop the same page loaded twice would end up with a different id (with an incremented number). I

RE: Wicket Ajax in JBOSS Portal

2009-12-01 Thread liangyulin
No Exception, nothing happen when I click the ajax link From: goupilpie...@gmail.com Date: Tue, 1 Dec 2009 08:29:27 +0100 Subject: Re: Wicket Ajax in JBOSS Portal To: users@wicket.apache.org Do you get any exception? What does the Ajax window say? Does it just fail to get a response?

Re: Wicket Ajax in JBOSS Portal

2009-12-01 Thread Pierre Goupil
Are you sure you've provided this: filter-mapping filter-nameAjaxApplication/filter-name url-pattern/ajax/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping in your web.xml? Do the portlet work in servlet mode, i.e. when calling its

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Grotzke
On Tue, 2009-12-01 at 08:32 +0200, Martin Makundi wrote: Hi! When I test a page like this http://www.wicket-library.com/wicket-examples/ajax/choice with wicket tester and submit the form, the response page is the HomePage instead of the expected page (ChoicePage). Do you use a

RE: Wicket Ajax in JBOSS Portal

2009-12-01 Thread liangyulin
Yes, in my web.xml filter-mapping filter-nameportlet.applist/filter-name url-pattern/portlet/applist/*/url-pattern dispatcherREQUEST/dispatcher dispatcherINCLUDE/dispatcher /filter-mapping and it worked fine in servlet mode. I got a information from google

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Makundi
Thanx for your feedback! Did you have a look at http://is.gd/58mq3 which shows the test? Ofcourse I didn't look ;) Now, having looked at it your bug is that FORMTESTER CAN BE SUBMITTED ONLY ONCE! If you want to use it another time, you need to call newFormTester again. ** Martin **

Re: Wicket Ajax in JBOSS Portal

2009-12-01 Thread Pierre Goupil
Sorry, I don't use JBoss portal but eXo. It looks like JBoss portal support is incomplete... If I send you a minimalistic AJAX portlet which works in eXo, would you mind adapting it for JBoss (web.xml portlet.xml) and try and see if it works? HTH! Regards, Pierre 2009/12/1 liangyulin

Form too large ?

2009-12-01 Thread Martin Makundi
Hi! What is this error? We got this from our production site... 2009-12-01 11:16:19,634 1488650 [btpool0-17] ERROR RequestCycle  - H java.lang.IllegalStateException: Form too large        at org.mortbay.jetty.Request.extractParameters(Request.java:1269)        at

Re: How to make a feedback panel appear on page load?

2009-12-01 Thread Early Morning
Hi Martin, Yes, and the feedback appears when doing a normal in-page Ajax action (such as clicking the search button within the page), but not when loading the page from setResponsePage. Regards, Ces On Tue, Dec 1, 2009 at 3:56 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Did you

Re: Form too large ?

2009-12-01 Thread janneru
i had this error some time ago, there is a jetty property org.mortbay.jetty.Request.maxFormContentSize; found it on http://scottryansblog.blogspot.com/2007/10/appfuse-dieing-on-large-forms-using.html lguwe On Tue, Dec 1, 2009 at 10:58 AM, Martin Makundi martin.maku...@koodaripalvelut.com

Re: Form too large ?

2009-12-01 Thread Marat Radchenko
Jetty has limitation on max POST size. It can be controlled via org.mortbay.jetty.Request.maxFormContentSize system property (20 bytes by default) 2009/12/1 Martin Makundi martin.maku...@koodaripalvelut.com Hi! What is this error? We got this from our production site... 2009-12-01

Re: Form too large ?

2009-12-01 Thread Martin Makundi
Tnx, never thought of that. So if max file upload size is 250 k then probably this jetty value should be changed too? BTW Here is a hint howto configure it without Maven: http://markmail.org/message/z5ka7pywvj7dqa7o ** Martin 2009/12/1 Marat Radchenko slonopotamusor...@gmail.com: Jetty has

TabbedPanel, tabsVisibilityCache throws IndexOutOfBounds

2009-12-01 Thread Thies Edeling
With wicket extensions 1.4.3, TabbedPanel throws an IndexOutOfBounds exception on the tabsVisibilityCache array when adding more tabs after the panel is rendered. The onBeforeRender method calls the isTabVisible method which initializes an array of booleans for visibility caching. The length

SV: Wicket Ajax in JBOSS Portal

2009-12-01 Thread Wilhelmsen Tor Iver
It looks like JBoss portal support is incomplete... If I send you a minimalistic AJAX portlet which works in eXo, would you mind adapting it for JBoss (web.xml portlet.xml) and try and see if it works? HTH! We use Glassfish + Webspace/Liferay, but ended up using a mapping

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Grotzke
On Tue, 2009-12-01 at 11:44 +0200, Martin Makundi wrote: Thanx for your feedback! Did you have a look at http://is.gd/58mq3 which shows the test? Ofcourse I didn't look ;) Now, having looked at it your bug is that FORMTESTER CAN BE SUBMITTED ONLY ONCE! If you want to use it another

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Makundi
Line 63 you are re-using the same formTester. Cannot work. ** Martin 2009/12/1 Martin Grotzke martin.grot...@javakaffee.de: On Tue, 2009-12-01 at 11:44 +0200, Martin Makundi wrote: Thanx for your feedback! Did you have a look at http://is.gd/58mq3 which shows the test? Ofcourse I didn't

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Grotzke
On Tue, 2009-12-01 at 15:46 +0200, Martin Makundi wrote: Line 63 you are re-using the same formTester. Cannot work. Wow, really fast! :) However, I already had tested this and it doesn't make any difference - the test still fails with the same error. FWIW, I updated and pushed the test so that

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Makundi
However, I already had tested this and it doesn't make any difference - the test still fails with the same error. I am not sure what you are doing. Do like this { // Operation 1 FormTester f1 = tester.newFormTester (...); f1.setValue tester.execute ... } { // Operation 2

validation string resource name prefix

2009-12-01 Thread Sebastiaan van Erk
Hi, I would like all the validation strings on a specific page to have a specified prefix, e.g., if I have a field password with a length validator on my page, I would like the following resource strings tried in the listed order: myPageLabel.password.StringValidator.minimum

Re: validation string resource name prefix

2009-12-01 Thread Martin Makundi
Yes it is possible ;) Make sure it is worth it before pursuing. ** Martin 2009/12/1 Sebastiaan van Erk sebs...@sebster.com: Hi, I would like all the validation strings on a specific page to have a specified prefix, e.g., if I have a field password with a length validator on my page, I

Re: TabbedPanel, tabsVisibilityCache throws IndexOutOfBounds

2009-12-01 Thread Igor Vaynberg
yep, with a testcase -igor On Tue, Dec 1, 2009 at 5:14 AM, Thies Edeling th...@rrm.net wrote: With wicket extensions 1.4.3, TabbedPanel throws an IndexOutOfBounds exception on the tabsVisibilityCache array when adding more tabs after the panel is rendered. The onBeforeRender method calls

Re: TabbedPanel, tabsVisibilityCache throws IndexOutOfBounds

2009-12-01 Thread Thies Edeling
ok, https://issues.apache.org/jira/browse/WICKET-2594 created Igor Vaynberg wrote: yep, with a testcase -igor On Tue, Dec 1, 2009 at 5:14 AM, Thies Edeling th...@rrm.net wrote: With wicket extensions 1.4.3, TabbedPanel throws an IndexOutOfBounds exception on the tabsVisibilityCache array

It may be basic, but... Globally setting date styles for the application?

2009-12-01 Thread Loritsch, Berin C.
It may seem rather basic, but I'm looking for a reasonably simple way to globally set how the application displays dates. On rails, it was as simple as setting that information in the l10n/i18n resource files. I've been googling and trying to find the answer in the Wicket in Action book, but it

RE: It may be basic, but... Globally setting date styles for the application?

2009-12-01 Thread Loritsch, Berin C.
It appears that the newConverterLocator() route is about right, but I have a slight issue between the Hibernate binding and what I want to happen. In order for the converter to work, it looks for the exact class. That means that java.util.Date won't work when the subclass actually used is

Re: It may be basic, but... Globally setting date styles for the application?

2009-12-01 Thread Antoine Angenieux
-- Antoine Angénieux Associé Clinigrid 5, avenue Mozart 75016 Paris, France +336 60 21 09 18 aangeni...@clinigrid.com Le 1 déc. 2009 à 18:57, Loritsch, Berin C. berin.lorit...@gd- ais.com a écrit : It appears that the newConverterLocator() route is about right, but I have a slight issue

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-01 Thread TahitianGabriel
I've tried what you said, and indeed if you remove the nested form, it works like a charm for the ajax-upload. BUT, it breaks other thing (like DatePicker in IE that do not work anymore in modal window). It looks like a bug, so maybe you can open a jira... Regards, Gabriel. Martin Dietze

Re: FileUploadField in a ModalWindow (wicket 1.4.3)?

2009-12-01 Thread Martin Dietze
On Tue, December 01, 2009, TahitianGabriel wrote: It looks like a bug, so maybe you can open a jira... Just added WICKET-2595. This bug may be related to WICKET-2433, but that one was supposed to be fixed in Wicket 1.4.2 while this problem was observed with 1.4.3. Cheers, M'bert --

RE: It may be basic, but... Globally setting date styles for the application?

2009-12-01 Thread Loritsch, Berin C.
I think your answer got lost somewhere. -Original Message- From: Antoine Angenieux [mailto:aangeni...@clinigrid.com] Sent: Tuesday, December 01, 2009 1:06 PM To: users@wicket.apache.org Subject: Re: It may be basic, but... Globally setting date styles for the application? -- Antoine

Re: Session timeout - AJAX-enabled controls

2009-12-01 Thread Bernard LUPIN
Hello, I also have a similar problem : when the session is over, debug shows me that all my Ajax links receive an html response with my login page, instead of an xml response, because I have a servlet filter for that. So wicket says in the wicket ajax debug window ERROR:

Re: Session timeout - AJAX-enabled controls

2009-12-01 Thread Bernard Lupin
And I'm using wicket version 1.4.3... Bernard Lupin wrote: Hello, I also have a similar problem : when the session is over, debug shows me that all my Ajax links receive an html response with my login page, instead of an xml response, because I have a servlet filter for that. So wicket

Re: Session timeout - AJAX-enabled controls

2009-12-01 Thread Igor Vaynberg
in your servlet filter you will have to check for Wicket-Ajax header and if it is present return a properly formatted ajax-response that contains javascript to redirect to your login page. -igor On Tue, Dec 1, 2009 at 1:01 PM, Bernard Lupin beal6...@yahoo.fr wrote: And I'm using wicket version

Re: Servlet container authentication in Wicket

2009-12-01 Thread TahitianGabriel
Here's what I use with wicket 1.3/1.4 and Tomcat using LDAP realm. I use AuthenticatedWebApplication and AuthenticatedWebSession. public class MySession extends AuthenticatedWebSession { /** Name. */ private final String userName; /** Roles. */ private final Roles roles;

Wicket 1.5 experiences

2009-12-01 Thread Major Péter
Hi, I'm trying to make my project 1.5-compatible, but I had run into two issues: First I was stumbled when saw IComponentBorder has been deleted, but after some Googling I found the corresponding ticket: https://issues.apache.org/jira/browse/WICKET-2280 Okay, that's great, but I can't see this

Re: Wicket 1.5 experiences

2009-12-01 Thread Matej Knopp
Hi, Wicket 1.5 is currently highly experimental. I definitely wouldn't recommend using it for anything even half serious. -Matej 2009/12/1 Major Péter majorpe...@sch.bme.hu: Hi, I'm trying to make my project 1.5-compatible, but I had run into two issues: First I was stumbled when saw

Re: Wicket 1.5 experiences

2009-12-01 Thread Major Péter
Hi, Actually I would like just to test, that my can't reproduce ticket ( https://issues.apache.org/jira/browse/WICKET-2432 ) did solved somehow. The quickstart passed, but I would like to see in my application too, that it is really fixed. (that's why I need EJB injection). Is there an

How to render raw HTML

2009-12-01 Thread Alec Swan
I am using Wicket 1.4.2 and would like to be able to render raw HTML pages which are stored in an existing database. I saw that other people attempted doing thishttp://markmail.org/message/sleaiygl3buwgqcn#query:AutoComponentPanel+page:1+mid:sleaiygl3buwgqcn+state:resultsand am wondering if there

Re: test for dropdownchoice with ajax - response is homepage always

2009-12-01 Thread Martin Grotzke
Great, it's working now. I didn't use exactly the same formTester which was used for selecting the second dropdown before, that was the reason why it didn't work. Thanx for your help, cheers, Martin On Tue, 2009-12-01 at 16:03 +0200, Martin Makundi wrote: However, I already had tested this

Re: How to render raw HTML

2009-12-01 Thread Igor Vaynberg
afaik all you need is a page that looks like this class rawpage extends webpage { public rawpage(final pageparameters p) { add(new label(content, new loadabledetachablemodel() { public object load() { return database.getmarkup(p.get(pageid)); }

Re: General questions regarding Wicket roadmap and plans

2009-12-01 Thread Lester Chua
Hi, Took some time to pick up this thread again as we were preparing for the UAT of the application rewrite using Wicket =) for the last 2 weeks. The UAT was quite successful, with minor modifications required (expected). The real good news is that Wicket performed admirably in terms of

Re: how to disable pagination in inmethod grid?

2009-12-01 Thread Ravi Wallau
You have to use the DataGrid component instead of the DefaultDataGrid component. The DataGrid doesn't include the pagination components at the bottom of the grid. Roman Ilin wrote: Hi *, does anybody know how to hide pagination and Showing x of y message in inmethod grid component?

Re: General questions regarding Wicket roadmap and plans

2009-12-01 Thread Igor Vaynberg
On Tue, Dec 1, 2009 at 5:17 PM, Lester Chua cicowic...@gmail.com wrote: Hi, Took some time to pick up this thread again as we were preparing for the UAT of the application rewrite using Wicket =) for the last 2 weeks. The UAT was quite successful, with minor modifications required (expected).

RE: Wicket Ajax in JBOSS Portal

2009-12-01 Thread liangyulin
no problem, It is very good From: goupilpie...@gmail.com Date: Tue, 1 Dec 2009 10:50:53 +0100 Subject: Re: Wicket Ajax in JBOSS Portal To: users@wicket.apache.org Sorry, I don't use JBoss portal but eXo. It looks like JBoss portal support is incomplete... If I send you a minimalistic

How to do Simple non-Ajax Javascript Behaviour?

2009-12-01 Thread Lester Chua
Hi, Hmmm, I have a simple thing which should be easy but I just cant figure out on Wicket. 1. I have an input box. 2. I need to attach a javascript to this box to monitor key presses. Basically I need to fire a js on the keyup event. I've googled but have not found the answer to a

Re: How to do Simple non-Ajax Javascript Behaviour?

2009-12-01 Thread Martin Makundi
YOu need to make AttributeModifier if you want it to look like this: input onkeyup=javascript/ ** Martin 2009/12/2 Lester Chua cicowic...@gmail.com: Hi, Hmmm, I have a simple thing which should be easy but I just cant figure out on Wicket. 1. I have an input box. 2. I need to attach a

RE: How to render raw HTML

2009-12-01 Thread Alex Rass
There was this little class somewhere in help. Obviously needs a little change for getting actual content and piping it out, but from here - it's not far. Hope this helps. /** * Use if you want to redirect entire page and dump this one. */ static class ImportTag extends

Re: How to do Simple non-Ajax Javascript Behaviour?

2009-12-01 Thread Lester Chua
Hi Martin, Thanks for the hint, I'll look that up. In fact, I could do onkeyup onto the markup on the html directly but wanted to do it the wicket way =) as well as reliably obtain my markupid without cluttering the my markups with JS all over the place. On further investigation, using the

Re: How to do Simple non-Ajax Javascript Behaviour?

2009-12-01 Thread Igor Vaynberg
does your page have a script referencing wicket-event.js? also tagNo2f should probably be in quotes...was this a direct paste? -igor On Tue, Dec 1, 2009 at 10:18 PM, Lester Chua cicowic...@gmail.com wrote: Hi Martin, Thanks for the hint, I'll look that up. In fact, I could do onkeyup onto

Re: Announcement: Annotation-based Mounting of Resources

2009-12-01 Thread Toscano
Hi again, First of all, thank you for your time and dedication with this project, I think is really useful and interesting. I just can't have it working and I don't know the reason, I would really appreciate if you can spend a few minutes trying to help me if you don't mind. I'm using Wicket

Re: How to do Simple non-Ajax Javascript Behaviour?

2009-12-01 Thread Lester Chua
Hi, Yes, it's a direct paste. I've regenerated the page and this is the output at HTML. script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js