Re: JPA EntityManager storage

2009-06-05 Thread Martin Makundi
To stress this point: EntityManager should not be visible in Wicket UI Eclipse Project namespace (classpath). ** Martin 2009/6/5 Frank Tegtmeyer : >> Putting the EntityManager in the Request means you >> have to pass the Request around into your business logic layer. > > Ok, that's a convincing

Re: Wicket and HTML5

2009-06-05 Thread Johan Compagner
and what browser are you planning to target... When will be the day that 50-80% of the users are using a html5 browser... On Fri, Jun 5, 2009 at 18:49, Igor Vaynberg wrote: > what features are you referring to? > > -igor > > On Fri, Jun 5, 2009 at 5:32 AM, Gabriel > Kastenbaum wrote: > > Hi e

Re: JPA EntityManager storage

2009-06-05 Thread Frank Tegtmeyer
> Putting the EntityManager in the Request means you > have to pass the Request around into your business logic layer. Ok, that's a convincing point. Thank you. Regards, Frank - To unsubscribe, e-mail: users-unsubscr...@wicket.

Re: WWB for W 1.4 (was Re: when will be wicket 1.4 final release)

2009-06-05 Thread danisevsky
Hi Daniel, when I tried build web beans project I get the following error [ERROR] BUILD FAILURE [INFO] [INFO] Compilation failure C:\projects\webbeans\wicketwebbeans-databinder\src\main\java\com\googlecode\wick etwebbeans\da

Re: Logging to an additional File

2009-06-05 Thread Francisco Diaz Trepat - gmail
:-) Tonio, my man. Thank you so much for your reply. I'm looking for some alternatives. I'll see to post (mail) my conclusions if any. f(t) On Fri, Jun 5, 2009 at 3:36 PM, Tonio Caputo wrote: > Francisco, > > I'm not a wicket expert (as you know), the log4j configuration seems to be > ok, so

Re: Logging to an additional File

2009-06-05 Thread Tonio Caputo
Francisco, I'm not a wicket expert (as you know), the log4j configuration seems to be ok, so probably the reason for the problem is in other place. hope this helps tonio On Thu, Jun 4, 2009 at 5:18 PM, Francisco Diaz Trepat - gmail < francisco.diaztre...@gmail.com> wrote: > Hi all, > I'm hav

Re: Wicket and HTML5

2009-06-05 Thread Igor Vaynberg
what features are you referring to? -igor On Fri, Jun 5, 2009 at 5:32 AM, Gabriel Kastenbaum wrote: > Hi everyone, > > I was watching (part of) the video about google wave and they say it is full > html5. It made me think of one thing, maybe html isn't "that" a thing of the > past... > Is there a

Re: JPA EntityManager storage

2009-06-05 Thread John Krasnay
On Fri, Jun 05, 2009 at 04:28:07PM +0200, Frank Tegtmeyer wrote: > > > Don't fall into the trap of premature optimization! > > Hm. Maybe I'm in this trap already. > But what is wrong with binding a resource directly to the request when > it is used exactly for the lifetime of the request? For me

Re: how to call javascript with AjaxPagingNavigator ?

2009-06-05 Thread Igor Vaynberg
you can override the factory that creates the next link, and return a link subclass that calls the javascript you want. -igor 2009/6/5 新希望软件 -- 俞宏伟 : > Hi, all > > I need to call javascript after jumping to the next page, how can I do this? > > i try to add Behavior to my ajaxpagingNavigator, > >

Re: ListMultipleChoice and HashSet

2009-06-05 Thread Igor Vaynberg
you can create a quickstart and attach it to a jira issue. its hard to tell without having all the code. -igor On Thu, Jun 4, 2009 at 11:49 PM, Linda van der Pal wrote: > That is very strange, as this is the code in the domain model: > >   public Set getFriends() { >       return friends; >   } >

Re: JPA EntityManager storage

2009-06-05 Thread Frank Tegtmeyer
> You may find these of interest: > http://javanotepad.blogspot.com/2007/08/managing-jpa-entitymanager-lifecycle.html Yes, if I need that level of flexibility (which I don't need). I pay with complexity of the implementation. Anyway, this is a nice lesson, thanks for the link! Regards, Frank -

Re: JPA EntityManager storage

2009-06-05 Thread Christopher L Merrill
Frank Tegtmeyer wrote: > would the Request object be a good place to store a JPA EntityManager? > It would be created in onBeginRequest() and destroyed in > onEndRequest() of the RequestCycle object. You may find these of interest: http://javanotepad.blogspot.com/2007/08/managing-jpa-entityman

Re: DropDownChoice - required, one item so preselection?

2009-06-05 Thread m_salman
Thanks so much for yoru response. I tried a few things from your response and one solution solved the problem. I changed the ChoiceRenderer constructor to include the "id" part. And it worked. So here is the code: form = new Form(

Re: JPA EntityManager storage

2009-06-05 Thread Martin Makundi
> But what is wrong with binding a resource directly to the request when > it is used exactly for the lifetime of the request? a) sounds complex b) you are BINDING it. The less you have dependencies on _specific_ bound components, the better.. in general. ** Martin > > >

Re: DropDownChoice - required, one item so preselection?

2009-06-05 Thread Brill Pappin
Set the expected value of the id part in your form model (the model where the dropdown will store the submitted value). when the dropdown renders it will use the existing value to preset the choice. In your code below, it looks like the model is created new every time. for this to work, the

ModalWindow content doesn't work in Firefox 3 in 1.4 rc4

2009-06-05 Thread Johan Haleby
Hi, I'm creating a standard Wicket Modal Window and adding a Panel to it using modalWindow.setContent(new MyPanel(..)); The modal window pops up and displays a header but the content is completely empty in Firefox. Everything works fine in Internet Explorer though. Have anyone experienced the sam

Re: Mix generic HTML for Wicket

2009-06-05 Thread Brill Pappin
Yes. not to be rude, but your missing a bit of the concept of WIcket here... the point is that the html *is* generic. There are options for displaying table data fairly quickly, but in no case (that I know of) are you going to get it for free without doing anything at all. I recommend you

Re: JPA EntityManager storage

2009-06-05 Thread Frank Tegtmeyer
> Don't fall into the trap of premature optimization! Hm. Maybe I'm in this trap already. But what is wrong with binding a resource directly to the request when it is used exactly for the lifetime of the request? For me this only sounds logical compared to the pragmatic approach using a ThreadL

YUI drag and drop problem in Wicket 1.4 rc4

2009-06-05 Thread Johan Haleby
Hi, I'm using the latest snapshot of the YUI drag and drop component (a YuiDDListView) for Wicket 1.4 rc4. The problem is that there seems to be a bug in the code and the position parameter is lost. This means that where ever you drop a component it will always end up at the first position in the

Re: JPA EntityManager storage

2009-06-05 Thread Martin Makundi
> 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) Don't fall into the trap of premature optimization! ** Martin --

Re: JPA EntityManager storage

2009-06-05 Thread Martin Makundi
I would just use a ThreadLocal variable in some static EntityManagerUtil/Helper class. ** Martin 2009/6/5 Frank Tegtmeyer : > Hi, > > would the Request object be a good place to store a JPA EntityManager? > It would be created in onBeginRequest() and destroyed in > onEndRequest() of the RequestCy

Autocomplete - show more alternatives

2009-06-05 Thread Jon Jaatun
Hi, We are trying to add an option to an autocompletetextfield to allow showing more alternatives if we have more suggestions than is actually shown. We want to show this in either a new panel on the original page the autocomplete is on or showing it in a modal window. In the process we have copied

JPA EntityManager storage

2009-06-05 Thread Frank Tegtmeyer
Hi, would the Request object be a good place to store a JPA EntityManager? It would be created in onBeginRequest() and destroyed in onEndRequest() of the RequestCycle object. I saw two other options already: - use a filter in combination with Spring (I don't want to use Spring yet - this woul

Wicket and HTML5

2009-06-05 Thread Gabriel Kastenbaum
Hi everyone, I was watching (part of) the video about google wave and they say it is full html5. It made me think of one thing, maybe html isn't "that" a thing of the past... Is there any support of HTML 5 features planned for Wicket? Have a good day, Gabriel K.

Re: Dynamic green or red UL background for FeedbackPanel

2009-06-05 Thread Luther Baker
This worked out for me: *html* [feedback] *Java* final Panel panel = new FeedbackPanel("feedbackPanel"); ... and then as necessary panel.add(new SimpleAttributeModifier("class", "info")); or panel.add(new SimpleAttributeModifier("class", "error"));

WWB for W 1.4 (was Re: when will be wicket 1.4 final release)

2009-06-05 Thread Daniel Toffetti
danisevsky gmail.com> writes: > > Hi, > I would like ask you when I can expect wicket 1.4 final release? I am asking > because I am waiting for wicket web beans which will be release after filnal > wicket 1.4 release. > Thanks for answer. > Hi, Wicket Web Beans has been updated to Wicket 1

Re: Could TinyMCE Upload pictures or files

2009-06-05 Thread Janos Cserep
I'm using the following custom tinymce javascript initialization (I don't use the default which comes with wicket-tinymce, but put this together manually). I override the image button of tinymce so the callback can change the whole panel and display a selector one. The user can use the selector pan

Re: Different xml property filename for the markup and java

2009-06-05 Thread jensiator
That is what I missed! That must be the solution. Thanks Igor Jens -- View this message in context: http://www.nabble.com/Different-xml-property-filename-for-the-markup-and-java-tp23847329p23885796.html Sent from the Wicket - User mailing list archive at Nabble.com. ---

Re: Wicketstuff-artwork and jQuery

2009-06-05 Thread nino martinez wael
Great to hear..:) What about some screen shots? 2009/6/4 Stefan Jozsa : > > Fixed! > > Last (minute/hour) version of WicketJQuery.jar helped, that is > Wicketstuff-artwork is no more messed by JQuery based drag&drop. > > Thanks to Stefan Lindner, > > Stefan (Jozsa) > > > --- On Thu, 6/4/09, Stefa

how to call javascript with AjaxPagingNavigator ?

2009-06-05 Thread 新希望软件 -- 俞宏伟
Hi, all I need to call javascript after jumping to the next page, how can I do this? i try to add Behavior to my ajaxpagingNavigator, myAjaxpagingNavigator.add(new AbstractBehavior() { @Override public void renderHead(IHeaderResponse iHeaderResponse) {