Re: DiskPageStore improvements for 1.3.1

2008-01-10 Thread C.
Matej Knopp-2 wrote: Hi all, I've committed couple of changes to DiskPageStore to address some issues. Mind you the commit is rather fresh and needs to be tested properly before 1.3.1 gets out. First of all it solves the problem of context reloads (see

Re: 2-pass rendering

2008-01-10 Thread blueneogeo
Ahh missed that one... thank you! :-) christian igor.vaynberg wrote: see iresponsefilter -igor On Jan 9, 2008 4:27 PM, blueneogeo [EMAIL PROTECTED] wrote: I'm having an unusual case in which I would like to use javascript to load and write pages into divs (somewhat ajax-like,

Re: 2-pass rendering

2008-01-10 Thread blueneogeo
Followup question, the ireponsefilter seems what I need, but I have to add it in the IRequestCycleSettings, which is application wide from what I understand. What I would hope to achieve is that some pages render themselves directly, while others use the technique described below. Is there a way

calling javascript function on wicket component's onclick

2008-01-10 Thread mbelarbi
Hi, I want to call a javascript function ( myFunction() ) on a component's onclick event. I tried this: but then i realized that my wicket's onClick() method is overwriting the above html one. -- AjaxLink agentLink = new AjaxLink(myLink) { public void

How can I validate required formComponents after page load?

2008-01-10 Thread thomas jaeckle
Hello Guys. I am trying to validate my RequiredTextFields directly when/after the Page is loaded so that I can display the required errormessage in my feedbackpanel. Currently I try to do this in the Pages constructor: add(new AjaxEventBehavior(onload) { protected void

Re: calling javascript function on wicket component's onclick

2008-01-10 Thread Gerolf Seitz
you need to override getAjaxCallDecorator() on the AjaxLink and return a new AjaxCallDecorator that either prepends, appends (or both) your custom javascript to the javascript created by the link. cheers, Gerolf On Jan 10, 2008 11:05 AM, mbelarbi [EMAIL PROTECTED] wrote: Hi, I want to call

back button and session state rollback

2008-01-10 Thread Robin Shine
Hi, I am facing a situation where I need to rollback some state kept in session when user hits the back button at browser side, and clicks some link which triggers a server round trip. The usage scenario is as below: 1. User stays on page1, and the current state saved in session in state1 2.

Per-Deployment Variation

2008-01-10 Thread grimp
I am considering using Wicket to re-implement an existing (ageing, clunky etc.) ordering application. My main concern is Wicket's ability to provide a simple, (ideally configuration file based) mechanism for per-deployment variation of the app for different countries. The variation will come in

Re: Javascript call to wicket

2008-01-10 Thread Sébastien Piller
Yes, I'd like to do it, but as english is not my mother language, I need somebody to correct it after I write it. Who wants to do that? ;) Gwyn Evans a crit: As Cemel suggested, if you have time to put a summary up on the Wiki, it would be appreciated!

Re: back button and session state rollback

2008-01-10 Thread Matej Knopp
When user presses back button and clicks a ling to page, it will affect the previous page version. Wicket takes care of this automatically. Can you keep the state in page instead of keeping it in session? -Matej On Jan 10, 2008 11:29 AM, Robin Shine [EMAIL PROTECTED] wrote: Hi, I am facing a

Re: Javascript call to wicket

2008-01-10 Thread Gwyn Evans
As Cemel suggested, if you have time to put a summary up on the Wiki, it would be appreciated! /Gwyn On 09/01/2008, Pills [EMAIL PROTECTED] wrote: Thank you, now everything works fine, and it's clean ;) Michael Sparer wrote: You can do that like so: Map map =

Re: DiskPageStore improvements for 1.3.1

2008-01-10 Thread Matej Knopp
Ideally, NodeB ought to catch up when it joins the cluster by syncing the content in the disk page stores at that time. I think it's a flaw we should track and fix at some point. Nice job, Matej! Well, I'm afraid as Igor said this is not possible to do without having container

AjaxFormValidatingBehavior and caret (cursor) position

2008-01-10 Thread thomas jaeckle
Hi everyone. I found this on the mailing list: http://www.nabble.com/Re%3A-AjaxFormValidatingBehavior-and-focus-p9178324.html And exactly this is my problem now. I registered an onkeyup event on a textfield to validate it after each keypress. In a RequiredTextField following happens: I want to

Re: calling javascript function on wicket component's onclick

2008-01-10 Thread Gerolf Seitz
something like: new AjaxLink(link) { protected onClick(AjaxRequestTarget target) { ...} protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator() { public CharSequence decorateScript(CharSequence script) { return alert('w00t'); + script; }

Re: calling javascript function on wicket component's onclick

2008-01-10 Thread mbelarbi
How would i do that for what i have? Gerolf Seitz wrote: you need to override getAjaxCallDecorator() on the AjaxLink and return a new AjaxCallDecorator that either prepends, appends (or both) your custom javascript to the javascript created by the link. cheers, Gerolf On Jan 10,

Re: Javascript call to wicket

2008-01-10 Thread jweekend
We can probably take a look and I am sure others will help once its up on the wiki. These may be useful references too: http://www.nabble.com/integrating-extjs-with-wicket-to14715123.html here and http://www.nabble.com/calling-javascript-function-on-wicket-component%27s-onclick-to14730927.html

Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Ryan Sonnek
Edward, Thanks for the email. I'm currently working on revamping the drag drop API. if you have any code you'd like to contribute feel free to drop me an email. maybe we could hash out a great new api to simplify it's use. regarding the javascript issues, could you re-open this bug i filed in

Re: Javascript call to wicket

2008-01-10 Thread Pills
Ok, I'll write it maybe tomorrow or this week end (I'm quite busy but I can take an hour or two to write it). Michael Sparer wrote: I'm also no native speaker but I'll certainly read through it and write some enhancements (if necessary) once it's in the wiki regards, Michael -- View

Re: Javascript call to wicket

2008-01-10 Thread Michael Sparer
I'm also no native speaker but I'll certainly read through it and write some enhancements (if necessary) once it's in the wiki regards, Michael jweekend wrote: We can probably take a look and I am sure others will help once its up on the wiki. These may be useful references too:

Re: Per-Deployment Variation

2008-01-10 Thread Erik van Oosten
Just make sure that the html elements with a wicket:id in the different html versions have the same hierarchical structure. If you need to skip some components for one language but not another it becomes a bit harder. Then you'll actually need to add an invisible component for the language in

Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Edward Yakop
The code is commited at https://scm.ops4j.org/repos/ops4j/laboratory/users/efy/wicket-contrib-scriptaculous I'm sorry that I couldn't sent a patch, when the modification was done, it was committed to our project svn server. Hence a diff couldn't be made. regarding the javascript issues, could

Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Edward Yakop
regarding the javascript issues, could you re-open this bug i filed in wicket? https://issues.apache.org/jira/browse/WICKET-987 I can't re-open this bug, but I left a comment in the jira issue. Regards, Edward Yakop - To

Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Ryan Sonnek
i've reopened the issue. It must only allow whoever filed the issue to reopen it... On Jan 10, 2008 10:00 AM, Edward Yakop [EMAIL PROTECTED] wrote: regarding the javascript issues, could you re-open this bug i filed in wicket? https://issues.apache.org/jira/browse/WICKET-987 I can't

Re: How can I validate required formComponents after page load?

2008-01-10 Thread Igor Vaynberg
how about just page.onbeforerender() { fieldlastname.valdiate(); } -igor On Jan 10, 2008 2:07 AM, thomas jaeckle [EMAIL PROTECTED] wrote: Hello Guys. I am trying to validate my RequiredTextFields directly when/after the Page is loaded so that I can display the required errormessage in my

material about scalability

2008-01-10 Thread Uwe Schäfer
hi in the near future, i´ll have to create a scalability presentation for a webapp that uses wicket. i think, i´ll have enough ammo for the non-wicket parts, so i try to gather some wicket related info now. is there anything compact already i could use to summarize, why/how wicket can scale

Re: Force page rendering ?

2008-01-10 Thread mfs
I think i didnt conveyed my message properly...i had this question in comparison to the conventional approach where you could do a dispatch to another page by doing forward() or sendRedirect() or in struts (mapping.findforward()) which use to take control to the target page rightaway.. Is doing

Re: Force page rendering ?

2008-01-10 Thread Igor Vaynberg
see RestartResponseException -igor On Jan 10, 2008 11:04 AM, mfs [EMAIL PROTECTED] wrote: I think i didnt conveyed my message properly...i had this question in comparison to the conventional approach where you could do a dispatch to another page by doing forward() or sendRedirect() or in

Wicket Session backed by something other than HTTP Session

2008-01-10 Thread mnwicket
I've worked on a couple applications in the past were they have decided not to use the HTTP Session and instead create their own structure, basically a session type of object gets stored in the database per request. Although I don't really love this direction but I have seen some benefits. My

Re: Wicket Session backed by something other than HTTP Session

2008-01-10 Thread Igor Vaynberg
On Jan 10, 2008 11:13 AM, mnwicket [EMAIL PROTECTED] wrote: How easy / feasible would it be to have the Wicket session backed by an applications own structure? as easy as returning your own implementation of ISessionStore from Application.newSessionStore() -igor -- View this message in

Form in VelocityPanel

2008-01-10 Thread Markus Sabadello
Hello, I am trying to have a Form inside a VelocityPanel, but get an exception: WicketMessage: Unable to find the markup for the component. That may be due to transparent containers or components implementing IComponentResolver I filed a JIRA issue with sample code and the full stack trace:

WicketServlet vs. WicketFilter

2008-01-10 Thread Beyonder Unknown
Hi All, Are there any criteria in choosing WicketFilter over WicketServlet? In the api it says, Please use WicketFilter if you require advanced chaining of resources. What does this mean? If you have deeply rooted Panel within a Panel with a Panel? Thanks, WT -- The only constant in life

Re: WicketServlet vs. WicketFilter

2008-01-10 Thread Igor Vaynberg
sometimes you might want to chain preprocessors/postprocessors around wicket - in that case you have to use filters since you cant chain servlets. also wicket filter is much better at handling /* mapping generally i would recommend wicketfilter. wicketservlet is there as a backup for situations

Re: WicketServlet vs. WicketFilter

2008-01-10 Thread Beyonder Unknown
Thanks Igor! I understand it now. Best, WT -- The only constant in life is change. - Original Message From: Igor Vaynberg [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Thursday, January 10, 2008 11:48:04 AM Subject: Re: WicketServlet vs. WicketFilter sometimes you might want

Re: Force page rendering ?

2008-01-10 Thread mfs
Thanks... So what i would want to know as well is to when would it be recommended to use this to force page-rendering, like one could just follow this approach and force rendering in the if-else blocks (as below) so as to skip the rest of the executable-code (in an event-listener) , which doesnt

Re: Force page rendering ?

2008-01-10 Thread Eelco Hillenius
You use those exceptions when you want to interrupt the flow/ when you don't want the code beyond your choice to be executed. Eelco On Jan 10, 2008 12:15 PM, mfs [EMAIL PROTECTED] wrote: Thanks... So what i would want to know as well is to when would it be recommended to use this to force

Resizable and reorderable grid components

2008-01-10 Thread Matej Knopp
I am pleased to announce that the first beta version of TreeGrid and DataGrid components is available. Amongst other things these support column resizing and reordering, horizontal and vertical scrolling (with fixed header) and multi-column sorting. The components are commercial, but with no

Re: Resizable and reorderable grid components

2008-01-10 Thread Evan Chooly
this is very cool to start. i'm working on a similar component. my biggest complaint is that it seems odd to me that commercial component demos are being hosted on wicket stuff. but that just might be me. Other than that, they look pretty sharp. On Jan 10, 2008 3:42 PM, Matej Knopp [EMAIL

Re: Resizable and reorderable grid components

2008-01-10 Thread Matej Knopp
Don't worry, the hosting is only temporary :) Thanks. -Matej On Jan 10, 2008 9:56 PM, Evan Chooly [EMAIL PROTECTED] wrote: this is very cool to start. i'm working on a similar component. my biggest complaint is that it seems odd to me that commercial component demos are being hosted on

Re: Resizable and reorderable grid components

2008-01-10 Thread Eelco Hillenius
Very nice components! Does it come with a user guide? Eelco On Jan 10, 2008 12:42 PM, Matej Knopp [EMAIL PROTECTED] wrote: I am pleased to announce that the first beta version of TreeGrid and DataGrid components is available. Amongst other things these support column resizing and reordering,

Re: Resizable and reorderable grid components

2008-01-10 Thread Matej Knopp
On Jan 10, 2008 10:08 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: Very nice components! Does it come with a user guide? Thanks. The user guide is being worked on. However, the components come with an example suite and the usage is (intentionally) pretty similiar to wicket's DataTable and

Flash and Modal Window

2008-01-10 Thread Roy van Rijn
Hi all, I'm experimenting with modal windows in Wicket for the first time. But I've got some strange behavior when I placed a Flash component on the modal page. Firefox everything works fine, the modal opens displaying a small Flash movie. But in IE, when I click the Flash movie a popup comes up

Re: Resizable and reorderable grid components

2008-01-10 Thread Igor Vaynberg
On Jan 10, 2008 12:56 PM, Evan Chooly [EMAIL PROTECTED] wrote: this is very cool to start. i'm working on a similar component. my biggest complaint is that it seems odd to me that commercial component demos are being hosted on wicket stuff. but that just might be me. dont really see this as

Re: Resizable and reorderable grid components

2008-01-10 Thread Matej Knopp
There have been reported some issues with Firefox because of a not properly removed debugging code, so I've deployed a new version (Beta2). -Matej On Jan 10, 2008 9:42 PM, Matej Knopp [EMAIL PROTECTED] wrote: I am pleased to announce that the first beta version of TreeGrid and DataGrid

Unable to Upload file using AjaxFormSubmitBehavior

2008-01-10 Thread Haritha Juturu
Hi Everyone I'm trying to upload a file using AjaxFormSubmitBehavior . When i submit the form , the defined onSubmit() method is not being called. Can anyone tell me why this is happening ? Code given below: Java code is : Form f = new Form(f); f.setOutputMarkupId(true);

Re: Unable to Upload file using AjaxFormSubmitBehavior

2008-01-10 Thread Igor Vaynberg
file uploads using ajax are not supported -igor On Jan 10, 2008 4:59 PM, Haritha Juturu [EMAIL PROTECTED] wrote: Hi Everyone I'm trying to upload a file using AjaxFormSubmitBehavior . When i submit the form , the defined onSubmit() method is not being called. Can anyone tell me why this is

the flow of wicket

2008-01-10 Thread Beyonder Unknown
Hi All, I am studying wicket from the WicketFilter to the WebApplication, but I don't understand the concept of RequestCycleProcessor and how does it get invoked. I read the Wicket In Action and Pro Wicket but the explanation is not that detailed. Does anybody know of a primer with regards

RE: the flow of wicket

2008-01-10 Thread Dan Kaplan
seconded -Original Message- From: Beyonder Unknown [mailto:[EMAIL PROTECTED] Sent: Thursday, January 10, 2008 5:05 PM To: WICKET USER Subject: the flow of wicket Hi All, I am studying wicket from the WicketFilter to the WebApplication, but I don't understand the concept of

Re: the flow of wicket

2008-01-10 Thread Igor Vaynberg
you guys want to know about internal implementation details. it has no publically exposed api, so why should you care? why should we document something that can change without affecting our users? does the jee spec detail how the request gets to the servlet? no, that is left up to the implementor

Re: Unable to Upload file using AjaxFormSubmitBehavior

2008-01-10 Thread mfs
I believe its because your submit button is getting hooked up with the Button(ok) instead and not the AjaxForm-Submit..i wouldnt define the Button on the page-component and similarly would remove wicket:id = ok from the tag.. Haritha Juturu wrote: Hi Everyone I'm trying to upload a file

RE: the flow of wicket

2008-01-10 Thread Dan Kaplan
Sorry, I didn't know that it was internal implementation details. I see it mentioned a lot so I supposed that it's very important to understand it in order to use wicket correctly. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, January 10, 2008 5:09 PM

Re: the flow of wicket

2008-01-10 Thread Beyonder Unknown
Hi Igor, Since it got mentioned in the book, I just thought I'd asked for more information. I was also wondering how does it differ from the traditional model 2 MVC like struts, spring-mvc, etc. I tried adding breakpoints, but I lack the source. I guess i have to attached it in my eclipse. It

Re: Resizable and reorderable grid components

2008-01-10 Thread Igor Vaynberg
On Jan 10, 2008 5:51 PM, Evan Chooly [EMAIL PROTECTED] wrote: Is that not the official website for the wicket stuff projects? it is, _amongst other things_ -igor Just kinda struck me as odd is all. On Jan 10, 2008 6:26 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: dont really see this as

Re: back button and session state rollback

2008-01-10 Thread Robin Shine
Hi Matej, Thanks for the response. However storing state in the page might not be suitable in our case, and this state need to be shared by several pages, and storing it into session seems to be a better choice. Regards. Robin Matej Knopp [EMAIL PROTECTED] wrote: When user presses back

Re: back button and session state rollback

2008-01-10 Thread Matej Knopp
Each page has it's page id (Page#getNumericId()) iand version number. These are the properties that change when you press back button. So these might help you with implementing some kind of versioned session properties. -Matej On Jan 11, 2008 3:00 AM, Robin Shine [EMAIL PROTECTED] wrote: Hi

Re: the flow of wicket

2008-01-10 Thread Beyonder Unknown
Thanks for the info, Igor. I'll definitely attached the code and trace it from doGet(). Best, Wen Tong -- The only constant in life is change. - Original Message From: Igor Vaynberg [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Thursday, January 10, 2008 5:55:13 PM Subject:

Dont refresh webpage on Form Submit

2008-01-10 Thread Haritha Juturu
Hi Everyone, I have a Form object in my wicket page. After the onSubmit() method is called the webpage is refreshed. Is there anyway i can stop the webpage reload after the onSubmit() method is executed. Thanks Haritha

Re: Dont refresh webpage on Form Submit

2008-01-10 Thread igor . vaynberg
and what do you want instead? -igor On 1/10/08, Haritha Juturu [EMAIL PROTECTED] wrote: Hi Everyone, I have a Form object in my wicket page. After the onSubmit() method is called the webpage is refreshed. Is there anyway i can stop the webpage reload after the onSubmit() method is executed.

Re: integrating extjs with wicket

2008-01-10 Thread Matt Jensen
I would be willing to contribute to this project, but I don't have the knowledge of Wicket internals (nor ExtJS internals, really) to pull off the core design. If somebody starts this, he/she can count on a couple hours per week from me. Martijn Dashorst wrote: Sounds like a good

Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Ryan Sonnek
On Jan 10, 2008 9:22 AM, Ryan Sonnek [EMAIL PROTECTED] wrote: Edward, Thanks for the email. I'm currently working on revamping the drag drop API. if you have any code you'd like to contribute feel free to drop me an email. maybe we could hash out a great new api to simplify it's use. Hey

Re: Dont refresh webpage on Form Submit

2008-01-10 Thread Sam Barnum
You might be thinking of an onsubmit javascript that returns false. form onsubmit=return confirm('Are you sure you want to submit this form?').../form You could add the onsubmit attribute dynamically, and it could presumably call wicket with some sort of ajax behavior (still haven't gone

Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Edward Yakop
On Jan 11, 2008 11:51 AM, Ryan Sonnek [EMAIL PROTECTED] wrote: if there are other improvements to be made, let me know! How about committing the [DraggableTargetBehavior] and its support for multiple drag source type. The committed code has improved JavascriptBuilder#formatJavascriptValue to

Re: Is wicketstuff-scriptaculous still active?

2008-01-10 Thread Edward Yakop
I forgot to mention about the usage of markup id. I think this is a less optimize way to find the drag source component, especially if the page object graph is large. For example, If we have the following Page component structure. Page - Container1 - Table with a lot of rows - other

Re: How can I validate required formComponents after page load?

2008-01-10 Thread thomas jaeckle
igor.vaynberg wrote: how about just page.onbeforerender() { fieldlastname.valdiate(); } -igor Ok, thanks .. But the RequiredTextField validates because it isn't added to the Page yet (input is null and not an empty String) and so checkRequired() from FormComponent returns true: public

Re: How can I validate required formComponents after page load?

2008-01-10 Thread Igor Vaynberg
onbeforerender { textfield.error(RequiredValidator.class.getSimpleName()); } -igor On Jan 10, 2008 11:23 PM, thomas jaeckle [EMAIL PROTECTED] wrote: igor.vaynberg wrote: how about just page.onbeforerender() { fieldlastname.valdiate(); } -igor Ok, thanks .. But the