Re: @SpringBean vs getApplication().getDao()

2009-02-18 Thread Martijn Reuvers
Hey Sergey, As far as I know it should create only a single instance for each spring bean (if they are singletons that is). Thus always the same bean should be injected into your wicket classes. Does this problem occur with the @SpringBean or using the proxy approach? I've been using @SpringBean

Re: Feedback message isn't displayed

2009-02-18 Thread Jakub Srba
Here is a simpler example that doesn't work for me either: ProblemPage.java: public class ProblemPage extends WebPage { @SuppressWarnings(serial) public ProblemPage() { add(new FeedbackPanel(feedback)); error(this error message is displayed);

RE: @SpringBean vs getApplication().getDao()

2009-02-18 Thread Kai Mütz
Sergey Podatelev mailto:brightnesslev...@gmail.com wrote: Thanks for your insight, Patrick. But I'm stuck in my dumbness: setting the component's fields -- does this mean a new instance of that particular annotated bean is created, or that singleton is accessed somehow (proxy)? Also, it's

Re: Yet another Wicket quick start application...

2009-02-18 Thread Martijn Dashorst
I for one enjoy the many different approaches that are available. While we could use more folks hammering away on wicket core bugs, there seems to be a never ending supply of quickstarts, crud frameworks etc. There are so many ways to skin the cat, and not every way is to everyone's liking. So go

Re: Yet another Wicket quick start application...

2009-02-18 Thread Patrick A.
Hey Nino, Apptizer is not really a framework. It's more like AppFuse or Qwicket in spirit... with the goal of showing how Spring, Hibernate/JPA and Wicket integrate. The CRUD framework in there is not meant to be integral. In fact, the CRUD framework is designed to be disposable. I've only

Load content while scrolling

2009-02-18 Thread Alex Objelean
There is an interesting article about some fancy ajax stuff. Here is the article: http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/ I am curious about how this could be done the wicket way. I hope, we'll end up with an interesting thread :)... -- View this message in

Re: Yet another Wicket quick start application...

2009-02-18 Thread nino martinez wael
I have mixed feelings about it too. I guess it' sort of the same dialog as with all the web frameworks available for java...But another nice thing about consolidating are that mass will increase on the separate projects.. The best of breed might not survive, it the one person get other

Re: Yet another Wicket quick start application...

2009-02-18 Thread nino martinez wael
2009/2/18 Patrick A. patrickange...@gmail.com Hey Nino, Apptizer is not really a framework. It's more like AppFuse or Qwicket in spirit... with the goal of showing how Spring, Hibernate/JPA and Wicket integrate. The CRUD framework in there is not meant to be integral. In fact, the CRUD

Re: Load content while scrolling

2009-02-18 Thread nino martinez wael
Im not sure how this could work with wicket, I think wicket always renders the full page.. You can lazyload things, or postpone them until a certain event, for example like the mootip ajax tooltips.. Partial loading of the web page, im not so sure about... I guess its another way of doing

Re: @SpringBean vs getApplication().getDao()

2009-02-18 Thread James Carman
Well, in order for the reference to be set, the object used must adhere to the same API. The object is, indeed a proxy. So, the proxy either implements the same interface as the type of the field or extends the class of the type of the field (you should be using interfaces if at all possible).

maven guru/wickstuff project maintainers..

2009-02-18 Thread Johan Compagner
Hi, if i look into this dir: http://www.wicketstuff.org/maven/repository/org/wicketstuff/scriptaculous/1.4-SNAPSHOT/ i am getting really really sad :( I want to get rid of all those horrible timestamps snapshots these should be removed for everything, this will run out of disk space soon like

Re: Yet another Wicket quick start application...

2009-02-18 Thread James Carman
On Wed, Feb 18, 2009 at 6:33 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: 2009/2/18 Patrick A. patrickange...@gmail.com Hey Nino, Apptizer is not really a framework. It's more like AppFuse or Qwicket in spirit... with the goal of showing how Spring, Hibernate/JPA and Wicket

Re: Yet another Wicket quick start application...

2009-02-18 Thread nino martinez wael
2009/2/18 James Carman jcar...@carmanconsulting.com On Wed, Feb 18, 2009 at 6:33 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: 2009/2/18 Patrick A. patrickange...@gmail.com Hey Nino, Apptizer is not really a framework. It's more like AppFuse or Qwicket in spirit...

Do wicket:message keys depend on markup hierarchy?

2009-02-18 Thread Kaspar Fischer
IIUC, Wicket offers a way to override message keys of components. Consider for instance a page with the following markup !-- Page.html contains: -- div wicket:id=a div wicket:id=b with corresponding Java code // in Page constructor add(new MyPanel(a)); add(new MyPanel(b)); If

Avoid serialization troubles with static members

2009-02-18 Thread Christian Helmbold
I've read http://cwiki.apache.org/WICKET/spring.html and the corresponding section in Wicket in Action about the troubles with serialization of injected services. Dependencies often have references to other dependencies in the container, and so if one is serialized it will probably serialize a

Re: Yet another Wicket quick start application...

2009-02-18 Thread Martijn Dashorst
Most pages you refer to (apart from those that are in the wicket.apache.org style) are WIKI pages. This means *you* can modify them: this holds true for the Wicket WIKI and the Wicket Stuff WIKI. If you want to contribute text to the main wicket site, you can attach it to a JIRA issue. etc.

Avoid serialization troubles with static members

2009-02-18 Thread Christian Helmbold
I've read http://cwiki.apache.org/WICKET/spring.html and the corresponding section in Wicket in Action about the troubles with serialization of injected services. Dependencies often have references to other dependencies in the container, and so if one is serialized it will probably serialize a

Re: Do wicket:message keys depend on markup hierarchy?

2009-02-18 Thread Nino Martinez
No. Just bundle the default with panel... You could create your own resource loader but seems overkill... Why do you want it working differently? You could also do it with resource models and labels.. etc the java way... Kaspar Fischer wrote: IIUC, Wicket offers a way to override message keys

Re: pdf from wicket page

2009-02-18 Thread Nino Martinez
search the malinglist: http://www.nabble.com/Wicket-PDF-Page-Project--td11974133.html miro wrote: I want to generate pdf from wicket page , ie instead of displaying page i want to convert html page to pdf and open pdf ,please help me with this.

Re: Load content while scrolling

2009-02-18 Thread Igor Vaynberg
thoof.com used to do this for its articles. maybe matej can comment on how it worked. -igor On Wed, Feb 18, 2009 at 3:59 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Im not sure how this could work with wicket, I think wicket always renders the full page.. You can lazyload

Re: Do wicket:message keys depend on markup hierarchy?

2009-02-18 Thread Kaspar Fischer
Thanks, Nino, for the clarifications. On 18.02.2009, at 18:10, Nino Martinez wrote: No. Just bundle the default with panel... You could create your own resource loader but seems overkill... Why do you want it working differently? I am looking for a different way because I want to make

Re: Avoid serialization troubles with static members

2009-02-18 Thread Johan Compagner
a static service inside a component? why would you have that? that sounds weird to me Then you share that services over all sessions, if that is the case then you can just as well make it a single ton class by itself (MyService.getInstance()) johan On Wed, Feb 18, 2009 at 15:52, Christian

Re: AjaxSubmitLink submitting twice

2009-02-18 Thread Matt Welch
I finally did find the root of this problem and wanted to report back to other Wicket users in case they ever had a similar issue and found this thread in a search. It turns out that the problem is somehow related to the Firebug add-on for Firefox. Doing some searching, I can see that Firebug has

Re: Load content while scrolling

2009-02-18 Thread Nino Martinez
Ahh not so bad then.. :) So be pretty simple when theres articles for it.. Igor Vaynberg wrote: there is an article on wicketinaction.com about ajax repainting only new items in a repeater.. -igor On Wed, Feb 18, 2009 at 9:24 AM, Matej Knopp matej.kn...@gmail.com wrote: Well, it

Re: Do wicket:message keys depend on markup hierarchy?

2009-02-18 Thread Nino Martinez
Hi Kaspar Replying inline.. Kaspar Fischer wrote: Thanks, Nino, for the clarifications. On 18.02.2009, at 18:10, Nino Martinez wrote: No. Just bundle the default with panel... You could create your own resource loader but seems overkill... Why do you want it working differently? I am

Re: Stackoverflow running Wicket application on JBOSS cluster

2009-02-18 Thread Jeremy Levy
I don't know... If you can repeat this, run it in a debugger and get some data where in wicket it's actually happening and post it back here so the dev's can comment. We were not able to reproduce it reliably enough to get any real data on it. Jeremy On Wed, Feb 18, 2009 at 4:22 AM, behrica

Re: Is there an ajax WizardButton to use in a wizard inside a ModalWindow?

2009-02-18 Thread Sean Brookes
Thank you for posting your code on this. It is exactly the same issue I am working on. A problem I am experiencing is with adding the wizard to the target in the addOrReplace method of AjaxWizardButtonBar: target.addComponent(wizard); That is causing the init

sepearte stylesheet refrences for page and panel

2009-02-18 Thread rjilani
Hi: Gurus, I am attaching two separate style sheets one for a page and one for the panel. I am attaching the style sheets in my Java code like this add(new StyleSheetReference(stylesheet, PBNASLogin.class, login.css)); //in page constructor add(new StyleSheetReference(stylesheetPanel,

Re: sepearte stylesheet refrences for page and panel

2009-02-18 Thread Jeremy Thomerson
Your error didn't include WHICH components failed to render. Here are a couple suggestions: 1 - in your panel, is the link tag inside the wicket:panel tag - this would be my first guess as to your problem. 2 - why not just use HeaderContributor.forCss(RegisteredUserPanel.class, register.css) in

Re: sepearte stylesheet refrences for page and panel

2009-02-18 Thread Jeremy Thomerson
HeaderContributor is definitely the standard way of doing this (StyleSheetReference is only used once in all of Wicket code). I would suggest figuring out how to get the HeaderContributor working. Open a new thread on what's not working, and paste your code (where you add the HC in java and your

Re: Interacting with Client Side java application

2009-02-18 Thread jsinger66
I realise that it is not as simple as just interfacing with the client application. I am thinking I have 2 ways to solve the problem. 1) javascript that can see if the image file exists and can then pass this image to a wicket form... 2) applet that can replaces the client application,

Re: Drop Down Box - Ajax Behaviour

2009-02-18 Thread Daniel Ferreira Castro
I tryied to add the AjaxBehaviour AjaxFormComponentUpdatingBehavior(onchange) and AjaxFormComponentUpdatingBehavior(onsubmit) to the DropDown Box that I want to be updated after the form post. But didn't work yet. I am doing this way. This is the constructor of the Panel that I am using to show

Re: FormTester.setValue accepting invalid component id's

2009-02-18 Thread Timo Rantalaiho
On Wed, 18 Feb 2009, Thies Edeling wrote: Would it be possible for the FormTester setValue/selectMultiple etc methods to throw a WicketRuntimeException whenever the provided id doesn't exist? Yes, that would be a very good idea. For the current versions it could still be disableable for

Re: Problems with ListMultipleChoice component

2009-02-18 Thread Timo Rantalaiho
On Wed, 18 Feb 2009, David R Robison wrote: I'm having trouble with the ListMultipleChoice component. It displays correctly, but when I submit the form, the server side code does not see any items selected. Any thoughts? Can anyone point me to a good example? Have you checked out

Re: Drop Down Box - Ajax Behaviour

2009-02-18 Thread Timo Rantalaiho
On Wed, 18 Feb 2009, Daniel Ferreira Castro wrote: AjaxFormComponentUpdatingBehavior(onchange) and AjaxFormComponentUpdatingBehavior(onsubmit) to the DropDown Box that I want to be updated after the form post. But didn't work yet. onsubmit probably doesn't exist for select. Have you looked

Re: Interacting with Client Side java application

2009-02-18 Thread Igor Vaynberg
javascript cannot check for a file, you have two options imho: write an applet that interfaces with the client app - maybe the applet starts to listen on localhost:1 and the java client app connects to that port and sends the image over the tcp connection, or do the file thing you are talking

Some SignInPanel Questions

2009-02-18 Thread Matt Welch
I don't know if these are actually SignInPanel (from wicket-auth-roles) questions or if they're in fact more general wicket questions; probably the latter, but the SignInPanel class is where I noticed these things. 1) In the SignInPanel I notice that instead of having a couple of private String

How to deal with dynamic form issue

2009-02-18 Thread taha siddiqi
Hi, I am stuck with a form where in I have to add new form elements dynamically in javascript. My Form contains an option to select the number of guests and then I add to the form(in javascript) 'select elements' to select the ages of the guests. How will I deal with it in wicket. I can do this

Re: maven guru/wickstuff project maintainers..

2009-02-18 Thread Martin Funk
But those are only defined in profiles: 'bamboo' and 'wickettraining.com-continuum' are those profiles pulled for the builds? mf Am 18.02.2009 um 22:07 schrieb Jeremy Thomerson: Yes - all wicketstuff-core projects appear to be generating timestamped snapshots, which they shouldn't be.

Re: Avoid serialization troubles with static members

2009-02-18 Thread taha siddiqi
I agree with John Krasnay I am new to wicket( 2 months old) but I find @SpringBean very easy to use and it minimizes the spring-context concern while developing the application. and I think avoiding annotations is something you wont be able to do for long.. tawus On Wed, Feb 18, 2009 at

Re: Avoid serialization troubles with static members

2009-02-18 Thread Martin Sachs
Hi If we use @SpringBean we have automaticaly a serialized proxy object. Is it possible to use a transient variable to avoid the serialization at all ? public MyPanel extends Panel{ @SpringBean(name=myserviceBean) private transient MyServiceInterface service; ... } What do we need to