AbstractDefaultAjaxBehavior - getCallBackUrl

2010-04-21 Thread Arie Fishler
Hello, I am extending AbstractDefaultAjaxBehavior and using getCallBackUrl to place the ajax call in a JS function. This works fine. The only problem I have is that the getCallBackUrl does not seem to take into account the container's (tomcat) behavior of adding the JSESSIONID within the URL in

Re: What can I do to speed up wicket initialization?

2010-04-21 Thread Jeremy Thomerson
On Mon, Apr 19, 2010 at 5:32 PM, Zilvinas Vilutis cika...@gmail.com wrote: Spring / hibernate usually loads *before* seeing the message Started Wicket in deployment mode. Yes - this is what takes a long time - Spring / Hibernate. The Started Wicket in deployment mode comes from when Wicket

Re: OnChangeAjaxBehavior and other form components

2010-04-21 Thread Martin Grigorov
In the same context: is it possible to remove final from org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.getEventHandler() I need to tweak the callback url. On Tue, 2010-04-20 at 15:25 -0700, Igor Vaynberg wrote: user AjaxFormComponentUpdatingBehavior -igor On Tue, Apr 20,

Re: Image Upload Using TinyMCE Within Wicket Framework

2010-04-21 Thread Johan Haleby
That would be really helpful. I'm struggling to get your example to work. -- View this message in context: http://n4.nabble.com/Image-Upload-Using-TinyMCE-Within-Wicket-Framework-tp1844756p2018575.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: AbstractDefaultAjaxBehavior - getCallBackUrl

2010-04-21 Thread Arie Fishler
I don't get the difference - Wicket's ajax calls work just fine - they are all on the page with the wicketAjaxGet() function - the first parameter which is the URL has the jsessionid when I generate my JS function which is only used to call the ajax * function* myFunction(){ *var*

RE: Wicket DatePicker memory leak during ajax rerender?

2010-04-21 Thread Jomar Lorentzen
Bumping this. Have anybody experienced memory leaks on the client when rerendering datepickers using wickets AjaxRequestTarget#addComponent()? -Original Message- From: Jomar Lorentzen [mailto:jomar.lorent...@statnett.no] Sent: 25. mars 2010 08:20 To: users@wicket.apache.org Subject:

No Redirect to login page

2010-04-21 Thread Kruff
Hi to all, i am in my second try with swarm to get an secure web application. After the first example which works fine i started my real application. I use to have a none secure start page (extends WebPage) which links to some SecureWebPage. But when i click on the Link to get to the

Strange error

2010-04-21 Thread Objelean Alex
Hi! My application uses wicket-1.4.7. I've noticed recently in logs the following error: 2010-04-21 07:35:18,744 ERROR [org.apache.wicket.request.target.resource.SharedResourceRequestTarget] unable to lazily register shared resource

an interface for page ?

2010-04-21 Thread Joseph Pachod
hi I need to create some page factory where some page should extend some specific interface. Ideally, I would like to be able to request for ? extends MyInterface with MyInterface implementing the page interface however, currently, Page is a class. Would it be thinkable (for example for

meaning of stricken item in Wicket 1.5 Wish List on the wiki ?

2010-04-21 Thread Joseph Pachod
hi Could someone enlighten me with the meaning of stricken items in the Wicket 1.5 Wish List of the wiki (https://cwiki.apache.org/WICKET/wicket-15-wish-list.html ) ? thanks in advance best regards -- Joseph Pachod IT THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761

Re: an interface for page ?

2010-04-21 Thread Martin Grigorov
It is already: public abstract class Page extends MarkupContainer implements IRedirectListener, IManageablePage, IRequestablePage Component# public final void setResponsePage(final Page page) {

Re: meaning of stricken item in Wicket 1.5 Wish List on the wiki ?

2010-04-21 Thread Martin Grigorov
Some of them are already implemented, other have a comment below forwarding to a solution provided somewhere else (e.g. ImageBundle) On Wed, 2010-04-21 at 14:52 +0200, Joseph Pachod wrote: hi Could someone enlighten me with the meaning of stricken items in the Wicket 1.5 Wish List of the

Re: OnChangeAjaxBehavior and other form components

2010-04-21 Thread Steven Haines
Hi Igor, I looked at the JavaScript that is generated when adding an AjaxFormComponentUpdatingBehavior and it does not include any form fields other than the component to which it is added: onChange=if(this.value.length gt;= 5){var

Re: Example for presenting pdf in modal window

2010-04-21 Thread nmetzger
Hi Ernesto, I tried using your code, but unfortunately I run into a NullPointerException when trying to load the pdf file. I placed the test.pfd file in the same directory as the MyPdfResource.java, but obviously the system can't find it. Any idea what I might have overlooked? ERROR -

Re: Example for presenting pdf in modal window

2010-04-21 Thread Ernesto Reinaldo Barreiro
Hi Natalie, On your e-mail test.pfd which is not exactly the same as test.pdf? Maybe that's what is happening? I wrote this longtime ago... So, I will recreate the example on my local machine and see if it still works. Best, Ernesto On Wed, Apr 21, 2010 at 3:17 PM, nmetzger nmetz...@odu.edu

Re: Example for presenting pdf in modal window

2010-04-21 Thread Ernesto Reinaldo Barreiro
Hi Natalie, I have recreated the example and it works as expected (tested on FF, IE). So it must be some detail you are missing. Best, Ernesto On Wed, Apr 21, 2010 at 3:37 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Natalie, On your e-mail test.pfd which is not exactly the

Re: Example for presenting pdf in modal window

2010-04-21 Thread nmetzger
Ernesto, I checked, but this was only a typo in my post, the file is called test.pdf. And fyi, I'm using wicket 1.4.6. My use case is this: I would like to have help pages displayed in my system that other people besides me edit. So I'd like to put them in a directory outside of my application

Re: Example for presenting pdf in modal window

2010-04-21 Thread Ernesto Reinaldo Barreiro
Natalie, As far as I can see you can use the same approach: the only thing that is different is the you will load the resource from somewhere else not from the class path. Do you want me to mail you the test pages (along with the wiki files) I just made to test it? Best Ernesto On Wed, Apr 21,

RE: Example for presenting pdf in modal window

2010-04-21 Thread nmetzger
Hi Ernesto, yes, please email those. And I tried putting in a complete path to a pdf file, but I'm getting the same error. Thanks for your help, Natalie From: reiern70 [via Apache Wicket] [mailto:ml-node+2019010-1360852028-229...@n4.nabble.com] Sent: Wednesday, April 21, 2010 10:10 AM To:

Re: Example for presenting pdf in modal window

2010-04-21 Thread Ernesto Reinaldo Barreiro
Natalie, Done: I have mailed them to your private mail address as the list does not accepts attachments. Best, Ernesto On Wed, Apr 21, 2010 at 4:16 PM, nmetzger nmetz...@odu.edu wrote: Hi Ernesto, yes, please email those. And I tried putting in a complete path to a pdf file, but I'm

Re: Example for presenting pdf in modal window

2010-04-21 Thread Ernesto Reinaldo Barreiro
Just one idea: check that your IDE is not filtering *.pdf files with the side effect that the file is not available as a resource. Ernesto On Wed, Apr 21, 2010 at 4:19 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Natalie, Done: I have mailed them to your private mail address as the

Re: an interface for page ?

2010-04-21 Thread Joseph Pachod
Martin Grigorov wrote: It is already: (..) thanks for this info :) is there any known estimation of wicket 1.5 release date ? ++ joseph - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

BoundCompoundPropertyModel

2010-04-21 Thread Ted Roeloffzen
Hi All, Can anyone tell me the exact differences between a CompoundPropertyModel and a BoundCompoundPropertyModel? In an app i'm working on i'm getting a strange bug. When I update a compnent via ajax the value of that component is not set in the entity. thanks

Re: BoundCompoundPropertyModel

2010-04-21 Thread Igor Vaynberg
javadoc of bound: /** * A compound property model that supports type conversions and property expression bindings. * * @author Jonathan Locke * * @param T *The model object * * @deprecated See {...@link CompoundPropertyModel#bind(String)} */ -igor On Wed, Apr 21, 2010 at

Re: OnChangeAjaxBehavior and other form components

2010-04-21 Thread Igor Vaynberg
there is ajaxformsubmitbehavior if you want all the fields updated -igor On Wed, Apr 21, 2010 at 6:10 AM, Steven Haines lyg...@yahoo.com wrote: Hi Igor, I looked at the JavaScript that is generated when adding an AjaxFormComponentUpdatingBehavior and it does not include any form fields

Which form componnent had focus when form was submitted?

2010-04-21 Thread Warren Bell
Is there a way to figure out in a forms onSubmit which text field or button had focus when the form is submitted. I have done something in js to achieve this, but wanted to see if there was something already built in Wicket. I am limited to using form submit only no Ajax. Windows CE is having

Re: Which form componnent had focus when form was submitted?

2010-04-21 Thread Igor Vaynberg
you have to keep a HiddenField component and populate its value using javascript. -igor On Wed, Apr 21, 2010 at 9:41 AM, Warren Bell warr...@clarksnutrition.com wrote: Is there a way to figure out in a forms onSubmit which text field or button had focus when the form is submitted. I have done

Re: meaning of stricken item in Wicket 1.5 Wish List on the wiki ?

2010-04-21 Thread Martijn Dashorst
striken through means: 1) already happened 2) already happened elsewhere 3) never gonna happen Most items fall in categories 1 and 2 Martijn On Wed, Apr 21, 2010 at 2:52 PM, Joseph Pachod j...@thomas-daily.de wrote: hi Could someone enlighten me with the meaning of stricken items in the

Back-button friendly ajax wizard navigation

2010-04-21 Thread Brian Laframboise
I have a Page with a Wizard component. Currently using the next and previous buttons perform full-page (non-ajax) form submissions which has the necessary side-effect of being back-button friendly. I implemented an ajax version of the Wizard in order to get faster validations. That part works

Re: OnChangeAjaxBehavior and other form components

2010-04-21 Thread Steven Haines
Thanks Igor, the AjaxFormSubmitBehavior worked to give me access to all form fields. I have one additional problem: with the OnChangeAjaxBehavior implementation it used my Ajax call decorator correctly and sent me updates after the user typed the 5th character in the field, but with the

Re: Back-button friendly ajax wizard navigation

2010-04-21 Thread Edward Zarecor
Since you are changing the DOM dynamically using Ajax, the browser -- correctly I would say -- isn't considering this a page change, so the back button should take you back to the page prior to the wizard. The browser history will be immutable from JavaScript, so that's not an option. To achieve

Re: BoundCompoundPropertyModel

2010-04-21 Thread Ted Roeloffzen
But how does that relate to the bug i'm having? Will the model lose the binding when an ajax-call updates the component? Ted 2010/4/21 Igor Vaynberg igor.vaynb...@gmail.com javadoc of bound: /** * A compound property model that supports type conversions and property expression bindings.

Re: OnChangeAjaxBehavior and other form components

2010-04-21 Thread Steven Haines
I finally got everything working... Here is what I did for anyone that comes across this problem.. I added an onComponentRendered() method to my AjaxFormSubmitBehavior in that method I added the new Wicket.ChangeHandler (I saw the code in the OnChangeAjaxBehavior class): @Override

Re: Which form componnent had focus when form was submitted?

2010-04-21 Thread Warren Bell
Thats what I am currently doing. It just felt to much like something I used to do in Struts. I don't know if there is much call for this, but it would be nice to have an onSubmit for a text field or other form components that would get fired off if that component was in focus when the form was

Simple TextField Override and A SubmitLink Question

2010-04-21 Thread Brian Mulholland
I am a Wicket n00b. Just learning and writing a demo app to evaluate Wicket vs a few other MVC solutions which are having demos written by other developers in the group. I am having two issues. Issue 1 involves me trying to write a custom TextField to demo the idea of overriding a control and

CSS not loading on WebMarkupContainer refresh

2010-04-21 Thread taygolf
Hey guys. I have a page that contains 4 panels. In one of these panels I have a listview that is inside a WebMarkupContainer. The user click on an ajax link which opens up a modal. The user fills out the form and clicks submit. On submit the new information is added to the list view and the

Ajax call gives up

2010-04-21 Thread Martin Grigorov
Hi, I'm facing a nasty problem in my app. Submitting a form with Ajax (wicketSubmitFormById) makes the Ajax call back to the backend and after that immediately closes the connection for some unknown reason. The backend successfully process the request but at the end fails with Broken pipe.

Re: Which form componnent had focus when form was submitted?

2010-04-21 Thread Igor Vaynberg
you can create a subclass of hiddenfield that would add the necessary javascript for you and you will end up with a nice reusable component. -igor On Wed, Apr 21, 2010 at 11:43 AM, Warren Bell warr...@clarksnutrition.com wrote: Thats what I am currently doing. It just felt to much like

Re: Back-button friendly ajax wizard navigation

2010-04-21 Thread Brian Laframboise
Thanks Edward. I was hoping for some means of doing this in a redirect-after-post kind of way so that the javascript response to the client actually caused the browser to request the next wizard page via a new url, creating a back-button history entry. I guess generating that URL for a

Strip header contributors from Ajax response.

2010-04-21 Thread Apple Grew
I have a component which contributes Js headers. This component is also rendered by AjaxRequestTarget. The problem is that when rendering ajax response the Js codes too are getting rendered. These Js codes were already contributed when this component first rendered (in non-Ajax mode). To fix this

Re: CSS not loading on WebMarkupContainer refresh

2010-04-21 Thread Ernesto Reinaldo Barreiro
Hi T, Can you show the code you use to add the additional css file? Ernesto On Wed, Apr 21, 2010 at 10:52 PM, taygolf taylor.a.yo...@gmail.com wrote: Hey guys. I have a page that contains 4 panels. In one of these panels I have a listview that is inside a WebMarkupContainer. The user