Re: JPA best-practices?

2007-11-13 Thread Anders Peterson
Chris Colman wrote: The obvious benefit in such an approach is that your POJO model and the services that you provide to implement business rules etc., remain completely portable to different persistence engines - ie., no vendor lock in. well, i thought that was JPA was all about !? No,

Re: Multi-file upload and ListView together

2007-11-13 Thread Johan Compagner
you could try with a simpler model? and see if that works? (so just new Model()) On Nov 13, 2007 8:22 AM, Franklin Antony [EMAIL PROTECTED] wrote: Thanks Igor but it doesnt seem to work still. Just some more hints: I have the listview on a form and the form is on the page. The uploads

Re: Multi-file upload and ListView together

2007-11-13 Thread Franklin Antony
I need to give it a Model that holds a collection so I did something like this Model mode = new Model() { Object getObject() { Collection holder = new ArrayList(); return holder; } } Then I do this. MultiFileUploadField ff=new

Re: Serialization of pages in a cluster/load-balancer environment ?

2007-11-13 Thread mfs
So replication of serialized pages (on the disk) is also taken care of, for which one doesnt need to worry about nything..? igor.vaynberg wrote: afaik the current pagestore will save the page to disk after its been replicated...or was that another pagestore subclass you were working on

Re: Strange behavior with DropDownChoice and PropertyModel

2007-11-13 Thread Pills
Timo Rantalaiho wrote: What's the point of this method? And why is it calling modelChanging and modelChanged? I think that normally you don't call them themselves, just override them to react when the framework calls them. Best wishes, Timo Well, I use this method to edit a

Re: question about HybridUrlCodingStrategy

2007-11-13 Thread Sebastiaan van Erk
Turns out I had a listview on the page which was generating new versions of the page. Setting setReuseItems(true) solved the versioning problem. (Which was basically the only real problem I was having). Regards, Sebastiaan Sebastiaan van Erk wrote: Hi, Thanks for the reply! Actually, in

Re: Multi-file upload and ListView together

2007-11-13 Thread Franklin Antony
Dear All, I am badly in need to implement this. Therefore I am placing the code here I really didnt want to do this. I have a feeling I am placing the collections in the wrong place. import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays;

RE: JPA best-practices?

2007-11-13 Thread Chris Colman
Chris Colman wrote: It seems it's also possible for a few other ORM tools to conform to that standard. Apart from Hibernate and JPOX you've got TopLink, Cayenne and others. That's my point. Which would you rather depend on; exPOJO or JPA? Two different things: exPOJO is a

Re: Problem with DefaultDataTable filtering?

2007-11-13 Thread Evan Chooly
bwahahahahaha. ahem. To each his own, I suppose. On Nov 13, 2007 12:26 AM, Eelco Hillenius [EMAIL PROTECTED] wrote: On Nov 12, 2007 6:33 PM, anita nichols [EMAIL PROTECTED] wrote: Please unsubscribe Nah. Nick is a good guy. Let's keep him around ;-) Eelco

AbstractAjaxTimerBehavior question

2007-11-13 Thread Clay Lehman
I have a page with an AbstractAjaxTimerBehavior that I only use between button clicks. (The work after a button click takes a while and I use this behavior to update a progress bar while the work is happening) I was wondering if either a) Is there a way to restart a timer behavior

Re: Disabling serialization/storage of pages in session?

2007-11-13 Thread Aqeel
I think your example should be simplified to include only Page A. Imagine the Facebook profile page: - You can add a wall post and after that you land on the same page with the new post shown on top. - This (in Wicket's way) should create 2 versions of your FB profile page. One with the posted

Firefox : Refresh problem

2007-11-13 Thread pokkie
I seem to be having a refresh problem with the main page of my wicket application. I am displaying a number of panels that are wrapped in a ListView. The contents of each panel is build up from the database. If I refresh the page with either (F5 or clicking the refresh button, or holding down

data tables and debugging session serialization

2007-11-13 Thread Evan Chooly
I'm having some strange behavior with a DataTable and the back button. When I back up to the page with the DT, it rerenders fine, but all my object state is gone. I click a link and the object is there but not the ID in the the object so that I get hibernate errors trying to load without an ID.

Re: JPA best-practices?

2007-11-13 Thread Uwe Schäfer
Al Maw schrieb: Hi Al Subclass WebRequestCycle, and construct it with an EntityManager. thanks! That may well be an alternative to the common ServletFilter-pattern. One question: isn´t it a little better to have the ThreadLocal Holder for the EntityManager separate from the RequestCycle,

Re: Apache Wicket 1.3.0-rc1 released!

2007-11-13 Thread Uwe Schäfer
Philip A. Chapman schrieb: +1 GENERICS! me too ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JPA best-practices?

2007-11-13 Thread Al Maw
Uwe Schäfer wrote: Subclass WebRequestCycle, and construct it with an EntityManager. thanks! That may well be an alternative to the common ServletFilter-pattern. Well, err, yes. ;-) One question: isn´t it a little better to have the ThreadLocal Holder for the EntityManager separate from

Re: data tables and debugging session serialization

2007-11-13 Thread Nick Heudecker
please unsubscribe :) On Nov 13, 2007 8:59 AM, Evan Chooly [EMAIL PROTECTED] wrote: I'm having some strange behavior with a DataTable and the back button. When I back up to the page with the DT, it rerenders fine, but all my object state is gone. I click a link and the object is there but

something unclear on page encodings in different character sets

2007-11-13 Thread Tom Desmet
Hi, I had a small question on the use of different character sets in resource encodings It seems that the parse() function of the MarkupParser contains this code xmlParser.parse(markupResourceData.getResource().getInputStream(), markupSettings.getDefaultMarkupEncoding()); So the

Wicket Meetup AMSTERDAM in 2 weeks!

2007-11-13 Thread Arje Cahn
Hi all, Here's a reminder that the Amsterdam Meetup is in slightly more than 2 weeks time! If you'd like to know more about Wicket, feel free to join us! The meetup is in an informal setting, with over 35 attendees already, and will give you some fast-paced insight in what Wicket exactly is

Re: Disabling serialization/storage of pages in session?

2007-11-13 Thread Johan Compagner
its pretty accurate yes but a back link on V2 to V1 is a pretty special made thing Because there is normally not really a link to a previous page. Because on the javaside you don't know that really. But you can ask for a specific page version if you want. johan On Nov 13, 2007 3:07 PM, Aqeel

Re: ResourceStream

2007-11-13 Thread Andrew MacKenzie
+++ Johan Compagner [wicket-users] [Tue, Nov 06, 2007 at 05:40:37PM +0100]: On 11/5/07, Andrew MacKenzie [EMAIL PROTECTED] wrote: Wicket 1.2 I've created my own implmentation of AbstractResourceStream to fetch the content for some pages from another location (they are generated by another

Problem deploying the app as portlet in Jetspeed

2007-11-13 Thread Dipu Seminlal
Hi all, I tried to deploy my application as portlet in jetspeed and it's complaining about Initialization failure I can't find anything useful in the logs I am using Jetspeed 2.1.2 and my app is build against the wicket trunk. I have given the following in my portlet.xml init-param

Doubleclicking on a refreshable Ajax button

2007-11-13 Thread Federico Fanton
Hi everyone! I'm having a problem with an ajax button and I'd like to ask for help X-) I have a DataTable with a Button, a text field and a label on every row. My objective is to be able to insert data into the text field, then click on the button and have an ajax call which 1) renders the

Add fields Dynamically

2007-11-13 Thread Marco Aurélio Silva
Hi I need to add fields to a page dynamically. I neet do build something like a survey where the questions and answers are stored on the database, so they can be changed by the administrator because this I can't create the HTML file with the fields Is there a way to do this? Thank you

Error Page

2007-11-13 Thread BatiB80
Hi, I've a question which is a little bit offtopic. I'm using a tomcat webserver and configured a error-page for error 404. In case such a error occures, do I have the possibilty to find out which page was originally requested by the user??? My error page is a .jsp so I'm able to access the

Re: Add fields Dynamically

2007-11-13 Thread Marco Aurélio Silva
Thank you Nick, I will look for this mail! On Nov 13, 2007 4:00 PM, Nick Heudecker [EMAIL PROTECTED] wrote: Hi Marco, This question has been asked a few times on the list. The solution is to create a panel for each question type. This is exactly what I did for the surveys on Eventful.

Re: ResourceStream

2007-11-13 Thread Andrew MacKenzie
+++ Andrew MacKenzie [wicket-users] [Tue, Nov 13, 2007 at 11:45:46AM -0500]: Well, I've got it up and running, but it appears that Wicket is caching 'something' because it is only requesting the content once (the first time it's hit). Even if the requests come from different browsers. I've

Re: Add fields Dynamically

2007-11-13 Thread Al Maw
Marco Aurélio Silva wrote: So, I can create a panel to each type of answer (input, dropDown, radio...) but how to add dynamic number of panels? Look at the Repeater examples at http://wicketstuff.org/wicket13 . Regards, Al

Re: Serialization of pages in a cluster/load-balancer environment ?

2007-11-13 Thread Matej Knopp
No. The old pages (serialized to disk) are only saved on one node, unless you have some kind of distributed page store. In the (possibly near) future we might support automatic replication of page store. It's on my todo list :) -Matej On Nov 13, 2007 10:17 AM, mfs [EMAIL PROTECTED] wrote: So

Re: TreeModel error

2007-11-13 Thread Matej Knopp
Thanks for the issue. Looks like a bug in AbstractTree. -Matej On Nov 12, 2007 5:47 AM, Doug Leeper [EMAIL PROTECTED] wrote: JIRA issue created ( http://issues.apache.org/jira/browse/WICKET-1148 WICKET-1148 ) -- View this message in context:

Re: data tables and debugging session serialization

2007-11-13 Thread Eelco Hillenius
Using Wicket 1.3? Try setting break points in DiskPageStore (#getPage for instance) and see if that gets you any further. Eelco On Nov 13, 2007 6:59 AM, Evan Chooly [EMAIL PROTECTED] wrote: I'm having some strange behavior with a DataTable and the back button. When I back up to the page with

Re: data tables and debugging session serialization

2007-11-13 Thread Matej Knopp
You have something transient in your model. Or something implementing Externalizable without properly serializing the properties. -Matej On Nov 13, 2007 3:59 PM, Evan Chooly [EMAIL PROTECTED] wrote: I'm having some strange behavior with a DataTable and the back button. When I back up to the

Re: Add fields Dynamically

2007-11-13 Thread Scott Swank
You could create a panel with a question and its answers. Then add such a panel repeatedly, perhaps with a ListView. - Scott On Nov 13, 2007 10:58 AM, Marco Aurélio Silva [EMAIL PROTECTED] wrote: Hi I need to add fields to a page dynamically. I neet do build something like a survey where

Re: Add fields Dynamically

2007-11-13 Thread Nick Heudecker
Yeah, either way, this is readily solvable with panels and some form of repeater. On Nov 13, 2007 1:51 PM, Scott Swank [EMAIL PROTECTED] wrote: You could create a panel with a question and its answers. Then add such a panel repeatedly, perhaps with a ListView. - Scott On Nov 13, 2007

Re: Add fields Dynamically

2007-11-13 Thread Marco Aurélio Silva
Ok, thanks, I will try! On Nov 13, 2007 4:53 PM, Nick Heudecker [EMAIL PROTECTED] wrote: Yeah, either way, this is readily solvable with panels and some form of repeater. On Nov 13, 2007 1:51 PM, Scott Swank [EMAIL PROTECTED] wrote: You could create a panel with a question and its

Re: How To Change Page Store Size in DiskPageStore?

2007-11-13 Thread Johan Compagner
as long as your server doesn't crash and isn't terminate by a kill -9 no files are leaked.. When that does happen then yes you have to clean it up. If you dont care about those files after a restart then in the script that starts your webcontainer you will just remove all the files in the work

Injecting services into Resources using wicket-spring-annotations

2007-11-13 Thread Enrique Rodriguez
Hi, I have a web app where I'm using wicket-spring-annotations to inject services into members of the Component hierarchy. This works great. I now find myself needing access to those services from within DynamicWebResources. IIUC, since Resources aren't part of the Component hierarchy, they

Re: ResourceStream

2007-11-13 Thread Johan Compagner
ahh wait your are not talking about Resource (the class and then the SharedResources) But you are talking about what the IResourceSteamLocator does return for Markup and other kind of (classpath) Resources? Yes those are cached in 1.2 we didn't cache properties files yet, But the Localizer does

Re: Injecting services into Resources using wicket-spring-annotations

2007-11-13 Thread Igor Vaynberg
in the resource's constructor add this line: InjectorHolder.getInjector().inject(this); then you can use that class just like a component -igor On Nov 13, 2007 2:15 PM, Enrique Rodriguez [EMAIL PROTECTED] wrote: Hi, I have a web app where I'm using wicket-spring-annotations to inject

Leaf menus stop responding after collapse and expand

2007-11-13 Thread yadubi
I have an application which is modeled on ajax SimpleTreePage example. Navigation is handled by overriding the onNodeLinkClicked of the LinkTree class. There are tree levels of nesting in the menu, the second level has multiple leaf nodes. Everything works as expected until I collapse and expand

Using the WicketTester WITHOUT rendering a response on submit

2007-11-13 Thread mclev
Hi all, I've been evaluating Wicket and I'm excited about using it. As part of my evaluation I have been investigating how easy it would be to test my pages, especially those containing forms. So my testing evaluation set out to answer these questions: 1. Can I use Guice injection in a way

Re: Leaf menus stop responding after collapse and expand

2007-11-13 Thread Eelco Hillenius
On Nov 13, 2007 3:31 PM, yadubi [EMAIL PROTECTED] wrote: I have an application which is modeled on ajax SimpleTreePage example. Navigation is handled by overriding the onNodeLinkClicked of the LinkTree class. There are tree levels of nesting in the menu, the second level has multiple leaf

Re: CheckGroup not selecting according to model

2007-11-13 Thread Nick Heudecker
The CheckGroup model needs to have the collection of objects you want checked, not the Check object. On Nov 13, 2007 6:13 PM, Nick Busey [EMAIL PROTECTED] wrote: So I've got an object called ExternalContact with a selected Boolean and corresponding getters and setters. ExternalContact

DropdownChoice, Ajax, and LoadableDetachableModel

2007-11-13 Thread Toscano
Hello, I have two Dropdowns: Countries and Regions. When changing Countries, it goes to database and refresh the Regions with Ajax nicely. The first time the page loads, it will get the selected country from the database, and should show the regions but I don't really know how to do this.

Re: DropdownChoice, Ajax, and LoadableDetachableModel

2007-11-13 Thread Igor Vaynberg
there is no difference between a regular page load and ajax see here http://wicketstuff.org/wicket13/ajax/choice.1 -igor On Nov 13, 2007 7:13 PM, Toscano [EMAIL PROTECTED] wrote: Hello, I have two Dropdowns: Countries and Regions. When changing Countries, it goes to database and refresh

Re: DropdownChoice, Ajax, and LoadableDetachableModel

2007-11-13 Thread Toscano
Hello Igor, Thank you for your message. My code was taken from that example, but the problem was a different one. Finally I found the solution, was as simply as change the AbstractReadOnlyModel for the LoadableDetachableModel. Thanks anyways! Oskar igor.vaynberg wrote: there is no

framework dependencies

2007-11-13 Thread Yevgeni Kovelman
Hello everyone, I have been using wicket 1.2.6 with Spring and hibernate for the past month or so. Seems like a standard configuration. So to summarize here is my configuration that used to work: 1. Wicket 1.2.6 2. Wicket-extensions 1.2.6 3. Wicket-spring 1.2.6 4.

Re: framework dependencies

2007-11-13 Thread Eelco Hillenius
This doesn't seem to be related to dependencies, certainly not anything Wicket related. Did you update Hibernate and/ or your JDBC driver recently? Btw, if you're just starting out with Wicket, I'd recommend you pick up Wicket 1.3. Eelco On Nov 13, 2007 10:23 PM, Yevgeni Kovelman [EMAIL

RE: framework dependencies

2007-11-13 Thread Yevgeni Kovelman
Eelco, I've been using oracle jdbc driver for about 3 weeks consistently as well as libraries below. Then I spent a few days building up my dataset programmatically and decided to create a list of dependencies for the project, that's when all the hell broke loose. I thought perhaps there is

Re: framework dependencies

2007-11-13 Thread Eelco Hillenius
On Nov 13, 2007 10:52 PM, Yevgeni Kovelman [EMAIL PROTECTED] wrote: Eelco, I've been using oracle jdbc driver for about 3 weeks consistently as well as libraries below. Then I spent a few days building up my dataset programmatically and decided to create a list of dependencies for the

Re: ResourceStream

2007-11-13 Thread Johan Compagner
in 1.3 you can override some methods of your page that shouldn't me cached. don't know from top of my head what the 1.2 methods are but in 1.3: * public* MarkupStream getAssociatedMarkupStream(*final* *boolean*throwException) (of the MarkupContainer) and then make the call: *