Re: Wicket in Italy
Hi, i've just worked on a project with wicket for a software house in Bari. But now i'm in Rome. Hope to see you in an event XD 2009/9/24 Luca Provenzani eufor...@gmail.com Hi, we are a little company of software and to make webSoftware in the last two year we used only wicket! But we live in Florence ;-) Do you think to organize some events? Regards, Luca 3FConsulting S.r.l. 2009/9/23 Giovanni pino_o...@yahoo.com Hi, are there any Wicketers living in Turin, Italy? Best regards, giovanni Resources are limited, Imagination is unlimited.
Re: WebApp Freezes
Second XD 2009/4/15 francisco treacy francisco.tre...@gmail.com: how *cool* is that! 2009/4/15 J bluecar...@gmx.com: - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: WebApp Freezes
i'm using Gmail... -_- 2009/4/15 J bluecar...@gmx.com: (Sorry for the empty message. First I tried Gmail, but that doesn't work with this mailing list. Then I tried GMX webclient, but that client always sends as HTML, which probably caused the message to be stripped to empty.) I'm experiencing freezes on a production website. Server specs: -OS: Linux CentOS -Webserver: Tomcat 6 -MySQL 5 with default settings -Frameworks: Wicket 1.4-rc2 (webframework), Spring 2.5.6, Hibernate 3.3.1.GA, C3P0 db pooling 0.9.1.2, URLRewriteFilter 3.1.0, Spring OpenSessionInViewFilter Problem: At some point (about 5 to 24 hours) after a boot, Tomcat seems to stop serving requests, although it does create new threads for new incoming connections. But since it does not serve those connections, the new connections will show and keep showing 0kb transfer. Shortly after that, max-thread is reached, so then I'm unable to access any webapp (the main website + tomcat manager) running on that Tomcat server. I'm not sure if it is able to serve static resources in the short time window where it still has some threads free, because the time window is too short to notice when it happens. Observations: -No exceptions or errors in the catalina logs. So no memory problems, since no error occurs in the logs -Java Thread dump using command: kill -QUIT (see output below), shows the text locked and WAITING. -Adding c3p0 db pooling idle checks, tests and timeout settings (see below) did not help. -Using Mysql Administrator GUI shows that after a freeze, there will be 15 threads, all sleeping. Normally this would return to a minPoolSize of 5, if I'm correct, but thats not the case. -The freeze continues for hours, and does not recover. I have to restart Tomcat. I'm suspecting that it has something to do with DB pooling. I'm not sure if locked and WAITING are normal behaviour. But if there is something wrong, why doesn't c3p0 recover from it? Can somebody shed some light on this? :) Configuration: === DB pooling in Spring applicationContext.xml bean id=dataSource class=com.mchange.v2.c3p0.ComboPooledDataSource property name=driverClassvaluecom.mysql.jdbc.Driver/value/property property name=jdbcUrl value=jdbc:mysql://localhost/xx / property name=uservalue/value/property property name=passwordvaluex/value/property property name=maxConnectionAgevalue600/value/property property name=idleConnectionTestPeriodvalue180/value/property property name=testConnectionOnCheckinvaluetrue/value/property property name=acquireIncrementvalue5/value/property property name=maxIdleTimevalue180/value/property property name=maxPoolSizevalue15/value/property property name=maxStatementsvalue100/value/property property name=minPoolSizevalue5/value/property /bean === = Thread dump part === http-8080-28 daemon prio=10 tid=0xb4fbb400 nid=0x4ae2 in Object.wait() [0xb4316000..0xb4318130] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePo ol.java:1315) at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicRe sourcePool.java:557) - locked 0x72c74b10 (a com.mchange.v2.resourcepool.BasicResourcePool) at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResource Pool.java:477) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C 3P0PooledConnectionPool.java:525) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(Abstract PoolBackedDataSource.java:128) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConn ection(LocalDataSourceConnectionProvider.java:81) at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:4 23) at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:14 4) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:119) at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:57) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1326) at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(Hiber nateTransactionManager.java:510) at org.springframework.transaction.support.AbstractPlatformTransactionManager.g etTransaction(AbstractPlatformTransactionManager.java:350) at org.springframework.transaction.interceptor.TransactionAspectSupport.createT ransactionIfNecessary(TransactionAspectSupport.java:262) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Tr ansactionInterceptor.java:101) at
Re: iLearn Wicket - Please reply with your feedback
We use JBoss XD 2009/4/13 James Carman jcar...@carmanconsulting.com: On Mon, Apr 13, 2009 at 12:47 PM, Chenini, Mohamed mchen...@geico.com wrote: Hi, I think that Wicket Users tend to use more Jetty than Tomcat as the application server. I don't know that that is true. We definitely use jetty for development/debugging. But, I don't know that the production application server is jetty more often than not (we use Tomcat for production). - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice confusion!
have you considered the use of a Renderer in the dropdownChoice? DropDownChoice(java.lang.String id, IModel model, java.util.List data, IChoiceRenderer renderer) FixedCharges selected=new FixedCharges(); DropdownChoice drop=new DropdownChoice(YourId,new CompoundPropertyModel(selected),listFc ,new ChoiceRenderer(YourDisplayExpression,YourIdExpression)); Cheers 2009/3/20 Bigcalm jon.dan...@intercity-comms.com Heya, I'm trying to figure out the best way of handling drop down choices. It seems a bit overcomplicated and I'm not sure we're using them in the correct way?!! The database function to retrieve my data will be: ListFixedCharges listFc = enquiryController.getAvailableFixedCharges(); So I now have a list of primitive hibernate objects with lots of getters and setters. I want my dropdownchoice to use more than one field from my original FixedCharges list for the description, so the text in the description field is... fixedCharges.getDescription() + - + fixedCharges.getValue(); The key value I want returned though, is the unique key from that table/object - fixedCharges.getFChargeCode(); I've already worked out a couple of ways to do it, but I don't like either of them!! My first way was to iterate through the fixedcharges list and create a DropDownItem array before adding it to the form. This seems an unnecessary iteration and I'd quite like to have the full fixedCharge object back when the form is submitted (which this method prevents - I have to go and reselect it from the database). My second way was to try to use a separate custom IChoiceRenderer class, but I don't really like this method either, it seems very complex and difficult to extend to a general case scenario. I don't really want to have bazillions of IChoiceRenderer implementations one for every class I want a drop down list on. Maybe I could have an implementation of the IChoiceRenderer as an unnamed inner class (which would be best I think) but I can't figure out how you do this. What's the best way to do it? It must be a reasonably common problem. Cheers! -- View this message in context: http://www.nabble.com/DropDownChoice-confusion%21-tp22621465p22621465.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Simple file repository?
Alfresco. And you have also lucene indexing. Just deploy the repository and upload files via webservice... 2009/2/15 Martin Makundi martin.maku...@koodaripalvelut.com Why not store files into database as bytearray / blob? ** Martin 2009/2/15 Kaspar Fischer fisch...@inf.ethz.ch: User's of my application will upload, edit, and delete files. For this, I'd like to have a simple file repository with the following features: - Files are stored on the file system. - Files are distributed over several folders (to avoid a single folder with 10,000 files, say). - Support for transactions Does anybody know of a simple Java library that satisfies these requirements? For example: a Hibernate database with a relation Files holding tuples (DocId, FilePath), and a service with: - id store(stream): creates from the stream a new file on the file system and inserts a new tuple into the relation, returns id - stream edit(id): returns a stream to a temporary copy of the file with the given id; updates the corresponding tuple to point to the temp file - void remove(id): removes the corresponding tuple form the relation ... and a background job which deletes dangling files. Thanks, Kaspar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket presentation at JUGPadova
from Bari to Padova isn't that easy. We'll do our best :D 2009/1/22 Emanuele Gesuato egesu...@ibc.it Ehr someone not anyone :) On Wed, 2009-01-21 at 22:46 +0100, Emanuele Gesuato wrote: Maybe anyone could find it useful. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
treetable font and dimension
is it possible to decrease the width of the font of treetables? and how is it done? Francesco Dicarlo
Re: treetable font and dimension
yes but the treetable has only a div attribute... I was searching something to write in java code instead of using html and styles 2008/12/19 Emanuele Gesuato egesu...@ibc.it francesco dicarlo wrote: is it possible to decrease the width of the font of treetables? and how is it done? Francesco Dicarlo how about using css ? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] wicket users around the world
Bari,Italy. We're working with wicket since June :D 2008/12/12 trames tim.a...@promedica.org Toledo, Ohio USA Note: This is Toledo in the USA not in Spain! There is a city in the USA with that name. :) Hey at least I see someone else who works in Ohio with Wicket! Toledo is nowhere near Australia or Austria although I think there are some kangaroos hopping around in our great zoo - and a koala bear. Our symphony orchestra plays a mean Mozart too! :) --Tim Ames -- View this message in context: http://www.nabble.com/-OT--wicket-users-around-the-world-tp20962108p20976771.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Another Ajax back button question
If you want to manage all the back button events, i suggest you to use a simple bookmarking library.likeRSH We use the ajax calls to insert some tag that went added to the address after #. (target.prependjavcascript). After that, when going back to another tag, there was a script defined on the body onload method with RSH libraries. There, if the tag was one of the tags that should activate back button support, we simulated the click of an ajaxbutton to replace the current state of the page with the previous state.This was done with javascript and java code in wicket. In our project, we used RSH(http://code.google.com/p/reallysimplehistory/). 2008/12/4 Scott Swank [EMAIL PROTECTED] If the ajax changes are reflected in the relevant model(s) then you will see them when you go back to the page. Scott On Thu, Dec 4, 2008 at 2:29 PM, Matt Welch [EMAIL PROTECTED] wrote: I'm sure this has been asked and answered but after searching the list, I'm still not sure if there is something I can do to fix my situation. The general gist is this: 1) I make some changes to a page with ajax calls (i.e. replace panel contents) 2) Click a link to take me away from that page 3) Use browser back button to return to previous page 4) Original page is in the state that it was BEFORE the changes made with the ajax calls. Maybe this is a, Well, duh.. of course it is. That's just the way it works moment, but I could have sworn I've seen this work differently in other wicket examples and apps I've worked on. Any tips? -Matt -- View this message in context: http://www.nabble.com/Another-Ajax-back-button-question-tp20843893p20843893.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: authenticatedWebApplication error with jaas
solved. I was using wicket 1.3.4 with wicket-auth-roles 1.2.7 I've downloaded wicket-auth-roles and now i'm integrating JAAS 2008/11/14 Adriano dos Santos Fernandes [EMAIL PROTECTED] francesco dicarlo escreveu: package it.eurosoft; import it.eurosoft.gui.module.login.LoginBase; import it.eurosoft.gui.module.pratiche.PraticheBase; import it.eurosoft.mapping.convenzioni.Convenzione; import it.eurosoft.util.MySession; import java.util.Locale; import org.apache.wicket.Application; import org.apache.wicket.Page; import org.apache.wicket.Request; import org.apache.wicket.Response; import org.apache.wicket.Session; import org.apache.wicket.protocol.http.WebApplication; import org.apache.wicket.spring.injection.annot.SpringComponentInjector; import wicket.authentication.AuthenticatedWebApplication; import wicket.authentication.AuthenticatedWebSession; import wicket.markup.html.WebPage; You are mixing things from different Wicket versions. Do not use wicket.* imports. Use only org.apache.wicket.*. Adriano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
authenticatedWebSession class not found
Hi, i'm using wicket 1.3.4 and i was connecting my wicket application with JAAS and an LDAP server. The class i wanted to use AuthenticatedWebSession is not present in the 1.3.4 jar nor 1.3.5 . Is there another package that contains this class? Frank
authenticatedWebApplication error with jaas
hi i've switched my wicket application from webapplication to authenticatedwebapplication with jaas authentication on jboss. now it doesn't start giving me errors on filter in web.xml telling me that must be a subclass of webapplication. How must i declare now the web.xml in order to run authenticatedwebapplication? here the log ERROR [[/sisco]] Exception starting filter wicket.sisco org.apache.wicket.WicketRuntimeException: Application class it.eurosoft.WicketApplication must be a subclass of WebApplication and the web.xml filter filter-namewicket.sisco/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valueit.eurosoft.WicketApplication/param-value /init-param
Re: authenticatedWebApplication error with jaas
package it.eurosoft; import it.eurosoft.gui.module.login.LoginBase; import it.eurosoft.gui.module.pratiche.PraticheBase; import it.eurosoft.mapping.convenzioni.Convenzione; import it.eurosoft.util.MySession; import java.util.Locale; import org.apache.wicket.Application; import org.apache.wicket.Page; import org.apache.wicket.Request; import org.apache.wicket.Response; import org.apache.wicket.Session; import org.apache.wicket.protocol.http.WebApplication; import org.apache.wicket.spring.injection.annot.SpringComponentInjector; import wicket.authentication.AuthenticatedWebApplication; import wicket.authentication.AuthenticatedWebSession; import wicket.markup.html.WebPage; /** * Application object for your web application. If you want to run this application without deploying, run the Start class. * * @see wicket.myproject.Start#main(String[]) */ public class WicketApplication extends AuthenticatedWebApplication { /** * Constructor */ public WicketApplication() { //Session session = HibernateUtil.getSessionFactory().getCurrentSession(); //session.beginTransaction(); } public MySession newSession(AuthenticatedWebApplication request, Response response) { // TODO Auto-generated method stub MySession mys=new MySession(request); return (mys); } /** * @see wicket.Application#getHomePage() */ public Class getHomePage() { return LoginBase.class; } public void init() { try { getMarkupSettings().setStripWicketTags(true); Locale locale = Locale.getDefault(); System.out.println(Country: + locale.getCountry()); System.out.println(Language: + locale.getLanguage()); //this.addComponentInstantiationListener(new SpringComponentInjector(((WebApplication)this))); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } } @Override protected Class? extends WebPage getSignInPageClass() { // TODO Auto-generated method stub return null; } @Override protected Class? extends AuthenticatedWebSession getWebSessionClass() { // TODO Auto-generated method stub return MySession.class; } } 2008/11/13 [EMAIL PROTECTED] Show us the code that declares your WicketApplication class. Specially the import header and the public class ... line. Regards, Bruno On Nov 13, 2008 2:24pm, francesco dicarlo [EMAIL PROTECTED] wrote: hi i've switched my wicket application from webapplication to authenticatedwebapplication with jaas authentication on jboss. now it doesn't start giving me errors on filter in web.xml telling me that must be a subclass of webapplication. How must i declare now the web.xml in order to run authenticatedwebapplication? here the log ERROR [[/sisco]] Exception starting filter wicket.sisco org.apache.wicket.WicketRuntimeException: Application class it.eurosoft.WicketApplication must be a subclass of WebApplication and the web.xml wicket.sisco org.apache.wicket.protocol.http.WicketFilter applicationClassName it.eurosoft.WicketApplication