RE: CSS Templating

2010-05-08 Thread Chris Colman
That method of css generation you propose would be generating CSS (even if it were into a separate .css file) with each page render. If you're dealing with a lot of CSS that probably isn't the most efficient method. Generating CSS at render time would mean the browser could not take advantage of C

org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread Richard Slide
Hello all, i try to do a simple web application with the classic layout Wicket->Spring->Hibernate When i try to make a simple request i receive the following error. WicketMessage: Error attaching this container for rendering: [Page class = ch.myexample.ListContacts, id = 0, version = 0] Root caus

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread Karolina Rusin
Hello Richard, Maybe you need to use @Transactional above your dao method? Hope this helps. Best regards, Karolina Rusin 2010/5/8 Richard Slide > Hello all, > i try to do a simple web application with the classic layout > Wicket->Spring->Hibernate > > When i try to make a simple request i rec

about serialVersionUID in all components

2010-05-08 Thread Joe Fawzy
Hi all what are the side effects of setting serialVersionUID on all page classes and components private static final long serialVersionUID = 1L; i am developing an application which will be deployed on appengine appengine handle sessions by storing them in the memcache and data store as there is

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread Richard Slide
Yes i did it... this is DAO and impl public interface Dao { @Transactional void delete(T o); T load(long id); @Transactional void save(T o); @Transactional List findAll(); int countAll(); } and the implemetation is public abstract class AbstractHibernateD

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread James Carman
Put it on the impl class. On Sat, May 8, 2010 at 7:43 AM, Richard Slide wrote: > Yes i did it... > this is DAO and impl > > > > > public interface Dao { > >   �...@transactional >    void delete(T o); > >    T load(long id); > >   �...@transactional >    void save(T o); > >   �...@transactional >

Re: about serialVersionUID in all components

2010-05-08 Thread Martin Voigt
We're doing exactly that all the time on our wicket/GAE apps and haven't run into problems. Only thing we had to change was: static references to components and ajax don't mix well, but one shouldn't do this anyway. regards On 8 May 2010 13:12, Joe Fawzy wrote: > Hi all > > what are the side eff

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread Richard Slide
I did it. On Sat, May 8, 2010 at 2:00 PM, James Carman wrote: > Put it on the impl class. > > On Sat, May 8, 2010 at 7:43 AM, Richard Slide > wrote: > > Yes i did it... > > this is DAO and impl > > > > > > > > > > public interface Dao { > > > >@Transactional > >void delete(T o); > >

Re: CSS Templating

2010-05-08 Thread Alex Objelean
If you are trying to achieve css variables, you may want to consider using wro4j: (http://code.google.com/p/wro4j/wiki/GettingStarted). It does support css variables, besides other dozen features (like less css meta framework integration, merge, minification, cache, build time & runtime solution,

Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction

2010-05-08 Thread James Carman
By the way, you might want to check out domdrides. It has all this implemented and tested for you On May 8, 2010 8:41 AM, "Richard Slide" wrote: I did it. On Sat, May 8, 2010 at 2:00 PM, James Carman wrote: > Put it on the impl class. > > On Sat, May 8, 2010 at 7:43 AM, Richard Slide --

Re: Javascript templating? Removing java code mixed with js

2010-05-08 Thread nino martinez wael
take a look at inputevents in wicketstuff, it uses the javascript template james mention.. 2010/5/7 Anthony DePalma : > I recently developed a component that can be added to any form to put > a character countdown div next to any textarea. Just for some > background, the component constructor is:

Re: Inline Javascript comments

2010-05-08 Thread Igor Vaynberg
strange that its a problem for nothing else but liferay... -igor On Fri, May 7, 2010 at 2:43 AM, Jérôme Schell wrote: > Hello, > > Working on integration of a wicket portlet in the upcoming Liferay 6, I > am currently facing a problem with the way Wicket encapsulates inline > javascript. > Looki

Multiple apps on single server

2010-05-08 Thread Ján Raska
Hello, I'm thinking about making small business by selling/renting e-shop and CMS applications written in Wicket. Now I'm trying to figure out, how many such applications can be hosted on a single server (let's assume 2x Dual Core Xeon 2.66 GHz, 4GB RAM). Except wicket, I'll use Spring and Hibe

Re: how to get some data from servlet

2010-05-08 Thread Zilvinas Vilutis
The problem is not in wicket, but in SwfUpload or more specific would be the Adobe Flash itself - which uses IE cookies in any case, even when you're using FF or Chrome or Safari on Windows ( http://swfupload.org/forum/generaldiscussion/869 ) Not sure how secure is it - but I've solved this in th

Re: WicketSessionFilter and empty HttpSession

2010-05-08 Thread Zilvinas Vilutis
Didn't work for me :( - nothing is impossible -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketSessionFilter-and-empty-HttpSession-tp1888171p2136548.html Sent from the Wicket - User mailing list archive at Nabble.com. --

Re: about serialVersionUID in all components

2010-05-08 Thread Zilvinas Vilutis
The serialVersionUID is used in JVM to determine the class type if the signature is the same when unserializing. So if you don't have components with the same package + classname combination - then no worries. Žilvinas Vilutis Mobile: (+370) 652 38353 E-mail: cika...@gmail.com On Sat, May 8

Re: Any solution for the context problem with the relative links of BookmarkablePageLink?

2010-05-08 Thread Jeremy Thomerson
Is your servlet container listening directly to port 80? If not, do the forwarding via a proxy on whatever you are using as a frontend. In that frontend, have it rewrite the URLs (i.e. mod_proxy and mod_rewrite). Otherwise, can you have your app mounted on "/"? -- Jeremy Thomerson http://www.wi

Re: Multiple apps on single server

2010-05-08 Thread Jeremy Thomerson
Two things: 1 - Use Brix. You can write your ecommerce components as tiles that can be rearranged however you want in any site. You can create plugins for the admin console for management of said ecommerce shops. 2 - There's absolutely no way anybody on this list can answer your question. I've