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]
What's wrong with this code?
IAsset image =
getEngine().getInfrastructure().getAssetFactory().createAbsoluteAsset(
z:\\images\\0001.JPG,
getLocale(),
getLocation()
);
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
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 =
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:
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
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?
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
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
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
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
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:
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
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
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
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
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
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
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
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
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.
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
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
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]
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
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, );
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
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
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:
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
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]
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
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
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
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
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
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
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,
...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
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]
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
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:
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
45 matches
Mail list logo