Re: Dynamic green or red UL background for FeedbackPanel

2009-06-05 Thread Jeremy Thomerson
You actually could - write a behavior that runs through the messages that the FP will be displaying and set the class based on it. Or subclass FP and do the same. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Jun 5, 2009 at 12:53 AM, Luther Baker lutherba...@gmail.com wrote: Yep

FormComponentPanel - ajaxifying

2009-06-05 Thread Ned Collyer
Hi, I have a FormComponentPanel which contains several select boxes. selectTitle/select selectModel/select selectTransmission/select I'd like to be able to be able to do the following - but not sure how to achieve it. MyAwesomeComponent extends FormComponentPanel new

Re: Dynamic green or red UL background for FeedbackPanel

2009-06-05 Thread Luther Baker
Thanks ... I will try to apply a behavior ... -Luther On Fri, Jun 5, 2009 at 1:02 AM, Jeremy Thomerson jer...@wickettraining.comwrote: You actually could - write a behavior that runs through the messages that the FP will be displaying and set the class based on it. Or subclass FP and do

Re: Could TinyMCE Upload pictures or files

2009-06-05 Thread rolandpeng
I meet this requirement,too. anyone have solutions? or any comments will be welcome. thanks. Nino.Martinez wrote: Add a upload field to the page.. And reference that from tinymce? Mead wrote: Hello All, Could TinyMCE upload pictures or files? I run the example of TinyMCE(from wicket

Re: ListMultipleChoice and HashSet

2009-06-05 Thread Linda van der Pal
That is very strange, as this is the code in the domain model: public SetUser getFriends() { return friends; } public void setFriends(final SetUser friends) { this.friends = friends; } So I don't see why it would recognize the getter, but not the setter. Linda

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) {

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 stefan_...@yahoo.com: Fixed! Last (minute/hour) version of WicketJQuery.jar helped, that is Wicketstuff-artwork is no more messed by JQuery based dragdrop. Thanks to Stefan Lindner, Stefan (Jozsa) --- On Thu,

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: 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

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

2009-06-05 Thread Daniel Toffetti
danisevsky danisevsky at 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

Re: Dynamic green or red UL background for FeedbackPanel

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

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.

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

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

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 f...@fte.to: 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

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

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 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

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

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

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,

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 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 FormIParameterMetaData(

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:

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: 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 新希望软件 -- 俞宏伟 nhsoft@gmail.com: 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

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 Kastenbaumgabriel.kastenb...@gmail.com 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

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 having

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 ton...@exeo.com.ar wrote: Francisco, I'm not a wicket expert (as you know), the log4j configuration seems

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

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 igor.vaynb...@gmail.com wrote: what features are you referring to? -igor On Fri, Jun 5, 2009 at 5:32 AM, Gabriel

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 f...@fte.to: Putting the EntityManager in the Request means you have to pass the Request around into your business logic layer. Ok, that's a