Re: Tapestry-Upload for TP5.0.4

2007-06-24 Thread Otho

Hi Allen,
maybe you should upgrade to 5.0.5 and add a dependency to tapestry-upload to
your pom. Works like a charm. I don't know if it does with 5.0.4 though.
http://tapestry.apache.org/tapestry5/tapestry-upload/
Regards,
Otho

2007/6/24, Allen Guo [EMAIL PROTECTED]:


Hi All,
I download the tapeestry-upload component source code into my project.
And add the @SubModule(UploadModule.class) to my AppModule.java . then
use 'upload' component in my project.
It works fine.

But if I package them to a .jar file , system always tell me no
component 'upload' be found.
I test them again and again. the same error occurr.

Could anyone give me an idea?

Thanks in advanced
Allen Guo

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




Tapestry 5 and EJB 3 : sample code or tutorial

2007-06-24 Thread Dwi Ardi Irawan

Hi all,

does anyone have a sample tutorial or code (just simply code to 
introduce me to use EJB 3 in Tapestry)

please PM me...


thnx u

dwi ardi irawan

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



Re: Design question

2007-06-24 Thread Christian Dutaret

Marcos,

The concept of a presentation object model has a strong smell of bad design:
double hierarchy maintenance and transformation methods from/to both models
which are very error-prone. If you forget to assign a field in those
transformation methods, you can spend hours searching for the descrepancy
between your model data.
Reminds me of that bloated DTO concept with the first generation of EJB, or
the transformations between business model and ActionForms in Struts 1. Very
time-consuming and error-prone, without any added value.
How often does your business model changes without affecting the
presentation layer? Is it worth all that pain?
The business model I work on is a relatively complex model which is designed
after the web application requirements. What I do is simply use persistent
objects in the presentation layer, and traverse objects through ognl
expressions to keep the code as simple as possible. If the model evolves, I
have some web non-regression tests that check for the correctness of the
ognl expressions. That has worked fine for me so far.
In some other situations (say a legacy datawarehouse that is used beyond
your application and holds some fancy data), an additional intermiedary
model could make more sense. Still, I would try to keep it at the service
level, and use the data returned by the service layer in the presentation
layer.

My 2 cents...
Ch.

2007/6/23, Marcos Chicote [EMAIL PROTECTED]:


Thanks Ulrich!
I was also considering that.

Whath do you think about BO in the presentation layer?

I think the correct solution would be to use Presentation Object and do
the
getDepartamentChief().getName() there. I believe POs should not know about
the presentation layer, so my solution would be to use departament.chiefin
the Insert componente, but Departamente property in Tapestry's java would
actually be something of class DepartamentePO and when I create the PO I
do
the getDepartamentChief().getName(). What do you think about that?

Thanks!

On 6/23/07, Ulrich Stärk [EMAIL PROTECTED] wrote:

 Marcos,

 You should also consider that when traversing the object tree with ognl
 you might run into runtime
 exceptions when you change for example the name of a getter and forgot
to
 adjust your ognl
 expression. If you did that navigation in the page class the compiler
 would warn you of a
 non-existing getter at compile time. On the other hand doing it with an
 ognl expression right in
 your html template or page specification will save you some writing.

 Uli

 Marcos Chicote schrieb:
  Thanks Marcus!
  I know Tapestry will implement the method for me, and that both ways
 work.
  The question is which of those would you use? Is anyone better from a
  design
  point of view than the otherone? Are they the same?
 
  The problem is that if, for example, some day Users BO is no longer of
 use,
  and the class is deleted, compilation problems would show in the .java
 (if
  we are using alternative 2) and it would be simpler to correct, but
 nothing
  would show the problem if alternative 1 is used.
 
  On 6/23/07, Marcus [EMAIL PROTECTED] wrote:
 
 
 

http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Insert.html
 
 
  or
 
  http://tapestry.apache.org/tapestry4  in menu Fremawork - Components
 
 


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





Re: Design question

2007-06-24 Thread #Cyrille37#

Hello,

Christian Dutaret a écrit :

...
I have some web non-regression tests that check for the correctness of 
the

ognl expressions. That has worked fine for me so far.

Please, can you tell us how do you implement web non-regression tests ?
Which tools ? Which methods ?

Thanks a lot
cyrille


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



about Maven, Java Applet and Tapestry's pages...

2007-06-24 Thread #Cyrille37#

Hello
Sorry to be a little out of the Tapestry subject but I would like to get 
some knowledge from you.


I've got a Java applet which is running in a Tapestry page. Today I'm 
using Ant build to build the project, which is compiling Tapestry 
application and packaging the Applet in a Jar file. Tapestry application 
and Java applet are in the same Eclipse project.


Now I'm starting to use Maven, which seems to be very used now days.

Do you have a idea on how to make Maven compiling Tapestry's pages and 
classes and packaging the Applet in its own jar file ?


Thanks a lot for your feedbacks
cyrille.


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



Re: which version of tapestry-simple:5.0.?

2007-06-24 Thread #Cyrille37#

#Cyrille37# a écrit :

Hello

I would like to start with Tapestry5 and looking to the maven's 
archetype.

In the page
http://tapestry.apache.org/tapestry5/tapestry-simple/
it is talking about tapestry-simple:5.0.2.

Is this number version is relative to Tapestry5 version ? Should I 
prefer tapestry-simple:5.0.5 ?


Please, could you give me some explanation ?
thanks
cyrille

When following instructions of page
http://tapestry.apache.org/tapestry5/tapestry-simple/

mvn archetype:create 
-DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository 
-DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart 
-DarchetypeVersion=5.0.2 -DgroupId=org.example -DartifactId=myapp 
-DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT


Maven could not find the archetype :

[INFO] We are using command line specified remote repositories: 
http://people.apache.org/repo/m2-snapshot-repository
Downloading: 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/quickstart/5.0.2/quickstart-5.0.2.jar
[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Error creating from archetype

Embedded error: Archetype does not exist: Unable to download the 
artifact from any repository


Try downloading the file manually from the project website.

Then, install it using the command:
   mvn install:install-file -DgroupId=org.apache.tapestry 
-DartifactId=quickstart \

   -Dversion=5.0.2 -Dpackaging=jar -Dfile=/path/to/file

 org.apache.tapestry:quickstart:jar:5.0.2

from the specified remote repositories:
 id0 (http://people.apache.org/repo/m2-snapshot-repository)

Any help ?
Cyrille.


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



which version of tapestry-simple:5.0.?

2007-06-24 Thread #Cyrille37#

Hello

I would like to start with Tapestry5 and looking to the maven's archetype.
In the page
http://tapestry.apache.org/tapestry5/tapestry-simple/
it is talking about tapestry-simple:5.0.2.

Is this number version is relative to Tapestry5 version ? Should I 
prefer tapestry-simple:5.0.5 ?


Please, could you give me some explanation ?
thanks
cyrille

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



Re: which version of tapestry-simple:5.0.?

2007-06-24 Thread #Cyrille37#

#Cyrille37# a écrit :

#Cyrille37# a écrit :

Hello

I would like to start with Tapestry5 and looking to the maven's 
archetype.

In the page
http://tapestry.apache.org/tapestry5/tapestry-simple/
it is talking about tapestry-simple:5.0.2.

Is this number version is relative to Tapestry5 version ? Should I 
prefer tapestry-simple:5.0.5 ?


Please, could you give me some explanation ?
thanks
cyrille

When following instructions of page
http://tapestry.apache.org/tapestry5/tapestry-simple/

mvn archetype:create 
-DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository 
-DarchetypeGroupId=org.apache.tapestry 
-DarchetypeArtifactId=quickstart -DarchetypeVersion=5.0.2 
-DgroupId=org.example -DartifactId=myapp 
-DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT


Maven could not find the archetype :

[INFO] We are using command line specified remote repositories: 
http://people.apache.org/repo/m2-snapshot-repository
Downloading: 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/quickstart/5.0.2/quickstart-5.0.2.jar 

[INFO] 


[ERROR] BUILD ERROR
[INFO] 


[INFO] Error creating from archetype

Embedded error: Archetype does not exist: Unable to download the 
artifact from any repository


Try downloading the file manually from the project website.

Then, install it using the command:
   mvn install:install-file -DgroupId=org.apache.tapestry 
-DartifactId=quickstart \

   -Dversion=5.0.2 -Dpackaging=jar -Dfile=/path/to/file

 org.apache.tapestry:quickstart:jar:5.0.2

from the specified remote repositories:
 id0 (http://people.apache.org/repo/m2-snapshot-repository)

Any help ?
Cyrille.

Ok, I've found the right archetype version :
   -DarchetypeVersion=5.0.3-SNAPSHOT
So Maven can create the projet.

Then I go in the project folder and type mvn jetty:run and gt those errors :

[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] 


[INFO] Building my-app Tapestry 5 Application
[INFO]task-segment: [jetty:run]
[INFO] 


[INFO] Preparing jetty:run
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile]
[INFO] Compiling 2 source files to 
D:\evote.java\projet\my-app\target\classes
[INFO] 


[ERROR] BUILD FAILURE
[INFO] 


[INFO] Compilation failure

D:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[8,42] 
cannot find symbol

symbol  : class Contribute
location: package org.apache.tapestry.ioc.annotations

D:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[9,42] 
cannot find symbol

symbol  : class Id
location: package org.apache.tapestry.ioc.annotations

D:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[20,1] 
cannot find symbol

symbol: class Id
@Id(app)

D:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[23,5] 
cannot find symbol

symbol  : class Contribute
location: class org.example.myapp.services.AppModule

D:\my-app\src\main\java\org\example\myapp\services\AppModule.java:[73,5] 
cannot find symbol

symbol  : class Contribute
location: class org.example.myapp.services.AppModule

[INFO] 


[INFO] For more information, run Maven with the -e switch
[INFO] 


[INFO] Total time: 2 seconds
[INFO] Finished at: Sun Jun 24 15:20:53 CEST 2007
[INFO] Final Memory: 5M/10M
[INFO] 



I think I just have to read the pom.xml to add some references ... I'll 
see ...


cyrille.


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



Re: Design question

2007-06-24 Thread Marcos Chicote

i see what you mean Christian.
In this design if you have to show a Date, how do you convert it? I mean, if
you let Tapestry do date.toString() this will probably show a lot of things
you don't want. Do you use a property in the java file where you put
something like dateToString(yourDate) that does the parsing? Same question
for Double's or things that don't have a nice toString.

Thanks for your opinion!

On 6/24/07, Christian Dutaret [EMAIL PROTECTED] wrote:


Marcos,

The concept of a presentation object model has a strong smell of bad
design:
double hierarchy maintenance and transformation methods from/to both
models
which are very error-prone. If you forget to assign a field in those
transformation methods, you can spend hours searching for the descrepancy
between your model data.
Reminds me of that bloated DTO concept with the first generation of EJB,
or
the transformations between business model and ActionForms in Struts 1.
Very
time-consuming and error-prone, without any added value.
How often does your business model changes without affecting the
presentation layer? Is it worth all that pain?
The business model I work on is a relatively complex model which is
designed
after the web application requirements. What I do is simply use persistent
objects in the presentation layer, and traverse objects through ognl
expressions to keep the code as simple as possible. If the model evolves,
I
have some web non-regression tests that check for the correctness of the
ognl expressions. That has worked fine for me so far.
In some other situations (say a legacy datawarehouse that is used beyond
your application and holds some fancy data), an additional intermiedary
model could make more sense. Still, I would try to keep it at the service
level, and use the data returned by the service layer in the presentation
layer.

My 2 cents...
Ch.




Re: Design question

2007-06-24 Thread Ulrich Stärk
Use the format parameter of the insert component. You can supply an 
insert component that displays a Date object with a custom 
java.text.DateFormat to display the date the way you want.


Uli

Marcos Chicote schrieb:

i see what you mean Christian.
In this design if you have to show a Date, how do you convert it? I 
mean, if

you let Tapestry do date.toString() this will probably show a lot of things
you don't want. Do you use a property in the java file where you put
something like dateToString(yourDate) that does the parsing? Same question
for Double's or things that don't have a nice toString.

Thanks for your opinion!

On 6/24/07, Christian Dutaret [EMAIL PROTECTED] wrote:


Marcos,

The concept of a presentation object model has a strong smell of bad
design:
double hierarchy maintenance and transformation methods from/to both
models
which are very error-prone. If you forget to assign a field in those
transformation methods, you can spend hours searching for the descrepancy
between your model data.
Reminds me of that bloated DTO concept with the first generation of EJB,
or
the transformations between business model and ActionForms in Struts 1.
Very
time-consuming and error-prone, without any added value.
How often does your business model changes without affecting the
presentation layer? Is it worth all that pain?
The business model I work on is a relatively complex model which is
designed
after the web application requirements. What I do is simply use 
persistent

objects in the presentation layer, and traverse objects through ognl
expressions to keep the code as simple as possible. If the model evolves,
I
have some web non-regression tests that check for the correctness of the
ognl expressions. That has worked fine for me so far.
In some other situations (say a legacy datawarehouse that is used beyond
your application and holds some fancy data), an additional intermiedary
model could make more sense. Still, I would try to keep it at the service
level, and use the data returned by the service layer in the presentation
layer.

My 2 cents...
Ch.







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



about tapestry-archetype 4.1.2-SNAPSHOT

2007-06-24 Thread #Cyrille37#

Hello
to make tapestry-archetype 4.1.2-SNAPSHOT running
I add to change the jetty plugin reference :
   artifactIdmaven-jetty6-plugin/artifactId
   version6.0.0beta17/version
to
   artifactIdmaven-jetty-plugin/artifactId
   version6.0-SNAPSHOT/version

cyrille.
Ps: tapestry-archetype 4.1.2-SNAPSHOT found at 
http://people.apache.org/repo/m2-snapshot-repository



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



Re: Design question

2007-06-24 Thread Marcos Chicote

But doesn't that reduce code resusability?

I mean if tomorrow I have to migrate the app to Swing, i have to reformat
everything.

On 6/24/07, Ulrich Stärk [EMAIL PROTECTED] wrote:


Use the format parameter of the insert component. You can supply an
insert component that displays a Date object with a custom
java.text.DateFormat to display the date the way you want.

Uli

Marcos Chicote schrieb:
 i see what you mean Christian.
 In this design if you have to show a Date, how do you convert it? I
 mean, if
 you let Tapestry do date.toString() this will probably show a lot of
things
 you don't want. Do you use a property in the java file where you put
 something like dateToString(yourDate) that does the parsing? Same
question
 for Double's or things that don't have a nice toString.

 Thanks for your opinion!

 On 6/24/07, Christian Dutaret [EMAIL PROTECTED] wrote:

 Marcos,

 The concept of a presentation object model has a strong smell of bad
 design:
 double hierarchy maintenance and transformation methods from/to both
 models
 which are very error-prone. If you forget to assign a field in those
 transformation methods, you can spend hours searching for the
descrepancy
 between your model data.
 Reminds me of that bloated DTO concept with the first generation of
EJB,
 or
 the transformations between business model and ActionForms in Struts 1.
 Very
 time-consuming and error-prone, without any added value.
 How often does your business model changes without affecting the
 presentation layer? Is it worth all that pain?
 The business model I work on is a relatively complex model which is
 designed
 after the web application requirements. What I do is simply use
 persistent
 objects in the presentation layer, and traverse objects through ognl
 expressions to keep the code as simple as possible. If the model
evolves,
 I
 have some web non-regression tests that check for the correctness of
the
 ognl expressions. That has worked fine for me so far.
 In some other situations (say a legacy datawarehouse that is used
beyond
 your application and holds some fancy data), an additional intermiedary
 model could make more sense. Still, I would try to keep it at the
service
 level, and use the data returned by the service layer in the
presentation
 layer.

 My 2 cents...
 Ch.





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




Re: Design question

2007-06-24 Thread Jesse Kuhnert

I think you're going to have a lot more trouble with migration from a web
application to a desktop application than just formatting

I'd focus on making your core functionality separate enough as standalone
services and use that as the basis for migrate-able code and not focus in on
making your presentation code multi purposed.

The two technologies are completely different and have completely different
UI design/interaction strategies to contend with.  Use each technology to
its fullest potential and you'll have a better application in the long run.
(assuming making the best experience for your application users that you
possibly can is your end goal)

On 6/24/07, Marcos Chicote [EMAIL PROTECTED] wrote:


But doesn't that reduce code resusability?

I mean if tomorrow I have to migrate the app to Swing, i have to reformat
everything.

On 6/24/07, Ulrich Stärk [EMAIL PROTECTED] wrote:

 Use the format parameter of the insert component. You can supply an
 insert component that displays a Date object with a custom
 java.text.DateFormat to display the date the way you want.

 Uli

 Marcos Chicote schrieb:
  i see what you mean Christian.
  In this design if you have to show a Date, how do you convert it? I
  mean, if
  you let Tapestry do date.toString() this will probably show a lot of
 things
  you don't want. Do you use a property in the java file where you put
  something like dateToString(yourDate) that does the parsing? Same
 question
  for Double's or things that don't have a nice toString.
 
  Thanks for your opinion!
 
  On 6/24/07, Christian Dutaret [EMAIL PROTECTED] wrote:
 
  Marcos,
 
  The concept of a presentation object model has a strong smell of bad
  design:
  double hierarchy maintenance and transformation methods from/to both
  models
  which are very error-prone. If you forget to assign a field in those
  transformation methods, you can spend hours searching for the
 descrepancy
  between your model data.
  Reminds me of that bloated DTO concept with the first generation of
 EJB,
  or
  the transformations between business model and ActionForms in Struts
1.
  Very
  time-consuming and error-prone, without any added value.
  How often does your business model changes without affecting the
  presentation layer? Is it worth all that pain?
  The business model I work on is a relatively complex model which is
  designed
  after the web application requirements. What I do is simply use
  persistent
  objects in the presentation layer, and traverse objects through ognl
  expressions to keep the code as simple as possible. If the model
 evolves,
  I
  have some web non-regression tests that check for the correctness of
 the
  ognl expressions. That has worked fine for me so far.
  In some other situations (say a legacy datawarehouse that is used
 beyond
  your application and holds some fancy data), an additional
intermiedary
  model could make more sense. Still, I would try to keep it at the
 service
  level, and use the data returned by the service layer in the
 presentation
  layer.
 
  My 2 cents...
  Ch.
 
 
 


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







--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


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: Design question

2007-06-24 Thread Marcos Chicote

Thanks Jesse.

I know that I would have more trouble than formatting if I migrate from a
web app to a desktop app, but I would like to minimize that effort.
However there's a 0.001 probability this app will ever be migrated, I was
just asking theoretically. (I could have said Struts instead of Swing for a
more real example)

I agree with you that the I should put most of my effort in making core
functionality the most separate posible.

Something that will probably happen is that after the main development part
of the project there will be a long term maintainance stage that I most
definetily will not be doing, so I would like that the person that comes
after me find the cleanest design posible and that modifications or bug
corrections can be done with the minimal effort possible.

Thanks again.

Marcos

On 6/24/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


I think you're going to have a lot more trouble with migration from a web
application to a desktop application than just formatting

I'd focus on making your core functionality separate enough as standalone
services and use that as the basis for migrate-able code and not focus in
on
making your presentation code multi purposed.

The two technologies are completely different and have completely
different
UI design/interaction strategies to contend with.  Use each technology to
its fullest potential and you'll have a better application in the long
run.
(assuming making the best experience for your application users that you
possibly can is your end goal)

On 6/24/07, Marcos Chicote [EMAIL PROTECTED] wrote:

 But doesn't that reduce code resusability?

 I mean if tomorrow I have to migrate the app to Swing, i have to
reformat
 everything.

 On 6/24/07, Ulrich Stärk [EMAIL PROTECTED] wrote:
 
  Use the format parameter of the insert component. You can supply an
  insert component that displays a Date object with a custom
  java.text.DateFormat to display the date the way you want.
 
  Uli
 
  Marcos Chicote schrieb:
   i see what you mean Christian.
   In this design if you have to show a Date, how do you convert it? I
   mean, if
   you let Tapestry do date.toString() this will probably show a lot of
  things
   you don't want. Do you use a property in the java file where you put
   something like dateToString(yourDate) that does the parsing? Same
  question
   for Double's or things that don't have a nice toString.
  
   Thanks for your opinion!
  
   On 6/24/07, Christian Dutaret [EMAIL PROTECTED] wrote:
  
   Marcos,
  
   The concept of a presentation object model has a strong smell of
bad
   design:
   double hierarchy maintenance and transformation methods from/to
both
   models
   which are very error-prone. If you forget to assign a field in
those
   transformation methods, you can spend hours searching for the
  descrepancy
   between your model data.
   Reminds me of that bloated DTO concept with the first generation of
  EJB,
   or
   the transformations between business model and ActionForms in
Struts
 1.
   Very
   time-consuming and error-prone, without any added value.
   How often does your business model changes without affecting the
   presentation layer? Is it worth all that pain?
   The business model I work on is a relatively complex model which is
   designed
   after the web application requirements. What I do is simply use
   persistent
   objects in the presentation layer, and traverse objects through
ognl
   expressions to keep the code as simple as possible. If the model
  evolves,
   I
   have some web non-regression tests that check for the correctness
of
  the
   ognl expressions. That has worked fine for me so far.
   In some other situations (say a legacy datawarehouse that is used
  beyond
   your application and holds some fancy data), an additional
 intermiedary
   model could make more sense. Still, I would try to keep it at the
  service
   level, and use the data returned by the service layer in the
  presentation
   layer.
  
   My 2 cents...
   Ch.
  
  
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com



Asset Location

2007-06-24 Thread Manie

Hi,

Is there a way to specify an alternative location for assets, as is the case
with the html templates.
At the moment, all my html templates reside under WEB-INF, and I would like
to add my assets
under WEB-INF/assets/images/... and WEB-INF/assets/css, etc.

Thanks in advance
Manie
-- 
View this message in context: 
http://www.nabble.com/Asset-Location-tf3973227.html#a11278096
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Can someone tell me how to make donations to Tapestry

2007-06-24 Thread Howard Lewis Ship

The best way to contribute is to use the software, especially the
snapshots, and provide feedback and PATCHES.

The second best way to contribute is to evangelize Tapestry; talk to
your local Java Users Group, or blog about your (hopefully positive)
experiences.

Lastly, and there is precedent, if you want to fund the development of
an aspect of Tapestry, that's a possibility, please contact myself or
another member of the team.

On 6/24/07, Celia Mou [EMAIL PROTECTED] wrote:

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]





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



T5: Date Picker component

2007-06-24 Thread Joshua Jackson

Dear all,

Will we have date picker component bundled with T5 in the near future?
I can't see this component yet available on the latest 5.0.5-SNAPSHOT.
I must say that date picker is another essential component for today's
apps.

Thanks in advance.

--
Let's create a highly maintainable and efficient code

YM!: thejavafreak
Blog: http://www.nagasakti.or.id/roller/joshua/

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



Re: which version of tapestry-simple:5.0.?

2007-06-24 Thread Steven Coco
Hello.

Executing the command you gave, without the repository flag:

-DremoteRepositories=...

Works for me. The Tapestry archetype is in the main repository.

When building the app, you will need the snapshot repositories -- you'll need 
whichever repositories are added to the POM by the archetype. This is because 
Tapestry itself is in the snapshot repositories.

Hope that helps.


On Sun June 24 2007 9:13:55 am #Cyrille37# wrote:
 #Cyrille37# a écrit :
  Hello
 
  I would like to start with Tapestry5 and looking to the maven's 
  archetype.
  In the page
  http://tapestry.apache.org/tapestry5/tapestry-simple/
  it is talking about tapestry-simple:5.0.2.
 
  Is this number version is relative to Tapestry5 version ? Should I 
  prefer tapestry-simple:5.0.5 ?
 
  Please, could you give me some explanation ?
  thanks
  cyrille
 When following instructions of page
 http://tapestry.apache.org/tapestry5/tapestry-simple/
 
 mvn archetype:create 
 -DremoteRepositories=http://people.apache.org/repo/m2-snapshot-repository 
 -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart 
 -DarchetypeVersion=5.0.2 -DgroupId=org.example -DartifactId=myapp 
 -DpackageName=org.example.myapp -Dversion=1.0.0-SNAPSHOT
 
 Maven could not find the archetype :
 
 [INFO] We are using command line specified remote repositories: 
 http://people.apache.org/repo/m2-snapshot-repository
 Downloading: 
 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/tapestry/quickstart/5.0.2/quickstart-5.0.2.jar
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Error creating from archetype
 
 Embedded error: Archetype does not exist: Unable to download the 
 artifact from any repository
 
 Try downloading the file manually from the project website.
 
 Then, install it using the command:
 mvn install:install-file -DgroupId=org.apache.tapestry 
 -DartifactId=quickstart \
 -Dversion=5.0.2 -Dpackaging=jar -Dfile=/path/to/file
 
   org.apache.tapestry:quickstart:jar:5.0.2
 
 from the specified remote repositories:
   id0 (http://people.apache.org/repo/m2-snapshot-repository)
 
 Any help ?
 Cyrille.
 
 
 -
 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]



Re: about Maven, Java Applet and Tapestry's pages...

2007-06-24 Thread Steven Coco
Hi.

You should create a Parent project, with 2 modules: one for the WebApp, and 
another for the Applet. They will build into their own artifacts -- a War for 
the WebApp, and a Jar for the Applet -- in your repositories, but they share 
the parent project's attributes; and they go into folders in the parent 
projet directory (by convention...).

Then you create an Assembly, which instructs Maven to package the Jar with the 
WebApp, and you can deploy this as a single unit.

This should explain most of it:

http://maven.apache.org/guides/getting-started/index.html#how_do_i_build_more_than_one_project_at_once

Ciao.


On Sun June 24 2007 8:58:12 am #Cyrille37# wrote:
 Hello
 Sorry to be a little out of the Tapestry subject but I would like to get 
 some knowledge from you.
 
 I've got a Java applet which is running in a Tapestry page. Today I'm 
 using Ant build to build the project, which is compiling Tapestry 
 application and packaging the Applet in a Jar file. Tapestry application 
 and Java applet are in the same Eclipse project.
 
 Now I'm starting to use Maven, which seems to be very used now days.
 
 Do you have a idea on how to make Maven compiling Tapestry's pages and 
 classes and packaging the Applet in its own jar file ?
 
 Thanks a lot for your feedbacks
 cyrille.
 
 
 -
 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]



Re: T5 - syntax for css background images?

2007-06-24 Thread Jiri Mares

Yes ... maybe component, maybe page to generate whole css file referenced in 
HTML pages ...

Jirka

Daniel Jue napsal(a):
 
 I think I see where this is going...  I guess you could have a
 component that plugs in raw text (the text being inline CSS code, or a
 link to a calculated css) into the html, but that seems like a hack.
 (Although you could do some pretty cool things like vary the color of
 things over the day, like the PS3 menu)
 
 On 6/22/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:
 It should be possible, there are meta-data settings on pages that
 control the response content type. However, there's a couple of road
 blocks in the current code base, such as the fact that there's no
 outer-wrapper element for HTML (an template root element that does not
 render an element into the output stream), and no way to remap the
 file extension.

 On 6/22/07, Jiri Mares [EMAIL PROTECTED] wrote:
 
  Hi ...
 
  or can I create page that is going to serve CSS instead of HTML??
 
  Jirka
 
  Howard Lewis Ship napsal(a):
  
   You can use expansions inside a style block, just as you can
   elsewhere in an HTML template.  However, you have to eliminate the
   HTML comments when you do so, or the expansions will not be
 processed:
  
   style type=text/css
  
   body {
  
 background-color: #2D374A;
  
 background-image: url(${someBackground});
  
   }
  
   .MainTable {
  
 background-color: #B5BFD2;
  
 background-image: url(${someBackground});
  
   }
  
 /style
  
   On 6/20/07, Bruce Petro [EMAIL PROTECTED] wrote:
   Question:  I've learned so far, to display an image ... you do
 something
   like this:
  
   SomePage.java
  
   @Inject
  
   @Path(./art_logo.png)
  
 private Asset _someIcon;
  
   and then SomePage.html you do
  
   img src=${someIcon}/
  
  
  
   BUT --- what's the syntax to use these in css EG: background images?
  
  
  
   style type=text/css
  
 !--
  
 body {
  
   background-color: #2D374A;
  
   background-image: url(someBackground);
  
 }
  
 .MainTable {
  
   background-color: #B5BFD2;
  
   background-image: url(someBackground);
  
 }
  
 --
  
   /style
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 -- 
 Howard M. Lewis Ship
 TWD Consulting, Inc.
 Independent J2EE / Open-Source Java Consultant
 Creator and PMC Chair, Apache Tapestry
 Creator, Apache HiveMind

 Professional Tapestry training, mentoring, support
 and project work.  http://howardlewisship.com

 -
 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]

-- 
Jiří Mareš (mailto:[EMAIL PROTECTED])
ČSAD SVT Praha, s.r.o. (http://www.svt.cz)
Czech Republic

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



Re: T5 - syntax for css background images?

2007-06-24 Thread Jiri Mares

And do you consider it as interesting to implement it?

Jirka

Howard Lewis Ship napsal(a):
 
 It should be possible, there are meta-data settings on pages that
 control the response content type. However, there's a couple of road
 blocks in the current code base, such as the fact that there's no
 outer-wrapper element for HTML (an template root element that does not
 render an element into the output stream), and no way to remap the
 file extension.
 
 On 6/22/07, Jiri Mares [EMAIL PROTECTED] wrote:

 Hi ...

 or can I create page that is going to serve CSS instead of HTML??

 Jirka

 Howard Lewis Ship napsal(a):
 
  You can use expansions inside a style block, just as you can
  elsewhere in an HTML template.  However, you have to eliminate the
  HTML comments when you do so, or the expansions will not be processed:
 
  style type=text/css
 
  body {
 
background-color: #2D374A;
 
background-image: url(${someBackground});
 
  }
 
  .MainTable {
 
background-color: #B5BFD2;
 
background-image: url(${someBackground});
 
  }
 
/style
 
  On 6/20/07, Bruce Petro [EMAIL PROTECTED] wrote:
  Question:  I've learned so far, to display an image ... you do
 something
  like this:
 
  SomePage.java
 
  @Inject
 
  @Path(./art_logo.png)
 
private Asset _someIcon;
 
  and then SomePage.html you do
 
  img src=${someIcon}/
 
 
 
  BUT --- what's the syntax to use these in css EG: background images?
 
 
 
  style type=text/css
 
!--
 
body {
 
  background-color: #2D374A;
 
  background-image: url(someBackground);
 
}
 
.MainTable {
 
  background-color: #B5BFD2;
 
  background-image: url(someBackground);
 
}
 
--
 
  /style


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


 
 

-- 
Jiří Mareš (mailto:[EMAIL PROTECTED])
ČSAD SVT Praha, s.r.o. (http://www.svt.cz)
Czech Republic

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



4.1.2 dojo gregorian.js

2007-06-24 Thread Paul Stanton

Hi,

I've just installed 4.1.2 for the first time and run up my application 
(previously tested under 4.1.1). I did this simply by replacing my 
existing jars with the new versions (I don't use maven) so I've probably 
brought this on myself ;)


I get the following warnings, the files can be found under the parent 
dir (/dojo-0.4.3/src/i18n/calendar/nls), shouldn't dojo look there 
automatically?


2007-06-25 15:24:36,093  WARN Asset:241 - Classpath resource 
'/dojo-0.4.3/src/i18n/calendar/nls/en-au/gregorian.js' does not exist.
2007-06-25 15:24:36,109  WARN Asset:241 - Classpath resource 
'/dojo-0.4.3/src/i18n/calendar/nls/en-au/gregorianExtras.js' does not exist.


Any tips welcome.

Thanks, Paul.



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