Re: Design Rules for Application

2010-05-26 Thread Per Newgro
Hello Christian, good starting points (beside the really good existing wicket books) are here http://wicket.apache.org/ http://www.wicketstuff.org/wicket14 https://cwiki.apache.org/WICKET All you asked for is out there. Other source of knowledge is this mailing-list. Search older entries by

Displaying message from ConversionException

2010-05-26 Thread Michal Jedynak
Hello. Iv'e got a TextField that uses my custom converter which throws several ConversionException with different messages. How can I display a message of the exception on a page? In my properties file I've got a property 'form.component.IConverter' which shows message that I define, but I don't

Dataview linkedline

2010-05-26 Thread midikem
Hi, I want to be able to select a line in my dataview and onClick on the line i want something to happend. My guess is that i use LinkPanel in some way but how do I do it? I have been looking around for a while, but i cant find the answear. Thx. -- View this message in context:

set focus on IE

2010-05-26 Thread Alexander Monakhov
Hi, guys. Here is code I'm using to show modal window in response of AjaxLink onClick event: public void onClick( AjaxRequestTarget target ) { modal.show( target ); target.focusComponent( getComponentToBeFocuse() ); } It's working correctly on FireFox and Opera, but isn't working on

Re: Clear URL parameters

2010-05-26 Thread Erik van Oosten
If the user only browsed stateless pages up to that point there is no http session, but only a new wicket session for each request. You can call WebSession.bind() to force the creation of a http session. Regards, Erik. Op 24-05-10 17:51, andres.santana wrote: Does redirect affects a

RE: drag and drop

2010-05-26 Thread Stefan Lindner
I think this is a general Wicket problem. You have component A originally attached to Container C1 an then call Container C2.add(A). This means you want to remove Component A from Parent C1 and add it to Parent C2? Is this what you are doing? Stefan -Ursprüngliche Nachricht- Von:

RE: drag and drop

2010-05-26 Thread DerBernd
Exactly, this is what I want to do! Can you tell me how to solf this problem? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/drag-and-drop-tp1881857p2231455.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: drag and drop

2010-05-26 Thread Ernesto Reinaldo Barreiro
Why don't you use repeaters? What about C1 and C2 contains a repeaters a draw contents based on some Info. When you move A from C1 to C2 then you just move InfoA, info associated twith A, from C1 to C2 and then repaint them. As they are dynamically generated based on Info then the effect will be

Re: drag and drop

2010-05-26 Thread Ernesto Reinaldo Barreiro
Is my poor English is getting worse because of lack of sleep? Why don't you use repeaters? 1-Let's say C1 and C2 contain repeaters that draw their contents based on some list of Info classes. 2-When you move A from C1 to C2 then you just move InfoA, info associated twith A, from C1 to C2 and

Re: Veil behavior of wicketstuff-minis

2010-05-26 Thread nmetzger
This is pretty easy to do. I added a veil to my page by implementing IAjaxIndicatorAware, adding the method getAjaxIndicatorMarkupId() and providing style definitions on the html side. Like this: public class MyPage extends WebPage implements IAjaxIndicatorAware{ public MyPage(){

Re: change (redirect) the markup html file

2010-05-26 Thread Daniel Aschauer
Thanks! But, I don't have a setStyle in WebPage-class, there is a setStyle-method only in ResourceReference? How could I use this? Daniel 2010/5/25 Jeremy Thomerson jer...@wickettraining.com: You could use style for this if you'd like, and use a PageParameter to set the style in the

Guice singleton scope

2010-05-26 Thread Marek Šabo
Hi all, I wanted to try the @Singleton annotation in guice with sort of data facade. What concerns me is the scope of the created singleton. Javadoc says its a singleton per Injector. So if I create configured InjectorHolder and return Injector in Application's init(), does it mean there is a

Re: Guice singleton scope

2010-05-26 Thread James Carman
That's not a singleton at all. That's a session-scoped bean. On Wed, May 26, 2010 at 12:45 PM, Marek Šabo ms...@buk.cvut.cz wrote: Hi all, I wanted to try the @Singleton annotation in guice with sort of data facade. What concerns me is the scope of the created singleton. Javadoc says its a

Re: Guice singleton scope

2010-05-26 Thread Marek Šabo
Yes, I gather that is correct term for this. What would be the proper way to implement it? Just put a referrence with @Inject in the custom WebSession? Anyway, ad my first question, I suppose then the singleton would be in the scope of whole application thus needing synchronization. Regards On

Re: Guice singleton scope

2010-05-26 Thread James Carman
On Wed, May 26, 2010 at 1:05 PM, Marek Šabo ms...@buk.cvut.cz wrote: Yes, I gather that is correct term for this. What would be the proper way to implement it? Just put a referrence with @Inject in the custom WebSession? Anyway, ad my first question, I suppose then the singleton would be in

Re: Dataview linkedline

2010-05-26 Thread Igor Vaynberg
add a link to your item, and put everything into the link. -igor On Wed, May 26, 2010 at 2:19 AM, midikem ext.anders.nyst...@apotekensservice.se wrote: Hi, I want to be able to select a line in my dataview and onClick on the line i want something to happend. My guess is that i use

Re: wicket file upload

2010-05-26 Thread mdh
create your own FileItemFactory that returns a DatabaseImageStorageFileItem (which you'll have to create). When the request is processed, your DatabaseImageStorageFileItem will be created I understand your idea, but I still have the problem of how do I make the request use my

Re: [PROPOSAL] Application.runAs() Method...

2010-05-26 Thread Joe Fawzy
Hi Please make this configurable(can be disabled) as i am on appengine, they does not allow threads thanks Joe On Tue, May 25, 2010 at 4:34 PM, James Carman ja...@carmanconsulting.comwrote: Sorry, subject should be wrap() method, not runAs(). On Tue, May 25, 2010 at 9:33 AM, James Carman

Re: [PROPOSAL] Application.runAs() Method...

2010-05-26 Thread James Carman
Well, this doesn't start any threads or anything. So, it wouldn't immediately allow folks to start up threads. All this would do is create an object that *can* be run in another thread, but have access to this Application in it. Also, this is just a proposal. I'm just wanting folks to give

Re: wicket file upload

2010-05-26 Thread Jeremy Thomerson
On Wed, May 26, 2010 at 2:51 PM, mdh mhorn...@ntlworld.com wrote: create your own FileItemFactory that returns a DatabaseImageStorageFileItem (which you'll have to create). When the request is processed, your DatabaseImageStorageFileItem will be created I understand your idea, but I

Best books for learning wicket

2010-05-26 Thread Todd Nine
Hi all, I've done quite a bit of reading and prototyping, and it seems that Wicket is going to be our best bet for building our application. I have a few questions. I found a good thread on nabble here about serialization and stateless pages. The wiki has some documentation here