Problems with wicket-select2 and session timeout

2014-04-02 Thread Tom Götz
Hello everyone, I already posted this on https://github.com/ivaynberg/wicket-select2/issues/83 but thought I could mention it here also, as I’m not sure yet if the described problem is related to wicket-select2 or Wicket itself: if my current session is already expired and I click a

Re: http://wicketinaction.com/ not reachable

2014-04-02 Thread Bert
Thanks Martijn for restoring it. There is a lot of valuable information in there. On 30 March 2014 18:31, Martijn Dashorst martijn.dasho...@gmail.com wrote: I've put most of the content online again using jekyll and a static site. It is served from the github pages feature and blazingly fast

Re: Exception thrown when refreshing the page.

2014-04-02 Thread Sven Meier
fragment.add(new Label(firstName.getId() + .feedback) What do you actually want to display with this label? This way it will look for the property firstname.feedback in a parental CompoundPropertyModel. Sven On 04/02/2014 06:55 AM, chathuraka.waas wrote: Hi, i have a form which as few

Re: Problems with wicket-select2 and session timeout

2014-04-02 Thread Ernesto Reinaldo Barreiro
Hi, As far as I can see select2 it seems to use jQuery ajax. 1- https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/res/select2.js#L358 So, there is no wicket client side processing of the response. So, what you see is correct. On

Re: Exception thrown when refreshing the page.

2014-04-02 Thread chathuraka.waas
Hi, i got it fixed by using the following code. fragment.add(new FormComponentFeedbackLabel(firstName.feedback, firstName)); but now when i refresh the page instead of clearing the text field values they are retained. and any error message i've appended is also retained. how can i fix this

Re: Problems with wicket-select2 and session timeout

2014-04-02 Thread Ernesto Reinaldo Barreiro
I think I'm also having this problem... Locking at the code of https://github.com/ivaynberg/wicket-select2/blob/master/wicket-select2/src/main/java/com/vaynberg/wicket/select2/res/select2.js#L1312 I do not see an option to do something different as callback of $.ajax... Unless we try to use

Re: Why resource bundles and how to use them ?

2014-04-02 Thread armandoxxx
Hey.. thank you for your reply ... but I still don't get why create bundles if I still need to define my resources and dependencies in resources ... and to use them in a page I still have to use the resource instance instead of reference to bundle ... whats the point of it ... Regards

Re: Why resource bundles and how to use them ?

2014-04-02 Thread Andrea Del Bene
Could you post the code you are trying to use? This would help to understand your problem. Hey.. thank you for your reply ... but I still don't get why create bundles if I still need to define my resources and dependencies in resources ... and to use them in a page I still have to use the

Re: Why resource bundles and how to use them ?

2014-04-02 Thread Martin Grigorov
Hi, The idea is that Wicket will contribute the configured bundle every time a resource of that bundle is used. I.e. if you have a bundle.css combining a.css, b.css and c.css then when a component or behavior needs to use b.css Wicket will contribute bundle.css. In DEV mode you can contribute

Error handling in IResource implementations?

2014-04-02 Thread Stefan Renz
Hi, I'm currently at loss: what would be the correct way signalling that a IResource implementation encountered an error? Here's the case: I have a custom AbstractResource implementation that grabs an object from a WebService. Getting information about the object (metadata and ID) is one call,

Re: Error handling in IResource implementations?

2014-04-02 Thread Martin Grigorov
Hi, It is not mandatory to make the second call to the WS in #writeData(). You can make it earlier, as with the metadata. This way you can use response#setError() if needed. Martin Grigorov Wicket Training and Consulting On Wed, Apr 2, 2014 at 3:25 PM, Stefan Renz s.r...@efonds.com wrote:

Re: Wicket in Action outage: back online, better than ever!

2014-04-02 Thread Paul Bors
Hey Martijn, Is there going to be an updated release of Wicket in Action based on Wicket 6? Or has that effort been replaced by the Wicket Guide? ~ Thank you, Paul Bors On Mar 30, 2014, at 5:45 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: I just wanted to let everybody know that

Spring bean not injected into class extending WebApplication

2014-04-02 Thread Bruce Lombardi
I have an application that is integrated with Spring and a new requirement is forcing me to update user login status for all users on application restart. I want to do this using Springs JdbcOperations to do a simple execute of a sql statement since Spring and Spring JPA are used throughout

Re: Spring bean not injected into class extending WebApplication

2014-04-02 Thread Martin Grigorov
Hi, One way is to use SpringWebApplicationFactory, i.e. init-param applicationFactoryClassName. See its javadoc. It will allow you to use @SpringBean/Inject in YourApplication.java. Another way is something like:

RE: Spring bean not injected into class extending WebApplication

2014-04-02 Thread Bruce Lombardi
Thanks Martin. I tried the first approach and it worked fine! Bruce -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Wednesday, April 02, 2014 12:56 PM To: users@wicket.apache.org Subject: Re: Spring bean not injected into class extending

Re: Adding/Remiving Panels

2014-04-02 Thread David Beer
Hi I am able to remove the panel by accessing the top most component (form) and setting visible to false. This removes the panel from the page, however I am having difficulty adding the panel back to the page. I get and Ajax error saying component id can't be found. The source is availble here

Re: Adding/Remiving Panels

2014-04-02 Thread David Beer
Hi I have fixed the problem by adding setOutputMarkupPlaceholderTag(true); to the top component. Thanks David On 2 April 2014 18:55, David Beer david.m.b...@gmail.com wrote: Hi I am able to remove the panel by accessing the top most component (form) and setting visible to false. This

Re: Wicket in Action outage: back online, better than ever!

2014-04-02 Thread Martijn Dashorst
Also I was contemplating a 1 april joke about Wicket in Action 2nd edition, but thought that would be too cruel... Martijn On Wed, Apr 2, 2014 at 8:42 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: There may some day be an updated Wicket in Action book, but it probably won't be

Re: Wicket in Action outage: back online, better than ever!

2014-04-02 Thread Martijn Dashorst
There may some day be an updated Wicket in Action book, but it probably won't be written by me. As far as I know there is no such work currently under way, nor is there any planned for the near future. I am planning however to update the source code from the book (the project that currently

Re: ModalWindow and jQuery mousedown binding

2014-04-02 Thread neilbennett
Hello again. Thanks for your help, I've found what occurs. When removing onmousedown=Wicket.Event.stop(event); from the w_content_1 div, the event then propagates. However, the mouseDownHandler function is called in the Drag class in wicket-ajax-jquery.js this returns false which then stops

Re: Wicket in Action outage: back online, better than ever!

2014-04-02 Thread Paul Borș
Yes, it would have been cruel ;) Thanks for the insight. Have a great day, Paul Bors On Apr 2, 2014, at 2:43 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Also I was contemplating a 1 april joke about Wicket in Action 2nd edition, but thought that would be too cruel...

Availability of RequestParameters in WebSession

2014-04-02 Thread Maxim Solodovnik
Hello All, I'm trying to get RequestParameters in getRoles() method of WebSession extends AbstractAuthenticatedWebSession [1] the code is like this: IRequestParameters params = RequestCycle.get().getRequest().getRequestParameters(); StringValue secureHash = params.getParameterValue(secureHash);

Redirecting users to my new pages with a message.

2014-04-02 Thread chathuraka.waas
Hi, As a customer request my application domain is changing. and i need to show a popup message box saying that you are being redirected to the new site since some users can bookmark the older url. The application support team has configured both old and new urls to be pointed to the same

Re: Redirecting users to my new pages with a message.

2014-04-02 Thread Ernesto Reinaldo Barreiro
There is a RedirectPage that maybe you can use as example (because it will no longer be present at Wicket 7). On Thu, Apr 3, 2014 at 6:32 AM, chathuraka.waas chathuraka.w...@gmail.comwrote: Hi, As a customer request my application domain is changing. and i need to show a popup message box

Re: Redirecting users to my new pages with a message.

2014-04-02 Thread chathuraka.waas
Hi, Thanks for the reply. I read the api documentation on RedirectPage. my question is how can i intercept the request which was sent from the old url. as an example my old url for login is : http://abc.com/login my new url is: http://def.com/login if both abc.com and def.com are