Re: How many page versions will exist?

2008-02-05 Thread Markus Strickler
Hi- you might want to have a look at Application.getPageSettings().getMaxPageVersions() and the corresponding API docs. This is also the place to change the number of versions. -markus Zitat von oliverw [EMAIL PROTECTED]: As far as I have understood the workings, Wicket maintains one

How many page versions will exist?

2008-02-05 Thread oliverw
As far as I have understood the workings, Wicket maintains one PageMap per Browser Windows in the Session Store and a number of Page Versions per PageMap for every architectural change of said page. The current version of the page resides in memory while oder versions will be serialized to disk

Re: How many page versions will exist?

2008-02-05 Thread oliverw
Thanks Markus. Unfortunately this won't compile with 1.3. I've checked the IPageSettings interface and there's no such methods. Its method getVersionPagesByDefault() which returns a boolean is as close as it gets. Other suggestions? :) Markus Strickler wrote: Hi- you might want to have a

Re: How many page versions will exist?

2008-02-05 Thread Martijn Dashorst
When you don't let your sessions expire or have a very long session time out, you might run into disk space problems, though the moment you have 1TB of disk space allocated for all your sessions, I suppose you can afford to buy more disk space. Martijn On 2/5/08, oliverw [EMAIL PROTECTED] wrote:

Re: Short Design Question

2008-02-05 Thread Erik van Oosten
Actually, I currently have a client who thinks that good looking URLs are very important. Then again, he is no average joe either. Erik. Martijn Dashorst wrote: The average joe doesn't look at the URL... only developers do Martijn

Re: How many page versions will exist?

2008-02-05 Thread Johan Compagner
see: /** * Creates a new [EMAIL PROTECTED] DiskPageStore} instance. * * [EMAIL PROTECTED] maxSizePerPagemap * the maximum size of pagemap file (in bytes) * [EMAIL PROTECTED] maxSizePerSession * the maximum size of session (in bytes) * [EMAIL PROTECTED] fileChannelPoolCapacity * the

Re: Short Design Question

2008-02-05 Thread Johan Compagner
the question is what about the users of that client. I think nice looking urls is greatly exaggerated normal people look at the browser contents instead of the url How many times do i look at the url when i am browsing websites. I think never. Bookmarkable is another issue that should work for

Re: How many page versions will exist?

2008-02-05 Thread oliverw
Thanks Johan. So if the the maximum number of generations or storage space is exceeded - whichever comes first - older versions get discarded and the user will not be able to navigate to those versions using the back button. Johan Compagner wrote: see: /** * Creates a new [EMAIL

Re: How many page versions will exist?

2008-02-05 Thread Johan Compagner
yes old pages will be overwritten by new onces johan On Feb 5, 2008 10:43 AM, oliverw [EMAIL PROTECTED] wrote: Thanks Johan. So if the the maximum number of generations or storage space is exceeded - whichever comes first - older versions get discarded and the user will not be able to

Re: Context reload Guice

2008-02-05 Thread Uwe Schäfer
Uwe Schäfer schrieb: Root cause: java.lang.NullPointerException: type [...] at com.google.inject.TypeLiteral.get(TypeLiteral.java:169) at org.apache.wicket.guice.GuiceProxyTargetLocator.locateProxyTarget (GuiceProxyTargetLocator.java:61) Anyone? A little diggin shows that the information

Re: strange DropDownChoice display

2008-02-05 Thread dvd
Thanks very much. but it is not just like it was after it has been created is it? it is currently holding a value from the request. anywho: secondchoiceSelected=null; secondchoicedropdownchoice.clearInput(); and you will have what you want. -igor On Feb 4, 2008 7:36 PM, [EMAIL PROTECTED]

Re: 2 process cant together in a same time - modal window and form in the same page constructor?

2008-02-05 Thread kenixwong
hi, johan Maybe i misunderstood this sentence so just the parent page with the report link that why i moved the report modal component to the child page. Can ask one thing here? about the report thread, i need to implement the Runnable for the ReportPage or ReportForm ? is that any different

loosely coupled panels: react to model object change

2008-02-05 Thread Gabor Szokoli
Hi! We are trying to build our application from loosely coupled panels, sharing models here and there as needed. It works wounderfully 90% of the time: as long as the panels contain wicket components only, and no further UI logic. One panel can update a model, and the data is reflected in the

Re: 2 process cant together in a same time - modal window and form in the same page constructor?

2008-02-05 Thread Johan Compagner
no don't touch wicket pages/components in different thread Just make a normal threadpool wilt a normal runnable that gets your information from that report so the page can use that to construct itself after that runnable is done and informed you about it generate all the back end data in a thread

Re: strange DropDownChoice display

2008-02-05 Thread dvd
This worked great but why is a separate call needed? the Rerendering should find out the model value is null and do the same as it did for the first rendering. Is it due to the Javascript effect? The second request would set the value to the first rendering but after that, the my call back resets

Re: wicket:link with images supported?

2008-02-05 Thread oliverw
Just a yes or no would be sufficient. Anyone? :P oliverw wrote: Is a construct like this supported: lt;wicket:linkgt;lt;a href=quot;Page1.htmlquot;gt;lt;img src=quot;/img/Page1.gifquot; alt=quot;Pagequot; /gt;lt;/agt;lt;/wicket:linkgt; I'm asking because I'm getting really strange

Re: nice URLs (was: Short Design Question)

2008-02-05 Thread Erik van Oosten
Hi Johan, I agree. Still, bookmarkability (also a requested feature) is exactly the reason for going along with having nice URLs for every page, even after an AJAX update. I have a prototype that uses Realysimplehistory to allow a page to be bookmarkable after an AJAX update. Not sure yet how

Re: nice URLs (was: Short Design Question)

2008-02-05 Thread Gabor Szokoli
On 2/5/08, Erik van Oosten [EMAIL PROTECTED] wrote: Hi Johan, Anyways, the fact remains that nice URLs can be important for some Wicket projects, despite what average Joes may look at. A big me too to that! We have a specific (and I beleive wise) requirement for bookmarkable, human readable

Re: nice URLs (was: Short Design Question)

2008-02-05 Thread Matej Knopp
If you use HybridUrlCodingStrategy the page is bookmarkable after ajax request. It can be recreated, but without the changes that ajax request made to it. But this is not just ajax request, you have same problems when using regular request. Wicket doesn't allow you to reflect fine grained changes

Re: wicket:link with images supported?

2008-02-05 Thread Nino Saturnino Martinez Vazquez Wael
Look in the source? Thats my best bet... Looking a this it does not look that way: http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html http://wicket.apache.org/examplenavomatic.html oliverw wrote: Just a yes or no would be sufficient. Anyone? :P oliverw wrote: Is a construct like

Re: wicket:link with images supported?

2008-02-05 Thread oliverw
Yes I've seen that too but I wanted to make sure that I did not overlook something. Nino.Martinez wrote: Look in the source? Thats my best bet... Looking a this it does not look that way: http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html

Re: nice URLs

2008-02-05 Thread Erik van Oosten
Wicket doesn't allow you to reflect fine grained changes to page state in URL. That's a design decision. The page state gets too complicated to be encoded in URL. Yeah, well that is also not really possible. Only the application has enough knowledge of the application to put stuff in the URL.

Re: Why has my page expired?

2008-02-05 Thread Sri Sankaran
The behavior is unchanged whether I deploy my app as a WAR or as an exploded archive. I have tried this in WebLogic 10, Tomcat 5.5 Tomcat 6. Yes, cookies are enabled. Here is the code: Home.html lt;a href=# wicket:id=link_to_page_twoPage Twolt;/a nbsp; lt;a href=#

link to call another link in the same page ?

2008-02-05 Thread godin
Hi, i'am tring to create a link who delegate the call to another link i've tried somthing like this: linkAssignment = new AjaxLabelledLink(itemLinkProspect, null, menuAssignmentLabel) { @Override public void onClick(AjaxRequestTarget target) {

Re: when the value is null, wanne judge null adn translate the type to string

2008-02-05 Thread Alan Romaniuc
I do not know your page code, but Date conversions works fine here. A second idea is to create a converter with you want something special, like changing from y to yes or something like that. Se component getConverter for more details.. MyComponent c = new MyComponent(htmlvalue, new

Re: strange DropDownChoice display

2008-02-05 Thread Igor Vaynberg
the component remembers its submitted value and tries to rerender itself using that. this value is cleared when the form is processed, but remember you havent processed the form - you only processed the first dropdownchoice. -igor On Feb 5, 2008 2:35 AM, [EMAIL PROTECTED] wrote: This worked

Re: Which wicket-ajax.js method will allow me to update a component using an AJAX request initiated from another component.

2008-02-05 Thread Igor Vaynberg
where does ajaxBehave come from? -igor On Feb 5, 2008 8:13 AM, Michael O'Cleirigh [EMAIL PROTECTED] wrote: Hello, I have a wicket Panel with the following structure: 1. drop down choice to select value 2. text field to specific contextual value details 3. help link to allow the user to

Re: loosely coupled panels: react to model object change

2008-02-05 Thread Igor Vaynberg
see https://issues.apache.org/jira/browse/WICKET-1312 -igor On Feb 5, 2008 2:05 AM, Gabor Szokoli [EMAIL PROTECTED] wrote: Hi! We are trying to build our application from loosely coupled panels, sharing models here and there as needed. It works wounderfully 90% of the time: as long as the

Re: Why has my page expired?

2008-02-05 Thread Igor Vaynberg
tried your code here and it works just fine. not sure where your problem is. perhaps you can generate your project using our maven archetype and try again there. -igor On Feb 5, 2008 6:16 AM, Sri Sankaran [EMAIL PROTECTED] wrote: The behavior is unchanged whether I deploy my app as a WAR or

Re: Short Design Question

2008-02-05 Thread Eelco Hillenius
On Feb 5, 2008 1:40 AM, Johan Compagner [EMAIL PROTECTED] wrote: the question is what about the users of that client. I think nice looking urls is greatly exaggerated normal people look at the browser contents instead of the url How many times do i look at the url when i am browsing websites.

Re: Short Design Question

2008-02-05 Thread Martijn Dashorst
I posit that 99% of the users of our student information system don't even know what an URL is. Martijn On 2/5/08, Eelco Hillenius [EMAIL PROTECTED] wrote: On Feb 5, 2008 1:40 AM, Johan Compagner [EMAIL PROTECTED] wrote: the question is what about the users of that client. I think nice

Re: Why has my page expired?

2008-02-05 Thread Sri Sankaran
Well, wouldn't you know it -- it doesn't do it anymore! I don't know if I should be happy or upset! Anyway, I had originally encountered the page expiry problem on my actual application which is a little more involved than the code snippets we've been working with. I am going to go back to

RE: Delaying AutoCompleteTextField by n characters?

2008-02-05 Thread Michael Mehrle
Anybody? Was hoping for a tip or two ;-) Michael -Original Message- From: Michael Mehrle [mailto:[EMAIL PROTECTED] Sent: Monday, February 04, 2008 3:55 PM To: users@wicket.apache.org Subject: Delaying AutoCompleteTextField by n characters? What is the preferred way of delaying the

Re: Delaying AutoCompleteTextField by n characters?

2008-02-05 Thread Igor Vaynberg
wicket has a throttle which works on time not on number of characthers, for that you need to roll your own javascript -igor On Feb 4, 2008 3:54 PM, Michael Mehrle [EMAIL PROTECTED] wrote: What is the preferred way of delaying the Javascript call to getChoices() until a certain amount of

Re: html hotswap

2008-02-05 Thread Igor Vaynberg
are you configuring wicket in development mode or in deployment mode? in development mode wicket will reload changed resources like html and .properties files automatically. -igor On Feb 5, 2008 11:12 AM, JSP lover [EMAIL PROTECTED] wrote: Hi, Excuse me for my ignorance, but my team just

RE: Delaying AutoCompleteTextField by n characters?

2008-02-05 Thread Michael Mehrle
I'd be happy with the throttle - how do I enable that? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 05, 2008 11:16 AM To: users@wicket.apache.org Subject: Re: Delaying AutoCompleteTextField by n characters? wicket has a throttle which works on

RE: mounted url bug or request for enhancement

2008-02-05 Thread Dan Kaplan
I made a very big typo in that last paragraph. It should have said: But my complaint is that even though it does that, you can still type /home/foo/bar into the url and it'll render *home* for you. -Original Message- From: Dan Kaplan [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 05,

Re: Delaying AutoCompleteTextField by n characters?

2008-02-05 Thread Igor Vaynberg
wicket's ajax behaviors have setThrottleDelay() you can use -igor On Feb 5, 2008 11:34 AM, Michael Mehrle [EMAIL PROTECTED] wrote: I'd be happy with the throttle - how do I enable that? -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 05,

html hotswap

2008-02-05 Thread JSP lover
Hi, Excuse me for my ignorance, but my team just started to play with Wicket and I am having a hard time with it. My problem is that I am used to changing the HTML of a page, getting it just right. So in the process of developing a page I may review changes to it many many times.Add

Re: Short Design Question

2008-02-05 Thread Johan Compagner
really? how often do you type an url thats not just like google.com but something more behind it? i never do, i really cant remeber that i do that. Its history or bookmarked. johan On Feb 5, 2008 6:29 PM, Eelco Hillenius [EMAIL PROTECTED] wrote: On Feb 5, 2008 1:40 AM, Johan Compagner

mounted url bug or request for enhancement

2008-02-05 Thread Dan Kaplan
Hello, I'm testing this sandbox webapp I made that looks like this: package web; import org.apache.wicket.protocol.http.WebApplication; public class SandboxApplication extends WebApplication { protected void init() { mountBookmarkablePage(/home, Home.class); }

Component failed to render

2008-02-05 Thread Bruce McGuire
Hi there. I am new to Wicket, and have been trying to create a new small application to test it out before we switch completely to using Wicket and Hibernate (through Databinder). I am getting an error with my AccessDenied page, saying that a component failed to render. ERROR -

Re: Component failed to render

2008-02-05 Thread Martijn Dashorst
The attachments have gone AWOL, but I managed to take a look at them while they were in the moderation queue. s/home/homePageLink/ Martijn On 2/5/08, Bruce McGuire [EMAIL PROTECTED] wrote: Hi there. I am new to Wicket, and have been trying to create a new small application to test it

RE: Component failed to render

2008-02-05 Thread Bruce McGuire
Woops. Should have thought that the list server would strip attachments. Here is the Java (without imports) public class AccessDenied extends AccessDeniedPage implements Serializable { private static final long serialVersionUID = 200802012L; public AccessDenied()

Re: Component failed to render

2008-02-05 Thread Martijn Dashorst
s/home/homePageLink/ Your link id in java doesn't match link id in markup Martijn

RE: Component failed to render

2008-02-05 Thread Bruce McGuire
Hi Martijn. Thanks for the response. Do you mean that Link alpha = new Link(beta) a wicket:id=delta href=gamma/a where these two lines have to match is in the declaration of the Link? Ie the alpha == delta? Not beta == delta? Thanks, Bruce. -Original Message- From:

Re: loosely coupled panels: react to model object change

2008-02-05 Thread Gabor Szokoli
On 2/5/08, Igor Vaynberg [EMAIL PROTECTED] wrote: see https://issues.apache.org/jira/browse/WICKET-1312 Wow, pre-cognitive feature request fulfillment :-) In the meantime, we managed to put the UI logic in question into a non-conventional IModel.getObject() implementation. I can not foresee a

RE: Component failed to render

2008-02-05 Thread Bruce McGuire
Great. Thanks Martijn. Bruce. -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Tuesday, 05 February, 2008 12:52 PM To: users@wicket.apache.org Subject: Re: Component failed to render Wicket doesn't care about the alpha and the gamma, but the beta and delta need

duplicate HeaderContributor with ModalWindow

2008-02-05 Thread Scott Swank
Hello all, I am running into some odd behavior with 1.2.6 when I add a ModalWindow to a ModalWindow. We have subclassed ModalWindow to add our own css js. The relevant part of that is: public class AthenaModalWindow extends ModalWindow { private static ResourceReference VEGAS_JS = new

Re: duplicate HeaderContributor with ModalWindow

2008-02-05 Thread Scott Swank
Perhaps of interest is the fact that the link to open the 1st ModalWindow from the original page makes a wicketAjaxGet() call to https://sb-www.vega.com/mytrip/app a id=billingForm_checkoutBillingInfoPanel_creditCardOffer_creditCardApplicationLink wicket:id=creditCardApplicationLink

Re: duplicate HeaderContributor with ModalWindow

2008-02-05 Thread Scott Swank
Problem solved. We have a custom WebRequestCodingStrategy, and it prepends https://some.server.com to the url whenever the response page has our custom annotation: RequireSSL. However, the ajax request that opens a ModalWindow has a null response page, and so the https prefix was not added.

[ANNOUNCE] Apache Wicket 1.3.1 is released

2008-02-05 Thread Martijn Dashorst
Apache Wicket 1.3.1 is released! The Apache Wicket team is proud to announce the availability of the first maintenance release: Apache Wicket 1.3.1. A lot of bugs have been squashed and several improvements implemented. The most notable improvement is the addition of out-of-the-box, transparent

How to Apache tomcat wicket setup?

2008-02-05 Thread Penn
Hello, We are trying to setup a apache in front of tomcat,so that all the static content(html, images and css) are handled by apache, only the dynamic content(wicket) is forwarded to tomcat. This is done through mod_JK, apache 2.2 and tomcat 6. Previously, when using a struts application we

Re: loosely coupled panels: react to model object change

2008-02-05 Thread Johan Compagner
What not do that in your model itself? (Observer pattern or something like that) Just like all the swing models do because of there push nature instead of pull On Feb 5, 2008 11:05 AM, Gabor Szokoli [EMAIL PROTECTED] wrote: Hi! We are trying to build our application from loosely coupled

Re: Short Design Question

2008-02-05 Thread Árni Hermann Reynisson
I'm not sure if this is too obvious but... The ability to copy+paste the url from one computer to another, people tend to do that, though being bookmarkable does somewhat imply that would be possible. Johan Compagner wrote: really? how often do you type an url thats not just like google.com

Mounting page at root

2008-02-05 Thread oliverw
Is it possible at all to have content at / ? Trying to mount something at / results in an error and I'm wondering of there's a workaround. -- View this message in context: http://www.nabble.com/Mounting-page-at-root-tp15300055p15300055.html Sent from the Wicket - User mailing list archive at

RE: Component failed to render

2008-02-05 Thread Bruce McGuire
Hello. FYI, my problem was not that the ids didn't match. Not exactly sure what the problem was, but as soon as I stopped extending AccessDeniedPage, and instead extended WebPage, the page rendered properly. Not sure why extending AccessDeniedPage was a bad thing, but it was. Bruce.

[no subject]

2008-02-05 Thread Omair Wicket
Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs

Re: html hotswap

2008-02-05 Thread Sam Barnum
I use IntelliJ for wicket development, and for the most part am pretty happy with it. When I make a change, I do a build, and IntelliJ asks if I want to redeploy the application. If I haven't changed any java method signatures, I click 'no' and my HTML changes and java changes are live.

Re: Passing list of POJOs to AutoCompleteTextField?

2008-02-05 Thread Sam Barnum
I don't think it is, the getMmodelObject() returns the selected String. I've gotten around this by saving the last query string sent via AJAX. When the user makes a selection, I iterate over the options for that query string one more time, and take the POJO whose rendered string matches

Re: Component failed to render

2008-02-05 Thread Martijn Dashorst
Did it add components by itself in the super constructor? Martijn On 2/6/08, Bruce McGuire [EMAIL PROTECTED] wrote: Hello. FYI, my problem was not that the ids didn't match. Not exactly sure what the problem was, but as soon as I stopped extending AccessDeniedPage, and instead extended

RE: Component failed to render

2008-02-05 Thread Bruce McGuire
Hi Martijn. I don't have the source for the page, I was going by the docs for AccessDeniedPage at http://people.apache.org/~tobrien/wicket/apidocs/index.html. Bruce. -Original Message- From: Martijn Dashorst [mailto:[EMAIL PROTECTED] Sent: Tuesday, 05 February, 2008 04:32 PM To:

RE: Passing list of POJOs to AutoCompleteTextField?

2008-02-05 Thread Michael Mehrle
That's exactly what I wound up doing. I wrote my custom renderer that grabs the name field of my POJO for rendering. Of course that is what I'm getting back from getModelObjectAsString(). It's a work-around and I was hoping for a more elegant way of doing this... Michael -Original

Re: How to Apache tomcat wicket setup?

2008-02-05 Thread cwilkes
Look at Exclusions on the documentation page: http://tomcat.apache.org/connectors-doc/reference/uriworkermap.html Chris Penn wrote: Previously, when using a struts application we would just say *.jsp is forward to tomcat. How to do this with wicket as we don't have any specific file

Re: Passing list of POJOs to AutoCompleteTextField?

2008-02-05 Thread Igor Vaynberg
please add an rfe into jira for this. -igor On Feb 5, 2008 4:38 PM, Michael Mehrle [EMAIL PROTECTED] wrote: That's exactly what I wound up doing. I wrote my custom renderer that grabs the name field of my POJO for rendering. Of course that is what I'm getting back from

Re: Ajax Feedback Problem in 1.3

2008-02-05 Thread SantiagoA
http://www.nabble.com/file/p15306186/ValidationTest1.iamzip ValidationTest1.iamzip http://www.nabble.com/file/p15306186/ValidationTest2.iamzip ValidationTest2.iamzip Sorry, have to make two zips, ´cause packed to one file was too big to upload. Ok. ValidationTest1 runs with wicket 1.3.0

Re: Context reload Guice

2008-02-05 Thread Eelco Hillenius
Is this a known problem, or should i file a bug for that ? Sounds like a bug to me. Could you file a bug for it please? Cheers, Eelco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL