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: Tap

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 addi

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 lik

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 resourceloca

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: as well or would that expose the whole directoy to anyone? I wish there was an example somewhere. Original-Nachricht > Datum: Tue,

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 ne

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: public IAsset getPr

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 > Betreff: Re: How

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 = this.getEngine().getInfr

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() ); java.lang.IllegalArgumentExcept

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]

Re: PrivateAsset example please

2008-01-14 Thread munich
IAsset image = getEngine().getInfrastructure().getAssetFactory().createAbsoluteAsset( "z\\0001.JPG", getLocale(), getLocation() ); This results in: java.lang.IllegalArgumentException C

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 Una

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: org.hibernate.dialect.MySQLDialect org.gjt.mm.mysql.Driver root thepa

Re: RE: RE: HoneycombLib/Hibernate problem

2007-01-03 Thread munich
mysql-connector-java mysql-connector-java 3.1.14 (only a manual maven install worked though). The mysql connector is found corrctly. The console output: launching Jetty webapp: / on address: domain.de:8080 using dir: [C:\java\ta

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, l

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 2

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.(Version.java:15) >89> Hibernate Annotations 3.2.0.CR1 15:01:30.406 INFO [SocketListener0-1] org.hibernate.cfg.Environment.(Environment.java:499)

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 lea

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" Betreff: Re: Memory leaks

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 so

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 D

T5: TabPanel

2007-10-10 Thread munich
How do you translate the following example to T5 ? Berlin Rome Tokyo Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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 tran

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 dat

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: Baz But what about the Java code? How do you get a list of selected objects back? The checkboxes are not mapped to anything ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

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

@BeanForm How do you use it ???

2007-01-18 Thread munich
I have tried: as well as: but it comes up with: ognl.OgnlException beanProperties java.lang.NullPointerException Stack Trace: * com.domain.components.BeanForm.getBeanProperties(BeanForm.java:149) Any pointing in the right direction? Thanks! ---

No .page files ?

2007-01-18 Thread munich
I am playing around with a HoneycombLib generated Tapestry project There is only an application file and no page filesjust java classes - but it works. How come there are no page files anymore? In the appliction file it only says: --

@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 pa

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 mos

AW: WANTED: Tapestry Success Stories

2007-01-24 Thread munich
That's why some people didnt like friendly/clean urls Original-Nachricht Datum: Wed, 24 Jan 2007 08:46:48 +0100 Von: "Peter Schröder" <[EMAIL PROTECTED]> An: "Tapestry users" Betreff: AW: WANTED: Tapestry Success Stories > how about doin a google search "inurl:service=page"

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 decisions

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]

ActionLink deprecated?

2007-01-27 Thread munich
Deprecated. To be removed in 4.1 protected ILink getLink(IRequestCycle cycle, String serviceName, Object parameter) What is the replacement for the method above? Tanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Limit the number of clicks per second inside Tapestry

2007-01-27 Thread munich
If I want to limit the number of clicks page views per second for every user, how would I do that inside Tapestry? Would that go into the BaseEngine ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

How do you structure your Tapestry app?

2007-01-27 Thread munich
I was just wondering why Honeycomb creates a Core and a Web project for Tapestry To me a core is something that contains "Core" classes that can be reused in other Web projects However the created Core projects don't know anything about Tapestry, only the Web project...so you can only

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? ? Thanks

Re: Limit the number of clicks per second inside Tapestry

2007-01-28 Thread munich
Thanks for the input! It is primarily intended to get rid auf Apache modules that did that before and to be more flexible in using that information. Search engines crawlers can usually slow down a website a lot - or experimental crawlers by university students etcor malicious webcrawlers or

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 count

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

2007-02-04 Thread munich
Thanks! Haven not tried it yet, but JBoss makes the setup more complexso you have Tomcat, Apache,? the database and JBoss...so 4 things you need to check and make sure they are running all the time. Why do you need an application server if you use hibernate & hivemind ? Original-N

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" CC: Betreff: Re: Starting with Tapestry > Francis? > > On 2/4/07, nilo de roock <[EMAIL PROTECTED]> wrote: > > > > I am a

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. If the component is rendered, an error occurs - if I leave the component out, the error does not occ

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: or as the line inside should never be calledunless the ognl expressions are evaluated prior to rendering Original-Nachricht Datum: Wed, 13 J

[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", "");

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 PRO

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 08:51

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]

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: I am trying to set the locale inside RequestDecoder dependent on the domain name. In order to set the Locale, BaseEngine is necessary Thanks! ---

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 Locale("e