RE: T5 problem with multiple submit buttons

2008-06-18 Thread Janko Muzykant

yes, it's exactly the same situation - form linked with zone. 
thanks Ben for pointing out this jira issue.

jm.


Ben Sommerville-2 wrote:
> 
> Is your form using a zone?
> If so, you may have hit this bug
> https://issues.apache.org/jira/browse/TAPESTRY-2324 
> 
> cheers
> Ben
> 
>> -Original Message-
>> From: Janko Muzykant [mailto:[EMAIL PROTECTED] 
>> 
>> 
>> ups, sorry for not specifing that. i'm using latest tapestry 5.0.13.
>> 
>> jm.
>> Massimo Lusetti wrote:
>> > 
>> > On Wed, Jun 18, 2008 at 3:16 PM, Janko Muzykant 
>> <[EMAIL PROTECTED]> wrote:
>> > 
>> >>
>> >> hi, something is not working with handling events fired by 
>> different
>> >> submit
>> >> buttons (or i have overlooked something...). that's my form:
>> > [..]
>> >> Could you suggest what is wrong here?
>> > 
>> > Which versio are you using?
>> > 
>> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-problem-with-multiple-submit-buttons-tp17982456p17997776.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 use t5.0.13

2008-06-18 Thread 滕训华
Yes,I have changed the class name of the web.xml.

-邮件原件-
发件人: Martijn Brinkers (List) [mailto:[EMAIL PROTECTED] 
发送时间: 2008年6月19日 13:34
收件人: Tapestry users
主题: Re: How to use t5.0.13

Did you change web.xml (specifically
org.apache.tapestry5.TapestryFilter) as well? 

Martijn Brinkers

On Thu, 2008-06-19 at 13:24 +0800, 滕训华 wrote:
> I found that t5.0.13 can download,so I download it and replace the jars
with
> new version and change org.apache.tapestry into org.apache.tapestry5,but
why
> I can not start the tomcat server in eclipse
> 
>  
> 
> What i forget to do ?
> 


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


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



Re: T5 5.0.13 has drop TapestryConstants package ?

2008-06-18 Thread buckofive

LITERAL_BINDING_PREFIX and PROP_BINDING_PREFIX 
are now in org.apache.tapestry5.BindingConstants
as LITERAL and PROP

Cheers


CG-6 wrote:
> 
> Hi Weisu,
>   I did come across this SymbolConstants but it does not contain
> LITERAL_BINDING_PREFIX  and PROP_BINDING_PREFIX ..
> 
> CG
> 
> 
> 
> 
> On Thu, Jun 19, 2008 at 8:55 AM, Weisu <[EMAIL PROTECTED]> wrote:
>>
>> Hi CG, in T5.0.13, this has changed to 'SymbolConstants' and is under
>> org.apache.tapestry5.*
>> Weisu.
>>
>> CG-6 wrote:
>>>
>>> I am a newbie , my question may a bit weird because I do not have deep
>>> knowledge in Tapestry.
>>>
>>> I am following this article in wiki to create own binding prefix to
>>> support array/list values
>>> http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix
>>>
>>> my program work fine in 5.0.11 but it does not compile in 5.0.13
>>> because TapestryConstants has been drop
>>>
>>> The following constants are involved
>>> TapestryConstants.LITERAL_BINDING_PREFIX
>>> TapestryConstants.PROP_BINDING_PREFIX
>>>
>>> I have read in the 5.0.11 source and get the value of those Constants
>>> and manage to get my program build in 5.0.13
>>>
>>> However, I would like to know , whether in T 5.0.13,  are those
>>> constants kept in other package , or the prefix binding in the
>>> Tapestry internal has changed and no longer use the old way.
>>>
>>>
>>> CG
>>>
>>> -
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/T5-5.0.13-has-drop-TapestryConstants-package---tp17994992p17995209.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-5.0.13-has-drop-TapestryConstants-package---tp17994992p17997631.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: How to use t5.0.13

2008-06-18 Thread Martijn Brinkers (List)
Did you change web.xml (specifically
org.apache.tapestry5.TapestryFilter) as well? 

Martijn Brinkers

On Thu, 2008-06-19 at 13:24 +0800, 滕训华 wrote:
> I found that t5.0.13 can download,so I download it and replace the jars with
> new version and change org.apache.tapestry into org.apache.tapestry5,but why
> I can not start the tomcat server in eclipse
> 
>  
> 
> What i forget to do ?
> 


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



How to use t5.0.13

2008-06-18 Thread 滕训华
I found that t5.0.13 can download,so I download it and replace the jars with
new version and change org.apache.tapestry into org.apache.tapestry5,but why
I can not start the tomcat server in eclipse

 

What i forget to do ?



Re: T5 Sending a 302 redirect off-site from within a Form handler

2008-06-18 Thread Howard Lewis Ship
You should be able to simply return a java.net.URL.

On Wed, Jun 18, 2008 at 9:55 PM, Ezra Epstein
<[EMAIL PROTECTED]> wrote:
> I've got a simple form and an onSubmit() method.  When the form
> submission succeeds I want to redirect to another site (full URL) but
> can't figure out how to do that.
>
>
>
> I've tried:
>
>
>
>@Inject
>
>@Service("Response")
>
>private Response tapestryResponse;
>
>
>
>void onSubmit() {
>
>...
>
>
> tapestryResponse.sendRedirect(offsiteUrlString);
>
>...
>
>}
>
>
>
> No luck.  Also tried:
>
>
>
>@Inject
>
>//@Service("RequestGlobals")
>
>private RequestGlobals requestGlobals;
>
>
>
>void onSubmit() {
>
>...
>
>
> requestGlobals.getHTTPServletResponse().sendRedirect(offsiteUrlString);
>
>
>...
>
>}
>
>
>
> L
>
> The redirect exception doesn't seem to have made it from Tap4 to T5.
> What is the magical incantation??
>
>
>
> Thx.
>
>
>
> Ezra E.
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



T5 Sending a 302 redirect off-site from within a Form handler

2008-06-18 Thread Ezra Epstein
I've got a simple form and an onSubmit() method.  When the form
submission succeeds I want to redirect to another site (full URL) but
can't figure out how to do that.

 

I've tried:

 

@Inject

@Service("Response")

private Response tapestryResponse;

 

void onSubmit() {

...

 
tapestryResponse.sendRedirect(offsiteUrlString);  

...

}

 

No luck.  Also tried:

 

@Inject

//@Service("RequestGlobals")

private RequestGlobals requestGlobals;

 

void onSubmit() {

...

 
requestGlobals.getHTTPServletResponse().sendRedirect(offsiteUrlString);


...

}

 

L

The redirect exception doesn't seem to have made it from Tap4 to T5.
What is the magical incantation??  

 

Thx.

 

Ezra E.



RE: T5 problem with multiple submit buttons

2008-06-18 Thread Ben Sommerville
Is your form using a zone?
If so, you may have hit this bug
https://issues.apache.org/jira/browse/TAPESTRY-2324 

cheers
Ben

> -Original Message-
> From: Janko Muzykant [mailto:[EMAIL PROTECTED] 
> 
> 
> ups, sorry for not specifing that. i'm using latest tapestry 5.0.13.
> 
> jm.
> Massimo Lusetti wrote:
> > 
> > On Wed, Jun 18, 2008 at 3:16 PM, Janko Muzykant 
> <[EMAIL PROTECTED]> wrote:
> > 
> >>
> >> hi, something is not working with handling events fired by 
> different
> >> submit
> >> buttons (or i have overlooked something...). that's my form:
> > [..]
> >> Could you suggest what is wrong here?
> > 
> > Which versio are you using?
> > 
> > 


Re: configuring a service for shutdown notification

2008-06-18 Thread eduardo cavalcanti

Hello,
You are right.
I have initially coded:

public interface DataService {...
and
public class DataServiceImpl implements DataService,
RegistryShutdownListener {...

hence the typecast.

Doing:

public interface DataService extends RegistryShutdownListener {...
and 
public class DataServiceImpl implements DataService {...

eliminates the need for the typecast.

Thanks for the learning experience.

-- 
View this message in context: 
http://www.nabble.com/configuring-a-service-for-shutdown-notification-tp17959487p17996573.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: configuring a service for shutdown notification

2008-06-18 Thread Howard Lewis Ship
I would have written it as:

public DataService buildDataService(RegistryShutdownHub hub)
{
  DataServiceImpl service = new DataServiceImpl();

  hub.addRegistryShutdownListener(service);

  return service;
}

I don't like unnecessary casts.

On Wed, Jun 18, 2008 at 7:07 PM, eduardo cavalcanti
<[EMAIL PROTECTED]> wrote:
>
> Thanks a lot, Kristian,
> That's it.
>
> Just for the record, the final form of the service registration method, on
> AppModule:
>
> public DataService buildDataService(RegistryShutdownHub hub) {
>
>DataService ds = new DataServiceImpl();
>
>hub.addRegistryShutdownListener((RegistryShutdownListener) ds);
>
>return ds;
>}
> --
> View this message in context: 
> http://www.nabble.com/configuring-a-service-for-shutdown-notification-tp17959487p17995884.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]



Re: configuring a service for shutdown notification

2008-06-18 Thread eduardo cavalcanti

Thanks a lot, Kristian,
That's it.

Just for the record, the final form of the service registration method, on
AppModule:

public DataService buildDataService(RegistryShutdownHub hub) {

DataService ds = new DataServiceImpl();

hub.addRegistryShutdownListener((RegistryShutdownListener) ds);

return ds;
}
-- 
View this message in context: 
http://www.nabble.com/configuring-a-service-for-shutdown-notification-tp17959487p17995884.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.0.11 deadlock (resend including stacktrace :-)

2008-06-18 Thread Howard Lewis Ship
Please add an issue to JIRA.  Looks like there's a situation where one
thread is transforming classes while another thread is creating
PropertyConduit classes.  We'll need to create a mutex for this case.

On Tue, Jun 17, 2008 at 10:07 PM,  <[EMAIL PROTECTED]> wrote:
> Hi All!
>
> (resend because of missing/forgotten stacktrace which made the original mail 
> a bit useless. sorry for this and thanks to Josh for the hint)
>
>
>
>
> We encountered a deadlock situation using T5.0.11 under heavy load. 
> Unfortunately we do not have the detailed knowledge about all 
> T5/javassist-secrets to solve this on our own.
> It seems there are two different execution paths resulting in a call to 
> "ClassPool.toClass". In both cases the inner class 
> org.apache.tapestry.internal.services.ComponentInstantiatorSourceImpl$PackageAwareLoader
>  is part of the deadlock.
> On the one hand we have a call to 
> "findClass(ComponentInstantiatorSourceImpl.java:75)" (please see 
> "catalina-40.txt") on the other hand the toClass2 method tries to access this 
> inner class at the same time. But this is only a guess.
>
> See below both thread dump stacktraces.
>
> Any hint to solve this problem is highly appreciated.
>
>
> Jens
>
>
> "catalina-exec-11" Id=67 BLOCKED on [EMAIL PROTECTED] owned by 
> "catalina-exec-40" Id=96
>at java.lang.ClassLoader.defineClass1(Native Method)
>at java.lang.ClassLoader.defineClass(ClassLoader.java:675)
>at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
>at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:585)
>at javassist.ClassPool.toClass2(ClassPool.java:965)
>at javassist.ClassPool.toClass(ClassPool.java:947)
>at 
> org.apache.tapestry.ioc.internal.services.CtClassSource.createClass(CtClassSource.java:87)
>at 
> org.apache.tapestry.ioc.internal.services.AbstractFab.createClass(AbstractFab.java:106)
>at 
> org.apache.tapestry.internal.services.PropertyConduitSourceImpl.build(PropertyConduitSourceImpl.java:185)
>at 
> org.apache.tapestry.internal.services.PropertyConduitSourceImpl.create(PropertyConduitSourceImpl.java:120)
>at 
> $PropertyConduitSource_11a6cad5e6b.create($PropertyConduitSource_11a6cad5e6b.java)
>at 
> org.apache.tapestry.internal.bindings.PropBindingFactory.newBinding(PropBindingFactory.java:48)
>at 
> $BindingFactory_11a6cad5e6c.newBinding($BindingFactory_11a6cad5e6c.java)
>at 
> $BindingFactory_11a6cad5e63.newBinding($BindingFactory_11a6cad5e63.java)
>at 
> org.apache.tapestry.internal.services.BindingSourceImpl.newBinding(BindingSourceImpl.java:79)
>at 
> $BindingSource_11a6cad5e55.newBinding($BindingSource_11a6cad5e55.java)
>at 
> org.apache.tapestry.internal.services.PageElementFactoryImpl.parseAttributeExpansionExpression(PageElementFactoryImpl.java:127)
>at 
> org.apache.tapestry.internal.services.PageElementFactoryImpl.newBinding(PageElementFactoryImpl.java:299)
>at 
> $PageElementFactory_11a6cad5e4f.newBinding($PageElementFactory_11a6cad5e4f.java)
>at 
> org.apache.tapestry.internal.services.PageLoaderProcessor.findBinding(PageLoaderProcessor.java:264)
>at 
> org.apache.tapestry.internal.services.PageLoaderProcessor.bindParametersFromModel(PageLoaderProcessor.java:217)
>at 
> org.apache.tapestry.internal.services.PageLoaderProcessor.startComponent(PageLoaderProcessor.java:667)
>at 
> org.apache.tapestry.internal.services.PageLoaderProcessor.loadTemplateForComponent(PageLoaderProcessor.java:500)
>at 
> org.apache.tapestry.internal.services.PageLoaderProcessor.workComponentQueue(PageLoaderProcessor.java:807)
>at 
> org.apache.tapestry.internal.services.PageLoaderProcessor.loadPage(PageLoaderProcessor.java:392)
>at 
> org.apache.tapestry.internal.services.PageLoaderImpl.loadPage(PageLoaderImpl.java:59)
>at $PageLoader_11a6cad5e4d.loadPage($PageLoader_11a6cad5e4d.java)
>at 
> org.apache.tapestry.internal.services.PagePoolCache.checkout(PagePoolCache.java:188)
>at 
> org.apache.tapestry.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:107)
>at $PagePool_11a6cad5e4c.checkout($PagePool_11a6cad5e4c.java)
>at 
> org.apache.tapestry.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:43)
>at 
> $RequestPageCache_11a6cad5e4b.get($RequestPageCache_11a6cad5e4b.java)
>at 
> $RequestPageCache_11a6cad5e0d.get($RequestPageCache_11a6cad5e0d.java)
>at 
> org.apache.tapestry.internal.services.LinkFactoryImpl.createPageLink(LinkFactoryImpl.java:273)
>at 
> $LinkFactory_11a6cad5e47.createPageLink($LinkFactory_11a6cad5e47.java)
>at 
> org.apache.tapestry.internal.structure.PageImpl.createPageLink(PageImpl.java:161)
>at 
> org.apache.tapestry.internal.structure.InternalCo

[ANNOUNCE] Tapestry 5.0.13

2008-06-18 Thread Howard Lewis Ship
 The latest release of Tapestry, Tapestry 5.0.13 , is now available.

Tapestry 5.0.13 is just about feature complete and can be considered a
beta release. A release candidate is expected in the near future.

5.0.13 adds quite a bit of improved Ajax functionality, and addresses
a large number of bugs. It also makes it easier to use Tapestry with
Groovy. Pay careful attention to the upgrade notes as there have been
some wide-ranging changes, especially a rename of the root package
from org.apache.tapestry to org.apache.tapestry5 (to faciliate
side-by-side deployment of Tapestry 4 and Tapestry 5 applications
inside the same WAR).

Upgrade notes: http://tapestry.apache.org/tapestry5/tapestry-core/upgrade.html

See the release notes for more details.
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html

Note: there was no public release of Tapestry 5.0.12 (the release was
rejected due to some significant issues).

Download Tapestry 5.0.13 from
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html

-- 
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 5.0.13 has drop TapestryConstants package ?

2008-06-18 Thread CG
Hi Weisu,
  I did come across this SymbolConstants but it does not contain
LITERAL_BINDING_PREFIX  and PROP_BINDING_PREFIX ..

CG




On Thu, Jun 19, 2008 at 8:55 AM, Weisu <[EMAIL PROTECTED]> wrote:
>
> Hi CG, in T5.0.13, this has changed to 'SymbolConstants' and is under
> org.apache.tapestry5.*
> Weisu.
>
> CG-6 wrote:
>>
>> I am a newbie , my question may a bit weird because I do not have deep
>> knowledge in Tapestry.
>>
>> I am following this article in wiki to create own binding prefix to
>> support array/list values
>> http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix
>>
>> my program work fine in 5.0.11 but it does not compile in 5.0.13
>> because TapestryConstants has been drop
>>
>> The following constants are involved
>> TapestryConstants.LITERAL_BINDING_PREFIX
>> TapestryConstants.PROP_BINDING_PREFIX
>>
>> I have read in the 5.0.11 source and get the value of those Constants
>> and manage to get my program build in 5.0.13
>>
>> However, I would like to know , whether in T 5.0.13,  are those
>> constants kept in other package , or the prefix binding in the
>> Tapestry internal has changed and no longer use the old way.
>>
>>
>> CG
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/T5-5.0.13-has-drop-TapestryConstants-package---tp17994992p17995209.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: T5 5.0.13 has drop TapestryConstants package ?

2008-06-18 Thread Weisu

Hi CG, in T5.0.13, this has changed to 'SymbolConstants' and is under
org.apache.tapestry5.*
Weisu.

CG-6 wrote:
> 
> I am a newbie , my question may a bit weird because I do not have deep
> knowledge in Tapestry.
> 
> I am following this article in wiki to create own binding prefix to
> support array/list values
> http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix
> 
> my program work fine in 5.0.11 but it does not compile in 5.0.13
> because TapestryConstants has been drop
> 
> The following constants are involved
> TapestryConstants.LITERAL_BINDING_PREFIX
> TapestryConstants.PROP_BINDING_PREFIX
> 
> I have read in the 5.0.11 source and get the value of those Constants
> and manage to get my program build in 5.0.13
> 
> However, I would like to know , whether in T 5.0.13,  are those
> constants kept in other package , or the prefix binding in the
> Tapestry internal has changed and no longer use the old way.
> 
> 
> CG
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-5.0.13-has-drop-TapestryConstants-package---tp17994992p17995209.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 5.0.13 has drop TapestryConstants package ?

2008-06-18 Thread CG
I am a newbie , my question may a bit weird because I do not have deep
knowledge in Tapestry.

I am following this article in wiki to create own binding prefix to
support array/list values
http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix

my program work fine in 5.0.11 but it does not compile in 5.0.13
because TapestryConstants has been drop

The following constants are involved
TapestryConstants.LITERAL_BINDING_PREFIX
TapestryConstants.PROP_BINDING_PREFIX

I have read in the 5.0.11 source and get the value of those Constants
and manage to get my program build in 5.0.13

However, I would like to know , whether in T 5.0.13,  are those
constants kept in other package , or the prefix binding in the
Tapestry internal has changed and no longer use the old way.


CG

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



答复: Tapestry5 and new Window

2008-06-18 Thread 滕训华
Thanks,Filip, t5components only work with 5.0.13 or up,but I compile the t5.
0.13 from it's source,it also gets same error.

-邮件原件-
发件人: Filip S. Adamsen [mailto:[EMAIL PROTECTED] 
发送时间: 2008年6月18日 20:39
收件人: Tapestry users
主题: Re: Tapestry5 and new Window

No, t5components won't work with Tapestry 5.0.11, only 5.0.13 and up.

-Filip

滕训华 skrev:
> Do the t5Components 5.0.13 really can work with t5.0.11?
> 
> But I found that org.apache.tapestry5. is used  as  the importing
package names of  the t5components 5.0.13 source. tapestry 5.0.11 's package
name is org.apache.tapestry,while only tapestry 5.0.13 's package name
is org.apache.tapestry5.
> 
> 
> 
> 
> - Original Message - 
> From: "Sven Homburg" <[EMAIL PROTECTED]>
> To: "Tapestry users" 
> Sent: Wednesday, June 18, 2008 12:06 AM
> Subject: Re: Tapestry5 and new Window
> 
> 
>> t5components 5.0.13 cant used with tapestry 5.0.11
>>
>> 2008/6/17 滕训华 <[EMAIL PROTECTED]>:
>>
>>> From the processing can not find any exception.
>>>
>>>
>>> My enviroment is :spring+spring-acegi+hibernate+tapestry.
>>>
>>> and I found that the t.5.011(now i am using) package name is
>>> org.apache.tapestry
>>>
>>> but the t.5.0.14 is org.apache.tapestry5,is this error related with
>>> this point?
>>>
>>>
>>>
>>>
>>> The console information when start the tomcat in eclipse
>>>
>>> 2008-6-17 23:28:04 org.apache.coyote.http11.Http11Protocol init
>>> 信息: Initializing Coyote HTTP/1.1 on http-8080
>>> 2008-6-17 23:28:04 org.apache.catalina.startup.Catalina load
>>> 信息: Initialization processed in 1042 ms
>>> 2008-6-17 23:28:04 org.apache.catalina.core.StandardService start
>>> 信息: Starting service Catalina
>>> 2008-6-17 23:28:04 org.apache.catalina.core.StandardEngine start
>>> 信息: Starting Servlet Engine: Apache Tomcat/5.0.28
>>> 2008-6-17 23:28:04 org.apache.catalina.core.StandardHost start
>>> 信息: XML validation disabled
>>> 2008-06-17 23:28:07,364 INFO
>>> [org.springframework.web.context.ContextLoader] - Root
>>> WebApplicationContext: initialization started
>>> 2008-06-17 23:28:07,434 INFO
>>> [org.springframework.web.context.support.XmlWebApplicationContext] -
>>> Refreshing
>>> [EMAIL PROTECTED]:
>>> display name [Root WebApplicationContext]; startup date [Tue Jun 17
23:28:07
>>> CST 2008]; root of context hierarchy
>>> 2008-06-17 23:28:07,614 INFO
>>> [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] -
Loading
>>> XML bean definitions from ServletContext resource
>>> [/WEB-INF/applicationContext.xml]
>>> 2008-06-17 23:28:07,905 INFO
>>> [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] -
Loading
>>> XML bean definitions from ServletContext resource
>>> [/WEB-INF/applicationContext-security.xml]
>>> 2008-06-17 23:28:08,295 INFO
>>> [org.springframework.web.context.support.XmlWebApplicationContext] -
Bean
>>> factory for application context
>>>
[EMAIL PROTECTED]:
>>>
[EMAIL PROTECTED]
>>> 2008-06-17 23:28:08,716 INFO [org.hibernate.cfg.annotations.Version] -
>>> Hibernate Annotations 3.3.1.GA
>>> 2008-06-17 23:28:08,746 INFO [org.hibernate.cfg.Environment] - Hibernate
>>> 3.2.4.sp1
>>> 2008-06-17 23:28:08,746 INFO [org.hibernate.cfg.Environment] -
>>> hibernate.properties not found
>>> 2008-06-17 23:28:08,756 INFO [org.hibernate.cfg.Environment] - Bytecode
>>> provider name : cglib
>>> 2008-06-17 23:28:08,766 INFO [org.hibernate.cfg.Environment] - using JDK
>>> 1.4 java.sql.Timestamp handling
>>> 2008-06-17 23:28:08,936 INFO [org.hibernate.cfg.Configuration] -
>>> configuring from url:
>>>
file:/D:/Java/app/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpweb
apps/CallCenter/WEB-INF/classes/hibernate.cfg.xml
>>> 2008-06-17 23:28:09,116 INFO [org.hibernate.cfg.Configuration] -
Configured
>>> SessionFactory: null
>>> 2008-06-17 23:28:09,116 INFO
>>> [org.springframework.orm.hibernate3.LocalSessionFactoryBean] - Building
new
>>> Hibernate SessionFactory
>>> 2008-06-17 23:28:09,337 INFO [org.hibernate.cfg.AnnotationBinder] -
Binding
>>> entity from annotated class: com.callcenter.model.TblMenuItem
>>> 2008-06-17 23:28:09,447 INFO
[org.hibernate.cfg.annotations.EntityBinder] -
>>> Bind entity com.callcenter.model.TblMenuItem on table TBL_MenuItem
>>> 2008-06-17 23:28:09,557 INFO [org.hibernate.cfg.AnnotationBinder] -
Binding
>>> entity from annotated class: com.callcenter.model.TblQuestionInfo
>>> 2008-06-17 23:28:09,557 INFO
[org.hibernate.cfg.annotations.EntityBinder] -
>>> Bind entity com.callcenter.model.TblQuestionInfo on table
TBL_QuestionInfo
>>> 2008-06-17 23:28:09,577 INFO [org.hibernate.cfg.AnnotationBinder] -
Binding
>>> entity from annotated class: com.callcenter.model.TblContactInfo
>>> 2008-06-17 23:28:09,577 INFO
[org.hibernate.cfg.annotations.EntityBinder] -
>>> Bind entity com.callcenter.model.TblContactInfo on table TBL_ContactInfo
>>> 2008-06-17 23:28:09,667 INFO [org.hibernate.cfg.AnnotationBinder] -
Binding
>>> entity from annotated class: com.callcenter.model.TblQuestionFlow
>>> 2008-06-17 23:28:0

T5: component as a parameter to another component

2008-06-18 Thread Chris Lewis
Hello all,

I'm working with an app that has a component to display a list of
objects. Part of the display of each object is the date (a field from
the object), and I'd like to make the rendering of that part flexible.
Normally a dateformat component would do, but in this case it's not
enough because in the initial release the month, day, and year need to
be in their own . So I'd like to be able to pass a component to my
preview component. The rendering component will render within a loop.
Normally this would look like:





I've used a mythical component named 'dateview' here. In reality I want
this to be a component of an unknown type that will use the MarkupWriter
to generate the markup as it wants. Note that a simple t:block won't do
because I need the MarkupWriter. Any clues?

thanks,
chris

-- 
http://thegodcode.net


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



Zones and blocks inside components

2008-06-18 Thread Mohan Zhang

Hi everyone,

I've been reading the mailing list for a while now and have only seen one
post on this topic, which unfortunately did not clarify things for me. I
know this question has probably been asked a few times either indirectly or
whatnot, but I'm curious to find out if the problem is something very
fundamental in my understanding, or whether this is just a technical issue.

The question is this: if I have a component which has a zone and an
actionlink (or alternatively an eventlink) which loads a block into the
zone, what's the right way to do this? I've tried using clientId tricks, but
this has never been successful for me.

So to summarize, I have a component which declares its own zone, block, and
actionlink. I want this actionlink to load the block into the zone for this
component. Now I have a page which has say four of these components and I
want each actionlink to affect the appropriate zone. What's the right way to
do this?
-- 
View this message in context: 
http://www.nabble.com/Zones-and-blocks-inside-components-tp17993683p17993683.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: Id not generated for actionlinks in grid ...

2008-06-18 Thread Glenn Sudduth
This works perfectly. Thanks.
--
Glenn

On Wed, 2008-06-18 at 11:14 +0200, Kristian Marinkovic wrote:
> hi Glenn,
> 
> i took a look at the current implementation of the ActionLink and it 
> seems that the "id" attribute is only rendered if it is really needed (
> in case of zones, for JavaScript event listener).
> 
> But if you call the getClientId() method of the ActionLink component
> manually the "id" attribute will be rendered because tapestry assumes 
> that you will need the id somewhere.
> 
> as an alternative you could write a Mixin that is attached to your 
> ActionLinks ensuring the generation of the id attribute:
> 
> public class ForceIdMixin {
>@InjectContainer
>private ClientElement component;
>  
>void afterRender() {
>   component.getClientId();
>}
> }
> 
> public class Page {
>@Component @MixinClasses(ForceIdMixin.class)
>private ActionLink link;
> 
> }
> 
> i hope this helps
> 
> g,
> kris
> 
> P.S. you could also change your test cases :)
> 
> 
> 
> 
> 
> Glenn Sudduth <[EMAIL PROTECTED]> 
> 17.06.2008 21:15
> Bitte antworten an
> "Tapestry users" 
> 
> 
> An
> Tapestry users 
> Kopie
> 
> Thema
> Id not generated for actionlinks in grid ...
> 
> 
> 
> 
> 
> 
> 
> I upgraded my project to T5 v5.0.13 from .11 this morning. This was a
> very smooth upgrade except for one issue which has caused some breakage
> in my integration tests. 
> 
> This (slightly simplified) code in .11 
> 
> source="foos"
>row="foo"
>model="model">
>
>Edit 
> 
>
> 
> 
> ... generates HTML anchor which includes an id ...
> 
>  Edit 
>  Edit 
>  Edit 
> 
> However, .13 doesn't seem to ...
> 
> Edit
> Edit
> 
> My tests were referencing these elements by id and now can't find them. 
> How can I get them back?
> 
> Thanks,
> --
> Glenn 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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



Re: T5 problem with multiple submit buttons

2008-06-18 Thread Janko Muzykant

ups, sorry for not specifing that. i'm using latest tapestry 5.0.13.

jm.


Massimo Lusetti wrote:
> 
> On Wed, Jun 18, 2008 at 3:16 PM, Janko Muzykant <[EMAIL PROTECTED]> wrote:
> 
>>
>> hi, something is not working with handling events fired by different
>> submit
>> buttons (or i have overlooked something...). that's my form:
> [..]
>> Could you suggest what is wrong here?
> 
> Which versio are you using?
> 
> 
> -- 
> Massimo
> http://meridio.blogspot.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-problem-with-multiple-submit-buttons-tp17982456p17990394.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: T 5.0 - format grid column

2008-06-18 Thread Marcus
Hi mdmota,

The project site was updated with installation instructions.
http://code.google.com/p/myt5lib/

Marcus

On 6/18/08, Marcelo Lotif <[EMAIL PROTECTED]> wrote:
> Hi mdmota,
> Configuring any tapestry library is very simple. In this case we don't
> have a maven repository, so you have to download it from the project
> site to your lib directory and add it to your classpath. That's all!
>
> And in your template:
>
> 
>
> Don't forget to use it with T5.0.13
>
> 2008/6/18 mdmota <[EMAIL PROTECTED]>:
>>
>> How i do for configure outputbr on my project?
>> Where i have define this?
>> I dont know configure... help me
>>
>> thanks
>>
>>
>>
>> Marcus-11 wrote:
>>>
>>> Hi Mdmota,
>>>
>>> http://code.google.com/p/myt5lib/
>>> 
>>>
>>> Marcus
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/T-5.0---format-grid-column-tp17958099p17986279.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]
>>
>>
>
>
>
> --
> Atenciosamente,
>
> Marcelo Lotif
> Programador Java e Tapestry
> FIEC - Federação das Indústrias do Estado do Ceará
> (85) 3477-5910
>
> -
> 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: T 5.0 - format grid column

2008-06-18 Thread Marcelo Lotif
Hi mdmota,
Configuring any tapestry library is very simple. In this case we don't
have a maven repository, so you have to download it from the project
site to your lib directory and add it to your classpath. That's all!

And in your template:



Don't forget to use it with T5.0.13

2008/6/18 mdmota <[EMAIL PROTECTED]>:
>
> How i do for configure outputbr on my project?
> Where i have define this?
> I dont know configure... help me
>
> thanks
>
>
>
> Marcus-11 wrote:
>>
>> Hi Mdmota,
>>
>> http://code.google.com/p/myt5lib/
>> 
>>
>> Marcus
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/T-5.0---format-grid-column-tp17958099p17986279.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]
>
>



-- 
Atenciosamente,

Marcelo Lotif
Programador Java e Tapestry
FIEC - Federação das Indústrias do Estado do Ceará
(85) 3477-5910

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



T 5.0 - Use zone

2008-06-18 Thread mdmota

How i do use zone for example:
I have two radio buttons.
When user change radio, i want alter zone  

() radio1  ()radio2
--
zone


--
-- 
View this message in context: 
http://www.nabble.com/T-5.0---Use-zone-tp17986384p17986384.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: T 5.0 - format grid column

2008-06-18 Thread mdmota

How i do for configure outputbr on my project?
Where i have define this?
I dont know configure... help me

thanks



Marcus-11 wrote:
> 
> Hi Mdmota,
> 
> http://code.google.com/p/myt5lib/
> 
> 
> Marcus
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T-5.0---format-grid-column-tp17958099p17986279.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: DateField component: extra links are missing

2008-06-18 Thread David Oranchak
I knew I was missing something simple.  Thanks so much!  And my  
apologies for the duplicate question.

-Dave

On Jun 18, 2008, at 11:35 AM, Marcelo Lotif wrote:


This question was already answered on this list.
See
http://www.nabble.com/-T5--component-is-not-Datefield-format-for-dd---mm-----to16888482s302.html#a16888482

for extra features, you may see the DateTimeField from t5components

http://code.google.com/p/tapestry5-components/
http://87.193.218.134:8080/t5c-demo/datetimefieldpage


2008/6/18 David Oranchak <[EMAIL PROTECTED]>:
Did anyone have any insight into my DateField issue below?  I would  
really
like to get those extra calendar links working in the calendar  
widget that
renders as part of the DateField.  Does anyone else get the extra  
links, or

do your calendars look just like mine:
http://oranchak.com/date-field-screenshot.jpg

Thanks!
-Dave

Begin forwarded message:


From: David Oranchak <[EMAIL PROTECTED]>
Date: June 9, 2008 3:01:31 PM EDT
To: users@tapestry.apache.org
Subject: DateField component: extra links are missing

Hi, everyone!

I am using the DateFieldDemo.tml example located here:


http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/DateField.html

But, it renders differently in my local build:

  http://oranchak.com/date-field-screenshot.jpg
  (compare to:  http://xrl.us/bmq5m  )

I would like to have the additional navigation links that I  
presume let
you skip to other years, etc.  In mine, I can only skip one month  
at a time.
Is there some option I must set to enable the other links?  I have  
tried
5.0.11, 5.0.12-SNAPSHOT, and 5.0.13-SNAPSHOT ("20080609.110031-3"  
from

earlier this morning) , and they all look the same.

Thanks,
-Dave








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






--
Atenciosamente,

Marcelo Lotif
Programador Java e Tapestry
FIEC - Federação das Indústrias do Estado do Ceará
(85) 3477-5910

-
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: DateField component: extra links are missing

2008-06-18 Thread Marcelo Lotif
This question was already answered on this list.
See
http://www.nabble.com/-T5--component-is-not-Datefield-format-for-dd---mm-----to16888482s302.html#a16888482

for extra features, you may see the DateTimeField from t5components

http://code.google.com/p/tapestry5-components/
http://87.193.218.134:8080/t5c-demo/datetimefieldpage


2008/6/18 David Oranchak <[EMAIL PROTECTED]>:
> Did anyone have any insight into my DateField issue below?  I would really
> like to get those extra calendar links working in the calendar widget that
> renders as part of the DateField.  Does anyone else get the extra links, or
> do your calendars look just like mine:
> http://oranchak.com/date-field-screenshot.jpg
>
> Thanks!
> -Dave
>
> Begin forwarded message:
>
>> From: David Oranchak <[EMAIL PROTECTED]>
>> Date: June 9, 2008 3:01:31 PM EDT
>> To: users@tapestry.apache.org
>> Subject: DateField component: extra links are missing
>>
>> Hi, everyone!
>>
>> I am using the DateFieldDemo.tml example located here:
>>
>>
>>  
>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/DateField.html
>>
>> But, it renders differently in my local build:
>>
>>http://oranchak.com/date-field-screenshot.jpg
>>(compare to:  http://xrl.us/bmq5m  )
>>
>> I would like to have the additional navigation links that I presume let
>> you skip to other years, etc.  In mine, I can only skip one month at a time.
>>  Is there some option I must set to enable the other links?  I have tried
>> 5.0.11, 5.0.12-SNAPSHOT, and 5.0.13-SNAPSHOT ("20080609.110031-3" from
>> earlier this morning) , and they all look the same.
>>
>> Thanks,
>> -Dave
>>
>>
>>
>>
>>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Atenciosamente,

Marcelo Lotif
Programador Java e Tapestry
FIEC - Federação das Indústrias do Estado do Ceará
(85) 3477-5910

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



Re: download firefox today

2008-06-18 Thread Daniel Jue
Note for us web developers,

Firebug 1.2 requires Firefox 3.

This doesn't seem to auto-update when you install FF3, so go here
https://addons.mozilla.org/en-US/firefox/addon/1843


On Wed, Jun 18, 2008 at 8:43 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:

> Suggestion: Use BCC next time so everyone doesn't get the e-mail addresses
> of all your contacts. :)
>
> (Posted to the list because people need to be aware of this.)
>
> -Filip
>
> Mohammad Shamsi skrev:
>
>> Download Day is here!
>> Set a Guinness World Record
>> Enjoy a Better Web http://www.spreadfirefox.com/en-US/worldrecord/
>>
>>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [T5] Change validation message key

2008-06-18 Thread Julien

Hi,

Thanks for your reply, and sorry for my bad english (i'm french) ;)

Using the app.properties file isn't really a good solution for me, since 
I replaced the default MessagesSource to used a database instead of 
propertie file.

By the way, it helped me to find where was my mistake :)

Thanks a lot Filip


Filip S. Adamsen a écrit :

Hi,

You can stick the message in app.properties and it will be used 
whenever a message isn't found in the component's messages.


-Filip

Julien skrev:

Hi,

I've created a custom validator, and i'd like to customize the 
message key, to create generic validation messages.
For example, if I use my "email" validator, tapestry will look for 
"-email-message" key, so I have to copy my message text in 
every page... arrg


The Javadoc of AbstractValidator ( 
http://tapestry.formos.com/nightly/tapestry5/apidocs/org/apache/tapestry5/validator/AbstractValidator.html 
) say that we can set the message key in the constructor, like this:


public EmailValidator() {
   super(null, String.class, "mykey");
}

Well, did it, Tapestry still looking for "-email-message"...

What did I missed ?

One more thing; I use my own MessageSource ( 
http://www.nabble.com/T5-%3A-Expanding-Messages-Catalog-for-localization-from-arbitrary-source-td16608683.html#a16611882 
)


Thx

 Julien





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



Re: DateField component: extra links are missing

2008-06-18 Thread David Oranchak
Did anyone have any insight into my DateField issue below?  I would  
really like to get those extra calendar links working in the calendar  
widget that renders as part of the DateField.  Does anyone else get  
the extra links, or do your calendars look just like mine:   http://oranchak.com/date-field-screenshot.jpg


Thanks!
-Dave

Begin forwarded message:


From: David Oranchak <[EMAIL PROTECTED]>
Date: June 9, 2008 3:01:31 PM EDT
To: users@tapestry.apache.org
Subject: DateField component: extra links are missing

Hi, everyone!

I am using the DateFieldDemo.tml example located here:


http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/DateField.html

But, it renders differently in my local build:

http://oranchak.com/date-field-screenshot.jpg
(compare to:  http://xrl.us/bmq5m  )

I would like to have the additional navigation links that I presume  
let you skip to other years, etc.  In mine, I can only skip one  
month at a time.  Is there some option I must set to enable the  
other links?  I have tried 5.0.11, 5.0.12-SNAPSHOT, and 5.0.13- 
SNAPSHOT ("20080609.110031-3" from earlier this morning) , and they  
all look the same.


Thanks,
-Dave








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



Re: T5 problem with multiple submit buttons

2008-06-18 Thread Massimo Lusetti
On Wed, Jun 18, 2008 at 3:16 PM, Janko Muzykant <[EMAIL PROTECTED]> wrote:

>
> hi, something is not working with handling events fired by different submit
> buttons (or i have overlooked something...). that's my form:
[..]
> Could you suggest what is wrong here?

Which versio are you using?


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

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



Re: [T5] Change validation message key

2008-06-18 Thread Filip S. Adamsen

Hi,

You can stick the message in app.properties and it will be used whenever 
a message isn't found in the component's messages.


-Filip

Julien skrev:

Hi,

I've created a custom validator, and i'd like to customize the message 
key, to create generic validation messages.
For example, if I use my "email" validator, tapestry will look for 
"-email-message" key, so I have to copy my message text in 
every page... arrg


The Javadoc of AbstractValidator ( 
http://tapestry.formos.com/nightly/tapestry5/apidocs/org/apache/tapestry5/validator/AbstractValidator.html 
) say that we can set the message key in the constructor, like this:


public EmailValidator() {
   super(null, String.class, "mykey");
}

Well, did it, Tapestry still looking for "-email-message"...

What did I missed ?

One more thing; I use my own MessageSource ( 
http://www.nabble.com/T5-%3A-Expanding-Messages-Catalog-for-localization-from-arbitrary-source-td16608683.html#a16611882 
)


Thx

 Julien





-
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 problem with multiple submit buttons

2008-06-18 Thread Janko Muzykant

hi, something is not working with handling events fired by different submit
buttons (or i have overlooked something...). that's my form:


  
  


and the source:

@OnEvent(component="view", value="selected")
void onSelectedFromView()   { action = FilterAction.VIEW; }

@OnEvent(component="reset", value="selected")
void onSelectedFromReset()   { action = FilterAction.RESET; }

unfortunately, no matter which submit is clicked, everytime handler of the
first one is invoked (onSelectedFromView in this case). If I put the reset
button as the first one on the form, its onSelectedFromReset will be called
even for 'view' submit.

Could you suggest what is wrong here?

thanks,
jm.


-- 
View this message in context: 
http://www.nabble.com/T5-problem-with-multiple-submit-buttons-tp17982456p17982456.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: Tapestry5 and new Window

2008-06-18 Thread Sven Homburg
thanx filip,

I will not get rid of the feeling,
that my written English is too bad ;-)

2008/6/18 Filip S. Adamsen <[EMAIL PROTECTED]>:

> No, t5components won't work with Tapestry 5.0.11, only 5.0.13 and up.
>
> -Filip
>
> 滕训华 skrev:
> > Do the t5Components 5.0.13 really can work with t5.0.11?
> >
> > But I found that org.apache.tapestry5. is used  as  the importing
> package names of  the t5components 5.0.13 source. tapestry 5.0.11 's package
> name is org.apache.tapestry,while only tapestry 5.0.13 's package name
> is org.apache.tapestry5.
> >
> >
> >
> >
> > - Original Message -
> > From: "Sven Homburg" <[EMAIL PROTECTED]>
> > To: "Tapestry users" 
> > Sent: Wednesday, June 18, 2008 12:06 AM
> > Subject: Re: Tapestry5 and new Window
> >
> >
> >> t5components 5.0.13 cant used with tapestry 5.0.11
> >>
> >> 2008/6/17 滕训华 <[EMAIL PROTECTED]>:
> >>
> >>> From the processing can not find any exception.
> >>>
> >>>
> >>> My enviroment is :spring+spring-acegi+hibernate+tapestry.
> >>>
> >>> and I found that the t.5.011(now i am using) package name is
> >>> org.apache.tapestry
> >>>
> >>> but the t.5.0.14 is org.apache.tapestry5,is this error related with
> >>> this point?
> >>>
> >>>
> >>>
> >>>
> >>> The console information when start the tomcat in eclipse
> >>>
> >>> 2008-6-17 23:28:04 org.apache.coyote.http11.Http11Protocol init
> >>> 信息: Initializing Coyote HTTP/1.1 on http-8080
> >>> 2008-6-17 23:28:04 org.apache.catalina.startup.Catalina load
> >>> 信息: Initialization processed in 1042 ms
> >>> 2008-6-17 23:28:04 org.apache.catalina.core.StandardService start
> >>> 信息: Starting service Catalina
> >>> 2008-6-17 23:28:04 org.apache.catalina.core.StandardEngine start
> >>> 信息: Starting Servlet Engine: Apache Tomcat/5.0.28
> >>> 2008-6-17 23:28:04 org.apache.catalina.core.StandardHost start
> >>> 信息: XML validation disabled
> >>> 2008-06-17 23:28:07,364 INFO
> >>> [org.springframework.web.context.ContextLoader] - Root
> >>> WebApplicationContext: initialization started
> >>> 2008-06-17 23:28:07,434 INFO
> >>> [org.springframework.web.context.support.XmlWebApplicationContext] -
> >>> Refreshing
> >>> [EMAIL PROTECTED]
> :
> >>> display name [Root WebApplicationContext]; startup date [Tue Jun 17
> 23:28:07
> >>> CST 2008]; root of context hierarchy
> >>> 2008-06-17 23:28:07,614 INFO
> >>> [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] -
> Loading
> >>> XML bean definitions from ServletContext resource
> >>> [/WEB-INF/applicationContext.xml]
> >>> 2008-06-17 23:28:07,905 INFO
> >>> [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] -
> Loading
> >>> XML bean definitions from ServletContext resource
> >>> [/WEB-INF/applicationContext-security.xml]
> >>> 2008-06-17 23:28:08,295 INFO
> >>> [org.springframework.web.context.support.XmlWebApplicationContext] -
> Bean
> >>> factory for application context
> >>>
> [EMAIL PROTECTED]:
> >>>
> [EMAIL PROTECTED]
> >>> 2008-06-17 23:28:08,716 INFO [org.hibernate.cfg.annotations.Version] -
> >>> Hibernate Annotations 3.3.1.GA
> >>> 2008-06-17 23:28:08,746 INFO [org.hibernate.cfg.Environment] -
> Hibernate
> >>> 3.2.4.sp1
> >>> 2008-06-17 23:28:08,746 INFO [org.hibernate.cfg.Environment] -
> >>> hibernate.properties not found
> >>> 2008-06-17 23:28:08,756 INFO [org.hibernate.cfg.Environment] - Bytecode
> >>> provider name : cglib
> >>> 2008-06-17 23:28:08,766 INFO [org.hibernate.cfg.Environment] - using
> JDK
> >>> 1.4 java.sql.Timestamp handling
> >>> 2008-06-17 23:28:08,936 INFO [org.hibernate.cfg.Configuration] -
> >>> configuring from url:
> >>>
> file:/D:/Java/app/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/CallCenter/WEB-INF/classes/hibernate.cfg.xml
> >>> 2008-06-17 23:28:09,116 INFO [org.hibernate.cfg.Configuration] -
> Configured
> >>> SessionFactory: null
> >>> 2008-06-17 23:28:09,116 INFO
> >>> [org.springframework.orm.hibernate3.LocalSessionFactoryBean] - Building
> new
> >>> Hibernate SessionFactory
> >>> 2008-06-17 23:28:09,337 INFO [org.hibernate.cfg.AnnotationBinder] -
> Binding
> >>> entity from annotated class: com.callcenter.model.TblMenuItem
> >>> 2008-06-17 23:28:09,447 INFO
> [org.hibernate.cfg.annotations.EntityBinder] -
> >>> Bind entity com.callcenter.model.TblMenuItem on table TBL_MenuItem
> >>> 2008-06-17 23:28:09,557 INFO [org.hibernate.cfg.AnnotationBinder] -
> Binding
> >>> entity from annotated class: com.callcenter.model.TblQuestionInfo
> >>> 2008-06-17 23:28:09,557 INFO
> [org.hibernate.cfg.annotations.EntityBinder] -
> >>> Bind entity com.callcenter.model.TblQuestionInfo on table
> TBL_QuestionInfo
> >>> 2008-06-17 23:28:09,577 INFO [org.hibernate.cfg.AnnotationBinder] -
> Binding
> >>> entity from annotated class: com.callcenter.model.TblContactInfo
> >>> 2008-06-17 23:28:09,577 INFO
> [org.hibernate.cfg.annotations.EntityBinder] -
> >>> Bind entity com.callcenter.model.TblContactInfo on table
> TBL_ContactInfo
> >>> 2008-06-17 23:28:09,667 INFO [org.hibernate.cfg.Annotati

[T5] Change validation message key

2008-06-18 Thread Julien

Hi,

I've created a custom validator, and i'd like to customize the message 
key, to create generic validation messages.
For example, if I use my "email" validator, tapestry will look for 
"-email-message" key, so I have to copy my message text in 
every page... arrg


The Javadoc of AbstractValidator ( 
http://tapestry.formos.com/nightly/tapestry5/apidocs/org/apache/tapestry5/validator/AbstractValidator.html 
) say that we can set the message key in the constructor, like this:


public EmailValidator() {
   super(null, String.class, "mykey");
}

Well, did it, Tapestry still looking for "-email-message"...

What did I missed ?

One more thing; I use my own MessageSource ( 
http://www.nabble.com/T5-%3A-Expanding-Messages-Catalog-for-localization-from-arbitrary-source-td16608683.html#a16611882 
)


Thx

 Julien





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



Re: download firefox today

2008-06-18 Thread Filip S. Adamsen
Suggestion: Use BCC next time so everyone doesn't get the e-mail 
addresses of all your contacts. :)


(Posted to the list because people need to be aware of this.)

-Filip

Mohammad Shamsi skrev:

Download Day is here!
Set a Guinness World Record
Enjoy a Better Web http://www.spreadfirefox.com/en-US/worldrecord/



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



Re: Tapestry5 and new Window

2008-06-18 Thread Filip S. Adamsen
No, t5components won't work with Tapestry 5.0.11, only 5.0.13 and up.

-Filip

滕训华 skrev:
> Do the t5Components 5.0.13 really can work with t5.0.11?
> 
> But I found that org.apache.tapestry5. is used  as  the importing package 
> names of  the t5components 5.0.13 source. tapestry 5.0.11 's package name is 
> org.apache.tapestry,while only tapestry 5.0.13 's package name is 
> org.apache.tapestry5.
> 
> 
> 
> 
> - Original Message - 
> From: "Sven Homburg" <[EMAIL PROTECTED]>
> To: "Tapestry users" 
> Sent: Wednesday, June 18, 2008 12:06 AM
> Subject: Re: Tapestry5 and new Window
> 
> 
>> t5components 5.0.13 cant used with tapestry 5.0.11
>>
>> 2008/6/17 滕训华 <[EMAIL PROTECTED]>:
>>
>>> From the processing can not find any exception.
>>>
>>>
>>> My enviroment is :spring+spring-acegi+hibernate+tapestry.
>>>
>>> and I found that the t.5.011(now i am using) package name is
>>> org.apache.tapestry
>>>
>>> but the t.5.0.14 is org.apache.tapestry5,is this error related with
>>> this point?
>>>
>>>
>>>
>>>
>>> The console information when start the tomcat in eclipse
>>>
>>> 2008-6-17 23:28:04 org.apache.coyote.http11.Http11Protocol init
>>> 信息: Initializing Coyote HTTP/1.1 on http-8080
>>> 2008-6-17 23:28:04 org.apache.catalina.startup.Catalina load
>>> 信息: Initialization processed in 1042 ms
>>> 2008-6-17 23:28:04 org.apache.catalina.core.StandardService start
>>> 信息: Starting service Catalina
>>> 2008-6-17 23:28:04 org.apache.catalina.core.StandardEngine start
>>> 信息: Starting Servlet Engine: Apache Tomcat/5.0.28
>>> 2008-6-17 23:28:04 org.apache.catalina.core.StandardHost start
>>> 信息: XML validation disabled
>>> 2008-06-17 23:28:07,364 INFO
>>> [org.springframework.web.context.ContextLoader] - Root
>>> WebApplicationContext: initialization started
>>> 2008-06-17 23:28:07,434 INFO
>>> [org.springframework.web.context.support.XmlWebApplicationContext] -
>>> Refreshing
>>> [EMAIL PROTECTED]:
>>> display name [Root WebApplicationContext]; startup date [Tue Jun 17 23:28:07
>>> CST 2008]; root of context hierarchy
>>> 2008-06-17 23:28:07,614 INFO
>>> [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading
>>> XML bean definitions from ServletContext resource
>>> [/WEB-INF/applicationContext.xml]
>>> 2008-06-17 23:28:07,905 INFO
>>> [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading
>>> XML bean definitions from ServletContext resource
>>> [/WEB-INF/applicationContext-security.xml]
>>> 2008-06-17 23:28:08,295 INFO
>>> [org.springframework.web.context.support.XmlWebApplicationContext] - Bean
>>> factory for application context
>>> [EMAIL PROTECTED]:
>>> [EMAIL PROTECTED]
>>> 2008-06-17 23:28:08,716 INFO [org.hibernate.cfg.annotations.Version] -
>>> Hibernate Annotations 3.3.1.GA
>>> 2008-06-17 23:28:08,746 INFO [org.hibernate.cfg.Environment] - Hibernate
>>> 3.2.4.sp1
>>> 2008-06-17 23:28:08,746 INFO [org.hibernate.cfg.Environment] -
>>> hibernate.properties not found
>>> 2008-06-17 23:28:08,756 INFO [org.hibernate.cfg.Environment] - Bytecode
>>> provider name : cglib
>>> 2008-06-17 23:28:08,766 INFO [org.hibernate.cfg.Environment] - using JDK
>>> 1.4 java.sql.Timestamp handling
>>> 2008-06-17 23:28:08,936 INFO [org.hibernate.cfg.Configuration] -
>>> configuring from url:
>>> file:/D:/Java/app/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/CallCenter/WEB-INF/classes/hibernate.cfg.xml
>>> 2008-06-17 23:28:09,116 INFO [org.hibernate.cfg.Configuration] - Configured
>>> SessionFactory: null
>>> 2008-06-17 23:28:09,116 INFO
>>> [org.springframework.orm.hibernate3.LocalSessionFactoryBean] - Building new
>>> Hibernate SessionFactory
>>> 2008-06-17 23:28:09,337 INFO [org.hibernate.cfg.AnnotationBinder] - Binding
>>> entity from annotated class: com.callcenter.model.TblMenuItem
>>> 2008-06-17 23:28:09,447 INFO [org.hibernate.cfg.annotations.EntityBinder] -
>>> Bind entity com.callcenter.model.TblMenuItem on table TBL_MenuItem
>>> 2008-06-17 23:28:09,557 INFO [org.hibernate.cfg.AnnotationBinder] - Binding
>>> entity from annotated class: com.callcenter.model.TblQuestionInfo
>>> 2008-06-17 23:28:09,557 INFO [org.hibernate.cfg.annotations.EntityBinder] -
>>> Bind entity com.callcenter.model.TblQuestionInfo on table TBL_QuestionInfo
>>> 2008-06-17 23:28:09,577 INFO [org.hibernate.cfg.AnnotationBinder] - Binding
>>> entity from annotated class: com.callcenter.model.TblContactInfo
>>> 2008-06-17 23:28:09,577 INFO [org.hibernate.cfg.annotations.EntityBinder] -
>>> Bind entity com.callcenter.model.TblContactInfo on table TBL_ContactInfo
>>> 2008-06-17 23:28:09,667 INFO [org.hibernate.cfg.AnnotationBinder] - Binding
>>> entity from annotated class: com.callcenter.model.TblQuestionFlow
>>> 2008-06-17 23:28:09,667 INFO [org.hibernate.cfg.annotations.EntityBinder] -
>>> Bind entity com.callcenter.model.TblQuestionFlow on table TBL_QuestionFlow
>>> 2008-06-17 23:28:09,677 INFO [org.hibernate.cfg.AnnotationBinder] - Binding
>>> entity from annotated class: com.call

Re: Issue with T5.0.13 default page loading

2008-06-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Jun 2008 07:16:01 -0300, raveendra <[EMAIL PROTECTED]>  
escreveu:


 We have started our project development with T5.0.11.Due to some  
issues

we are experimenting with T5.0.13 latest release
we have replaced the jars.Previously when i type the url 
http://localhost:8000/mycontext/  this was loading my Index.tml as
default page but after replacing jars it's saying
java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for com.example.some.pages.Index

[snip]

why it is not able to find the page?


You need a class for each .tml page, even without any methods.

Thiago

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



Re: [ANN] JumpStart 3.7: for Tapestry 5.0.13

2008-06-18 Thread Kristian Marinkovic
hi geoff,

i think there is a more elegant way to implement conversations in tapestry 
5

because i can't contribute what i implemented so far i'll try to describe 
it :)

every link is created by the LinkFactory service that accepts a list
of LinkFactoryListener. for every Link creation the listeners are called 
giving you the possibility to add additional parameters (eg. 
conversationId)
so if a conversation is started a conversationId will be added to every 
link
(as well a the form component). 

the next problem that has to be solved is the restoration of the data in 
different
conversations. you could define a own persistence strategy 
("conversation") 
to store the data separatly. but this implies that every component used by
a page in a conversation uses this strategy. therefore i decorate the 
PersistentFieldManager to intercept persistent fields when a conversation 
is
active.

i hope i could explain my approach sufficient :)

g,
kris





Geoff Callender <[EMAIL PROTECTED]> 
18.06.2008 13:37
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: [ANN] JumpStart 3.7: for Tapestry 5.0.13







Thanks, Max, for the acknowledgement.

Oddly enough I've had no feedback from anyone on the conversations 
implementation I added to JumpStart in 3.6.  Has anyone found it 
useful or perhaps extended on it?  For those who didn't spot it - it's 
in the Wizards examples.

Cheers,

Geoff

On 18/06/2008, at 3:22 AM, maxthesecond wrote:

>
> That's attitude man!
> I'm allways amazed by your readines and the quality of your 
> guidance, you
> are a headlight for the poor average "let's try tapestry once more 
> again"
> programmer.
> Best wishes and thanks!
> Well, you, and many others
>
>
>
> Geoff Callender-2 wrote:
>>
>>
>> As always, comments and suggestions are encouraged.  Be helpful or
>> brutal - I don't care which - because it all helps to make this stuff
>> more useful.
>>
>> Cheers,
>>
>> Geoff
>>
>>
>>
>
> -- 
> View this message in context: 
http://www.nabble.com/-ANN--JumpStart-3.7%3A-for-Tapestry-5.0.13-tp17907214p17923600.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]




download firefox today

2008-06-18 Thread Mohammad Shamsi
Download Day is here!
Set a Guinness World Record
Enjoy a Better Web http://www.spreadfirefox.com/en-US/worldrecord/

-- 
sincerely yours
M. H. Shamsi


Re: [ANN] JumpStart 3.7: for Tapestry 5.0.13

2008-06-18 Thread Geoff Callender

Thanks, Max, for the acknowledgement.

Oddly enough I've had no feedback from anyone on the conversations  
implementation I added to JumpStart in 3.6.  Has anyone found it  
useful or perhaps extended on it?  For those who didn't spot it - it's  
in the Wizards examples.


Cheers,

Geoff

On 18/06/2008, at 3:22 AM, maxthesecond wrote:



That's attitude man!
I'm allways amazed by your readines and the quality of your  
guidance, you
are a headlight for the poor average "let's try tapestry once more  
again"

programmer.
Best wishes and thanks!
Well, you, and many others



Geoff Callender-2 wrote:



As always, comments and suggestions are encouraged.  Be helpful or
brutal - I don't care which - because it all helps to make this stuff
more useful.

Cheers,

Geoff





--
View this message in context: 
http://www.nabble.com/-ANN--JumpStart-3.7%3A-for-Tapestry-5.0.13-tp17907214p17923600.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]



Issue with T5.0.13 default page loading

2008-06-18 Thread raveendra
Hi T5

 We have started our project development with T5.0.11.Due to some issues
we are experimenting with T5.0.13 latest release
we have replaced the jars.Previously when i type the url 
http://localhost:8000/mycontext/  this was loading my Index.tml as
default page but after replacing jars it's saying

java.lang.ClassNotFoundException: caught an exception while obtaining a
class file for com.example.some.pages.Index

my questing is do we have to configure index page(default page) some where
like in struts welcome-file tag.
why it is not able to find the page?

The noticeable thing is except the first index page the remaining pages and
components are working fine.

Thankyou,
ravindra.


re: Id not generated for actionlinks in grid ...

2008-06-18 Thread Kristian Marinkovic
hi Glenn,

i took a look at the current implementation of the ActionLink and it 
seems that the "id" attribute is only rendered if it is really needed (
in case of zones, for JavaScript event listener).

But if you call the getClientId() method of the ActionLink component
manually the "id" attribute will be rendered because tapestry assumes 
that you will need the id somewhere.

as an alternative you could write a Mixin that is attached to your 
ActionLinks ensuring the generation of the id attribute:

public class ForceIdMixin {
   @InjectContainer
   private ClientElement component;
 
   void afterRender() {
  component.getClientId();
   }
}

public class Page {
   @Component @MixinClasses(ForceIdMixin.class)
   private ActionLink link;

}

i hope this helps

g,
kris

P.S. you could also change your test cases :)





Glenn Sudduth <[EMAIL PROTECTED]> 
17.06.2008 21:15
Bitte antworten an
"Tapestry users" 


An
Tapestry users 
Kopie

Thema
Id not generated for actionlinks in grid ...







I upgraded my project to T5 v5.0.13 from .11 this morning. This was a
very smooth upgrade except for one issue which has caused some breakage
in my integration tests. 

This (slightly simplified) code in .11 


   
   Edit 

   


... generates HTML anchor which includes an id ...

 Edit 
 Edit 
 Edit 

However, .13 doesn't seem to ...

Edit
Edit

My tests were referencing these elements by id and now can't find them. 
How can I get them back?

Thanks,
--
Glenn 


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




Sven,please come in.

2008-06-18 Thread 滕训华
Hi,Sven,

 

Today,I made some test and I found t5component 5.0.13 can not work with
t5.0.11 and if I change t5component 5.0.11,all will be fine.

 

 



Re: T 5.0 - format grid column

2008-06-18 Thread Sven Homburg
t5components does the job well too
http://87.193.218.134:8080/t5c-demo/simplecomponentspage

2008/6/18 mdmota <[EMAIL PROTECTED]>:

>
> I need format parameter for component grid with mask ###.###.###-##.
> In the moment display values in format number ex: 06574185224, but i need
> display 065.741.185-24.
> What i can use for that?
>
> thanks
> --
> View this message in context:
> http://www.nabble.com/T-5.0---format-grid-column-tp17958099p17958099.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]
>
>


-- 
with regards
Sven Homburg
http://tapestry5-components.googlecode.com
http://chenillekit.googlecode.com


Re: configuring a service for shutdown notification

2008-06-18 Thread Kristian Marinkovic
hi,

in your case i'd do somehing like this:

public DataService buildDataService(RegistryShutdownHub hub) 
{
DataService x = new DataServiceImpl();
// if DataServiceImpl needs some DI too
// inject ObjectLocator objectLocator
// x = objectLocator.proxy(DataService.class, 
DataServiceImpl.class)
 
hub.addRegistryShutdownListener(x);
return x;
}




eduardo cavalcanti <[EMAIL PROTECTED]> 
18.06.2008 06:23
Bitte antworten an
"Tapestry users" 


An
users@tapestry.apache.org
Kopie

Thema
configuring a service for shutdown notification








Hi,
I have defined a service in AppModule:
public static void bind(ServiceBinder binder)
{
 binder.bind(DataService.class, DataServiceImpl.class);
...
It it uses db4o. The db file is open, assigned to a façade object, and by
the end a close() method must be issued, in order to restart the
application. If not a file locked exception is raised on app restart.
The DataServiceImpl class implements the RegistryShutdownListener 
interface.
I guess this is the right thing to do. Please correct if I'm wrong.
Then I have coded:
public void registryDidShutdown() {
 db.close();
 }
I guess the next step should be call addRegistryShutdownListener() on some
RegistryShutdownHub instance. Correct? How to do this.
Does Tapestry provide an instance of it or do I have to create one?

Thank you.
-- 
View this message in context: 
http://www.nabble.com/configuring-a-service-for-shutdown-notification-tp17959487p17959487.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]