Re: Extensible wicket application

2009-03-26 Thread Daniel Dominik Holúbek
Hi, I'm still trying to solve the database problem... I think it could be useful to mention, that I get an exception at these lines: HibernateTemplate ht = new HibernateTemplate(sessionFactory); ht.save(msg); -- HERE! and if I change the code to this: Session session =

Re: Extensible wicket application

2009-03-26 Thread reiern70
-- -danoh- -- View this message in context: http://www.nabble.com/Extensible-wicket-application-tp22435552p22720037.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: Extensible wicket application

2009-03-26 Thread Daniel Dominik Holúbek
- -- View this message in context: http://www.nabble.com/Extensible-wicket-application-tp22435552p22720037.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: Extensible wicket application

2009-03-22 Thread Ernesto Reinaldo Barreiro
Hi Daniel, Comments in-lined. On Sat, Mar 21, 2009 at 10:29 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Ernesto, thank you very much :) If my application ever goes to the production, it will be thanks to you :) You are welcome. Regarding the images problem: I think I did not

Re: Extensible wicket application

2009-03-22 Thread Brill Pappin
I'm assuming your using the 1.4 snapshot... I think that images will be relative to the component (or at least one if them up the tree). The image component uses a resource that will use the arc attribute to look for the images, so if the arc attribute is bogus, then one of the other

Re: Extensible wicket application

2009-03-21 Thread Daniel Dominik Holúbek
Thanks a lot, it works now. However, two more questions. Where should I place images folder and how should I access it in my html files (or style.css as well)? And the second one: when i try to insert a record with hibernate into my database, i get this exception: Batch entry 0 insert into

Re: Extensible wicket application

2009-03-21 Thread Brill Pappin
At the risk of starting another useless thread, this is what I do for images and other non HTML resources that are shared: - if the project is small, they can just sit with the HTML. - if the project is larger then it might be useful to keep them more separate, under an images directory and

Re: Extensible wicket application

2009-03-21 Thread Ernesto Reinaldo Barreiro
useless thread? On Sat, Mar 21, 2009 at 4:17 PM, Brill Pappin br...@pappin.ca wrote: At the risk of starting another useless thread, this is what I do for images and other non HTML resources that are shared: - if the project is small, they can just sit with the HTML. - if the project is

Re: Extensible wicket application

2009-03-21 Thread Ernesto Reinaldo Barreiro
You are welcome. Sorry, I can no longer help with your new problems... Just one more thing: if you are going to ask different questions maybe is better if you start a new thread. Best, Ernesto On Sat, Mar 21, 2009 at 2:38 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Thanks a lot,

Re: Extensible wicket application

2009-03-21 Thread Brill Pappin
Yah, the whole argument about where the resources should go or the one before that about top posting or bottom posting. You'd think we didn't have any actual work to do :) - Brill On 21-Mar-09, at 12:39 PM, Ernesto Reinaldo Barreiro wrote: useless thread? On Sat, Mar 21, 2009 at 4:17 PM,

Re: Extensible wicket application

2009-03-21 Thread Daniel Dominik Holúbek
Ernesto, thank you very much :) If my application ever goes to the production, it will be thanks to you :) Regarding the images problem: I think I did not explain it well. I'm not asking where to place them. I placed them almost everywhere, but I still can't access them - in the bundle. You see,

Re: Extensible wicket application

2009-03-21 Thread Martijn Dashorst
surround your img tags with wicket:link Martijn On Sat, Mar 21, 2009 at 10:29 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Ernesto, thank you very much :) If my application ever goes to the production, it will be thanks to you :) Regarding the images problem: I think I did not

Re: Extensible wicket application

2009-03-20 Thread Ernesto Reinaldo Barreiro
Hi Daniel, I found some time to get it working! The key to the problem was http://dev.eclipse.org/newslists/news.eclipse.technology.equinox/msg04838.html So, if you synchronize the projects com.antilia.wstarter com.antilia.wstarter.demo exports them to you bridge it should work. I attach

Re: Extensible wicket application

2009-03-20 Thread Ernesto Reinaldo Barreiro
One more thing. As far as I remember the servlet bridge makes a 'work copy' of the plugins folder if you see you make changes, export the plugins, and changes do not 'propagate' to the application, try deleting works/Catalina folder. On Fri, Mar 20, 2009 at 9:58 PM, Ernesto Reinaldo Barreiro

Re: Extensible wicket application

2009-03-19 Thread Daniel Dominik Holúbek
Well, now I have tried to run it in eclipse and it is running properly. On Wed, Mar 18, 2009 at 7:21 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Daniel, Is this the output of the console? I have no idea what's going on... I'll try to get bridge running myself with those

Re: Extensible wicket application

2009-03-19 Thread Ernesto Reinaldo Barreiro
I couldn't try today to build the example using servlet bridge, to busy over here;-), let me see if I can find some time tomorrow to get it working. But normally what I would do is use eclipse for development and then export the jar to a bridge/plugins for deployment... Did you read this page

Re: Extensible wicket application

2009-03-19 Thread Daniel Dominik Holúbek
Yes, that's exactly what I did :) I checked out the bundles, then exported them from eclipse. And then installed those bundles along with javax.servlet into the bridge application, bud I got the error when I tried to install wstarter-demo. Thanks a lot! On Thu, Mar 19, 2009 at 8:28 PM, Ernesto

Re: Extensible wicket application

2009-03-19 Thread Ernesto Reinaldo Barreiro
Did you exported them how? As equinox jar files or as simple jar files? Let me see if tomorrow I find some time for trying this out myself... Best, Ernesto On Thu, Mar 19, 2009 at 9:14 PM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Yes, that's exactly what I did :) I checked out

Re: Extensible wicket application

2009-03-19 Thread Daniel Dominik Holúbek
Right click - Export - Plugin development - Deployable plug-ins and fragments Have a nice day :) On Thu, Mar 19, 2009 at 9:32 PM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Did you exported them how? As equinox jar files or as simple jar files? Let me see if tomorrow I find some time

Re: Extensible wicket application

2009-03-18 Thread Ernesto Reinaldo Barreiro
Hi Daniel, Is this the output of the console? I have no idea what's going on... I'll try to get bridge running myself with those bundles (*wstarter*)... Did you tried running them with eclipse and the starter demo contains? Ernesto On Tue, Mar 17, 2009 at 10:58 PM, Daniel Dominik Holúbek

Re: Extensible wicket application

2009-03-17 Thread Daniel Dominik Holúbek
Ok, so I finally managed to get it working :) I installed the http-console bundle an it works, but when I try to run your demo application, when trying to start the demo bundle I get this error: java.lang.LinkageError: loader constraints violated when linking javax/servlet/Servlet class My

Re: Extensible wicket application

2009-03-13 Thread Daniel Dominik Holúbek
Hello, this seems to be helpful, thanks. But still it does not solve the main problem. How do I put OSGi on the Sun Java Application Server and then how do I install bundles in it? (preferably with no console available) Thanks again :) On Thu, Mar 12, 2009 at 10:24 PM, Ernesto Reinaldo Barreiro

Re: Extensible wicket application

2009-03-13 Thread Ernesto Reinaldo Barreiro
You will have to use bridge-servlet approach for that. As said the bridge-servlet will launch an equinox runtime and redirect your request to the underlaying http service. If you import the projects I mentioned into eclipse and then export them as plugin jar files into the plugins folder on

Re: Extensible wicket application

2009-03-12 Thread Daniel Dominik Holúbek
Firstly, thanks for you reply :) I have already read that document regarding wicket and OSGi, but I think it is written for more experienced users at OSGi. As I wrote before, I even do not know how to build a simple web OSGi project (what should I deploy, how to install those bundles - I can't

Re: Extensible wicket application

2009-03-12 Thread Ernesto Reinaldo Barreiro
Hi Daniel, Some comments inlined. On Thu, Mar 12, 2009 at 9:37 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: Firstly, thanks for you reply :) I have already read that document regarding wicket and OSGi, but I think it is written for more experienced users at OSGi. As I wrote before,

Re: Extensible wicket application

2009-03-12 Thread Richard Allen
Here is a good intro to OSGi: http://www.javaworld.com/javaworld/jw-03-2008/jw-03-osgi1.html Here is one framework for running Wicket in OSGi: http://www.ops4j.org/projects/pax/wicket/ Here is a project that integrates Guice, Wicket, Hibernate, and OSGi: http://code.google.com/p/modulefusion/

Re: Extensible wicket application

2009-03-12 Thread Ernesto Reinaldo Barreiro
Add this to your list: http://code.google.com/p/antilia/ Ernesto On Thu, Mar 12, 2009 at 1:06 PM, Richard Allen richard.l.al...@gmail.comwrote: Here is a good intro to OSGi: http://www.javaworld.com/javaworld/jw-03-2008/jw-03-osgi1.html Here is one framework for running Wicket in OSGi:

Re: Extensible wicket application

2009-03-12 Thread Daniel Dominik Holúbek
Hello :) I looked at the links listed below, seemed interesting, but the main problem (how to set up such a project) remains unsolved. So I think I really do need help :) It seems to me, though, that this whole thing is much too complicated. I need only some simple loading of multiple jars :) But

Re: Extensible wicket application

2009-03-12 Thread Ernesto Reinaldo Barreiro
Hi, I just created a very simple starting project for OSGi and wicket at: http://code.google.com/p/antilia/source/browse/#svn/trunk check out projects com.antilia.wstarter com.antilia.wstarter.demo Then you will have a equinox launcher called wicket-app (for eclipse 3.4). Use it to launch

Re: Extensible wicket application

2009-03-11 Thread Fabrizio Giudici
Daniel Dominik Holúbek wrote: I have looked at OSGi a bit, but I do not understand it (basically I do not even now how to build a project with it :) ) Does anybody have any clue? I hope I have written this clearly enough. If not, feel free to ask :) Daniel, designing modular applications