Re: NYSERDA

2007-10-07 Thread Celia Mou

Hi Mark,

Sorry, I guess you still don't have my phone number: (718) 204-0626

Cell: (917) 299-1208 (usually held by Frank)

I'm at home and doing it.

Thanks!

celia



On Oct 7, 2007, at 12:18 PM, Mark Alhadeff wrote:


Move your js up one directory from WEB-INF. See here:
http://wiki.apache.org/tapestry/Tapestry5WhereToStoreExternalResources

The contents of WEB-INF are protected from browsing.
Most assets are usually placed above it.

Cheers,
Nick.


Angelo Chen wrote:

if I remove the context, then I have to put js/query.js under pages
directory, this will eliminate the error message, however the  
script is
included in the , anyway to include it in the header  
part?

Thanks.
Shing Hing Man wrote:

Have you tried   @Path("context:js/jquery.js")

(no slash after context:) ?

Shing


--- Angelo Chen <[EMAIL PROTECTED]> wrote:


Hi,

I use following code to include a javascript:

  @Inject
@Path("context:/js/jquery.js")
private Asset _library;

@Environmental
private PageRenderSupport _renderSupport;

void beginRender() {
  _renderSupport.addScriptLink(_library); }

but always got :Unable to locate asset
'context:js/jquery.js' (the file does
not exist).

the js file is under WEB-INF/js, why? Thanks,
A.C.

--
View this message in context:

http://www.nabble.com/T5%3A-why-not-able-to-locate-js-- 
tf4583504.html#a13083743

Sent from the Tapestry - User mailing list archive
at Nabble.com.



 
-

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]




Home page : http://www.lombok.demon.co.uk/



  ___  
Want ideas for reducing your carbon footprint? Visit Yahoo! For  
Good http://uk.promotions.yahoo.com/forgood/environment.html


 
-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can someone tell me how to make donations to Tapestry

2007-06-24 Thread Celia Mou

Hi,

Does anything know what the best way is to donate to the Tapestry  
project? I didn't find any mechanism on the Tapestry site.


Thanks a lot!

celia

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: Hibernate integration question - with additional questions

2007-04-09 Thread Celia Mou

Thanks again, Howard!

I think T5 is definitely going to be a great thing!

I'm going to donate, and hope there would be good funding for it.

Thanks!

celia


Howard Lewis Ship wrote:

On 4/9/07, Celia Mou <[EMAIL PROTECTED]> wrote:

Thanks for clarifying this, Howard!

Now actually, i have related questions: My application needs to handle
file uploads, and work with third-party packages to generate graphs
(through generating from the backend either a custom link or javascript
for the html page), and occasionally redirect to non-Tapestry pages or
URLs, maybe manipulate the request, response and session  objects when
necessary. I'm not quite confident whether I can achieve these by using
the current unfinished T5.



I'm in crunch mode for two different clients at the moment, which is
why I've been slow to get more T5 code out.

As a side note ... if anyone want to *fund* the development of T5,
that would get it out the door much, much faster.

In terms of T5 status:

Uploads are coming.

Returning a custom URL from a T5 event handler method is either in
place, or coming.

You have full access to the Servlet API objects, or to the generic
Request and Session objects, to allow you to manipulate request and
session attributes.  Over time, more of the HttpServletRequest methods
will be re-implemented in the Request wrapper.

The trick is allowing outside servlet code to access the Tapestry
objects (even if stored in the session), in that you can't predict
what the session attribute key is going to be (the name used is
predictable ... but subject to change at any time. It's part of the
Tapestry internals).




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: Hibernate integration question

2007-04-09 Thread Celia Mou

Thanks for clarifying this, Howard!

Now actually, i have related questions: My application needs to handle 
file uploads, and work with third-party packages to generate graphs 
(through generating from the backend either a custom link or javascript 
for the html page), and occasionally redirect to non-Tapestry pages or 
URLs, maybe manipulate the request, response and session  objects when 
necessary. I'm not quite confident whether I can achieve these by using 
the current unfinished T5.


Do you think I can actually manage? What are the recommendations?

Any help is greatly appreciated!

celia


Howard Lewis Ship wrote:

Sorry, it's just the sketch of the final library; I haven't had a
chance to cycle around and make it useful.

On 4/6/07, Celia Mou <[EMAIL PROTECTED]> wrote:

Hi,

Does anyone have a working example of Tapestry 5 and Hibernate 
integration?


According to the limited docs on the Tapestry site, one needs to put the
hibernate.cfg.xml file in the src/main/resources directory, and then
maybe contribute the entity package to the
tapestry.hibernate.HibernateSessionSource. It seems if one has the
entities package under the base package, one doesn't even need to
contribute.

That's what I got. But then, where would you put the mapping files? And
what's the typical way to instantiate and destroy Hibernate sessions?

Well, in short, I'm a bit lost in this. Any hint will be greatly
appreciated. Thanks!

celia

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: Hibernate integration question

2007-04-06 Thread Celia Mou

Hi,

Does anyone have a working example of Tapestry 5 and Hibernate integration?

According to the limited docs on the Tapestry site, one needs to put the 
hibernate.cfg.xml file in the src/main/resources directory, and then 
maybe contribute the entity package to the  
tapestry.hibernate.HibernateSessionSource. It seems if one has the 
entities package under the base package, one doesn't even need to 
contribute.


That's what I got. But then, where would you put the mapping files? And 
what's the typical way to instantiate and destroy Hibernate sessions?


Well, in short, I'm a bit lost in this. Any hint will be greatly 
appreciated. Thanks!


celia

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: maven build error

2007-03-28 Thread Celia Mou

Hi Howard,

I'm using 0.0.9. (JDK is 1.5, Eclipse 3.2.0 on Windows)

Thanks a lot for the help!

celia


Howard Lewis Ship wrote:

Which version do you use?  I've head rumors that 0.0.10 is unstable,
so I've been holding back at 0.0.9.

On 3/26/07, Celia Mou <[EMAIL PROTECTED]> wrote:

Hi, has anyone tried to build a distribution of a T5 project using
Eclipse Maven plugin?

When I tried to build after following the steps of the tutorial and
adding my own java and template files, it failed on the war file making.
Here are the beginning line of the error dump:

Diagnosis: Error configuring:
org.apache.maven.plugins:maven-deploy-plugin. Reason: Unable to parse
the created DOM for plugin configuration
FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionException: Error
configuring: org.apache.maven.plugins:maven-deploy-plugin. Reason:
Unable to parse the created DOM for plugin configuration
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:563) 




I haven't changed the POM file from what was made by following the
tutorial. One error I surrounded when building was a missing dependency
of the plexus-utils:jar:1.4.1-SNAPSHOT. After that, the above appeared
when re-running the maven build.

Any hint would be greatly appreciated! Thanks!

celia


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: maven build error

2007-03-26 Thread Celia Mou
Hi, has anyone tried to build a distribution of a T5 project using 
Eclipse Maven plugin?


When I tried to build after following the steps of the tutorial and 
adding my own java and template files, it failed on the war file making. 
Here are the beginning line of the error dump:


Diagnosis: Error configuring: 
org.apache.maven.plugins:maven-deploy-plugin. Reason: Unable to parse 
the created DOM for plugin configuration

FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionException: Error 
configuring: org.apache.maven.plugins:maven-deploy-plugin. Reason: 
Unable to parse the created DOM for plugin configuration
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:563)



I haven't changed the POM file from what was made by following the 
tutorial. One error I surrounded when building was a missing dependency 
of the plexus-utils:jar:1.4.1-SNAPSHOT. After that, the above appeared 
when re-running the maven build.


Any hint would be greatly appreciated! Thanks!

celia


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven jetty problem

2007-03-26 Thread Celia Mou

Hi,

What i did was: After running the first maven command, go into the 
project directory of the project just created, then do


"mvn jetty:run"

That worked. It wouldn't work if you're outside the project directory.

Hope it helps.

celia


Christoph Jaeger wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

I tried to follow the steps described on

http://tapestry.apache.org/tapestry5/quickstart/

to get a first small tapestry application running.

The first maven command worked without problems (mvn archetype:create
...), at least it told me that everything is ok.

But when I try to do "mvn jetty:run", I get the following error message:

...
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-war-plugin

Reason: Error getting POM for
'org.apache.maven.plugins:maven-war-plugin' from the repository: Failed
to resolve artifact, possibly due to a repository list that is not
appropriately equipped for this artifact's metadata.
  org.apache.maven.plugins:maven-war-plugin:pom:2.0.3-SNAPSHOT

from the specified remote repositories:
  apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
  howardlewisship.com (http://howardlewisship.com/repository),
  central (http://repo1.maven.org/maven2)

...

What did I do wrong here? This is my first contact with maven, so I
don't have any experience with it (and hoped that I don't have to really
understand how it works).

Another thing, I found some typos in the Tapestry 5 tutorial, and
thought it would be nice if I contribute a bit and help improve things.
Where can I report this to?

Best Regards,

Christoph Jäger
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGAlIpa8IX5asoPlERAtCYAKC89Y21rRq3wiVcyUpVn8zYkMXL9wCfSoKk
0CYtRD2nBmS0FoU7l3QVP+4=
=/JKT
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



maven problem following Tapestry 5 Turorial

2007-03-20 Thread Celia Mou

Hi everyone,

i've encountered a problem trying to follow the Tapestry 5 Turorial. 
When executing


mvn jetty:run

there is a "BUILD ERROR" and it says:

[INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not 
exist or no valid version could be found


i wondered perhaps it's because the plugin is not there. i went to 
Maven's site and couldn't find a list of plugins from this link they 
provide: http://mirrors.ibiblio.org/pub/mirrors/maven2/plugins/


Does anyone have clues on how to solve this problem?

Thanks a lot!

celia

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



compilation problem with Tapestry 5 tutorial files

2007-03-20 Thread Celia Mou

Hi all,

On attempting to build the hilo project in the Tapestry 5 tutorial, i 
got a compilation error from Maven with these lines:

-
D:\projects\hilo\src\main\java\org\example\hilo\services\AppModule.java:[8,43] 
cannot find symbol symbol  : class Contribute

location: package org.apache.tapestry.ioc.annotations
-

And indeed the class org.apache.tapestry.ioc.annotations.Contribute is 
not there in the local repository. i guess the files have just run out 
of synce.


It's also true with another class in the same package: Id

Any ideas?

Thanks a lot!

celia

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tapestry 5 for production?

2007-03-19 Thread Celia Mou

Greeting, everyone!

I know Tapestry 5 only has preview releases at the moment.

I'm excited to see the auto-reloading feature, which is the main reason 
why I'm considering it for the current project. Without this, though 
I've done 2 projects with Tapestry 3, I would still tend to drop it 
because it's just unreasonable having to restart the server for a simple 
HTML change (in production environment, with Apache as web server).


Has anyone played enough with Tapestry 5 and have an idea about these:

1. How fast can the app be up at server restart?

2. Is it smooth working with Tomcat?

3. Basically, is there any major issue that would prevent one from using 
it for production?


My project is due to finish within a month or two, so I actually need to 
make a decision rather quickly, say within a few days. If I can't use 
Tapestry 5, I might consider JSF.


Any suggestion or ideas will be extremely helpful!  Thanks a lot!

Celia

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can Tapestry 5 be used for production?

2007-03-16 Thread Celia Mou

Greeting, everyone!

I know Tapestry 5 only has preview releases at the moment.

I'm excited to see the auto-reloading feature, which is the main reason 
why I'm considering it for the current project. Without this, though 
I've done 2 projects with Tapestry 3, I would still tend to drop it 
because it's just unreasonable having to restart the server for a simple 
HTML change (in production environment, with Apache as web server).


Has anyone played enough with Tapestry 5 and have an idea about these:

1. How fast can the app be up at server restart?

2. Is it smooth working with Tomcat?

3. Basically, is there any major issue that would prevent one from using 
it for production?


My project is due to finish within a month or two, so I actually need to 
make a decision rather quickly, say within a few days. If I can't use 
Tapestry 5, I might consider JSF.


Any suggestion or ideas will be extremely helpful!  Thanks a lot!

Celia

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Can Tapestry 5 be used for production?

2007-03-15 Thread Celia Mou

Greeting, everyone!

I know Tapestry 5 only has preview releases at the moment.

I'm excited to see the auto-reloading feature, which is the main reason 
why I'm considering it for the current project. Without this, though 
I've done 2 projects with Tapestry 3, I would still tend to drop it 
because it's just unreasonable having to restart the server for a simple 
HTML change (in production environment, with Apache as web server).


Has anyone played enough with Tapestry 5 and have an idea about these:

1. How fast can the app be up at server restart?

2. Is it smooth working with Tomcat?

3. Basically, is there any major issue that would prevent one from using 
it for production?


My project is due to finish within a month or two, so I actually need to 
make a decision rather quickly, say within a few days. If I can't use 
Tapestry 5, I might consider JSF.


Any suggestion or ideas will be extremely helpful!  Thanks a lot!

Celia

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to get the session id

2006-08-10 Thread Celia Mou

Hi,

My solution to this is to inject the session on the .page file:


Then in the java file of the page, get the session. From that you can 
get the session ID:


* Declare in the class:
   public abstract WebRequest getWebRequest();
* Then where you need it:
   WebSession sess = getWebRequest().getSession(true);

Does anyone have a better solution?

Cheers,
celia


Tapestry User List wrote:

Hello,

I need to retrieve the session ID (JSESSIONID) from IRequestCycle. Is 
there

way to do that ?

Would be nice if someone have the solution of this non-urgent problem.

Cheers,

Didier




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: This would be a handy tool

2006-08-03 Thread Celia Mou

Hi,

I also think it's a problem having to wait for server reloads or 
complete restarts. Even though Tapestry provides the reset function for 
template changes, it somehow doesn't work in my combination of Apache 
and Tomcat with Tomcat connector. And also since I don't want to have 
the tomcat manager running on live, I always have to shutdown and start 
the server again for every change, even the simplest changes such as an 
image source reference in the HTML.


I'd like to hear opinions and ideas/tips on this issue.

Thanks, everyone!

celia


Sam Gendler wrote:

I don't know about you folks, but the permgen space thing causes me to
reload my app server all the time (the time lost waiting for
startup/shutdown is matched by the time gained by being able to enable
caching, i think), and spring/hivemind initialization takes a fair
while these days.

One of the things I've noticed about Tapestry is that I spend an
enormous amount of my time tracking down silly little template syntax
errors which cause runtime exceptions, and this is made worse by the
turnaround time of the compile/deploy/test cycle.  I don't know if it
is possible, but it sure would be handy to have a utility which would
parse a template, generate a java source file with a single method
that calls every method that will be called by the template.  I could
compile against it and actually let the compiler do its job, instead
of having to wait for the runtime system to discover a missing method
(or rather, a typo in an ognl string).

Just a thought.  Unfortunately, it seems like the kind of thing that
wouldn't be terribly high on the developer priorities, but it sure
would ease my life.

--sam

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]