Ajax-Response xml to browser - DatePicker
I'm seeing something really strange. I'm using DatePicker and sometimes when I click on it. I get a temporary screen that has the following text: If you see this, it means that both javascript and meta-refresh are not supported by your browser configuration. Please click this link to continue to the original destination. It then redirects to an xml file: Then this page is displayed This XML file does not appear to have any style information associated with it. The document tree is shown below. − ajax-response − header-contribution head xmlns:wicket=http://wicket.apache.org;script type=text/javascript src=resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js/script script type=text/javascript src=resources/org.apache.wicket.ajax.WicketAjaxReference/wicket-ajax.js/script /head /header-contribution − component id=id5988 div id=id5988!-- MARKUP FOR com.conducive.ui.userPages.monitor.result.MonitorResultsParts$ControlsPart BEGIN -- form id=id5989 method=post action=?wicket:interface=wicket-8:100:controlsPart:form:2:IFormSubmitListener::div style=display:noneinput type=hidden name=id5989_hf_0 id=id5989_hf_0 //div
org.hibernate.HibernateException: createCriteria is not valid without active transaction
get this error always! I don't understand why. this is my hibernate.cfg.xml hibernate-configuration session-factory name=session1 property name=hibernate.dialectorg.hibernate.dialect.MySQLDialect/property property name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property property name=hibernate.connection.urljdbc:mysql://localhost:3306/mydb/property property name=hibernate.connection.usernameroot/property property name=hibernate.current_session_context_classorg.hibernate.context.ThreadLocalSessionContext/property mapping resource=org/omikron/test/data/Ticket.hbm.xml/ mapping resource=org/omikron/test/data/Testprocedure.hbm.xml/ mapping resource=org/omikron/test/data/Tag.hbm.xml/ mapping resource=org/omikron/test/data/Testentity.hbm.xml/ mapping resource=org/omikron/test/data/Questionset.hbm.xml/ mapping resource=org/omikron/test/data/Administrator.hbm.xml/ mapping resource=org/omikron/test/data/Systemsetting.hbm.xml/ mapping resource=org/omikron/test/data/Question.hbm.xml/ /session-factory /hibernate-configuration Do you have an idea? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: table columns ajax update
Pedro, yes,that's what i was exactly looking for .. api is very easy and intuitive . You are super fast ;) thank you ! -- regards, Vineet Semwal On Tue, Oct 6, 2009 at 12:59 AM, Pedro Santos pedros...@gmail.com wrote: I just commit the new version: - Refactoring the OrderingImage class - Using TableColumns and default renders per class to resolve the cell component creation - Remove the static cell model version - Css separation for selectableListView, since this class can to be used for direferent purposes than Table - Development of columns components that use ajax timing behavior On the table-example you can notes the line: table.getColumnModel().addColumn(new SelfUpdateColumn(1, Duration.seconds(5))); Hope it is what you looking for, best regards On Mon, Oct 5, 2009 at 3:19 AM, vineet semwal vineetsemwal1...@gmail.com wrote: Pedro, eagerly waiting for next version ;) thank you , -- regards, Vineet Semwal On Mon, Oct 5, 2009 at 4:25 AM, Pedro Santos pedros...@gmail.com wrote: Hi Semwal, it has capability to update some columns. I update HomePage on table-example to show how it can be done now. But it makes no sense, since the model on non editable cells table are static, so the values on table model will not be queried every ajax update. In next version, all table cells will have dynamic models. On Sun, Oct 4, 2009 at 3:04 AM, vineet semwal vineetsemwal1...@gmail.com wrote: Pedro, does it have or will it have capability to update some columns in a table with ajax timer ? table still is good but good to hear that you are doing major improvement in design ;) thank you ! -- regards, Vineet Semwal On Sun, Oct 4, 2009 at 3:57 AM, Pedro Santos pedros...@gmail.com wrote: Hi Semwal, I'm currently working on Table class design to turn simple this kind of extension. On Sat, Oct 3, 2009 at 10:38 AM, vineet semwal vineetsemwal1...@gmail.comwrote: can i update some columns in wicket-stuff table with ajax timer ? i have seen wicket-stuff table example but can't understand how to do it .. -- regards, Vineet Semwal -- Pedro Henrique Oliveira dos Santos -- Pedro Henrique Oliveira dos Santos -- Pedro Henrique Oliveira dos Santos
Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction
You did not setup your transactions properly. Or you start your transaction manually, or if you like spring, you can let spring manage it. (just add your transction annotations to your services, and, done ! On Tue, Oct 6, 2009 at 9:15 AM, Peter Arnulf Lustig u...@yahoo.dewrote: get this error always! I don't understand why. this is my hibernate.cfg.xml hibernate-configuration session-factory name=session1 property name=hibernate.dialectorg.hibernate.dialect.MySQLDialect/property property name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property property name=hibernate.connection.urljdbc:mysql://localhost:3306/mydb/property property name=hibernate.connection.usernameroot/property property name=hibernate.current_session_context_classorg.hibernate.context.ThreadLocalSessionContext/property mapping resource=org/omikron/test/data/Ticket.hbm.xml/ mapping resource=org/omikron/test/data/Testprocedure.hbm.xml/ mapping resource=org/omikron/test/data/Tag.hbm.xml/ mapping resource=org/omikron/test/data/Testentity.hbm.xml/ mapping resource=org/omikron/test/data/Questionset.hbm.xml/ mapping resource=org/omikron/test/data/Administrator.hbm.xml/ mapping resource=org/omikron/test/data/Systemsetting.hbm.xml/ mapping resource=org/omikron/test/data/Question.hbm.xml/ /session-factory /hibernate-configuration Do you have an idea? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be
AW: org.hibernate.HibernateException: createCriteria is not valid without active transaction
How can I do it manually? For example: I have a DataProvider class with a method: public static Administrator getAdministrator(Integer id) { Administrator administrator= (Administrator) HibernateUtil.getSessionFactory().getCurrentSession().createCriteria(Administrator.class).add(Property.forName(id).eq(id)).uniqueResult(); return administrator; } I get the error message. How shall I modify the code? I tried it with Transaction tx = ... and then tx.begin() tx.commit() -- but then suddenly hibernate tries permanently to update an object... wired ! - Ursprüngliche Mail Von: Pieter Degraeuwe pieter.degrae...@systemworks.be An: users@wicket.apache.org Gesendet: Dienstag, den 6. Oktober 2009, 09:29:58 Uhr Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction You did not setup your transactions properly. Or you start your transaction manually, or if you like spring, you can let spring manage it. (just add your transction annotations to your services, and, done ! On Tue, Oct 6, 2009 at 9:15 AM, Peter Arnulf Lustig u...@yahoo.dewrote: get this error always! I don't understand why. this is my hibernate.cfg.xml hibernate-configuration session-factory name=session1 property name=hibernate.dialectorg.hibernate.dialect.MySQLDialect/property property name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property property name=hibernate.connection.urljdbc:mysql://localhost:3306/mydb/property property name=hibernate.connection.usernameroot/property property name=hibernate.current_session_context_classorg.hibernate.context.ThreadLocalSessionContext/property mapping resource=org/omikron/test/data/Ticket.hbm.xml/ mapping resource=org/omikron/test/data/Testprocedure.hbm.xml/ mapping resource=org/omikron/test/data/Tag.hbm.xml/ mapping resource=org/omikron/test/data/Testentity.hbm.xml/ mapping resource=org/omikron/test/data/Questionset.hbm.xml/ mapping resource=org/omikron/test/data/Administrator.hbm.xml/ mapping resource=org/omikron/test/data/Systemsetting.hbm.xml/ mapping resource=org/omikron/test/data/Question.hbm.xml/ /session-factory /hibernate-configuration Do you have an idea? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket LinkTree and Performance
Hi, I use Wicket LinkTree component with relatively huge amount of content, and I exprience serious performance issues. It takes few seconds to expand or close node when about fifty or hundred nodes are visible, and selection of node also takes some time. Actually I need AJAX functionality of this tree. Is there known solutions of this problem or probably another component with lower latency? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction
Indeed, when you start a transaction and get an object from the database, hibernate wil persist changes to that object when you transaction (and thus sesseion) is still open. This is normal behaviour. Note that it is in most cases a bad habit to use manual transaction management... On Tue, Oct 6, 2009 at 9:44 AM, Peter Arnulf Lustig u...@yahoo.dewrote: How can I do it manually? For example: I have a DataProvider class with a method: public static Administrator getAdministrator(Integer id) { Administrator administrator= (Administrator) HibernateUtil.getSessionFactory().getCurrentSession().createCriteria(Administrator.class).add(Property.forName(id).eq(id)).uniqueResult(); return administrator; } I get the error message. How shall I modify the code? I tried it with Transaction tx = ... and then tx.begin() tx.commit() -- but then suddenly hibernate tries permanently to update an object... wired ! - Ursprüngliche Mail Von: Pieter Degraeuwe pieter.degrae...@systemworks.be An: users@wicket.apache.org Gesendet: Dienstag, den 6. Oktober 2009, 09:29:58 Uhr Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction You did not setup your transactions properly. Or you start your transaction manually, or if you like spring, you can let spring manage it. (just add your transction annotations to your services, and, done ! On Tue, Oct 6, 2009 at 9:15 AM, Peter Arnulf Lustig u...@yahoo.de wrote: get this error always! I don't understand why. this is my hibernate.cfg.xml hibernate-configuration session-factory name=session1 property name=hibernate.dialectorg.hibernate.dialect.MySQLDialect/property property name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property property name=hibernate.connection.urljdbc:mysql://localhost:3306/mydb/property property name=hibernate.connection.usernameroot/property property name=hibernate.current_session_context_classorg.hibernate.context.ThreadLocalSessionContext/property mapping resource=org/omikron/test/data/Ticket.hbm.xml/ mapping resource=org/omikron/test/data/Testprocedure.hbm.xml/ mapping resource=org/omikron/test/data/Tag.hbm.xml/ mapping resource=org/omikron/test/data/Testentity.hbm.xml/ mapping resource=org/omikron/test/data/Questionset.hbm.xml/ mapping resource=org/omikron/test/data/Administrator.hbm.xml/ mapping resource=org/omikron/test/data/Systemsetting.hbm.xml/ mapping resource=org/omikron/test/data/Question.hbm.xml/ /session-factory /hibernate-configuration Do you have an idea? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be
Re: Send file to client via Ajax
Hi Cristian, I've got it working! Just place all the following files at the same package and you will get a working example (I tested them with FF35 and IE7). import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.AbstractReadOnlyModel; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class TestPage extends WebPage{ private Label text; private String labelText = Hi!; private DocumentResourceListener documentResourceListener; /** * */ public TestPage() { AjaxLinkVoid link = new AjaxLinkVoid(link) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { TestPage.this.labelText = Hi! and donwload image!; if(target!= null) { target.addComponent(TestPage.this.text); String url = documentResourceListener.getURL().toString(); target.appendJavascript(;alert('Hi');window.location.href='+url+';); } } }; add(link); text = new Label(text, new AbstractReadOnlyModelString() { private static final long serialVersionUID = 1L; @Override public String getObject() { return TestPage.this.labelText; } }); text.setOutputMarkupId(true); add(text); documentResourceListener = new DocumentResourceListener(listener, new MyPdfResource()); add(documentResourceListener); } } --- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns:wicket=org.apache.wicket head /head body a wicket:id=linkClick Me/a span wicket:id=text/span div wicket:id=listener/div /body /html - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.apache.wicket.markup.html.DynamicWebResource; import org.apache.wicket.protocol.http.WebResponse; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class MyPdfResource extends DynamicWebResource { private static final long serialVersionUID = 1L; static int BUFFER_SIZE = 10*1024; /** * */ public MyPdfResource() { } /* (non-Javadoc) * @see org.apache.wicket.markup.html.DynamicWebResource#getResourceState() */ @Override protected ResourceState getResourceState() { return new ResourceState() { @Override public String getContentType() { return application/pdf; } @Override public byte[] getData() { try { return bytes(MyPdfResource.class.getResourceAsStream(jta-1_1-spec.pdf)); } catch (Exception e) { return null; } } }; } public static byte[] bytes(InputStream is) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); copy(is, out); return out.toByteArray(); } @Override protected void setHeaders(WebResponse response) { super.setHeaders(response); response.setAttachmentHeader(jta-1_1-spec.pdf); } public static void copy(InputStream is, OutputStream os) throws IOException { byte[] buf = new byte[BUFFER_SIZE]; while (true) { int tam = is.read(buf); if (tam == -1) { return; } os.write(buf, 0, tam); } } } Just replace jta-1_1-spec.pdf with your own PDF file on MyPdfResource and the exampel should work. An important bit here if @Override protected void setHeaders(WebResponse response) { response.setAttachmentHeader(jta-1_1-spec.pdf); } which makes the file to treated as an attachment instead of replacing the current page. Best, Ernesto P.S. Would it useful to add this to Wicket's wiki?
AW: org.hibernate.HibernateException: createCriteria is not valid without active transaction
ok! So I need a listener class like HibernateListener and a Transactionfactory in the config xml ? - Ursprüngliche Mail Von: Pieter Degraeuwe pieter.degrae...@systemworks.be An: users@wicket.apache.org Gesendet: Dienstag, den 6. Oktober 2009, 09:49:42 Uhr Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction Indeed, when you start a transaction and get an object from the database, hibernate wil persist changes to that object when you transaction (and thus sesseion) is still open. This is normal behaviour. Note that it is in most cases a bad habit to use manual transaction management... On Tue, Oct 6, 2009 at 9:44 AM, Peter Arnulf Lustig u...@yahoo.dewrote: How can I do it manually? For example: I have a DataProvider class with a method: public static Administrator getAdministrator(Integer id) { Administrator administrator= (Administrator) HibernateUtil.getSessionFactory().getCurrentSession().createCriteria(Administrator.class).add(Property.forName(id).eq(id)).uniqueResult(); return administrator; } I get the error message. How shall I modify the code? I tried it with Transaction tx = ... and then tx.begin() tx.commit() -- but then suddenly hibernate tries permanently to update an object... wired ! - Ursprüngliche Mail Von: Pieter Degraeuwe pieter.degrae...@systemworks.be An: users@wicket.apache.org Gesendet: Dienstag, den 6. Oktober 2009, 09:29:58 Uhr Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction You did not setup your transactions properly. Or you start your transaction manually, or if you like spring, you can let spring manage it. (just add your transction annotations to your services, and, done ! On Tue, Oct 6, 2009 at 9:15 AM, Peter Arnulf Lustig u...@yahoo.de wrote: get this error always! I don't understand why. this is my hibernate.cfg.xml hibernate-configuration session-factory name=session1 property name=hibernate.dialectorg.hibernate.dialect.MySQLDialect/property property name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property property name=hibernate.connection.urljdbc:mysql://localhost:3306/mydb/property property name=hibernate.connection.usernameroot/property property name=hibernate.current_session_context_classorg.hibernate.context.ThreadLocalSessionContext/property mapping resource=org/omikron/test/data/Ticket.hbm.xml/ mapping resource=org/omikron/test/data/Testprocedure.hbm.xml/ mapping resource=org/omikron/test/data/Tag.hbm.xml/ mapping resource=org/omikron/test/data/Testentity.hbm.xml/ mapping resource=org/omikron/test/data/Questionset.hbm.xml/ mapping resource=org/omikron/test/data/Administrator.hbm.xml/ mapping resource=org/omikron/test/data/Systemsetting.hbm.xml/ mapping resource=org/omikron/test/data/Question.hbm.xml/ /session-factory /hibernate-configuration Do you have an idea? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Send file to client via Ajax
Sorry, I forgot a class import org.apache.wicket.IResourceListener; import org.apache.wicket.markup.html.WebMarkupContainer; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class DocumentResourceListener extends WebMarkupContainer implements IResourceListener { private static final long serialVersionUID = 1L; private IResourceListener resourceListener; /** * Constructor receiving an IResourceListener.. * * @param id * @param resourceListener */ public DocumentResourceListener(final String id, IResourceListener resourceListener) { super(id); this.resourceListener = resourceListener; } /** * Gets the url to use for this link. * * @return The URL that this link links to */ protected CharSequence getURL() { return urlFor(IResourceListener.INTERFACE); } @Override protected boolean getStatelessHint() { return false; } public void onResourceRequested() { this.resourceListener.onResourceRequested(); } } Best, Ernesto On Tue, Oct 6, 2009 at 9:53 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Hi Cristian, I've got it working! Just place all the following files at the same package and you will get a working example (I tested them with FF35 and IE7). import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.AbstractReadOnlyModel; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class TestPage extends WebPage{ private Label text; private String labelText = Hi!; private DocumentResourceListener documentResourceListener; /** * */ public TestPage() { AjaxLinkVoid link = new AjaxLinkVoid(link) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { TestPage.this.labelText = Hi! and donwload image!; if(target!= null) { target.addComponent(TestPage.this.text); String url = documentResourceListener.getURL().toString(); target.appendJavascript(;alert('Hi');window.location.href='+url+';); } } }; add(link); text = new Label(text, new AbstractReadOnlyModelString() { private static final long serialVersionUID = 1L; @Override public String getObject() { return TestPage.this.labelText; } }); text.setOutputMarkupId(true); add(text); documentResourceListener = new DocumentResourceListener(listener, new MyPdfResource()); add(documentResourceListener); } } --- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns:wicket=org.apache.wicket head /head body a wicket:id=linkClick Me/a span wicket:id=text/span div wicket:id=listener/div /body /html - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.apache.wicket.markup.html.DynamicWebResource; import org.apache.wicket.protocol.http.WebResponse; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class MyPdfResource extends DynamicWebResource { private static final long serialVersionUID = 1L; static int BUFFER_SIZE = 10*1024; /** * */ public MyPdfResource() { } /* (non-Javadoc) * @see org.apache.wicket.markup.html.DynamicWebResource#getResourceState() */ @Override protected ResourceState getResourceState() { return new ResourceState() { @Override public String getContentType() { return application/pdf; } @Override public byte[] getData() { try { return bytes(MyPdfResource.class.getResourceAsStream(jta-1_1-spec.pdf)); } catch (Exception e) { return null; } } }; } public static byte[] bytes(InputStream is) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); copy(is, out); return out.toByteArray(); } @Override protected void setHeaders(WebResponse response) { super.setHeaders(response); response.setAttachmentHeader(jta-1_1-spec.pdf); } public static void copy(InputStream is, OutputStream os) throws IOException { byte[] buf = new byte[BUFFER_SIZE]; while (true) { int tam = is.read(buf); if (tam == -1) { return; } os.write(buf, 0, tam); } } } Just replace jta-1_1-spec.pdf with your own PDF file on MyPdfResource and the exampel should work. An important bit here if @Override protected void setHeaders(WebResponse response) { response.setAttachmentHeader(jta-1_1-spec.pdf); } which makes the file to treated as an attachment instead of replacing the current page. Best, Ernesto P.S. Would it useful to add this to Wicket's wiki?
Re: server push
Hello, you check-out push-parent from wicketstuff. or you can check this out: http://code.google.com/p/wicket-comet/ ii is a modified version of push-parent ( for our own req.). and also comet works on jetty and glassfish server (you need grizzly for this to work on glassfish) Jahid wrote: Hi, We need server push for one of our web application. Is there something that you can suggest? The requirement is, it should work on any server (Tomcat, jetty, jboss,). is there any wicket component that does this? I have heard about wicketstuff-push, but i also heard that it only works with jetty. any kind of suggestion is welcome. thanks in advance. //jahid - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/server-push-tp25746064p25764396.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: org.hibernate.HibernateException: createCriteria is not valid without active transaction
a HibernateListener is something completely different.It is not required to config a TransactionFactory in your config xml. There is implicitly always one.. (if I remember well, since I always use Spring to configure my Hibernate...) I suggest that you look first to some hibernate examples, since these issues are not related to wicket. On Tue, Oct 6, 2009 at 9:53 AM, Peter Arnulf Lustig u...@yahoo.dewrote: ok! So I need a listener class like HibernateListener and a Transactionfactory in the config xml ? - Ursprüngliche Mail Von: Pieter Degraeuwe pieter.degrae...@systemworks.be An: users@wicket.apache.org Gesendet: Dienstag, den 6. Oktober 2009, 09:49:42 Uhr Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction Indeed, when you start a transaction and get an object from the database, hibernate wil persist changes to that object when you transaction (and thus sesseion) is still open. This is normal behaviour. Note that it is in most cases a bad habit to use manual transaction management... On Tue, Oct 6, 2009 at 9:44 AM, Peter Arnulf Lustig u...@yahoo.de wrote: How can I do it manually? For example: I have a DataProvider class with a method: public static Administrator getAdministrator(Integer id) { Administrator administrator= (Administrator) HibernateUtil.getSessionFactory().getCurrentSession().createCriteria(Administrator.class).add(Property.forName(id).eq(id)).uniqueResult(); return administrator; } I get the error message. How shall I modify the code? I tried it with Transaction tx = ... and then tx.begin() tx.commit() -- but then suddenly hibernate tries permanently to update an object... wired ! - Ursprüngliche Mail Von: Pieter Degraeuwe pieter.degrae...@systemworks.be An: users@wicket.apache.org Gesendet: Dienstag, den 6. Oktober 2009, 09:29:58 Uhr Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid without active transaction You did not setup your transactions properly. Or you start your transaction manually, or if you like spring, you can let spring manage it. (just add your transction annotations to your services, and, done ! On Tue, Oct 6, 2009 at 9:15 AM, Peter Arnulf Lustig u...@yahoo.de wrote: get this error always! I don't understand why. this is my hibernate.cfg.xml hibernate-configuration session-factory name=session1 property name=hibernate.dialectorg.hibernate.dialect.MySQLDialect/property property name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property property name=hibernate.connection.urljdbc:mysql://localhost:3306/mydb/property property name=hibernate.connection.usernameroot/property property name=hibernate.current_session_context_classorg.hibernate.context.ThreadLocalSessionContext/property mapping resource=org/omikron/test/data/Ticket.hbm.xml/ mapping resource=org/omikron/test/data/Testprocedure.hbm.xml/ mapping resource=org/omikron/test/data/Tag.hbm.xml/ mapping resource=org/omikron/test/data/Testentity.hbm.xml/ mapping resource=org/omikron/test/data/Questionset.hbm.xml/ mapping resource=org/omikron/test/data/Administrator.hbm.xml/ mapping resource=org/omikron/test/data/Systemsetting.hbm.xml/ mapping resource=org/omikron/test/data/Question.hbm.xml/ /session-factory /hibernate-configuration Do you have an idea? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pieter Degraeuwe Systemworks bvba Belgiëlaan 61 9070 Destelbergen GSM: +32 (0)485/68.60.85 Email: pieter.degrae...@systemworks.be visit us at http://www.systemworks.be
Re: server push
Depending when you have to roll this out, have you considered HTML 5's web sockets? It will give you server push and more. On Mon, Oct 5, 2009 at 8:08 AM, Md. Jahid Shohel ja...@outscore.se wrote: Hi, We need server push for one of our web application. Is there something that you can suggest? The requirement is, it should work on any server (Tomcat, jetty, jboss,). is there any wicket component that does this? I have heard about wicketstuff-push, but i also heard that it only works with jetty. any kind of suggestion is welcome. thanks in advance. //jahid - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Tree-table css/layout problem when the label of the tree-node is long
Dear Wicketeers, I am using the wicket's standard tree-table widget, and it works fine; except when a tree-node has longer (wider) text which does not fit to the available space, then this text becomes invisible. Any ideas how to fix this, preferably using some css alterations? The label should appear, but it should be just clipped (no scrollbars etc...). Thanks in advance. Zoltan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Send file to client via Ajax
Yes it would be usefull. But where does DocumentResourceListener came from? I'm using wicket 1.3.6 and DocumentResourceListener is not available. Thanks Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 09:54 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Hi Cristian, I've got it working! Just place all the following files at the same package and you will get a working example (I tested them with FF35 and IE7). import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.AbstractReadOnlyModel; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class TestPage extends WebPage{ private Label text; private String labelText = Hi!; private DocumentResourceListener documentResourceListener; /** * */ public TestPage() { AjaxLinkVoid link = new AjaxLinkVoid(link) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { TestPage.this.labelText = Hi! and donwload image!; if(target!= null) { target.addComponent(TestPage.this.text); String url = documentResourceListener.getURL().toString(); target.appendJavascript(;alert('Hi');window.location.href='+url+';); } } }; add(link); text = new Label(text, new AbstractReadOnlyModelString() { private static final long serialVersionUID = 1L; @Override public String getObject() { return TestPage.this.labelText; } }); text.setOutputMarkupId(true); add(text); documentResourceListener = new DocumentResourceListener(listener, new MyPdfResource()); add(documentResourceListener); } } --- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns:wicket=org.apache.wicket head /head body a wicket:id=linkClick Me/a span wicket:id=text/span div wicket:id=listener/div /body /html - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.apache.wicket.markup.html.DynamicWebResource; import org.apache.wicket.protocol.http.WebResponse; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class MyPdfResource extends DynamicWebResource { private static final long serialVersionUID = 1L; static int BUFFER_SIZE = 10*1024; /** * */ public MyPdfResource() { } /* (non-Javadoc) * @see org.apache.wicket.markup.html.DynamicWebResource#getResourceState() */ @Override protected ResourceState getResourceState() { return new ResourceState() { @Override public String getContentType() { return application/pdf; } @Override public byte[] getData() { try { return bytes(MyPdfResource.class.getResourceAsStream(jta-1_1-spec.pdf)); } catch (Exception e) { return null; } } }; } public static byte[] bytes(InputStream is) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); copy(is, out); return out.toByteArray(); } @Override protected void setHeaders(WebResponse response) { super.setHeaders(response); response.setAttachmentHeader(jta-1_1-spec.pdf); } public static void copy(InputStream is, OutputStream os) throws IOException { byte[] buf = new byte[BUFFER_SIZE]; while (true) { int tam = is.read(buf); if (tam == -1) { return; } os.write(buf, 0, tam); } } } Just replace jta-1_1-spec.pdf with your own PDF file on MyPdfResource and the exampel should work. An important bit here if @Override protected void setHeaders(WebResponse response) { response.setAttachmentHeader(jta-1_1-spec.pdf); } which makes the file to treated as an attachment instead of replacing the current page. Best, Ernesto P.S. Would it useful to add this to Wicket's wiki? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Send file to client via Ajax
Just sent it on my last e-mail! Here it is again! import org.apache.wicket.IResourceListener; import org.apache.wicket.markup.html.WebMarkupContainer; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class DocumentResourceListener extends WebMarkupContainer implements IResourceListener { private static final long serialVersionUID = 1L; private IResourceListener resourceListener; /** * Constructor receiving an IResourceListener.. * * @param id * @param resourceListener */ public DocumentResourceListener(final String id, IResourceListener resourceListener) { super(id); this.resourceListener = resourceListener; } /** * Gets the url to use for this link. * * @return The URL that this link links to */ protected CharSequence getURL() { return urlFor(IResourceListener.INTERFACE); } @Override protected boolean getStatelessHint() { return false; } public void onResourceRequested() { this.resourceListener.onResourceRequested(); } } This is just a trick to have component that generates file contents on the same page! I think you could used mounted resources as well, or just a dedicated servlet if you want to get file generation out of wicket! Best, Ernesto On Tue, Oct 6, 2009 at 11:24 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Yes it would be usefull. But where does DocumentResourceListener came from? I'm using wicket 1.3.6 and DocumentResourceListener is not available. Thanks Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 09:54 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Hi Cristian, I've got it working! Just place all the following files at the same package and you will get a working example (I tested them with FF35 and IE7). import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.AbstractReadOnlyModel; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class TestPage extends WebPage{ private Label text; private String labelText = Hi!; private DocumentResourceListener documentResourceListener; /** * */ public TestPage() { AjaxLinkVoid link = new AjaxLinkVoid(link) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { TestPage.this.labelText = Hi! and donwload image!; if(target!= null) { target.addComponent(TestPage.this.text); String url = documentResourceListener.getURL().toString(); target.appendJavascript(;alert('Hi');window.location.href='+url+';); } } }; add(link); text = new Label(text, new AbstractReadOnlyModelString() { private static final long serialVersionUID = 1L; @Override public String getObject() { return TestPage.this.labelText; } }); text.setOutputMarkupId(true); add(text); documentResourceListener = new DocumentResourceListener(listener, new MyPdfResource()); add(documentResourceListener); } } --- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns:wicket=org.apache.wicket head /head body a wicket:id=linkClick Me/a span wicket:id=text/span div wicket:id=listener/div /body /html - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.apache.wicket.markup.html.DynamicWebResource; import org.apache.wicket.protocol.http.WebResponse; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class MyPdfResource extends DynamicWebResource { private static final long serialVersionUID = 1L; static int BUFFER_SIZE = 10*1024; /** * */ public MyPdfResource() { } /* (non-Javadoc) * @see org.apache.wicket.markup.html.DynamicWebResource#getResourceState() */ @Override protected ResourceState getResourceState() { return new ResourceState() { @Override public String getContentType() { return application/pdf; } @Override public byte[] getData() { try { return bytes(MyPdfResource.class.getResourceAsStream(jta-1_1-spec.pdf)); } catch (Exception e) { return null; } } }; } public static byte[] bytes(InputStream is) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream(); copy(is, out); return
How do you achieve persistency
What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AW: Send file to client via Ajax
Works like a charm. I think i've learned something about resource download via ajax. Thanks for hat. Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com www.twitter.com/excelsis_info Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 11:31 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Just sent it on my last e-mail! Here it is again! import org.apache.wicket.IResourceListener; import org.apache.wicket.markup.html.WebMarkupContainer; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class DocumentResourceListener extends WebMarkupContainer implements IResourceListener { private static final long serialVersionUID = 1L; private IResourceListener resourceListener; /** * Constructor receiving an IResourceListener.. * * @param id * @param resourceListener */ public DocumentResourceListener(final String id, IResourceListener resourceListener) { super(id); this.resourceListener = resourceListener; } /** * Gets the url to use for this link. * * @return The URL that this link links to */ protected CharSequence getURL() { return urlFor(IResourceListener.INTERFACE); } @Override protected boolean getStatelessHint() { return false; } public void onResourceRequested() { this.resourceListener.onResourceRequested(); } } This is just a trick to have component that generates file contents on the same page! I think you could used mounted resources as well, or just a dedicated servlet if you want to get file generation out of wicket! Best, Ernesto On Tue, Oct 6, 2009 at 11:24 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Yes it would be usefull. But where does DocumentResourceListener came from? I'm using wicket 1.3.6 and DocumentResourceListener is not available. Thanks Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 09:54 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Hi Cristian, I've got it working! Just place all the following files at the same package and you will get a working example (I tested them with FF35 and IE7). import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.AbstractReadOnlyModel; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class TestPage extends WebPage{ private Label text; private String labelText = Hi!; private DocumentResourceListener documentResourceListener; /** * */ public TestPage() { AjaxLinkVoid link = new AjaxLinkVoid(link) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { TestPage.this.labelText = Hi! and donwload image!; if(target!= null) { target.addComponent(TestPage.this.text); String url = documentResourceListener.getURL().toString(); target.appendJavascript(;alert('Hi');window.location.href='+url+';); } } }; add(link); text = new Label(text, new AbstractReadOnlyModelString() { private static final long serialVersionUID = 1L; @Override public String getObject() { return TestPage.this.labelText; } }); text.setOutputMarkupId(true); add(text); documentResourceListener = new DocumentResourceListener(listener, new MyPdfResource()); add(documentResourceListener); } } --- !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns:wicket=org.apache.wicket head /head body a wicket:id=linkClick Me/a span wicket:id=text/span div wicket:id=listener/div /body /html - import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.apache.wicket.markup.html.DynamicWebResource; import org.apache.wicket.protocol.http.WebResponse; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class MyPdfResource extends DynamicWebResource {
Re: Page expired stateless page?
I have the same problem... were you able to solve it? The funny thing is that the BookmarkablePageLink and the Link do not work only when deployed in BEA Weblogic 9.2 MP3. It works fine with jetty. MartinM wrote: Hi! What is this error? I keep getting it after installing 1.4-rc6 and 1.4-rc7. I definitely did not intend to have a stateless page... 2009-07-15 21:00:17,037 41856622 [btpool0-227] ERROR RequestCycle - unable to find component with path home_page_tabs_panel:panel:download_guide on stateless page [Page class = com.homepage.HomePage, id = 0, version = 0] it could be that the component is inside a repeater make your component return false in getStatelessHint() org.apache.wicket.WicketRuntimeException: unable to find component with path home_page_tabs_panel:panel:download_guide on stateless page [Page class = com.homepage.HomePage, id = 0, version = 0] it could be that the component is inside a repeater make your component return false in getStatelessHint() at org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:148) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at wicket.quickstart.Application$2.processEvents(Application.java:846) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1241) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1320) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1419) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at wicket.quickstart.TakpServlet.service(TakpServlet.java:48) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) ?? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Page-expired-stateless-page--tp24502983p25765598.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
Tree-table css/layout problem when the label of the tree-node is long
Dear Wicketeers, I am using the wicket's standard tree-table widget, and it works fine; except when a tree-node has longer (wider) text which does not fit to the available space, then this text becomes invisible. Any ideas how to fix this, preferably using some css alterations? The label should appear, but it should be just clipped (no scrollbars etc...). Thanks in advance. Zoltan
Re: How do you achieve persistency
I use Cayenne (http://cayenne.apache.org/). The GUI tool eliminates any requirement to deal with XML and maps all relationships for you. You can also tweak the XML but its not required or recommended. My workflow is to build my database directly in SQL and then point Cayenne at it and get my persistence layer generated automatically which creates my model and all relationships by following the foreign key constraints(great for legacy projects). When I modify my table structure I tell Cayenne to migrate it and it gives me a list of changes with the option of updating the DB (model wins) or updating the model (DB wins) for each change. Its fantastic for all of the tweaking that goes on in a dev cycle (eg: oops, forget I needed a table that now has to join to this other table.. No problem. Click click done). Insanely great user community and Cayenne has, in my eyes, a very Wicket like dev philosophy that favors convenience and developer productivity over other considerations. Caveat: You can do all of this with Hibernate, I always personally just found Hibernate a bit more complex and 'get in my way' then I needed. Try the quick tutorial they provide and you'll quickly know if its for you or not. John- On Tue, Oct 6, 2009 at 2:34 AM, Peter Arnulf Lustig u...@yahoo.de wrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - 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: Tree-table css/layout problem when the label of the tree-node is long
Hi Zoltan, this is a known limitation of Wicket's tree implementation. Please take a look at http://code.google.com/p/wicket-tree/ for an alternative solution. Sven zoltan luspai wrote: Dear Wicketeers, I am using the wicket's standard tree-table widget, and it works fine; except when a tree-node has longer (wider) text which does not fit to the available space, then this text becomes invisible. Any ideas how to fix this, preferably using some css alterations? The label should appear, but it should be just clipped (no scrollbars etc...). Thanks in advance. Zoltan -- View this message in context: http://www.nabble.com/Tree-table-css-layout-problem-when-the-label-of-the-tree-node-is-long-tp25765663p25766102.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
AW: Send file to client via Ajax
Yes, please add it. Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com www.twitter.com/excelsis_info Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 11:48 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Nice to hear it was of some help! I have learned a bit too while doing it:-) Cheers, Ernesto P.S. Shall I add this to a Wiki page?... when I find the time;-) On Tue, Oct 6, 2009 at 11:39 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Works like a charm. I think i've learned something about resource download via ajax. Thanks for hat. Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com www.twitter.com/excelsis_info Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 11:31 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Just sent it on my last e-mail! Here it is again! import org.apache.wicket.IResourceListener; import org.apache.wicket.markup.html.WebMarkupContainer; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class DocumentResourceListener extends WebMarkupContainer implements IResourceListener { private static final long serialVersionUID = 1L; private IResourceListener resourceListener; /** * Constructor receiving an IResourceListener.. * * @param id * @param resourceListener */ public DocumentResourceListener(final String id, IResourceListener resourceListener) { super(id); this.resourceListener = resourceListener; } /** * Gets the url to use for this link. * * @return The URL that this link links to */ protected CharSequence getURL() { return urlFor(IResourceListener.INTERFACE); } @Override protected boolean getStatelessHint() { return false; } public void onResourceRequested() { this.resourceListener.onResourceRequested(); } } This is just a trick to have component that generates file contents on the same page! I think you could used mounted resources as well, or just a dedicated servlet if you want to get file generation out of wicket! Best, Ernesto On Tue, Oct 6, 2009 at 11:24 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Yes it would be usefull. But where does DocumentResourceListener came from? I'm using wicket 1.3.6 and DocumentResourceListener is not available. Thanks Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 09:54 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Hi Cristian, I've got it working! Just place all the following files at the same package and you will get a working example (I tested them with FF35 and IE7). import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.AbstractReadOnlyModel; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class TestPage extends WebPage{ private Label text; private String labelText = Hi!; private DocumentResourceListener documentResourceListener; /** * */ public TestPage() { AjaxLinkVoid link = new AjaxLinkVoid(link) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { TestPage.this.labelText = Hi! and donwload image!; if(target!= null) { target.addComponent(TestPage.this.text); String url = documentResourceListener.getURL().toString(); target.appendJavascript(;alert('Hi');window.location.href='+url+';); } } }; add(link); text = new Label(text, new
Re: Wicket + Guice + Warp-persist + Hibernate
How does the code that are using it look like? Are you using detachable models etc? 2009/10/6 Jeffrey Schneller jeffrey.schnel...@envisa.com So I took the plunge and tried to implement Guice + Warp Persist to solve my lazy loading issues. I know I may not have it all figured out with regards to lazy loading but I can't even get simple data access to work now. Sorry for all the questions and issues. Can anyone provide some insight on what is wrong or what I am missing. The Hibernate configuration succeeds in the getModule() method. Thanks. Code is below: My Web Application public class WicketApplication extends WebApplication { private PersistenceService service; public WicketApplication() { } @Override public Class? extends Page getHomePage() { return Home.class; } @Override public Session newSession(Request request, Response response) { return new MySession(request); } @Override protected void init() { Injector injector = Guice.createInjector(PersistenceService.usingHibernate() .across(UnitOfWork.REQUEST).transactedWith( TransactionStrategy.LOCAL).buildModule(), getModule()); addComponentInstantiationListener(new GuiceComponentInjector(this, injector)); service = injector.getInstance(PersistenceService.class); service.start(); injector.injectMembers(this); } private Module getModule() { return new Module() { public void configure(Binder binder) { // default values from development String connectionUrl = the url; String username = the username; String password = the password; try { InitialContext context = new InitialContext(); connectionUrl = (String) context.lookup(java:comp/env/hibernate.connection.url); username = (String) context.lookup(java:comp/env/hibernate.connection.username); password = (String) context.lookup(java:comp/env/hibernate.connection.password); } catch (NamingException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } // annotation and xml final AnnotationConfiguration config = new AnnotationConfiguration().configure(); config.setProperty(hibernate.connection.url, connectionUrl); config.setProperty(hibernate.connection.username, username); config.setProperty(hibernate.connection.password, password); config.setProperty(hibernate.current_session_context_class, managed); binder.bind(Configuration.class).toInstance(config); } }; } } My web.xml web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID version=2.5 display-nameMyApp/display-name context-param param-nameconfiguration/param-name param-valuedevelopment/param-value /context-param !-- Warp Filter -- filter filter-namewarpSessionFilter/filter-name filter-classcom.wideplay.warp.hibernate.SessionPerRequestFilter/filte r-class /filter filter-mapping filter-namewarpSessionFilter/filter-name url-pattern/*/url-pattern /filter-mapping !-- Warp Filter -- filter filter-namewicket.filter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.myapp.WicketApplication/param-value /init-param /filter filter-mapping filter-namewicket.filter/filter-name url-pattern/*/url-pattern /filter-mapping /web-app And my Hibernate Base Generic DAO: public abstract class HibernateGenericDao implements GenericDao { private final Class persistentClass; @Inject ProviderSession hibernateSession;
iPhone webapp support?
Hi all, I was wondering whether there is some special support for iPhones available with Wicket. Something to render pages/components in native iPhone LookFeel, like eg. here: http://www.ibm.com/developerworks/library/os-eclipse-iphone/ Cheers Edmund -- Liland ...does IT better Liland IT GmbH Software Architekt email: edmund.urb...@liland.at office: +43 (0)463 220111 | fax: +43 (0)463 220111 33 | mobil: +43 (0)699 122011 16 http://www.Liland.at - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Send file to client via Ajax
Done! http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow Ernesto On Tue, Oct 6, 2009 at 12:15 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Yes, please add it. Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com www.twitter.com/excelsis_info Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 11:48 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Nice to hear it was of some help! I have learned a bit too while doing it:-) Cheers, Ernesto P.S. Shall I add this to a Wiki page?... when I find the time;-) On Tue, Oct 6, 2009 at 11:39 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Works like a charm. I think i've learned something about resource download via ajax. Thanks for hat. Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com www.twitter.com/excelsis_info Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 11:31 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Just sent it on my last e-mail! Here it is again! import org.apache.wicket.IResourceListener; import org.apache.wicket.markup.html.WebMarkupContainer; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class DocumentResourceListener extends WebMarkupContainer implements IResourceListener { private static final long serialVersionUID = 1L; private IResourceListener resourceListener; /** * Constructor receiving an IResourceListener.. * * @param id * @param resourceListener */ public DocumentResourceListener(final String id, IResourceListener resourceListener) { super(id); this.resourceListener = resourceListener; } /** * Gets the url to use for this link. * * @return The URL that this link links to */ protected CharSequence getURL() { return urlFor(IResourceListener.INTERFACE); } @Override protected boolean getStatelessHint() { return false; } public void onResourceRequested() { this.resourceListener.onResourceRequested(); } } This is just a trick to have component that generates file contents on the same page! I think you could used mounted resources as well, or just a dedicated servlet if you want to get file generation out of wicket! Best, Ernesto On Tue, Oct 6, 2009 at 11:24 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Yes it would be usefull. But where does DocumentResourceListener came from? I'm using wicket 1.3.6 and DocumentResourceListener is not available. Thanks Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 09:54 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Hi Cristian, I've got it working! Just place all the following files at the same package and you will get a working example (I tested them with FF35 and IE7). import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.ajax.markup.html.AjaxLink; import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.model.AbstractReadOnlyModel; /** * @author Ernesto Reinaldo Barreiro (reier...@gmail.com) * */ public class TestPage extends WebPage{ private Label text; private String labelText = Hi!; private DocumentResourceListener documentResourceListener; /** * */ public TestPage() { AjaxLinkVoid
Re: Wicket LinkTree and Performance
No really something nice for user, I had this issue and combine extensible selectable and hierarchical data presentation with an accordion container for major data organization, and inners LinkTree components on it. http://www.dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/layout/accordion-container http://code.google.com/p/wiquery/wiki/Accordion On Tue, Oct 6, 2009 at 4:41 AM, Аносов А.О. and...@its.samara.ru wrote: Hi, I use Wicket LinkTree component with relatively huge amount of content, and I exprience serious performance issues. It takes few seconds to expand or close node when about fifty or hundred nodes are visible, and selection of node also takes some time. Actually I need AJAX functionality of this tree. Is there known solutions of this problem or probably another component with lower latency? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Pedro Henrique Oliveira dos Santos
AW: Send file to client via Ajax
By the way, i changed it a bit and now i repaint the link instead of repainting the label, so the label isn't needed. private final DocumentResourceListener documentResourceListener; private final MyPdfResource pdf; .. final AjaxFallbackLink link = new AjaxFallbackLink(componentId) { private static final long serialVersionUID = 8947164550163497764L; @Override public void onClick(final AjaxRequestTarget target) { if (target != null) { target.addComponent(this); } final BillItem item = (BillItem) model.getObject(); try { pdf.setAttachmentname(item.getBillNumber() + .pdf); pdf.setContent(PdfHelper.generatePdf(item)); final String url = BillDataviewPanel.this.documentResourceListener.getURL().toString(); target.appendJavascript(window.location.href=' + url + ';); } catch (final Exception e) { Logger.error(e); } } }; .. this.documentResourceListener = new DocumentResourceListener(listener, this.pdf); this.add(this.documentResourceListener); And i changed MyPdfResource tob e more flexible; public class MyPdfResource extends DynamicWebResource { private byte[] content = null; private String attachmentname = null; public String getAttachmentname() { return this.attachmentname; } @Override protected ResourceState getResourceState() { return new ResourceState() { @Override public String getContentType() { return application/pdf; } @Override public byte[] getData() { try { return MyPdfResource.this.content; } catch (final Exception e) { return null; } } }; } public void setAttachmentname(final String name) { this.attachmentname = name; } public void setContent(final byte[] content) { this.content = content; } @Override protected void setHeaders(final WebResponse response) { super.setHeaders(response); response.setAttachmentHeader(this.attachmentname); } } Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com www.twitter.com/excelsis_info Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 13:18 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Done! http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow Ernesto On Tue, Oct 6, 2009 at 12:15 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Yes, please add it. Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com www.twitter.com/excelsis_info Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 11:48 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Nice to hear it was of some help! I have learned a bit too while doing it:-) Cheers, Ernesto P.S. Shall I add this to a Wiki page?... when I find the time;-) On Tue, Oct 6, 2009 at 11:39 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Works like a charm. I think i've learned something about resource download via ajax. Thanks for hat. Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com www.twitter.com/excelsis_info Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr.
Re: Send file to client via Ajax
Perfect! The label was just used to have something to repaint and show AJAX was working! The whole thing was intended to provide an example of how to do something and not the complete means to achieve it. If you feel that will make the example more clear feel free to edit the Wiki page and add/change any information in there! Best, Ernesto On Tue, Oct 6, 2009 at 1:35 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: By the way, i changed it a bit and now i repaint the link instead of repainting the label, so the label isn't needed. private final DocumentResourceListener documentResourceListener; private final MyPdfResource pdf; .. final AjaxFallbackLink link = new AjaxFallbackLink(componentId) { private static final long serialVersionUID = 8947164550163497764L; @Override public void onClick(final AjaxRequestTarget target) { if (target != null) { target.addComponent(this); } final BillItem item = (BillItem) model.getObject(); try { pdf.setAttachmentname(item.getBillNumber() + .pdf); pdf.setContent(PdfHelper.generatePdf(item)); final String url = BillDataviewPanel.this.documentResourceListener.getURL().toString(); target.appendJavascript(window.location.href=' + url + ';); } catch (final Exception e) { Logger.error(e); } } }; .. this.documentResourceListener = new DocumentResourceListener(listener, this.pdf); this.add(this.documentResourceListener); And i changed MyPdfResource tob e more flexible; public class MyPdfResource extends DynamicWebResource { private byte[] content = null; private String attachmentname = null; public String getAttachmentname() { return this.attachmentname; } @Override protected ResourceState getResourceState() { return new ResourceState() { @Override public String getContentType() { return application/pdf; } @Override public byte[] getData() { try { return MyPdfResource.this.content; } catch (final Exception e) { return null; } } }; } public void setAttachmentname(final String name) { this.attachmentname = name; } public void setContent(final byte[] content) { this.content = content; } @Override protected void setHeaders(final WebResponse response) { super.setHeaders(response); response.setAttachmentHeader(this.attachmentname); } } Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com www.twitter.com/excelsis_info Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 13:18 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Done! http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow http://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow Ernesto On Tue, Oct 6, 2009 at 12:15 PM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Yes, please add it. Mit freundlichen Grüßen Christian Giambalvo -- Fachinformatiker für Anwendungsentwicklung EXCELSIS Informationssysteme GmbH Wilhelmsplatz 8 - 70182 Stuttgart Mobile +49 176 196 32 406 Office +49 711 6 20 30 406 christian.giamba...@excelsisnet.com www.excelsisnet.com www.twitter.com/excelsis_info Sitz Stuttgart Amtsgericht Stuttgart, HRB 21104 Geschäftsführer: Christian Sauter, Dr. Nils Herda, Frank Wolf -Ursprüngliche Nachricht- Von: Ernesto Reinaldo Barreiro [mailto:reier...@gmail.com] Gesendet: Dienstag, 6. Oktober 2009 11:48 An: users@wicket.apache.org Betreff: Re: Send file to client via Ajax Nice to hear it was of some help! I have learned a bit too while doing it:-) Cheers, Ernesto P.S. Shall I add this to a Wiki page?... when I find the time;-) On Tue, Oct 6, 2009 at 11:39 AM, Giambalvo, Christian christian.giamba...@excelsisnet.com wrote: Works like
Re: iPhone webapp support?
Hi, Maybe you should take a look at jqTouch (http://www.jqtouch.com/) which is a jQuery plugin dedicated to use rich effects of safari on iPhone. You might want to use wiQuery (http://code.google.com/p/wiquery) ton bind this jQuery plugin with your wicket application. Hope this helps ! :) Edmund Urbani wrote: Hi all, I was wondering whether there is some special support for iPhones available with Wicket. Something to render pages/components in native iPhone LookFeel, like eg. here: http://www.ibm.com/developerworks/library/os-eclipse-iphone/ Cheers Edmund -- Liland ...does IT better Liland IT GmbH Software Architekt email: edmund.urb...@liland.at office: +43 (0)463 220111 | fax: +43 (0)463 220111 33 | mobil: +43 (0)699 122011 16 http://www.Liland.at - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/iPhone-webapp-support--tp2577p25767577.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: Wicket + Guice + Warp-persist + Hibernate
I haven't even got to the detachable models part of it yet. A simple query to the db does not work as it does not have the session injected. -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Tuesday, October 06, 2009 6:51 AM To: users@wicket.apache.org Subject: Re: Wicket + Guice + Warp-persist + Hibernate How does the code that are using it look like? Are you using detachable models etc? 2009/10/6 Jeffrey Schneller jeffrey.schnel...@envisa.com So I took the plunge and tried to implement Guice + Warp Persist to solve my lazy loading issues. I know I may not have it all figured out with regards to lazy loading but I can't even get simple data access to work now. Sorry for all the questions and issues. Can anyone provide some insight on what is wrong or what I am missing. The Hibernate configuration succeeds in the getModule() method. Thanks. Code is below: My Web Application public class WicketApplication extends WebApplication { private PersistenceService service; public WicketApplication() { } @Override public Class? extends Page getHomePage() { return Home.class; } @Override public Session newSession(Request request, Response response) { return new MySession(request); } @Override protected void init() { Injector injector = Guice.createInjector(PersistenceService.usingHibernate() .across(UnitOfWork.REQUEST).transactedWith( TransactionStrategy.LOCAL).buildModule(), getModule()); addComponentInstantiationListener(new GuiceComponentInjector(this, injector)); service = injector.getInstance(PersistenceService.class); service.start(); injector.injectMembers(this); } private Module getModule() { return new Module() { public void configure(Binder binder) { // default values from development String connectionUrl = the url; String username = the username; String password = the password; try { InitialContext context = new InitialContext(); connectionUrl = (String) context.lookup(java:comp/env/hibernate.connection.url); username = (String) context.lookup(java:comp/env/hibernate.connection.username); password = (String) context.lookup(java:comp/env/hibernate.connection.password); } catch (NamingException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } // annotation and xml final AnnotationConfiguration config = new AnnotationConfiguration().configure(); config.setProperty(hibernate.connection.url, connectionUrl); config.setProperty(hibernate.connection.username, username); config.setProperty(hibernate.connection.password, password); config.setProperty(hibernate.current_session_context_class, managed); binder.bind(Configuration.class).toInstance(config); } }; } } My web.xml web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID version=2.5 display-nameMyApp/display-name context-param param-nameconfiguration/param-name param-valuedevelopment/param-value /context-param !-- Warp Filter -- filter filter-namewarpSessionFilter/filter-name filter-classcom.wideplay.warp.hibernate.SessionPerRequestFilter/filte r-class /filter filter-mapping filter-namewarpSessionFilter/filter-name url-pattern/*/url-pattern /filter-mapping !-- Warp Filter -- filter filter-namewicket.filter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameapplicationClassName/param-name param-valuecom.myapp.WicketApplication/param-value /init-param /filter filter-mapping
Re: Processing dynamic text
A very simple solution to my own problem: repeaters! Man, Wicket rocks! On Oct 6, 2009, at 10:11 AM, David Leangen wrote: Wicketeers, If I have a Label that contains some text I want to process, what is the best way to do that? - Should I even be using a label? - Should I override Label's onComponentTag or something? - Is there a better way? The key is that I don't know the content in advance, so there is no way to add markup to my html. Is this beyond the scope of Wicket, or is there something in there that I've overlooked? (Concrete example below.) Thanks! =David *** Example: I have the text: The quick brown fox jumps over the lazy brown dog. I don't know the content of the text in advance, but I DO know that I want to decorate all the nouns. The meaning of decorate can change over time (maybe some CSS, maybe some js, like a popup). So I need to produce: The quick brown ##fox## jumps over the lazy brown ##dog##. - 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
London Wicket Event, Saturday November 21st
Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket + Guice + Warp-persist + Hibernate
Hmm seems like your Guice arent booted? Are you using the Guice integration from wicket as well? Does service.start() etc give an exception etc? 2009/10/6 Jeffrey Schneller jeffrey.schnel...@envisa.com I haven't even got to the detachable models part of it yet. A simple query to the db does not work as it does not have the session injected. -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Tuesday, October 06, 2009 6:51 AM To: users@wicket.apache.org Subject: Re: Wicket + Guice + Warp-persist + Hibernate How does the code that are using it look like? Are you using detachable models etc? 2009/10/6 Jeffrey Schneller jeffrey.schnel...@envisa.com So I took the plunge and tried to implement Guice + Warp Persist to solve my lazy loading issues. I know I may not have it all figured out with regards to lazy loading but I can't even get simple data access to work now. Sorry for all the questions and issues. Can anyone provide some insight on what is wrong or what I am missing. The Hibernate configuration succeeds in the getModule() method. Thanks. Code is below: My Web Application public class WicketApplication extends WebApplication { private PersistenceService service; public WicketApplication() { } @Override public Class? extends Page getHomePage() { return Home.class; } @Override public Session newSession(Request request, Response response) { return new MySession(request); } @Override protected void init() { Injector injector = Guice.createInjector(PersistenceService.usingHibernate() .across(UnitOfWork.REQUEST).transactedWith( TransactionStrategy.LOCAL).buildModule(), getModule()); addComponentInstantiationListener(new GuiceComponentInjector(this, injector)); service = injector.getInstance(PersistenceService.class); service.start(); injector.injectMembers(this); } private Module getModule() { return new Module() { public void configure(Binder binder) { // default values from development String connectionUrl = the url; String username = the username; String password = the password; try { InitialContext context = new InitialContext(); connectionUrl = (String) context.lookup(java:comp/env/hibernate.connection.url); username = (String) context.lookup(java:comp/env/hibernate.connection.username); password = (String) context.lookup(java:comp/env/hibernate.connection.password); } catch (NamingException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } // annotation and xml final AnnotationConfiguration config = new AnnotationConfiguration().configure(); config.setProperty(hibernate.connection.url, connectionUrl); config.setProperty(hibernate.connection.username, username); config.setProperty(hibernate.connection.password, password); config.setProperty(hibernate.current_session_context_class, managed); binder.bind(Configuration.class).toInstance(config); } }; } } My web.xml web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; id=WebApp_ID version=2.5 display-nameMyApp/display-name context-param param-nameconfiguration/param-name param-valuedevelopment/param-value /context-param !-- Warp Filter -- filter filter-namewarpSessionFilter/filter-name filter-classcom.wideplay.warp.hibernate.SessionPerRequestFilter/filte r-class /filter filter-mapping
Re: Page expired stateless page?
No, I increased logging and it seems this is somehow related to googlebot visits (occurs simultaneously). Maybe they do not keep session properly. Is this possible in your case that it is a googlebot visit? ** Martin 2009/10/6 sparktronics sparktronics+bul...@gmail.com: I have the same problem... were you able to solve it? The funny thing is that the BookmarkablePageLink and the Link do not work only when deployed in BEA Weblogic 9.2 MP3. It works fine with jetty. MartinM wrote: Hi! What is this error? I keep getting it after installing 1.4-rc6 and 1.4-rc7. I definitely did not intend to have a stateless page... 2009-07-15 21:00:17,037 41856622 [btpool0-227] ERROR RequestCycle - unable to find component with path home_page_tabs_panel:panel:download_guide on stateless page [Page class = com.homepage.HomePage, id = 0, version = 0] it could be that the component is inside a repeater make your component return false in getStatelessHint() org.apache.wicket.WicketRuntimeException: unable to find component with path home_page_tabs_panel:panel:download_guide on stateless page [Page class = com.homepage.HomePage, id = 0, version = 0] it could be that the component is inside a repeater make your component return false in getStatelessHint() at org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:148) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at wicket.quickstart.Application$2.processEvents(Application.java:846) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1241) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1320) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1419) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:456) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at wicket.quickstart.TakpServlet.service(TakpServlet.java:48) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:367) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:285) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475) ?? ** Martin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Page-expired-stateless-page--tp24502983p25765598.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
Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
On Tue, 2009-10-06 at 14:47 +0100, jWeekend wrote: http://jweekend.com/dev/LegUp is that really working? coz , when i clicked on Generate Maven Command button, it took me to http://jweekend.com/dev/HomePageBody - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Looks cool :) 2009/10/6 jWeekend jweekend_for...@cabouge.com We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Why dont you have a Guice 2.0 archetype? We could probably bump the warp persist guys to work on their 2.0 imp.. If thats whats stopping you? 2009/10/6 nino martinez wael nino.martinez.w...@gmail.com Looks cool :) 2009/10/6 jWeekend jweekend_for...@cabouge.com We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Works for me.. I took the guice warp persist + etc archetype.. 2009/10/6 Md. Jahid Shohel ja...@outscore.se On Tue, 2009-10-06 at 14:47 +0100, jWeekend wrote: http://jweekend.com/dev/LegUp is that really working? coz , when i clicked on Generate Maven Command button, it took me to http://jweekend.com/dev/HomePageBody - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Nice one Cemal! I will have to use leg up to get a leg over setting up Wicket projects ;-) Best, James. On Tue, Oct 6, 2009 at 2:47 PM, jWeekend jweekend_for...@cabouge.comwrote: We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Nino, We don't have a Guice 2.0 for that very reason; the warp persist guys don't have a final 2.0 release yet. Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com nino martinez wael wrote: Why dont you have a Guice 2.0 archetype? We could probably bump the warp persist guys to work on their 2.0 imp.. If thats whats stopping you? 2009/10/6 nino martinez wael nino.martinez.w...@gmail.com Looks cool :) 2009/10/6 jWeekend jweekend_for...@cabouge.com We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Leg-Up-for-Wicket%2C-Spring%2C-Guice%2C-JPA%2C-Warp%2C-EclipseLink%2C-Hibernate-...-projects-tp25769134p25769655.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: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Jahid, Thanks - a little Tomcat PERM_GEN issue. Should be OK now, but at the next scheduled restart we'll bump it up a bit. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com Jahid wrote: On Tue, 2009-10-06 at 14:47 +0100, jWeekend wrote: http://jweekend.com/dev/LegUp is that really working? coz , when i clicked on Generate Maven Command button, it took me to http://jweekend.com/dev/HomePageBody - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Leg-Up-for-Wicket%2C-Spring%2C-Guice%2C-JPA%2C-Warp%2C-EclipseLink%2C-Hibernate-...-projects-tp25769134p25769670.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
[wicket-1.4] parameterizing ResourceModel for wicket:message
Hello, I am using a properties.xml file for my wicket:message tags. And soon I wondered if there is a way to parameterize these messages, like it worked for apache struts. With wicket I can just say entry key=testfoo/entry and use wicket:message key=test / In Struts something like mymessage = foo {0} - and - bean:message key=mymessage arg0=bar/ was possible, which produced foo bar Is there already a way to do this? And if not, do you think it is worth being implemented? I searched the mailing lists and the wiki fo a solution but didn't find something similar. thx, Bernhard Grünewaldt - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
seems like its working now. really cool! On Tue, 2009-10-06 at 16:01 +0200, Md. Jahid Shohel wrote: On Tue, 2009-10-06 at 14:47 +0100, jWeekend wrote: http://jweekend.com/dev/LegUp is that really working? coz , when i clicked on Generate Maven Command button, it took me to http://jweekend.com/dev/HomePageBody - 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: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Hey, that's great! Is there any way to contribute to this? Thumbs up, Erik 2009/10/6 jWeekend jweekend_for...@cabouge.com We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [wicket-1.4] parameterizing ResourceModel for wicket:message
Hi Bernhard Have a look at StringResourceModel, though I think it's not possible to use it directly with wicket:message but you can use it easily in a label. It supports both MessageFormat style and model-style replacements. Matt Bernhard Grünewaldt wrote: Hello, I am using a properties.xml file for my wicket:message tags. And soon I wondered if there is a way to parameterize these messages, like it worked for apache struts. With wicket I can just say entry key=testfoo/entry and use wicket:message key=test / In Struts something like mymessage = foo {0} - and - bean:message key=mymessage arg0=bar/ was possible, which produced foo bar Is there already a way to do this? And if not, do you think it is worth being implemented? I searched the mailing lists and the wiki fo a solution but didn't find something similar. thx, Bernhard Grünewaldt - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org smime.p7s Description: S/MIME Cryptographic Signature
Re: [wicket-1.4] parameterizing ResourceModel for wicket:message
thx, that works. should have looked closer at the api ;) Matthias Keller schrieb: Hi Bernhard Have a look at StringResourceModel, though I think it's not possible to use it directly with wicket:message but you can use it easily in a label. It supports both MessageFormat style and model-style replacements. Matt Bernhard Grünewaldt wrote: Hello, I am using a properties.xml file for my wicket:message tags. And soon I wondered if there is a way to parameterize these messages, like it worked for apache struts. With wicket I can just say entry key=testfoo/entry and use wicket:message key=test / In Struts something like mymessage = foo {0} - and - bean:message key=mymessage arg0=bar/ was possible, which produced foo bar Is there already a way to do this? And if not, do you think it is worth being implemented? I searched the mailing lists and the wiki fo a solution but didn't find something similar. thx, Bernhard Grünewaldt - 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: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
You could always contribute to Wicket Iolite :) Which essentially are the same, or Wicketopia http://wicketopia.sourceforge.net/ http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite 2009/10/6 Erik Post eriksen...@gmail.com Hey, that's great! Is there any way to contribute to this? Thumbs up, Erik 2009/10/6 jWeekend jweekend_for...@cabouge.com We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Hi, I'm a newbie in Wicket. I use Databinder toolkit (wicket+hibernate) to help me develop DB application rapidly. With the built-in Jetty, the development is quite smooth, however, when trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. I wonder if wicket is really compatible with Tomcat, since there's no problem when run it from eclipse (Jetty). TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/BrowserInfoPage.html title=class in org.apache.wicket.markup.html.pagesBPREV CLASS/B/Anbsp; nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/InternalErrorPage.html title=class in org.apache.wicket.markup.html.pagesBNEXT CLASS/B/A/FONT/TD TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 A HREF=../../../../../../index.html?org/apache/wicket/markup/html/pages/ExceptionErrorPage.html target=_topBFRAMES/B/A nbsp; nbsp;A HREF=ExceptionErrorPage.html target=_topBNO FRAMES/B/A nbsp; nbsp;SCRIPT type=text/javascript !-- if(window==top) { document.writeln('A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A'); } //-- /SCRIPT NOSCRIPT A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A /NOSCRIPT /FONT/TD /TR TR TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 SUMMARY:nbsp;A HREF=#nested_classes_inherited_from_class_org.apache.wicket.PageNESTED/Anbsp;|nbsp;A HREF=#fields_inherited_from_class_org.apache.wicket.PageFIELD/Anbsp;|nbsp;A HREF=#constructor_summaryCONSTR/Anbsp;|nbsp;A HREF=#method_summaryMETHOD/A/FONT/TD TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 DETAIL:nbsp;FIELDnbsp;|nbsp;A HREF=#constructor_detailCONSTR/Anbsp;|nbsp;A HREF=#method_detailMETHOD/A/FONT/TD /TR /TABLE A NAME=skip-navbar_bottom/A !-- END OF BOTTOM NAVBAR === -- HR Copyright #169; 2004-2008 a href=http://apache.org;Apache Software Foundation/a. All Rights Reserved. /BODY /HTML , index = 4, current = [Raw markup]] at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:393) at org.apache.wicket.markup.MarkupParser.parse(MarkupParser.java:270) at org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:52) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:62) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553) at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343) at org.apache.wicket.Page.onRender(Page.java:1463) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:904) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1190) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1257) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Caused by: java.text.ParseException: Tag 'DT' (line 101, column
Re: How do you achieve persistency
Hmm, Im free todo what I want, I use hibernate+JPA if theres no db I model it in java and if I have the db I reverse engineer it with JPA tools from eclipse so that It generates my POJO's.. 2009/10/6 Peter Arnulf Lustig u...@yahoo.de What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Caused by: java.text.ParseException: Tag 'DT' (line 101, column 1) has a mismatched close tag at '/DL' (line 102, column 1) is the issue, your html are broken.. Regarding tomcat compability, I've deployed over dozens of apps the last 4-5 years or so on Tomcat 5.5 .. 2009/10/6 Gw not4spamm...@gmail.com Hi, I'm a newbie in Wicket. I use Databinder toolkit (wicket+hibernate) to help me develop DB application rapidly. With the built-in Jetty, the development is quite smooth, however, when trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. I wonder if wicket is really compatible with Tomcat, since there's no problem when run it from eclipse (Jetty). TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/BrowserInfoPage.html title=class in org.apache.wicket.markup.html.pagesBPREV CLASS/B/Anbsp; nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/InternalErrorPage.html title=class in org.apache.wicket.markup.html.pagesBNEXT CLASS/B/A/FONT/TD TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 A HREF=../../../../../../index.html?org/apache/wicket/markup/html/pages/ExceptionErrorPage.html target=_topBFRAMES/B/A nbsp; nbsp;A HREF=ExceptionErrorPage.html target=_topBNO FRAMES/B/A nbsp; nbsp;SCRIPT type=text/javascript !-- if(window==top) { document.writeln('A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A'); } //-- /SCRIPT NOSCRIPT A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A /NOSCRIPT /FONT/TD /TR TR TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 SUMMARY:nbsp;A HREF=#nested_classes_inherited_from_class_org.apache.wicket.PageNESTED/Anbsp;|nbsp;A HREF=#fields_inherited_from_class_org.apache.wicket.PageFIELD/Anbsp;|nbsp;A HREF=#constructor_summaryCONSTR/Anbsp;|nbsp;A HREF=#method_summaryMETHOD/A/FONT/TD TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 DETAIL:nbsp;FIELDnbsp;|nbsp;A HREF=#constructor_detailCONSTR/Anbsp;|nbsp;A HREF=#method_detailMETHOD/A/FONT/TD /TR /TABLE A NAME=skip-navbar_bottom/A !-- END OF BOTTOM NAVBAR === -- HR Copyright #169; 2004-2008 a href=http://apache.org;Apache Software Foundation/a. All Rights Reserved. /BODY /HTML , index = 4, current = [Raw markup]] at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:393) at org.apache.wicket.markup.MarkupParser.parse(MarkupParser.java:270) at org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:52) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:62) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553) at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343) at org.apache.wicket.Page.onRender(Page.java:1463) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:904) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1190) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1257) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at
Re: How do you achieve persistency
Assembler! On Tue, Oct 6, 2009 at 10:34 AM, Peter Arnulf Lustig u...@yahoo.dewrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Erik, Thanks. We'll review that soon - it is our intention but we need to be ready to take care of the project. Just for the moment, we'll take on ideas for new archetypes, and feel free to contact me via our site if you have some particular ideas and need stuff included quickly. Ideas for further project templates include Scala and Java and maybe WiQuery and possibly Lucene... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com Erik Post-5 wrote: Hey, that's great! Is there any way to contribute to this? Thumbs up, Erik 2009/10/6 jWeekend jweekend_for...@cabouge.com We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Leg-Up-for-Wicket%2C-Spring%2C-Guice%2C-JPA%2C-Warp%2C-EclipseLink%2C-Hibernate-...-projects-tp25769134p25770548.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: How do you achieve persistency
On a more serious note then perhaps just using raw JDBC if you are unsure of ORM concepts. On Tue, Oct 6, 2009 at 4:03 PM, James Perry james.austin.pe...@gmail.comwrote: Assembler! On Tue, Oct 6, 2009 at 10:34 AM, Peter Arnulf Lustig u...@yahoo.dewrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: iPhone webapp support?
no i did build something special in wicket so that it will never work on those iphones. Stop buying those fully controlled by apple phones.. Think for your self ! Freedom Freedom! johan :) On Tue, Oct 6, 2009 at 13:00, Edmund Urbani e...@liland.org wrote: Hi all, I was wondering whether there is some special support for iPhones available with Wicket. Something to render pages/components in native iPhone LookFeel, like eg. here: http://www.ibm.com/developerworks/library/os-eclipse-iphone/ Cheers Edmund -- Liland ...does IT better Liland IT GmbH Software Architekt email: edmund.urb...@liland.at office: +43 (0)463 220111 | fax: +43 (0)463 220111 33 | mobil: +43 (0)699 122011 16 http://www.Liland.at - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
On Tue, Oct 6, 2009 at 11:05 AM, James Perry james.austin.pe...@gmail.com wrote: On a more serious note then perhaps just using raw JDBC if you are unsure of ORM concepts. Isn't that kind of like saying I suggest you walk everywhere you want to go if you're unfamiliar with how to drive a car? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: London Wicket Event, Saturday November 21st
I hope that a lot of folks can come since this will be my first and likely only trip to London for quite some time - I'd like to meet as many as possible! Looking forward to seeing you there! -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 8:10 AM, jWeekend jweekend_for...@cabouge.comwrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Is wicket really compatible with Tomcat?
Hi, I'm a newbie in Wicket. I use Databinder toolkit (wicket+hibernate) to help me develop DB application rapidly. With the built-in Jetty, the development is quite smooth, however, when trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. I wonder if wicket is really compatible with Tomcat, since there's no problem when running from eclipse (Jetty). TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/BrowserInfoPage.html title=class in org.apache.wicket.markup.html.pagesBPREV CLASS/B/Anbsp; nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/InternalErrorPage.html title=class in org.apache.wicket.markup.html.pagesBNEXT CLASS/B/A/FONT/TD TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 A HREF=../../../../../../index.html?org/apache/wicket/markup/html/pages/ExceptionErrorPage.html target=_topBFRAMES/B/A nbsp; nbsp;A HREF=ExceptionErrorPage.html target=_topBNO FRAMES/B/A nbsp; nbsp;SCRIPT type=text/javascript !-- if(window==top) { document.writeln('A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A'); } //-- /SCRIPT NOSCRIPT A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A /NOSCRIPT /FONT/TD /TR TR TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 SUMMARY:nbsp;A HREF=#nested_classes_inherited_from_class_org.apache.wicket.PageNESTED/Anbsp;|nbsp;A HREF=#fields_inherited_from_class_org.apache.wicket.PageFIELD/Anbsp;|nbsp;A HREF=#constructor_summaryCONSTR/Anbsp;|nbsp;A HREF=#method_summaryMETHOD/A/FONT/TD TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 DETAIL:nbsp;FIELDnbsp;|nbsp;A HREF=#constructor_detailCONSTR/Anbsp;|nbsp;A HREF=#method_detailMETHOD/A/FONT/TD /TR /TABLE A NAME=skip-navbar_bottom/A !-- END OF BOTTOM NAVBAR === -- HR Copyright #169; 2004-2008 a href=http://apache.org;Apache Software Foundation/a. All Rights Reserved. /BODY /HTML , index = 4, current = [Raw markup]] at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:393) at org.apache.wicket.markup.MarkupParser.parse(MarkupParser.java:270) at org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:52) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:62) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553) at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343) at org.apache.wicket.Page.onRender(Page.java:1463) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:904) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1190) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1257) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Caused by: java.text.ParseException: Tag 'DT' (line 101,
Re: How do you achieve persistency
On Tue, Oct 6, 2009 at 5:42 PM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Oct 6, 2009 at 11:05 AM, James Perry james.austin.pe...@gmail.com wrote: On a more serious note then perhaps just using raw JDBC if you are unsure of ORM concepts. Isn't that kind of like saying I suggest you walk everywhere you want to go if you're unfamiliar with how to drive a car? That's fairly sound advice though, isn't it? And may I add may own two cents in suggesting iBatis if you prefer SQL to things like JPA or Hibernate? Cheers, Erik - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is wicket really compatible with Tomcat?
Hundreds if not thousands of Wicket applications are deployed on Tomcat. The error describes a problem in your HTML - not sure why it would only appear in Tomcat unless the file was mangled during deployment. Please post the contents of the HTML file that supposedly has a mismatched tag. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 10:48 AM, Gw not4spamm...@gmail.com wrote: Hi, I'm a newbie in Wicket. I use Databinder toolkit (wicket+hibernate) to help me develop DB application rapidly. With the built-in Jetty, the development is quite smooth, however, when trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. I wonder if wicket is really compatible with Tomcat, since there's no problem when running from eclipse (Jetty). TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/BrowserInfoPage.html title=class in org.apache.wicket.markup.html.pagesBPREV CLASS/B/Anbsp; nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/InternalErrorPage.html title=class in org.apache.wicket.markup.html.pagesBNEXT CLASS/B/A/FONT/TD TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 A HREF=../../../../../../index.html?org/apache/wicket/markup/html/pages/ExceptionErrorPage.html target=_topBFRAMES/B/A nbsp; nbsp;A HREF=ExceptionErrorPage.html target=_topBNO FRAMES/B/A nbsp; nbsp;SCRIPT type=text/javascript !-- if(window==top) { document.writeln('A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A'); } //-- /SCRIPT NOSCRIPT A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A /NOSCRIPT /FONT/TD /TR TR TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 SUMMARY:nbsp;A HREF=#nested_classes_inherited_from_class_org.apache.wicket.PageNESTED/Anbsp;|nbsp;A HREF=#fields_inherited_from_class_org.apache.wicket.PageFIELD/Anbsp;|nbsp;A HREF=#constructor_summaryCONSTR/Anbsp;|nbsp;A HREF=#method_summaryMETHOD/A/FONT/TD TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 DETAIL:nbsp;FIELDnbsp;|nbsp;A HREF=#constructor_detailCONSTR/Anbsp;|nbsp;A HREF=#method_detailMETHOD/A/FONT/TD /TR /TABLE A NAME=skip-navbar_bottom/A !-- END OF BOTTOM NAVBAR === -- HR Copyright #169; 2004-2008 a href=http://apache.org;Apache Software Foundation/a. All Rights Reserved. /BODY /HTML , index = 4, current = [Raw markup]] at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:393) at org.apache.wicket.markup.MarkupParser.parse(MarkupParser.java:270) at org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:52) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:62) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553) at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343) at org.apache.wicket.Page.onRender(Page.java:1463) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:904) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1190) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1257) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at
Re: iPhone webapp support?
Everyone needs to check out this picture of Johan with his phone - it will clear things up: http://tinyurl.com/myz5dq -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 10:48 AM, Matej Knopp matej.kn...@gmail.com wrote: On Tue, Oct 6, 2009 at 5:32 PM, Johan Compagner jcompag...@gmail.com wrote: no i did build something special in wicket so that it will never work on those iphones. Stop buying those fully controlled by apple phones.. Think for your self ! Freedom Freedom! Are people still making fun of your huge nokia? ;-) -Matej johan :) On Tue, Oct 6, 2009 at 13:00, Edmund Urbani e...@liland.org wrote: Hi all, I was wondering whether there is some special support for iPhones available with Wicket. Something to render pages/components in native iPhone LookFeel, like eg. here: http://www.ibm.com/developerworks/library/os-eclipse-iphone/ Cheers Edmund -- Liland ...does IT better Liland IT GmbH Software Architekt email: edmund.urb...@liland.at office: +43 (0)463 220111 | fax: +43 (0)463 220111 33 | mobil: +43 (0)699 122011 16 http://www.Liland.at - 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: How do you achieve persistency
On Tue, Oct 6, 2009 at 11:50 AM, Erik Post eriksen...@gmail.com wrote: That's fairly sound advice though, isn't it? And may I add may own two cents in suggesting iBatis if you prefer SQL to things like JPA or Hibernate? I don't know if I'd call it sound advice. Sure, walking can give you exercise (I need to walk a bit more myself), but taking the time to learn to drive a car would sure save you a LOT of time (especially in the US) in the long run. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: iPhone webapp support?
Its almost getting replaced! http://maemo.nokia.com/n900/ pure power! Full control! Multi tasking! On Tue, Oct 6, 2009 at 17:48, Matej Knopp matej.kn...@gmail.com wrote: On Tue, Oct 6, 2009 at 5:32 PM, Johan Compagner jcompag...@gmail.com wrote: no i did build something special in wicket so that it will never work on those iphones. Stop buying those fully controlled by apple phones.. Think for your self ! Freedom Freedom! Are people still making fun of your huge nokia? ;-) -Matej johan :) On Tue, Oct 6, 2009 at 13:00, Edmund Urbani e...@liland.org wrote: Hi all, I was wondering whether there is some special support for iPhones available with Wicket. Something to render pages/components in native iPhone LookFeel, like eg. here: http://www.ibm.com/developerworks/library/os-eclipse-iphone/ Cheers Edmund -- Liland ...does IT better Liland IT GmbH Software Architekt email: edmund.urb...@liland.at office: +43 (0)463 220111 | fax: +43 (0)463 220111 33 | mobil: +43 (0)699 122011 16 http://www.Liland.at - 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: iPhone webapp support?
I had that one way way back! It was even an analog phone (instead of the digital gsm)! When my first mobile phone was ringing in a classroom even the teacher thought that was funny! Where are those times! On Tue, Oct 6, 2009 at 17:53, Jeremy Thomerson jer...@wickettraining.comwrote: Everyone needs to check out this picture of Johan with his phone - it will clear things up: http://tinyurl.com/myz5dq -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 10:48 AM, Matej Knopp matej.kn...@gmail.com wrote: On Tue, Oct 6, 2009 at 5:32 PM, Johan Compagner jcompag...@gmail.com wrote: no i did build something special in wicket so that it will never work on those iphones. Stop buying those fully controlled by apple phones.. Think for your self ! Freedom Freedom! Are people still making fun of your huge nokia? ;-) -Matej johan :) On Tue, Oct 6, 2009 at 13:00, Edmund Urbani e...@liland.org wrote: Hi all, I was wondering whether there is some special support for iPhones available with Wicket. Something to render pages/components in native iPhone LookFeel, like eg. here: http://www.ibm.com/developerworks/library/os-eclipse-iphone/ Cheers Edmund -- Liland ...does IT better Liland IT GmbH Software Architekt email: edmund.urb...@liland.at office: +43 (0)463 220111 | fax: +43 (0)463 220111 33 | mobil: +43 (0)699 122011 16 http://www.Liland.at - 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: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Hi Cemal, On Tue, Oct 6, 2009 at 5:05 PM, jWeekend jweekend_for...@cabouge.com wrote: Thanks. We'll review that soon - it is our intention but we need to be ready to take care of the project. Just for the moment, we'll take on ideas for new archetypes, and feel free to contact me via our site if you have some particular ideas and need stuff included quickly. Great! I would like to suggest an EJB archetype. EJB seems to be fairly impopular amongst Wicket people, but what with the upcoming changes to EJB (version 3.1, no XML, a Lite' web profile) and Spring (3.0, proprietaryish goings-on) I think EJB's are looking comparatively sweet. By the way, it would be pretty cool to reference your page from the Wicket quickstart page, wouldn't it? Things are pretty scattered atm and I think this makes Wicket needlessly hard to get into. Ideas for further project templates include Scala and Java I'm experimenting with this atm from an adapted version of Wicketopia, and yeah, it would have been great to have had an archetype for this ;) Cheers, Erik Erik Post-5 wrote: Hey, that's great! Is there any way to contribute to this? Thumbs up, Erik 2009/10/6 jWeekend jweekend_for...@cabouge.com We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Leg-Up-for-Wicket%2C-Spring%2C-Guice%2C-JPA%2C-Warp%2C-EclipseLink%2C-Hibernate-...-projects-tp25769134p25770548.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: iPhone webapp support?
On Tue, Oct 6, 2009 at 5:32 PM, Johan Compagner jcompag...@gmail.com wrote: no i did build something special in wicket so that it will never work on those iphones. Stop buying those fully controlled by apple phones.. Think for your self ! Freedom Freedom! Are people still making fun of your huge nokia? ;-) -Matej johan :) On Tue, Oct 6, 2009 at 13:00, Edmund Urbani e...@liland.org wrote: Hi all, I was wondering whether there is some special support for iPhones available with Wicket. Something to render pages/components in native iPhone LookFeel, like eg. here: http://www.ibm.com/developerworks/library/os-eclipse-iphone/ Cheers Edmund -- Liland ...does IT better Liland IT GmbH Software Architekt email: edmund.urb...@liland.at office: +43 (0)463 220111 | fax: +43 (0)463 220111 33 | mobil: +43 (0)699 122011 16 http://www.Liland.at - 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: How do you achieve persistency
On Tue, Oct 6, 2009 at 5:55 PM, James Carman jcar...@carmanconsulting.com wrote: On Tue, Oct 6, 2009 at 11:50 AM, Erik Post eriksen...@gmail.com wrote: That's fairly sound advice though, isn't it? And may I add may own two cents in suggesting iBatis if you prefer SQL to things like JPA or Hibernate? I don't know if I'd call it sound advice. Sure, walking can give you exercise (I need to walk a bit more myself), but taking the time to learn to drive a car would sure save you a LOT of time (especially in the US) in the long run. Ah, that must be why I'm so slow and skinn... err streamlined! Anyway, it's not /necessarily/ true that using an ORM like JPA/iBatis will save you time; hence the iBatis pointer. I think it often gets overlooked... Cheers, Erik - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
Imho, there is not an universal fast and easy way. We are migrating a mid-sized client-server system which has a fairly big number of rather complex queries already written as stored procedures. So our fast and easy way is to use code generation to get JDBC based DAOs that wrap the stored procs call. We even keep writing stored procs for new requirements, all our devs know SQL well and I don't believe we will gain anything by using Hibernate instead. If you are starting from scratch by modeling the domain as java classes, then I guess ORM would be your best choice, but can't give you hints on what specific tool would be best for you. Cheers, Daniel Peter Arnulf Lustig wrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25772167.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: How do you achieve persistency
On Tue, Oct 6, 2009 at 12:32 PM, dtoffe dto...@yahoo.com.ar wrote: So our fast and easy way is to use code generation to get JDBC based DAOs that wrap the stored procs call. We even keep writing stored procs for new requirements, all our devs know SQL well and I don't believe we will gain anything by using Hibernate instead. How do you unit test? How do you keep the stored procedures and your Java code in synch? I only ask because I've seen that sort of set-up at a client before and they had a nightmare of a time keeping things straight and making sure they didn't break other things when they changed their stored procedures. For me, I like to keep my logic out of stored procedures as much as I can. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
There are many ways to skin a cat. Personally I like to use machine code to give it a slow, painful death. Best, James. On Tue, Oct 6, 2009 at 4:42 PM, James Carman jcar...@carmanconsulting.comwrote: On Tue, Oct 6, 2009 at 11:05 AM, James Perry james.austin.pe...@gmail.com wrote: On a more serious note then perhaps just using raw JDBC if you are unsure of ORM concepts. Isn't that kind of like saying I suggest you walk everywhere you want to go if you're unfamiliar with how to drive a car? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How do you achieve persistency
I've just finished up my first Wicket + ORM project. I knew nothing about ORM when I started, so I decided to go with Hibernate since it seems to be the most commonly used. It was both painful and educational. My only suggestion is to suck it up and put in the effort it will take to learn it. I'm by no means an expert at it (and trying to figure out the complicated bits still makes me want to scream), but it works and I can see that learning it well would save me a lot of time and effort in larger projects in the future. Dane On Tue, Oct 6, 2009 at 9:47 AM, James Perry james.austin.pe...@gmail.com wrote: There are many ways to skin a cat. Personally I like to use machine code to give it a slow, painful death. Best, James. On Tue, Oct 6, 2009 at 4:42 PM, James Carman jcar...@carmanconsulting.comwrote: On Tue, Oct 6, 2009 at 11:05 AM, James Perry james.austin.pe...@gmail.com wrote: On a more serious note then perhaps just using raw JDBC if you are unsure of ORM concepts. Isn't that kind of like saying I suggest you walk everywhere you want to go if you're unfamiliar with how to drive a car? - 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: How do you achieve persistency
I use a product called JPersist - no XML, just POJOs. Has built in pooling. I instantiate the DatabaseManager in the web application and use a getter. http://www.jpersist.org It has a list of tested databases, but I use Microsoft SQL. Haven't had too many issues with it. On Tue, Oct 6, 2009 at 5:34 AM, Peter Arnulf Lustig u...@yahoo.dewrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5:::: failed: null
Hi, I did some refactoring in an old Wicket code amd I get the warning message in the subject: 2009-10-06 19:37:34,484 WARN [org.apache.wicket.protocol.http.WebResponse] - redirect to ?wicket:interface=:5 failed: null I tried to debug, did some breakpointing etc. but could not understand why do I get this. Can someone give me a hint on where to start looking and to understand what's going on? Thanks, Eyal Eyal Golan egola...@gmail.com Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary
Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Erik, No such prejudice here: a Wicket with EJB 3+ archetype is a very good idea and I was already planning on us setting up an archetype for JBoss and wicket-javaee [1] (that contrib library just works by the way - we've used it with no problems so far on a couple of projects, one with JBoss - and IIRC RedHat finally did publish a decent Maven2 repo). I have nothing against a link from the Wicket QuickStart page either, but we are not necessarily promising instantaneous support for users of these archetypes - the idea is just to provide a well-proven starting point for people wanting to skip the sometimes huge (and often off-putting) effort to work out how all these frameworks/libraries and the multitude of version play nicely together (not to mention figuring out all the transitive dependencies and how to best write tests and other, boiler-plate bootstraping code). By the way, we use these archetypes ourselves too, and they do save us plenty of time - it's one less (often non-trivial) thing to worry about when you start your project or just want to experiment with/learn how to use one of these frameworks/libraries. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee Erik Post-5 wrote: Hi Cemal, On Tue, Oct 6, 2009 at 5:05 PM, jWeekend jweekend_for...@cabouge.com wrote: Thanks. We'll review that soon - it is our intention but we need to be ready to take care of the project. Just for the moment, we'll take on ideas for new archetypes, and feel free to contact me via our site if you have some particular ideas and need stuff included quickly. Great! I would like to suggest an EJB archetype. EJB seems to be fairly impopular amongst Wicket people, but what with the upcoming changes to EJB (version 3.1, no XML, a Lite' web profile) and Spring (3.0, proprietaryish goings-on) I think EJB's are looking comparatively sweet. By the way, it would be pretty cool to reference your page from the Wicket quickstart page, wouldn't it? Things are pretty scattered atm and I think this makes Wicket needlessly hard to get into. Ideas for further project templates include Scala and Java I'm experimenting with this atm from an adapted version of Wicketopia, and yeah, it would have been great to have had an archetype for this ;) Cheers, Erik Erik Post-5 wrote: Hey, that's great! Is there any way to contribute to this? Thumbs up, Erik 2009/10/6 jWeekend jweekend_for...@cabouge.com We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Leg-Up-for-Wicket%2C-Spring%2C-Guice%2C-JPA%2C-Warp%2C-EclipseLink%2C-Hibernate-...-projects-tp25769134p25770548.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 -- View this message in context: http://www.nabble.com/Leg-Up-for-Wicket%2C-Spring%2C-Guice%2C-JPA%2C-Warp%2C-EclipseLink%2C-Hibernate-...-projects-tp25769134p25773473.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: Generics and SortableDataProvider
Hi Jonny, yes, it works exactly like you described it. Sven jwray wrote: Hi Sven, Thanks for your reply. Since I sent the original question I ended up doing what you suggested and now I'm wondering why I ever used the id projection approach. Habit I guess, formed with previous frameworks. Just to make sure I've got this right, as long as I use a DetachableModel as a return from model method, the domain objects aren't stored in the session even if they are returned from the iterator. Am I correct in this? Jonny svenmeier wrote: Hi John, I believe the consensus on this list is that you should change your approach: Why don't you just iterate over your domain objects in the first place? They will be loaded anyway to be displayed on your component. So your approach triggers 1+n selects instead of 1 select for all required objects at once. Sven - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Is wicket really compatible with Tomcat?
Hi, Jemery, thx for your sincere support. I've figured out the cause, which is because I copied all the jars to the lib folder (including source and javadoc jars). Never crossed my mind that those additional jars can be problems. Probably the HTML pages in javadoc jars conflict with the app's, if I may guess. Thx a lot for your enlightment anyway. BTW, is jetty powerful enough for production? Do I have to reRun the app (restart Jetty) to make a change effective everytime I update a class? Thx n Regards, Gw On Tue, Oct 6, 2009 at 10:52 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Hundreds if not thousands of Wicket applications are deployed on Tomcat. The error describes a problem in your HTML - not sure why it would only appear in Tomcat unless the file was mangled during deployment. Please post the contents of the HTML file that supposedly has a mismatched tag. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 10:48 AM, Gw not4spamm...@gmail.com wrote: Hi, I'm a newbie in Wicket. I use Databinder toolkit (wicket+hibernate) to help me develop DB application rapidly. With the built-in Jetty, the development is quite smooth, however, when trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. I wonder if wicket is really compatible with Tomcat, since there's no problem when running from eclipse (Jetty). TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/BrowserInfoPage.html title=class in org.apache.wicket.markup.html.pagesBPREV CLASS/B/Anbsp; nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/InternalErrorPage.html title=class in org.apache.wicket.markup.html.pagesBNEXT CLASS/B/A/FONT/TD TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 A HREF=../../../../../../index.html?org/apache/wicket/markup/html/pages/ExceptionErrorPage.html target=_topBFRAMES/B/A nbsp; nbsp;A HREF=ExceptionErrorPage.html target=_topBNO FRAMES/B/A nbsp; nbsp;SCRIPT type=text/javascript !-- if(window==top) { document.writeln('A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A'); } //-- /SCRIPT NOSCRIPT A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A /NOSCRIPT /FONT/TD /TR TR TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 SUMMARY:nbsp;A HREF=#nested_classes_inherited_from_class_org.apache.wicket.PageNESTED/Anbsp;|nbsp;A HREF=#fields_inherited_from_class_org.apache.wicket.PageFIELD/Anbsp;|nbsp;A HREF=#constructor_summaryCONSTR/Anbsp;|nbsp;A HREF=#method_summaryMETHOD/A/FONT/TD TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 DETAIL:nbsp;FIELDnbsp;|nbsp;A HREF=#constructor_detailCONSTR/Anbsp;|nbsp;A HREF=#method_detailMETHOD/A/FONT/TD /TR /TABLE A NAME=skip-navbar_bottom/A !-- END OF BOTTOM NAVBAR === -- HR Copyright #169; 2004-2008 a href=http://apache.org;Apache Software Foundation/a. All Rights Reserved. /BODY /HTML , index = 4, current = [Raw markup]] at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:393) at org.apache.wicket.markup.MarkupParser.parse(MarkupParser.java:270) at org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:52) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:62) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553) at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343) at org.apache.wicket.Page.onRender(Page.java:1463) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:904) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1190) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1257) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1353) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:355) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:200) at
RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
I took the archetype for Guice, Warp, Hibernate and modified for my application. All my code looks similar to the code from the archetype. The only difference is I am not using the AnnotatinConfiguration but just the plain Configuration. I am also using c3po connection pooling with Oracle. However, I am still not able to inject the Hibernate Session into my DAO objects. Any ideas? I don't see any exceptions being thrown. @Inject ProviderSession session; @Transactional(type=TransactionType.READ_ONLY) public ListT findAll() { Criteria criteria = session.get().createCriteria(persistentClass); return criteria.list(); } The session in the findAll method is always coming back as null. What am I doing wrong? It doesn't seem to be that difficult to implement. Thanks. -Original Message- From: jWeekend [mailto:jweekend_for...@cabouge.com] Sent: Tuesday, October 06, 2009 9:48 AM To: users@wicket.apache.org Subject: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - 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: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Hi Jeffrey, I have *absolutely* no idea if this will help you, but I had the same with Spring. It started working when i put the injection annotation on the method instead of on the variable. Good luck, Erik On Tue, Oct 6, 2009 at 7:59 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I took the archetype for Guice, Warp, Hibernate and modified for my application. All my code looks similar to the code from the archetype. The only difference is I am not using the AnnotatinConfiguration but just the plain Configuration. I am also using c3po connection pooling with Oracle. However, I am still not able to inject the Hibernate Session into my DAO objects. Any ideas? I don't see any exceptions being thrown. �...@inject ProviderSession session; �...@transactional(type=TransactionType.READ_ONLY) public ListT findAll() { Criteria criteria = session.get().createCriteria(persistentClass); return criteria.list(); } The session in the findAll method is always coming back as null. What am I doing wrong? It doesn't seem to be that difficult to implement. Thanks. -Original Message- From: jWeekend [mailto:jweekend_for...@cabouge.com] Sent: Tuesday, October 06, 2009 9:48 AM To: users@wicket.apache.org Subject: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Thanks for the idea but this didn't work either. Any other ideas? I would expect the archetype to work correctly. -Original Message- From: Erik Post [mailto:eriksen...@gmail.com] Sent: Tuesday, October 06, 2009 2:09 PM To: users@wicket.apache.org Subject: Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Hi Jeffrey, I have *absolutely* no idea if this will help you, but I had the same with Spring. It started working when i put the injection annotation on the method instead of on the variable. Good luck, Erik On Tue, Oct 6, 2009 at 7:59 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I took the archetype for Guice, Warp, Hibernate and modified for my application. All my code looks similar to the code from the archetype. The only difference is I am not using the AnnotatinConfiguration but just the plain Configuration. I am also using c3po connection pooling with Oracle. However, I am still not able to inject the Hibernate Session into my DAO objects. Any ideas? I don't see any exceptions being thrown. �...@inject ProviderSession session; �...@transactional(type=TransactionType.READ_ONLY) public ListT findAll() { Criteria criteria = session.get().createCriteria(persistentClass); return criteria.list(); } The session in the findAll method is always coming back as null. What am I doing wrong? It doesn't seem to be that difficult to implement. Thanks. -Original Message- From: jWeekend [mailto:jweekend_for...@cabouge.com] Sent: Tuesday, October 06, 2009 9:48 AM To: users@wicket.apache.org Subject: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - 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 - 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
vps hosting for wicket app
Hi all, I need to deploy a wicket app for alpha and beta testing at a minimum price. Could you reccommend some vpn hosting? thanks in advance -- Fernando Wermus. www.linkedin.com/in/fernandowermus
RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Thanks for the help. I finally figured it out. I didn't realize that I needed to inject the DAO into each page that was going to need it. Or at least that is how I solved my problem. If I inject the DAO into every page then it seems to work ok. I guess I will see what happens if I have a business layer and the DAO is used in that layer. But at least I can query the db again. -Original Message- From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] Sent: Tuesday, October 06, 2009 2:21 PM To: users@wicket.apache.org; e...@shinsetsu.nl Subject: RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Thanks for the idea but this didn't work either. Any other ideas? I would expect the archetype to work correctly. -Original Message- From: Erik Post [mailto:eriksen...@gmail.com] Sent: Tuesday, October 06, 2009 2:09 PM To: users@wicket.apache.org Subject: Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Hi Jeffrey, I have *absolutely* no idea if this will help you, but I had the same with Spring. It started working when i put the injection annotation on the method instead of on the variable. Good luck, Erik On Tue, Oct 6, 2009 at 7:59 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I took the archetype for Guice, Warp, Hibernate and modified for my application. All my code looks similar to the code from the archetype. The only difference is I am not using the AnnotatinConfiguration but just the plain Configuration. I am also using c3po connection pooling with Oracle. However, I am still not able to inject the Hibernate Session into my DAO objects. Any ideas? I don't see any exceptions being thrown. �...@inject ProviderSession session; �...@transactional(type=TransactionType.READ_ONLY) public ListT findAll() { Criteria criteria = session.get().createCriteria(persistentClass); return criteria.list(); } The session in the findAll method is always coming back as null. What am I doing wrong? It doesn't seem to be that difficult to implement. Thanks. -Original Message- From: jWeekend [mailto:jweekend_for...@cabouge.com] Sent: Tuesday, October 06, 2009 9:48 AM To: users@wicket.apache.org Subject: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - 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 - 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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Jeffrey, I expect the changes you made to the Guice Module are the reason why the session is null, could you paste in the contents of it. Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com Jeffrey Schneller wrote: Thanks for the idea but this didn't work either. Any other ideas? I would expect the archetype to work correctly. -Original Message- From: Erik Post [mailto:eriksen...@gmail.com] Sent: Tuesday, October 06, 2009 2:09 PM To: users@wicket.apache.org Subject: Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Hi Jeffrey, I have *absolutely* no idea if this will help you, but I had the same with Spring. It started working when i put the injection annotation on the method instead of on the variable. Good luck, Erik On Tue, Oct 6, 2009 at 7:59 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I took the archetype for Guice, Warp, Hibernate and modified for my application. All my code looks similar to the code from the archetype. The only difference is I am not using the AnnotatinConfiguration but just the plain Configuration. I am also using c3po connection pooling with Oracle. However, I am still not able to inject the Hibernate Session into my DAO objects. Any ideas? I don't see any exceptions being thrown. �...@inject ProviderSession session; �...@transactional(type=TransactionType.READ_ONLY) public ListT findAll() { Criteria criteria = session.get().createCriteria(persistentClass); return criteria.list(); } The session in the findAll method is always coming back as null. What am I doing wrong? It doesn't seem to be that difficult to implement. Thanks. -Original Message- From: jWeekend [mailto:jweekend_for...@cabouge.com] Sent: Tuesday, October 06, 2009 9:48 AM To: users@wicket.apache.org Subject: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects We have launched jWeekend's Leg Up page [1]. You can generate a command and run it at your console to create a simple project using one of our archetypes. The projects you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/issues/list - 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 - 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 - http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Leg-Up-for-Wicket%2C-Spring%2C-Guice%2C-JPA%2C-Warp%2C-EclipseLink%2C-Hibernate-...-projects-tp25769134p25774618.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: Is wicket really compatible with Tomcat?
Lot of jetty's are run in production: http://news.netcraft.com/archives/2003/04/10/java_servlet_engines.html AFAIK it should be possible to just hot deploy with jetty as long as you are running in development mode. regards Nino 2009/10/6 Gw not4spamm...@gmail.com Hi, Jemery, thx for your sincere support. I've figured out the cause, which is because I copied all the jars to the lib folder (including source and javadoc jars). Never crossed my mind that those additional jars can be problems. Probably the HTML pages in javadoc jars conflict with the app's, if I may guess. Thx a lot for your enlightment anyway. BTW, is jetty powerful enough for production? Do I have to reRun the app (restart Jetty) to make a change effective everytime I update a class? Thx n Regards, Gw On Tue, Oct 6, 2009 at 10:52 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Hundreds if not thousands of Wicket applications are deployed on Tomcat. The error describes a problem in your HTML - not sure why it would only appear in Tomcat unless the file was mangled during deployment. Please post the contents of the HTML file that supposedly has a mismatched tag. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 10:48 AM, Gw not4spamm...@gmail.com wrote: Hi, I'm a newbie in Wicket. I use Databinder toolkit (wicket+hibernate) to help me develop DB application rapidly. With the built-in Jetty, the development is quite smooth, however, when trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. I wonder if wicket is really compatible with Tomcat, since there's no problem when running from eclipse (Jetty). TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/BrowserInfoPage.html title=class in org.apache.wicket.markup.html.pagesBPREV CLASS/B/Anbsp; nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/InternalErrorPage.html title=class in org.apache.wicket.markup.html.pagesBNEXT CLASS/B/A/FONT/TD TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 A HREF=../../../../../../index.html?org/apache/wicket/markup/html/pages/ExceptionErrorPage.html target=_topBFRAMES/B/A nbsp; nbsp;A HREF=ExceptionErrorPage.html target=_topBNO FRAMES/B/A nbsp; nbsp;SCRIPT type=text/javascript !-- if(window==top) { document.writeln('A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A'); } //-- /SCRIPT NOSCRIPT A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A /NOSCRIPT /FONT/TD /TR TR TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 SUMMARY:nbsp;A HREF=#nested_classes_inherited_from_class_org.apache.wicket.PageNESTED/Anbsp;|nbsp;A HREF=#fields_inherited_from_class_org.apache.wicket.PageFIELD/Anbsp;|nbsp;A HREF=#constructor_summaryCONSTR/Anbsp;|nbsp;A HREF=#method_summaryMETHOD/A/FONT/TD TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 DETAIL:nbsp;FIELDnbsp;|nbsp;A HREF=#constructor_detailCONSTR/Anbsp;|nbsp;A HREF=#method_detailMETHOD/A/FONT/TD /TR /TABLE A NAME=skip-navbar_bottom/A !-- END OF BOTTOM NAVBAR === -- HR Copyright #169; 2004-2008 a href=http://apache.org;Apache Software Foundation/a. All Rights Reserved. /BODY /HTML , index = 4, current = [Raw markup]] at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:393) at org.apache.wicket.markup.MarkupParser.parse(MarkupParser.java:270) at org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:52) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:62) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553) at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343) at org.apache.wicket.Page.onRender(Page.java:1463) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:904) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104) at org.apache.wicket.RequestCycle.respond(RequestCycle.java:1190) at
Re: Is wicket really compatible with Tomcat?
And that survey from netcraft are really old. So numbers are probably higher for jetty. 2009/10/6 nino martinez wael nino.martinez.w...@gmail.com Lot of jetty's are run in production: http://news.netcraft.com/archives/2003/04/10/java_servlet_engines.html AFAIK it should be possible to just hot deploy with jetty as long as you are running in development mode. regards Nino 2009/10/6 Gw not4spamm...@gmail.com Hi, Jemery, thx for your sincere support. I've figured out the cause, which is because I copied all the jars to the lib folder (including source and javadoc jars). Never crossed my mind that those additional jars can be problems. Probably the HTML pages in javadoc jars conflict with the app's, if I may guess. Thx a lot for your enlightment anyway. BTW, is jetty powerful enough for production? Do I have to reRun the app (restart Jetty) to make a change effective everytime I update a class? Thx n Regards, Gw On Tue, Oct 6, 2009 at 10:52 PM, Jeremy Thomerson jer...@wickettraining.com wrote: Hundreds if not thousands of Wicket applications are deployed on Tomcat. The error describes a problem in your HTML - not sure why it would only appear in Tomcat unless the file was mangled during deployment. Please post the contents of the HTML file that supposedly has a mismatched tag. -- Jeremy Thomerson http://www.wickettraining.com On Tue, Oct 6, 2009 at 10:48 AM, Gw not4spamm...@gmail.com wrote: Hi, I'm a newbie in Wicket. I use Databinder toolkit (wicket+hibernate) to help me develop DB application rapidly. With the built-in Jetty, the development is quite smooth, however, when trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. I wonder if wicket is really compatible with Tomcat, since there's no problem when running from eclipse (Jetty). TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/BrowserInfoPage.html title=class in org.apache.wicket.markup.html.pagesBPREV CLASS/B/Anbsp; nbsp;A HREF=../../../../../../org/apache/wicket/markup/html/pages/InternalErrorPage.html title=class in org.apache.wicket.markup.html.pagesBNEXT CLASS/B/A/FONT/TD TD BGCOLOR=white CLASS=NavBarCell2FONT SIZE=-2 A HREF=../../../../../../index.html?org/apache/wicket/markup/html/pages/ExceptionErrorPage.html target=_topBFRAMES/B/A nbsp; nbsp;A HREF=ExceptionErrorPage.html target=_topBNO FRAMES/B/A nbsp; nbsp;SCRIPT type=text/javascript !-- if(window==top) { document.writeln('A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A'); } //-- /SCRIPT NOSCRIPT A HREF=../../../../../../allclasses-noframe.htmlBAll Classes/B/A /NOSCRIPT /FONT/TD /TR TR TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 SUMMARY:nbsp;A HREF=#nested_classes_inherited_from_class_org.apache.wicket.PageNESTED/Anbsp;|nbsp;A HREF=#fields_inherited_from_class_org.apache.wicket.PageFIELD/Anbsp;|nbsp;A HREF=#constructor_summaryCONSTR/Anbsp;|nbsp;A HREF=#method_summaryMETHOD/A/FONT/TD TD VALIGN=top CLASS=NavBarCell3FONT SIZE=-2 DETAIL:nbsp;FIELDnbsp;|nbsp;A HREF=#constructor_detailCONSTR/Anbsp;|nbsp;A HREF=#method_detailMETHOD/A/FONT/TD /TR /TABLE A NAME=skip-navbar_bottom/A !-- END OF BOTTOM NAVBAR === -- HR Copyright #169; 2004-2008 a href=http://apache.org;Apache Software Foundation/a. All Rights Reserved. /BODY /HTML , index = 4, current = [Raw markup]] at org.apache.wicket.markup.MarkupParser.parseMarkup(MarkupParser.java:393) at org.apache.wicket.markup.MarkupParser.parse(MarkupParser.java:270) at org.apache.wicket.markup.loader.SimpleMarkupLoader.loadMarkup(SimpleMarkupLoader.java:52) at org.apache.wicket.markup.loader.InheritedMarkupMarkupLoader.loadMarkup(InheritedMarkupMarkupLoader.java:62) at org.apache.wicket.markup.loader.DefaultMarkupLoader.loadMarkup(DefaultMarkupLoader.java:55) at org.apache.wicket.markup.MarkupCache.loadMarkup(MarkupCache.java:458) at org.apache.wicket.markup.MarkupCache.loadMarkupAndWatchForChanges(MarkupCache.java:553) at org.apache.wicket.markup.MarkupCache.getMarkup(MarkupCache.java:319) at org.apache.wicket.markup.MarkupCache.getMarkupStream(MarkupCache.java:215) at org.apache.wicket.MarkupContainer.getAssociatedMarkupStream(MarkupContainer.java:343) at org.apache.wicket.Page.onRender(Page.java:1463) at org.apache.wicket.Component.render(Component.java:2317) at org.apache.wicket.Page.renderPage(Page.java:904) at org.apache.wicket.request.target.component.PageRequestTarget.respond(PageRequestTarget.java:63) at
RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Here is the My Guice Module that I created. It looks like the one in the archetype. Do I need to bind every DAO? So that then I need to inject the DAO when it is needed? public class AppModule extends AbstractModule { /* (non-Javadoc) * @see com.google.inject.AbstractModule#configure() */ @Override protected void configure() { bind(Initializer.class).asEagerSingleton(); //warp persist stuff install(PersistenceService.usingHibernate() .across(UnitOfWork.REQUEST) .transactedWith(TransactionStrategy.LOCAL) .buildModule()); // hibernate stuff // default values from development String connectionUrl = the url; String username = the username; String password = the password; try { InitialContext context = new InitialContext(); connectionUrl = (String) context.lookup(java:comp/env/hibernate.connection.url); username = (String) context.lookup(java:comp/env/hibernate.connection.username); password = (String) context.lookup(java:comp/env/hibernate.connection.password); } catch (NamingException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } // annotation and xml final Configuration config = new Configuration().configure(); config.setProperty(hibernate.connection.url, connectionUrl); config.setProperty(hibernate.connection.username, username); config.setProperty(hibernate.connection.password, password); config.setProperty(hibernate.current_session_context_class, managed); bind(Configuration.class).toInstance(config); //dao stuff // DO I NEED TO DO THIS FOR EVERY DAO OBJECT? bind(AccountDao.class).to(HibernateAccountDao.class); bind(CountryDao.class).to(HibernateCountryDao.class); bind(LanguageDao.class).to(HibernateLanguageDao.class); bind(TerritorySalesCodesDao.class).to(HibernateTerritorySalesCodesDao.class); bind(RegionSalesCodesDao.class).to(HibernateRegionSalesCodesDao.class); bind(CountrySalesCodesDao.class).to(HibernateCountrySalesCodesDao.class); bind(AccountTypeDao.class).to(HibernateAccountTypeDao.class); bind(AccountAuditDao.class).to(HibernateAccountAuditDao.class); } @Singleton public static class Initializer { @Inject Initializer(com.wideplay.warp.persist.PersistenceService service) { service.start(); } } } -Original Message- From: richardwilko [mailto:richardjohnwilkin...@gmail.com] Sent: Tuesday, October 06, 2009 2:56 PM To: users@wicket.apache.org Subject: RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Jeffrey, I expect the changes you made to the Guice Module are the reason why the session is null, could you paste in the contents of it. Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com Jeffrey Schneller wrote: Thanks for the idea but this didn't work either. Any other ideas? I would expect the archetype to work correctly. -Original Message- From: Erik Post [mailto:eriksen...@gmail.com] Sent: Tuesday, October 06, 2009 2:09 PM To: users@wicket.apache.org Subject: Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Hi Jeffrey, I have *absolutely* no idea if this will help you, but I had the same with Spring. It started working when i put the injection annotation on the method instead of on the variable. Good luck, Erik On Tue, Oct 6, 2009 at 7:59 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I took the archetype for Guice, Warp, Hibernate and modified for my application. All my code looks similar to the code from the archetype. The only difference is I am not using the AnnotatinConfiguration but just the plain Configuration. I am also using c3po connection pooling with Oracle. However, I am still not able to inject the Hibernate Session into my DAO objects. Any ideas? I don't see any exceptions being thrown. �...@inject ProviderSession session; �...@transactional(type=TransactionType.READ_ONLY) public ListT findAll() { Criteria criteria = session.get().createCriteria(persistentClass); return criteria.list(); } The
Re: Is wicket really compatible with Tomcat?
There are a number of equally plausible conclusions ;) A quick google didn't turn up anything more recent. Has anyone seen more recent data? Ed. On Tue, Oct 6, 2009 at 3:02 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: And that survey from netcraft are really old. So numbers are probably higher for jetty.
RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects
Hi, Yes, you will need to bind every dao (and eveything you want to inject). However there are other ways to do it with guice, like the @ImplementedBy annotation (think its called that, check with the guice docs, sending this from my phone so can't check atm). Afaik you would need to make spring beans for every dao if using spring, so its not that bad. Glad you have it working now, Richard Jeffrey Schneller wrote: Here is the My Guice Module that I created. It looks like the one in the archetype. Do I need to bind every DAO? So that then I need to inject the DAO when it is needed? public class AppModule extends AbstractModule { /* (non-Javadoc) * @see com.google.inject.AbstractModule#configure() */ @Override protected void configure() { bind(Initializer.class).asEagerSingleton(); //warp persist stuff install(PersistenceService.usingHibernate() .across(UnitOfWork.REQUEST) .transactedWith(TransactionStrategy.LOCAL) .buildModule()); // hibernate stuff // default values from development String connectionUrl = the url; String username = the username; String password = the password; try { InitialContext context = new InitialContext(); connectionUrl = (String) context.lookup(java:comp/env/hibernate.connection.url); username = (String) context.lookup(java:comp/env/hibernate.connection.username); password = (String) context.lookup(java:comp/env/hibernate.connection.password); } catch (NamingException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } // annotation and xml final Configuration config = new Configuration().configure(); config.setProperty(hibernate.connection.url, connectionUrl); config.setProperty(hibernate.connection.username, username); config.setProperty(hibernate.connection.password, password); config.setProperty(hibernate.current_session_context_class, managed); bind(Configuration.class).toInstance(config); //dao stuff // DO I NEED TO DO THIS FOR EVERY DAO OBJECT? bind(AccountDao.class).to(HibernateAccountDao.class); bind(CountryDao.class).to(HibernateCountryDao.class); bind(LanguageDao.class).to(HibernateLanguageDao.class); bind(TerritorySalesCodesDao.class).to(HibernateTerritorySalesCodesDao.class); bind(RegionSalesCodesDao.class).to(HibernateRegionSalesCodesDao.class); bind(CountrySalesCodesDao.class).to(HibernateCountrySalesCodesDao.class); bind(AccountTypeDao.class).to(HibernateAccountTypeDao.class); bind(AccountAuditDao.class).to(HibernateAccountAuditDao.class); } @Singleton public static class Initializer { @Inject Initializer(com.wideplay.warp.persist.PersistenceService service) { service.start(); } } } -Original Message- From: richardwilko [mailto:richardjohnwilkin...@gmail.com] Sent: Tuesday, October 06, 2009 2:56 PM To: users@wicket.apache.org Subject: RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Jeffrey, I expect the changes you made to the Guice Module are the reason why the session is null, could you paste in the contents of it. Regards - Richard Wilkinson Developer, jWeekend: OO Java Technologies - Development and Training http://jWeekend.com Jeffrey Schneller wrote: Thanks for the idea but this didn't work either. Any other ideas? I would expect the archetype to work correctly. -Original Message- From: Erik Post [mailto:eriksen...@gmail.com] Sent: Tuesday, October 06, 2009 2:09 PM To: users@wicket.apache.org Subject: Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Hi Jeffrey, I have *absolutely* no idea if this will help you, but I had the same with Spring. It started working when i put the injection annotation on the method instead of on the variable. Good luck, Erik On Tue, Oct 6, 2009 at 7:59 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I took the archetype for Guice, Warp, Hibernate and modified for my application. All my code looks similar to the code from the archetype. The only difference is I am not using the AnnotatinConfiguration but just the plain Configuration. I am also using c3po connection pooling with Oracle. However, I am still not
Client-side treeView
Hello, I would like show a treeview like the following, root |---dir1 ||leave 1.1 ||leave 1.2 |-leave 0. 1 |-leave 0.2 This view should also allow a user to select multiple leave nodes (think of selecting multiple catagories to charaterized a product). I checked the TreeView/TreeTable components in Wicket-Ext and found that they need to communicate with the sever-side every time a node is expanded or collapsed. This is a waste of bandwidth in my case, as my tree model never changes. Any suggestion on how I should implement a fixed treeview on the client side, and only pass data to the server after the user clicks a submit button?
Re: Client-side treeView
Hi Paul, What I would do would be to find a javascript implementation that does what you want and then have the selection events fill in a hidden field which will then be available on the server side when the form is posted. This would be similar to how the Palette works in wicket-extensions You then define a custom IConverter to convert the string input from the hidden field into the IModelListLeaf or IModelListNode or what ever makes sense for your model.. There is probably something in wicket-stuff already but here is a link to a jquery plugin for a tree table: http://blog.cubicphuse.nl/2008/11/12/jquery-treetable-2-0 Regards, Mike I would like show a treeview like the following, root |---dir1 ||leave 1.1 ||leave 1.2 |-leave 0. 1 |-leave 0.2 This view should also allow a user to select multiple leave nodes (think of selecting multiple catagories to charaterized a product). I checked the TreeView/TreeTable components in Wicket-Ext and found that they need to communicate with the sever-side every time a node is expanded or collapsed. This is a waste of bandwidth in my case, as my tree model never changes. Any suggestion on how I should implement a fixed treeview on the client side, and only pass data to the server after the user clicks a submit button? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Client-side treeView
Michael O'Cleirigh wrote: Hi Paul, What I would do would be to find a javascript implementation that does what you want and then have the selection events fill in a hidden field which will then be available on the server side when the form is posted. This would be similar to how the Palette works in wicket-extensions You then define a custom IConverter to convert the string input from the hidden field into the IModelListLeaf or IModelListNode or what ever makes sense for your model.. There is probably something in wicket-stuff already but here is a link to a jquery plugin for a tree table: http://blog.cubicphuse.nl/2008/11/12/jquery-treetable-2-0 Regards, Mike Thanks Mike... Is there any document on how to write such a component like Palette that communicates with javascript? I just skipped through the Palette java an js source code and found they are kind of hard to understand. Wicket in Action does not seem to cover this topic either. -- View this message in context: http://www.nabble.com/Client-side-treeView-tp25775360p25776230.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: Client-side treeView
Paul, Take a look at Alastair's presenttaion called something like A Drag And Drop List Editor [1] and the accompanying source code. I don't think we have a tree publicly available yet in WiQuery [2] but for sure you should get some good ideas there even if you don't want to use it. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/ArticlesPage [2] http://code.google.com/p/wiquery/ PaulH98 wrote: Michael O'Cleirigh wrote: Hi Paul, What I would do would be to find a javascript implementation that does what you want and then have the selection events fill in a hidden field which will then be available on the server side when the form is posted. This would be similar to how the Palette works in wicket-extensions You then define a custom IConverter to convert the string input from the hidden field into the IModelListLeaf or IModelListNode or what ever makes sense for your model.. There is probably something in wicket-stuff already but here is a link to a jquery plugin for a tree table: http://blog.cubicphuse.nl/2008/11/12/jquery-treetable-2-0 Regards, Mike Thanks Mike... Is there any document on how to write such a component like Palette that communicates with javascript? I just skipped through the Palette java an js source code and found they are kind of hard to understand. Wicket in Action does not seem to cover this topic either. -- View this message in context: http://www.nabble.com/Client-side-treeView-tp25775360p25776375.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: How do you achieve persistency
James, you have a couple of really good points there, I can't unit test as easily as you would with ORM, but keep in mind that I'm talking about mostly legacy queries that I would otherwise need to rewrite completely. For some complex stored procs I have scripts that create copies of the affected db objects, fill them with test data and evaluates the result, but this is obviously not a good or maintainable solution. I do intend to try dbunit, but had not time to do it yet. And yes, there is kind of a nightmare since there is a big deal of reports and listings with cross referenced data, and everytime there are changes in the database structure, a lot of them need to be tested to be equally valid against old data and new data. Some of this could be alleviated by other reporting tools, but I fail to see how ORM would be of any help for this. I would say most of web applications' data don't follow this pattern and are best suited for ORM, but some data is inherently relational, set based, and forcing them through ORM doesn't sound to me like a good choice. It's a fact that all ORMs out there allow you for back door queries, if you allow me to state it this way, when performance is an issue or the SQL is fairly complex. This is why I pointed out that there is no silver bullet and that the right tools may vary according to the requirements. Cheers, Daniel James Carman-3 wrote: On Tue, Oct 6, 2009 at 12:32 PM, dtoffe dto...@yahoo.com.ar wrote: So our fast and easy way is to use code generation to get JDBC based DAOs that wrap the stored procs call. We even keep writing stored procs for new requirements, all our devs know SQL well and I don't believe we will gain anything by using Hibernate instead. How do you unit test? How do you keep the stored procedures and your Java code in synch? I only ask because I've seen that sort of set-up at a client before and they had a nightmare of a time keeping things straight and making sure they didn't break other things when they changed their stored procedures. For me, I like to keep my logic out of stored procedures as much as I can. -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25776405.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: London Wicket Event, Saturday November 21st
can we expect video this time? :) -igor On Tue, Oct 6, 2009 at 6:10 AM, jWeekend jweekend_for...@cabouge.com wrote: Our next London Wicket Event will be held on Saturday, November 21st. This is going to be quite some event again, with Matej Knopp (SVK), Jeremy Thomerson (USA) and Alastair Maw (UK), all core developers, amongst our 5 or 6 presenters. I am still working on securing a suitable location and fine tuning the schedule (probably at least 5 or 6 hours) and the exact format, but keep your diary clear if you'd like to come along and we will set up registration at the usual place [1] in the next few days (do not register until we've updated the data for the registration page) once the location/format/logistics are nailed down. Watch this space ... Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LWUGReg - 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: How do you achieve persistency
On Tue, 06 Oct 2009 09:34:55 +, Peter Arnulf Lustig wrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. You can use an object database (like DB4O) that doesn't require ORM. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Download Link Problem
Here's how I managed to solve this issue (after googling one full day!) in my DynamicWebResource @Override protected void setHeaders(final WebResponse varResponse) { super.setHeaders(varResponse); varResponse.setDateHeader(Expires, -1); varResponse.setHeader(Pragma, public); varResponse.setHeader(Cache-Control, public); } Hope this help someone! marcus dickerhof wrote: Hi, I have a problem with downloading dynamic content in IE 6. Somehow IE 6 has Problems with thecontent-disposition: attachment; filename=??? headers in connection with HTTPS (Do not save encrypted pages to disk). Error: Cannot copy file: cannot read from the source file or disk. -- View this message in context: http://www.nabble.com/Download-Link-Problem-tp14693760p25776492.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: Download Link Problem
Here's how I managed to solve this issue (after googling one full day!) in my DynamicWebResource @Override protected void setHeaders(final WebResponse varResponse) { super.setHeaders(varResponse); varResponse.setDateHeader(Expires, -1); varResponse.setHeader(Pragma, public); varResponse.setHeader(Cache-Control, public); } Hope this help someone! marcus dickerhof wrote: Hi, I have a problem with downloading dynamic content in IE 6. Somehow IE 6 has Problems with thecontent-disposition: attachment; filename=??? headers in connection with HTTPS (Do not save encrypted pages to disk). Error: Cannot copy file: cannot read from the source file or disk. -- View this message in context: http://www.nabble.com/Download-Link-Problem-tp14693760p25776500.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: How do you achieve persistency
I've used it also, but it changed source availability, licensing and code repositories too many times to my taste, and I'm trying to remove it from all my code. I would consider a solution like that if it was a little more mainstream, widely used and with a supporting community. To date, I haven't found a better alternative, but would be very glad to find it. Cheers, Daniel T Ames wrote: I use a product called JPersist - no XML, just POJOs. Has built in pooling. I instantiate the DatabaseManager in the web application and use a getter. http://www.jpersist.org It has a list of tested databases, but I use Microsoft SQL. Haven't had too many issues with it. On Tue, Oct 6, 2009 at 5:34 AM, Peter Arnulf Lustig u...@yahoo.dewrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. -- View this message in context: http://www.nabble.com/How-do-you-achieve-persistency-tp25765566p25776501.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: How do you achieve persistency
i think all the suggestions you have gotten until now are overcomplicated and have a high learning curve. i think the easiest and fastest way to achieve persistency is to use a database that all operating systems already have - the file system. each table is a directory, each entity is simply a file that has the serialized state of that entity named something like uuid.ser. done. its easy and simple. most importantly, there is absolutely no configuration needed other then the root folder and nothing to learn other then being able to read and write a file. if you want to take it up a notch you can use something like xstream or jaxb to serialize your entities into xml - which will make debugging easier. -igor On Tue, Oct 6, 2009 at 2:34 AM, Peter Arnulf Lustig u...@yahoo.de wrote: What's the fast and easy way? I am asking because of a lot of trouble with hibernate. - 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
Ajax: Updating component outside Panel
Hi, I'm following the Cheesr examples in the Wicket in Action book and have met a problem when ajaxifying it. I have Index.java that displays a shopping cart from a custom shopping cart panel (ShoppingCartPanel.java). This custom panel has a remove link for each item, and clicking this removes the item from the list using Ajax. In Index.java I also have a Checkout button that is set to visible when there's items in the shopping cart. I need to refresh this component also using Ajax when I press the remove link in the shopping cart panel, so that it is hidden when the cart is empty. How do I update this component from my custom shopping cart panel? Do I have to make the Checkout button a public variable and refresh it using target.addComponent(Index.checkout) in ShoppingCartPanel.java, or is there an easier and more elegant way to do this? Index.java - http://pastebin.com/m76c0eb71 ShoppingCartPanel.java - http://pastebin.com/m70f20055 Regards, Magnus