Re: Wicket 1.5: request mapper to make all urls absolute

2011-09-19 Thread manuelbarzi
https://cwiki.apache.org/WICKET/how-to-do-things-in-wicket.html . On Mon, Sep 19, 2011 at 1:57 AM, Bas Gooren b...@iswd.nl wrote: After quite a lot of searching and testing, I've finally been able to get things working. In the end, I was able to solve my problem in the most logical place,

Re: name1/param1/name2/param2 style URLs still supported in 1.5?

2011-09-19 Thread Martin Grigorov
Here is one more resource to read. http://wicketinaction.com/2011/07/wicket-1-5-mounting-pages/ You can do that with indexed parameters. Use pageParameters.getIndexedCount() and then extract the name from the odd parameters and their values from the even: parameters.get(index) On Mon, Sep 19,

Re: AjaxSubmitLink 1.4.18 issue/not working

2011-09-19 Thread Martin Grigorov
On Mon, Sep 19, 2011 at 5:14 AM, Wayne W waynemailingli...@gmail.com wrote: The thing is I'm not doing anything special here, just straight wicket form stuff AFAIK. Here is what is generated from wicket for the form and the link: form id=userForm4e

Re: Enclosure changes in 1.5

2011-09-19 Thread Martin Grigorov
On Mon, Sep 19, 2011 at 4:21 AM, Chris Colman chr...@stepaheadsoftware.com wrote: It looks like using an explicit EnclosureContainer fixes our problem. I think it should work as in 1.4 but I have no idea what is the problem without debugging it. Regards, Chris

Re: Footnote-Support

2011-09-19 Thread Christian Huber
Hi Dan, thanks for your answer. To be a bit more clear about what I want, I would like (spoken simplified) to add a footenote to a label like Some text sup1/sup and automatically have the footbnote text appear at the bottom of the corresponding page. Right now I have a Label subclass to do

Re: Footnote-Support

2011-09-19 Thread Martin Grigorov
It sounds like a FeedbackPanel with a component filter that filters all components annotated somehow to be a footnote will do the job. On Mon, Sep 19, 2011 at 11:15 AM, Christian Huber hub...@butterbrot.org wrote: Hi Dan, thanks for your answer. To be a bit more clear about what I want, I

Re: 1.5: wicketeser with navomatic border: path not found.

2011-09-19 Thread Martin Grigorov
On Mon, Sep 19, 2011 at 8:36 AM, cablepuff cablep...@gmail.com wrote: Hi iam getting error in my test case. I have the standard navomaticborder file with addToBorder(navigationBorder) and addToBorder(bodyBorder); my test contains: this.tester.startPage(LoginPage.class); final FormTester

Re: inmethod grid problem in IE8

2011-09-19 Thread Martin Grigorov
Also try with IE9/10. They may give you better error description. On Sun, Sep 18, 2011 at 1:18 PM, Duy Do doquoc...@gmail.com wrote: Hi Attila, I'm using version 1.4.18 of Wicket, inmethod-grid. I will try to test the example of inmethod grid and let you know the result. Thank you for your

RE: name1/param1/name2/param2 style URLs still supported in 1.5?

2011-09-19 Thread Chris Colman
I was trying to make minimal code changes. I thought of an alternative that hopefully will work ok: Using named parameters and ignore the names! Eg., URL /page/name1/value1 I can mount a page like: /page/${dummy_name1}/${value1} I could simply ignore dummy_name1 and assume there is a value

wicket is secure by default. why use spring security?

2011-09-19 Thread Zilvinas Vilutis
Hi all Wicket users. While I was trying to design a wicket app in my mind - the first thing I thought of was authentication and ( spring ) security. I know that wicket is secure by default ( a quote from wicket features? :), we can use wicket auth annotation based security. Wicket will

Problem with setWindowClosedCallback

2011-09-19 Thread vov
Hi All, in wicket 1.4 i can make: AjaxButton searchButton = new AjaxButton(search)//{1} { @Override protected void onSubmit(AjaxRequestTarget target, Form? ajaxForm) { window.setWindowClosedCallback(new ModalWindow.WindowClosedCallback() { @Override

London Apache Wicket Training

2011-09-19 Thread Cemal Bayramoglu
Our next scheduled/public London Apache Wicket Training [1] classes are scheduled for September 21-22, 2011 and October 11-12, 2011 There are still places on the October course. Check availability and book online [2] if you are interested. Regards - Cemal jWeekend Training, Consulting,

Re: wicket is secure by default. why use spring security?

2011-09-19 Thread Andrea Del Bene
It all depends on your needs ;-). I don't know much about Spring Security, but personally speaking I've always been fine with Wicket authentication. While I was trying to design a wicket app in my mind - the first thing I thought of was authentication and ( spring ) security. I know that

Re: wicket is secure by default. why use spring security?

2011-09-19 Thread moèz ben rhouma
http://javajeedevelopment.blogspot.com/2011/03/integrating-spring-security-3-with.html 2011/9/19 Andrea Del Bene adelb...@ciseonweb.it It all depends on your needs ;-). I don't know much about Spring Security, but personally speaking I've always been fine with Wicket authentication. While

Re: setResponsePage is not working in SignInPanel

2011-09-19 Thread Martin Grigorov
On Mon, Sep 19, 2011 at 1:32 PM, aabfattah ahmed.abdelfattah.elshem...@gmail.com wrote: Hello , I have reused the code of the SignInPanel to make another class with Arabic support then I added a button to signup for new user inside the sign in form but this button doesn't work and doesn't

Re: setResponsePage is not working in SignInPanel

2011-09-19 Thread aabfattah
That's what I get [12:48:22.393] GET http://localhost:8080/;jsessionid=oaz5usmzhnl1a5ixlhs4ilb8 [HTTP/1.1 200 OK 5ms] [12:48:22.387] GET http://localhost:8080/wicket/bookmarkable/com.orange.cairolab.sdp.calltofix.web.customer.AddNewCustomerPage [HTTP/1.1 302 Found 3ms] [12:48:22.357] POST

Re: Wicket 1.5: request mapper to make all urls absolute

2011-09-19 Thread Bas Gooren
Ok, I've added it. See https://cwiki.apache.org/confluence/display/WICKET/Request+mapping Or https://cwiki.apache.org/WICKET/request-mapping.html when it's updated. Thanks for the pointer. Op 19-9-2011 9:09, schreef manuelbarzi: https://cwiki.apache.org/WICKET/how-to-do-things-in-wicket.html

Re: wicket is secure by default. why use spring security?

2011-09-19 Thread Pointbreak
You're taking the statement Wicket is Secure by default out of its context. The full statement is Wicket is secure by default. URLs do not expose sensitive information and all component paths are session-relative. Explicit steps must be taken to share information between sessions. Furthermore URL

Re: Problem with setWindowClosedCallback

2011-09-19 Thread Andrea Del Bene
Hi, can you provide more details about modal window implementation? Modal window behavior has changed a bit from version 1.4 to 1.5 Hi All, in wicket 1.4 i can make: AjaxButton searchButton = new AjaxButton(search)//{1} { @Override protected void onSubmit(AjaxRequestTarget

Re: Problem with setWindowClosedCallback

2011-09-19 Thread vov
Hi, Thanks for your reply please see short example: public class WindowClosedCallbackTest extends WebPage { public WindowClosedCallbackTest() { final ModalWindow window = new ModalWindow(window); window.setPageCreator(new ModalWindow.PageCreator() { @Override public

Re: Wicket 1.5: request mapper to make all urls absolute

2011-09-19 Thread manuelbarzi
cool. may you add this how-to code-example for wicket 1.4 too? coincidentally, i may need it to test something here... ;-) On Mon, Sep 19, 2011 at 1:48 PM, Bas Gooren b...@iswd.nl wrote: Ok, I've added it. See

Re: Problem with setWindowClosedCallback

2011-09-19 Thread Martin Grigorov
I would say this is the only difference in ModalWindow between 1.4 and 1.5. Now we just need someone to document it in the migration guide. There we a few tickets about storing state in one page and expecting to see it in a callback executed in another page. On Mon, Sep 19, 2011 at 4:32 PM, vov

Re: 1.5: wicketester with navomatic border: path not found.

2011-09-19 Thread cablepuff
Thanks. Hmm than what should the path be for the formTester. I know i have to add to the body for the new navomaticBorder.addToBody(loginBody); but if the path changes.. how would i get the path for the form tester to work. -- View this message in context:

Re: 1.5: wicketester with navomatic border: path not found.

2011-09-19 Thread Martin Grigorov
loginBody_body: On Mon, Sep 19, 2011 at 4:39 PM, cablepuff cablep...@gmail.com wrote: Thanks. Hmm than what should the path be for the formTester. I know i have to add to the body for the new navomaticBorder.addToBody(loginBody); but if the path changes.. how would i get the path for

Re: Footnote-Support

2011-09-19 Thread Dan Retzlaff
I see now. Forget the behavior approach. :) How about keeping a ListString of footnotes in the page's metadata (i.e. getPage().setMetaData(FOOTNOTES))? Create (1) a Label-like component which, in its onInitialize(), adds its contents to the list and saves the new index to be rendered as the

Modal Window does not open second time

2011-09-19 Thread vov
Hi All, when I tried to migrate to wicket 1.5 I found strange things. One of them is - modal window does not show second time. In sample below - click to show - on opened modal window click to close - second click to show does not make effect. //Base page: public ShowCloseTestPage() { final

Re: MixedParamUrlCodingStrategy and form submit

2011-09-19 Thread Alexander Gubin
1.4.18 On 09/16/2011 04:26 PM, Igor Vaynberg wrote: what version of wicket? -igor On Thu, Sep 15, 2011 at 3:08 PM, Alexander Gubinagu...@greatergood.net wrote: Googled around, but no clear answer: In my app I mount a page like this: mount(new MixedParamUrlCodingStrategy(/store/product,

Should wicket-devutils be initialized when development utilies are disabled?

2011-09-19 Thread Mikko Pukki
Hi, I just noticed that when wicket-devutils is included in compilation, Application's initializeComponents initializes org.apache.wicket.devutils.debugbar.DebugBarInitializer. Because of this org.apache.wicket.devutils.diskstore.DebugDiskDataStore is in use even when application is in

How to handle errors in RequestCycle.onEndRequest

2011-09-19 Thread Christian Huber
Hi all, I just noticed that exceptions occuring in onEndRequest of a RequestCycle somehow do not reflect on the respone page. I am using an AjaxFallbackButton and the OSIV pattern and thus commit my database changes in onEndRequest, now if an exception occurs here I do get a log entry but I

DI in wicket

2011-09-19 Thread sakthi vel
Hi All, I would like to know how to use Dependency Injection of Spring in wicket to get the database connection. The datasource is configured in the DAO class using the applicationcontext.xml. Could you tell how to call the DAO class without creating the object in the Page class. Any examples or

Re: DI in wicket

2011-09-19 Thread Sven Meier
see https://cwiki.apache.org/WICKET/spring.html On 09/19/2011 09:08 PM, sakthi vel wrote: Hi All, I would like to know how to use Dependency Injection of Spring in wicket to get the database connection. The datasource is configured in the DAO class using the applicationcontext.xml. Could

RequestDispatcher changes 1.4 - 1.5

2011-09-19 Thread Chris Colman
We have a 1.4 app using a UrlRedirectorFilter that we added to capture requests (especially those to '/') and redirect or forward them as appropriate. It works fine under 1.4 but under 1.5 it doesn't. doFilter(...) { // A request to www.domainname.com http://www.domainname.com/ ends

RE: RequestDispatcher changes 1.4 - 1.5 (Not a wicket problem)

2011-09-19 Thread Chris Colman
Given that RequestDispatcher is part of the Servlet API and not Wicket it has not changed from 1.4 - 1.5 ;) so my problem lies elsewhere... From: Chris Colman [mailto:chr...@stepaheadsoftware.com] Sent: Tuesday, 20 September 2011 12:59 PM To: