ThreadCleanupHub removed in T 5.0.11-SNAPSHOT

2008-02-12 Thread Davor Hrg
In case anyone is using ThreadCleanupHub,
it is removed in favor of PerthreadManager
this was done while fixing problems that bug in java's
ThreadLocal caused.

Davor Hrg

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



Re: T5: Hibernate and threaded service

2008-02-12 Thread Davor Hrg
this is now fixed for T5.0.11
I've updated wiki to reflect the change.

Davor Hrg

On Feb 8, 2008 2:55 PM, Davor Hrg [EMAIL PROTECTED] wrote:
 uh,
 oh,

 it seems I've found a small workarround,
 not a definitive fix, but the TreadSource works with it..

 the wiki is updated

 http://wiki.apache.org/tapestry/Tapestry5HowToRunTaskInThread

 Davor Hrg


 On Feb 8, 2008 12:45 PM, Davor Hrg [EMAIL PROTECTED] wrote:
  this seems to be a JVM bug
  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5025230
 
  I tried it in Java 6 and code works just fine
 
  I'll look into it,
  an post a jira... also still trying to make a workarround for it
 
  Davor Hrg
 
 
  On Feb 8, 2008 1:29 AM, Angelo Chen [EMAIL PROTECTED] wrote:
  
   Hi Davor,
  
   That explains my problem,  this happens in 5.0.7 and 5.0.9, never tried it
   with 5.0.8
  
   Davor Hrg wrote:
   
I'm debuggin an example like yours,
and although I called ThreadCleanupHub.cleanup()
the list of listeners is empty... and HibernateSessionManager is not in 
it
   
something is very wrong
   
Davor Hrg
   
   
   
   
  
   --
   View this message in context: 
   http://www.nabble.com/T5%3A-Hibernate-and-threaded-service-tp15328171p15346983.html
  
   Sent from the Tapestry - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 


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



Re: [Hint] Pages in subpackages not loaded, if page and subpackage have the same name

2008-02-12 Thread nillehammer
Hi Guys,

I agree with Howard. I think tapestry's behaviour of mapping URLs to page 
classes is good enough to be left as is. It is pretictable and easy to use... 
at least looking back from now.

The day I had the problem I was a little confused not having totally 
understood everything. A hint in the doc would have spared me some hours of 
tumbling around. And as I neither have found anything covering my problem in 
the maillist, I wanted to share my experience so that future users would find 
my mail and get a bit quicker past this silly mistake than me.

So again dear future user:
Do not name a Page class the same like a subpackage of the package in which 
the class resides (or the other way round). This will lead to pages in 
subpackages (i.e. subpages) not loading. Read again the topic on activation 
context in the docs and you will understand why ;-)

Kind regards and further enjoy the use of Tapestry,
nillehammer

Am Dienstag, 12. Februar 2008 01:01 schrieb Howard Lewis Ship:
 I'm really opposed to this.  It is One More Choice to Make and that's
 a bad thing.  Addiing lots of options that can be enabled or disabled
 is a cop out, if a feature needs to be disabled, it is likely broken.
 I'm only leaving in the optimized request stuff so that I can prove
 its not worth using (!).

 I want there to be a rigid, predictable set of rules for mapping
 between URLs and class names, not an endless series of decisions. I'm
 picturing this from a support angle, as in, limiting the number of
 questions I'd have to ask a prospective client.

 Some amount of configuration and tuning is unavoidable, but I think
 making major behaviors of the application optional will ultimately be
 worse than making people work around, or otherwise adapt to,
 Tapestry's naming rules.  And it gets worse for IDEs that want to keep
 up with Tapestry.

 On Feb 11, 2008 1:08 PM, Daniel Jue [EMAIL PROTECTED] wrote:
  How about a flag in the app module to just turn off the friendly page
  renaming altogether?  Then if someone wants to have a
  page structure like
 
  report/status
  report/reportstatus
  report/statusreport
  report/statusreport1
 
  They can all resolve to unique pages.
 
  For now, I'll add the contents of my old post to the Caveats wiki
  http://wiki.apache.org/tapestry/Tapestry5Caveats
 
  On Feb 11, 2008 3:36 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote:
   I agree this is a tripping point that needs addressing.
  
   I tend to organize things a little differently, so I'd have an orders
   package, with ListOrders, ViewOrders and EditOrders classes, thus:
  
   http://localhost/orders/list
   http://localhost/orders/view/101
   http://localhost/orders/edit/101
  
   On Feb 11, 2008 10:07 AM, Kevin Menard [EMAIL PROTECTED] wrote:
I ran into the same problem early on, and eventually just changed the
  
   name
  
of my pages.  What I wanted was to be able to have a URL hierarchy
like
  
   the
  
following:
   
http://localhost/orders
http://localhost/orders/view/101
http://localhost/orders/edit/101
   
There was no clear way to have an index page, like Start functions
as
  
   in
  
the root package.  So, I naturally added an Orders page.  All
  
   subsequent
  
page accesses were viewed as activation context, however, so that
fell apart.
   
I sorta forgot about all this and hoped it had been fixed.  If not,
it'd
  
   be
  
great if it could be, as it seems to be a tripping point for a lot of
people.
   
--
Kevin
   
   
On 2/10/08 3:52 PM, in article
[EMAIL PROTECTED], Howard
  
   Lewis
  
Ship [EMAIL PROTECTED] wrote:
 That's a very good point; I think it indicates that the approach
 taken by Tapestry when recognizing page names is too simplistic.
 Instead of trying to match forward, it should match backward, or
 perhaps create a Trie structure from the available page names.†

 On Feb 9, 2008 1:37 PM, nillehammer [EMAIL PROTECTED] wrote:
 Hello fellow users,

 I have just faced a little problem. I have searched  the online
  
   documentation
  
 of  tapestry 5, this maillist and google for a solution. As I did
 not
  
   find
  
 anything apropriate, I think this might be worth a mail.

 I obviously chose a very stupid packages/classes hirarchy:
 eu.domain.app.pages.Menu.java
 eu.domain.app.pages.menu.Subpage1.java
 eu.domain.app.pages.menu.Subpage2.java

 This results in logical page names (and corresponding URLs):
 menu
 menu/subpage1
 menu/subpage2

 Now clicking a link ...menu/subpage1 or .../menu/subpage2 neither
 of
  
   the two
  
 pages ever loads. The page named menu allways shows up. I guess
 this behaviour occours, because the remaining part of the URL
 after
  
   menu/ is
  
 handed to the page named menu as context rather than requesting
 the
  
   subpages.
  
 So do not do this.

   

Re: T5: How to create an external URL to a Tapestry page?

2008-02-12 Thread SergeEby

Hey,

Just return a URL object

http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html

/Serge


Travis McLeskey wrote:
 
 For example, if one wanted to generate a complete URL (including  
 protocol, server name, and port) and send it in an email.
 
 I tried ComponentResources.createActionLink() and  
 Component.createPageLink(), but the Link objects returned by those  
 methods do not include the server name, etc.
 
 In Tap4 there was the ExternalService. I'm sure there is a Tap5  
 equivalent...I just can't find it.
 
 Thanks,
 Travis
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-How-to-create-an-external-URL-to-a-Tapestry-page--tp15436877p15446980.html
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: Ivy dependency problem for Selenium

2008-02-12 Thread Howard Lewis Ship
... and for the second time I've given up on the upgrade.  Maybe
Selenium is simply not the right tool.
http://jira.openqa.org/browse/SEL-523


On Feb 12, 2008 10:10 AM, Howard Lewis Ship [EMAIL PROTECTED] wrote:
 I'm in the process of upgrading to Selenium 0.9.2, since it adds some
 features that will help with some Ajax testing (I hope).

 I'm sorry but it will NOT go smoothly, Selenium is a cranky piece of
 junk (and still the best tool for the job I've found so far).  It
 looks like xpath support changed between the releases and a lot of my
 tests need to be tweaked.


 On Feb 8, 2008 1:47 PM, Bill Holloway [EMAIL PROTECTED] wrote:
  Yeah, I just knocked it out with an exclude tag in ivy.  I'll go
  grab it when I need it.
 
  Bill
 
 
  On Feb 8, 2008 7:37 AM, Kevin Menard [EMAIL PROTECTED] wrote:
   I'm not sure, since I punted ivy a while ago, but I think I had to add the
   selenium dependency manually.  The selenium artifacts are not in the 
   public
   repositories, and ivy may very well not be looking at all the dependencies
   declared in the tapestry POM.
  
   --
   Kevin
  
  
   On 2/7/08 8:18 PM, in article
   [EMAIL PROTECTED], Bill Holloway
  
   [EMAIL PROTECTED] wrote:
  
So I have ivy.xml written as
   
ivy-module version=2.0
info organisation=apache module=hello-ivy/
dependencies
dependency org=org.apache.tapestry name=tapestry-core
rev=5.0.9/
/dependencies
/ivy-module
   
and run the corresponding ant target with ivy:retrieve / in it.
Everything is fine up until the Selenium dependency tries to come in.
Then I get
   
[ivy:retrieve]
http://repo1.maven.org/maven2/org/openqa/selenium/server/selenium-server/0.8.1
/selenium-server-0.8.1.jar
[ivy:retrieve]  ::
[ivy:retrieve]  ::  UNRESOLVED DEPENDENCIES ::
[ivy:retrieve]  ::
[ivy:retrieve]  ::
org.openqa.selenium.client-drivers#selenium-java-client-driver;0.8.1:
not found
[ivy:retrieve]  ::
org.openqa.selenium.server#selenium-server;0.8.1: not found
[ivy:retrieve]  ::
   
What's the best way to solve this?
   
Bill
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 Howard M. Lewis Ship

 Creator Apache Tapestry and Apache HiveMind




-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: Ivy dependency problem for Selenium

2008-02-12 Thread Howard Lewis Ship
I'm in the process of upgrading to Selenium 0.9.2, since it adds some
features that will help with some Ajax testing (I hope).

I'm sorry but it will NOT go smoothly, Selenium is a cranky piece of
junk (and still the best tool for the job I've found so far).  It
looks like xpath support changed between the releases and a lot of my
tests need to be tweaked.

On Feb 8, 2008 1:47 PM, Bill Holloway [EMAIL PROTECTED] wrote:
 Yeah, I just knocked it out with an exclude tag in ivy.  I'll go
 grab it when I need it.

 Bill


 On Feb 8, 2008 7:37 AM, Kevin Menard [EMAIL PROTECTED] wrote:
  I'm not sure, since I punted ivy a while ago, but I think I had to add the
  selenium dependency manually.  The selenium artifacts are not in the public
  repositories, and ivy may very well not be looking at all the dependencies
  declared in the tapestry POM.
 
  --
  Kevin
 
 
  On 2/7/08 8:18 PM, in article
  [EMAIL PROTECTED], Bill Holloway
 
  [EMAIL PROTECTED] wrote:
 
   So I have ivy.xml written as
  
   ivy-module version=2.0
   info organisation=apache module=hello-ivy/
   dependencies
   dependency org=org.apache.tapestry name=tapestry-core
   rev=5.0.9/
   /dependencies
   /ivy-module
  
   and run the corresponding ant target with ivy:retrieve / in it.
   Everything is fine up until the Selenium dependency tries to come in.
   Then I get
  
   [ivy:retrieve]
   http://repo1.maven.org/maven2/org/openqa/selenium/server/selenium-server/0.8.1
   /selenium-server-0.8.1.jar
   [ivy:retrieve]  ::
   [ivy:retrieve]  ::  UNRESOLVED DEPENDENCIES ::
   [ivy:retrieve]  ::
   [ivy:retrieve]  ::
   org.openqa.selenium.client-drivers#selenium-java-client-driver;0.8.1:
   not found
   [ivy:retrieve]  ::
   org.openqa.selenium.server#selenium-server;0.8.1: not found
   [ivy:retrieve]  ::
  
   What's the best way to solve this?
  
   Bill
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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





-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Passing ApplicationObject to BuilderFactory - Tap 4.1.2

2008-02-12 Thread [EMAIL PROTECTED]

Im trying to create one instance of my ServiceManager to be initialized once
and used throughout my pages. The initialization of both my FooFactory and
the ServiceManager are hairy so I need to pass them through a Wrapper that
initializes everything. 

What Im trying to do is pass the ASO from the
tapestry.state.ApplicationObjects as an object into the StateObjectFactory
to be initialized. This is what I have so far but I am getting 

Unable to convert type 'tapestry.state.ApplicationObjects.servicemanager' to
a Java class, either as is, or in package com.myco.weblogin

?xml version=1.0?
module id=com.myco.weblogin version=1.0.0
  contribution configuration-id=tapestry.state.ApplicationObjects
state-object name=servicemanager scope=application
  create-instance class=com.myco.weblogin.StaticServiceManager/
/state-object
state-object name=foo scope=application
   invoke-factory object=service:FooFactory/
/state-object
  /contribution

  service-point id=FooFactory
interface=org.apache.tapestry.engine.state.StateObjectFactory
invoke-factory
  construct class=com.myco.weblogin.StoreWrapper
set-service property=servletContext
service-id=tapestry.globals.ServletContext/
set-object property=serviceManager
value=instance:tapestry.state.ApplicationObjects.servicemanager/
  /construct
/invoke-factory
  /service-point
/module

-- 
View this message in context: 
http://www.nabble.com/Passing-ApplicationObject-to-BuilderFactory---Tap-4.1.2-tp15450422p15450422.html
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: i18n in javascript

2008-02-12 Thread Christian Haselbach

Quoting learner [EMAIL PROTECTED]:


onclick=javascript:return confirm('${message:key_in_my_property_file}');

i try to use key in javascript like above but failed.
how to use key in javascript?


There are several thing to consider here.
1) You cannot use the message service directly from Javascript, but  
you can create Javascript with the message service (the difference is  
subtle, but important).
2) I do not know of any ${message: } notation (which Tapestry version  
are you using?) I only know the message: prefix binding, which is not  
usable here.

3) If you are using this in a template, you must use the ognl: prefix.

Try the following:
a jwcid=@Any onclick=ognl:'javascript:return confirm(\'' +  
messages.getMessage('key_in_prop') + '\')'


Or for less confusing string escapes do:
a jwcid=@Any onclick=ognl:myLocalizeJavascript

And in the corresponding class:
---
@Message(key_in_prop)
public String getJsMessage();

public String getMyLocalizedJavascript() {
  return String return confirm(' + getJsMessage() + ');
}

Regards,
Christian

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



Re: i18n in javascript

2008-02-12 Thread Michael Courcy

Do you use onclick on a component or on a simple html element ?

learner a écrit :

onclick=javascript:return confirm('${message:key_in_my_property_file}');

i try to use key in javascript like above but failed. 
how to use key in javascript?



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


  



--
Michael Courcy
http://courcy.blogspot.com
http://courcy-en.blogspot.com


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



T4.1.2 CrossTabs problem

2008-02-12 Thread VitalyA

My report uses scripted data set.
I want to add Cross Tab component to the report.
I define Data Cube, which uses scripted data set.
I have following exception when I run my application:
- /olap/cube_HistoryCube doesnt exist
/olap/cube_HistoryCube doesn't exist ( 1 time(s) )
detail : org.eclipse.birt.data.engine.core.DataException:
/olap/cube_HistoryCube doesnt exist
 at
org.eclipse.birt.data.engine.olap.impl.query.CubeQueryResults.getCubeCursor(CubeQueryResults.java:91)
 at
org.eclipse.birt.report.engine.data.dte.CubeResultSet.init(CubeResultSet.java:78)

What is the problem?
-- 
View this message in context: 
http://www.nabble.com/T4.1.2-CrossTabs-problem-tp15434368p15434368.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



i18n in javascript

2008-02-12 Thread learner
onclick=javascript:return confirm('${message:key_in_my_property_file}');

i try to use key in javascript like above but failed. 
how to use key in javascript?


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



Re: T5: Hibernate and threaded service

2008-02-12 Thread Angelo Chen

that's good, i have been using ur work around for the 5.09 version. the
strange thing about this bug is, sometimes it works even without that work
around, but just to be sure, I use the work around all the time, will try
that 5.0.11 when it is released. thanks.


Davor Hrg wrote:
 
 this is now fixed for T5.0.11
 I've updated wiki to reflect the change.
 
 Davor Hrg
 
 On Feb 8, 2008 2:55 PM, Davor Hrg [EMAIL PROTECTED] wrote:
 uh,
 oh,

 it seems I've found a small workarround,
 not a definitive fix, but the TreadSource works with it..

 the wiki is updated

 http://wiki.apache.org/tapestry/Tapestry5HowToRunTaskInThread

 Davor Hrg


 On Feb 8, 2008 12:45 PM, Davor Hrg [EMAIL PROTECTED] wrote:
  this seems to be a JVM bug
  http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5025230
 
  I tried it in Java 6 and code works just fine
 
  I'll look into it,
  an post a jira... also still trying to make a workarround for it
 
  Davor Hrg
 
 
  On Feb 8, 2008 1:29 AM, Angelo Chen [EMAIL PROTECTED] wrote:
  
   Hi Davor,
  
   That explains my problem,  this happens in 5.0.7 and 5.0.9, never
 tried it
   with 5.0.8
  
   Davor Hrg wrote:
   
I'm debuggin an example like yours,
and although I called ThreadCleanupHub.cleanup()
the list of listeners is empty... and HibernateSessionManager is
 not in it
   
something is very wrong
   
Davor Hrg
   
   
   
   
  
   --
   View this message in context:
 http://www.nabble.com/T5%3A-Hibernate-and-threaded-service-tp15328171p15346983.html
  
   Sent from the Tapestry - User mailing list archive at Nabble.com.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 

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

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Hibernate-and-threaded-service-tp15328171p15433651.html
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 create an external URL to a Tapestry page?

2008-02-12 Thread Howard Lewis Ship
The URLs are very predictable.  The biggest issue is with the
hostname, it is often easier for your application to provide the
correct URL than Tapestry, as the information about server name that
it gets from the Servlet API is often wrong, referring instead to the
internal server forwarded to by the firewall (aka the reverse proxy)
which may not be a server visible to the end user.

If you have a Link instance, you can invoke toAbsoluteURI() to get the
full URI path (that is, everything after the host name portion of the
URL).

As pointed out, there are methods on ComponentResources for obtaining
such Link objects.


On Feb 12, 2008 4:54 PM, SergeEby [EMAIL PROTECTED] wrote:

 Hey,

 Just return a URL object

 http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html

 /Serge



 Travis McLeskey wrote:
 
  For example, if one wanted to generate a complete URL (including
  protocol, server name, and port) and send it in an email.
 
  I tried ComponentResources.createActionLink() and
  Component.createPageLink(), but the Link objects returned by those
  methods do not include the server name, etc.
 
  In Tap4 there was the ExternalService. I'm sure there is a Tap5
  equivalent...I just can't find it.
 
  Thanks,
  Travis
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
 http://www.nabble.com/T5%3A-How-to-create-an-external-URL-to-a-Tapestry-page--tp15436877p15446980.html
 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

Creator Apache Tapestry and Apache HiveMind

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



Transformation exceptions

2008-02-12 Thread Peter Stavrinides

Hi all,

I am running into the occasional transformation exception, which is easy 
enough to correct with some minor refactoring... but just for interest 
sake take a look at this code snippet:


/** My data object used in a beanform */
   @Persist
   private BeanFormData myBeanFormObj_ = new BeanFormData();

   /**
* The begin render method.
*/
   @BeginRender
   public void beginRender() {
   createUserData();
   }

private void createUserData(){
   try {
  //some initialization code for the form
   myBeanFormObj_.setSelectedTitle(getTitle());
   myBeanFormObj_.setFullName(getFirstName() +   + 
getLastName());

   myBeanFormObj_.setEmail(getEmail());
  
   } catch (Exception e) {

//error handling here
   }
   }



This all works just fine, but occasionaly when I inline the code instead 
in BeginRender, I get a transformation exception and have to refactor my 
code...  its not something I can pinpoint exactly, but it seems somehow 
that objects accessible to the beanform/component in the page come into 
conflict with my initialization code for these objects... somehow the 
error is averted when using a call to private method ? well I hope this 
example is clear enough and can maybe help someone... thanks for all the 
hard work on Tapestry, I'm really starting to love this framework.


Cheers,
Peter




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



Re: Alias or AliasOverrides?

2008-02-12 Thread Hugo Palma
I think the description here is very good
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/services/Alias.html

It's pretty much the same concept as ApplicationDefaults and
FactoryDefaults, being that in this case the Alias service would be the
FactoryDefaults and the AliasOverrides the ApplicationDefaults.

Robin Helgelin wrote:
 Hi,

 Can someone, Howard?, explain to difference between contributing a
 service to Alias or AliasOverrides?

   

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



Alias or AliasOverrides?

2008-02-12 Thread Robin Helgelin
Hi,

Can someone, Howard?, explain to difference between contributing a
service to Alias or AliasOverrides?

-- 
regards,
Robin

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



Re: T5: Email Validator

2008-02-12 Thread Hugo Palma
I agree.
That's why i created this issue
https://issues.apache.org/jira/browse/TAPESTRY-2143

Renat Zubairov wrote:
 Thank you, Hugo for the help. I was also checking the T5 documentation and
 found that default (recommended) way for email validation
 is roll-your-own validation based on the regular expressions that are stored
 inside properties.
 This is really, really innovative and unusual way to do that for me
 (although I'm a T4 user) because:

 1. Properties/Resources bundle are used for externationalization of the
 strings/resources and not for defining validation rules, storing regular
 expression in properties is abnormal way to achieve validation, as a new T5
 user I will never look to the properties file for validation rules.

 2. Email validation rules are the same for all languages therefore using DRY
 we shall put it only in one resource bundle, however inconsistent properties
 in resource bundles is a bad sign and with some validation rules it could
 even lead to the broken build.

 3. Although I think having different validation rules for different
 languages is a very good idea and might be useful but IMHO you aren't gonna
 need it in the most of the cases.

 I think we need a specific email validator that can be optionally
 parametrized by the key of the error message.

 Renat

 On 11/02/2008, Hugo Palma [EMAIL PROTECTED] wrote:
   
 This thread should help you:

 http://www.mail-archive.com/users@tapestry.apache.org/msg20213.html

 Renat Zubairov wrote:
 
 Hello T5 users,
 What is the default approach of handling email validation inside the
 form/beanEditForm?




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


 


   


Re: T5: Email Validator

2008-02-12 Thread Marcus
Hi Renat,

We can use validation inside properties, on the client side.
But we still can use:

void onValidateFromMyEmailField(String cliente) throws ValidationException
on the server side.

Marcus