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
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
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
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
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,
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
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
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
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
What's wrong with this code?
IAsset image =
getEngine().getInfrastructure().getAssetFactory().createAbsoluteAsset(
"z:\\images\\0001.JPG",
getLocale(),
getLocation()
);
java.lang.IllegalArgumentExcept
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]
IAsset image =
getEngine().getInfrastructure().getAssetFactory().createAbsoluteAsset(
"z\\0001.JPG",
getLocale(),
getLocation()
);
This results in:
java.lang.IllegalArgumentException
C
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
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
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
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
...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
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)
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
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
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
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
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]
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
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
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" ?
---
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
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
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!
---
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:
--
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
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
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"
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
"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]
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
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: [
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
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
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
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
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
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
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
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
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", "");
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
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
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!
--
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]
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]
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!
---
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
53 matches
Mail list logo