Re: View page not updating after Edit page makes changes

2014-03-03 Thread jchappelle
I tried using your code with wicket 6 and it wasn't working so I'm guessing you are using something earlier than wicket 6. ByteImageResource could not be resolved. I did make a change to the Article class and the TestView class that seemed to make it work. I changed Article to have a url String i

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

2014-03-03 Thread Shengche Hsiao
Hello Check official user guide page 121! http://wicket.apache.org/guide/guide/single.pdf On Tue, Mar 4, 2014 at 8:19 AM, - wrote: > On Monday 03 March 2014 10:05:55 Stijn de Witt wrote: > > Have a look at the .html file corresponding to your Page class. You > should be able to just add it th

How does Wicket know when to make a new session?

2014-03-03 Thread eaglei22
My company uses a webgate to verify the user before redirecting to the application. Wicket works fine outside of this webgate and retains one user session for each tab opened in the browser or new browser window. But when accessed through this webgate, wicket creates a new session and expires the o

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

2014-03-03 Thread -
On Monday 03 March 2014 10:05:55 Stijn de Witt wrote: > Have a look at the .html file corresponding to your Page class. You should be > able to just add it there. Sorry, I am newbe but not so stupid! I did it, my html file already have meta tags for facebook, but i want change content in the cor

Best practices with subclassing and subpackaging

2014-03-03 Thread Alberto Brosich
Hi, I have an application with several pages, mounted in webapplication, that do not have markup file associated. The markup file is selected using variations in the parent class. I would like to split pages in subpackages but if I move the markup file (ParentPageClass_variation.html) in the subp

Re: View page not updating after Edit page makes changes

2014-03-03 Thread lytrean
Article class: http://pastebin.com/pNy8FUJQ Article instantiation in WebApplication constructor: http://pastebin.com/j92mF3Fs ByteImageResource class: http://pastebin.com/G4rC3DgG -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/View-page-not-updating-after-Edit-page-m

Re: Does wicket:link tag work inside pages in different packages?

2014-03-03 Thread Alberto Brosich
Yes, you are right. I will do in that way. The fact is I have a similar problem with some menu panels with several links. I just wanted to do the easiest thing. Now I have another problem with subclasses and subpackages but I will send a new mail to the list with another topic. Many thanks Albe

Re: View page not updating after Edit page makes changes

2014-03-03 Thread jchappelle
I took your code and I could reproduce it but then I realized that my Article.getArticles() method was returning a new ArrayList every time it was called. I changed it to be static and it fixed it. I did omit the article.getSmallThumbImageResource() method though. Can you post the code for your Ar

Re: Ajax Update failing because of model

2014-03-03 Thread Sven Meier
I can't think of a reason for this. A quickstart would help to identify the problem. Regards Sven On 03/03/2014 07:51 PM, Hobbes00uk wrote: I have a text-field component that has an AjaxFormComponentUpdatingBehavior("onchange") behaviour attached. I've hived it off into a separate component as

Ajax Update failing because of model

2014-03-03 Thread Hobbes00uk
I have a text-field component that has an AjaxFormComponentUpdatingBehavior("onchange") behaviour attached. I've hived it off into a separate component as I'm reusing it in various places across my app. Everything works fine most of the time, but I've discovered that on a particular page it doesn'

Re: View page not updating after Edit page makes changes

2014-03-03 Thread lytrean
Thanks for your reply! This change got me part of the way there. The behavior is like this now: 1) Select second item from drop-down (edit fields auto-populate with correct data) 2) Edit description and submit 3) Display view in second tab -- view displays updated description correctly 4) Switch

Re: View page not updating after Edit page makes changes

2014-03-03 Thread jchappelle
On your View page your ListView should have a LoadableDetachableModel passed to it instead of the Article.getArticles() list. In fact you could use the same model that you have feeding your DropDownChoice in your edit page. Just refactor that model out into a separate class and use in both cases.

Re: Show textfield as plaintext when disabled?

2014-03-03 Thread Chris Snyder
One potential issue: Depending on where you're using the technique, it could lead to problems. For instance, if you are implementing in-place-edit functionality on a public-facing page, having a lot of your content in tags could make the content invisible to search engines (I'm just guessing here

Re: Register Wicket Components @ Runtime

2014-03-03 Thread Decebal Suiu
Maybe wicket-plugin [1] help you. Best regards, Decebal [1] https://github.com/decebals/wicket-plugin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Register-Wicket-Components-Runtime-tp4664724p4664743.html Sent from the Users forum mailing list archive at Nabble.c

RE: Show textfield as plaintext when disabled?

2014-03-03 Thread Stijn de Witt
I wouldn't call it cludgy... 'pragmatic' is the word that comes to mind :) Big advantage of styling the input as regular text instead of completely replacing the HTML element is that all other behavior remains as expected. The field is still submitted with the form etc. -Stijn -Original

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

2014-03-03 Thread Stijn de Witt
Have a look at the .html file corresponding to your Page class. You should be able to just add it there. -Stijn -Original Message- From: - [mailto:irresistible...@gmail.com] Sent: zondag 2 maart 2014 16:01 To: users@wicket.apache.org Subject: How to set meta tags prroperty for facebook

RE: Show textfield as plaintext when disabled?

2014-03-03 Thread Stijn de Witt
It is fairly easy to style a textfield as plain text by disabling the border and giving it a transparent background color: input[readonly=readonly] { border: none; background: transparent; } -Stijn -Original Message- From: Entropy [mailto:blmulholl...@gmail.com] Sent: v