StreamResponse in Tapestry 4.1

2008-01-14 Thread munich
Is there an alternative way for outputting binary data in Tapestry 4.1 without the T5 specific StreamResponse? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

createAbsoluteAsset question

2008-01-13 Thread munich
What's wrong with this code? IAsset image = getEngine().getInfrastructure().getAssetFactory().createAbsoluteAsset( z:\\images\\0001.JPG, getLocale(), getLocation() );

Re: How to use images outside webroot

2008-01-11 Thread munich
What plugins are you using? What would be the manual step to achieve this? How do I avoid that I get a several Gigabyte big .war file ? Original-Nachricht Datum: Thu, 20 Dec 2007 16:08:02 +0100 Von: Sven Homburg [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org

Re: How to use images outside webroot

2008-01-11 Thread munich
I have tried the following: public abstract class Test extends TrailsPage { public IAsset getTest(){ FileResource resource = new FileResource(Z:\\Media\\0001.JPG); Location location = new LocationImpl(resource); IAsset image =

Re: How to use images outside webroot

2008-01-08 Thread munich
But how do you avoid that people can access those images directly ? They should not be accessible through a direct website url as there is a permission check before. Original-Nachricht Datum: Thu, 20 Dec 2007 16:08:02 +0100 Von: Sven Homburg [EMAIL PROTECTED] An:

PrivateAsset example please

2008-01-08 Thread munich
I wonder who this works: http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/asset/PrivateAsset.html How do I use the PrivateAsset component? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: PrivateAsset example please

2008-01-08 Thread munich
Thanks. There are no exmaples on these pages though. public IAsset getScreenshot(String name){ return new ExternalAsset(thumbs/.concat(name).concat(.JPG), null); I have tried this also: So if I used PrivateAsset what do the paramters look like?

Re: PrivateAsset example please

2008-01-08 Thread munich
PrivateAsset takes the following parameters: Resource resourceLocation, IEngineService assetService, Location location The images are in another directory on a different diskthe directory is on the classpath...so the image should be in: someimages/picture.jpg How do I create a

Re: PrivateAsset example please

2008-01-08 Thread munich
Do you have an example? What is the path? Relativ so the classpath? How do I create a location object ? Do I need to set: meta key=org.apache.tapestry.asset.dir value=file:///Z:/Media// as well or would that expose the whole directoy to anyone? I wish there was an example

Re: PrivateAsset example please

2008-01-08 Thread munich
Then, I just need to change the path somewhere I assume. It is 250 Gigabytes of image data and I do not want to war them every time I make a change during development...on the final system they will be on a linux machine so I can just make virtual directories and link to the storage. So do I

Re: PrivateAsset example please

2008-01-08 Thread munich
So what does it do? The service method does not return/change anything? And then, this service will be added to the Hivemind.xml? What does such a Hivemind configuration look like ? Where do I add this f parameter ? Would it be possible to add the following to Tapestry: span

How to use images outside webroot

2007-12-20 Thread munich
During development I would like to access/use images that are on a network drive (e.g. f:\images) as I dont have enough space on my harddisk. How can I tell Tapestry that it finds localhost:8080/images/image.gif here f:\images\image.gif ?

Re: Checkbox inside contrib:table (again)

2007-12-20 Thread munich
The following example is clear: table jwcid=[EMAIL PROTECTED]:Table columns=foo,bar,baz row=ognl:currRow/ span jwcid=[EMAIL PROTECTED] labelinput type=checkbox jwcid=@Checkbox selected=ognl:currRow.baz / Baz/label /span But what about the Java code? How do you get a list of selected objects

Localization of PropertySelection items

2007-10-11 Thread munich
I have been thinking about how to go about implementing a 100% database-driven solution for localized property selection items. The only solution that comes to my mind is to use the locale files and to select constants that are mapped to them. Has anyone ever had the same idea to use a pure

T5: TabPanel

2007-10-10 Thread munich
How do you translate the following example to T5 ? span jwcid=@TabPanel blockIds=ognl:{'berlin', 'rome', 'tokyo'} selectColor=#00 unSelectColor=#CC borderColor=#00CC33/ span jwcid=[EMAIL PROTECTED] h1Berlin/h1 /span span jwcid=[EMAIL PROTECTED] h1Rome/h1 /span span

Trails or Congnition ;-)

2007-10-10 Thread munich
I wanted to use either Trails or Cognition for the next project. However, Cognition seems to have ceased to exist and Trails does not work. Maven does not find everything (Quick Start): Reason: Error getting POM for 'org.apache.myfaces.tobago:maven-apt-plugin' from the repository: Error

Re: Memory leaks in Tapestry 4.1

2007-08-10 Thread munich
Has anyone got a list of recommended non-leaking third party frameworks ? We are using: - Tapestry 4.1 - Cayenne 1.2.1 - Postgres Driver 8.2.5.0.4 - JDBC3 8.2-504 - JDBC API 2.0 - OGNL 2.6.7 - Log4j 1.2.13 - Hivemind DWR 1.1.beta3 - Commons Loggings 1.0.3 Original-Nachricht

Memory leaks in Tapestry 4.1

2007-08-09 Thread munich
Have you ever observed the memory usage for your Tapestry application? For example, make a simple HelloWorld Application and load the page regularly using HTTP_LOAD. Then watch how the memory consumption grows and grows especially after an hour. Has anyone got a solution how avoid this

Re: Memory leaks in Tapestry 4.1

2007-08-09 Thread munich
We have tried both enabling and disabling the cache. The same effect... it is only leaking a little bit slower in the other case. Original-Nachricht Datum: Thu, 9 Aug 2007 15:33:43 +0200 Von: Kristian Marinkovic [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org

Re: Memory leaks in Tapestry 4.1

2007-08-09 Thread munich
Within one day it rises slowly from 100 MByte to about 1 Gigabyte at night when it crashes due to the limt that was set to the virtual machine. It could be increased - but only with the effect of having an additional day or so before it crashes again.restarting Tomcat is also not a viable

BaseEngine and org.apache.tapestry.request-decoder

2007-07-04 Thread munich
How do you inject the Engine into org.apache.tapestry.request-decoder ? In the workbench example there is: extension name=org.apache.tapestry.request-decoder class=org.apache.tapestry.workbench.RequestDecoder/ I am trying to set the locale inside RequestDecoder dependent on the domain name.

service method in BaseEngine

2007-07-04 Thread munich
Has anyone an idea why the following code will not work? public void service(WebRequest webRequest, WebResponse webResponse) throws IOException { if (webRequest.getServerName().startsWith(en.)){ this._locale=new

Re: getInfrastructure() is null

2007-07-02 Thread munich
Yes. BaseEngine is extended and the methods are overwritten. en.domain.com should be English and fr.domain.com should be French for example. However, as getInfrastructur() sometimes returns null, this is not working that way. Original-Nachricht Datum: Mon, 2 Jul 2007

tapestry.InfrastructureOverrides example?

2007-07-02 Thread munich
Has anyone got an example of how to use the tapestry.InfrastructureOverrides hook? I would like to overwrite the Locale and in order to do so also inject the tapestry.globals.WebContext to such a service (and then overwrite the Locale depending on the WebContext). Thanks!

how to overwrite the Locale in BaseEngine

2007-07-02 Thread munich
What would be the most reliable way to overwrite the Locale for the Component and Page messages inside an extended BaseEngine? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Accessing ThreadLocale in BaseEngine

2007-07-02 Thread munich
Does anyone know how to access ThreadLocale (in order to change it) inside a BaseEngine class (a class extending BaseEngine) ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

getInfrastructure() is null

2007-07-01 Thread munich
Inside BaseEngine's setLocale method, I want to overwrite the Locale, depending on the domain name. However, getInfrastructure() returns null. How can I access the domain name alternatively? - To unsubscribe, e-mail: [EMAIL

[T4] Changing the Locale for subdomains

2007-06-29 Thread munich
I have changed the method getLocale in BaseEngine: @Override public Locale getLocale() { String domain = this.getInfrastructure().getRequest().getServerName(); if (domain.startsWith(en.)){ return new Locale(en, );

Order in which ognl expressions are evaluated

2007-06-13 Thread munich
Hi there! Something really weird is going on I have created a static method that returns false ( getFalseCondition())... inside of the condition is a component. condition jwcid=@If condition=ognl:falseCondition span jwcid=@SomeComponent/ /condition If the

Re: Order in which ognl expressions are evaluated

2007-06-13 Thread munich
Thanks! Independent on what exactly the error is, it is weird that is makes a difference whether I write: condition jwcid=@If condition=ognl:falseCondition span jwcid=@SomeComponent/ /condition or condition jwcid=@If condition=ognl:falseCondition /condition as the line inside

Re: Starting with Tapestry

2007-02-05 Thread munich
sorry..wrong button (earlier message) Original-Nachricht Datum: Mon, 5 Feb 2007 11:12:51 -0500 Von: Daniel Jue [EMAIL PROTECTED] An: Tapestry users users@tapestry.apache.org CC: Betreff: Re: Starting with Tapestry Francis? On 2/4/07, nilo de roock [EMAIL PROTECTED] wrote:

OpenLazlo and Tapestry

2007-01-31 Thread munich
Have you heard of OpenLaszlo yet? http://www.openlaszlo.org/demos#Laszlo%20Components%20in%20OL4 is this compatible with Tapestry (maybe Tapestry 5?) or a theoretical possible to also integrate such technologies into Tapestry? Maybe pages and components could be rendered into their Flash

IMonitor deprecated?

2007-01-27 Thread munich
To be removed in 4.1 with no direct replacement. So what do you do with old Tapestry applications that use it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Injecting the RequestContext to a threaded Hivemind Service

2007-01-27 Thread munich
How do you inject the current RequestContent for a client to a threaded HivemindService? Is there a way that ensures, that every client only accesses his own RequestContext with this HivemindService that is then in return injected into a page or component? service-point id=SomeServicePoint

Spoilt for choice.....which Tapestry project to start with

2007-01-24 Thread munich
I am starting from scratch with a new Tapestry project...but I am spoilt for choice and can not decide which Tapestry project to take to start with: - the Cognition Framework? - HoneycombLib? - AppFuse ? - JumpStart? - Tapernate? The problem with Tapestry is maybe that there is so many

Re: @BeanForm for a Cat and its Owner (PropertySelection)

2007-01-20 Thread munich
Thanks! But this is the answer I feared :-( Do you think it would be possible to make the BeanForm component more intelligent, that it will do that automatically? It would only need to call the getName() method on referenced objects This way you would save lots of code and even for the

@BeanForm for a Cat and its Owner (PropertySelection)

2007-01-19 Thread munich
I got it working now...I saw some helpful additional comments on the sourceforge page. I used the annotations now and did without a page file. I also added a library line to the application file. Another error was that I forgot the PageBeginRender interface so that the object was null when the

@BeanForm How do you use it ???

2007-01-18 Thread munich
I have tried: span jwcid=@BeanForm bean=ognl:foo properties=ognl:'name' save=listener:onSave / as well as: span jwcid=@BeanForm bean=ognl:foo beanProperties=ognl:'name' save=listener:onSave / but it comes up with: ognl.OgnlException beanProperties java.lang.NullPointerException Stack

New Tapestry feature suggestion: EditForm generation

2007-01-14 Thread munich
What about adding native Tapestry support for editing (complex) objects? For objects thats don't depend on other objects it would be easy (e.g. simply generating text fields). For objects that depend on other objects, it could maybe be solved using Annotations? E.g. One object is Car and one

Re: RE: RE: RE: HoneycombLib/Hibernate problem

2007-01-04 Thread munich
Thanksgetting closer! Now I only have to solve the id generator problem. Error building service honeycomb.hibernate.HibernateSessionFactory: Error at jar:file:/C:/home/me/.m2/repository/com/javaforge/honeycomb/HoneycombHibernate/0.3.3/HoneycombHibernate-0.3.3.jar!/META-INF/hivemodule.xml,

Re: RE: RE: RE: HoneycombLib/Hibernate problem

2007-01-04 Thread munich
...about the Generation Type. inside TemplateEntity I have tried: @Id @GeneratedValue(strategy=GenerationType.AUTO) public long getId(){ return id; } all possible valuesbut all produce the same error. Original-Nachricht Datum: Thu, 4 Jan

Re: RE: RE: RE: HoneycombLib/Hibernate problem

2007-01-04 Thread munich
ok...seems to happen somewhere earlier...also no tables are created: 15:01:30.390 INFO [SocketListener0-1] org.hibernate.cfg.annotations.Version.clinit(Version.java:15) 89 Hibernate Annotations 3.2.0.CR1 15:01:30.406 INFO [SocketListener0-1]

Re: RE: HoneycombLib/Hibernate problem

2007-01-03 Thread munich
Hi there! Inside the generated Core project I adapted the hivemodule.xml file like that: contribution configuration-id=honeycomb.hibernate.HibernateSessionFactory entity clazz=com.javaforge.honeycomb.hibernate.audit.AuditEvent / entity

Re: RE: RE: HoneycombLib/Hibernate problem

2007-01-03 Thread munich
dependency groupIdmysql-connector-java/groupId artifactIdmysql-connector-java/artifactId version3.1.14/version /dependency (only a manual maven install worked though). The mysql connector is found corrctly. The console output:

HoneycombLib/Hibernate problem

2006-12-30 Thread munich
I am trying to use HoneycombLib with MySQL and adapted the hivemodule.xml file. It seems like it still uses the hivemodule.xml file from inside the HoneycombHibernate-0.3.3.jar file? Any ideas how I can get it to work with MySQL or Postgres? org.apache.hivemind.ApplicationRuntimeException