Re: nested forms and locale

2009-06-09 Thread Igor Vaynberg
like you were told, you have to add the textfield to the ajax target. also, if you want to repull the value from the model, textfield.clearinput() might do the trick. -igor On Mon, Jun 8, 2009 at 10:44 PM, msteffmst...@emercos.com wrote: Could anybody help on this - please ? Or maybe give me a

Is inversion of selection of tree item a reasonable default behavior?

2009-06-09 Thread Vladimir Kovalyuk
When in multiple selection mode it makes sense to inverse the selection state of tree item when user clicks on link of LinkIconPanel. But in single selection mode it is not an expected behavior. At least in MS Windows environment. Please consider the following implementation: LinkIconPanel { ...

Re: ListMultipleChoice and HashSet

2009-06-09 Thread Linda van der Pal
I've found where the problem is residing, but I'm still not quite sure what the problem is. So I've used the quickstart to make a small project that reproduces the bug. Can anyone tell me what the procedure is to make this into an actual quickstart that I can pass around? I can make some

AjaxLink and Form Validation

2009-06-09 Thread Jade
Hi all, I am having a issue with AjaxLink and thought would get help from you. I have a modal window which has a form with two ajax links, few check boxes and a AjaxButton.The check boxes are bound inside a list view. Now, out of the two ajax links - one ajax link is for checking all the

Re: nested forms and locale

2009-06-09 Thread msteff
Hello Igor, Thanks for your answer. I added the txtField to the target argument of the onSubmit of the Pressme button. It didn't help. Also seems a bit strange to me to add the fields of the outer form to the button of the inner form.. However, if i submit the outer form, then changing the

Question about FilterForm and without FilterToolbar

2009-06-09 Thread Dutrieux Olivier
Hello everybody, I am trying to use the FilterForm with TextFilter ChoiceFilter but *without *FilterToolbar because I use DataView and FilterToolbar waiting a DataTable. I can't use a DataTable because I am not use a IColumn because my columns are bizarres (see attach). The problem is that

Re: JPA EntityManager storage

2009-06-09 Thread Frank Tegtmeyer
Well when it comes to EntityManagers be sure to close, commit and clear your threadlocal instance after your service request cycle. Exactly that didn't work for me. I checked for open transactions, closed them, closed the EntityManager and even released it by setting the ThreadLocal variable

Re: JPA EntityManager storage

2009-06-09 Thread James Carman
It sounds to me like you're spending too much time fighting. You could have spent this time learning Spring (it's not that hard for what you want to do) and you'd be a happy camper right now. There's a reason so many folks use it. It works. On Tue, Jun 9, 2009 at 7:48 AM, Frank

Re: JPA EntityManager storage

2009-06-09 Thread Martin Makundi
Exactly that didn't work for me. I checked for open transactions, closed them, closed the EntityManager and even released it by setting the ThreadLocal variable to null. What do you mean you CHECK for open transactions? Although I created a new EntityManager  in onBeginRequest() I

Re: JPA EntityManager storage

2009-06-09 Thread James Carman
On Tue, Jun 9, 2009 at 8:00 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Haven't seen any benefits to Spring, yet. Well, you're in the minority. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: JPA EntityManager storage

2009-06-09 Thread Luther Baker
Maybe this link will help: https://www.hibernate.org/43.html in the class JpaUtil. I don't like this approach because it depends on the implicit assumption that each request is handled in a thread (this depends on Wicket implementation details, therefor I dislike it) This assumption is not

Re: JPA EntityManager storage

2009-06-09 Thread Luther Baker
Careful, that link got mangled: goog_1244383468413https://www.hibernate.org/43.html Hope this helps, -Luther On Tue, Jun 9, 2009 at 7:10 AM, Luther Baker lutherba...@gmail.com wrote: Maybe this link will help: https://www.hibernate.org/43.html in the class JpaUtil. I don't like this

Re: JPA EntityManager storage

2009-06-09 Thread Martin Makundi
On Tue, Jun 9, 2009 at 8:00 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Haven't seen any benefits to Spring, yet. Well, you're in the minority. That doesn't necessary mean I am wrong ;) All the fancy thins happening with spring, I just leave them out which results in a more

Re: JPA EntityManager storage

2009-06-09 Thread James Carman
On Tue, Jun 9, 2009 at 8:16 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: That doesn't necessary mean I am wrong ;) All the fancy thins happening with spring, I just leave them out which results in a more streamlined solution. Ok, there are some integrations which are easily

Re: JPA EntityManager storage

2009-06-09 Thread Martin Makundi
Yes, but the integration library is battle-tested and proven to be useful. Yesyes.. I would use it if I was integrating something big. However, attaching Hibernate is easier via vanilla java than via Spring configuration. ** Martin

Re: JPA EntityManager storage

2009-06-09 Thread James Carman
On Tue, Jun 9, 2009 at 8:26 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Yesyes.. I would use it if I was integrating something big. However, attaching Hibernate is easier via vanilla java than via Spring configuration. Good luck managing your transactions yourself (if you're

Re: Problem refreshing a table content

2009-06-09 Thread Rangel Preis
Igor, Thanks for help us. Rangel Preis. 2009/6/8 Igor Vaynberg igor.vaynb...@gmail.com: listdataprovider keeps a reference to the list, so it never sees your updated reference. i would suggest you implement idataprovider yourself. -igor

AjaxLink and Form Validation

2009-06-09 Thread Jade
Hi all, I am having a issue with AjaxLink and thought would get help from you. I have a modal window which has a form with two ajax links, few check boxes and a AjaxButton.The check boxes are bound inside a list view. Now, out of the two ajax links - one ajax link is for checking all the

Re: JPA EntityManager storage

2009-06-09 Thread Martin Makundi
Good luck managing your transactions yourself (if you're not using a JTA-enabled container) Well.. with wicket it's easy when the transactions are request-scoped. It's a different ballgame somewhere else.. but then we can have EJB3 or something. ** Martin

Re: JPA EntityManager storage

2009-06-09 Thread James Carman
On Tue, Jun 9, 2009 at 8:39 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Well.. with wicket it's easy when the transactions are request-scoped. It's a different ballgame somewhere else.. but then we can have EJB3 or something. Yes, but not all transactions are request-scoped.

Browser specific header contribution

2009-06-09 Thread Stefan Lindner
Is there a safe and official way to let an IHeaderContributor contribute a browser specific javascript library? The IHeaderContributor has ist's public void renderHead(final IHeaderResponse response) { response.renderJavascriptReference(...); }

Re: JPA EntityManager storage

2009-06-09 Thread Luther Baker
attaching Hibernate is easier via vanilla java than via Spring configuration. attaching Hibernate is [even eaiser with Guice]! :) On Tue, Jun 9, 2009 at 7:59 AM, James Carman jcar...@carmanconsulting.comwrote: On Tue, Jun 9, 2009 at 8:39 AM, Martin Makundimartin.maku...@koodaripalvelut.com

RE: Browser specific header contribution

2009-06-09 Thread Kai Mutz
You can use org.apache.wicket.protocol.http.ClientProperties. One possibility to access the client properties is using WebSession.getClientInfo().getProperties() Cheers, Kai Stefan Lindner mailto:lind...@visionet.de wrote: Is there a safe and official way to let an IHeaderContributor

Re: Mix generic HTML for Wicket

2009-06-09 Thread David Brown
Hello Igor, I have an account on wicketstuff and I see the list of wicketstuff projects that have been so-called: move to attic or deleted. I don't see how to acquire wicketstuff-crud if it has not been deleted. I have a wicket-crud.war. I could de-compile the .war. If decompilation of the .war

Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread Frank Tegtmeyer
Yes, but not all transactions are request-scoped. We have many times implemented asynchronous transactions, because the user didn't want to wait for the results. Can you give a (high level) overview how to handle such a situation in Wicket? I'm sure clients will demand such functionality

Ajax and LoadableDetachableModel

2009-06-09 Thread Luther Baker
Quick question regarding a blog engine I'm working on: my user is editing a blog Post and gets to the Category section. Category is implemented with a DropDownChoice and LoadableDetachableModel. For convenience - I also have a simple TextField that, when filled out, implicitly creates a new

submit a form using ajax

2009-06-09 Thread Juri Prokofiev
I'm trying to save form values every 30 seconds and for this purpose I use AbstractAjaxTimerBehavior class, but can't figure out how to get the form values if submit button wasn't pressed? Thank you -- http://www.autoladu.ee - kõik varuosad ühes kohas

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread Martin Makundi
In most cases I would make it thread-scoped anyways so the same structure applies. ** Martin 2009/6/9 Frank Tegtmeyer f...@fte.to: Yes, but not all transactions are request-scoped.  We have many times implemented asynchronous transactions, because the user didn't want to wait for the results.

Re: Ajax and LoadableDetachableModel

2009-06-09 Thread Linda van der Pal
Did you explicitly detach the model? Regards, Linda Luther Baker wrote: Quick question regarding a blog engine I'm working on: my user is editing a blog Post and gets to the Category section. Category is implemented with a DropDownChoice and LoadableDetachableModel. For convenience - I also

RE: Browser specific header contribution

2009-06-09 Thread Stefan Lindner
That's it! Thank you! -Ursprüngliche Nachricht- Von: Kai Mutz [mailto:kmu...@googlemail.com] Gesendet: Dienstag, 9. Juni 2009 15:19 An: users@wicket.apache.org Betreff: RE: Browser specific header contribution You can use org.apache.wicket.protocol.http.ClientProperties. One

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread James Carman
On Tue, Jun 9, 2009 at 9:40 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: In most cases I would make it thread-scoped anyways so the same structure applies. Right, but you can't use the same hooks to start/stop your transactions that you do with Wicket. You have to do it at the

Re: AjaxLink and Form Validation

2009-06-09 Thread Igor Vaynberg
ajaxlink does not submit the form so no validation will happen and it doesnt have an onsubmit method. you are mixing up ajaxlink, ajaxsubmitlink, and ajaxbutton. -igor On Tue, Jun 9, 2009 at 2:30 AM, Jadejada...@gmail.com wrote: Hi all,  I am having a issue with AjaxLink and thought would get

Re: [Bug 1.3.6] Inconsistent RequestUtils.toAbsolutePath()

2009-06-09 Thread smallufo
I've attached a quickstart code , including error case , to WICKET-2312 https://issues.apache.org/jira/browse/WICKET-2312 I think the problem may come from bookmarkablePage parsing parameters... The CurrentPage is mounted to /CurrentPage by mountBookmarkablePage(/CurrentPage ,

Re: ListMultipleChoice and HashSet

2009-06-09 Thread Igor Vaynberg
generate an archetype with maven, cmd line is here wicket.apache.org/quickstart after you are done mvn clean zip the dir attach to a jira -igor On Tue, Jun 9, 2009 at 1:40 AM, Linda van der Pallvd...@heritageagenturen.nl wrote: I've found where the problem is residing, but I'm still not quite

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread James Carman
On Tue, Jun 9, 2009 at 9:36 AM, Frank Tegtmeyerf...@fte.to wrote: Can you give a (high level) overview how to handle such a situation in Wicket? I'm sure clients will demand such functionality someday from my application. I would use some kind of batch processing system with API calls to get

Re: AjaxLink and Form Validation

2009-06-09 Thread Jade
Hi Igor, Yes, I did understand that after a deeper look. But for my use case, which would a better one to use? I cannot use a normal link as it would reload the screen and the modalwindow would vanish. Please advise. Thanks for your time. Thanks, J On Tue, Jun 9, 2009 at 4:34 PM, Igor

Re: nested forms and locale

2009-06-09 Thread Igor Vaynberg
why dont you reproduce this in a quickstart and attach it to a jira issue. on the quickstart page clearly outline what the problem is and what are the steps necessary to reproduce it. it will be much easier then discussing random snippets of code here and there. -igor On Tue, Jun 9, 2009 at 2:41

Re: AjaxLink and Form Validation

2009-06-09 Thread Igor Vaynberg
if you need to submit the form use ajaxsubmitlink, if you dont then use the normal ajaxlink. -igor On Tue, Jun 9, 2009 at 7:39 AM, Jadejada...@gmail.com wrote: Hi Igor,  Yes, I did understand that after a deeper look. But for my use case, which would a better one to use?  I cannot use a

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread Martin Makundi
On Tue, Jun 9, 2009 at 9:40 AM, Martin In most cases I would make it thread-scoped anyways so the same structure applies. Right, but you can't use the same hooks to start/stop your transactions that you do with Wicket.  You have to do it at the executor level, while it executes the job or

Re: Question about FilterForm and without FilterToolbar

2009-06-09 Thread Igor Vaynberg
why dont you just roll your own components that do what you want. as you have already observed filterform and *Filter components are made to work together. -igor On Tue, Jun 9, 2009 at 3:39 AM, Dutrieux Olivierolivier.dutri...@pasteur.fr wrote: Hello everybody, I am trying to use the

Re: Tree collapse very slow on firefox 3 for nodes with large # of children - Quickstart attached

2009-06-09 Thread Igor Vaynberg
seems your quickstart is not a quickstart - eg its missing the Start launcher usually found in src/test/java of the quickstart archetype/project. -igor On Tue, Jun 9, 2009 at 2:09 AM, Matt Shannonmshannon.wic...@gmail.com wrote: Hi, First time poster, but have been lurking for a few crazy

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread James Carman
On Tue, Jun 9, 2009 at 10:44 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Well, the executors themselves sure Start and Stop differently, but they can use same invocations for starting/stopping the entitymanagers (actually: in the discussed example the hooks used in Wicket are

Re: AjaxLink and Form Validation

2009-06-09 Thread Jade
Well - I did try using the AjaxSubmitLink, the validation happens during the link click and displays the error message..but even after the error message is shown, when I click the AjaxButton in the form, the form submit happens :-( Do I have to setDefaultFormProcessing(false) or something else I

Re: AjaxLink and Form Validation

2009-06-09 Thread Igor Vaynberg
onsubmit() is only called if validation passes or you called setdefaultformprocessing(true) on the button/submitlink. -igor On Tue, Jun 9, 2009 at 7:52 AM, Jadejada...@gmail.com wrote: Well - I did try using the AjaxSubmitLink, the validation happens during the link click and displays the

Re: Mix generic HTML for Wicket

2009-06-09 Thread Jeremy Thomerson
Do you mean how to get the source code? You could get it from the attic: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/attic/wicketstuff-crud/ -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jun 9, 2009 at 8:36 AM, David Browndbr...@sexingtechnologies.com wrote:

Re: Mix generic HTML for Wicket

2009-06-09 Thread Igor Vaynberg
svn co http://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/attic/wicketstuff-crud/ -igor On Tue, Jun 9, 2009 at 6:36 AM, David Browndbr...@sexingtechnologies.com wrote: Hello Igor, I have an account on wicketstuff and I see the list of wicketstuff projects that have been so-called: move to

Re: submit a form using ajax

2009-06-09 Thread Igor Vaynberg
you have to wire a bit of javascript to do this from the timer, see how ajaxsubmitlink does it... -igor On Tue, Jun 9, 2009 at 6:39 AM, Juri Prokofievj...@unix.ee wrote: I'm trying to save form values every 30 seconds and for this purpose I use AbstractAjaxTimerBehavior class, but can't figure

Re: AjaxLink and Form Validation

2009-06-09 Thread Jade
Nope, I am not doing a setDefaultFormProcessing(true) for the button. I am just doing the following onSubmit of the AjaxButton - setRedirect(true); setResponsePage(getApplication().getHomePage()); Thanks for your time Igor. On Tue, Jun 9, 2009 at 4:56 PM, Igor Vaynberg

AuthorizedWebApplication, Session

2009-06-09 Thread Ames, Tim
I am using the AuthorizedWebApplication and session. I have used this with success in the past, but now I need to get at the page parameters in my SignIn WebPage. The constructor: public SP_SignInPage(PageParameters parms) the parms are all null in the HashMap that shows up in Debug.

Re: AjaxLink and Form Validation

2009-06-09 Thread Igor Vaynberg
woops, i meant setdefaultformprocessing(FALSE) -igor On Tue, Jun 9, 2009 at 7:56 AM, Igor Vaynbergigor.vaynb...@gmail.com wrote: onsubmit() is only called if validation passes or you called setdefaultformprocessing(true) on the button/submitlink. -igor On Tue, Jun 9, 2009 at 7:52 AM,

[VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Jeremy Thomerson
I've created a release for Wicket 1.4-rc5. Until it is officially released, you can download from the following locations: SVN Tag: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4-rc5/ M2 Repo: http://people.apache.org/~jrthomerson/releases/apache-wicket-1.4-rc5/m2-repo/ Dist folder:

Re: AjaxLink and Form Validation

2009-06-09 Thread Jade
Oh...Anyways as of now, I am not setting the setDefaultProcessing on the AjaxButton... Thanks again! On Tue, Jun 9, 2009 at 5:06 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: woops, i meant setdefaultformprocessing(FALSE) -igor On Tue, Jun 9, 2009 at 7:56 AM, Igor

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Dipu
[X ] Yes release 1.4-rc5 [ ] No, don't release it On Tue, Jun 9, 2009 at 4:08 PM, Jeremy Thomerson jer...@wickettraining.com wrote: I've created a release for Wicket 1.4-rc5.  Until it is officially released, you can download from the following locations: SVN Tag:

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread Martin Makundi
I say that for most cases, spring is your premature optimization. Often it's not necessary to go further than the sea to fish. 20:80 rule of thumb. ** Martin 2009/6/9 Martijn Dashorst martijn.dasho...@gmail.com: Though Spring is a giant beast, it is a very nice one shop stop for your

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread James Carman
Yeah, and do you carve a fishing pole from a tree every time you want to go fishing? On Tue, Jun 9, 2009 at 11:12 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: I say that for most cases, spring is your premature optimization. Often it's not necessary to go further than the sea to

Re: AjaxLink and Form Validation

2009-06-09 Thread Jade
Here are the code snippets for a better understanding, //The form Form form = new Form(form){ /** * */ private static final long serialVersionUID = 1L; protected void validate(){ super.validate();

Re: Stateful vs stateless requests and navigation

2009-06-09 Thread J.-F. Rompre
Thank you Igor - I hadn't turned the logs on. Making the domain serializable fixed the issue. I didn't think this would happen because I am using LoadableDetachable models passed to a list view - probably serializing to produce list items - will see if individual items can be fetched from cache.

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread Martin Makundi
No, but when I am not looking for whales, I fish just using the fishing string and a hook with a worm tied to it. ** Martin 2009/6/9 James Carman jcar...@carmanconsulting.com: Yeah, and do you carve a fishing pole from a tree every time you want to go fishing?

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Jeremy Thomerson
[X] Yes release 1.4-rc5 [ ] No, don't release it -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jun 9, 2009 at 10:08 AM, Jeremy Thomersonjer...@wickettraining.com wrote: [ ] Yes release 1.4-rc5 [ ] No, don't release it

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Martin Makundi
[X ] Yes release 1.4-rc5 (if it works ;)) [ ] No, don't release it - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread Martijn Dashorst
On Tue, Jun 9, 2009 at 5:12 PM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: I say that for most cases, spring is your premature optimization. Having gone through 3 weeks of connection leak hunting because we reasoned like this and implemented our own connection and transaction

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Jade
[X] Yes release 1.4-rc5 [ ] No, don't release it On Tue, Jun 9, 2009 at 5:23 PM, Jeremy Thomerson jer...@wickettraining.comwrote: [X] Yes release 1.4-rc5 [ ] No, don't release it -- Jeremy Thomerson http://www.wickettraining.com On Tue, Jun 9, 2009 at 10:08 AM, Jeremy

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread Martin Makundi
Having gone through 3 weeks of connection leak hunting because we reasoned like this and implemented our own connection and transaction management solution (Not Invented Here), I can say with confidence: this is not Premature Optimization. Got to know your limits ;) That's a whale ... Keep

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread James Carman
On Tue, Jun 9, 2009 at 11:32 AM, Martin Makundimartin.maku...@koodaripalvelut.com wrote: Keep convincing yourself that transaction and connection management is easy. All I can do is try to make it easy by design :) Ok, I think we can just agree to disagree, but will you do me a favor? When

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Alex Objelean
[X] Yes release 1.4-rc5 [ ] No, don't release it Jeremy Thomerson-5 wrote: I've created a release for Wicket 1.4-rc5. Until it is officially released, you can download from the following locations: SVN Tag: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4-rc5/ M2 Repo:

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Johan Compagner
[XXX] Yes release 1.4-rc5 On Tue, Jun 9, 2009 at 17:08, Jeremy Thomerson jer...@wickettraining.comwrote: I've created a release for Wicket 1.4-rc5. Until it is officially released, you can download from the following locations: SVN Tag:

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Francis Amanfo
[X] Yes release 1.4-rc5 Wicket is Wicked and seems with this release it's getting even more Wicked :-) Kudos to the team. On Tue, Jun 9, 2009 at 5:23 PM, Jeremy Thomerson jer...@wickettraining.comwrote: [X] Yes release 1.4-rc5 [ ] No, don't release it -- Jeremy Thomerson

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Stefan Jozsa
[x] Yes release 1.4-rc5 Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread Martin Makundi
Ok, I think we can just agree to disagree, but will you do me a favor?  When (not if) you encounter a situation like Martijn is talking about, will you post back to the list? I just believe in principle that hunting for some bug for 3 weeks is much less waste than dragging some toolkit along

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Vasu Srinivasan
[x ] Yes release 1.4-rc5 [ ] No, don't release it Regards Vasu On Tue, Jun 9, 2009 at 11:16 AM, Stefan Jozsa stefan_...@yahoo.com wrote: [x] Yes release 1.4-rc5 Stefan - To unsubscribe, e-mail:

Re: Ajax and LoadableDetachableModel

2009-06-09 Thread Luther Baker
In my submit handler - I invoke a service to first a) the save category and then b) save the post. I put a message into the feedback panel and add the feedback panel and the drop down to the target. It is off an AjaxFallbackbutton ... so, no, I don't think I've done anything to explicitly detach

RE: AuthorizedWebApplication, Session

2009-06-09 Thread Ames, Tim
I was able to do a work-around to this by saving the Request parameters from the AuthenticatedWebSession into a PageParameters object in the session Snippet of the AuthenticatedWebSession: private PageParameters initialPageParameters; public SP_WebSession(Request request) {

PropertyModel property expression fallback

2009-06-09 Thread Guillaume Simard
Hi everyone ! I have two questions. First, I have a PropertyModel .. Something similar to this : add ( new Label(firstResidentName, new PropertyModelHouse(myHouse, residents[0].name) ) ); Where House.getResidents() returns a CollectionPerson and Person.getName() returns the Person's name (a

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread nino martinez wael
The focus these days are to simplify frameworks, for instance take guice and warp persist. Really really simple to use and to setup. Spring has a bit to learn about java configuration from these guys (I last time I tried spring was in 2.5) however I've only tried guice 1.0. If it takes 1 day to

Re: Long JPA-Transactions (was: JPA EntityManager storage)

2009-06-09 Thread nino martinez wael
thats obviously catch a whale, hehe.. 2009/6/9 nino martinez wael nino.martinez.w...@gmail.com: The focus these days are to simplify frameworks, for instance take guice and warp persist. Really really simple to use and to setup. Spring has a bit to learn about java configuration from these

Re: PropertyModel property expression fallback

2009-06-09 Thread Jeremy Thomerson
You could see my blog post [1] and adapt the DefaultIfNullModel to fit your needs. Then just wrap your property model in your newly created model. Or extend PropertyModel, override getObject and implement this in your own custom property model. I prefer composition over inheritance because you

Re: PropertyModel property expression fallback

2009-06-09 Thread Martijn Dashorst
Just create a method House#getFirstResident() that return null if there's none. And the generic type of the model should be the type that is the result of getObject(). Martijn On Tue, Jun 9, 2009 at 7:42 PM, Guillaume Simardgui...@gmail.com wrote: Hi everyone ! I have two questions. First,

Re: PropertyModel property expression fallback

2009-06-09 Thread Guillaume Simard
Thanks a lot guys ! This seems to be a question you get often, sadly I really tried googling an answer before posting here.. But I didn't find anything :( Thanks ! Guillaume On Tue, Jun 9, 2009 at 2:02 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Just create a method

Re: Write XML response

2009-06-09 Thread m_salman
I would appreciate very much if some one can tell me how can I use this method, or any other method, to display xml in a panel. I want xml to be displayed in an interactive format in a panel when a form is submitted. Thanks. -- View this message in context:

Re: Write XML response

2009-06-09 Thread Jeremy Thomerson
XML is just another type of markup. If the XML is generated by some service, etc, just use a label to display it. Otherwise, just make your markup FooPanel.xml - put your markup in their, using wicket:id tags as normal, etc. Then in FooPanel.java override getMarkupType and return xml. --

Re: Write XML response

2009-06-09 Thread m_salman
Thanks for the quick response. Well I am using the label but I get the output as booktitleBook on Logic/titleauthorAristotle/author/book How can I show that in interactive form as shown in a browser? Thanks again. Jeremy Thomerson-5 wrote: XML is just another type of markup. If the XML

Re: Write XML response

2009-06-09 Thread Jeremy Thomerson
What do you mean interactive form? Most browsers apply their own formatting to a page if the entire response is XML (response header is text/xml) and there is no stylesheet attached. I think that's what you mean - but I'm not sure. -- Jeremy Thomerson http://www.wickettraining.com On Tue,

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread francisco treacy
[x] Yes release 1.4-rc5 The list of fixed issues looks to me sizable enough to release a RC. Francisco 2009/6/9 Jeremy Thomerson jer...@wickettraining.com: I've created a release for Wicket 1.4-rc5.  Until it is officially released, you can download from the following locations: SVN Tag:

Re: Write XML response

2009-06-09 Thread m_salman
What I mean is that I click on the '+' sign and it expands, '-' sign condenses it. I think it is the response header thing. Can that be set for the label? But you do say that has to be for the entire response.. Thanks. Jeremy Thomerson-5 wrote: What do you mean interactive form? Most

Re: nested forms and locale

2009-06-09 Thread Morten Steffensen
Hello Igor, Thanks for your answers! I have made a jira issue: WICKET-2320 But... maybe this is not a bug, but rather a feature. I would just like to know how to deal with it then. Kind regards, Morten Steffensen Igor Vaynberg wrote: why dont you reproduce this in a quickstart and attach

Re: Write XML response

2009-06-09 Thread Jeremy Thomerson
It's a feature of older versions of IE - most newer versions show XML with some styling instead. But it is dependent on the entire response being XML - and having text/xml as the response type. So, no, you can't do this for a portion of the page. (barring possibly using an iframe) And, no, you

Re: Write XML response

2009-06-09 Thread Cristi Manole
Take a look here: http://www.levmuchnik.net/Content/ProgrammingTips/WEB/XMLDisplay/DisplayXMLFileWithJavascript.html Maybe this is what you want. I found this by searching on Google, but it seems very easy to integrate with wicket, change display colors, etc... Hope it helps. On Tue, Jun 9,

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Bernard
Great, meany thanks. But ... https://issues.apache.org/jira/browse/WICKET-2268 NullPointerException NPE in DiskPageStore after Session Timeout This looks both fundamental and catastrophic to me. Other issues might be hiding behind this, so I am surprised about new releases without a fix for

getting started with swarm/wasp - rendering links to secure pages

2009-06-09 Thread Christopher L Merrill
I have a question about rendering of links to secure pages when the user has not been authenticated. Based on this line from the tutorial: In addition we granted links to our homepage the right to be clicked (enable). I expected the link to either be non-visible or non-clickable - since I did

Re: [VOTE] Release Wicket 1.4-rc5

2009-06-09 Thread Timm Helbig
[X] Yes release 1.4-rc5 [ ] No, don't release it Am Tuesday 09 June 2009 17:08:05 schrieb Jeremy Thomerson: I've created a release for Wicket 1.4-rc5. Until it is officially released, you can download from the following locations: SVN Tag:

FileUploadField updating model

2009-06-09 Thread Marc Ende
Hi there, I'm planning to use a FileUploadField within a Form which I already use for insert and edit operations. Now there should be a FileUploadField within this form. It might be a completely stupid question. What happens if I have a model with a filled property which is the part which uses

Re: Tree collapse very slow on firefox 3 for nodes with large # of children - Quickstart attached

2009-06-09 Thread Igor Vaynberg
On Tue, Jun 9, 2009 at 3:41 PM, Matt Shannonmshannon.wic...@gmail.com wrote: Hi Igor, One thing I've learned reading these newsgroups is to not irritate you, or you don't get a favourable response :) isnt that how most things in life work? :) I've attached a new quickstart that does have

Two null choices in a DropDownChoice?

2009-06-09 Thread Ilja von Nagel
Does anyone know of a simple way to have more than one option with a null value in a DropDownChoice? Like: --- Any Name --- Names Don't Matter George Peter Anne Linda Where --- Names Don't Matter - would have a null value, just like Any Name I've tried adding a null value to the

WicketRuntimeException: Unable to initialize org.apache.wicket.extensions.Initializer

2009-06-09 Thread David Brown
Hello Wicket bunch, I have basically usurped all of the Datatable example from the wicket-examples.repeater folder. The result builds OK but as you see in the subject line a nasty RTE. I have Googled and mail-listed this issue but not much comes up. If anyone can shed some light please advise,

Re: Tree collapse very slow on firefox 3 for nodes with large # of children - Quickstart attached

2009-06-09 Thread Matt Shannon
Just looking at the firebug profiler, the removeNodes method from tree.js is the function that is taking way too long to complete. Checking the DOM, it looks like all nodes in tree regardless of position have their parent node set as the wicket panel surrounding the tree. I would have thought

Re: Ajax and LoadableDetachableModel

2009-06-09 Thread Luther Baker
To help others: while debugging ... I noticed that the model's 'load' method is being called before the button's onSubmit handler is invoked. So, under normal circumstances, when control reaches the submit handler and I save the value from the Textfield to the database as a 'Category' and add the

Re: Tree collapse very slow on firefox 3 for nodes with large # of children - Quickstart attached

2009-06-09 Thread Matej Knopp
There is good reason why the markup is flat and not nested. Otherwise treetable/grid wouldn't be possible. -Matej On Wed, Jun 10, 2009 at 5:39 AM, Matt Shannonmshannon.wic...@gmail.com wrote: Just looking at the firebug profiler, the removeNodes method from tree.js is the function that is