Re: [Wicket-user] WicketTester and checkAccess redirections

2006-04-11 Thread Juergen Donnerstag
No, it is not expected. Would you please copy the unit test and send it to me. I make sure it'll work in 1.2 Juergen On 4/11/06, Gustavo Hexsel [EMAIL PROTECTED] wrote: Hi, I'm using Wicket 1.1.1 and trying to get my first WicketTester to work with the current app. I can't seem to get

Re: [Wicket-user] script element is not a valid html 4 or xhtml

2006-04-11 Thread Juergen Donnerstag
please open a bug report in sourceforge. Juergen On 4/11/06, nato [EMAIL PROTECTED] wrote: Wicket adds script element which is not a valid html 4 or xhtml because it does not specify the type attribute. I think it's a bug. --- This SF.Net

Re: [Wicket-user] zero session state/stateless pages

2006-04-11 Thread Johan Compagner
We did defer it as long as possible until 1 or 2 days ago and we dropped that again. Because it is almost not doable and it is currently not very easy to make a completely stateless website with wicket anyway. But that is just the default behaviour. You could if you want make youre own

[Wicket-user] Wicket 2 (beta 3) and Resin 3.0.18 on SuSE 9.3 FileNotFoundException Too many open files

2006-04-11 Thread Tom Desmet
Hi all, On my company, we have an issue with wicket 2.0 beta 3 and Resin 3.0.18. After resin is active for a while, a stack trace occurs in the logfile with the following exception ... FileNotFoundException (Too many open files). The exception occurs multiple times. We have tested with our own

RE: [Wicket-user] DataTable formatting

2006-04-11 Thread Frank Silbermann
The CSS attribute empty-cells: show works in Mozilla, but not in IE 6.0 are there any work-arounds? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Heudecker Sent: Monday, April 10, 2006 4:12 PM To: wicket-user@lists.sourceforge.net

Re: [Wicket-user] DataTable formatting

2006-04-11 Thread Nick Heudecker
It works in IE as well, depending on the contents of the TD. Can you paste a bit of the markup?On 4/11/06, Frank Silbermann [EMAIL PROTECTED] wrote: The CSS attribute 'empty-cells: show' works in Mozilla, but not in IE 6.0 – are there any work-arounds? -Original

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Vincent Jenks
OK, this doesn't appear to work. I finally got around to testing this and I still get a LazyInitializationException. I passed the model around and it's barfing. main page (ViewBlog.class): //get object graph in detachable model IModel blogModel = new

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Igor Vaynberg
you are still not using a model for the listview, you are binding the listview to hibernate's lazy initializable set instead in this line:add(new ListView(categoriesView, ((Blog)getModelObject()) .getCategories())try changing that to:add(new ListView(categoriesView, new PropertyModel(blogModel,

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Vincent Jenks
I changed the param to look like yours: new PropertyModel(blogModel, categories) ...and I get the same exception...no luck! On 4/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote: you are still not using a model for the listview, you are binding the listview to hibernate's lazy initializable set

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Andrew Berman
You need Open Session In View -- http://www.hibernate.org/43.htmlOn 4/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote:in that case your container's persistence mechanism is closing the underlying hibernate session after the end of the invocation? this is a container specific problem not a wicket

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Vincent Jenks
Yes...if I were using plain Hibernate and not EJB3...like I explained in my first post. I need another way of making this work (as Igor said...a way to keep the session open somehow in the container) - a way that wouldn't require any Hibernate-specific coding... I've built several plain

[Wicket-user] RE: WicketTester and checkAccess redirections

2006-04-11 Thread Gustavo Hexsel
Juergen gave me some pointers and I decided to try migrating to 1.2. I have to say things are quite a bit more complicated now... how do I get access to the request from an AuthorizationStrategy? I need to check if the request's IP is within a pre-configured range. Before, I was doing

Re: [Wicket-user] RE: WicketTester and checkAccess redirections

2006-04-11 Thread Igor Vaynberg
RequestCycle.get().getRequest()..-IgorOn 4/11/06, Gustavo Hexsel [EMAIL PROTECTED] wrote:Juergen gave me some pointers and I decided to try migrating to 1.2.I have to say things are quite a bit more complicated now...how do I get access to the request from an AuthorizationStrategy?I need to

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Marco Geier
you could wrap a transaction around the render phase) (and also around the event processing phase, or both, depending on your RenderStrategy) The key is: UserTransaction ut = (UserTransaction) new InitialContext().lookup(java:comp/UserTransaction); But you may need to reattach beans to the

[Wicket-user] nabble maillist reader

2006-04-11 Thread Zenrique Steckelberg
Hi all, I've found out this web maillist reader, thought it's nice: httP://www.nabble.com you can check wicket's by this link: http://www.nabble.com/Wicket-f13974.html by the way, wicket's maillist ranks currently as third in sourceforge's most active maillists! Congrats for such a great

Re: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread Michael Day
I actually haven't been able to get this to happen, but the jsessionid should be on all of the bookmarkable URLs on the first hit. I understand that google will crawl a site that has sessions to some extent, but you won't compete with sites that don't have jsessionid in the URLs when it

Re: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread Johan Compagner
but it is up to wicket.We do call response.encodeUrl if we don't do that then jsessionid is not inserted into the url.But if we don't do that then sessions could be lost when a browser has cookies disabled.. johanOn 4/11/06, Nathan Hamblen [EMAIL PROTECTED] wrote: Michael Day wrote: If not, then

Re: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread cowwoc
Off the top of my head, because you are likely using an older version of Wicket where we did not encode the URL. I believe that was a bug ;) The most current version always encodes the URL. Remember, if you do not encode the URL, you risk losing the session without warning. Gili Michael

RE: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread Gustavo Hexsel
Mine is also not adding the session to the URL. Isn't this automatically handled by the servlet engine (tomcat or jetty) without wicket or programmer intervention? That's probably why some of us don't see it... browser brand and version versus servlet engine version. []s Gus

Re: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread cowwoc
The problem is that: 1) GoogleBot will hit the same page with different JSESSIONID each time. It'll think that these are different pages and lower your page rank because (from its point of view) your website contains different page URLs with the same content (looks like you're trying to

[Wicket-user] Testing attribute modifiers

2006-04-11 Thread Gustavo Hexsel
Is there a way to test the final result of an attribute modifier? I'm using them to set the src attribute of some img tags, set parameters on certain javascript functions, etc. But I haven't seen any example of how to validate if it's working correctly. Thanks! []s Gus

Re: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread Johan Compagner
No it is because what gili says. Not all urls where encoded in previous versions of wicket.Now they are and no it is up to us to call the right method on the response object so that the url gets encoded.It is not auto handles how can they do that? Analyse the complete generated html and see what a

Re: [Wicket-user] Testing attribute modifiers

2006-04-11 Thread Johan Compagner
see our unit tests.Just generate the page output in a WicketUnitTest and compare it what you expect.johanOn 4/11/06, Gustavo Hexsel [EMAIL PROTECTED] wrote:Is there a way to test the final result of an attribute modifier?I'm using them to set the src attribute of some img tags, set parameters on

Re: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread Michael Day
I'm using resin with wicket 1.2-beta3... Isn't it fixed in this version? On Apr 11, 2006, at 5:33 PM, cowwoc wrote: * PGP Signed by an unknown key: 04/11/06 at 17:33:36 Off the top of my head, because you are likely using an older version of Wicket where we did not encode the URL. I

Re: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread Eelco Hillenius
I think it is possible, but as you can read from Martijn's reply and the issue I created for this just today, not for this release, as it means an API break. See (and track) http://sourceforge.net/tracker/index.php?func=detailaid=1468853group_id=119783atid=684975 Eelco On 4/11/06, Michael Day

Re: [Wicket-user] Testing attribute modifiers

2006-04-11 Thread Igor Vaynberg
you have to setup a mock request cycle and request/response just like wicket tester does in order to render components.-IgorOn 4/11/06, Gustavo Hexsel [EMAIL PROTECTED] wrote: RequestCycle.get() returns null for me.This is my testing code (the HeaderPanelSource just stores some attributes needed

Re: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread cowwoc
I think you're being overeager here. There is no good reason for disallowing normal users with cookies disabled to not use URL rewriting. Stripping JSESSIONID *only* for crawlers still sounds like the best workaround/hack to me. Gili Nathan Hamblen wrote: cowwoc wrote: 1) GoogleBot

Re: [Wicket-user] Re: zero session state/stateless pages

2006-04-11 Thread cowwoc
Using robots.txt isn't really an option because correctly all Wicket pages require a Session. You are right that all these suggestions are nothing more than workarounds and ideally we should be deferring Session creation inside Wicket... somehow :) Gili Michael Day wrote: On Apr 11,

[Wicket-user] DropDownChoice and POJO

2006-04-11 Thread flemming
Hi wicketeers I have a small problem with DropDownChoice that I have been staring at for hours... Now I have a ListView containing two textfields (working fine!) and a dropdownbox. And this is my problem. == add (new ListView(partnerListe, partner){

[Wicket-user] HTTP POST from Acrobat

2006-04-11 Thread kurt heston
I've got some legacy PDFs laying around that utilize the HTTP submit functionality available when using Acrobat fillable forms. The servlet I have answering these Acrobat requests saves off the field names and values submitted in a 3 column table (rec id, field name, value). We change the

Re: [Wicket-user] EJB3/Hibernate Lazy fetching...

2006-04-11 Thread Vincent Jenks
So, when I reference these persistent child collections, won't they also need to be wrapped in a detachable model, i.e. when they're passed to a ListView? Or, because they're child objects of an already detachable model, are they detached? On 4/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote: ah,

Re: [Wicket-user] HTTP POST from Acrobat

2006-04-11 Thread kurt heston
Here's what my servlet does, minus the Hibernate code: pre protected void doPost(HttpServletRequest arg0, HttpServletResponse arg1) throws ServletException, IOException { Enumeration e = arg0.getParameterNames(); while (e.hasMoreElements()) { String parm = (String)