AW: DatePicker Validation

2007-03-12 Thread Peter Schröder
hi marcos,

there is no default way in tapestry to validate multiple input fields.

you can do it programmatically in your component with the help of validtion 
delegate.

take a look at this book http://www.agileskills2.org/EWDT/
 

-Ursprüngliche Nachricht-
Von: Marcos Chicote [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 9. März 2007 18:43
An: Tapestry users
Betreff: DatePicker Validation

Hello!

I'm using Tapestry 4.0 to develop a page with 2 DatePickers. I want to
check, in the client, if one of the date's is previous to the other.

Can anybody help me on how to do this??

Do I need to write a function in javascript to parse the date and then
compare? Isn't there any other nicer way? (or maybe somebody already has the
funcion programmed).

Thanks!

Marcos


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



Eclipse is very Slow - What do i have to do be more fast the developing?

2007-03-12 Thread Bruno Mignoni

I am developing with Eclipse + WTP + TomCat 5.5 + Tapestry 4.0.2 .


That was confired using Wiki (link:
http://wiki.apache.org/tapestry/HowToSetupEclipseWtp?highlight=%28Eclipse%29
)

I have Pentium 4 3.40 Ghz + 1 GB Ram and is running correctly.

The developing is very slow, each modification that I do, i need to restart
Tomcat ( 30 s ) to work.

What do i have to do be more fast the developing?

--
__
Bruno Mignoni
[EMAIL PROTECTED]


RE: Eclipse is very Slow - What do i have to do be more fast the developing?

2007-03-12 Thread Kristian Marinkovic
use the jetty plugin; its a small servlet container that starts VERY 
quickly!
my startup times dropped from 15sec to 2sec!!




Bruno Mignoni [EMAIL PROTECTED] 
12.03.2007 13:55
Bitte antworten an
Tapestry users users@tapestry.apache.org


An
Tapestry users users@tapestry.apache.org
Kopie

Thema
Eclipse is very Slow - What do i have to do be more fast the developing?






I am developing with Eclipse + WTP + TomCat 5.5 + Tapestry 4.0.2 .


That was confired using Wiki (link:
http://wiki.apache.org/tapestry/HowToSetupEclipseWtp?highlight=%28Eclipse%29

)

I have Pentium 4 3.40 Ghz + 1 GB Ram and is running correctly.

The developing is very slow, each modification that I do, i need to 
restart
Tomcat ( 30 s ) to work.

What do i have to do be more fast the developing?

-- 
__
Bruno Mignoni
[EMAIL PROTECTED]



Re: Eclipse is very Slow - What do i have to do be more fast the developing?

2007-03-12 Thread Bruno Mignoni

Do you Have a Tutorial to install and configure?

I use Windows XP +  Eclipse + WTP + Tomcat 5.5 + Tapestry 4.0.2.

Jetty and Tomcat works at the same time in my project in Eclipse?

Jetty 5 or Jetty 6 ?

;-)

Bruno Mignoni

On 3/12/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:


use the jetty plugin; its a small servlet container that starts VERY
quickly!
my startup times dropped from 15sec to 2sec!!




Bruno Mignoni [EMAIL PROTECTED]
12.03.2007 13:55
Bitte antworten an
Tapestry users users@tapestry.apache.org


An
Tapestry users users@tapestry.apache.org
Kopie

Thema
Eclipse is very Slow - What do i have to do be more fast the developing?






I am developing with Eclipse + WTP + TomCat 5.5 + Tapestry 4.0.2 .


That was confired using Wiki (link:

http://wiki.apache.org/tapestry/HowToSetupEclipseWtp?highlight=%28Eclipse%29

)

I have Pentium 4 3.40 Ghz + 1 GB Ram and is running correctly.

The developing is very slow, each modification that I do, i need to
restart
Tomcat ( 30 s ) to work.

What do i have to do be more fast the developing?

--
__
Bruno Mignoni
[EMAIL PROTECTED]





--
__
Bruno Mignoni
[EMAIL PROTECTED]


RE: Eclipse is very Slow - What do i have to do be more fast the developing?

2007-03-12 Thread Kolesnikov, Alexander GNI
You don't need to restart Tomcat every time. See the book by Kent Tong
(http://www.agileskills2.org/), chapter 1, for explanations. With WTP
changes in Java code should cause application reload by default, so you
only need to disable pages cahing. You can do this in Tomcat's launch
configuration, Arguments tab.

Hope this helps,

Alexander

-Original Message-
From: Bruno Mignoni [mailto:[EMAIL PROTECTED] 
Sent: 12 March 2007 12:55
To: Tapestry users
Subject: Eclipse is very Slow - What do i have to do be more fast the
developing?


I am developing with Eclipse + WTP + TomCat 5.5 + Tapestry 4.0.2 .


That was confired using Wiki (link:
http://wiki.apache.org/tapestry/HowToSetupEclipseWtp?highlight=%28Eclips
e%29
)

I have Pentium 4 3.40 Ghz + 1 GB Ram and is running correctly.

The developing is very slow, each modification that I do, i need to
restart Tomcat ( 30 s ) to work.

What do i have to do be more fast the developing?

-- 
__
Bruno Mignoni
[EMAIL PROTECTED]

--
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2007 CIGNA
==


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



Re: Why is IE6 freezing? [Solution!]

2007-03-12 Thread Andreas Pardeike

Thanks Martin,

Yes, I was using this for testing. I have now switched back to my  
defaults and

the problem persists.

UPDATE: after E-N-D-L-E-S-S testing, I found the problem:

dojo + tomcat + compression + IE6 - BAD

I commented out


compression=on compressionMinSize=2048
noCompressionUserAgents=gozilla, traviata
compressableMimeType=text/html,text/xml,image/gif


and everything works again.

This took me 5 hours and I can honestly say that I really really  
*hate* IE now

(I knew I hated it before, but I didn't realize how deeply).

Andreas Pardeike

On 9 mar 2007, at 18.52, Martin Strand wrote:

Looks like certain dojo files can't be found, you should see some  
404s in your logs.
You seem to be using two different dojo urls (/assets/dojo/ and /js/ 
dojo/)



script type=text/javascriptdjConfig =  
{isDebug:false,debugContainerId:debug,baseRelativePath:/ 
assets/static/ 
dojo/,preventBackButtonFix:false,parseWidgets:false,locale:en- 
gb} /script


script type=text/javascript src=/js/dojo/dojo.js/script
script type=text/javascript
dojo.registerModulePath(tapestry, /assets/static/tapestry);
/script
script type=text/javascript src=/js/tapestry/core.js/script


Not sure exactly what the problem is but perhaps you just need to  
change the dojoPath parameter on your Shell

http://tapestry.apache.org/tapestry4.1/components/general/shell.html


On Fri, 09 Mar 2007 18:33:20 +0100, Andreas Pardeike [EMAIL PROTECTED]  
wrote:



Hi,

just released our site and now people call in angry telling me that
IE6 freezes on our site. I've tested the site on my local computer
using tomcat and the wonderful Web Project plugin and it works just
fine. When deployed, it does not.

I'm using 4.1.1 and I tried to use the latest dojo.js but it's the
same. Anyone who knows why it's freezing? Interestingly, all other
browsers work fine (although Safari sometimes keeps loading some
elements). The problem can be reproduced when the IE cache is  
cleared.


The site: http://www.fsbutiken.se

Help!
Andreas Pardeike


-
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: Eclipse is very Slow - What do i have to do be more fast the developing?

2007-03-12 Thread Bruno Mignoni

Already did this.

On 3/12/07, Kolesnikov, Alexander GNI [EMAIL PROTECTED]
wrote:


You don't need to restart Tomcat every time. See the book by Kent Tong
(http://www.agileskills2.org/), chapter 1, for explanations. With WTP
changes in Java code should cause application reload by default, so you
only need to disable pages cahing. You can do this in Tomcat's launch
configuration, Arguments tab.

Hope this helps,

Alexander

-Original Message-
From: Bruno Mignoni [mailto:[EMAIL PROTECTED]
Sent: 12 March 2007 12:55
To: Tapestry users
Subject: Eclipse is very Slow - What do i have to do be more fast the
developing?


I am developing with Eclipse + WTP + TomCat 5.5 + Tapestry 4.0.2 .


That was confired using Wiki (link:
http://wiki.apache.org/tapestry/HowToSetupEclipseWtp?highlight=%28Eclips
e%29
)

I have Pentium 4 3.40 Ghz + 1 GB Ram and is running correctly.

The developing is very slow, each modification that I do, i need to
restart Tomcat ( 30 s ) to work.

What do i have to do be more fast the developing?

--
__
Bruno Mignoni
[EMAIL PROTECTED]


--
CONFIDENTIALITY NOTICE: If you have received this email in error, please
immediately notify the sender by e-mail at the address shown.  This email
transmission may contain confidential information.  This information is
intended only for the use of the individual(s) or entity to whom it is
intended even if addressed incorrectly.  Please delete it from your files if
you are not the intended recipient.  Thank you for your
compliance.  Copyright 2007 CIGNA

==


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





--
__
Bruno Mignoni
[EMAIL PROTECTED]


Re: Re: Eclipse is very Slow - What do i have to do be more fast the developing?

2007-03-12 Thread Kristian Marinkovic
hls wrote a good tutorial in his T5 tutorial:

http://tapestry.apache.org/tapestry5/t5-tutorial.pdf

jetty setup is not different for T4

g,
kris




Bruno Mignoni [EMAIL PROTECTED] 
12.03.2007 14:25
Bitte antworten an
Tapestry users users@tapestry.apache.org


An
Tapestry users users@tapestry.apache.org
Kopie

Thema
Re: Eclipse is very Slow - What do i have to do be more fast the 
developing?






Do you Have a Tutorial to install and configure?

I use Windows XP +  Eclipse + WTP + Tomcat 5.5 + Tapestry 4.0.2.

Jetty and Tomcat works at the same time in my project in Eclipse?

Jetty 5 or Jetty 6 ?

;-)

Bruno Mignoni

On 3/12/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:

 use the jetty plugin; its a small servlet container that starts VERY
 quickly!
 my startup times dropped from 15sec to 2sec!!




 Bruno Mignoni [EMAIL PROTECTED]
 12.03.2007 13:55
 Bitte antworten an
 Tapestry users users@tapestry.apache.org


 An
 Tapestry users users@tapestry.apache.org
 Kopie

 Thema
 Eclipse is very Slow - What do i have to do be more fast the developing?






 I am developing with Eclipse + WTP + TomCat 5.5 + Tapestry 4.0.2 .


 That was confired using Wiki (link:

 
http://wiki.apache.org/tapestry/HowToSetupEclipseWtp?highlight=%28Eclipse%29


 )

 I have Pentium 4 3.40 Ghz + 1 GB Ram and is running correctly.

 The developing is very slow, each modification that I do, i need to
 restart
 Tomcat ( 30 s ) to work.

 What do i have to do be more fast the developing?

 --
 __
 Bruno Mignoni
 [EMAIL PROTECTED]




-- 
__
Bruno Mignoni
[EMAIL PROTECTED]



t5, 5.0.3 SNAPSHOT +tapestry-hibernate

2007-03-12 Thread Davor Hrg

I just started changing hilo application example to use hibernate,

I get following error:

Error invoking service builder method
org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource,
ThreadCleanupHub) (for service 'HibernateSessionManager'): Error invoking
service builder method org.apache.tapestry.hibernate.HibernateModule.build(Log,
ComponentClassLocator, Collection) (for service 'HibernateSessionSource'):
Service id 'ComponentClassLocator' is not defined by any module. Defined
services: ActionLinkHandler, ApplicationDefaults, ApplicationGlobals,
ApplicationInitializer, ApplicationStateManager,
ApplicationStatePersistenceStrategySource, AssetSource, BeanModelSource,
BindingSource, ChainBuilder, ClasspathAssetAliasManager,
ClasspathAssetFactory, ComponentClassFactory, ComponentClassResolver,
ComponentClassTransformWorker, ComponentClassTransformer,
ComponentEventResultProcessor, ComponentInstanceResultProcessor,
ComponentInstantiatorSource, ComponentInvocationMap,
ComponentMessagesSource, ComponentSource, ComponentTemplateSource, Context,
ContextAssetFactory, ContextPathSource, CookieSink, CookieSource, Cookies,
DataTypeAnalyzer, DefaultComponentParameterBindingSource,
DefaultDataTypeAnalyzer, DefaultImplementationBuilder,
DefaultRequestExceptionHandler, Environment, EnvironmentalShadowBuilder,
ExceptionAnalyzer, ExceptionTracker, FactoryDefaults,
FieldValidatorDefaultSource, FieldValidatorSource, FormParameterLookup,
HibernateSessionManager, HibernateSessionSource, HttpServletRequestHandler,
Infrastructure, InfrastructureOverrides, InjectionProvider, LinkFactory,
LocalizationSetter, LocationRenderer, LoggingDecorator, MarkupWriterFactory,
MasterDispatcher, MasterObjectProvider, MetaDataLocator, ObjectRenderer,
PageElementFactory, PageLinkHandler, PageLoader, PageMarkupRenderer,
PagePool, PageRenderInitializer, PageRenderSupport, PageResponseRenderer,
PageTemplateLocator, PersistentFieldManager, PersistentLocale,
PipelineBuilder, PropBindingFactory, PropertyAccess, PropertyConduitSource,
PropertyShadowBuilder, Request, RequestGlobals, RequestHandler,
RequestPageCache, ResourceCache, ResourceDigestGenerator, ResourceStreamer,
Response, ServiceLifecycleSource, ServletApplicationInitializer, Session,
SessionHolder, StrategyBuilder, SymbolSource, TemplateParser, ThreadLocale,
TimingFilter, TranslatorDefaultSource, TranslatorSource, TypeCoercer,
URLEncoder, UpdateListenerHub, ValidationConstraintGenerator,
ValidationMessagesSource.



is SNAPSHOT  currently in a phase where I should wait a bit to try these
things ?

or it should be working and I'm doing sth wrong (if so I'll send more
details).


Davor Hrg


Re: t5, 5.0.3 SNAPSHOT +tapestry-hibernate

2007-03-12 Thread Howard Lewis Ship

I've barely started development of the hibernate module, so I can't
even say what's going on here.

Ooops; yes I can, but that's OK, it just isn't ready for use yet.

On 3/12/07, Davor Hrg [EMAIL PROTECTED] wrote:

I just started changing hilo application example to use hibernate,

I get following error:

Error invoking service builder method
org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource,
ThreadCleanupHub) (for service 'HibernateSessionManager'): Error invoking
service builder method org.apache.tapestry.hibernate.HibernateModule.build(Log,
ComponentClassLocator, Collection) (for service 'HibernateSessionSource'):
Service id 'ComponentClassLocator' is not defined by any module. Defined
services: ActionLinkHandler, ApplicationDefaults, ApplicationGlobals,
ApplicationInitializer, ApplicationStateManager,
ApplicationStatePersistenceStrategySource, AssetSource, BeanModelSource,
BindingSource, ChainBuilder, ClasspathAssetAliasManager,
ClasspathAssetFactory, ComponentClassFactory, ComponentClassResolver,
ComponentClassTransformWorker, ComponentClassTransformer,
ComponentEventResultProcessor, ComponentInstanceResultProcessor,
ComponentInstantiatorSource, ComponentInvocationMap,
ComponentMessagesSource, ComponentSource, ComponentTemplateSource, Context,
ContextAssetFactory, ContextPathSource, CookieSink, CookieSource, Cookies,
DataTypeAnalyzer, DefaultComponentParameterBindingSource,
DefaultDataTypeAnalyzer, DefaultImplementationBuilder,
DefaultRequestExceptionHandler, Environment, EnvironmentalShadowBuilder,
ExceptionAnalyzer, ExceptionTracker, FactoryDefaults,
FieldValidatorDefaultSource, FieldValidatorSource, FormParameterLookup,
HibernateSessionManager, HibernateSessionSource, HttpServletRequestHandler,
Infrastructure, InfrastructureOverrides, InjectionProvider, LinkFactory,
LocalizationSetter, LocationRenderer, LoggingDecorator, MarkupWriterFactory,
MasterDispatcher, MasterObjectProvider, MetaDataLocator, ObjectRenderer,
PageElementFactory, PageLinkHandler, PageLoader, PageMarkupRenderer,
PagePool, PageRenderInitializer, PageRenderSupport, PageResponseRenderer,
PageTemplateLocator, PersistentFieldManager, PersistentLocale,
PipelineBuilder, PropBindingFactory, PropertyAccess, PropertyConduitSource,
PropertyShadowBuilder, Request, RequestGlobals, RequestHandler,
RequestPageCache, ResourceCache, ResourceDigestGenerator, ResourceStreamer,
Response, ServiceLifecycleSource, ServletApplicationInitializer, Session,
SessionHolder, StrategyBuilder, SymbolSource, TemplateParser, ThreadLocale,
TimingFilter, TranslatorDefaultSource, TranslatorSource, TypeCoercer,
URLEncoder, UpdateListenerHub, ValidationConstraintGenerator,
ValidationMessagesSource.



is SNAPSHOT  currently in a phase where I should wait a bit to try these
things ?

or it should be working and I'm doing sth wrong (if so I'll send more
details).


Davor Hrg




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



separate mailing lists

2007-03-12 Thread Norbert Sándor
Wouldn't it be good to separate the t4 and t5 lists somehow? Like 
different addresses, subject prefixes, I don't know...

The two frameworks seem so different...
Of course I may be wrong...

Regards:
Norbi

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



4.1.2-SNAPSHOT upgrade issue/bug from 4.1.1

2007-03-12 Thread maksymg

Hi,
I have a border component that access to a meta tag defined on the parent
page. The code works fine in 4.1.1, but stops working in 4.1.2-SNAPSHOT. Is
it a bug?

The component definition:

property name=pageGroup
initial-value=page.specification.getProperty('page_group')/

The parent page definition:

   meta key=page_group value=admin/

Error message:
 Unable to parse OGNL expression
'page.specification.getProperty('page_group')': Error compiling expression
on object [EMAIL PROTECTED]/$Border] with expression node
page.specification.getProperty(page_group) getter body: { return
((org.apache.tapestry.util.BasePropertyHolder)(($Border_81)$2).getPage()).getSpecification()).getProperty(page_group);}
setter body: nullUnable to add method java.lang.Object get(ognl.OgnlContext,
java.lang.Object) to class ognl.ASTChain32622408Accessor: [source error] ;
is missing


Originally I tried to access the meta tag value using   
inject property=pageGroup type=meta object=page_group /
 But it always return null. It seems working only for meta tags defined on
application level. For some reasons meta injection inside components ignores
tags defined in the parent pages? Is it correct implementation?


-- 
View this message in context: 
http://www.nabble.com/4.1.2-SNAPSHOT-upgrade-issue-bug-from-4.1.1-tf3390740.html#a9438492
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



4.1.2 try to access hidden class java.util.HashMap$Entry

2007-03-12 Thread maksymg

Hi,

I'm trying to switch my working code from 4.1.1 to 4.1.2-SNAPSHOT, but get
an OGNL error. It seems that the Tapestry tries to get list of properties
based on the actual class not interface of the object even if class is not
public.

page class:

abstract public MapString, Integer getProcessMap();

abstract public Map.EntryString, Integer getIterProcessEntry();


page definition:

property name=iterProcessEntry /
component id=processLoop type=For
binding name=source value=processMap.entrySet() /
binding name=value value=iterProcessEntry /
/component
component id=iterProcessNameLabel type=Insert
binding name=value   value=iterProcessEntry.key /
/component

Exception:
 tried to access class java.util.HashMap$Entry from class
ognl.ASTTest28738682Accessor

So despite iterProcessEntry property is defined with public interface
Map.Entry, the calculation of iterProcessEntry.key tries to work with
class information that is not public in this case. It it bug? I have not
been able to find anything in JIRA. How such often used code was able to
stop working and sleep though test cases? I use Sun JDK 1.5.11.
-- 
View this message in context: 
http://www.nabble.com/4.1.2-try-to-access-hidden-class-java.util.HashMap%24Entry-tf3390928.html#a9438997
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: separate mailing lists

2007-03-12 Thread David Avenante

I'm aggree with you Norbert,
It's not the same framework.

Actually I play with T5 and everyday
I need to remove all mails from others versions, it's pain ;)

Regards.


On 3/12/07, Norbert Sándor [EMAIL PROTECTED] wrote:


Wouldn't it be good to separate the t4 and t5 lists somehow? Like
different addresses, subject prefixes, I don't know...
The two frameworks seem so different...
Of course I may be wrong...

Regards:
Norbi

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




SeparatedDate component

2007-03-12 Thread Charles-André Martin

Hi,

  I would like to have a component who implements the rewind method and who
renders from a HTML template. I need this in order to show a date using 3
textfields and to render the date into the rewind method using a translator.
The textfields are for day, month and year.

I tried many things, I couldn't make a component who use a HTML template and
the rewind method. I even tried the ITemplateComponent interface without
succes. It appears that any component extending AbstractFormComponent cannot
use a template.

Does anyone know who to do this ?

Thank you very much !

Charles-André Martin
[EMAIL PROTECTED]


Re: T5 Upload component?

2007-03-12 Thread Pablo Ruggia

Does anyone implemented this Upload component ?
I need it, so if nobody has gone there yet, i'll give it a try.

On 3/9/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:


Yep, not yet implemented.

On 3/9/07, Hugo Palma [EMAIL PROTECTED] wrote:
 I can't see any upload component here

http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html
 so i guess that means it's still not implemented.

 Peter Beshai wrote:
  How do we use input type=file in T5? Is this functionality
implemented
  yet?
 



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




4.1.1

2007-03-12 Thread Damian Sobieralski
I'm hoping someone can assist me. Okay, I'm doing more than hoping as
I'm yanking big chunks of hair trying to get this figured out.

 I have been happily working with Tapestry 4.0.2 in Eclipse using the
Maven plugin.  I'm not a Maven expert but I found out enough to get it
going within Eclipse via the plugin.  I added the dependency via Eclipse
for Tapestry. When I type tapestry in the eclipse window for Maven, I
only get options for 5.0.2 and 4.0.2. So I obviously went with 4.0.2.

 I then tried most unsuccessfully do get 4.1.1 to work by searching the
archives, adding the snapshot repository to the pom.xml and the like.
Okay, no big deal. I can shut Maven off and do this old school.

 So I disabled Maven for this project and downloaded 4.1.1 from:

http://www.apache.org/dyn/closer.cgi/tapestry/tapestry-project-4.1.1-bin
.zip

 I then downloaded ognl from ognl.org and log4j. Now when I fire up my
application (it's a trivial hello world application) I keep getting:

Unable to construct service
tapestry.enhance.ComponentConstructorFactory: Error building service
tapestry.enhance.ComponentConstructorFactory: Failure invoking
constructor for class
org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl:
edu/emory/mathcs/backport/java/util/concurrent/locks/ReentrantLock

 I'm guessing I am missing a dependency but for the life of me I cannot
figure this out. Here are the jars that I have:

commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-fileupload-1.1.1.jar
commons-io-1.1.jar
commons-lang-2.2.jar
commons-logging-1.0.3.jar
hivemind-1.1.1.jar
hivemind-lib-1.1.1.jar
javassist-3.4.jar
log4j-1.2.14.jar
ognl-2.6.9.jar
oro-2.0.8.jar
tapestry-annotations-4.1.1.jar
tapestry-contrib-4.1.1.jar
tapestry-framework-4.1.1.jar
tapestry-portlet-4.1.1.jar

  Apparently, something is amiss here. Anyone with any clue please
please please can you assist? I don't want help (at this time) getting
Maven to work.  I'd like to just figure out what this rather cryptic
error (at least to me) means and how to rectify it. The Maven stuff will
just add a layer of complexity right now that I don't want to deal with
(will soon though).

 Thanks for, up front, for any help that you can render.

 It seemed like such a simple thing according to the docs for the 4.1.1
tapestry. I'm not sure where I botched it.

- Damian


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



RE: 4.1.1

2007-03-12 Thread Damian Sobieralski
Correction - I WAS running successfully 4.0.1 from the Maven2 repo (not
4.0.2 like I was saying).

 -Original Message-
 From: Damian Sobieralski
 Sent: Monday, March 12, 2007 1:12 PM
 To: 'Tapestry users'
 Subject: 4.1.1
 
 I'm hoping someone can assist me. Okay, I'm doing more than hoping as
I'm
 yanking big chunks of hair trying to get this figured out.
 
  I have been happily working with Tapestry 4.0.2 in Eclipse using the
 Maven plugin.  I'm not a Maven expert but I found out enough to get it
 going within Eclipse via the plugin.  I added the dependency via
Eclipse
 for Tapestry. When I type tapestry in the eclipse window for Maven,
I
 only get options for 5.0.2 and 4.0.2. So I obviously went with 4.0.2.
 
  I then tried most unsuccessfully do get 4.1.1 to work by searching
the
 archives, adding the snapshot repository to the pom.xml and the like.
 Okay, no big deal. I can shut Maven off and do this old school.
 
  So I disabled Maven for this project and downloaded 4.1.1 from:
 
 http://www.apache.org/dyn/closer.cgi/tapestry/tapestry-project-4.1.1-
 bin.zip
 
  I then downloaded ognl from ognl.org and log4j. Now when I fire up my
 application (it's a trivial hello world application) I keep getting:
 
 Unable to construct service
tapestry.enhance.ComponentConstructorFactory:
 Error building service tapestry.enhance.ComponentConstructorFactory:
 Failure invoking constructor for class
 org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl:
 edu/emory/mathcs/backport/java/util/concurrent/locks/ReentrantLock
 
  I'm guessing I am missing a dependency but for the life of me I
cannot
 figure this out. Here are the jars that I have:
 
 commons-beanutils-1.7.0.jar
 commons-codec-1.3.jar
 commons-fileupload-1.1.1.jar
 commons-io-1.1.jar
 commons-lang-2.2.jar
 commons-logging-1.0.3.jar
 hivemind-1.1.1.jar
 hivemind-lib-1.1.1.jar
 javassist-3.4.jar
 log4j-1.2.14.jar
 ognl-2.6.9.jar
 oro-2.0.8.jar
 tapestry-annotations-4.1.1.jar
 tapestry-contrib-4.1.1.jar
 tapestry-framework-4.1.1.jar
 tapestry-portlet-4.1.1.jar
 
   Apparently, something is amiss here. Anyone with any clue please
please
 please can you assist? I don't want help (at this time) getting Maven
to
 work.  I'd like to just figure out what this rather cryptic error (at
 least to me) means and how to rectify it. The Maven stuff will just
add a
 layer of complexity right now that I don't want to deal with (will
soon
 though).
 
  Thanks for, up front, for any help that you can render.
 
  It seemed like such a simple thing according to the docs for the
4.1.1
 tapestry. I'm not sure where I botched it.
 
 - Damian


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



Windows + Eclipse + WTP + Tapestry 4.0.2 + Jetty - Maven

2007-03-12 Thread Bruno Mignoni

It´s possible to work Windows + Eclipse + WTP + Tapestry 4.0.2 + Jettywithout
Maven?

How does it?

Doesn´t Maven leave my project slow?

--
__
Bruno Mignoni
[EMAIL PROTECTED]


Re: 4.1.1

2007-03-12 Thread Justin Walsh
What version of the jdk are you using?

Damian Sobieralski wrote:
 Correction - I WAS running successfully 4.0.1 from the Maven2 repo (not
 4.0.2 like I was saying).

   
 -Original Message-
 From: Damian Sobieralski
 Sent: Monday, March 12, 2007 1:12 PM
 To: 'Tapestry users'
 Subject: 4.1.1

 I'm hoping someone can assist me. Okay, I'm doing more than hoping as
 
 I'm
   
 yanking big chunks of hair trying to get this figured out.

  I have been happily working with Tapestry 4.0.2 in Eclipse using the
 Maven plugin.  I'm not a Maven expert but I found out enough to get it
 going within Eclipse via the plugin.  I added the dependency via
 
 Eclipse
   
 for Tapestry. When I type tapestry in the eclipse window for Maven,
 
 I
   
 only get options for 5.0.2 and 4.0.2. So I obviously went with 4.0.2.

  I then tried most unsuccessfully do get 4.1.1 to work by searching
 
 the
   
 archives, adding the snapshot repository to the pom.xml and the like.
 Okay, no big deal. I can shut Maven off and do this old school.

  So I disabled Maven for this project and downloaded 4.1.1 from:

 http://www.apache.org/dyn/closer.cgi/tapestry/tapestry-project-4.1.1-
 bin.zip

  I then downloaded ognl from ognl.org and log4j. Now when I fire up my
 application (it's a trivial hello world application) I keep getting:

 Unable to construct service
 
 tapestry.enhance.ComponentConstructorFactory:
   
 Error building service tapestry.enhance.ComponentConstructorFactory:
 Failure invoking constructor for class
 org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl:
 edu/emory/mathcs/backport/java/util/concurrent/locks/ReentrantLock

  I'm guessing I am missing a dependency but for the life of me I
 
 cannot
   
 figure this out. Here are the jars that I have:

 commons-beanutils-1.7.0.jar
 commons-codec-1.3.jar
 commons-fileupload-1.1.1.jar
 commons-io-1.1.jar
 commons-lang-2.2.jar
 commons-logging-1.0.3.jar
 hivemind-1.1.1.jar
 hivemind-lib-1.1.1.jar
 javassist-3.4.jar
 log4j-1.2.14.jar
 ognl-2.6.9.jar
 oro-2.0.8.jar
 tapestry-annotations-4.1.1.jar
 tapestry-contrib-4.1.1.jar
 tapestry-framework-4.1.1.jar
 tapestry-portlet-4.1.1.jar

   Apparently, something is amiss here. Anyone with any clue please
 
 please
   
 please can you assist? I don't want help (at this time) getting Maven
 
 to
   
 work.  I'd like to just figure out what this rather cryptic error (at
 least to me) means and how to rectify it. The Maven stuff will just
 
 add a
   
 layer of complexity right now that I don't want to deal with (will
 
 soon
   
 though).

  Thanks for, up front, for any help that you can render.

  It seemed like such a simple thing according to the docs for the
 
 4.1.1
   
 tapestry. I'm not sure where I botched it.

 - Damian
 


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



   


-- 
Justin Walsh 
http://www.ewage.co.za


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



Re: [WARNING] 4.1.2 try to access hidden class java.util.HashMap$Entry

2007-03-12 Thread maksymg

Do you know timetable when the issue will fixed? Should I registered in JIRA?
-- 
View this message in context: 
http://www.nabble.com/4.1.2-try-to-access-hidden-class-java.util.HashMap%24Entry-tf3390928.html#a9443605
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: 4.1.1

2007-03-12 Thread Damian Sobieralski
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)

 -Original Message-
 From: Justin Walsh [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 12, 2007 2:06 PM
 To: Tapestry users
 Subject: Re: 4.1.1
 
 What version of the jdk are you using?
 
 Damian Sobieralski wrote:
  Correction - I WAS running successfully 4.0.1 from the Maven2 repo
(not
  4.0.2 like I was saying).
 
 
  -Original Message-
  From: Damian Sobieralski
  Sent: Monday, March 12, 2007 1:12 PM
  To: 'Tapestry users'
  Subject: 4.1.1
 
  I'm hoping someone can assist me. Okay, I'm doing more than hoping
as
 
  I'm
 
  yanking big chunks of hair trying to get this figured out.
 
   I have been happily working with Tapestry 4.0.2 in Eclipse using
the
  Maven plugin.  I'm not a Maven expert but I found out enough to get
it
  going within Eclipse via the plugin.  I added the dependency via
 
  Eclipse
 
  for Tapestry. When I type tapestry in the eclipse window for
Maven,
 
  I
 
  only get options for 5.0.2 and 4.0.2. So I obviously went with
4.0.2.
 
   I then tried most unsuccessfully do get 4.1.1 to work by searching
 
  the
 
  archives, adding the snapshot repository to the pom.xml and the
like.
  Okay, no big deal. I can shut Maven off and do this old school.
 
   So I disabled Maven for this project and downloaded 4.1.1 from:
 
 
http://www.apache.org/dyn/closer.cgi/tapestry/tapestry-project-4.1.1-
  bin.zip
 
   I then downloaded ognl from ognl.org and log4j. Now when I fire up
my
  application (it's a trivial hello world application) I keep
getting:
 
  Unable to construct service
 
  tapestry.enhance.ComponentConstructorFactory:
 
  Error building service
tapestry.enhance.ComponentConstructorFactory:
  Failure invoking constructor for class
  org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl:
  edu/emory/mathcs/backport/java/util/concurrent/locks/ReentrantLock
 
   I'm guessing I am missing a dependency but for the life of me I
 
  cannot
 
  figure this out. Here are the jars that I have:
 
  commons-beanutils-1.7.0.jar
  commons-codec-1.3.jar
  commons-fileupload-1.1.1.jar
  commons-io-1.1.jar
  commons-lang-2.2.jar
  commons-logging-1.0.3.jar
  hivemind-1.1.1.jar
  hivemind-lib-1.1.1.jar
  javassist-3.4.jar
  log4j-1.2.14.jar
  ognl-2.6.9.jar
  oro-2.0.8.jar
  tapestry-annotations-4.1.1.jar
  tapestry-contrib-4.1.1.jar
  tapestry-framework-4.1.1.jar
  tapestry-portlet-4.1.1.jar
 
Apparently, something is amiss here. Anyone with any clue please
 
  please
 
  please can you assist? I don't want help (at this time) getting
Maven
 
  to
 
  work.  I'd like to just figure out what this rather cryptic error
(at
  least to me) means and how to rectify it. The Maven stuff will just
 
  add a
 
  layer of complexity right now that I don't want to deal with (will
 
  soon
 
  though).
 
   Thanks for, up front, for any help that you can render.
 
   It seemed like such a simple thing according to the docs for the
 
  4.1.1
 
  tapestry. I'm not sure where I botched it.
 
  - Damian
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 --
 Justin Walsh
 http://www.ewage.co.za
 
 
 -
 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: 4.1.1

2007-03-12 Thread Justin Walsh
Put the backport-util-concurrent jar (for jdk 5) on your classpath (in
WEB-INF/lib)

http://dcl.mathcs.emory.edu/util/backport-util-concurrent/dist/

Damian Sobieralski wrote:
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)

   
 -Original Message-
 From: Justin Walsh [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 12, 2007 2:06 PM
 To: Tapestry users
 Subject: Re: 4.1.1

 What version of the jdk are you using?

 Damian Sobieralski wrote:
 
 Correction - I WAS running successfully 4.0.1 from the Maven2 repo
   
 (not
   
 4.0.2 like I was saying).


   
 -Original Message-
 From: Damian Sobieralski
 Sent: Monday, March 12, 2007 1:12 PM
 To: 'Tapestry users'
 Subject: 4.1.1

 I'm hoping someone can assist me. Okay, I'm doing more than hoping
 
 as
   
 I'm

   
 yanking big chunks of hair trying to get this figured out.

  I have been happily working with Tapestry 4.0.2 in Eclipse using
 
 the
   
 Maven plugin.  I'm not a Maven expert but I found out enough to get
 
 it
   
 going within Eclipse via the plugin.  I added the dependency via

 
 Eclipse

   
 for Tapestry. When I type tapestry in the eclipse window for
 
 Maven,
   
 I

   
 only get options for 5.0.2 and 4.0.2. So I obviously went with
 
 4.0.2.
   
  I then tried most unsuccessfully do get 4.1.1 to work by searching

 
 the

   
 archives, adding the snapshot repository to the pom.xml and the
 
 like.
   
 Okay, no big deal. I can shut Maven off and do this old school.

  So I disabled Maven for this project and downloaded 4.1.1 from:


 
 http://www.apache.org/dyn/closer.cgi/tapestry/tapestry-project-4.1.1-
   
 bin.zip

  I then downloaded ognl from ognl.org and log4j. Now when I fire up
 
 my
   
 application (it's a trivial hello world application) I keep
 
 getting:
   
 Unable to construct service

 
 tapestry.enhance.ComponentConstructorFactory:

   
 Error building service
 
 tapestry.enhance.ComponentConstructorFactory:
   
 Failure invoking constructor for class
 org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl:
 edu/emory/mathcs/backport/java/util/concurrent/locks/ReentrantLock

  I'm guessing I am missing a dependency but for the life of me I

 
 cannot

   
 figure this out. Here are the jars that I have:

 commons-beanutils-1.7.0.jar
 commons-codec-1.3.jar
 commons-fileupload-1.1.1.jar
 commons-io-1.1.jar
 commons-lang-2.2.jar
 commons-logging-1.0.3.jar
 hivemind-1.1.1.jar
 hivemind-lib-1.1.1.jar
 javassist-3.4.jar
 log4j-1.2.14.jar
 ognl-2.6.9.jar
 oro-2.0.8.jar
 tapestry-annotations-4.1.1.jar
 tapestry-contrib-4.1.1.jar
 tapestry-framework-4.1.1.jar
 tapestry-portlet-4.1.1.jar

   Apparently, something is amiss here. Anyone with any clue please

 
 please

   
 please can you assist? I don't want help (at this time) getting
 
 Maven
   
 to

   
 work.  I'd like to just figure out what this rather cryptic error
 
 (at
   
 least to me) means and how to rectify it. The Maven stuff will just

 
 add a

   
 layer of complexity right now that I don't want to deal with (will

 
 soon

   
 though).

  Thanks for, up front, for any help that you can render.

  It seemed like such a simple thing according to the docs for the

 
 4.1.1

   
 tapestry. I'm not sure where I botched it.

 - Damian

 

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




   
 --
 Justin Walsh
 http://www.ewage.co.za


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



   


-- 
Justin Walsh 
http://www.ewage.co.za


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



RE: 4.1.1

2007-03-12 Thread Damian Sobieralski
Great Scott, that fixed it!

Thank you very very much Justin!  

 -Original Message-
 From: Justin Walsh [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 12, 2007 2:29 PM
 To: Tapestry users
 Subject: Re: 4.1.1
 
 Put the backport-util-concurrent jar (for jdk 5) on your classpath (in
 WEB-INF/lib)
 
 http://dcl.mathcs.emory.edu/util/backport-util-concurrent/dist/
 
 Damian Sobieralski wrote:
  Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_08-b03)
 
 
  -Original Message-
  From: Justin Walsh [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 12, 2007 2:06 PM
  To: Tapestry users
  Subject: Re: 4.1.1
 
  What version of the jdk are you using?
 
  Damian Sobieralski wrote:
 
  Correction - I WAS running successfully 4.0.1 from the Maven2 repo
 
  (not
 
  4.0.2 like I was saying).
 
 
 
  -Original Message-
  From: Damian Sobieralski
  Sent: Monday, March 12, 2007 1:12 PM
  To: 'Tapestry users'
  Subject: 4.1.1
 
  I'm hoping someone can assist me. Okay, I'm doing more than
hoping
 
  as
 
  I'm
 
 
  yanking big chunks of hair trying to get this figured out.
 
   I have been happily working with Tapestry 4.0.2 in Eclipse using
 
  the
 
  Maven plugin.  I'm not a Maven expert but I found out enough to
get
 
  it
 
  going within Eclipse via the plugin.  I added the dependency via
 
 
  Eclipse
 
 
  for Tapestry. When I type tapestry in the eclipse window for
 
  Maven,
 
  I
 
 
  only get options for 5.0.2 and 4.0.2. So I obviously went with
 
  4.0.2.
 
   I then tried most unsuccessfully do get 4.1.1 to work by
searching
 
 
  the
 
 
  archives, adding the snapshot repository to the pom.xml and the
 
  like.
 
  Okay, no big deal. I can shut Maven off and do this old school.
 
   So I disabled Maven for this project and downloaded 4.1.1 from:
 
 
 
 
http://www.apache.org/dyn/closer.cgi/tapestry/tapestry-project-4.1.1-
 
  bin.zip
 
   I then downloaded ognl from ognl.org and log4j. Now when I fire
up
 
  my
 
  application (it's a trivial hello world application) I keep
 
  getting:
 
  Unable to construct service
 
 
  tapestry.enhance.ComponentConstructorFactory:
 
 
  Error building service
 
  tapestry.enhance.ComponentConstructorFactory:
 
  Failure invoking constructor for class
 
org.apache.tapestry.services.impl.ComponentConstructorFactoryImpl:
 
edu/emory/mathcs/backport/java/util/concurrent/locks/ReentrantLock
 
   I'm guessing I am missing a dependency but for the life of me I
 
 
  cannot
 
 
  figure this out. Here are the jars that I have:
 
  commons-beanutils-1.7.0.jar
  commons-codec-1.3.jar
  commons-fileupload-1.1.1.jar
  commons-io-1.1.jar
  commons-lang-2.2.jar
  commons-logging-1.0.3.jar
  hivemind-1.1.1.jar
  hivemind-lib-1.1.1.jar
  javassist-3.4.jar
  log4j-1.2.14.jar
  ognl-2.6.9.jar
  oro-2.0.8.jar
  tapestry-annotations-4.1.1.jar
  tapestry-contrib-4.1.1.jar
  tapestry-framework-4.1.1.jar
  tapestry-portlet-4.1.1.jar
 
Apparently, something is amiss here. Anyone with any clue
please
 
 
  please
 
 
  please can you assist? I don't want help (at this time) getting
 
  Maven
 
  to
 
 
  work.  I'd like to just figure out what this rather cryptic error
 
  (at
 
  least to me) means and how to rectify it. The Maven stuff will
just
 
 
  add a
 
 
  layer of complexity right now that I don't want to deal with
(will
 
 
  soon
 
 
  though).
 
   Thanks for, up front, for any help that you can render.
 
   It seemed like such a simple thing according to the docs for the
 
 
  4.1.1
 
 
  tapestry. I'm not sure where I botched it.
 
  - Damian
 
 
 
 
 
-
 
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  --
  Justin Walsh
  http://www.ewage.co.za
 
 
 
-
  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]
 
 
 
 
 
 
 --
 Justin Walsh
 http://www.ewage.co.za
 
 
 -
 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 - Context parameters and style sheets links

2007-03-12 Thread Bogdan Calmac

Consider a UserDetail page that has an URL like
http://server/context/UserDetail/jdoe;. Here I'm using the tapestry
style of passing parameters, as part of the context. The problem here
is that if you have a styleset link to mystyle.css, it will try to
look for http://server/context/userdetail/mystyle.css which of
course does not exit. The alternative to use the full path to the css,
/context/mystyle.css is also bad because you don't want to hardcode
the name of the context.

There are 2 correct solutions to this problem which would be nice to
be part of the framework:

1. Allow context information to (optionally) be passed to a page as
query parameters, so the above URL would be
http://server/context/UserDetail?userid=jdoe;. The relative link to
the stylesheet would be fine now, but I don't know if this fits with
the design of the framework.

2. Create something like an AssetLink component that takes care to
prepend so context, so that:

 link t:type=AssetLink href=/mystyle.css rel=stylesheet
type=text/css/

would generate;

link href=/context/mystyle.css rel=stylesheet type=text/css/


I would expect there were others who encountered the same quirk. How
did you address it?

Thank you,
Bogdan Calmac.

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



Re: T5 Upload component?

2007-03-12 Thread DJ Gredler

I'm going to need it soon as well, but haven't looked into it at all. Go for
it!


On 3/12/07, Pablo Ruggia [EMAIL PROTECTED] wrote:


Does anyone implemented this Upload component ?
I need it, so if nobody has gone there yet, i'll give it a try.

On 3/9/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:

 Yep, not yet implemented.

 On 3/9/07, Hugo Palma [EMAIL PROTECTED] wrote:
  I can't see any upload component here
 

http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html
  so i guess that means it's still not implemented.
 
  Peter Beshai wrote:
   How do we use input type=file in T5? Is this functionality
 implemented
   yet?
  
 


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





Re: T5 - Context parameters and style sheets links

2007-03-12 Thread DJ Gredler

I've never had to operate out of a context other than root, so I've just
hardcoded it to /mystyle.css or whatever...


On 3/12/07, Bogdan Calmac [EMAIL PROTECTED] wrote:


Consider a UserDetail page that has an URL like
http://server/context/UserDetail/jdoe;. Here I'm using the tapestry
style of passing parameters, as part of the context. The problem here
is that if you have a styleset link to mystyle.css, it will try to
look for http://server/context/userdetail/mystyle.css which of
course does not exit. The alternative to use the full path to the css,
/context/mystyle.css is also bad because you don't want to hardcode
the name of the context.

There are 2 correct solutions to this problem which would be nice to
be part of the framework:

1. Allow context information to (optionally) be passed to a page as
query parameters, so the above URL would be
http://server/context/UserDetail?userid=jdoe;. The relative link to
the stylesheet would be fine now, but I don't know if this fits with
the design of the framework.

2. Create something like an AssetLink component that takes care to
prepend so context, so that:

  link t:type=AssetLink href=/mystyle.css rel=stylesheet
type=text/css/

would generate;

link href=/context/mystyle.css rel=stylesheet type=text/css/


I would expect there were others who encountered the same quirk. How
did you address it?

Thank you,
Bogdan Calmac.

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




Re: T5 - Context parameters and style sheets links

2007-03-12 Thread Howard Lewis Ship

This is a conscious decision, that you will know early on what the
context path will be.

The effort to avoid this in T4, using a base tag, caused far more
problems than it solved.

A solution using query parameters is likewise: it makes your site
off-limits to any kind of search engine, and it tends to create longer
and less pretty URLs.

On 3/12/07, DJ Gredler [EMAIL PROTECTED] wrote:

I've never had to operate out of a context other than root, so I've just
hardcoded it to /mystyle.css or whatever...


On 3/12/07, Bogdan Calmac [EMAIL PROTECTED] wrote:

 Consider a UserDetail page that has an URL like
 http://server/context/UserDetail/jdoe;. Here I'm using the tapestry
 style of passing parameters, as part of the context. The problem here
 is that if you have a styleset link to mystyle.css, it will try to
 look for http://server/context/userdetail/mystyle.css which of
 course does not exit. The alternative to use the full path to the css,
 /context/mystyle.css is also bad because you don't want to hardcode
 the name of the context.

 There are 2 correct solutions to this problem which would be nice to
 be part of the framework:

 1. Allow context information to (optionally) be passed to a page as
 query parameters, so the above URL would be
 http://server/context/UserDetail?userid=jdoe;. The relative link to
 the stylesheet would be fine now, but I don't know if this fits with
 the design of the framework.

 2. Create something like an AssetLink component that takes care to
 prepend so context, so that:

   link t:type=AssetLink href=/mystyle.css rel=stylesheet
 type=text/css/

 would generate;

 link href=/context/mystyle.css rel=stylesheet type=text/css/


 I would expect there were others who encountered the same quirk. How
 did you address it?

 Thank you,
 Bogdan Calmac.

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



Re: serve html from packaged component?

2007-03-12 Thread Julian Wood

Thanks Andy,

That worked perfectly.

J

On 10-Mar-07, at 12:29 PM, andyhot wrote:


Express the folder you're interested in as an IAsset...
Then do .buildURL() on  it and somehow pass the result to your  
javascript...

That's how AjaxShellDelegate includes dojo and its root folder ... BUT
since it's a classpath asset, it'll be protected (i.e. have that  
checksum appended)


So you won't be able to reference relative files (cause the  
checksum won't be right for them)


You'll need to add a contribution to  
tapestry.asset.UnprotectedAssets to get around this...


Here's what tacos does to allow firebug-lite to work (and reference  
relatively its files and images, e.t.c.).

   contribution configuration-id=tapestry.asset.UnprotectedAssets
   Unprotect assets for firebug lite.
   unprotected-resource contains=^/net/sf/tacos/components/ 
firebug/ /

   /contribution


Julian Wood wrote:

Thanks Andreas,

Remember that I'm dealing with some compressed, obfuscated  
javascript which loads these resources (ie I can't change very  
much in how it loads these resources - just the dir in which too  
look for them, and the name of the file). I cannot use a PageLink  
in this situation. However, if I can determine the URL created by  
the PageLink to an html file deep in some component library (eg to  
org/apache/tapestry/contrib/table/components/Table.html), I might  
have a chance. However, I couldn't get it to correctly link to  
that page either (a longshot, I know).


a href=# jwcid=@PageLink page=contrib:TableTable/a

I'm thinking that it might be better to write a small service  
which will return the resource the javascript requests, but it  
seems like more work than should be necessary. Let me know if I  
misunderstood how you thought PageLink could help.


Thanks,

J

On 8-Mar-07, at 11:01 AM, Andreas Andreou wrote:


http://tapestry.apache.org/tapestry4.1/components/link/pagelink.html

See the namespace attribute

On 3/8/07, Julian Wood [EMAIL PROTECTED] wrote:


I've just finished wrapping this rich text component from Kevin  
Roth

http://www.kevinroth.com/rte/ and I have it working nicely as a
drop-in tapestry component (assuming correct installation into a
project).

The final step is to put it in it's own component package for easy
sharing across projects. The only concern I have is that the
component needs access to 4 html files, which it uses to show a  
color

picker, for instance, and which it accesses through some obfuscated
and compressed javascript. So while this is fine when the files are
simply placed in the webapp dir of the main app, how can it gain
access to them when they're packaged into a component jar?

Another way of asking is: what is the tapestry URL to an html file
packaged in a component jar? I've been trying to get the URL to  
say,

Table.html in the contrib package as an example.

Thanks,

J



--
Julian Wood [EMAIL PROTECTED]

Software Engineer
Teaching  Learning Centre
University of Calgary

http://tlc.ucalgary.ca




[T5]Ioc-Perthread service lifecycle

2007-03-12 Thread Weisu

Hi, I am try to create a perthread service, the following lines are in the
module builder class, how and where can I define cleanupThread() method?
 
@Lifecycle(perthread)
public static EllipseSession buildEllipseSession()
{
return new EllipseSessionImpl();
}
Thanks.
-- 
View this message in context: 
http://www.nabble.com/-T5-Ioc-Perthread-service-lifecycle-tf3393129.html#a9446131
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: [T5]Ioc-Perthread service lifecycle

2007-03-12 Thread Howard Lewis Ship

It tends to look like this:

 @Lifecycle(perthread)
   public static HibernateSessionManager
build(@InjectService(HibernateSessionSource)
   HibernateSessionSource sessionSource,

   @InjectService(ThreadCleanupHub)
   ThreadCleanupHub threadCleanupHub)
   {
   HibernateSessionManagerImpl service = new
HibernateSessionManagerImpl(sessionSource);

   threadCleanupHub.addThreadCleanupListener(service);

   return service;
   }

In this example, HibernateSessionManagerImpl implements
ThreadCleanupListener, in addition to HibernateSessionManager.

ThreadCleanupHub is responsible for notifying its listeners at the end
of the request.

With the perthread lifecycle, your service builder method is invoked
at most once per request.

On 3/12/07, Weisu [EMAIL PROTECTED] wrote:


Hi, I am try to create a perthread service, the following lines are in the
module builder class, how and where can I define cleanupThread() method?

@Lifecycle(perthread)
public static EllipseSession buildEllipseSession()
{
return new EllipseSessionImpl();
}
Thanks.
--
View this message in context: 
http://www.nabble.com/-T5-Ioc-Perthread-service-lifecycle-tf3393129.html#a9446131
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [WARNING] [T5]Ioc-Perthread service lifecycle

2007-03-12 Thread Weisu

Thanks Howard, but I got this msg: Error invoking service builder method
com.mainco.ellipse.services.AppModule.buildEllipseSession(ThreadCleanupHub)
(for service 'app.EllipseSession'): Service 'app.ThreadCleanupHub' does not
exist.
This is my code:
@Lifecycle(perthread)
public static EllipseSession
buildEllipseSession(@InjectService(ThreadCleanupHub) ThreadCleanupHub
threadCleanupHub) 
{
EllipseSessionImpl service = new EllipseSessionImpl(); 

threadCleanupHub.addThreadCleanupListener(service); 

return service; 

}

Howard Lewis Ship wrote:
 
 It tends to look like this:
 
   @Lifecycle(perthread)
 public static HibernateSessionManager
 build(@InjectService(HibernateSessionSource)
 HibernateSessionSource sessionSource,
 
 @InjectService(ThreadCleanupHub)
 ThreadCleanupHub threadCleanupHub)
 {
 HibernateSessionManagerImpl service = new
 HibernateSessionManagerImpl(sessionSource);
 
 threadCleanupHub.addThreadCleanupListener(service);
 
 return service;
 }
 
 In this example, HibernateSessionManagerImpl implements
 ThreadCleanupListener, in addition to HibernateSessionManager.
 
 ThreadCleanupHub is responsible for notifying its listeners at the end
 of the request.
 
 With the perthread lifecycle, your service builder method is invoked
 at most once per request.
 
 On 3/12/07, Weisu [EMAIL PROTECTED] wrote:

 Hi, I am try to create a perthread service, the following lines are in
 the
 module builder class, how and where can I define cleanupThread() method?

 @Lifecycle(perthread)
 public static EllipseSession buildEllipseSession()
 {
 return new EllipseSessionImpl();
 }
 Thanks.
 --
 View this message in context:
 http://www.nabble.com/-T5-Ioc-Perthread-service-lifecycle-tf3393129.html#a9446131
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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

-- 
View this message in context: 
http://www.nabble.com/-T5-Ioc-Perthread-service-lifecycle-tf3393129.html#a9446675
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: [WARNING] [T5]Ioc-Perthread service lifecycle

2007-03-12 Thread Howard Lewis Ship

Sorry, that was SVN trunk code (i.e., 5.0.3-SNAPSHOT), for 5.0.2 the
service id is tapestry.ioc.ThreadCleanupHub.

On 3/12/07, Weisu [EMAIL PROTECTED] wrote:


Thanks Howard, but I got this msg: Error invoking service builder method
com.mainco.ellipse.services.AppModule.buildEllipseSession(ThreadCleanupHub)
(for service 'app.EllipseSession'): Service 'app.ThreadCleanupHub' does not
exist.
This is my code:
@Lifecycle(perthread)
public static EllipseSession
buildEllipseSession(@InjectService(ThreadCleanupHub) ThreadCleanupHub
threadCleanupHub)
{
EllipseSessionImpl service = new EllipseSessionImpl();

threadCleanupHub.addThreadCleanupListener(service);

return service;

}

Howard Lewis Ship wrote:

 It tends to look like this:

   @Lifecycle(perthread)
 public static HibernateSessionManager
 build(@InjectService(HibernateSessionSource)
 HibernateSessionSource sessionSource,

 @InjectService(ThreadCleanupHub)
 ThreadCleanupHub threadCleanupHub)
 {
 HibernateSessionManagerImpl service = new
 HibernateSessionManagerImpl(sessionSource);

 threadCleanupHub.addThreadCleanupListener(service);

 return service;
 }

 In this example, HibernateSessionManagerImpl implements
 ThreadCleanupListener, in addition to HibernateSessionManager.

 ThreadCleanupHub is responsible for notifying its listeners at the end
 of the request.

 With the perthread lifecycle, your service builder method is invoked
 at most once per request.

 On 3/12/07, Weisu [EMAIL PROTECTED] wrote:

 Hi, I am try to create a perthread service, the following lines are in
 the
 module builder class, how and where can I define cleanupThread() method?

 @Lifecycle(perthread)
 public static EllipseSession buildEllipseSession()
 {
 return new EllipseSessionImpl();
 }
 Thanks.
 --
 View this message in context:
 
http://www.nabble.com/-T5-Ioc-Perthread-service-lifecycle-tf3393129.html#a9446131
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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




--
View this message in context: 
http://www.nabble.com/-T5-Ioc-Perthread-service-lifecycle-tf3393129.html#a9446675
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



ForBean: 4.1 to 4.1.1

2007-03-12 Thread Robert J. Walker
I just upgraded from Tapestry 4.1 to 4.1.1. Now I'm having some problems with 
the For component. It seems that it was changed so that it stores the source 
list in hidden fields in the page and uses the stored version on rewind. I can 
understand why this might be useful, since it could be problematic if the 
source list changed on you between render and rewind. That being said, it 
causes two really big problems for me:

1. The download size of the page just got enormous.

2. The source list contains Hibernate entities, which are now detached on the 
rewind, causing errors.

What I really want is the old behavior, which is to reload the list every time. 
I'll deal with the consequences of the list changing. Is there some way to get 
that behavior back, short of making my own component that subclasses ForBean 
and overrides getData()?

Robert J. Walker


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



Re: [WARNING] [T5]Ioc-Perthread service lifecycle

2007-03-12 Thread Weisu

Thanks Howard, that works.

Howard Lewis Ship wrote:
 
 Sorry, that was SVN trunk code (i.e., 5.0.3-SNAPSHOT), for 5.0.2 the
 service id is tapestry.ioc.ThreadCleanupHub.
 
 On 3/12/07, Weisu [EMAIL PROTECTED] wrote:

 Thanks Howard, but I got this msg: Error invoking service builder method
 com.mainco.ellipse.services.AppModule.buildEllipseSession(ThreadCleanupHub)
 (for service 'app.EllipseSession'): Service 'app.ThreadCleanupHub' does
 not
 exist.
 This is my code:
 @Lifecycle(perthread)
 public static EllipseSession
 buildEllipseSession(@InjectService(ThreadCleanupHub) ThreadCleanupHub
 threadCleanupHub)
 {
 EllipseSessionImpl service = new EllipseSessionImpl();

 threadCleanupHub.addThreadCleanupListener(service);

 return service;

 }

 Howard Lewis Ship wrote:
 
  It tends to look like this:
 
@Lifecycle(perthread)
  public static HibernateSessionManager
  build(@InjectService(HibernateSessionSource)
  HibernateSessionSource sessionSource,
 
  @InjectService(ThreadCleanupHub)
  ThreadCleanupHub threadCleanupHub)
  {
  HibernateSessionManagerImpl service = new
  HibernateSessionManagerImpl(sessionSource);
 
  threadCleanupHub.addThreadCleanupListener(service);
 
  return service;
  }
 
  In this example, HibernateSessionManagerImpl implements
  ThreadCleanupListener, in addition to HibernateSessionManager.
 
  ThreadCleanupHub is responsible for notifying its listeners at the end
  of the request.
 
  With the perthread lifecycle, your service builder method is invoked
  at most once per request.
 
  On 3/12/07, Weisu [EMAIL PROTECTED] wrote:
 
  Hi, I am try to create a perthread service, the following lines are in
  the
  module builder class, how and where can I define cleanupThread()
 method?
 
  @Lifecycle(perthread)
  public static EllipseSession buildEllipseSession()
  {
  return new EllipseSessionImpl();
  }
  Thanks.
  --
  View this message in context:
 
 http://www.nabble.com/-T5-Ioc-Perthread-service-lifecycle-tf3393129.html#a9446131
  Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
  -
  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]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/-T5-Ioc-Perthread-service-lifecycle-tf3393129.html#a9446675
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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

-- 
View this message in context: 
http://www.nabble.com/-T5-Ioc-Perthread-service-lifecycle-tf3393129.html#a9447486
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Component parameter question

2007-03-12 Thread Tomic Mirko
How to pass a list directly to a component as a parameter with ognl 
expression from page file? 




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



Component parameter

2007-03-12 Thread Tomić Mirko
How I can pass a list, as a parameter to component, directly from page file, 
with ognl expression, without using java code. Something like Item1, Item2, 
Item3.


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



Re: Component parameter

2007-03-12 Thread Urban Sombrero

How about this:

   component id=foreachRow type=For
   binding name=source value=ognl:{item1,item2,item3} /
   binding name=value value=ognl:rowId /
   /component

See http://www.ognl.org/basicExpressions.html, under List Construction.

Travis


On 3/12/07, Tomić Mirko [EMAIL PROTECTED] wrote:

How I can pass a list, as a parameter to component, directly from page file,
with ognl expression, without using java code. Something like Item1, Item2,
Item3.


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




Re: Component parameter

2007-03-12 Thread Tomić Mirko
Sorry for posting twice :(


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



Re: Component parameter

2007-03-12 Thread Tomić Mirko

What I wanted is to pass a list of strings


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



Re: Component parameter

2007-03-12 Thread Urban Sombrero

How about: ognl:{'item1','item2','item3'}

You can use single quotes for strings in ognl.



On 3/12/07, Tomić Mirko [EMAIL PROTECTED] wrote:


What I wanted is to pass a list of strings


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