Re: How does Wicket know when to make a new session?

2014-03-04 Thread Martin Grigorov
Hi, Wicket is based on JavaEE Servlet technology. As any other servlet the http session is managed by associating an id to every user agent (client). The id is stored either in a cookie with name JSESSIONID or is encoded in the url (something like: some/path;jsessionid=123456). Each web container

Re: Best practices with subclassing and subpackaging

2014-03-04 Thread Martin Grigorov
Hi, If a markup container (like a page, a panel, a border, ...) has no its own markup file then the markup is looked up by using its parent. It is possible to have many child pages in their own packages and few markup files next to the parent's page. See

Re: Detecting if page is opened in another tab

2014-03-04 Thread Martin Grigorov
Hi, This behavior works only when you open the same page instance in another tab/window. I.e. only when the url contains the same mount path and page id Martin Grigorov Wicket Training and Consulting On Thu, Feb 27, 2014 at 7:21 PM, eaglei22 jchojnack...@gmail.com wrote: Thanks Martin,

Handling with Feedback Messages / setMaxMessages(1)-Problem / best practise

2014-03-04 Thread Patrick Davids
Hi all, I would like to have a FeedbackPanel always showing only one error message. As seen in FeedbackPanel code setMaxMessages() does this. But it seems it does not clear the rest of messages after doing its job. When I have put 3 error messages on a page, only the first one is shown. This is

Re: How to set meta tags prroperty for facebook and Open Graph?

2014-03-04 Thread Andrea Del Bene
Hi, use a custom StringHeaderItem and add it into renderHead. I recently implemented such a header item that can be useful for this purpose: public class MetaTagHeaderItem extends StringHeaderItem { public MetaTagHeaderItem(CharSequence string) { super(string); } public

Re: How to set meta tags prroperty for facebook and Open Graph?

2014-03-04 Thread Martin Grigorov
Normal Panel would do it too. Someone else recently asked for OpenGraph/Facebook meta headers recently in this mailing lists. Check the archives. On Tue, Mar 4, 2014 at 3:34 PM, Andrea Del Bene an.delb...@gmail.comwrote: Hi, use a custom StringHeaderItem and add it into renderHead. I

RE: How to set meta tags prroperty for facebook and Open Graph?

2014-03-04 Thread Stijn de Witt
Sorry, I am newbe but not so stupid! Sorry here, I never tried to imply that. -Stijn -Original Message- From: - [mailto:irresistible...@gmail.com] Sent: dinsdag 4 maart 2014 1:19 To: users@wicket.apache.org Subject: Re: How to set meta tags prroperty for facebook and Open Graph? On

Re: Handling with Feedback Messages / setMaxMessages(1)-Problem / best practise

2014-03-04 Thread francois meillet
Session.get().getFeedbackMessages().clear(); François On Tue, Mar 4, 2014 at 10:07 AM, Patrick Davids patrick.dav...@nubologic.com wrote: Hi all, I would like to have a FeedbackPanel always showing only one error message. As seen in FeedbackPanel code setMaxMessages() does this. But it

RE: Show textfield as plaintext when disabled?

2014-03-04 Thread Entropy
What a great bunch of ideas. I'll be implementing at least one of them. Thanks for all your ideas. Does anyone have similar techniques for dropdowns? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Show-textfield-as-plaintext-when-disabled-tp4664723p4664771.html

Re: Show textfield as plaintext when disabled?

2014-03-04 Thread Peter Henderson
Hi guys, On 4 March 2014 18:39, Entropy blmulholl...@gmail.com wrote: What a great bunch of ideas. I'll be implementing at least one of them. Thanks for all your ideas. Does anyone have similar techniques for dropdowns? -- View this message in context:

Problems with Page Expiration

2014-03-04 Thread Brad Grier
When setRecreateMountedPagesAfterExpiry is true in our app, redirecting to a custom timeout page either through setPageExpiredErrorPage or via catching a PageExpiredException isn't working (the exception never makes it to onException in IRequestCycleListener). When set to false, the redirect

css and js files in subproject

2014-03-04 Thread infiniter
hi, I got a Wicket application set up with Maven. It has a sub project (jar type) with all the assets. How can I load them in my application? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/css-and-js-files-in-subproject-tp4664775.html Sent from the Users forum

Re: How to set meta tags prroperty for facebook and Open Graph?

2014-03-04 Thread -
On Tuesday 04 March 2014 15:37:25 Martin Grigorov wrote: Normal Panel would do it too. Someone else recently asked for OpenGraph/Facebook meta headers recently in this mailing lists. Check the archives. I found this 3D: Dynamic Headers for Open Graph tags in E-Com site I put this in my html

Confirm Navigation pop up dialog box

2014-03-04 Thread msalman
I have a page where I switch between panels by making one of them visible and using a radio button as following: radioChoice.add(new AjaxFormChoiceComponentUpdatingBehavior() { /** * */

Re: How to set meta tags prroperty for facebook and Open Graph?

2014-03-04 Thread Martin Grigorov
Hi, On Wed, Mar 5, 2014 at 4:15 AM, - irresistible...@gmail.com wrote: On Tuesday 04 March 2014 15:37:25 Martin Grigorov wrote: Normal Panel would do it too. Someone else recently asked for OpenGraph/Facebook meta headers recently in this mailing lists. Check the archives. I found

Re: Problems with Page Expiration

2014-03-04 Thread Martin Grigorov
Hi, On Tue, Mar 4, 2014 at 11:32 PM, Brad Grier brad.gr...@salusnovus.comwrote: When setRecreateMountedPagesAfterExpiry is true in our app, redirecting to a custom timeout page either through setPageExpiredErrorPage or via catching a PageExpiredException isn't working (the exception never

Re: css and js files in subproject

2014-03-04 Thread Martin Grigorov
Hi, Load them as if they were in the same project. PackageResourceReference loads the assets from the classpath so it doesn't matter in which .jar they are. Martin Grigorov Wicket Training and Consulting On Wed, Mar 5, 2014 at 1:23 AM, infiniter infini...@gmail.com wrote: hi, I got a Wicket

Re: Confirm Navigation pop up dialog box

2014-03-04 Thread Martin Grigorov
Hi, If you add the page instance to the AjaxRequestTarget then Wicket makes a http redirect to repaint the whole page. You should add only inner components to the target to keep the processing completely Ajax. Since you hide components with .setVisible(false) and later you try to make them

Re: Ajax Update failing because of model

2014-03-04 Thread Matthew Pennington
On 03/03/2014 19:48, Sven Meier wrote: I can't think of a reason for this. A quickstart would help to identify the problem. Cheers - attempting to produce a quickstart I managed to identify much better what was actually happening and as you might expect it's not really a wicket problem at