Re: Tapestry Hibernate configuration
Aside from a purely T5 way of doing it, *You can also look up a JNDI source, configured in your web.xml and in a context.xml, and then have a different context.xml on each server you deploy to. (This is assuming you can use the same dialect and options.) I used to switch back and forth between JavaDB (Derby) and Oracle, but the Oracle stuff got so hairy I ended up just installing Oracle on a VM so the app would behave. You can specify the JNDI source in your hibernate.cfg.xml, etc. A server-specific context.xml can live on each app server. If eclipse tries to erase your context file, try defining it somewhere else, like a server.xml or context.xml.default. (at least in Tomcat) *I bet you could do all sorts of maven/ant kung-fu packaging different hibernate configs for different profiles. *You can use a context.xml type file to store variables that your App modules can load, for doing such useful things like turning on HTTPS only, production mode, etc. Then that over-the-phone-sys-admin can just poke around the context.xml, instead of in your WAR directory, when the servername needs to be switched, or a password changes. Daniel On Mon, Jan 26, 2009 at 5:38 PM, Howard Lewis Ship wrote: > You can contribute to the HibernateSessionSource service. Your > contributions are objects that are used to configure the Hibernate. > Such objects can decide what mode ("production" vs. "development") you > are in, and set the correct values for various Hibernate Configuration > properties. > > On Mon, Jan 26, 2009 at 12:39 PM, Graham Ford > wrote: > > Hi, > > > > Is there a way of setting the hibernate configuration file for the > > HibernateModule? For example in my src/main/resources I want the config > to > > point to a live database, but for testing a different database. Is there > a > > way of doing this, without having to configure hibernate myself and then > > adding it to the HibernateModule? > > > > Thanks, > > Graham > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette-base component not showing
I've solved it. Bean class MUST override equals() and hashCode() methods! 4 hours of my life ;) On Mon, Jan 26, 2009 at 3:31 PM, Davor Miku wrote: > Thanks! > There is progress however now I'm getting: > > Render queue error in BeginRender[content/Add:content.form]: Bean editor >> model for com.autobrief.content.model.Content does not contain a property >> named 'categories'. Available properties: action, author, creationDate, id, >> intro, publishedDate, source, status, text, title, type. >> > > exception and there is categories property. > > Any clue? > > > On Mon, Jan 26, 2009 at 4:20 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> Em Mon, 26 Jan 2009 16:25:12 -0300, Davor Miku >> escreveu: >> >> Yes, I understand that, but with I should be able to >>> override that, and to provide my own rendering >>> of categories property. At least, that's how I understood documentation. >>> >> >> The property rendering can be overriden if it was created in the >> BeanModel, and your categories property wasn't. To add it, use the include >> parameter of BeanEditForm: >> >> . >> >> It should work now. :) >> >> >> -- >> Thiago H. de Paula Figueiredo >> Independent Java consultant, developer, and instructor >> http://www.arsmachina.com.br/thiago >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >
Re: Palette component
Does this one that works help you? http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/component/coreinputcomponents On 27/01/2009, at 3:32 PM, Davor Miku wrote: Anyone, plaese? On Mon, Jan 26, 2009 at 10:30 PM, Davor Miku wrote: public List getOptions() { List list = new ArrayList(); for (Category c : categories) { list.add(new CategoryOptionModel(c)); } return list; } This method returns list of OptionModel objects. If you meant on this, this list is not empty. I'm not sure I'm following you. On Mon, Jan 26, 2009 at 11:17 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: Em Tue, 27 Jan 2009 00:10:36 -0300, Davor Miku escreveu: Hi Thiago, Hi! Thanks for reply. Can you be more specific, please? It's 1:12 AM here in Belo Horizonte (Brazil), so please don't mind if the answer is as clear as you need. :) One of the parameters of Select is model. You should pass a SelectModel to it. Basically, a SelectModel is a list of OptionModel instances (SelectModel.getOptionModels()), one for each option to appear in your select tag (and component). Select does not support null OptionModel's returned by SelectModel.getOptionModels(), so the exception you seen happens. Summary: make sure the SelectModel returned by getCategoryModel() does not return nulls in its getOptionModels(). ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Palette component
Anyone, plaese? On Mon, Jan 26, 2009 at 10:30 PM, Davor Miku wrote: > public List getOptions() { > List list = new ArrayList(); > for (Category c : categories) { > list.add(new CategoryOptionModel(c)); > } > return list; > } > > This method returns list of OptionModel objects. If you meant on this, this > list is not empty. I'm not sure I'm following you. > > On Mon, Jan 26, 2009 at 11:17 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> Em Tue, 27 Jan 2009 00:10:36 -0300, Davor Miku >> escreveu: >> >> Hi Thiago, >>> >> >> Hi! >> >> Thanks for reply. >>> Can you be more specific, please? >>> >> >> It's 1:12 AM here in Belo Horizonte (Brazil), so please don't mind if the >> answer is as clear as you need. :) >> >> One of the parameters of Select is model. You should pass a SelectModel to >> it. Basically, a SelectModel is a list of OptionModel instances >> (SelectModel.getOptionModels()), one for each option to appear in your >> select tag (and component). Select does not support null OptionModel's >> returned by SelectModel.getOptionModels(), so the exception you seen >> happens. >> >> Summary: make sure the SelectModel returned by getCategoryModel() does not >> return nulls in its getOptionModels(). ;) >> >> >> -- >> Thiago H. de Paula Figueiredo >> Independent Java consultant, developer, and instructor >> http://www.arsmachina.com.br/thiago >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >
Re: Palette component
public List getOptions() { List list = new ArrayList(); for (Category c : categories) { list.add(new CategoryOptionModel(c)); } return list; } This method returns list of OptionModel objects. If you meant on this, this list is not empty. I'm not sure I'm following you. On Mon, Jan 26, 2009 at 11:17 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Tue, 27 Jan 2009 00:10:36 -0300, Davor Miku > escreveu: > > Hi Thiago, >> > > Hi! > > Thanks for reply. >> Can you be more specific, please? >> > > It's 1:12 AM here in Belo Horizonte (Brazil), so please don't mind if the > answer is as clear as you need. :) > > One of the parameters of Select is model. You should pass a SelectModel to > it. Basically, a SelectModel is a list of OptionModel instances > (SelectModel.getOptionModels()), one for each option to appear in your > select tag (and component). Select does not support null OptionModel's > returned by SelectModel.getOptionModels(), so the exception you seen > happens. > > Summary: make sure the SelectModel returned by getCategoryModel() does not > return nulls in its getOptionModels(). ;) > > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette component
Em Tue, 27 Jan 2009 00:10:36 -0300, Davor Miku escreveu: Hi Thiago, Hi! Thanks for reply. Can you be more specific, please? It's 1:12 AM here in Belo Horizonte (Brazil), so please don't mind if the answer is as clear as you need. :) One of the parameters of Select is model. You should pass a SelectModel to it. Basically, a SelectModel is a list of OptionModel instances (SelectModel.getOptionModels()), one for each option to appear in your select tag (and component). Select does not support null OptionModel's returned by SelectModel.getOptionModels(), so the exception you seen happens. Summary: make sure the SelectModel returned by getCategoryModel() does not return nulls in its getOptionModels(). ;) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Palette component
Hi Thiago, Thanks for reply. Can you be more specific, please? On Mon, Jan 26, 2009 at 11:01 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Mon, 26 Jan 2009 23:56:26 -0300, Davor Miku > escreveu: > > Hi! >> > > Hi! > > when currentCategories are initially null, it works fine, otherwise it's >> throwing exception: >> >> - java.lang.NullPointerExceptionStack trace >> >> >> org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49) >> > > It seems that your SelectModel had at least one null OptionModel added to > it. > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette component
Em Mon, 26 Jan 2009 23:56:26 -0300, Davor Miku escreveu: Hi! Hi! when currentCategories are initially null, it works fine, otherwise it's throwing exception: - java.lang.NullPointerExceptionStack trace org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49) It seems that your SelectModel had at least one null OptionModel added to it. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Palette component
Hi! I have palette component in custom component page: when currentCategories are initially null, it works fine, otherwise it's throwing exception: - java.lang.NullPointerExceptionStack trace - org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49) - org.apache.tapestry5.corelib.components.Palette$SelectedRenderer.render(Palette.java:147) - org.apache.tapestry5.internal.structure.ComponentPageElementImpl$RenderPhaseEventHandler$1.render(ComponentPageElementImpl.java:164) - org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72) - org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:121) - org.apache.tapestry5.services.TapestryModule$19.renderMarkup(TapestryModule.java:1200) - org.apache.tapestry5.services.TapestryModule$29.renderMarkup(TapestryModule.java:1580) - org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:1561) - org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:1543) - org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:1525) - org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:1495) - org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:64) - org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:57) - org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:59) - org.apache.tapestry5.services.TapestryModule$35.handle(TapestryModule.java:1779) - org.apache.tapestry5.internal.services.PageRenderDispatcher.process(PageRenderDispatcher.java:92) - org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:71) - org.apache.tapestry5.services.TapestryModule$17.service(TapestryModule.java:1029) - org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42) - org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) - org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:621) - org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:611) - org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85) - com.autobrief.services.AppModule$1.service(AppModule.java:92) - org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) - org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84) - org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83) - org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) - org.apache.tapestry5.services.TapestryModule$16.service(TapestryModule.java:1007) - org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) - org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:179) - org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) - org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) - org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) - org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) - org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) - org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) - org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) - org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) - org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857) - org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565) - org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509) - java.lang.Thread.run(Thread.java:63 Can anyony help?
Re: [T5] component for displaying tree like structure
Hi Davor, I have tried to use it but don't know how to define the tree node object. So I follow the wiki's example http://wiki.apache.org/tapestry/Tapestry5TreeComponent. Could someone please shows how to use this? Thanks! Weisu. Davor Miku wrote: > > I haven't find any. I figured out that is based on TreeNode, and that > doesn't suites me, I can't easily map it with hibernate. > > On Mon, Jan 26, 2009 at 3:11 PM, manuel aldana wrote: > >> cool, is there some documentation how to use it or do I need to reverse >> engineer from the sources? >> >> Davor Miku schrieb: >> >> You can try this one: >>> >>> http://code.google.com/p/tapestry5-treegrid/ >>> >>> >>> On Mon, Jan 26, 2009 at 2:55 PM, manuel aldana wrote: >>> >>> >>> hi, I want to introduce a component which displays dynamically tree like structure. Its purpose is that I want to load a hierachical navigation bar based on a category+item structure (very similar to filesystem). As a navigation bar it should also link to other main-content pages. I had a look whether I could use an existing component for that but I haven't found any. Does such a tree-structure display component exist already? thanks. -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >>> >> >> >> -- >> manuel aldana >> ald...@gmx.de >> software-engineering blog: http://www.aldana-online.de >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > -- View this message in context: http://www.nabble.com/-T5--component-for-displaying-tree-like-structure-tp21672485p21674251.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] loop component -> t:value local variable
Hi Howard, many thanks for explaining the trade-offs thorougly. From user-point of view it just feels a bit unnatural, that one needs to add a property in the page class, which exists as a locally scoped and derived variable in the template. After all tapestry5 looks extremely promising. Am digging deeper to code these days and am hoping to contribute some work in future :) Howard Lewis Ship schrieb: First off, just use the @Property annotation. Field + @Property ... no getters or setters. Tapestry works in a type-safe manner, using real properties on the Java objects. This is good: property access is validated during page construction, not at runtime when a property expression is first evaluated. Further, property access is converted into a PropertyConduit object; a new class is created, and you get all the benefits of hotspot optimizations and no reflection (including, no synchronization issues). The var: binding prefix gives a little bit of the behavior you want. However, it's very hard to introduce a new, type-safe property into an existing class in the way you suggest: that is, the Loop component should create a new property on the containing Page class. This is problematic for a number of lifecycle reasons (the page is instantiated first, so it's a little late to create a new property by the time the Loop component is instantiated an initialized). This could be addressed with considerable effort, and it would introduce some ambiguities w.r.t. how subclasses of pages operate. I don't find the need to define a property onerous; in fact, the separation between template and code is very nice. The property gives me the ability to know easily (using the debugger, for example) the state of the things. Its documented, and defines a specific type. It's easy: a property and an annotation. It's expressive. Lastly, many times you have an integration between template logic, encoded in the template markup and use of components, and container logic. Having a field in the container component is a very natural way to handle that. I guess we all have a threshold for "code magic". Mine is pretty high, I like all the magic and meta-programming that Tapestry does, but sounds like your threshold is a bit higher than mine. On Mon, Jan 26, 2009 at 1:00 PM, manuel aldana wrote: hi, the Loop component is used basically used by (define a list t:source and bind a local iterable var t:value to access the values later): ... ${listItem.name} ... What I find a bit clumsy is that you have to put this local-variable also to your page class: Page{ List listItems; Item listItem; ... //getter+setters } Why is tapestry not holding/creating the listItem local-var on the fly itself, instead of forcing to create a duplicated local variable (listItem is derived from listItems) inside the page class? -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
[T5] Expression Language
Hi, I'm developing an application with tap 5.. I don't understand why I can't use OGNL inside tap5 and with tap4 yes ! I found a set of components (http://code.google.com/p/tapestry5-components/) that has the OGNL component, the question is why outside of the core ? what in tap5 OGNL is out, what is the alternative? -- View this message in context: http://www.nabble.com/-T5--Expression-Language-tp21674223p21674223.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry Hibernate configuration
You can contribute to the HibernateSessionSource service. Your contributions are objects that are used to configure the Hibernate. Such objects can decide what mode ("production" vs. "development") you are in, and set the correct values for various Hibernate Configuration properties. On Mon, Jan 26, 2009 at 12:39 PM, Graham Ford wrote: > Hi, > > Is there a way of setting the hibernate configuration file for the > HibernateModule? For example in my src/main/resources I want the config to > point to a live database, but for testing a different database. Is there a > way of doing this, without having to configure hibernate myself and then > adding it to the HibernateModule? > > Thanks, > Graham > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] loop component -> t:value local variable
First off, just use the @Property annotation. Field + @Property ... no getters or setters. Tapestry works in a type-safe manner, using real properties on the Java objects. This is good: property access is validated during page construction, not at runtime when a property expression is first evaluated. Further, property access is converted into a PropertyConduit object; a new class is created, and you get all the benefits of hotspot optimizations and no reflection (including, no synchronization issues). The var: binding prefix gives a little bit of the behavior you want. However, it's very hard to introduce a new, type-safe property into an existing class in the way you suggest: that is, the Loop component should create a new property on the containing Page class. This is problematic for a number of lifecycle reasons (the page is instantiated first, so it's a little late to create a new property by the time the Loop component is instantiated an initialized). This could be addressed with considerable effort, and it would introduce some ambiguities w.r.t. how subclasses of pages operate. I don't find the need to define a property onerous; in fact, the separation between template and code is very nice. The property gives me the ability to know easily (using the debugger, for example) the state of the things. Its documented, and defines a specific type. It's easy: a property and an annotation. It's expressive. Lastly, many times you have an integration between template logic, encoded in the template markup and use of components, and container logic. Having a field in the container component is a very natural way to handle that. I guess we all have a threshold for "code magic". Mine is pretty high, I like all the magic and meta-programming that Tapestry does, but sounds like your threshold is a bit higher than mine. On Mon, Jan 26, 2009 at 1:00 PM, manuel aldana wrote: > hi, > > the Loop component is used basically used by (define a list t:source and > bind a local iterable var t:value to access the values later): > ... > > ${listItem.name} > > ... > > What I find a bit clumsy is that you have to put this local-variable also to > your page class: > > Page{ > List listItems; > Item listItem; > ... > //getter+setters > } > > Why is tapestry not holding/creating the listItem local-var on the fly > itself, instead of forcing to create a duplicated local variable (listItem > is derived from listItems) inside the page class? > > -- > manuel aldana > ald...@gmx.de > software-engineering blog: http://www.aldana-online.de > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
[T5] loop component -> t:value local variable
hi, the Loop component is used basically used by (define a list t:source and bind a local iterable var t:value to access the values later): ... ${listItem.name} ... What I find a bit clumsy is that you have to put this local-variable also to your page class: Page{ List listItems; Item listItem; ... //getter+setters } Why is tapestry not holding/creating the listItem local-var on the fly itself, instead of forcing to create a duplicated local variable (listItem is derived from listItems) inside the page class? -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry Hibernate configuration
Hi, Is there a way of setting the hibernate configuration file for the HibernateModule? For example in my src/main/resources I want the config to point to a live database, but for testing a different database. Is there a way of doing this, without having to configure hibernate myself and then adding it to the HibernateModule? Thanks, Graham - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Palette-base component not showing
Thanks! There is progress however now I'm getting: Render queue error in BeginRender[content/Add:content.form]: Bean editor > model for com.autobrief.content.model.Content does not contain a property > named 'categories'. Available properties: action, author, creationDate, id, > intro, publishedDate, source, status, text, title, type. > exception and there is categories property. Any clue? On Mon, Jan 26, 2009 at 4:20 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Mon, 26 Jan 2009 16:25:12 -0300, Davor Miku > escreveu: > > Yes, I understand that, but with I should be able to >> override that, and to provide my own rendering >> of categories property. At least, that's how I understood documentation. >> > > The property rendering can be overriden if it was created in the BeanModel, > and your categories property wasn't. To add it, use the include parameter of > BeanEditForm: > > . > > It should work now. :) > > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette-base component not showing
Em Mon, 26 Jan 2009 16:25:12 -0300, Davor Miku escreveu: Yes, I understand that, but with I should be able to override that, and to provide my own rendering of categories property. At least, that's how I understood documentation. The property rendering can be overriden if it was created in the BeanModel, and your categories property wasn't. To add it, use the include parameter of BeanEditForm: . It should work now. :) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] component for displaying tree like structure
I haven't find any. I figured out that is based on TreeNode, and that doesn't suites me, I can't easily map it with hibernate. On Mon, Jan 26, 2009 at 3:11 PM, manuel aldana wrote: > cool, is there some documentation how to use it or do I need to reverse > engineer from the sources? > > Davor Miku schrieb: > > You can try this one: >> >> http://code.google.com/p/tapestry5-treegrid/ >> >> >> On Mon, Jan 26, 2009 at 2:55 PM, manuel aldana wrote: >> >> >> >>> hi, >>> >>> I want to introduce a component which displays dynamically tree like >>> structure. >>> >>> Its purpose is that I want to load a hierachical navigation bar based on >>> a >>> category+item structure (very similar to filesystem). As a navigation bar >>> it >>> should also link to other main-content pages. >>> >>> I had a look whether I could use an existing component for that but I >>> haven't found any. Does such a tree-structure display component exist >>> already? >>> >>> thanks. >>> >>> -- >>> manuel aldana >>> ald...@gmx.de >>> software-engineering blog: http://www.aldana-online.de >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >>> >>> >> >> >> > > > -- > manuel aldana > ald...@gmx.de > software-engineering blog: http://www.aldana-online.de > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: [T5] component for displaying tree like structure
cool, is there some documentation how to use it or do I need to reverse engineer from the sources? Davor Miku schrieb: You can try this one: http://code.google.com/p/tapestry5-treegrid/ On Mon, Jan 26, 2009 at 2:55 PM, manuel aldana wrote: hi, I want to introduce a component which displays dynamically tree like structure. Its purpose is that I want to load a hierachical navigation bar based on a category+item structure (very similar to filesystem). As a navigation bar it should also link to other main-content pages. I had a look whether I could use an existing component for that but I haven't found any. Does such a tree-structure display component exist already? thanks. -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] component for displaying tree like structure
You can try this one: http://code.google.com/p/tapestry5-treegrid/ On Mon, Jan 26, 2009 at 2:55 PM, manuel aldana wrote: > hi, > > I want to introduce a component which displays dynamically tree like > structure. > > Its purpose is that I want to load a hierachical navigation bar based on a > category+item structure (very similar to filesystem). As a navigation bar it > should also link to other main-content pages. > > I had a look whether I could use an existing component for that but I > haven't found any. Does such a tree-structure display component exist > already? > > thanks. > > -- > manuel aldana > ald...@gmx.de > software-engineering blog: http://www.aldana-online.de > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette-base component not showing
I'm giving up on BeanEdit. Anyway, if some have an idea what's wrong, I like to hear it. Now I'm not even sure that kind of custom rendering of properties is possible at all. On Mon, Jan 26, 2009 at 2:25 PM, Davor Miku wrote: > Yes, I understand that, but with I should be able to > override that, and to provide my own rendering > of categories property. At least, that's how I understood documentation. > > > > > On Mon, Jan 26, 2009 at 3:12 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> Em Mon, 26 Jan 2009 16:01:37 -0300, Davor Miku >> escreveu: >> >> I'm not getting it. >>> >> >> I'm sorry, I could have been clearer. The relevant part of the >> documentation is: >> >> "The default set of property types supported by BeanEditForm: >> * String: as a text field >> * Number: as a text field >> * Enum: as a drop-down list >> * Boolean: as a checkbox >> * Date: as a JavaScript calendar" >> >> >> -- >> Thiago H. de Paula Figueiredo >> Independent Java consultant, developer, and instructor >> http://www.arsmachina.com.br/thiago >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >
[T5] component for displaying tree like structure
hi, I want to introduce a component which displays dynamically tree like structure. Its purpose is that I want to load a hierachical navigation bar based on a category+item structure (very similar to filesystem). As a navigation bar it should also link to other main-content pages. I had a look whether I could use an existing component for that but I haven't found any. Does such a tree-structure display component exist already? thanks. -- manuel aldana ald...@gmx.de software-engineering blog: http://www.aldana-online.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Palette-base component not showing
Yes, I understand that, but with I should be able to override that, and to provide my own rendering of categories property. At least, that's how I understood documentation. On Mon, Jan 26, 2009 at 3:12 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Mon, 26 Jan 2009 16:01:37 -0300, Davor Miku > escreveu: > > I'm not getting it. >> > > I'm sorry, I could have been clearer. The relevant part of the > documentation is: > > "The default set of property types supported by BeanEditForm: > * String: as a text field > * Number: as a text field > * Enum: as a drop-down list > * Boolean: as a checkbox > * Date: as a JavaScript calendar" > > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette-base component not showing
Em Mon, 26 Jan 2009 16:01:37 -0300, Davor Miku escreveu: I'm not getting it. I'm sorry, I could have been clearer. The relevant part of the documentation is: "The default set of property types supported by BeanEditForm: * String: as a text field * Number: as a text field * Enum: as a drop-down list * Boolean: as a checkbox * Date: as a JavaScript calendar" -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Palette-base component not showing
Documentation: "You may add s to the component; when the name matches (case insensitive) the name of a property, then the corresponding Block is renderered, rather than any of the built in property editor blocks." Well 'categories' is name of one bean's property, and: '' is my way of rendering it. I'm not getting it. On Mon, Jan 26, 2009 at 2:50 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Mon, 26 Jan 2009 15:46:35 -0300, Davor Miku > escreveu: > > Thanks for reply. >> It's working fine outside BeanEditForm. >> BeanEditForm is showing everything else fine. >> > > Read the BeanEditForm documentation. ;) My guess is that the default > BeanModel created for you object does not have the categories property > because Tapestry, out of the box, just handles numbers, strings, dates and > enums. > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Palette-base component not showing
Em Mon, 26 Jan 2009 15:46:35 -0300, Davor Miku escreveu: Thanks for reply. It's working fine outside BeanEditForm. BeanEditForm is showing everything else fine. Read the BeanEditForm documentation. ;) My guess is that the default BeanModel created for you object does not have the categories property because Tapestry, out of the box, just handles numbers, strings, dates and enums. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Palette-base component not showing
Thanks for reply. It's working fine outside BeanEditForm. Here's bean : public class Content { ... ... private Set categories = new HashSet(); ... ... } PaletteCategory component implements Field interface. BeanEditForm is showing everything else fine. Any ideas? On Mon, Jan 26, 2009 at 2:32 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Try using your component outside of a BeanEditForm please. > > Em Mon, 26 Jan 2009 15:15:54 -0300, Davor Miku > escreveu: > > > Hi, >> >> Palette-base custom component "category.palette" is not showing when >> embedded into beaneditform: >> >> >> >>> t:currentCategories="content.categories" /> >> >> >> >> Otherwise it woks fine. There is no exception. PRODUCTION_MODE is set to >> false. >> >> Can anyone help, please? >> >> I'm pretty new to Tapestry, sorry if I'm making dumb questions. >> > > > > -- > Thiago H. de Paula Figueiredo > Independent Java consultant, developer, and instructor > Consultor, desenvolvedor e instrutor em Java > http://www.arsmachina.com.br/thiago > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Weird bug
Looks like the ExceptionReport page failed; I suspect Tapestry was trying to print out a value stored in the Request or Session as part of the ExceptionReport and that failed with an exception. Thus the 500 response. On Sun, Jan 25, 2009 at 1:28 PM, Tobias Marx wrote: > 22:26:06.468 ERROR! [SocketListener0-1] > org.hibernate.LazyInitializationException.(LazyInitializationException.java:19) > >69> could not initialize proxy - no Session > org.hibernate.LazyInitializationException: could not initialize proxy - no > Session >at > org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57) >at > org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:111) >at > org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:150) >at > tm.framework.entities.Domain$$EnhancerByCGLIB$$f7ca86bf.getDomainName() >at tm.framework.pages.EditDomain.getTest(EditDomain.java:114) >at $PropertyConduit_11f0f99b38b.get($PropertyConduit_11f0f99b38b.java) >at > org.apache.tapestry5.internal.bindings.PropBinding.get(PropBinding.java:53) >at > org.apache.tapestry5.internal.structure.ExpansionPageElement.render(ExpansionPageElement.java:47) >at > org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:68) >at > org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:108) >at > $PageRenderQueue_11f0f99b281.render($PageRenderQueue_11f0f99b281.java) >at > $PageRenderQueue_11f0f99b277.render($PageRenderQueue_11f0f99b277.java) >at > org.apache.tapestry5.services.TapestryModule$15.renderMarkup(TapestryModule.java:1128) >at > org.apache.tapestry5.services.TapestryModule$24.renderMarkup(TapestryModule.java:1472) >at > $MarkupRenderer_11f0f99b283.renderMarkup($MarkupRenderer_11f0f99b283.java) >at > org.apache.tapestry5.services.TapestryModule$23.renderMarkup(TapestryModule.java:1453) >at > $MarkupRenderer_11f0f99b283.renderMarkup($MarkupRenderer_11f0f99b283.java) >at > org.apache.tapestry5.services.TapestryModule$22.renderMarkup(TapestryModule.java:1435) >at > $MarkupRenderer_11f0f99b283.renderMarkup($MarkupRenderer_11f0f99b283.java) >at > org.apache.tapestry5.services.TapestryModule$21.renderMarkup(TapestryModule.java:1415) >at > $MarkupRenderer_11f0f99b283.renderMarkup($MarkupRenderer_11f0f99b283.java) >at > $MarkupRenderer_11f0f99b27f.renderMarkup($MarkupRenderer_11f0f99b27f.java) >at > org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:64) >at > $PageMarkupRenderer_11f0f99b27d.renderPageMarkup($PageMarkupRenderer_11f0f99b27d.java) >at > org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:57) >at > $PageResponseRenderer_11f0f99b20d.renderPageResponse($PageResponseRenderer_11f0f99b20d.java) >at > org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:59) >at > org.apache.tapestry5.services.TapestryModule$29.handle(TapestryModule.java:1653) >at > $PageRenderRequestHandler_11f0f99b20e.handle($PageRenderRequestHandler_11f0f99b20e.java) >at > $PageRenderRequestHandler_11f0f99b204.handle($PageRenderRequestHandler_11f0f99b204.java) >at > org.apache.tapestry5.internal.services.PageRenderDispatcher.process(PageRenderDispatcher.java:97) >at > org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:73) >at $Dispatcher_11f0f99b209.dispatch($Dispatcher_11f0f99b209.java) >at $Dispatcher_11f0f99b1fb.dispatch($Dispatcher_11f0f99b1fb.java) >at > org.apache.tapestry5.services.TapestryModule$13.service(TapestryModule.java:953) >at > org.apache.tapestry5.internal.services.LocalizationFilter.service(LocalizationFilter.java:42) >at > $RequestHandler_11f0f99b1fc.service($RequestHandler_11f0f99b1fc.java) >at > org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:586) >at > $RequestHandler_11f0f99b1fc.service($RequestHandler_11f0f99b1fc.java) >at > org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) >at > $RequestHandler_11f0f99b1fc.service($RequestHandler_11f0f99b1fc.java) >at > org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:79) >at > $RequestHandler_11f0f99b1fc.service($RequestHandler_11f0f99b1fc.java) >at > org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) >at > org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84)
Re: T5: how to circumvent t:formdata
If you use a Form component, you need the t:formdata. If you don't use Form (and therefore, don't use TextField, Select, etc.) you can easily submit directly into a component event handler method; it's a step back towards servlet-style coding, where you inject the Request and pull parameters out to do with as you please. On Mon, Jan 26, 2009 at 9:17 AM, Massimo Lusetti wrote: > On Mon, Jan 26, 2009 at 5:49 PM, Michael Capper wrote: > >> Hi, >> I've got a form which i'd like to submit direcly in a mobile application >> without prior loading of the page. I then wouldn't have a correct value for >> a t:formata hidden field, which seems required and also seems to change >> every now and then. I understand this is for some security reason, but can >> this t:formdata-parameter somehow be omitted, or set to a fixed value? > > Short answer: No > Long answed: It shouldn't change from version to version so it is > fixed and you can hardcode it but afaik T5 need it to process the form > submission. > > I too have great interest in having another way to submit form to T5 > page from an automated-station and would like to here from Howard > which is his feeling and how we can help if that's the case. > > Regards > -- > Massimo > http://meridio.blogspot.com > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Palette-base component not showing
Try using your component outside of a BeanEditForm please. Em Mon, 26 Jan 2009 15:15:54 -0300, Davor Miku escreveu: Hi, Palette-base custom component "category.palette" is not showing when embedded into beaneditform: Otherwise it woks fine. There is no exception. PRODUCTION_MODE is set to false. Can anyone help, please? I'm pretty new to Tapestry, sorry if I'm making dumb questions. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor Consultor, desenvolvedor e instrutor em Java http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Palette-base component not showing
Hi, Palette-base custom component "category.palette" is not showing when embedded into beaneditform: Otherwise it woks fine. There is no exception. PRODUCTION_MODE is set to false. Can anyone help, please? I'm pretty new to Tapestry, sorry if I'm making dumb questions.
Re: OnActivate question
James Sherwood wrote: Hello, Hi. I have security through page Activate. All my pages extend a page that has a method: @OnEvent("activate") Object onSecurityCheck(){ Check security if fails return Index.class } This works however any page that has its own onActivate() method, the method still runs (the extended page runs first) but everything still works fine. Is there a way to prevent the pages onActivate() method(as some have db calls in them) from running if the extended page's activate method returns a page. Well, no, and that has nothing to do with T5 - just the bland design of the java language's semantics (and most other languages I've worked with). The service that handles the page requests (I believe) is the one that invokes the various life cycle methods on the page instance. T5 handles page returns from onActivate as an indication to load that page. When you subclass a class and override a method implementation, the method that gets called on subclass instances is responsible for returning a value. Therefore you can't rely on the return of an overridden superclass method because overriding method is the one that must return a value. I'd consider looking into Dispatcher based authentication, but assuming you want to use the page-based approach, why not just have the subclasses return the value returned by executing super.onActivate() ? Thanks, --James -- http://thegodcode.net - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
OnActivate question
Hello, I have security through page Activate. All my pages extend a page that has a method: @OnEvent("activate") Object onSecurityCheck(){ Check security if fails return Index.class } This works however any page that has its own onActivate() method, the method still runs (the extended page runs first) but everything still works fine. Is there a way to prevent the pages onActivate() method(as some have db calls in them) from running if the extended page's activate method returns a page. Thanks, --James
Re: T5: how to circumvent t:formdata
On Mon, Jan 26, 2009 at 5:49 PM, Michael Capper wrote: > Hi, > I've got a form which i'd like to submit direcly in a mobile application > without prior loading of the page. I then wouldn't have a correct value for > a t:formata hidden field, which seems required and also seems to change > every now and then. I understand this is for some security reason, but can > this t:formdata-parameter somehow be omitted, or set to a fixed value? Short answer: No Long answed: It shouldn't change from version to version so it is fixed and you can hardcode it but afaik T5 need it to process the form submission. I too have great interest in having another way to submit form to T5 page from an automated-station and would like to here from Howard which is his feeling and how we can help if that's the case. Regards -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5: how to circumvent t:formdata
Hi, I've got a form which i'd like to submit direcly in a mobile application without prior loading of the page. I then wouldn't have a correct value for a t:formata hidden field, which seems required and also seems to change every now and then. I understand this is for some security reason, but can this t:formdata-parameter somehow be omitted, or set to a fixed value? Thanks, Michael -- View this message in context: http://www.nabble.com/T5%3A-how-to-circumvent-t%3Aformdata-tp21668917p21668917.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to inject Tapestry Objects in a thread
peibel wrote: Hi, Can someone help us? We have a tapestry 5 application and we need add a thread because of new requirements. We'd like to inject some tapestry objects in a our application - HibernateSessionManager etc. - to get access to our database from the new thread. You can inject Tapestry service only on other Tapestry-ioc managed service, it's the way all IOC framework work: then can handle only object in their scope (in particular, they have to manage the object creation to be able to refer to the good existing object instance that should be injected). So, two cases : - your new thread is next to your T5 app : T5 can't do anything for you - neither could Guice, or Spring - by "a new Thread", you mean a new object (service) that should be thread-dependent. In this case, you could manage it's creation with T5 and the "per thread scope", and in this case, you would be able to fully use T5 IoC and so, inject other service into it. For service scoping, see : http://tapestry.apache.org/tapestry5/tapestry-ioc/service.html I hope it helps, and perhaps I misunderstood something, so don't hesitate to ask precisions. -- Francois Armand Etudes & Développements J2EE Groupe Linagora - http://www.linagora.com Tél.: +33 (0)1 58 18 68 28 --- http://fanf42.blogspot.com InterLDAP - http://interldap.org FederID - http://www.federid.org/ Open Source identities management and federation - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to inject Tapestry Objects in a thread
Hi, Can someone help us? We have a tapestry 5 application and we need add a thread because of new requirements. We'd like to inject some tapestry objects in a our application - HibernateSessionManager etc. - to get access to our database from the new thread. Is it possible? are we misunderstanding anything? Thanks! -- View this message in context: http://www.nabble.com/How-to-inject-Tapestry-Objects-in-a-thread-tp21668380p21668380.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: [DISCUSS] Should the quickstart archetype include tapestry-hibernate?
I would say not to, create another quickstart if you feel there's an audience. I know that at the stage I found the QS Archetype useful, having to remove Hibernate would not have been a welcome or easy task. > -Original Message- > From: Howard Lewis Ship [mailto:hls...@gmail.com] > Sent: 23 January 2009 00:32 > To: Tapestry users > Subject: [DISCUSS] Should the quickstart archetype include tapestry- > hibernate? > > The title says it all. It would be very easy to include > tapestry-hibernate as a dependency, and a minimal hibernate.cfg.xml > file as well. Thoughts? > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Coming Soon: Tapestry360!
On Sat, Jan 24, 2009 at 7:43 PM, Howard Lewis Ship wrote: > Lately, I've been pulled in a couple of directions. I'm working on a > number of Tapestry-related things (new presentations, a DZone Refcard, > articles and a new tutorial). I've also been working on Tapestry360: > http://tapestry.formos.com Really a great news! Thanks Formos! -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5: application/json response and GZip compression
See TAP5-467, TAP5-468, TAP5-469. 2009/1/26 Patrick Moriarty > My pleasure, most of the time ;) > > I'll create a couple of JIRA issues for these. > > Patrick > > 2009/1/23 Howard Lewis Ship > >> These all sound like issues that should be added to JIRA. Thanks for >> hanging out on the bleeding edge! >> >> On Fri, Jan 23, 2009 at 3:38 AM, Patrick Moriarty >> wrote: >> > I've resorted to returning a TextStreamResponse with >> > "application/json" as the content type in order to bypass gzip >> > compression. >> > >> > 2009/1/23 Patrick Moriarty : >> >> Looks like adding "application/json" to the configuration for >> >> ResponseCompressionAnalyzer doesn't quite do it because it's compared >> >> directly against "application/json;charset=UTF-8". >> >> >> >> I could add "application/json;charset=UTF-8" but I think >> >> ResponseCompressionAnalyzer should probably ignore the charset and any >> >> other parameters in isCompressable() >> >> >> >> Patrick >> >> >> >> >> >> 2009/1/23 Patrick Moriarty : >> >>> Hi, >> >>> >> >>> Since the recent introduction of gzip compression returning a >> >>> JSONObject from a mixin event method results in an empty responseText >> >>> in Firefox. It seems there is some problem with Content-Type: >> >>> application/json and Content-Encoding: gzip headers that prevents the >> >>> response from being decompressed correctly by the browser. Has anyone >> >>> come across this before? A Google search doesn't reveal much. >> >>> >> >>> For now I'm disabling compression for "application/json". Perhaps >> >>> this should be the default behaviour? >> >>> >> >>> This seems to be the case with IE too. I attempted to check behaviour >> >>> in Opera, but the response was not gzipped since the Accept-Encoding >> >>> request header sent by Opera includes a space (eg. "deflate, gzip, >> >>> ..." instead of "deflate,gzip,..."). >> >>> IE6 also includes a space but places gzip at the beginning. Tapestry >> >>> should probably trim the spce before comparing to "gzip" in >> >>> ResponseCompressionAnalyzerImpl. >> >>> >> >>> Thanks, >> >>> >> >>> Patrick >> >>> >> >> >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> > For additional commands, e-mail: users-h...@tapestry.apache.org >> > >> > >> >> >> >> -- >> Howard M. Lewis Ship >> >> Creator Apache Tapestry and Apache HiveMind >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >
Re: T5: application/json response and GZip compression
My pleasure, most of the time ;) I'll create a couple of JIRA issues for these. Patrick 2009/1/23 Howard Lewis Ship > These all sound like issues that should be added to JIRA. Thanks for > hanging out on the bleeding edge! > > On Fri, Jan 23, 2009 at 3:38 AM, Patrick Moriarty > wrote: > > I've resorted to returning a TextStreamResponse with > > "application/json" as the content type in order to bypass gzip > > compression. > > > > 2009/1/23 Patrick Moriarty : > >> Looks like adding "application/json" to the configuration for > >> ResponseCompressionAnalyzer doesn't quite do it because it's compared > >> directly against "application/json;charset=UTF-8". > >> > >> I could add "application/json;charset=UTF-8" but I think > >> ResponseCompressionAnalyzer should probably ignore the charset and any > >> other parameters in isCompressable() > >> > >> Patrick > >> > >> > >> 2009/1/23 Patrick Moriarty : > >>> Hi, > >>> > >>> Since the recent introduction of gzip compression returning a > >>> JSONObject from a mixin event method results in an empty responseText > >>> in Firefox. It seems there is some problem with Content-Type: > >>> application/json and Content-Encoding: gzip headers that prevents the > >>> response from being decompressed correctly by the browser. Has anyone > >>> come across this before? A Google search doesn't reveal much. > >>> > >>> For now I'm disabling compression for "application/json". Perhaps > >>> this should be the default behaviour? > >>> > >>> This seems to be the case with IE too. I attempted to check behaviour > >>> in Opera, but the response was not gzipped since the Accept-Encoding > >>> request header sent by Opera includes a space (eg. "deflate, gzip, > >>> ..." instead of "deflate,gzip,..."). > >>> IE6 also includes a space but places gzip at the beginning. Tapestry > >>> should probably trim the spce before comparing to "gzip" in > >>> ResponseCompressionAnalyzerImpl. > >>> > >>> Thanks, > >>> > >>> Patrick > >>> > >> > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > -- > Howard M. Lewis Ship > > Creator Apache Tapestry and Apache HiveMind > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >