Re: [Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-11 Thread Phil Franken
Are there any plans to include a fix for this in 1.14.18? https://issues.apache.org/jira/browse/WICKET-3594 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.

[Announce] Wicket Stuff Core 1.5-RC4.2 Released

2011-05-11 Thread Michael O'Cleirigh
Hello, Following the release this morning of wicket 1.5-RC4.2 I have built and deployed a matching wicketstuff-core 1.5-RC4.2 release. The artifacts have been promoted and synced into the maven central repository. They can be retrieved like this: org.wicketstuff wicket-security-swarm 1.5-

Re: WebMarkupContainer and replaceWith

2011-05-11 Thread G. Kebba
Hallo Anna You have a XML "wellformedness" problem. Please close your div tag in the html template by adding . You should end up with Gong Kampala, Uganda On Wednesday, May 11, 2011 08:26:22 PM Anna Simbirtsev wrote: > Hi, > > I am trying to replace WebMarkupContainer with Panel, but

Re: Can you patch ModalWindow in next 1.4 release?

2011-05-11 Thread James Carman
Sorry, was reading that on my phone. On Wed, May 11, 2011 at 5:26 PM, Martin Grigorov wrote: > No, it doesn't. > He already said: The change is small and backwards-compatible. > And the patch looks OK. > > On Wed, May 11, 2011 at 11:24 PM, James Carman > wrote: >> Would it break other people's e

Re: Can you patch ModalWindow in next 1.4 release?

2011-05-11 Thread Martin Grigorov
No, it doesn't. He already said: The change is small and backwards-compatible. And the patch looks OK. On Wed, May 11, 2011 at 11:24 PM, James Carman wrote: > Would it break other people's existing code? > On May 11, 2011 5:13 PM, "Russell Morrisey" > wrote: >> I created a patch in order to repl

Re: Can you patch ModalWindow in next 1.4 release?

2011-05-11 Thread James Carman
Would it break other people's existing code? On May 11, 2011 5:13 PM, "Russell Morrisey" wrote: > I created a patch in order to replace ModalWindow's window-closing behavior with a custom IBehavior implementation. The .patch file and a quickstart project are included in the JIRA issue: > > https:/

Can you patch ModalWindow in next 1.4 release?

2011-05-11 Thread Russell Morrisey
I created a patch in order to replace ModalWindow's window-closing behavior with a custom IBehavior implementation. The .patch file and a quickstart project are included in the JIRA issue: https://issues.apache.org/jira/browse/WICKET-3630 Could someone who is a committer to wicket-extensions pl

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-11 Thread Pedro Santos
By implementing IFeedback you are just comunicating about your type goal: be a feedback. Imagine that one can visit a page adding components implementing IFeedback to an AJAX request target. About handle messages, FeedbackPanel is just presenting messages in session, take a look at FeedbackMessages

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-11 Thread eugenebalt
So I need to write my own class that extends Panel and implements IFeedback? I just looked in the IFeedback javadoc, it doesn't have any methods, it's just a marker. So how would I handle my messages? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FeedbackPanel-with-

Re: FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-11 Thread Pedro Santos
FeedbackPanel is just a panel implementing IFeedback interface and presenting messages in session. You can write a completely different panel implementing IFeedback with custom presentation. It is nothing special. On Wed, May 11, 2011 at 4:59 PM, eugenebalt wrote: > I have a FeedbackPanel in my

FeedbackPanel with Hierarchical DT/DD (Definition List Tags)?

2011-05-11 Thread eugenebalt
I have a FeedbackPanel in my form that displays errors. Rather than a regular FeedbackPanel that lists items, this one is a 2-level hierarchy which uses Definition Lists (DD/DT tags). Example from http://www.w3.org/TR/html401/struct/lists.html , Category 1 Item 1 Item 2 Does the F

Re: Need to distinguish between FileUpload's Empty Field and Bad File

2011-05-11 Thread eugenebalt
Since no one's replied, I guess there's no way to distinguish. Empty file box and invalid file are one and the same, and Wicket doesn't expose that granularity. I tried attaching a validator to the file box for an "invalid file" check and also did setRequired(true) to check for blanks, and the va

Re: WebMarkupContainer and replaceWith

2011-05-11 Thread Igor Vaynberg
panel tags in panel's parent markup cannot have any child wicket tags since that markup is replaced with the contents of the panel. -igor On Wed, May 11, 2011 at 11:26 AM, Anna Simbirtsev wrote: > Hi, > > I am trying to replace WebMarkupContainer with Panel, but get the > following error: > org

Re: Nothing happens on AJAX call after session timeout

2011-05-11 Thread Gabriel Landon
Maybe you could try this to get the header : http://download.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#getHeader%28java.lang.String%29 And this for filter : http://www.oracle.com/technetwork/java/filters-137243.html -- View this message in context: http://apache-wicket.1

WebMarkupContainer and replaceWith

2011-05-11 Thread Anna Simbirtsev
Hi, I am trying to replace WebMarkupContainer with Panel, but get the following error: org.apache.wicket.markup.MarkupException: close tag not found for tag: . The container has other elements attached to it. Is there any way to get it working or I can only replace panel with panel? Thanks Anna

Re: ModalWindow with Panel - HeaderContributor in Panel not called

2011-05-11 Thread Igor Vaynberg
it is contributed, but wont be visible using view-source because it is added dynamically via ajax and is not in the original source of the page. -igor On Wed, May 11, 2011 at 6:02 AM, Marieke Vandamme wrote: > Hello, > > This is my situation: > Page >  |-> ModalWindow >           |-> Panel >    

Need to distinguish between FileUpload's Empty Field and Bad File

2011-05-11 Thread eugenebalt
One final question on the FileUpload. I need to differentiate between 2 kinds of errors (I display a different message for each), 1) The FileUpload box is empty (i.e., nothing was typed in, and the Browse button wasn't clicked), 2) The file does not exist (a filename was typed in, but that file d

Re: FileUploadField.getClientFileName() doesn't give Absolute Path

2011-05-11 Thread eugenebalt
Yes, I understand now. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUploadField-getClientFileName-doesn-t-give-Absolute-Path-tp3514910p3515021.html Sent from the Users forum mailing list archive at Nabble.com. ---

Re: FileUploadField.getClientFileName() doesn't give Absolute Path

2011-05-11 Thread Martin Grigorov
Your app runs at the server. The file is uploaded from the client machine. How the full *client* path will be useful at the server ? On Wed, May 11, 2011 at 4:39 PM, eugenebalt wrote: > Another issue with the FileUpload, > > When I try to retrieve the specified filename with getClientFileName(),

Re: FileUploadField.getClientFileName() doesn't give Absolute Path

2011-05-11 Thread eugenebalt
Thanks. That's what I'm doing. BTW, found this thread that explains why you can't get the full path: http://apache-wicket.1842946.n4.nabble.com/Where-is-the-full-client-filename-during-FileUpload-td1876600.html It's a security issue, if you could get the full path then you could have access to ot

Re: FileUploadField.getClientFileName() doesn't give Absolute Path

2011-05-11 Thread Andrea Del Bene
Keep in mind that with Wicket you are on the server side and on this side the file you are uploading simply doesn't exist on file system (so there's no absolute path). With class FileUpload you can copy this file on your server (with method writeTo(java.io.File file) ) OR you can simply read fil

Re: FileUploadField.getClientFileName() doesn't give Absolute Path

2011-05-11 Thread Andrea Del Bene
Keep in mind that with Wicket you are on the server side and on this side the file you are uploading simply doesn't exist on file system (so ther's no absolute path). With class FileUpload you can copy this file on your server (with method writeTo(java.io.File file) ) OR you can simply read file

Re: FileUploadField.getClientFileName() doesn't give Absolute Path

2011-05-11 Thread Duy Do Quoc
You can use getInputStream() of FileUpload Duy On 5/11/11 6:39 PM, eugenebalt wrote: Another issue with the FileUpload, When I try to retrieve the specified filename with getClientFileName(), I only get the name of the file, without the absolute path. So I can't construct a java.io.File obje

FileUploadField.getClientFileName() doesn't give Absolute Path

2011-05-11 Thread eugenebalt
Another issue with the FileUpload, When I try to retrieve the specified filename with getClientFileName(), I only get the name of the file, without the absolute path. So I can't construct a java.io.File object with just the filename. How do I get the full path? In the example at http://www.wicket

Re: FileUploadField Losing Value After Form Submit

2011-05-11 Thread eugenebalt
Thanks for the reply. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FileUploadField-Losing-Value-After-Form-Submit-tp3514801p3514900.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: FileUploadField Losing Value After Form Submit

2011-05-11 Thread Andrea Del Bene
FileUploadField resets model at end of the request (see JavaDoc). You can use a Label or a DownloadLink to display/download the uploaded file. I've noticed that all the fields keep their values after you submit; the DropDowns, for example, don't get erased. But the FileUploadField does get era

FileUploadField Losing Value After Form Submit

2011-05-11 Thread eugenebalt
I've noticed that all the fields keep their values after you submit; the DropDowns, for example, don't get erased. But the FileUploadField does get erased after you submit. The File textbox (input type="file") is empty on each reload. Is this some kind of limitation, or is there a way around it?

ModalWindow with Panel - HeaderContributor in Panel not called

2011-05-11 Thread Marieke Vandamme
Hello, This is my situation: Page |-> ModalWindow |-> Panel |-> HomeMadeReusableComponent |-> HeaderContributor In this HeaderContributor I override renderHead(IHeaderResponse response). I thought that everything I wrote to the r

[announce] Wicket 1.5-RC4.2 is released

2011-05-11 Thread Martin Grigorov
The Wicket Team is proud to introduce the fourth Release Candidate in Wicket 1.5 series. It includes bug fixes and improvements reported against 1.5-RC3. See the changelog for full list. More detailed migration notes are available on our [Migrate to 1.5 Wiki Page](https://cwiki.apache.org/WICKET/m

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Clint Checketts
Try a HybridUrlEncodingStrategy for your mount On Wednesday, May 11, 2011, Carlo Camerino wrote: > Hi There, > > I'm mounting bookmarkable pages in the Wicket Application. For example, > > mount("index", IndexPage.class); > mount("confirmPage", ConfirmPage.class); > > I'm quite successful when us

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Andrea Del Bene
Sorry, I've misread mail subject :) There is no error. Just the generated url contains a state (wicket:interface=.) which means "use this page instance when the user tries to open this Url". Using setResponsePage(Class) has no state and creates a Url which when targeted will create a *new* pa

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Martin Grigorov
There is no error. Just the generated url contains a state (wicket:interface=.) which means "use this page instance when the user tries to open this Url". Using setResponsePage(Class) has no state and creates a Url which when targeted will create a *new* page instance. On Wed, May 11, 2011 at

Re: Questions Regarding Wicket URL Generation

2011-05-11 Thread Andrea Del Bene
Hi Carlo, what kind of error/exception do you get when you use "setResponsePage(new ConfirmPage())"? Does it work if you use "setResponsePage( ConfirmPage.class);" Hi There, I'm mounting bookmarkable pages in the Wicket Application. For example, mount("index", IndexPage.class); mount("conf

Questions Regarding Wicket URL Generation

2011-05-11 Thread Carlo Camerino
Hi There, I'm mounting bookmarkable pages in the Wicket Application. For example, mount("index", IndexPage.class); mount("confirmPage", ConfirmPage.class); I'm quite successful when using the following code setResponsePage(IndexPage.class); http://localhost:8080/application/index However, whe

Re: Selenium Problem

2011-05-11 Thread rawe
Thank you for your hint! It's working if I explecitly set the ID to DropDownChoice component foo.setMarkupId("fooId"); Thanks! Ralph -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Selenium-Problem-tp3514063p3514214.html Sent from the Users forum mailing list archiv

Re: disabled chek box form submit

2011-05-11 Thread Andrea Del Bene
Hi, disabled input components are not submitted by HTML forms. You can try to hack this standard behavior with some JavaScript: http://stackoverflow.com/questions/849693/what-is-the-best-way-to-submit-disabled-inputs-as-part-of-a-jquery-ajax-request can the disbaled checked check boxes be s

Re: Nothing happens on AJAX call after session timeout

2011-05-11 Thread vov
Sorry for my may be stupid question but - how can I print the header? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Nothing-happens-on-AJAX-call-after-session-timeout-tp3483872p3514154.html Sent from the Users forum mailing list archive at Nabble.com. -

Re: Selenium Problem

2011-05-11 Thread Martin Grigorov
The id is automatically generated by Wicket. Either stick to @wicketpath for all selectors or user setMarkupId("somethingStable") On Wed, May 11, 2011 at 9:39 AM, rawe wrote: > I'm trying to do functional tests using Selenium IDE. > > I did > getDebugSettings().setOutputComponentPath(true); > > t

Selenium Problem

2011-05-11 Thread rawe
I'm trying to do functional tests using Selenium IDE. I did getDebugSettings().setOutputComponentPath(true); to solve the problem with dynamic ids. see also: http://www.inforw.de/content/doku.php/blog/300 It works for most actions in my application, but after recording the usage of DropDownCh

Re: Nothing happens on AJAX call after session timeout

2011-05-11 Thread Martin Grigorov
print the headers and look for 'Wicket-Ajax' If there is such then create a XML like: [HERE THE URL YOU WANT TO REDIRECT TO] and write this to the servlet response On Wed, May 11, 2011 at 8:38 AM, vov wrote: > Can anyone give an example? > > -- > View this message in context: > http://apache-wic