Re: T5: disable javascript

2007-11-06 Thread Angelo Chen

Hi Lastiha,

You could have saved me one day work:) it's exactly what I'm looking for,
well, my fault not reading the doc:(( anyway, I do find something
interesting about T5's form, when a form is loaded using Ajax, the scripts
do not completely loaded causing several errors and you see a blank screen,
one way to fix this is, manually add those scripts(Prototype, Scriptaculous,
Tapestry.js) in the parent template and disable the script in the calling
page, this somehow works(client side validation). thanks.
A.C.


lasitha wrote:
 
 On 11/5/07, Angelo Chen [EMAIL PROTECTED] wrote:

 Is there a way to disable or exclude those default javascripts(that's
 around
 200k in size)? I notice if there is form in a page T5 will include some
 javascript files.
 
 Angelo, perhaps i'm missing something but couldn't you just set
 clientValidation=false ?
 http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentsform
 
 Cheers,
 lasitha.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-disable-javascript-tf4749556.html#a13602475
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: disable javascript

2007-11-06 Thread Christian Köberl POI

Hello Angelo!


Angelo Chen wrote:
 
 You could have saved me one day work:) 
 

It could have saved you one day if it would work, but unfortunately it
doesnt: http://issues.apache.org/jira/browse/TAPESTRY-1748
-- 
View this message in context: 
http://www.nabble.com/T5%3A-disable-javascript-tf4749556.html#a13602999
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5: Grid width

2007-11-06 Thread Heck, Bob
Is there a way to control the width and alignment of the entire grid
component?   I am wanting to make it about 95% width and/or center it on
the page using some kind of css setting.  I see there is a setting for
each row, but not for the grid as a whole (like something that would
render in the table tag)

Thanks!
Bob

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



Re: 3 new French Tapestry5 tutorials

2007-11-06 Thread Baptiste Meurant

j'autorise la traduction bien sur et je suis disposé à faire une relecture
des tutoriels une fois traduits.
Merci.

I allow you translating my tutorials. I can read them once translated if you
need.
Thanks.


Michael Courcy wrote:
 
 Si vous m'y autorisez je peux faire la traduction en anglais et la 
 poster sur le wiki, comme je découvre Tapestry 5 mais que je connais 
 Spring et hibernate (ainsi que wtp) ça ne devrait pas poser de souci.
 
 If you allow me I would translate it and post  on the wiki. As I 'm a 
 newbie in tapestry 5 but already used to Spring and hibernate it should 
 not be a problem.
 
 Michael.
 
 #Cyrille37# a écrit :
 Howard Lewis Ship a écrit :
 Thanks, looks like a great effort.  Sorry I've been so swamped about
 getting your translations on the main web site.
   
 Thanks Howard :

 Here is translation, done with my poor english :

 [fr] Premier projet avec Tapestry5, Spring et Hibernate :
 [en] First project with Tapestry5, Spring and Hibernate :
 http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ 


 [fr] Intégration simple et élégante d'AJAX avec DWR:
 [en] A nice integration of Ajax with DWR into Tapestry5 :
 http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/
  


 [fr] Sécurisation d'une application Web avec Acegi Security:
 [en] Securising a web application with ACEGI
 http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/
  


 All of those 3 tutorials have Tapestry5 as Front view

 On Nov 5, 2007 3:48 AM, #Cyrille37# [EMAIL PROTECTED] wrote:
  
 Hello, Bonjour,

 There are 3 new tutorials for Tapestry5 in French.
 Il y a 3 nouveaux tutoriels en français pour Tapestry5.

 Thanks to Baptiste Meurant !
 Merci à Baptiste Meurant !

 Premier projet avec Tapestry5, Spring et Hibernate :
 http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/
  


 Intégration simple et élégante d'AJAX avec DWR:
 http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/
  


 Sécurisation d'une application Web avec Acegi Security:
 http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/
  


 I've added them on http://wiki.apache.org/tapestry/TapestryTutorials 
 but
 it should be nice to add them to 
 http://tapestry.apache.org/articles.html

 Bye, Salut
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/3-new-French-Tapestry5-tutorials-tf4751143.html#a13603298
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 no root element??

2007-11-06 Thread Ted Steen
make sure that all resources (including .tml files) are copied on compile.
that is, if you have a resources folder with your tml files in it, you
need to add that as a class folder in your eclipse project.
an alternative would be to move all .tml files to the source folder
(side by side with the class). Personally I think its easier to work
with them side by side like that.


2007/11/6, Michael Bernagou [EMAIL PROTECTED]:
 I copied and paste my Eclipse project from my Home computer to my work
 computer. And it works at home, not at works and the error is this one :

 [ERROR] DefaultRequestExceptionHandler Processing of request failed with
 uncaught exception: No root element has been defined.
 java.lang.IllegalStateException: No root element has been defined.
 at org.apache.tapestry.dom.Document.toMarkup(Document.java:89)
 at org.apache.tapestry.internal.services.MarkupWriterImpl.toMarkup(
 MarkupWriterImpl.java:51)
 at
 org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse
 (PageResponseRendererImpl.java:49)
 at
 $PageResponseRenderer_116146572a8.renderPageResponse($PageResponseRenderer_116146572a8.java)

 I thought it was a problem of localization since I had only Start_fr.tml but
 I added Start.tml (same for my 2 others _fr.tml pages) but I still have the
 error.

 The code is exactly the same and I don't have any error in my compilation,
 neither xml validation error.

 Any idea?

 --
 Michael Bernagou
 Java Developper



-- 
/ted

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



Re: 3 new French Tapestry5 tutorials

2007-11-06 Thread #Cyrille37#

Baptiste Meurant a écrit :

j'autorise la traduction bien sur et je suis disposé à faire une relecture
des tutoriels une fois traduits.
Merci.

I allow you translating my tutorials. I can read them once translated if you
need.
Thanks.
  

Hello
I think it's a very good thing. When your tutorials will be in english, 
Tapestry's Guru will be able to make comments, precisions and corrections.


Cheers
cyrille.



Michael Courcy wrote:
  
Si vous m'y autorisez je peux faire la traduction en anglais et la 
poster sur le wiki, comme je découvre Tapestry 5 mais que je connais 
Spring et hibernate (ainsi que wtp) ça ne devrait pas poser de souci.


If you allow me I would translate it and post  on the wiki. As I 'm a 
newbie in tapestry 5 but already used to Spring and hibernate it should 
not be a problem.


Michael.

#Cyrille37# a écrit :


Howard Lewis Ship a écrit :
  

Thanks, looks like a great effort.  Sorry I've been so swamped about
getting your translations on the main web site.
  


Thanks Howard :

Here is translation, done with my poor english :

[fr] Premier projet avec Tapestry5, Spring et Hibernate :
[en] First project with Tapestry5, Spring and Hibernate :
http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ 



[fr] Intégration simple et élégante d'AJAX avec DWR:
[en] A nice integration of Ajax with DWR into Tapestry5 :
http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/ 



[fr] Sécurisation d'une application Web avec Acegi Security:
[en] Securising a web application with ACEGI
http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/ 



All of those 3 tutorials have Tapestry5 as Front view

  

On Nov 5, 2007 3:48 AM, #Cyrille37# [EMAIL PROTECTED] wrote:
 


Hello, Bonjour,

There are 3 new tutorials for Tapestry5 in French.
Il y a 3 nouveaux tutoriels en français pour Tapestry5.

Thanks to Baptiste Meurant !
Merci à Baptiste Meurant !

Premier projet avec Tapestry5, Spring et Hibernate :
http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ 



Intégration simple et élégante d'AJAX avec DWR:
http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/ 



Sécurisation d'une application Web avec Acegi Security:
http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/ 



I've added them on http://wiki.apache.org/tapestry/TapestryTutorials 
but
it should be nice to add them to 
http://tapestry.apache.org/articles.html


Bye, Salut
Cyrille.


  




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



Re: T5: disable javascript

2007-11-06 Thread Angelo Chen

Hi Christian,

Good you pointed out, It works now with 5.0.6. I upgraded to 5.0.6 yesterday
hoping t:container/t:container might be a better option than div/div
hack, so for 5.0.5 user I do have some contribution, use
divbodybody/div. clientvalidation=false works with 5.0.6 only. 
Lashita's post reminded me a story, a guy trying to study Bible, he studied
all books about Bible except the Bibile itself:( ok, let me read the
Form.java now;-))

A.C.


Christian Köberl POI wrote:
 
 Hello Angelo!
 
 
 Angelo Chen wrote:
 
 You could have saved me one day work:) 
 
 
 It could have saved you one day if it would work, but unfortunately it
 doesnt: http://issues.apache.org/jira/browse/TAPESTRY-1748
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-disable-javascript-tf4749556.html#a13603300
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5 no root element??

2007-11-06 Thread Michael Bernagou
I copied and paste my Eclipse project from my Home computer to my work
computer. And it works at home, not at works and the error is this one :

[ERROR] DefaultRequestExceptionHandler Processing of request failed with
uncaught exception: No root element has been defined.
java.lang.IllegalStateException: No root element has been defined.
at org.apache.tapestry.dom.Document.toMarkup(Document.java:89)
at org.apache.tapestry.internal.services.MarkupWriterImpl.toMarkup(
MarkupWriterImpl.java:51)
at
org.apache.tapestry.internal.services.PageResponseRendererImpl.renderPageResponse
(PageResponseRendererImpl.java:49)
at
$PageResponseRenderer_116146572a8.renderPageResponse($PageResponseRenderer_116146572a8.java)

I thought it was a problem of localization since I had only Start_fr.tml but
I added Start.tml (same for my 2 others _fr.tml pages) but I still have the
error.

The code is exactly the same and I don't have any error in my compilation,
neither xml validation error.

Any idea?

-- 
Michael Bernagou
Java Developper


Re: T5: Grid width

2007-11-06 Thread Marcelo Lotif
Hi Bob,

Try this:
style
TABLE.t-data-grid {
  width: 95%;
  }
/style

but i don't know how to change the align... maybe a center/center solves
this

2007/11/6, Heck, Bob [EMAIL PROTECTED]:

 Is there a way to control the width and alignment of the entire grid
 component?   I am wanting to make it about 95% width and/or center it on
 the page using some kind of css setting.  I see there is a setting for
 each row, but not for the grid as a whole (like something that would
 render in the table tag)

 Thanks!
 Bob

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




-- 
Atenciosamente,
Marcelo Lotif


Re: General question regarding Web 2.0 and Tapestry

2007-11-06 Thread Peter Stavrinides
The term web 2.0 was coined by O'Reilly media, and simply describes the 
business revolution in the computer industry caused by the move to the 
internet as platform. From a technology point of view you can't get more 
general than that, so web 2 technologies are pretty much everything used 
today, as opposed to the traditional web model (HTTP and CGI based). I 
guess you could say that a web 2 app is an app that is interoperable 
with and runs on multiple platforms or devices, and provides desktop 
application usability.


Peter

Angelo Chen wrote:

Hi,

Same as you, no idea at all about this web 2.0. came from c/s world hoping
web 2.0 can help in developing c/s like app, and after a while,  found out
that a server framework like T5, Javascript(or better a library like
jQuery), html/css/DOM, plus the browser's capability to do background
communication with server(xmlhttprequest) is enough to enable us to develop
desktop like application, maybe that's web 2.0?

A.C.


Ravi Shankar-9 wrote:
  

I don't have a clear definition of web 2.0. THis is what wiki says
Web 2.0 websites typically include some of these features:





  



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



Re: T5: disable javascript

2007-11-06 Thread Christian Köberl POI


Angelo Chen wrote:
 
 Good you pointed out, It works now with 5.0.6. 
 
Hey, that's good - I checked that and it seems to work.

But then I looked at how and it seems that Tapestry still generate the
validation script:
script type=text/javascript
!--
Event.observe(window, load, function() {
Tapestry.Field.required('name', 'You must provide a value for Name.');
});
// --
/script

It also adds the dependecies to the header - this is why it works now. It
would be a lot nicer if the scripts were removed when clientValidation is
false :(

A partly happy,
Chris

-- 
View this message in context: 
http://www.nabble.com/T5%3A-disable-javascript-tf4749556.html#a13606148
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



[T4] Log4J configuration outside of WAR

2007-11-06 Thread Marnix Bindels

Hi All,

I'd like to my web app to initialize the Log4J system using a log4j.xml 
file for which the location will be specified at server startup. In 
previous projects, using spring, this proved to be easily done by 
including some Log4jWebConfigurer instance. It's setup to refer to 
${my-app.config.dir}/log4j.xml and there you go. Does a HiveMind 
equivalent exist?


I've investigated HiveUtils giving me plain old properties files under 
HiveMind (thank you!) and a trapdoor to log4j.xml on  some absolute path 
location. The first is by adding a PropertyFileSources element to the 
hivermodule.xml and the second by adding a LoggingInitListener to the 
web.xml. However, I get the feeling that having the exact runtime path 
determined by a system property my-app.config.dir is not going to be 
achieved by these two. Or can it?


This is as far as I got in trying to solve my quest, being:
   - I'd keep app.properties and log4j.xml in directory 
C:\app\conf\production\
   - maybe I keep similar but different sets in conf\test-local and 
conf\...
   - before Tomcat startup, I add 
my-app.config.dir=C:\app\conf\production\ to the JAVA _OPTS env. setting


I'd be interested to hear from you,

Marnix


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



Re: T5.0.6 - How to use GridRows

2007-11-06 Thread CarstenM

Hi again,

anyone who can give me an example how to use the GridRows component?

Thanks,
Carsten


-- 
View this message in context: 
http://www.nabble.com/T5.0.6---How-to-use-GridRows-tf4744539.html#a13606753
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: 3 new French Tapestry5 tutorials

2007-11-06 Thread Michael Courcy

ok alors je vais m'y mettre
Ok let's do it

Merci / Thanks
#Cyrille37# a écrit :

Baptiste Meurant a écrit :
j'autorise la traduction bien sur et je suis disposé à faire une 
relecture

des tutoriels une fois traduits.
Merci.

I allow you translating my tutorials. I can read them once translated 
if you

need.
Thanks.
  

Hello
I think it's a very good thing. When your tutorials will be in 
english, Tapestry's Guru will be able to make comments, precisions and 
corrections.


Cheers
cyrille.



Michael Courcy wrote:
 
Si vous m'y autorisez je peux faire la traduction en anglais et la 
poster sur le wiki, comme je découvre Tapestry 5 mais que je connais 
Spring et hibernate (ainsi que wtp) ça ne devrait pas poser de souci.


If you allow me I would translate it and post  on the wiki. As I 'm 
a newbie in tapestry 5 but already used to Spring and hibernate it 
should not be a problem.


Michael.

#Cyrille37# a écrit :
   

Howard Lewis Ship a écrit :
 

Thanks, looks like a great effort.  Sorry I've been so swamped about
getting your translations on the main web site.
  

Thanks Howard :

Here is translation, done with my poor english :

[fr] Premier projet avec Tapestry5, Spring et Hibernate :
[en] First project with Tapestry5, Spring and Hibernate :
http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ 



[fr] Intégration simple et élégante d'AJAX avec DWR:
[en] A nice integration of Ajax with DWR into Tapestry5 :
http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/ 



[fr] Sécurisation d'une application Web avec Acegi Security:
[en] Securising a web application with ACEGI
http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/ 



All of those 3 tutorials have Tapestry5 as Front view

 

On Nov 5, 2007 3:48 AM, #Cyrille37# [EMAIL PROTECTED] wrote:
 
   

Hello, Bonjour,

There are 3 new tutorials for Tapestry5 in French.
Il y a 3 nouveaux tutoriels en français pour Tapestry5.

Thanks to Baptiste Meurant !
Merci à Baptiste Meurant !

Premier projet avec Tapestry5, Spring et Hibernate :
http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ 



Intégration simple et élégante d'AJAX avec DWR:
http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/ 



Sécurisation d'une application Web avec Acegi Security:
http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/ 



I've added them on 
http://wiki.apache.org/tapestry/TapestryTutorials but
it should be nice to add them to 
http://tapestry.apache.org/articles.html


Bye, Salut
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]



Problems Deploying Tapestry 5.0.6 to JBOSS Web

2007-11-06 Thread Charles Mason
Hi all,

I am having some problems deploying my Tapestry 5.0.6 based site to
Jboss Web. I have the same web app running from Eclipse through Jetty
without any problems. I don't think there's anything wrong with the
Jboss Web installation as it runs Roller and Tapestry 4 apps fine.

Its probably something I am doing wrong, but I can't seem to figure it
out. I have included  the error message that Jboss Web produces. Does
any one have any ideas of what I could be missing?

Thanks

Charlie M

java.lang.RuntimeException: Unable to instantiate class
org.apache.tapestry.services.TapestryModule as a module builder: Error
building service proxy for service 'RequestGlobals' (at
org.apache.tapestry.internal.services.RequestGlobalsImpl() (at
RequestGlobalsImpl.java:31)): Unable to add method
javax.servlet.http.HttpServletRequest getHTTPServletRequest() to class
$RequestGlobals_11614e73339: [source error] getHTTPServletRequest()
not found in org.apache.tapestry.services.RequestGlobals
at 
org.apache.tapestry.ioc.internal.ModuleImpl.instantiateModuleBuilder(ModuleImpl.java:353)
at 
org.apache.tapestry.ioc.internal.ModuleImpl.getModuleBuilder(ModuleImpl.java:278)
at 
org.apache.tapestry.ioc.internal.ServiceResourcesImpl.getModuleBuilder(ServiceResourcesImpl.java:107)
at 
org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:60)
at 
org.apache.tapestry.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:31)
at 
org.apache.tapestry.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:54)
at 
org.apache.tapestry.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:54)
at 
org.apache.tapestry.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:61)
at 
org.apache.tapestry.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:67)
at 
$ServletApplicationInitializer_11614e73329._delegate($ServletApplicationInitializer_11614e73329.java)
at 
$ServletApplicationInitializer_11614e73329.initializeApplication($ServletApplicationInitializer_11614e73329.java)
at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:86)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:77)
at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3568)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4146)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.apache.catalina.core.StandardContext.init(StandardContext.java:5055)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
at 
org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
at org.jboss.web.WebModule.startModule(WebModule.java:83)
at org.jboss.web.WebModule.startService(WebModule.java:61)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at 

T5: why this not working in IE?

2007-11-06 Thread Angelo Chen

Hi,

I have this code :

 @InjectPage
  private FeedbackBasic feedback;
  Object onActionFromDelete(Long id) {
  String html;
// some process here to set up html string
return feedback.setHtmlbock(html);
  }

This code works in Safari, FF, I can see from a debugger that , first
browser call :
GET /myapp/myphoto.delete/3098?t:ac=262height=320random=1194365084108
HTTP/1.1
response:
HTTP/1.1 302 Moved Temporarily
Location: http://localhost.:8080/myapp/feedbackbasic
Expires: 0
Cache-Control: no-cache
then browser goes to GET /myapp/feedbackbasic

in IE, it works first time, the next time around, I can see the response is
302, that's correct, but IE does not goto GET /myapp/feedbackbasic, looks
like the page is cached? any solution to this? Thanks.

A.C.




-- 
View this message in context: 
http://www.nabble.com/T5%3A-why-this-not-working-in-IE--tf4759162.html#a13610055
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: disable javascript

2007-11-06 Thread Angelo Chen

Hi Christian,

I created a simple project and put a simple form there, got the same result
as yours, don't know why. so I copied my complicated form over and reduce it
to the following, it removes those javascripts, I can't tell why as I
already erased the first simple form:( please try this template, see if it
produce the same output as mine, kind of mystery here:(

here is the template:

html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;
head
titlehilo Start Page/title
/head
body
h1my form/h1
t:form t:id=comment_form t:clientValidation=false
input t:type=textfield t:id=name /
input t:type=submit name=Submit t:id=Submit value=Submit/
/t:form

/body
/html

here is the rendered page:
html
headlink href=/assets/tapestry/default.css rel=stylesheet
type=text/css
titlehilo Start Page/title
/head
body
h1my form/h1
form action=/myform.comment_form id=comment_form method=post
name=comment_formdiv class=t-invisibleinput name=t:formdata
type=hidden
value=H4sIAFvzloG1nJeB27fSLb8o1yovMTe1uIjBKr8oXS+xIDE5I1WvJLEgtbikqFIvOb8oNSczSS8psThVzzEJKJaYXOKWmZqTohKcWlJa4Jhckpmfpxp6mPuh6PE/TAyMPgw88ak5qbmpeSV+QHNLGIR8shLLEvVzEvPS9YNLijLz0q0rCkoYWEC2YjrCjURHBBTlJ6cWFweXJuVmFhcDnQJx0OF1KSZp3+adY2JgqCgo52fghdpSDFJXUlzIUMfAUMLABtZWgiEPkmYFADYHBGIlAQAA/div
input id=name name=name type=text value=
/assets/tapestry/field-error-marker.png 
input id=Submit name=Submit type=submit value=Submit
/assets/tapestry/field-error-marker.png 
/form

/body
/html






Angelo Chen wrote:
 
 Good you pointed out, It works now with 5.0.6. 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-disable-javascript-tf4749556.html#a13610740
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5: Loop with variables

2007-11-06 Thread Tobias Wehrum

Hi all,

I am currently working with the tutorial 1 at the Tapestry 5 homepage ( 
http://tapestry.apache.org/tapestry5/tutorial1/hilo.html ).


Now, one of the further tasks there is As we guess, we're identifying 
ranges of valid and invalid numbers. Can you only show valid guesses to 
the user?
...so, setting a loop (which counted before simply from 1 to 10) to 
count from one variable to another variable.


My guess was that I just have to replace
   t:loop source=1..10 value=guess
(which works) with
   t:loop source=${rangeStart}..${rangeEnd} value=guess

Well, seems to be wrong. I get the following application exception:

org.apache.tapestry.ioc.internal.util.TapestryException
Failure writing parameter value of component Guess:loop: Coercion of 
1..10 to type int (via String -- Long, Long -- Integer) failed: For 
input string: 1..10

(marked is the line shown above).

So, he DOES replace the variables right, but that doesn't seem to be the 
same as 1..10 anymore.


How can I solve this problem?

Thanks in advance,
Tobias

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



Re: Changing from https and http

2007-11-06 Thread Kevin Menard
I've found the whole scheme/port parameters just too much of a pain in the
neck to work with.  In an ideal world, you'd be able to tag a page class as
@Secure and it would automatically do the correct thing with regards to
scheme.

What I've resorted to is using mod_rewrite rules that handle the scheme
rewriting.  It's not ideal and has exploded fantastically in my face before,
but generally works once you get things going.

-- 
Kevin


On 11/6/07 11:55 AM, in article
[EMAIL PROTECTED], Norman Franke
[EMAIL PROTECTED] wrote:

 I didn't hear anything on this. At first, I tried creating a
 DirectLink component and set its scheme and port and then return an
 ILink from that from my form listeners. However, despite setting
 scheme to http, it ignores the scheme and stays https.
 
 So, I then decided to just throw a RedirectException with the
 rendered URL like this:
 
 link.getAbsoluteURL(http, null, 80, null, true);
 
 That seems to work. Good idea, bad idea? Why didn't returning the
 ILink with a scheme of http work?
 
 Norman Franke
 ASD, Inc.



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



Re: T5: Loop with variables

2007-11-06 Thread Howard Lewis Ship
The x...y syntax is limited to constant values for x and y.  I think a
future release of Tapestry will increase the power of the built-in
expression language, but for the moment, there you go.

The x..y syntax is ultimately converted into an instance of
IntegerRange, so one way would be to create a getter method that
created and returned an instance of IntegerRange directly, then change
the source parameter of the Loop component to point to this property.

However, IntegerRange is an internal class, so be aware that it is
free to change at any time.

Or you could return a ListInteger or int[] of the desired values
from the method.

On Nov 6, 2007 9:02 AM, Tobias Wehrum [EMAIL PROTECTED] wrote:
 Hi all,

 I am currently working with the tutorial 1 at the Tapestry 5 homepage (
 http://tapestry.apache.org/tapestry5/tutorial1/hilo.html ).

 Now, one of the further tasks there is As we guess, we're identifying
 ranges of valid and invalid numbers. Can you only show valid guesses to
 the user?
 ...so, setting a loop (which counted before simply from 1 to 10) to
 count from one variable to another variable.

 My guess was that I just have to replace
 t:loop source=1..10 value=guess
 (which works) with
 t:loop source=${rangeStart}..${rangeEnd} value=guess

 Well, seems to be wrong. I get the following application exception:

 org.apache.tapestry.ioc.internal.util.TapestryException
 Failure writing parameter value of component Guess:loop: Coercion of
 1..10 to type int (via String -- Long, Long -- Integer) failed: For
 input string: 1..10
 (marked is the line shown above).

 So, he DOES replace the variables right, but that doesn't seem to be the
 same as 1..10 anymore.

 How can I solve this problem?

 Thanks in advance,
 Tobias

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





-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind

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



Re: Changing from https and http

2007-11-06 Thread Norman Franke
I didn't hear anything on this. At first, I tried creating a  
DirectLink component and set its scheme and port and then return an  
ILink from that from my form listeners. However, despite setting  
scheme to http, it ignores the scheme and stays https.


So, I then decided to just throw a RedirectException with the  
rendered URL like this:


link.getAbsoluteURL(http, null, 80, null, true);

That seems to work. Good idea, bad idea? Why didn't returning the  
ILink with a scheme of http work?


Norman Franke
ASD, Inc.

On Nov 5, 2007, at 6:10 PM, Norman Franke wrote:

I have a Tapestry 4.1.3 form that I submit via https (using the  
port and scheme parameters for the form.) This seems to work great.


However, I then want to switch back to plain old http. While I can  
throw a redirect exception with an external URL, this doesn't  
preserve page state. In my case, if the user entered incorrect  
information, I need to display a message which is then lost.


How can I get Tapestry to return a normal http version after the  
submit (currently I'm just returning null from my listener)?


Norman Franke
ASD, Inc.




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



Re: T5: Loop with variables

2007-11-06 Thread Tobias Wehrum

Hi Howard,

thanks for the fast answer, IntegerRange solved the problem. Maybe you 
could suggest this in your tutorial.


Keep up the great work,
Tobias

Howard Lewis Ship schrieb:

The x...y syntax is limited to constant values for x and y.  I think a
future release of Tapestry will increase the power of the built-in
expression language, but for the moment, there you go.

The x..y syntax is ultimately converted into an instance of
IntegerRange, so one way would be to create a getter method that
created and returned an instance of IntegerRange directly, then change
the source parameter of the Loop component to point to this property.

However, IntegerRange is an internal class, so be aware that it is
free to change at any time.

Or you could return a ListInteger or int[] of the desired values
from the method.

On Nov 6, 2007 9:02 AM, Tobias Wehrum [EMAIL PROTECTED] wrote:
  

Hi all,

I am currently working with the tutorial 1 at the Tapestry 5 homepage (
http://tapestry.apache.org/tapestry5/tutorial1/hilo.html ).

Now, one of the further tasks there is As we guess, we're identifying
ranges of valid and invalid numbers. Can you only show valid guesses to
the user?
...so, setting a loop (which counted before simply from 1 to 10) to
count from one variable to another variable.

My guess was that I just have to replace
t:loop source=1..10 value=guess
(which works) with
t:loop source=${rangeStart}..${rangeEnd} value=guess

Well, seems to be wrong. I get the following application exception:

org.apache.tapestry.ioc.internal.util.TapestryException
Failure writing parameter value of component Guess:loop: Coercion of
1..10 to type int (via String -- Long, Long -- Integer) failed: For
input string: 1..10
(marked is the line shown above).

So, he DOES replace the variables right, but that doesn't seem to be the
same as 1..10 anymore.

How can I solve this problem?

Thanks in advance,
Tobias

-
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: Newbie: Help me on using Select Component

2007-11-06 Thread Eko S.W.
Yepz!
It definitely help!

Thanks!

I am planning too, but maybe in Indonesian...
-- 
Best wishes,
Eko SW
My Job : http://swdevsoftwareconsulting.blogspot.com


[t5] Creating an event to another page

2007-11-06 Thread Dan Adams
So I have a link that, when clicked, I want to fire an 'add' event in
some page. The way I'm currently doing this is as follows:

Page page = pageCache.get(nameofthepage);
Link link = page.createActionLink(page.getRootElement(), add, false);

When running this through PageTester I get an exception that the
component id is not found. I'm assuming this means that when using
action links you have to specify a component. Am I doing something
wrong? How do you fire a named event in other page?

-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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



Re: Problems Deploying Tapestry 5.0.6 to JBOSS Web

2007-11-06 Thread Charles Mason
On 06/11/2007, Howard Lewis Ship [EMAIL PROTECTED] wrote:
 Generally, these kinds of errors indicate that the classpath has two
 or more versions of the tapestry JARs.

Thanks for that. I had the Tapestry 4 jars in the servers lib
directory, which seems to have been interfering with Tapestry 5.

Charlie M

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



Best strategy to do custom server side validations and add errors

2007-11-06 Thread rkalsi

I need to do some validations across fields (e.g comparing password and
retypePassword fields on server). 

At the moment, I inject a validationTracker into form using @Environment
annotation.

And, then use it in onValidate method, to add errors using recordError
method.

Is this the correct way, or am I on the wrong track ?

I am very new to tapestry (first week), so any pointers will be appreciated.

--Thanks.
-- 
View this message in context: 
http://www.nabble.com/Best-strategy-to-do-custom-server-side-validations-and-add-errors-tf4760676.html#a13614831
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



[t5] Firing a page activate event with a different event name?

2007-11-06 Thread Dan Adams
How do you fire an event on a different page (like a normal page
activate event) but with a different name for the event (for instance,
'add' or 'edit' instead of 'activate')?

-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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



Re: Problems Deploying Tapestry 5.0.6 to JBOSS Web

2007-11-06 Thread Howard Lewis Ship
At one point I really thought about naming the packages
org.apache.tapestry5  (not org.apache.tapestry).

On Nov 6, 2007 10:46 AM, Charles Mason [EMAIL PROTECTED] wrote:
 On 06/11/2007, Howard Lewis Ship [EMAIL PROTECTED] wrote:
  Generally, these kinds of errors indicate that the classpath has two
  or more versions of the tapestry JARs.

 Thanks for that. I had the Tapestry 4 jars in the servers lib
 directory, which seems to have been interfering with Tapestry 5.

 Charlie M


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





-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind

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



Re: T5 how to control login state

2007-11-06 Thread Massimo Lusetti
On Nov 5, 2007 9:32 PM, Marcus [EMAIL PROTECTED] wrote:

 Hi Massimo,

 Can you post some code about this RequestFilter solution ?

It's really the same as with the Dispatcher both API has just one
method, thanks Howard!
So the example in the wiki is adaptable to the RequestFilter just implement the:
  boolean  service(Request request, Response response, RequestHandler handler)
method.

As Chris will update the wiki I'll try to contribute some.

-- 
Massimo
http://meridio.blogspot.com

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



Re: [t5] Firing a page activate event with a different event name?

2007-11-06 Thread Massimo Lusetti
On Nov 6, 2007 10:16 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote:

 This is not so cool ... I wonder if there's a way we could build a bit
 more of an event bus into Tapestry.  Now that Tapestry knows all the
 pages at startup, we could do some pretty sophisticated things:  Have
 annotations that register methods for application events, rather than
 page events.

So to interact with the flow of the application and render based on
event results...

 The framework could automatically load page instances in order to
 receive such events.

Could this be coming from other components and/or services only or
even from external calls like some sort of REST calls?

 It implies a bit more work at startup: all page classes will need to
 be transformed at startup, or at least, on first request.  It's an
 interesting idea though.

Very very interesting and very powerful...

-- 
Massimo
http://meridio.blogspot.com

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



Re: [t5] Creating an event to another page

2007-11-06 Thread Massimo Lusetti
On Nov 6, 2007 7:14 PM, Dan Adams [EMAIL PROTECTED] wrote:

 So I have a link that, when clicked, I want to fire an 'add' event in
 some page. The way I'm currently doing this is as follows:

 Page page = pageCache.get(nameofthepage);
 Link link = page.createActionLink(page.getRootElement(), add, false);

 When running this through PageTester I get an exception that the
 component id is not found. I'm assuming this means that when using
 action links you have to specify a component. Am I doing something
 wrong? How do you fire a named event in other page?

I've always used page activation context trying to re-factorize when
things get complicated, RequestPageCache is an internal service/class
so I've avoided dealing with it.
But this is something I've always wanted to know.

-- 
Massimo
http://meridio.blogspot.com

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



Re: [t5] Firing a page activate event with a different event name?

2007-11-06 Thread Howard Lewis Ship
You can get the page, cast it to ComponentResourcesAware to get the
ComponentResources.  At that point, you can invoke triggerEvent().

This is not so cool ... I wonder if there's a way we could build a bit
more of an event bus into Tapestry.  Now that Tapestry knows all the
pages at startup, we could do some pretty sophisticated things:  Have
annotations that register methods for application events, rather than
page events.

The framework could automatically load page instances in order to
receive such events.

It implies a bit more work at startup: all page classes will need to
be transformed at startup, or at least, on first request.  It's an
interesting idea though.

On Nov 6, 2007 12:30 PM, Dan Adams [EMAIL PROTECTED] wrote:
 How do you fire an event on a different page (like a normal page
 activate event) but with a different name for the event (for instance,
 'add' or 'edit' instead of 'activate')?

 --
 Dan Adams
 Senior Software Engineer
 Interactive Factory
 617.235.5857


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





-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind

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



Re: T4.1.3 loop index issues, migrating from 4.0.2

2007-11-06 Thread Dom Couldwell
Thanks for your help Jessie. Fix you applied to the 4.1.4-SNAPSHOT has fixed
our issue.

We have run into another issue in the migration which I'll post about
separately...

Dom Couldwell
Global Markets Research
+1(212)250-7082

---

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.


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



T4.1.4-SNAPSHOT issue migrating from 4.0.2 with PopupLinkSubmit

2007-11-06 Thread Dom Couldwell

We have a link on a page that does a submit and pops up a new window once the
form has been submitted.

The code is based on the PopupLinkSubmit example here:
http://wiki.apache.org/tapestry/PopupLinkSubmit

This all works fine on 4.0.2 but under 4.1.4-SNAPSHOT we get the following
error when the page opens up:

2007-11-06 18:35:10,197, ERROR,
[org.apache.tapestry.services.impl.HiveMindExpressionCompiler], line 227,
Error generating OGNL statements for expression class with root
{href=javascript:submitPopupLink('editorForm',
'PopupLinkSubmit','/GQ/Waiting.page');,
[EMAIL PROTECTED]/editor.editorForm], class=action,
popupLink=/GQ/Waiting.page, name=PopupLinkSubmit}
org.apache.hivemind.ApplicationRuntimeException: Unable to add method void
set(ognl.OgnlContext, java.lang.Object, java.lang.Object) to class
$ASTProperty_116174fa4f8: [source error]
put(java.lang.String,java.lang.Object) not found in java.lang.Object
  at
org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:278)
  at
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:217)
  at ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:523)
  at ognl.Ognl.compileExpression(Ognl.java:141)
...
Caused by: javassist.CannotCompileException: [source error]
put(java.lang.String,java.lang.Object) not found in java.lang.Object
  at javassist.CtBehavior.setBody(CtBehavior.java:347)
  at javassist.CtBehavior.setBody(CtBehavior.java:316)
  at
org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:272)
  ... 137 more
Caused by: compile error: put(java.lang.String,java.lang.Object) not found in
java.lang.Object
  at javassist.compiler.TypeChecker.atMethodCallCore(TypeChecker.java:716)
  at javassist.compiler.TypeChecker.atCallExpr(TypeChecker.java:681)
  at
javassist.compiler.JvstTypeChecker.atCallExpr(JvstTypeChecker.java:156)
  at javassist.compiler.ast.CallExpr.accept(CallExpr.java:45)
  at javassist.compiler.CodeGen.doTypeCheck(CodeGen.java:235)
  at javassist.compiler.CodeGen.atStmnt(CodeGen.java:323)
  at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
  at javassist.compiler.CodeGen.atStmnt(CodeGen.java:344)
  at javassist.compiler.ast.Stmnt.accept(Stmnt.java:49)
  at javassist.compiler.CodeGen.atMethodBody(CodeGen.java:285)
  at javassist.compiler.Javac.compileBody(Javac.java:212)
  at javassist.CtBehavior.setBody(CtBehavior.java:341)
  ... 139 more

Here's what's on the page:

  a href=#
 jwcid=@PopupLinkSubmit
 listener=listener:openEditorGraph
 popuppage=Waiting
 styleClass=action
 windowWidth=840
 windowHeight=550
Generate Plot
  /a


Here's PopupLinkSubmit.script

?xml version=1.0?
!DOCTYPE script PUBLIC
-//Apache Software Foundation//Tapestry Script Specification 3.0//EN
http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd;
script

input-symbol key=name class=java.lang.String required=yes/
input-symbol key=popupLink class=java.lang.String required=yes/
input-symbol key=form class=org.apache.tapestry.IForm required=yes/
input-symbol key=class class=java.lang.String required=no/

let key=href
  javascript:submitPopupLink('${form.name}', '${name}','${popupLink}');
/let

let key=class
  ${class}
/let

/script

Which comes out as:

  a href=javascript:submitPopupLink('editorForm',
'PopupLinkSubmit','/GQ/Waiting.page'); class=action
Generate Plot
  /a

The Javascript we're rendering in PopupLinkSubmit.java comes out as:

function submitPopupLink(form, elementId, url)
{
  var windowName = 'RDQGraphPopup';
  var randomNumber = Math.floor(Math.random()*1000);
  windowName = windowName+randomNumber;
  aWindow = window.open(url, windowName, 'width=840, height=800,
scrollbars=yes,resizable=yes', false);
  aWindow.focus();
  var form = document.getElementById(form);
  form.target=windowName;
  form.events.submit(elementId);
  form.target='';
}

I can supply the rest of the source if required but it's basically following
the example I mentioned at the top.

The rendered versions of the link and the Javascript are the same as under
4.0.2 but we get the above error in the back end and the link does not work.
We get a Javascript error stating that 'events' is null or not an object.
This is referring to this line:
  form.events.submit(elementId);
Which seems to be related to issues mentioned here
http://tapestry.apache.org/tapestry4.1/usersguide/upgrade4.0.html
Can anyone let me know what we should be doing instead of form.events.submit?
The documentation does not make it clear what the replacement is

If we fix the form.events issues will that also fix the error we see when the
page loads up or is that an unrelated error?

Any ideas would be appreciated.

Dom

---

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail 

Re: [Fwd: T5: basic CRUD pattern]

2007-11-06 Thread Andy Huhn
Thank you, Cesar!  My hair was saved just in the nick of time.

Andy

On Mon, 2007-11-05 at 22:50 -0600, César Lesc wrote:
 may be this post can help your hair.
 
 http://article.gmane.org/gmane.comp.java.tapestry.user/45921
 
 Cesar.
 
 -
 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: OGNL Methode called several times

2007-11-06 Thread Aaron Kaminsky

Hi all,

I am using the released 4.1.3 jar and I am seeing the same behavior.  
Does anyone know if this is supposed to be fixed, or if there is a way 
to turn it off or work around it?


Thanks,
Aaron Kaminsky

Gusti Benawi wrote:

Thanks for the info.

Could you tell me if there is anything I can do to temporary fix this 
until it is removed in a newer release?


Thanks in advanced,

Gusti Benawi

Andreas Andreou wrote:

No, it's ognl related - perhaps measuring performance or something like
that...

Jesse knows ;)

On 9/20/07, Renat Zubairov [EMAIL PROTECTED] wrote:

May be it's due to different phases inside rendering cycle?

On 20/09/2007, andyhot [EMAIL PROTECTED] wrote:

Indeed, the first invocation of an ognl expression is currently

happening

3 times.

I remember this is done on purpose, but i dont remember why. We'll
eventually remove this.

Gusti Benawi wrote:

Hello,

If i define a method, which is not abstract and call this via ognl,

then

somehow the whole site will be loaded several times (3-4 times). Is

this

a known issue? how to fix this?

below is my simple test


.html
span jwcid=Browse/


.page
?xml version=1.0 encoding=UTF-8?
!DOCTYPE page-specification PUBLIC
-//Apache Software Foundation//Tapestry Specification 4.1//EN
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_1.dtd;

page-specification 
class=org.tub.scampi.website.blog.ShowBlogEntries



   component id=Browse type=Insert
binding name=value value=amountOfPages/
  /component
/page-specification


.java
public int getAmountOfPages() {
  System.out.println(called);
  return 0;
}


As result, i get the String called 4 times in the console.
I am using tapestry-framework-4.1.3-SNAPSHOT.jar (from August i

think).

Thanks in advanced,

Gusti


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



--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


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




--
Best regards,
Renat Zubairov

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





--
See how easy it can be to move beyond spreadsheets for budgeting, 
forecasting and reporting! Try Adaptive Planning now: Trial Enterprise 
Edition | Use Free Express Edition


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



T5: Preparing a pristine object for re-use

2007-11-06 Thread Andy Huhn
Hello,

I have a DAO that I want to re-initialize every time it is injected
(that is, the DAO has state that I want to reset to make it pristine).
I thought I could do it in the constructor for the DAO, since I am
defining the service as follows in my AppModule:

public static AccountDAO buildAccountDAO( Session prmSn )
{
  return new AccountDAOImpl( prmSn );
}

But it appears the constructor is only being executed the first time the
DAO is injected, it is not being executed on subsequent injections.  Am
I missing something?

Thanks,
Andy

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



T4.1.3 - Upgrade Dojo

2007-11-06 Thread Henrik Schlanbusch
Hi

Is it possible to upgrade to Dojo 0.9 when using T4.1.3? 
And if it is possible, how do I do it?

Regards,
Henrik


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



T5 Hibernate Session Management Lock Problem

2007-11-06 Thread César Lesc
Hi All, I've been using the tapestry-hibernate module without a
problem until i faced the following scenario

I have a entity called profile with a many to one association with the
entity user.
suppose that i  have the profile P associated with some user U in the database
so if try to delete P a foreign key constraint will complaint and an
hibernateException will be throw.

The first time that i execute this operation i have no problems but
the second time the web server is not responding, and i have to kill
the process.

I think the connexion pool is locking to himself, but the problem
seems that when i detect the hibernateException and then with the
HibernateSessionManager call the abort() method, the session is not
discarted and when the ThreadHubCleanup call the commit, it tries to
execute the delete again.

by the way i am using SQL Server. and T 5.0.6

do you thing this is a bug or i am missing something?

Thanks in advance

Cesar.

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



T5: how to past two parameters to pageLink?

2007-11-06 Thread Angelo Chen

Hi,
  
here i pass one param, how to pass two? let's say : usr.name?

Thanks,

A.C.
-- 
View this message in context: 
http://www.nabble.com/T5%3A-how-to-past-two-parameters-to-pageLink--tf4762928.html#a13621953
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: how to past two parameters to pageLink?

2007-11-06 Thread Angelo Chen

found a old posting, return a list from a method in the page class, then
context=myList


Angelo Chen wrote:
 
 Hi,
   
 here i pass one param, how to pass two? let's say : usr.name?
 
 Thanks,
 
 A.C.
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-how-to-past-two-parameters-to-pageLink--tf4762928.html#a1361
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: T4.1.3 - Upgrade Dojo

2007-11-06 Thread Marcus.Schulte
This would mean changing tapestry's built-in javascript libraries since
they use dojo extensively and dojo's api changed incompatibly between
0.4.x and 0.9. I'd say this would be quite some work. 

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Henrik Schlanbusch
 Sent: Wednesday, November 07, 2007 5:45 AM
 To: users@tapestry.apache.org
 Subject: T4.1.3 - Upgrade Dojo
 
 Hi
 
 Is it possible to upgrade to Dojo 0.9 when using T4.1.3? 
 And if it is possible, how do I do it?
 
 Regards,
 Henrik
 
 
 -
 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]