T5: Can Grid support custom label in UTF-8 encoding?

2008-03-24 Thread yuan gogo
I have UserList.java UserList.tml UserList.properties.
In UserList I used a grid to show all registerd users and I'd like to custom
the Grid header.
So I defined some column titles in UserList.properties (of course, in
Chinese and the file is UTF-8 encoding), but it can not be displayed
correctly. English chars has no such problems.

Anybody helps?

TIA and Best regards!


RE: T5: Problems with Tapestry5-Acegi

2008-03-24 Thread Jonathan Barker
Jacob,


It's definitely possible.

I'm also using Spring, and Hibernate, but this time around, I'm using an
InMemoryDAO and LDAP (Active Directory) for authentication.

By comparing the configuration I did on a Spring-driven T4 Acegi integration
with the code in tapestry5-acegi, I finally started to understand both Acegi
and tapestry-ioc.

You might want to back away from the Hibernate DAO initially just to get the
basics running.  You can then either replace InMemoryDao or just add on your
own Hibernate DAO.

The in-memory dao gives something great for development, so here's what I
did with my AppModule:

1) clear the password salt by contributing to application defaults (easier
for development with the InMemoryDao:

public static void contributeApplicationDefaults(
MappedConfiguration configuration)
{

configuration.add("acegi.loginform.url", "/login");
configuration.add("acegi.password.salt", "");
configuration.add("acegi.accessDenied.url", "/SecurityException");

}

2) configure the InMemoryDaoImpl

public final UserDetailsService buildInMemoryDaoImpl() throws Exception
{
InMemoryDaoImpl dao = new InMemoryDaoImpl();
Properties props = new Properties();
props.put("user","user,ROLE_USER");
props.put("supervisor","supervisor,ROLE_SUPERVISOR");
props.put("admin","admin,ROLE_ADMIN");
UserMap userMap = new UserMap();
UserMapEditor.addUsersFromProperties(userMap, props);
dao.setUserMap(userMap);
dao.afterPropertiesSet();
return dao;
}

3) contribute a provider manager (I've left in my ldap stuff so you can see
how additional auth methods can be added -- just delete any mention of LDAP
below):

public static void contributeProviderManager(
OrderedConfiguration configuration,
@InjectService("DaoAuthenticationProvider") AuthenticationProvider
daoAuthenticationProvider, @InjectService("LdapAuthenticationProvider")
AuthenticationProvider ldapAuthenticationProvider){
 
configuration.add("daoAuthenticationProvider",daoAuthenticationProvider);
 
configuration.add("ldapAuthenticationProvider",ldapAuthenticationProvider);
}



> -Original Message-
> From: Jacob Bergoo [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 24, 2008 10:29 PM
> To: users@tapestry.apache.org
> Subject: RE: T5: Problems with Tapestry5-Acegi
> 
> 
> Thanks Jonathan for your quick answer...
> accually I am Using T5, Spring 2.5.1, Hibernate 3.2 so I am looking for a
> solution where I can Use the Acegi for the security and using the @Secure
> annotation for pages/methos... I have seen another wiki page that shows on
> how to set up the Acegi to work with Spring Application Context file, but
> it
> stated that it didn't work with @Secure annotations... so that means that
> all the configurations are done by mapping folder structures and page
> names
> with uer roles... I rather not do thatI want to be able so see on the
> pages I am working on what roles that are allowed for that page...
> 
> So Is there a way of making Tapestry5-Acegi project for my configuration
> or
> do I need to choose the less wanted solution?
> 
> Thanks again for your help,
> Jacob
> --
> View this message in context: http://www.nabble.com/T5%3A-Problems-with-
> Tapestry5-Acegi-tp16266687p16267063.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]
> 
> 
> __ Information from ESET NOD32 Antivirus, version of virus
> signature database 2969 (20080324) __
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 2969 (20080324) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


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



RE: T5: Problems with Tapestry5-Acegi

2008-03-24 Thread Jacob Bergoo

Thanks Jonathan for your quick answer...
accually I am Using T5, Spring 2.5.1, Hibernate 3.2 so I am looking for a
solution where I can Use the Acegi for the security and using the @Secure
annotation for pages/methos... I have seen another wiki page that shows on
how to set up the Acegi to work with Spring Application Context file, but it
stated that it didn't work with @Secure annotations... so that means that
all the configurations are done by mapping folder structures and page names
with uer roles... I rather not do thatI want to be able so see on the
pages I am working on what roles that are allowed for that page...

So Is there a way of making Tapestry5-Acegi project for my configuration or
do I need to choose the less wanted solution?

Thanks again for your help,
Jacob
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Problems-with-Tapestry5-Acegi-tp16266687p16267063.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]



T5: current row as zone?

2008-03-24 Thread Angelo Chen

I have grid and an ActionLink is embedded, I'd like to specify a zone for the
actionLink so that when it is clicked, the current row will be refreshed, is
this possible? Thanks



  Send 

 
-- 
View this message in context: 
http://www.nabble.com/T5%3A-current-row-as-zone--tp16267038p16267038.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: Problems with Tapestry5-Acegi

2008-03-24 Thread Jonathan Barker

The Tapestry5-Acegi project is set up to use Hibernate (hence the Session).
Tapestry-ioc is trying to inject the Session, but apparently you don't have
a Session service available.

Do you want to use a Hibernate-based DAO for authentication? Consider using
the tapestry-hibernate package.

Jonathan


> -Original Message-
> From: Jacob Bergoo [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 24, 2008 9:54 PM
> To: users@tapestry.apache.org
> Subject: T5: Problems with Tapestry5-Acegi
> 
> 
> Hi All,
> I have a problem when I try to integrat the Tapestry5-Acegi project into
> my
> application.
> I copied the code from the example application from tapestry5=acegi
> projects
> website and when I tried to run it I got this exception:
> 
> 20:44:55.150 INFO   [main]
> org.springframework.web.context.ContextLoader.initWebApplicationContext(Co
> ntextLoader.java:209)
> >09> Root WebApplicationContext: initialization completed in 4104 ms
> [ERROR] ApplicationInitializer Construction of service
> ApplicationInitializer failed: Error invoking service builder method
> org.apache.tapestry.services.TapestryModule.build(Logger, List) (at
> TapestryModule.java:895) (for service 'ApplicationInitializer'): Error
> invoking service contribution method
> com.mycompany.webshop.services.AppModule.contributeApplicationInitializer(
> OrderedConfiguration,
> PasswordEncoder, SaltSource, Session): No service implements the interface
> org.hibernate.Session.
> java.lang.RuntimeException: Error invoking service builder method
> org.apache.tapestry.services.TapestryModule.build(Logger, List) (at
> TapestryModule.java:895) (for service 'ApplicationInitializer'): Error
> invoking service contribution method
> com.mycompany.webshop.services.AppModule.contributeApplicationInitializer(
> OrderedConfiguration,
> PasswordEncoder, SaltSource, Session): No service implements the interface
> org.hibernate.Session.
>   at
> org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(
> ServiceBuilderMethodInvoker.java:88)
>   at
> org.apache.tapestry.ioc.internal.SingletonServiceLifecycle.createService(S
> ingletonServiceLifecycle.java:29)
>   at
> org.apache.tapestry.ioc.internal.LifecycleWrappedServiceCreator.createObje
> ct(LifecycleWrappedServiceCreator.java:54)
>   at
> org.apache.tapestry.ioc.internal.InterceptorStackBuilder.createObject(Inte
> rceptorStackBuilder.java:51)
>   at
> org.apache.tapestry.ioc.internal.RecursiveServiceCreationCheckWrapper.crea
> teObject(RecursiveServiceCreationCheckWrapper.java:61)
>   at
> org.apache.tapestry.ioc.internal.services.JustInTimeObjectCreator.createOb
> ject(JustInTimeObjectCreator.java:66)
>   at
> $ApplicationInitializer_118e39c0518._delegate($ApplicationInitializer_118e
> 39c0518.java)
>   at
> $ApplicationInitializer_118e39c0518.initializeApplication($ApplicationInit
> ializer_118e39c0518.java)
>   at
> org.apache.tapestry.services.TapestryModule$14.initializeApplication(Tapes
> tryModule.java:964)
>   at
> $ServletApplicationInitializer_118e39c04fc.initializeApplication($ServletA
> pplicationInitializer_118e39c04fc.java)
>   at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:85)
>   at
> org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
>   at
> org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebAppl
> icationHandler.java:310)
>   at
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationCont
> ext.java:509)
>   at org.mortbay.util.Container.start(Container.java:72)
>   at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
>   at org.mortbay.util.Container.start(Container.java:72)
>   at
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
>   at
> com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
>   at
> com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
> Caused by: java.lang.RuntimeException: Error invoking service contribution
> method
> com.mycompany.webshop.services.AppModule.contributeApplicationInitializer(
> OrderedConfiguration,
> PasswordEncoder, SaltSource, Session): No service implements the interface
> org.hibernate.Session.
>   at
> org.apache.tapestry.ioc.internal.ContributionDefImpl.invokeMethod(Contribu
> tionDefImpl.java:107)
>   at
> org.apache.tapestry.ioc.internal.ContributionDefImpl.contribute(Contributi
> onDefImpl.java:62)
>   at
> org.apache.tapestry.ioc.internal.RegistryImpl.addToOrderedConfiguration(Re
> gistryImpl.java:501)
>   at
> org.apache.tapestry.ioc.internal.RegistryImpl.getOrderedConfiguration(Regi
> stryImpl.java:367)
>   at
> org.apache.tapestry.ioc.internal.ServiceResourcesImpl.getOrderedConfigurat
> ion(ServiceResourcesImpl.java:88)
>   at
> org.apache.tapestry.ioc.internal.AbstractServiceCreator.addOrderedConfigur
> ationParameter(AbstractServiceCreator.java:131)
>   at
> org.apache.tapestry.ioc.inte

T5: referring to default prototype.js

2008-03-24 Thread Angelo Chen

Hi,

How to refer to the default prototype.js come with t5? i use this, not
really t5's way:

 

this works, but i have to duplicate the prototype.js. any idea? Thanks.

A.C.
-- 
View this message in context: 
http://www.nabble.com/T5%3A-referring-to-default-prototype.js-tp16266780p16266780.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]



T5: Problems with Tapestry5-Acegi

2008-03-24 Thread Jacob Bergoo

Hi All, 
I have a problem when I try to integrat the Tapestry5-Acegi project into my
application.
I copied the code from the example application from tapestry5=acegi projects
website and when I tried to run it I got this exception:

20:44:55.150 INFO   [main]
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:209)
>09> Root WebApplicationContext: initialization completed in 4104 ms
[ERROR] ApplicationInitializer Construction of service
ApplicationInitializer failed: Error invoking service builder method
org.apache.tapestry.services.TapestryModule.build(Logger, List) (at
TapestryModule.java:895) (for service 'ApplicationInitializer'): Error
invoking service contribution method
com.mycompany.webshop.services.AppModule.contributeApplicationInitializer(OrderedConfiguration,
PasswordEncoder, SaltSource, Session): No service implements the interface
org.hibernate.Session.
java.lang.RuntimeException: Error invoking service builder method
org.apache.tapestry.services.TapestryModule.build(Logger, List) (at
TapestryModule.java:895) (for service 'ApplicationInitializer'): Error
invoking service contribution method
com.mycompany.webshop.services.AppModule.contributeApplicationInitializer(OrderedConfiguration,
PasswordEncoder, SaltSource, Session): No service implements the interface
org.hibernate.Session.
at
org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:88)
at
org.apache.tapestry.ioc.internal.SingletonServiceLifecycle.createService(SingletonServiceLifecycle.java:29)
at
org.apache.tapestry.ioc.internal.LifecycleWrappedServiceCreator.createObject(LifecycleWrappedServiceCreator.java:54)
at
org.apache.tapestry.ioc.internal.InterceptorStackBuilder.createObject(InterceptorStackBuilder.java:51)
at
org.apache.tapestry.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:61)
at
org.apache.tapestry.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:66)
at
$ApplicationInitializer_118e39c0518._delegate($ApplicationInitializer_118e39c0518.java)
at
$ApplicationInitializer_118e39c0518.initializeApplication($ApplicationInitializer_118e39c0518.java)
at
org.apache.tapestry.services.TapestryModule$14.initializeApplication(TapestryModule.java:964)
at
$ServletApplicationInitializer_118e39c04fc.initializeApplication($ServletApplicationInitializer_118e39c04fc.java)
at org.apache.tapestry.TapestryFilter.init(TapestryFilter.java:85)
at org.mortbay.jetty.servlet.FilterHolder.start(FilterHolder.java:71)
at
org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(WebApplicationHandler.java:310)
at
org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:509)
at org.mortbay.util.Container.start(Container.java:72)
at org.mortbay.http.HttpServer.doStart(HttpServer.java:708)
at org.mortbay.util.Container.start(Container.java:72)
at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:282)
at com.iw.plugins.jettyrunner.PluginRunner.launch(PluginRunner.java:104)
at com.iw.plugins.jettyrunner.PluginRunner.main(PluginRunner.java:75)
Caused by: java.lang.RuntimeException: Error invoking service contribution
method
com.mycompany.webshop.services.AppModule.contributeApplicationInitializer(OrderedConfiguration,
PasswordEncoder, SaltSource, Session): No service implements the interface
org.hibernate.Session.
at
org.apache.tapestry.ioc.internal.ContributionDefImpl.invokeMethod(ContributionDefImpl.java:107)
at
org.apache.tapestry.ioc.internal.ContributionDefImpl.contribute(ContributionDefImpl.java:62)
at
org.apache.tapestry.ioc.internal.RegistryImpl.addToOrderedConfiguration(RegistryImpl.java:501)
at
org.apache.tapestry.ioc.internal.RegistryImpl.getOrderedConfiguration(RegistryImpl.java:367)
at
org.apache.tapestry.ioc.internal.ServiceResourcesImpl.getOrderedConfiguration(ServiceResourcesImpl.java:88)
at
org.apache.tapestry.ioc.internal.AbstractServiceCreator.addOrderedConfigurationParameter(AbstractServiceCreator.java:131)
at
org.apache.tapestry.ioc.internal.AbstractServiceCreator.getParameterDefaultsWithConfiguration(AbstractServiceCreator.java:112)
at
org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.getParameterDefaultsWithConfigurations(ServiceBuilderMethodInvoker.java:47)
at
org.apache.tapestry.ioc.internal.ServiceBuilderMethodInvoker.createObject(ServiceBuilderMethodInvoker.java:68)
... 19 more
Caused by: java.lang.RuntimeException: No service implements the interface
org.hibernate.Session.
at
org.apache.tapestry.ioc.internal.RegistryImpl.getService(RegistryImpl.java:517)
at
org.apache.tapestry.ioc.internal.services.MasterObjectProviderImpl.provide(MasterObj

Re: How is T5 tutorial?

2008-03-24 Thread Kevin Menard
Three weeks maybe.  Shorter if someone helps with it.  Longer if nobody
does.

Your best resource on any form related questions are the tests in Tapestry
and this mailing list.

-- 
Kevin


On 3/24/08 12:27 PM, "osamuo" <[EMAIL PROTECTED]> wrote:

> 
> How long do we have to wait for the completion of T5 tutorial: Chapter 5:
> Forms in Tapestry?
> 
> Thanks.


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



Re: T5: OutputRaw filtering?

2008-03-24 Thread Andy Huhn
Thank you, Filip!  That was exactly what I needed!

Andy

On Sun, 2008-03-23 at 01:42 +0100, Filip S. Adamsen wrote:
> You need to have an (X)HTML DOCTYPE somewhere in your page.
> 
> See "Template Doctypes" at 
> http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/templates.html.
> 
> -Filip
> 
> Andy Huhn skrev:
> > Hello,
> > 
> > I have the following in my .tml file:
> > 
> > 
> > 
> > I expected this to generate "©" in the HTML being sent to the
> > browser.  But instead, Tapestry gives me an error message:
> > 
> > [ERROR] RequestExceptionHandler Processing of request failed with
> > uncaught exception: Failure parsing template
> > classpath:com/homeed/components/Layout.tml: The entity "copy" was
> > referenced, but not declared.
> > 
> > I'm on Tap 5.0.11.
> > 
> > Help?
> > 
> > Thanks,
> > Andy
> > 
> > 
> > -
> > 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]



[t5] Validator question

2008-03-24 Thread Julian Wood
How can you get access to an arbitrary Field from inside a Validator,  
given its id? In t4 it was relatively easy to grab the form and from  
there grab a field.


Thanks,

J

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



Select box and validation

2008-03-24 Thread Julian Wood

The situation is this:

I have a select box in a form, and I want to make it required.

This is simple enough, but the blank option disappears when the  
required validation is applied, client-side validation is not  
performed, and is indeed not needed, because there are no blank  
values. As a corollary, the first option is always selected by default  
upon entry into the form.


The problem with this is that users have a tendency to skip these  
fields which are prepopulated, something which when having a blank  
option does not happen, so this is not the behaviour that I want.


So to change this, I added t:blankoption="always" to the select field,  
to restore the blank option. But now, I am bitten by the previous  
conclusion that client-side validation is not performed on these  
fields (in fact there is no client-side validation at all, ever - the  
paradigm explained here is used to cover the required case). So when  
combined with other fields which do have client-side validation, this  
looks quite disjointed.


So I'm trying to figure out the best way to accomplish what I want,  
which is a select box with a blank option, which has a client-side  
required validation inline with the other client-side required  
validations.


All that is required is the contribution to the  
Tapestry.validate(...)  javascript code snippet by the select field,  
to get it to behave as wanted, but I can't figure out the proper  
mechanism for accomplishing this. I'm sure it's something very simple,  
somewhere, but what?


I can see how it is added -  
org 
.apache 
.tapestry.internal.services.ClientBehaviorSupportImpl#addValidation,  
coming from org.apache.tapestry.validator.Required#render but why is  
render called for a TextField with the 'required' validator, but not  
from a Select field?


Anyway, I'm still digging, but maybe someone has a hint. Thanks,

J



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



Re: T5: Tapestry-Hibernate and Hibernate validator

2008-03-24 Thread Howard Lewis Ship
Eventually, it would be nice if we could come up with a way to extract
the validation meta data and use that to generate Tapestry
validations. Maybe in 5.1.

On Mon, Mar 24, 2008 at 9:37 AM, Josh Canfield <[EMAIL PROTECTED]> wrote:
> Tapestry doesn't do anything with the hibernate Validators so you use
>  them just like you would outside of a tapestry project. In tapestry
>  you'd handle them the same way you do other constraint violoations.
>
>
>  On Fri, Mar 21, 2008 at 3:38 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
>  >
>
>
> > Hi Josh,
>  >
>  > Anything need to be done in order to use it? thanks.
>  >
>  > A.C.
>  >
>  >
>  > joshcanfield wrote:
>  > >
>  > > yes
>  > >
>  > >
>  >
>  > --
>  > View this message in context: 
> http://www.nabble.com/T5%3A-Tapestry-Hibernate-and-Hibernate-validator-tp16198439p16210329.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]
>  >
>  >
>
>
>
>
> --
>  --
>  TheDailyTube.com. Sign up and get the best new videos on the internet
>  delivered fresh to your inbox.
>
>  -
>
>
> 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]



Re: T5: Tapestry-Hibernate and Hibernate validator

2008-03-24 Thread Josh Canfield
Tapestry doesn't do anything with the hibernate Validators so you use
them just like you would outside of a tapestry project. In tapestry
you'd handle them the same way you do other constraint violoations.

On Fri, Mar 21, 2008 at 3:38 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
> Hi Josh,
>
> Anything need to be done in order to use it? thanks.
>
> A.C.
>
>
> joshcanfield wrote:
> >
> > yes
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/T5%3A-Tapestry-Hibernate-and-Hibernate-validator-tp16198439p16210329.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]
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

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



How is T5 tutorial?

2008-03-24 Thread osamuo

How long do we have to wait for the completion of T5 tutorial: Chapter 5:
Forms in Tapestry?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/How-is-T5-tutorial--tp16255566p16255566.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: Problem with Script file (Migration from Tapestry 4.0.2 to 4.1.5 )

2008-03-24 Thread Damian Krzeminski

Sumanth Dupuguntla wrote:

Hi all,

I'm using a script component , which was working fine with tapestry 4.0.2,
when I changed the jar files (Tapesrtry 4.1.5 jars(
tapestry-annotations-4.1.5.jar , tapestry-contrib-4.1.5.jar,
tapestry-framework-4.1.5.jar,  tapestry-portlet-4.1.5.jar and
ognl-2.7.2.jar) I'm getting null pointer exception at
org.apache.tapestry.html.Script.getParsedScript(Script.java:129).

I' have the script files and the component html files in WEB-INF/  .


context:/WEB-INF/EditAddress.html, line 47

   

<...>

I had the same problem. I think it stopped working in 4.1. Did not have 
time to get to the bottom of the issue.


What worked for me was declaring scripts as assets (use 
context:/WEB-INF/EditAddress.script as the path) and using


 scriptAsset="asset:script"

binding instead of 'script' parameter.

D.


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



Standard J2EE security on Tapestry

2008-03-24 Thread Abar42

I use T5. I have to use standard J2EE security (not ACEGI): roles,
security-constraints defined in web.xml, login form like

   
   


But T5 is described as filter in the web.xml, not as servlet and there is no
'security-role-ref' element for filter! How can I map my applicaton role
names to server role names to decouple my code with particular server's
roles?

Thanks.

-- 
View this message in context: 
http://www.nabble.com/Standard-J2EE-security-on-Tapestry-tp16253149p16253149.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]



How to identify - What is a TROLL, what a troll does

2008-03-24 Thread adasal
Don't know if this is helpful.
I have been wondering how people know if someone is trolling.
I have been reading through recent mailings using Mark Mail, which I find
very precise for filtering by search.
I have found three main things.
First of all it is not always known, but this may not be as destructive as
at first it seems.
Trolling is characterised by surreptitiously gaining a footing in an email
thread and then rubbishing the project software and community.
(If you want to know, gaining satisfaction from primitive expulsive
behaviour.)
OS software projects by their nature make gains in some areas in comparison
to others.
These gains may well be made up if important to this project and, quite
aside from being rubbished, it is very irritating to have these things
pointed out when there is no intent to focus on and work in the areas in
question. These are things that could be worked on but the only intent of
the troll is to rubbish. They are unlikely to be working on the subject they
are trolling about.
Lastly, I was concerned about the possible destructive effect, but when the
last occasion is looked at on this list, just few days ago, in fact the list
recovered immediately and in the same thread. When someone else introduced a
topic that they really were working with this was immediately recognised and
responded to.
On the last occasion the thread went on to become very interesting.


Adam Saltiel


Re: T5: LayoutCmpnt and inherit: prefix

2008-03-24 Thread Howard Lewis Ship
disabled="inherit:readOnly"

That says "inherit the disabled parameter from the containing
component's readOnly parameter".

There is no containing component parameter, because the containg of
the AddUpdateLayoutCmpnt is the page, which doesn't have parameters,
just properties.

So strip out "inherit:" to reference the property readOnly and it will work.


On Sun, Mar 23, 2008 at 6:47 PM, petros <[EMAIL PROTECTED]> wrote:
>
>  The readOnly parameter belogs to the AddUpdateLayoutCmpnt and is declared
>  like this
>  @Property
>  private boolean readOnly;
>
>  I then use the AddUpdateLayoutCmpnt as the layout of this
>
>   xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>disabled="inherit:readOnly"/>
>  
>
>  When the page above renders I am getting the error
>
>  Petros
>
>
>
>
>  Howard Lewis Ship wrote:
>  >
>  > Looks like a bug. PageLoaderProcessor.java:249 is:
>  >
>  >// This may return null if the parameter is not bound in the
>  > loading component.
>  >
>  > Binding existing =
>  > loadingComponentBindingMap.get(loadingParameterName);
>  >
>  >
>  > It looks like loadingComponentBindingMap may be null when the loading
>  > component is a page.
>  >
>  > The error is responsable ... where are you inheritting the readOnly
>  > parameter from? ... but the a NPE is not acceptible, it should be an
>  > exception that identifies what you are doing wrong (using inherit:
>  > where it doesn't make sense).
>  >
>  > On Sun, Mar 23, 2008 at 6:23 AM, petros <[EMAIL PROTECTED]> wrote:
>  >>
>  >>  I have a UserAddUpdate page with a property called readOnly. This
>  >> property is
>  >>  used to enable/disable components to simulate edit/read mode on the
>  >> page.
>  >>  The embedded AddressCmpnt template uses "inherit:readOnly" to
>  >> enable/disable
>  >>  its components.
>  >>
>  >>  I am now refactored the UserAddUpdate page and created a AddUpdateLayout
>  >>  cmpnt so I can re-use it in other pages such as HotelAddUpdate pages.
>  >>  Everything works fine but except that when I start using the
>  >>  "inherit:readOnly" in the HotelAddUpdate page I am getting the following
>  >>  exception. Any ideas why this problem occurs ?
>  >>
>  >>  ***
>  >>  HotelAddUpdatePage.html
>  >>>>  xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
>  >> 
>  >> Hotel Name
>  >>   >> value="hotel?.name"
>  >>  disabled="inherit:readOnly"/>
>  >> 
>  >>  
>  >>  ***
>  >>
>  >>  java.lang.NullPointerException
>  >>  Stack
>  >>
>  >> 
> traceorg.apache.tapestry.internal.services.PageLoaderProcessor.findBinding(PageLoaderProcessor.java:249)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.services.PageLoaderProcessor.bindParameterFromTemplate(PageLoaderProcessor.java:170)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.services.PageLoaderProcessor.attribute(PageLoaderProcessor.java:299)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:504)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.services.PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:807)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:392)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:59)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.services.PagePoolCache.checkout(PagePoolCache.java:188)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:107)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:43)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.services.LinkFactoryImpl.createPageLink(LinkFactoryImpl.java:273)
>  >> *
>  >>
>  >> 
> org.apache.tapestry.internal.structure.PageImpl.createPageLink(PageImpl.java:161)
>  >>  --
>  >>  View this message in context:
>  >> 
> http://www.nabble.com/T5%3A-LayoutCmpnt-and-inherit%3A-prefix-tp16235911p16235911.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]
>  >
>  >
>  >
>
>  --
>  View this message in context: 
> http://www.nabble.com/T5%3A-LayoutCmpnt-and-inherit%3A-prefix-tp16

Problem with Script file (Migration from Tapestry 4.0.2 to 4.1.5 )

2008-03-24 Thread Sumanth Dupuguntla
Hi all,

I'm using a script component , which was working fine with tapestry 4.0.2,
when I changed the jar files (Tapesrtry 4.1.5 jars(
tapestry-annotations-4.1.5.jar , tapestry-contrib-4.1.5.jar,
tapestry-framework-4.1.5.jar,  tapestry-portlet-4.1.5.jar and
ognl-2.7.2.jar) I'm getting null pointer exception at
org.apache.tapestry.html.Script.getParsedScript(Script.java:129).

I' have the script files and the component html files in WEB-INF/  .


context:/WEB-INF/EditAddress.html, line 47

   

java.lang.NullPointerException Stack Trace:

   edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap.get(
   ConcurrentHashMap.java:769)
   org.apache.tapestry.engine.DefaultScriptSource.getScript(
   DefaultScriptSource.java:69)
   $IScriptSource_118e102782e.getScript($IScriptSource_118e102782e.java)
   org.apache.tapestry.html.Script.getParsedScript(Script.java:129)
   org.apache.tapestry.html.Script.renderComponent(Script.java:159)
   org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
   org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
   DefaultResponseBuilder.java:187)
   org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)
   com.dentaprise.component.EditAddress.renderComponent(EditAddress.java:101)
   org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
   org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
   DefaultResponseBuilder.java:187)
   org.apache.tapestry.AbstractComponent.renderBody(
   AbstractComponent.java:538)
   org.apache.tapestry.form.FormSupportImpl.render(FormSupportImpl.java:503)
   org.apache.tapestry.form.Form.renderComponent(Form.java:217)
   org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
   org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
   DefaultResponseBuilder.java:187)
   org.apache.tapestry.AbstractComponent.renderBody(
   AbstractComponent.java:538)
   org.apache.tapestry.components.RenderBody.renderComponent(
   RenderBody.java:39) org.apache.tapestry.AbstractComponent.render(
   AbstractComponent.java:724)
   org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
   DefaultResponseBuilder.java:187)
   org.apache.tapestry.AbstractComponent.renderBody(
   AbstractComponent.java:538)
   org.apache.tapestry.components.IfBean.renderComponent(IfBean.java:94)
   org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
   org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
   DefaultResponseBuilder.java:187)
   org.apache.tapestry.AbstractComponent.renderBody(
   AbstractComponent.java:538)
   org.apache.tapestry.html.Body.renderComponent(Body.java:38)
   org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
   org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
   DefaultResponseBuilder.java:187)
   org.apache.tapestry.AbstractComponent.renderBody(
   AbstractComponent.java:538)
   org.apache.tapestry.html.Shell.renderComponent(Shell.java:125)
   org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
   org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
   DefaultResponseBuilder.java:187)
   org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)
   org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
   org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
   DefaultResponseBuilder.java:187)
   org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)
   org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:724)
   org.apache.tapestry.services.impl.DefaultResponseBuilder.render(
   DefaultResponseBuilder.java:185)
   org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:249)
   org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:400)

   org.apache.tapestry.services.impl.DefaultResponseBuilder.renderResponse
   (DefaultResponseBuilder.java:159)
   org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(
   ResponseRendererImpl.java:33)
   
$ResponseRenderer_118e102783a.renderResponse($ResponseRenderer_118e102783a.java)
   org.apache.tapestry.engine.ExternalService.service(
   ExternalService.java:161)
   $IEngineService_118e10278b3.service($IEngineService_118e10278b3.java)
   org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
   EngineServiceOuterProxy.java:72)
   org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:241)
   org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
   InvokeEngineTerminator.java:54)
   $WebRequestServicer_118e1027884.service($WebRequestServicer_118e1027884.java)
   $WebRequestServicer_118e1027880.service($WebRequestServicer_118e1027880.java)

   org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service
   (WebRequestServicerPipelineBridge.java:61)
   
$ServletRequestServicer_118e1027866.service($ServletRequestServicer_118e1027866.ja

Re: Please help me in migration of Tapestry 4.0.2 to 4.1.5

2008-03-24 Thread rohan.kalyan

I did change the getter and setter methods to return and set List instead of
ArrayList and it worked.
thanks a lot for replying.


Steve Shucker wrote:
> 
> I suspect you have an accessor hardcoded to get/set a 
> java.util.ArrayList.  java.util.Arrays$ArrayList implements List but 
> does not extend java.util.ArrayList.  Check to see if you're explicitly 
> using the implementation class (ArrayList) when your method should 
> really only get/set something that implements the List interface.  If 
> necessary,  you can change the method signature and downcast later.  
> Generally, you don't want to refer to the implementation classes 
> explicitly except during construction.
> 
> -Steve
> 
> Rohan Kalyan wrote:
>> Hi all,
>>
>> we are  working on migration of tapestry4.0.2 to 4.1.5
>>
>> we've changed
>> 1. Ajax directlink to directlink
>> 2. AjaxForm to Form
>> 3. added a method in IpropertySelectionModel (
>> isDisabled() )
>> 4. changed tacos dialog to dojo dialog
>>
>>
>>
>>
>> -
>>
>> Error converting value for {'Unscheduled'}: Unable to convert from type
>> java.util.Arrays$ArrayList to java.util.ArrayList. No type converter for
>> java.util.Arrays$ArrayList is available.
>>
>>  [ +/- ] Exception: Error converting value for {'Unscheduled'}: Unable to
>> convert from type java.util.Arrays$ArrayList to java.util.ArrayList. No
>> type
>> converter for java.util.Arrays$ArrayList is
>> available.
>> org.apache.tapestry.BindingException  binding: ExpressionBinding[Home
>> {'Unscheduled'}]  component: [EMAIL PROTECTED]  location:
>> context:/Home.html,
>> line 44
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 44 statusList="ognl:{'Unscheduled'}"/> 45
>>  46   47   48 49   [ +/- ]
>> Exception: Unable to convert from type java.util.Arrays$ArrayList to
>> java.util.ArrayList. No type converter for java.util.Arrays$ArrayList is
>> available. 
>> org.apache.hivemind.ApplicationRuntimeException  Stack Trace:
>>
>>- org.apache.tapestry.coerce.ValueConverterImpl.coerceValue(
>>ValueConverterImpl.java:105)
>>-
>> $ValueConverter_118caa27475.coerceValue($ValueConverter_118caa27475.java)
>>
>>- org.apache.tapestry.binding.AbstractBinding.getObject(
>>AbstractBinding.java:88)
>>- $AppointmentList_17.getStatusList($AppointmentList_17.java)
>>- com.dentaprise.component.AppointmentList.pageBeginRender(
>>AppointmentList.java:133)
>>- org.apache.tapestry.AbstractPage.firePageBeginRender(
>>AbstractPage.java:409)
>>- org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:244)
>>-
>> org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:400)
>>
>>-
>>   
>> org.apache.tapestry.services.impl.DefaultResponseBuilder.renderResponse
>>(DefaultResponseBuilder.java:159)
>>-
>>org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(
>>ResponseRendererImpl.java:33)
>>-
>> $ResponseRenderer_118caa274a7.renderResponse($ResponseRenderer_118caa274a7.java)
>>
>>- org.apache.tapestry.engine.HomeService.service(HomeService.java:68)
>>-
>> $IEngineService_118caa27516.service($IEngineService_118caa27516.java)
>>
>>- org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(
>>EngineServiceOuterProxy.java:72)
>>- org.apache.tapestry.engine.AbstractEngine.service(
>>AbstractEngine.java:241)
>>- org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
>>InvokeEngineTerminator.java:54)
>>-
>> $WebRequestServicer_118caa274f1.service($WebRequestServicer_118caa274f1.java)
>>
>>-
>> $WebRequestServicer_118caa274ed.service($WebRequestServicer_118caa274ed.java)
>>
>>-
>>   
>> org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service
>>(WebRequestServicerPipelineBridge.java:61)
>>-
>> $ServletRequestServicer_118caa274d3.service($ServletRequestServicer_118caa274d3.java)
>>
>>- org.apache.tapestry.request.DecodedRequestInjector.service(
>>DecodedRequestInjector.java:55)
>>-
>> $ServletRequestServicerFilter_118caa274cf.service($ServletRequestServicerFilter_118caa274cf.java)
>>
>>-
>> $ServletRequestServicer_118caa274d5.service($ServletRequestServicer_118caa274d5.java)
>>
>>- org.apache.tapestry.multipart.MultipartDecoderFilter.service(
>>MultipartDecoderFilter.java:52)
>>-
>> $ServletRequestServicerFilter_118caa274cd.service($ServletRequestServicerFilter_118caa274cd.java)
>>
>>-
>> $ServletRequestServicer_118caa274d5.service($ServletRequestServicer_118caa274d5.java)
>>
>>- org.apache.tapestry.services.impl.SetupRequestEncoding.service(
>>SetupRequestEncoding.java:53)
>>-
>>

Re: Client side validation and IE

2008-03-24 Thread kranga
T5 uses Prototype and Scriptaculous for client side validation/ajax stuff. 
Our experience with Prototype and Scriptaculous has not been that great, 
especially when it comes to upgrading versions. Is there any way to disable 
the use of those libraries and/or the use of a different library (JQuery?)?


It seems like a very invasive decision for T5 to force the use of a 
javascript UI library and also perform client side validation using a 
specific UI paradigm.


- Original Message - 
From: "Howard Lewis Ship" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Friday, March 21, 2008 6:23 PM
Subject: Re: Client side validation and IE



Hm. It worked last time I checked.  I have trouble checking the IE
stuff since I work on a Mac.  It involves me firing up a virtual
machine, etc.

On Wed, Mar 19, 2008 at 10:47 PM, Dmitry S <[EMAIL PROTECTED]> wrote:


 Hi,
 I tried T5 (5.0.11) client side validation in Internet Explorer, and it
 seems that it not works in IE6 (I see POST in jetty log) and IE7 brings 
up

 an ugly Error popup window "Object does not support property or method"

 --
 View this message in context: 
http://www.nabble.com/Client-side-validation-and-IE-tp16172230p16172230.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]





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



Re: Migration of Tapestry 4.0.2 to 4.1.5. Please help!!!

2008-03-24 Thread Alejandro Scandroli
Hi Rohan

Like Steve said in a previous email about this same subject
(http://article.gmane.org/gmane.comp.java.tapestry.user/59751), it's
likely that you have an accessor hardcoded to get/set a
java.util.ArrayList.  Taking a closer look at your exception I guess
the issue is in the "statusList" accesors in the AppointmentList
component. Based on the "statusList" ognl expression the accesor
should be something like:

@Parameter
public abstract List getStatusList();

Check to see if you're explicitly using the ArrayList class instead of
the List interface.


--
Alejandro Scandroli - http://weblog.amneris.es/
Amneris: We build process-driven web applications.
http://www.amneris.es


On Mon, Mar 24, 2008 at 6:53 AM, Rohan Kalyan <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>  we are  working on migration of tapestry4.0.2 to 4.1.5
>  We are using Tapesrtry 4.1.5 jars(tapestry-annotations-4.1.5.jar ,
>  tapestry-contrib-4.1.5.jar, tapestry-framework-4.1.5.jar,
>  tapestry-portlet-4.1.5.jar) and ognl-2.7.2.jar
>
>  we've changed
>1. Ajax directlink to directlink
>2. AjaxForm to Form
>3. added a method in IpropertySelectionModel
>  (isDisabled() )
>4. changed tacos dialog to dojo dialog
>
>  now we are getting some exceptions for the code which was running fine in
>  tapestry 4.0.2
>
>
>  Error converting value for {'Unscheduled'}: Unable to convert from type
>  java.util.Arrays$ArrayList to java.util.ArrayList. No type converter for
>  java.util.Arrays$ArrayList is available.
>
>   [ +/- ] Exception: Error converting value for {'Unscheduled'}: Unable to
>  convert from type java.util.Arrays$ArrayList to java.util.ArrayList. No type
>  converter for java.util.Arrays$ArrayList is
>  available.
>  org.apache.tapestry.BindingException  binding: ExpressionBinding[Home
>  {'Unscheduled'}]  component: [EMAIL PROTECTED]  location: context:/Home.html,
>  line 44
>  39   Search for an
>  appointment 40Search
>  for a patient 41View and edit   page="admin/ListInsurancePlan">insurance plans 42Manage
>  your   parameters="Home">setup and practices 4344  jwcid="@AppointmentList" statusList="ognl:{'Unscheduled'}"/> 45  
>  46   47   48 49   [ +/- ]
>  Exception: Unable to convert from type java.util.Arrays$ArrayList to
>  java.util.ArrayList. No type converter for java.util.Arrays$ArrayList is
>  available. 
>  org.apache.hivemind.ApplicationRuntimeException  Stack Trace:
>
>   ()
>  thanks in advance,
>  --
>  Rohan Kalyan
>  Indygo - www.indygosoft.com
>

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



Re: t5: extending Tapestry.js and ValidationMessages.properites

2008-03-24 Thread Chris Lewis
1) This has been talked about on the wiki I think, and I believe you can
add your own properties file with the same name and package, within your
own application structure. I believe that doing so will append your
messages to the core file (or override ones you override).

2) Sure, just add your own file with your validator objects declared,
and at the end of that file call Tapestry.addValidator(). You just have
to make sure that any pages/components that use your validators include
tapestry.js BEFORE your own validators js file.

Angelo Chen wrote:
> Hi,
>
> I coded a validator, it's working, i got two issues:
>
> 1) extending ValidationMessages.properties: of course I can just add my
> message to the file, but that's not a good idea, is there way to add the
> message in the application level?
>
> 2) Tapestry.js' addValidator,  adding my js validator to the file works, but
> I'd like to put my validators in my own js file, then call the Tapestry.js'
> addValidator, any idea how to do this?
>
> Thanks,
>
> A.C.
>   

-- 
http://thegodcode.net


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