Re: wicketAjaxGet callback?

2009-10-21 Thread Vytautas Čivilis
Hi. I've read this, but it has the same hacky solution, just from different perspective. I.e., var tip=document.getElementById('mooTipContent').innerHTML; you still need to have some global variable to store result. In the end, you need to generate some unique identifier and store either callback

Re: AW: file download using ajaxLink

2009-10-21 Thread Ernesto Reinaldo Barreiro
Can you share your solution with the rest of us? I can imagine using a behavior for adding the resource listener part... but it will be nice to see what you are doing. Best, Ernesto On Wed, Oct 21, 2009 at 9:12 PM, Sven Meier wrote: > I've added an alternative solution with a behavior. > > Tha

Re: WebRequestCycle is creating a HTTP 400/Bad request

2009-10-21 Thread Clint Checketts
I've been hitting a similar bug with MixedParamUrlCodingStrategy and Stateless forms. I haven't had a chance to create a sample yet so I just changed encoding strategies for the time being. I believe your bug is similar to the one I''m hitting. I'm using Wicket version 1.3.7. I'll try to post a si

Re: Idiomatic way to reference shared images?

2009-10-21 Thread John Krasnay
On Wed, Oct 21, 2009 at 07:57:12PM +0200, Ceki Gulcu wrote: > Hello, > > I am trying to defined shared images in a Wicket application. > > In my prokect, the image file "help.gif" is located under the > src/main/java/com/foo/ folder of my project. I have created an empty > class called Images. > >

Re: Too Many Files Wicket 1.4.1

2009-10-21 Thread Igor Vaynberg
please file a jira so we can track this. -igor On Wed, Oct 21, 2009 at 3:47 PM, adambender wrote: > > Sorry to keep replying to myself but this fix does appear to work... It kept > my open file handles down to 5 or 6 for the duration of the load suite. > > public UrlResourceStream(final URL url)

Re: Too Many Files Wicket 1.4.1

2009-10-21 Thread adambender
Sorry to keep replying to myself but this fix does appear to work... It kept my open file handles down to 5 or 6 for the duration of the load suite. public UrlResourceStream(final URL url) { // Save URL this.url = url; URLConnection connecti

Re: Too Many Files Wicket 1.4.1

2009-10-21 Thread adambender
Is it possible to use this http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg20951.html workaround in the URLResourceStream constructor - similar to how it is done in URLResourceStream#lastModifiedTime()? adambender wrote: > > For what it is worth I saw a file being created i

Re: Wicket Eclipse plugin, is there another?

2009-10-21 Thread dtoffe
Hi, Being a Netbeans user myself I've tried the plug-in some time ago and even submitted a small patch to one of the examples included in the plugin. I don't remember the specific features now, but I've read in some Wicket Bench docs or article about features that the Netbeans plugin doesn't

Re: Wicket Eclipse plugin, is there another?

2009-10-21 Thread Pedro Santos
You can write one Enviado de meu iPhone Em 21/10/2009, às 18:10, Nicolas Melendez escreveu: I'm not very fan of netbeans :) Thanks, for answer. another sugggestion? On Wed, Oct 21, 2009 at 6:57 PM, Fernando Wermus wrote: I know, but I havent tested it, that netbeans comes with a plu

Re: Page instantiated twice

2009-10-21 Thread Esteban Masoero
Ok, I understand. In case I come up with a solution, I'll let you know to see what you think. In the meantime, I'll do some workaround considering your suggestion. Thanks! Esteban Igor Vaynberg escribió: we could not think of a different solution, maybe you can come up with one. we do not know

Re: Wicket Eclipse plugin, is there another?

2009-10-21 Thread Nicolas Melendez
I'm not very fan of netbeans :) Thanks, for answer. another sugggestion? On Wed, Oct 21, 2009 at 6:57 PM, Fernando Wermus wrote: > I know, but I havent tested it, that netbeans comes with a plug in for > wicket. > > On Wed, Oct 21, 2009 at 1:00 PM, Nicolas Melendez < > nmelen...@getsense.com

Re: how to update a form model when clicking a link

2009-10-21 Thread Antoine van Wel
Problem solved, no need to touch the action attribute, just put the call in "onsubmit" and leave the action untouched. Antoine On Wed, Oct 21, 2009 at 10:30 PM, Antoine van Wel wrote: > Thanks, it works! > > In my case submitting the form is not natural at all - the form submit > does a lot o

Re: Page instantiated twice

2009-10-21 Thread Igor Vaynberg
we could not think of a different solution, maybe you can come up with one. we do not know if the page is opened in a new tab until it is fully loaded and we can check via javascript the name of the window. to fix this you can try storing your messages in your own collection and somehow figuring o

Re: how to update a form model when clicking a link

2009-10-21 Thread Antoine van Wel
Thanks, it works! In my case submitting the form is not natural at all - the form submit does a lot of actions while all I want is the text that the user entered to show up in the next page. (The link that is being clicked is not directly related to the form.) Now I got a new question related to

Re: Too Many Files Wicket 1.4.1

2009-10-21 Thread adambender
For what it is worth I saw a file being created in the URLResourceStream constructor at line 88 but it doesn't look like this is the source of any problems, its just a way to figure out how to check the lastModified time later on. While I can't claim any kind of expertise on the inner workings o

Re: Page instantiated twice

2009-10-21 Thread Esteban Masoero
Any comments about this? could It be a bug? If there's no other way of achieving the multiwindow feature that doesn't include instanciating the page again, maybe something could be done to avoid that the first instance consumes the session messages, because as we see this first page instance is

Re: AW: file download using ajaxLink

2009-10-21 Thread Sven Meier
I've added an alternative solution with a behavior. Thanks for the original idea. Sven Giambalvo, Christian wrote: Updated http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendung

Re: Too Many Files Wicket 1.4.1

2009-10-21 Thread Igor Vaynberg
i just dont see what we can do about this... we are calling connection.getLastModified(), we are not creating a file, etc... -igor On Wed, Oct 21, 2009 at 10:18 AM, adambender wrote: > > This issue looks like it is directly related to > http://issues.apache.org/jira/browse/WICKET-438 and the acc

Idiomatic way to reference shared images?

2009-10-21 Thread Ceki Gulcu
Hello, I am trying to defined shared images in a Wicket application. In my prokect, the image file "help.gif" is located under the src/main/java/com/foo/ folder of my project. I have created an empty class called Images. package com.foo; public class Images { } In the init() method of my web-a

Re: WebRequestCycle is creating a HTTP 400/Bad request

2009-10-21 Thread Igor Vaynberg
so is it jetty/tomcat doing the conversion of relative url to absolute? because looks like they are doing it incorrectly... -igor On Wed, Oct 21, 2009 at 9:11 AM, Wayne Pope wrote: > Hi, > > firstly I'm sure this is something we are doing wrong here and is not > an issue with wicket however we'r

Re: Too Many Files Wicket 1.4.1

2009-10-21 Thread adambender
This issue looks like it is directly related to http://issues.apache.org/jira/browse/WICKET-438 and the access of the lastModified header. Every time a URLResourceStream is constructed the lastModified time is requested at line 85 and the number of file handles goes up by one. The solution to the

Re: Wicket Eclipse plugin, is there another?

2009-10-21 Thread Fernando Wermus
I know, but I havent tested it, that netbeans comes with a plug in for wicket. On Wed, Oct 21, 2009 at 1:00 PM, Nicolas Melendez wrote: > Hi, is there another wicket plugin for eclipse?Wicket Bench project seems > to > have low activity. > Any sugestion? > Thanks. > NM > -- Fernando Wermus.

Re: Too Many Files Wicket 1.4.1

2009-10-21 Thread Igor Vaynberg
where in wicket code do you see us doing new File(uri). afaik, we always use streams and dont try to convert to a file... -igor On Wed, Oct 21, 2009 at 8:57 AM, adambender wrote: > > I was able to distill the problem down to what I think is the core issue > here. > > When an AJAX Wicket page is

Re: wicketAjaxGet callback?

2009-10-21 Thread nino martinez wael
http://blog.jayway.com/2008/09/26/wicket-javascript-internals-dissected/ and also check the mootips on wicketstuff.. 2009/10/21 Vytautas Čivilis > Hi. > > Is there any way wicketAjaxGet can call the provided callback function > with parameters from the backend? > > Now, as far as I can see, the

Re: Too Many Files Wicket 1.4.1

2009-10-21 Thread adambender
I was able to distill the problem down to what I think is the core issue here. When an AJAX Wicket page is rendered it contains a reference to two .js files as Igor had mentioned, the Web URLs of these files look like this: /resources/org.apache.wicket.markup.html.WicketEventReference/wicket-ev

WebRequestCycle is creating a HTTP 400/Bad request

2009-10-21 Thread Wayne Pope
Hi, firstly I'm sure this is something we are doing wrong here and is not an issue with wicket however we're lost as to what to do to solve it. We have a page mounted like this: mount(new MixedParamUrlCodingStrategy("/cube/todos", WhichTaskPage.class,. We then request this page: http://locol

wicketAjaxGet callback?

2009-10-21 Thread Vytautas Čivilis
Hi. Is there any way wicketAjaxGet can call the provided callback function with parameters from the backend? Now, as far as I can see, there are only options to: 1. update component using AjaxRequestTarget 2. execute javascript using AjaxRequestTarget What I need is to call the particular functi

Wicket Eclipse plugin, is there another?

2009-10-21 Thread Nicolas Melendez
Hi, is there another wicket plugin for eclipse?Wicket Bench project seems to have low activity. Any sugestion? Thanks. NM

Re: Model property name different than wicket:id, is possible?

2009-10-21 Thread Manuel Corrales
Hey, thanks!! I solved the issue using Iain advice. Thanks for your help! Best regards. On Wed, Oct 21, 2009 at 9:15 AM, James Carman wrote: > Do you have to use CompoundPropertyModel? Why not use explicit models > instead? This is one reason why I don't like to use > CompoundPropertyModels. >

Re: Behind proxy

2009-10-21 Thread Anton Veretennikov
1. I checked it with Tomcat 5.5. Problem remained. All my bookmarkable links to Home page with parameters contained "jsessionid". 2. I got 1.5-SNAPSHOT, compiled, tried, problem remained. 3. I removed lines in WebResponse::encodeURL and ServletWebResponse::encodeURL with logic about "bug in apach

Re: Wicket, Tooltips and IE 8

2009-10-21 Thread Martin Grigorov
checkout wicketstuff-minis-prototip and upgrade the dependencies tune it, polish it and donate it back to community ;-) El mié, 21-10-2009 a las 15:03 +0100, Callum MacGregor escribió: > Hi there, > > I have a wicket application (using wicket 1.4.1) that uses tooltips and > have been using Proto

Re: Page instantiated twice

2009-10-21 Thread Esteban Masoero
That is correct. I'm openning the page in a new tab just because of the process registration I'm doing: - user registers - app sends him an email with a generated link - user clicks that link from his email page, which it's oppened in a new window/tab (there's no way It can be openned in its pre

Wicket, Tooltips and IE 8

2009-10-21 Thread Callum MacGregor
Hi there, I have a wicket application (using wicket 1.4.1) that uses tooltips and have been using Prototip up to this point. However I now find that with IE 8 they won't work, even in "IE7 compatibility mode". As most of the users run IE this is a major problem. I have tried switching to Mootips

Re: Behind proxy

2009-10-21 Thread nino martinez wael
Strange I have tomcat 5.5 here, it does not have that problem.. Could it be that it's tomcat related? 2009/10/21 Anton Veretennikov > Additional info to "jsessionid" problem: > > This is seen on Tomcat 6.0.18 WITHOUT any proxy on bookmarkable links. > Glassfish 2.1 seems not appending jsessionid

Re: How to throw new PageExpiredException?

2009-10-21 Thread Linda van der Pal
When I ran into this problem myself with 1.4-rc4, I remembered this message and upgraded to rc7. But I still get the Unexpected RuntimeException page instead of my custom SessionExpiredPage. Am I doing something wrong? Regards, Linda public class WicketApplication extends AuthenticatedWebAppl

Re: Behind proxy

2009-10-21 Thread Anton Veretennikov
Additional info to "jsessionid" problem: This is seen on Tomcat 6.0.18 WITHOUT any proxy on bookmarkable links. Glassfish 2.1 seems not appending jsessionid to url even on first call (I have default settings) so there is no such behaviour. -- Tony On Wed, Oct 21, 2009 at 6:20 PM, Anton Veretenni

Re: Secured/Constraint IDataProvider and DropDownChoice choices

2009-10-21 Thread James Carman
On Wed, Oct 21, 2009 at 8:22 AM, Roman Ilin wrote: > Two questions: > 1) why do you use thread local and don't store organization in session If you store it in your session, you have to mix your data access layer with your web layer. With thread-local variables, you don't (you just have to make

Re: how to update a form model when clicking a link

2009-10-21 Thread Pedro Santos
Or can I let clicking the link generate an event which then will be picked up by the component you can, but is an workaround: 1 - add AjaxFormComponentUpdatingBehavior on your textarea for 'metal' event 2 - add eval(Wicket.$('mytextareamarkupid').getAttribute('metal')) on 'onclick' event of your

Re: Secured/Constraint IDataProvider and DropDownChoice choices

2009-10-21 Thread Roman Ilin
Two questions: 1) why do you use thread local and don't store organization in session 2) to pass organization to your createCriteria() you have to have organization as parameter in every DAO method where it is appropriate, right? On Wed, Oct 21, 2009 at 2:17 PM, Martijn Dashorst wrote: > We use

Re: how to update a form model when clicking a link

2009-10-21 Thread Antoine van Wel
Thanks for the replies. Peter: that won't work - the contents of the textarea are not transferred to the wicket app without some javascript / ajax magic happening under the hood Pedro: Using that I could let the component listen to onchange event but that would cause an unacceptable load. I reall

Re: Secured/Constraint IDataProvider and DropDownChoice choices

2009-10-21 Thread Martijn Dashorst
We use a thread local to store the organization of our user, and have custom createCriteria() methods in our DAO's to add restrictions on the organization. Martijn On Tue, Oct 20, 2009 at 10:14 PM, Roman Ilin wrote: > Hi *, > > I develop WebApplication where database records belong to different

Re: Secured/Constraint IDataProvider and DropDownChoice choices

2009-10-21 Thread Roman Ilin
No I use plain Spring JDBC in one of my projects (there is old legacy DB) but probably I'm going to use Hibernate in next one. On Wed, Oct 21, 2009 at 2:13 PM, James Carman wrote: > Are you using Hibernate?  If so, you could use filters.  Also, Oracle > has something built in that will automati

Re: Model property name different than wicket:id, is possible?

2009-10-21 Thread James Carman
Do you have to use CompoundPropertyModel? Why not use explicit models instead? This is one reason why I don't like to use CompoundPropertyModels. On Tue, Oct 20, 2009 at 2:57 PM, Manuel Corrales wrote: > Hello. I have a (i hope) reusable panel. This panel has a textField, a > hiddenField and a

Re: Secured/Constraint IDataProvider and DropDownChoice choices

2009-10-21 Thread James Carman
Are you using Hibernate? If so, you could use filters. Also, Oracle has something built in that will automatically rewrite your queries for you based on the database user that's connected (most people don't use Oracle usernames to connect, though). On Wed, Oct 21, 2009 at 7:48 AM, Roman Ilin wr

Re: how to update a form model when clicking a link

2009-10-21 Thread Pedro Santos
you can add an AjaxFormComponentUpdatingBehavior on your textarea to keep the model updated On Wed, Oct 21, 2009 at 9:58 AM, Peter Arnulf Lustig wrote: > Have you tried assign a Model to the component which needs to be updated? > > Model model = new Model(""); > ---> assign to the component of th

AW: how to update a form model when clicking a link

2009-10-21 Thread Peter Arnulf Lustig
Have you tried assign a Model to the component which needs to be updated? Model model = new Model(""); ---> assign to the component of the form. i.e. final TextField tf = new TextField("txt", model); in Link Execution -> tf.setModel(mode); - Ursprüngliche Mail Von: Antoine van Wel An

Re: Secured/Constraint IDataProvider and DropDownChoice choices

2009-10-21 Thread Roman Ilin
Does someone have any fresh idea? On Tue, Oct 20, 2009 at 10:32 PM, Roman Ilin wrote: > My components should stay visible all time. But data should be > filtered by customer currently logged in. > > > > On Tue, Oct 20, 2009 at 10:29 PM, Pedro Santos wrote: >> I had application with components

AjaxEditableLabel and problem with diacritical marks

2009-10-21 Thread danisevsky
Hello, when I submit AjaxEditableLabel which contains a letter with diacritical mark (ěščřžýáíé..) I dont get right letter in model, but something like this '?'. All my markups contains this: ... Could you give me a advice? thanks

how to update a form model when clicking a link

2009-10-21 Thread Antoine van Wel
On a page there's a form with a textarea. Somewhere else on the page there is a wicket link, which is not inside the form. The user types something in the textarea and then presses the link. Now what I'd like to achieve is when the code of the link is executed, the model of the form is up-to-date

Re: Audit Trail For Fatal Error

2009-10-21 Thread Pedro H. O. dos Santos
Sorry, I meant set pagemape "on your" error analysis environment. If your pages are stateless, it is a trivial work. You can use java.io api Douglas Ferguson-2 wrote: > > What is "pagemape error analysis environment"? > > Or if you are just saying that this is possible, what api calls would

Re: Behind proxy

2009-10-21 Thread Anton Veretennikov
Thank you, Nino, I'll repeat then, The problem is that all Bookmarkable links continue to have ";jsessionid=..." string even after first call. The same time, Ajax links work (jsessionid is removed) as desired but only if they are not called after any bookmarkable link. Hope somebody have such

Re: Model property name different than wicket:id, is possible?

2009-10-21 Thread Iain Reddick
Hi, You use it like this: (assuming myModel is the compound property model) Label idLabel = new Label("idLabel", myModel.bind("id")); This would give component id "idLabel", using property "id". CompoundPropertyModel.bind() basically returns a PropertyModel. iainr Manuel Corrales wrote:

Re: Behind proxy

2009-10-21 Thread nino martinez wael
Hmm Anton im not sure, but dont think so.. BookmarkablePageLinks are just that, and if session ID were appended they would'nt work.. One of my sites are running a beta 1.4 i'll try to upgrade and see if I can replicate the error. But it might take some time.. Im taking this issue back to the wick

AW: file download using ajaxLink

2009-10-21 Thread Giambalvo, Christian
Updated http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 7

Re: file download using ajaxLink

2009-10-21 Thread Ernesto Reinaldo Barreiro
Maybe this might help http://cwiki.apache.org/WICKET/ajax-update-and-file-download-in-one-blow.html Ernesto On Tue, Oct 20, 2009 at 10:12 PM, tubin gen wrote: > I do download in traditional way > > here is the code

[offtopic] - Visit to Amsterdam

2009-10-21 Thread Andrew Lombardi
Wicket folk! I'm currently in Paris making my way over to the Netherlands for a short 2 or 3 day visit. If anyone has suggestions on best places to stay? best things to see? that would be much appreciated! And if you're in the area, grab a coffee or something. My Europe # +39 345 832

AW: why is the model empty?

2009-10-21 Thread Peter Arnulf Lustig
wow. Thank you! That's helped a lot! .getValue() is the key to success if you use setDefaultFormProcessing = false! - Ursprüngliche Mail Von: Jeremy Thomerson An: users@wicket.apache.org Gesendet: Dienstag, den 20. Oktober 2009, 17:04:57 Uhr Betreff: Re: why is the model empty? Well,