Extending the ModalWindow

2009-03-26 Thread rodrigo benenson
Hi there ! I'm polishing the first prototype of my web application before release. When I wanted to modify the look and feel of Wicket's modal windows I was surprised to notice that the HTML is hardcoded Javascript code ! I was expecting to extend the ModalWindow class, for instance, changing the

Re: Need Wicket Examples

2009-03-26 Thread FaRHaN
I have Wicket in Action book but those examples are being explained in Ant/Maven and not in netbeans IDE. Are there any examples which are also executable in netbeans IDE ?

Re: Repeater component with dynamic column list

2009-03-26 Thread Martijn Dashorst
You might want to spell wicket correctly in your markup. wikcet is not the valid xmlns prefix :) Martijn On Wed, Mar 25, 2009 at 9:00 PM, rora tempma...@go2.pl wrote: Hi Janos, I did what you advised me to do but got the following exception (in this case I used a list of 3 entries with 3

Re: Repeater component with dynamic column list

2009-03-26 Thread rora
%-O I've spent a lot of time trying to figure out what's wrong with code and markup but didn't notice this typo. Thanks Martijn You might want to spell wicket correctly in your markup. wikcet is not the valid xmlns prefix :) Martijn -- View this message in context:

Re: Need Wicket Examples

2009-03-26 Thread Philippe Marzouk
On Thu, Mar 26, 2009 at 12:06:23AM -0700, FaRHaN wrote: I have Wicket in Action book but those examples are being explained in Ant/Maven and not in netbeans IDE. Are there any examples which are also executable in netbeans IDE ? In Netbeans, install the Maven plugin and create a new Maven

Re: Need Wicket Examples

2009-03-26 Thread Zenberg Ding
Check out svn's code, copy examples to your nb project folder, run it :) On Thu, Mar 26, 2009 at 12:06:23AM -0700, FaRHaN wrote: I have Wicket in Action book but those examples are being explained in Ant/Maven and not in netbeans IDE. Are there any examples which are also executable in

Re: Need Wicket Examples

2009-03-26 Thread Ajayi Yinka
Download the wicket plugin for netbeans(Go to tools- Plugins, and select available plugins) and create a new wicket project after this. Yinka On Thu, Mar 26, 2009 at 7:43 AM, Philippe Marzouk p...@ozigo.org wrote: On Thu, Mar 26, 2009 at 12:06:23AM -0700, FaRHaN wrote: I have Wicket in

Re: freelance gig

2009-03-26 Thread nino martinez wael
I think what are mentioned in the article are the Grand redesign, I do not think this is the case here, also since the dead line are in a month or two.. 2009/3/25 Phillip Rhodes spamsu...@rhoderunner.com: It's just rewriting the UI.  Most of the code is behind spring services, so this is

Re: number of active users

2009-03-26 Thread nino martinez wael
it's this one: http://www.nabble.com/Session-end-method-td18020171.html#a18024174 was pretty good hidden 2009/3/26 Jeremy Thomerson jer...@wickettraining.com: the list = this mailing list search it on nabble -- Jeremy Thomerson http://www.wickettraining.com On Wed, Mar 25, 2009 at

Re: best way to add tooltips in wicket

2009-03-26 Thread RoyBatty
OK, OK, i get it, everyone loves MooTip :) The reason i started out with prototip was actually that the mootip example link on the wicketstuff-minis page was broken. (http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-minis). But if it's easier to change the CSS setting for MooTip

RE: best way to add tooltips in wicket

2009-03-26 Thread Stefan Lindner
Did you already have a look at http://www.walterzorn.com/tooltip/tooltip_e.htm ? -Ursprüngliche Nachricht- Von: RoyBatty [mailto:math...@afjochnick.net] Gesendet: Donnerstag, 26. März 2009 09:21 An: users@wicket.apache.org Betreff: Re: best way to add tooltips in wicket OK, OK, i get

Re: best way to add tooltips in wicket

2009-03-26 Thread nino martinez wael
Ok thanks about the pointer, I correct the url.. I forgot todo it after minis was adopted into wicketstuff core 2009/3/26 RoyBatty math...@afjochnick.net: OK, OK, i get it, everyone loves MooTip :) The reason i started out with prototip was actually that the mootip example link on the

Re: Wicket architecture diagram?

2009-03-26 Thread subbu_tce
Based on my understanding, i just prepared a diagram. Wicket Contributors.. Please review and let me know your valuable feedback. http://www.nabble.com/file/p22717793/wicket%2Barchitecture.jpg Thanks, Subbu. jWeekend wrote: Jeremy, It's one of the first things I looked for when I

Re: Form validation without a form component

2009-03-26 Thread triswork
Thanks igor, I had a go at implementing the form level validator, but it still requires a FormComponent to attach its error message to. For example: form.add(new IFormValidator() { @Override public void validate(Form f) { if (myList.size() == 0) { f.error(new

Re: best way to add tooltips in wicket

2009-03-26 Thread nino martinez wael
Yeah there are dozens of ways doing it easy with static tooltips.. But if you want easy ajax tooltips, mootip are the only way with wicket right now I believe. Especially because they are truly dynamic. And im not saying mootip are the best, it was just the only one (at the time and which I

Re: best way to add tooltips in wicket

2009-03-26 Thread Stephen Swinsburg
I made my own IconWithToolTip component that renders an icon with a jQuery cluetip on hover. Takes advantage of all the neat jQuery extensions like hoverIntent (did they really meant to hover or did they just wave the mouse around). Welcome to the source if you'd like it. cheers, Steve

Fwd: Question on LinkTree implementation

2009-03-26 Thread Ajayi Yinka
I found out that if no node is added to the node1, The onclick method works as supposed. But if I try to add one sub-node to it, I begin to have the same type of error as below. I am sure there is a problem somewhere that I have not been able to trace (I am a new to wicket framework). Could

Re: best way to add tooltips in wicket

2009-03-26 Thread RoyBatty
Right, thanks for all the input. I did try mootips now, and they both work fine. One thing i noticed, though, was that mootips seemed to glich more than prototips, i.e. i seems more performance-heavy? Am i imagining this? :) (i'm setting the mootip up as in the example) Currently we have no

Re: best way to add tooltips in wicket

2009-03-26 Thread nino martinez wael
There's some settings in regard to the glitch thing I think a timer or something I think, but this is only in regard when using ajax.. regards 2009/3/26 RoyBatty math...@afjochnick.net: Right, thanks for all the input. I did try mootips now, and they both work fine. One thing i noticed,

Re: Wicket architecture diagram?

2009-03-26 Thread Erik van Oosten
Subbu, Very good that somebody picks this up! At this very high level pages and components are basically just parts of a component tree. A page is just the root of such a component tree. I would therefore recommend replacing the 'page' and 'component' icons by a single stack of 'component

RadioGroup lost value after onError form

2009-03-26 Thread Marieke Vandamme
Hello, consider example underneath. Form with DateTextField and RadioGroup. When an incorrect date is entered in the TextField, the value choosen in radiogroup is lost. When correct date is entered, the value is shown correct in radiogroup. Is this an error in my code? Or a bug? I'm using

Re: best way to add tooltips in wicket

2009-03-26 Thread James Carman
If you're interested in using static tooltips that are styled, we've had good luck with overlib. On Thu, Mar 26, 2009 at 5:34 AM, RoyBatty math...@afjochnick.net wrote: Right, thanks for all the input. I did try mootips now, and they both work fine. One thing i noticed, though, was that

Re: Extensible wicket application

2009-03-26 Thread Daniel Dominik Holúbek
Hi, I'm still trying to solve the database problem... I think it could be useful to mention, that I get an exception at these lines: HibernateTemplate ht = new HibernateTemplate(sessionFactory); ht.save(msg); -- HERE! and if I change the code to this: Session session =

Re: number of active users

2009-03-26 Thread Johan Compagner
RequestLogger On Wed, Mar 25, 2009 at 20:02, Andreas Kaluza kal...@rhrk.uni-kl.de wrote: Hi @ all, I'm using Wicket 1.35 with a jetty server. My question is if I can get the number of the active users, who are logged in the system. Perhaps getting the number of active sessions or

Re: Extensible wicket application

2009-03-26 Thread reiern70
Can you provide an stack trace or some more info? Is this happening when you run your application in eclipse or just on the bridge setting? Right now I'm using hibernate+OSGi on some project and it works just fine... provided Hibernate can load you entity classes by name. Best, Ernesto

Re: Wicket architecture diagram?

2009-03-26 Thread jWeekend
Subbu, Thank you! I have a quick minute now, so I thought you'd appreciate a few crumbs of feedback before I can take a better look, hopefully late this evening. 0 - this is a great start! 1 - take out the LDM - this stretches the scope of the diagram beyond what it needs to show. 2 - if the

FormComponentPanel woes

2009-03-26 Thread triswork
Hi I am getting really frustrated here because I can't figure out what I am doing wrong. I am creating a new TextArea form component that is limited to a particular number of characters. The trouble is, that my text area is always rendered containing its own HTML. Basically, I have: public

Re: Dutch Wicket workshop?

2009-03-26 Thread Erik van Oosten
Hi Linda, We will shortly start offering the jWeekend course in The Netherlands. See http://blog.jteam.nl/2009/03/24/jteam-announces-wicket-training/ for more information. Regards, Erik. Linda van der Pal wrote: Triggered by the news of a London Wicket Event, I wondered if there is any

Re: FormComponentPanel woes

2009-03-26 Thread Linda van der Pal
Hi Did you override onBeforeRender and convertInput? Regards, Linda triswork wrote: Hi I am getting really frustrated here because I can't figure out what I am doing wrong. I am creating a new TextArea form component that is limited to a particular number of characters. The trouble is, that

Re: FormComponentPanel woes

2009-03-26 Thread Steve Flasby
shoudn't that be: textarea wicket:id=content name=tabs:panel:form:content:text or am I missing something? Cheers - Steve triswork wrote: Hi I am getting really frustrated here because I can't figure out what I am doing wrong. I am creating a new TextArea form component that is limited to a

Re: FormComponentPanel woes

2009-03-26 Thread triswork
Hi Linda, No, I haven't :( I didn't realise I had to... Do you know where I can find some documentation explaining this? Thanks T Linda van der Pal wrote: Hi Did you override onBeforeRender and convertInput? Regards, Linda -- View this message in context:

Re: FormComponentPanel woes

2009-03-26 Thread triswork
Sorry... That last bit isn't my markup. It is the text that is appearing in my textarea component. My markup looks like this: wicket:panel textarea id=content wicket:id=content/textarea p class=note(Maximum characters: 100) /p /wicket:panel T Steve Flasby wrote:

Re: FormComponentPanel woes

2009-03-26 Thread Linda van der Pal
I found it in the book Wicket in Action. triswork wrote: Hi Linda, No, I haven't :( I didn't realise I had to... Do you know where I can find some documentation explaining this? Thanks T Linda van der Pal wrote: Hi Did you override onBeforeRender and convertInput? Regards, Linda

RE: FormComponentPanel woes

2009-03-26 Thread Stefan Lindner
textarea id=content name=tabs:panel:form:content:text /textarea Should do it -Ursprüngliche Nachricht- Von: triswork [mailto:tristan.k...@gmail.com] Gesendet: Donnerstag, 26. März 2009 13:14 An: users@wicket.apache.org Betreff: Re: FormComponentPanel woes Hi Linda, No, I haven't :(

Re: toString( ) and naming conventions in Component class

2009-03-26 Thread Johan Compagner
if you have a patch for better toString() impl be my guest and attach it to jira Those Changes classes are internal to component, they are inner classes of Component so they dont have to specify that extra name.. Its just verbose. Also those 2 are protected final but i think they could be private

Open Session in View Pattern: some basic questions

2009-03-26 Thread Kaspar Fischer
I am learning about the OSIV pattern and have so far read the introduction at hibernate.org [1], the Spring JavaDoc for OpenSessionInViewFilter [2], the excellent MysticCoders tutorial [3] that uses Spring's OpenSessionInViewFilter, and some more. I have basic questions: 1. Is it correct

Re: Open Session in View Pattern: some basic questions

2009-03-26 Thread James Carman
On Thu, Mar 26, 2009 at 8:31 AM, Kaspar Fischer fisch...@inf.ethz.ch wrote: 1. Is it correct that there are two variants of the pattern? In one variant there is a single transaction (and a single session) that gets committed at the end of the request, as described in [1]. If I am not

RE: FormComponentPanel woes

2009-03-26 Thread triswork
Hi Stefan You have completely lost me on this one. All I want to do is have my TextArea (contained within my FormComponentPanel) to render properly without sticking arbitrary bits of markup inside itself. That markup you have quoted is being generated by Wicket - not by me :( Stefan Lindner

RE: FormComponentPanel woes

2009-03-26 Thread Stefan Lindner
I had the same problem some time ago an in my case it was the missing closing /textarea. An in your original post you had only textarea id=content name=tabs:panel:form:content:text Without closing /textarea. So it could have been the problem. I'm sorry if this was missleading you. Stefan

Re: FormComponentPanel woes

2009-03-26 Thread Linda van der Pal
quote: To keep the models of the nested components and the top component synchronized, we need to override two methods: onBeforeRender, which prepares for rendering, and convertInput, which handles receiving input. So your code would become something like this: public class LimitedTextArea

Re: FormComponentPanel woes

2009-03-26 Thread Linda van der Pal
Arg, I wanted to make my changes bold. But now I see stars. Not sure if you get those too, but if you do: leave out the stars :) Linda van der Pal wrote: quote: To keep the models of the nested components and the top component synchronized, we need to override two methods: onBeforeRender,

Fwd: Question on LinkTree implementation

2009-03-26 Thread Ajayi Yinka
i will appreciate anyone that can help me look into this problem. I think I lack the knowledge on proper implementation on ListTree. I had surfed the net, I couldn't find something that could be of help. Please, could anyone help me out. -- Forwarded message -- From: Ajayi

Re: FormComponentPanel woes

2009-03-26 Thread triswork
Thanks Linda, That was very helpful. I also figured out that I am a complete cretin... I forgot to replace the textarea tags with tags in my original markup (where I replaced the TextArea with my LimitedTextArea *sigh*). At least that explains why I was getting weird content all the time :) T

Re: Extensible wicket application

2009-03-26 Thread Daniel Dominik Holúbek
Your application works, but it seems a bit complicated to me :) I would like to know the exact exception, but I do not know how, it tells me to call getNextException to see the cause, but ho do I do that? Have a nice day! On Thu, Mar 26, 2009 at 12:22 PM, reiern70 reier...@gmail.com wrote:

Re: best way to add tooltips in wicket

2009-03-26 Thread Roman Zechner
have a look at sweet titles http://www.dustindiaz.com/sweet-titles/ James Carman wrote: If you're interested in using static tooltips that are styled, we've had good luck with overlib. On Thu, Mar 26, 2009 at 5:34 AM, RoyBatty math...@afjochnick.net wrote: Right, thanks for all the input.

Re: TextField setPersistent is not remembering emails, only the username part of them

2009-03-26 Thread Jeremy2009
Hi, The spec. for http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/Cookie.html#setValue(java.lang.String) says it cannot include '@' so the value needs to be encoded/escaped before storing. Problem is i can't see any easy way to add this functionality without taking my own copies of

Re: best way to add tooltips in wicket

2009-03-26 Thread RoyBatty
Allright... i don't think i fetch it with ajax, but it doesn't matter. One other thing though - i couldn't see that it was possible to create a MooTip without a header, is that so? I couldn't see that there was a way to set the addTitle boolean to false. nino martinez wael wrote: There's

Re: toString( ) and naming conventions in Component class

2009-03-26 Thread Ricky
thanks, i'll create a JIRA issue and submit a patch tonight, appreciate your time! On Thu, Mar 26, 2009 at 8:31 AM, Johan Compagner jcompag...@gmail.comwrote: if you have a patch for better toString() impl be my guest and attach it to jira Those Changes classes are internal to component,

Link not getting onclick event

2009-03-26 Thread Seven Corners
I have link that is not receiving an onclick event. It links to a page in my application, and I do not want it bookmarkable. It's in a RefreshingView. The browser renders the link with the correct style for a link, but if you hover over the link, you don't get the URL to show up in the status

nested loop view

2009-03-26 Thread Luther Baker
I'm trying to create a page - similar to Jira's BROWSE PROJECTS. My initial take amounts to a loop in a loop. The outer loop is CATEGORIES and the inner loop is PROJECTS in said category. | CATEGORY 1 | p1 | p2 | p3 | CATEGORY 2 | p4 | p5 | p6 ... I've attached code below but if I removed

How to secure a Wicket 1.4 application?

2009-03-26 Thread Christian Helmbold
Hello, what would be your prefered way to secure a Wicket 1.4 application? Spring Security and Wicket-auth-roles seems to be outdated. This project suggests to use Wicket-Security. So it is presumably not the best idea to use it.

Can client cache pages effectively?

2009-03-26 Thread Jim Pinkham
I've found a few posts about how to mark dynamic pages so they won't be cached. I've got a different situation that I think is fairly common - the 'home' page of my app is effectively a (cheesr-like) catalog of items that changes infrequently. Users didn't like paging, so it's about 300 items

Re: nested loop view

2009-03-26 Thread Olivier Michallat
I think you have to add projects to the current category item, not to this (which would refer to the categories listview itself). So try replacing: this.add(projects); By: item.add(projects); 2009/3/26 Luther Baker lutherba...@gmail.com: I'm trying to create a page - similar to Jira's

Re: nested loop view

2009-03-26 Thread Jonathan Locke
i think you mean to add the projects listview to the categories list view /item/ your structure is a little dangerous here because you have one ListItem item obscuring the other. if the outer one were called outerItem and the inner one were called innerItem, i think you meant to say

Re: nested loop view

2009-03-26 Thread Jonathan Locke
uh, well maybe not dangerous, just less clear than it could be. Jonathan Locke wrote: i think you mean to add the projects listview to the categories list view /item/ your structure is a little dangerous here because you have one ListItem item obscuring the other. if the outer one

Equivalent of StackPanel for Wicket

2009-03-26 Thread HHB
Hey, I want to employ something like StackPanel of GWT in my Wicket application. Any production ready component? Thanks for help and time. -- View this message in context: http://www.nabble.com/Equivalent-of-StackPanel-for-Wicket-tp22726615p22726615.html Sent from the Wicket - User mailing

Re: Wicket architecture diagram?

2009-03-26 Thread Jeremy Thomerson
While I agree that you could take out LDM specifically, I really think that you should replace it with IModel - I think it is critical to show that IModel is the abstraction between a component and where it gets it's data. This is the number one misundertstood thing that I find among those I

Re: nested loop view

2009-03-26 Thread Luther Baker
Ahh ... but of course! Thanks both of you. The nested structure did indeed obscure the problem. Fixed and refactored a bit - and now working as expected. Thanks for your time! -Luther On Thu, Mar 26, 2009 at 12:01 PM, Jonathan Locke jonathan.lo...@gmail.comwrote: uh, well maybe not

Re: GoAndClearFiler not clearing correctly

2009-03-26 Thread Stephan Koch
I found the cause of this issue so I'm replying to myself here. This problem was actually related to the way Component#setModelObject is implemented: before setting a new model object, it is checked via Component#defaultModelComparator if the new model and the old model are the same. This is done

Re: How to secure a Wicket 1.4 application?

2009-03-26 Thread Brill Pappin
I actually find that auth-roles is very simply to use and usually all I need... if it is ever deprecated I assure you I'll revive it under another source tree. However although for some reason it says you should use wicket- security (not sure why unless wicket-security has the same simple

Re: nested loop view

2009-03-26 Thread Brill Pappin
User error :) review what element your adding the inner list to... looks like your adding it to the ListView instead of the Item. Change: this.add(projects); to item.add(projects); - Brill Pappin On 26-Mar-09, at 12:50 PM, Luther Baker wrote: I'm trying to create a page

Re: Open Session in View Pattern: some basic questions

2009-03-26 Thread Igor Vaynberg
there are three patterns to transaction management the default pattern is session-per-transaction. this is not convenient because after your business logic closes the transaction you can no longer use the session in the ui. there are two ways to solve this: either use session-per-request - which

Re: Can client cache pages effectively?

2009-03-26 Thread Jim Pinkham
Changing my search query to this got some better hits: http://lmgtfy.com/?q=cacheability So, allow me to refine my question based on that - has anyone tried some of these approaches (see first result from above) to generrate and dump content to a static file (renamed if it chages) and having the

Re: Can client cache pages effectively?

2009-03-26 Thread Jeremy Thomerson
Have you looked at a standard HTTP caching proxy like http://www.squid-cache.org/ ? -- Jeremy Thomerson http://www.wickettraining.com On Thu, Mar 26, 2009 at 2:02 PM, Jim Pinkham pinkh...@gmail.com wrote: Changing my search query to this got some better hits:

anyone see error Internal error parsing wicket:interface = iepngfix.htc?

2009-03-26 Thread novotny
Hi, In order to support .png files on IE we added a fix/hack as documented here http://www.twinhelix.com/css/iepngfix/ However in the logs we're seeing this wicket error: org.apache.wicket.WicketRuntimeException: Internal error parsing wicket:interface = iepngfix.htc at

Re: Equivalent of StackPanel for Wicket

2009-03-26 Thread Leszek Gawron
HHB wrote: Hey, I want to employ something like StackPanel of GWT in my Wicket application. Any production ready component? Thanks for help and time. the easiest way is to use jQuery, the accordion widget in particular: http://jqueryui.com/demos/accordion/ -- Leszek Gawron

Re: Wicket architecture diagram?

2009-03-26 Thread jWeekend
Jeremy, Yes, if you believe showing model on such a high level architectural diagram meant to depict how the major components hang together, then you should show IModel instead of LDM for sure. And it's true that newcomers need to understand models and can find this concept hard to grasp if they

Re: anyone see error Internal error parsing wicket:interface = iepngfix.htc?

2009-03-26 Thread Serkan Camurcuoglu
we had used iepngfix.htc method, but our css file was relative to our web application, so iepngfix.htc file was not served through wicket.. but I believe it should not be problematic.. does it cause any obvious error in the application other than the error log? novotny wrote: Hi, In order

Re: anyone see error Internal error parsing wicket:interface = iepngfix.htc?

2009-03-26 Thread Jeremy Thomerson
Without really digging into this, it looks to me to be an issue where your CSS file is being served and in your CSS you have a URL in the CSS that is causing a bad URL to be sent to the server - which Wicket is picking up and doesn't know what to do with it. It's this: url(iepngfix.htc) Use a

[SOLVED] TreeTable header div automatically resizes its width infinitely large

2009-03-26 Thread mallet
Before I finished posting this question I figured out the solution to my problem, but because it was tricky to figure out I thought I would post this anyway in case somebody else runs into the same issue. == I created an editable

Re: anyone see error Internal error parsing wicket:interface = iepngfix.htc?

2009-03-26 Thread novotny
Hi, Unfortunately it causes an InternalErrorPage-- we basically have a css file included in the html: !--[if IE]link rel=stylesheet href=css/global-ie.css type=text/css media=screen, projection/![endif]-- The css includes the iepng.htc file: img {behavior: url('../iepngfix.htc');} Nothing

Re: Open Session in View Pattern: some basic questions

2009-03-26 Thread Maarten Bosteels
Igor, IIUC, transaction-per-request will commit AFTER the response has been rendered, right ? That means that there's also risk for inconsistency: when the commit fails, user will think everything is fine, but changes are rolled back. Or am I missing something ? Maarten On Thu, Mar 26, 2009 at

Re: HTML can't reference a component (Label) multiple times?

2009-03-26 Thread Scott Swank
Surprisingly getDebugSettings().setComponentUseCheck(false) allows this behavior, at least on 1.3. add(new Label(authorName)); span wicket:id=authorName/span span wicket:id=authorName/span ... not that I'm advocating this side effect. Scott On Fri, Feb 13, 2009 at 10:26 AM, Igor

Re: HTML can't reference a component (Label) multiple times?

2009-03-26 Thread Scott Swank
Should I open a JIRA for this, or is this an accepted side-effect? Scott On Thu, Mar 26, 2009 at 2:39 PM, Scott Swank scott.sw...@gmail.com wrote: Surprisingly getDebugSettings().setComponentUseCheck(false) allows this behavior, at least on 1.3.   add(new Label(authorName));   span

Re: HTML can't reference a component (Label) multiple times?

2009-03-26 Thread Jeremy Thomerson
I think it is accepted and should be left that way. By default in development, component use check is on - so you should catch these unless you're explicitly ignoring them by turning CUC off. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Mar 26, 2009 at 4:41 PM, Scott Swank

Re: Open Session in View Pattern: some basic questions

2009-03-26 Thread James Carman
On Thu, Mar 26, 2009 at 5:34 PM, Maarten Bosteels mbosteels@gmail.com wrote: Igor, IIUC, transaction-per-request will commit AFTER the response has been rendered, right ? That means that there's also risk for inconsistency: when the commit fails, user will think everything is fine, but

Re: Can client cache pages effectively?

2009-03-26 Thread Jim Pinkham
Thanks Jerry; I think that applies only to static pages. My next idea is to try overridding WebPage.setHeaders and just set the response.setHeader(Cache-Control, max-age=3600, must-revalidate); response.setHeader(ETag, 1); // I'll use a checksum on the data coming back from my search (Even

Re: Can client cache pages effectively?

2009-03-26 Thread Jeremy Thomerson
How is this going to help you? Scenario as I understand it: 1. User requests homepage - pulls from site - with your etag in it 2. User requests homepage again - calls site - your server does all of the loading of data - then you calculate / set etag 3. Browser now knows that it is

Re: Open Session in View Pattern: some basic questions

2009-03-26 Thread Igor Vaynberg
not if you buffer the response like wicket does by default :) -igor On Thu, Mar 26, 2009 at 2:34 PM, Maarten Bosteels mbosteels@gmail.com wrote: Igor, IIUC, transaction-per-request will commit AFTER the response has been rendered, right ? That means that there's also risk for

Re: Open Session in View Pattern: some basic questions

2009-03-26 Thread James Carman
On Thu, Mar 26, 2009 at 6:32 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: not if you buffer the response like wicket does by default :) Right, but you have to make sure your filters fire in the correct order, then. If your OSIV wraps around WicketFilter, then buffering won't fix the

Re: Open Session in View Pattern: some basic questions

2009-03-26 Thread Igor Vaynberg
i already said OSIV that comes with spring doesnt support transaction-per-request, so what makes you think i am using it or any other filter? :) wicket has plenty of hooks to do this. -igor On Thu, Mar 26, 2009 at 3:36 PM, James Carman jcar...@carmanconsulting.com wrote: On Thu, Mar 26, 2009 at

Re: toString( ) and naming conventions in Component class

2009-03-26 Thread Ricky
https://issues.apache.org/jira/browse/WICKET-2187 done. thank you. On Thu, Mar 26, 2009 at 11:40 AM, Ricky ricky...@gmail.com wrote: thanks, i'll create a JIRA issue and submit a patch tonight, appreciate your time! On Thu, Mar 26, 2009 at 8:31 AM, Johan Compagner

Re: toString( ) and naming conventions in Component class

2009-03-26 Thread Ricky
I tried to implement something like: // java docs removed for clarity public abstract class ChangeFORMER extends IClusterable implements IClusterable { private static final long serialVersionUID = 1L; // former type public FORMER former; protected Change(final FORMER former) {