Re: The Form Submit can't Work!

2008-11-30 Thread Gerry Chen

Thank Everyone!

My Problem is resolved by myself.

Because the method name is error.The Form Submit Event use
"onSubmit+From+FormID".

Note:There is "From" not "Form":-/
The Form Submit

Gerry Chen wrote:
> 
> Hi Everyone:
> 
>I'm a new Tapestry user. I'm interesting in developing Web Program with
> Tapestry Framwork.But I have some problem in my project.
>   This question is the Form Submit Event can't be invoked When I click
> "Export File" Button in my Page.
> 
>   My Program looks like this:
> 
>   SearchGoodsInfo.tml
> 
>   This tml file hava tow Forms.
> 
> 
>   t:value="Find" class="button_bg"/>
>   
> 
>   
>t:value="Export File" class="button_bg"/>
>   
> 
>SearchGoodsInfo.java
>   
>The Event handler in java file like this:
> 
>StreamResponse onSubmitFormDownloadFile()
>   {
> 
> 
> StreamResponse responseDown = new XlsFileAttachmet(insFile);
> return responseDown;
>   
>   }
>
>   The Extension .java file only have a form submit Event with "Export
> File" Button.I use below code to handle another button. That is working
> finely.
>   
>@OnEvent(value="selected",component = "Btn_Search")
>public void onSearch()
>   {
> .
>   }
> 
> 
>   But the onSubmitFormDownloadFile method can not work!How can I catch the
> "DownloadFile" form submit event. Thanks!
>   
>   
> 

-- 
View this message in context: 
http://www.nabble.com/The-Form-Submit-can%27t-Work%21-tp20765310p20766944.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: The Form Submit can't Work!

2008-11-30 Thread Gerry Chen

Thank dalahoo !

I use T5.0.16 JAR.I try your codes in my project .But I find it not to
work.I try to insert a Breakpoint in the "onSuccessFormDownloadFile()" .It
doesn't stop in the method after my clicking "Export File" Button. 

I have tried to add below code.

StreamResponse onSubmit()
{
...
}

I find it can work.

I think I can't  make out the method invoked by "Btn_Down" or "Btn_Search"
when we use above code.Though I can add a private property to distinguish
the method invoked by which Botton in my Page,I think it is so tired to
handle the click event.

So Everyone have some suggestion to me.

Thanks!



 

dalahoo wrote:
> 
> Hi Gerry,
> 
> Try to change you method name to : onSuccessFormDownloadFile
> 
> or use Annotation  :
> 
> @OnEvent(value = "submit", component = "Btn_Down")
> StreamResponse onSubmitFormDownloadFile() {
> 
> 
> 
> 
> 
> 
> On Mon, Dec 1, 2008 at 2:55 AM, Gerry Chen <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hi Everyone:
>>
>>   I'm a new Tapestry user. I'm interesting in developing Web Program with
>> Tapestry Framwork.But I have some problem in my project.
>>  This question is the Form Submit Event can't be invoked When I click
>> "Export File" Button in my Page.
>>
>>  My Program looks like this:
>>
>>  SearchGoodsInfo.tml
>>
>>  This tml file hava tow Forms.
>>
>>  
>> > t:value="Find" class="button_bg"/>
>>  
>>
>>  
>>> t:value="Export File" class="button_bg"/>
>>  
>>
>>   SearchGoodsInfo.java
>>
>>   The Event handler in java file like this:
>>
>>   StreamResponse onSubmitFormDownloadFile()
>>  {
>>
>>
>>StreamResponse responseDown = new XlsFileAttachmet(insFile);
>>return responseDown;
>>
>>  }
>>
>>  The Extension .java file only have a form submit Event with "Export
>> File"
>> Button.I use below code to handle another button. That is working finely.
>>
>>   @OnEvent(value="selected",component = "Btn_Submit")
>>   public void onSearch()
>>  {
>>.
>>  }
>>
>>
>>  But the onSubmitFormDownloadFile method can not work!How can I catch the
>> "DownloadFile" form submit event.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/The-Form-Submit-can%27t-Work%21-tp20765310p20765310.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]
>>
>>
> 
> 
> -- 
> sincerely yours
> M. H. Shamsi
> 
> 

-- 
View this message in context: 
http://www.nabble.com/The-Form-Submit-can%27t-Work%21-tp20765310p20766130.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: The Form Submit can't Work!

2008-11-30 Thread Mohammad Shamsi
Hi Gerry,

Try to change you method name to : onSuccessFormDownloadFile

or use Annotation  :

@OnEvent(value = "submit", component = "Btn_Down")
StreamResponse onSubmitFormDownloadFile() {






On Mon, Dec 1, 2008 at 2:55 AM, Gerry Chen <[EMAIL PROTECTED]> wrote:

>
> Hi Everyone:
>
>   I'm a new Tapestry user. I'm interesting in developing Web Program with
> Tapestry Framwork.But I have some problem in my project.
>  This question is the Form Submit Event can't be invoked When I click
> "Export File" Button in my Page.
>
>  My Program looks like this:
>
>  SearchGoodsInfo.tml
>
>  This tml file hava tow Forms.
>
>  
>  t:value="Find" class="button_bg"/>
>  
>
>  
> t:value="Export File" class="button_bg"/>
>  
>
>   SearchGoodsInfo.java
>
>   The Event handler in java file like this:
>
>   StreamResponse onSubmitFormDownloadFile()
>  {
>
>
>StreamResponse responseDown = new XlsFileAttachmet(insFile);
>return responseDown;
>
>  }
>
>  The Extension .java file only have a form submit Event with "Export File"
> Button.I use below code to handle another button. That is working finely.
>
>   @OnEvent(value="selected",component = "Btn_Submit")
>   public void onSearch()
>  {
>.
>  }
>
>
>  But the onSubmitFormDownloadFile method can not work!How can I catch the
> "DownloadFile" form submit event.
>
>
> --
> View this message in context:
> http://www.nabble.com/The-Form-Submit-can%27t-Work%21-tp20765310p20765310.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]
>
>


-- 
sincerely yours
M. H. Shamsi


The Form Submit can't Work!

2008-11-30 Thread Gerry Chen

Hi Everyone:

   I'm a new Tapestry user. I'm interesting in developing Web Program with
Tapestry Framwork.But I have some problem in my project.
  This question is the Form Submit Event can't be invoked When I click
"Export File" Button in my Page.

  My Program looks like this:

  SearchGoodsInfo.tml

  This tml file hava tow Forms.


 
  

  

  

   SearchGoodsInfo.java
  
   The Event handler in java file like this:

   StreamResponse onSubmitFormDownloadFile()
  {


StreamResponse responseDown = new XlsFileAttachmet(insFile);
return responseDown;
  
  }
   
  The Extension .java file only have a form submit Event with "Export File"
Button.I use below code to handle another button. That is working finely.
  
   @OnEvent(value="selected",component = "Btn_Submit")
   public void onSearch()
  {
.
  }


  But the onSubmitFormDownloadFile method can not work!How can I catch the
"DownloadFile" form submit event.
  
  
-- 
View this message in context: 
http://www.nabble.com/The-Form-Submit-can%27t-Work%21-tp20765310p20765310.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]



dojo for Tapestry 5

2008-11-30 Thread Yiqun Shi
Is there any plan for the integration of Dojo to Tapestry 5? Or because it
is easy to create user-defined component, does it necessarily mean
dojo-featured component is easy to be made by user?
SYQ


Re: Tapestry-Hiberante with Tapestry IoC

2008-11-30 Thread Juan E. Maya
That's great :) I'll be waiting for it anxiously :)

On Sun, Nov 30, 2008 at 9:24 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote:

> I've added an issue to split tapestry-hibernate into two parts; one
> for use with tapestry-ioc, and one that adds extra support for use
> with tapestry-core.
>
> On Sun, Nov 30, 2008 at 11:54 AM, Juan E. Maya <[EMAIL PROTECTED]>
> wrote:
> > Running the application posted in the wiki using tapestry 5.0.16 gives
> the
> > same problem :(
> >
> > On Sun, Nov 30, 2008 at 8:42 PM, Juan E. Maya <[EMAIL PROTECTED]>
> wrote:
> >
> >> Angelo, thank you for the link. However after following the instructions
> >> i'm still having problems.
> >> 1. When i run the application i get the following runtime error:
> >>
> >> Exception in thread "main" java.lang.RuntimeException: Service id
> >> 'ClassNameLocator' has already been defined by
> >>
> org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
> >> (at ClassNameLocatorImpl.java:61) via
> >> org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder)
> (at
> >> TapestryIOCModule.java:36) and may not be redefined by
> >>
> org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
> >> (at ClassNameLocatorImpl.java:61) via
> >> com.superm.lampmanager.service.LampManagerModule.bind(ServiceBinder) (at
> >> LampManagerModule.java:29). You should rename one of the service builder
> >> methods.
> >> at
> >>
> org.apache.tapestry5.ioc.internal.RegistryImpl.(RegistryImpl.java:170)
> >> at
> >> org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:168)
> >> at com.superm.lampmanager.Shell.main(Shell.java:26)
> >>
> >> If i remove the line the application works, however i can't use a
> >> transaction decorator because i get the following runtime error:
> >> Caused by: java.lang.RuntimeException: No service implements the
> interface
> >> org.apache.tapestry5.hibernate.HibernateTransactionDecorator.
> >>
> >> This is the code use to configure the decorator.
> >> @Match("*Manager*")
> >> public static  T
> >> decorateTransactionally(HibernateTransactionDecorator decorator,
> Class
> >> serviceInterface, T delegate, String serviceId) {
> >> return decorator.build(serviceInterface, delegate, serviceId);
> >> }
> >>
> >> and i have a final question regarding the sentencye: "definitely make
> sure
> >> to call registry.cleanupThread(); at the end of the main method"
> >> Does this mean that  i have to run this line to commit the transaction?
> If
> >> so, then i suppose that the decorator can't be used. is there a special
> >> reason the decorator will not work?
> >>
> >> Thanks a lot!
> >>
> >>
> >>
> >> On Sun, Nov 30, 2008 at 12:14 AM, Angelo Chen <
> [EMAIL PROTECTED]>wrote:
> >>
> >>>
> >>>
> >>> http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate
> >>>
> >>>
> >>> Juan Maya wrote:
> >>> >
> >>> > Hi! I am creating a standalone application using Tapestry IoC outside
> of
> >>> > Tapestry. now i am struggling to find a way to use the
> >>> Tapestry-Hibernate
> >>> > integration? Do you know how to this?
> >>> > I kinda prefer to give a try to the Tapestry IoC (i have liked it a
> >>> lot!)
> >>> > and forget about Spring for awhile :)
> >>> >
> >>> > Thanks a lot for the help!
> >>> >
> >>> >
> >>>
> >>> --
> >>> View this message in context:
> >>>
> http://www.nabble.com/Tapestry-Hiberante-with-Tapestry-IoC-tp20749684p20752632.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: Tapestry-Hiberante with Tapestry IoC

2008-11-30 Thread Howard Lewis Ship
I've added an issue to split tapestry-hibernate into two parts; one
for use with tapestry-ioc, and one that adds extra support for use
with tapestry-core.

On Sun, Nov 30, 2008 at 11:54 AM, Juan E. Maya <[EMAIL PROTECTED]> wrote:
> Running the application posted in the wiki using tapestry 5.0.16 gives the
> same problem :(
>
> On Sun, Nov 30, 2008 at 8:42 PM, Juan E. Maya <[EMAIL PROTECTED]> wrote:
>
>> Angelo, thank you for the link. However after following the instructions
>> i'm still having problems.
>> 1. When i run the application i get the following runtime error:
>>
>> Exception in thread "main" java.lang.RuntimeException: Service id
>> 'ClassNameLocator' has already been defined by
>> org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
>> (at ClassNameLocatorImpl.java:61) via
>> org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at
>> TapestryIOCModule.java:36) and may not be redefined by
>> org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
>> (at ClassNameLocatorImpl.java:61) via
>> com.superm.lampmanager.service.LampManagerModule.bind(ServiceBinder) (at
>> LampManagerModule.java:29). You should rename one of the service builder
>> methods.
>> at
>> org.apache.tapestry5.ioc.internal.RegistryImpl.(RegistryImpl.java:170)
>> at
>> org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:168)
>> at com.superm.lampmanager.Shell.main(Shell.java:26)
>>
>> If i remove the line the application works, however i can't use a
>> transaction decorator because i get the following runtime error:
>> Caused by: java.lang.RuntimeException: No service implements the interface
>> org.apache.tapestry5.hibernate.HibernateTransactionDecorator.
>>
>> This is the code use to configure the decorator.
>> @Match("*Manager*")
>> public static  T
>> decorateTransactionally(HibernateTransactionDecorator decorator, Class
>> serviceInterface, T delegate, String serviceId) {
>> return decorator.build(serviceInterface, delegate, serviceId);
>> }
>>
>> and i have a final question regarding the sentencye: "definitely make sure
>> to call registry.cleanupThread(); at the end of the main method"
>> Does this mean that  i have to run this line to commit the transaction? If
>> so, then i suppose that the decorator can't be used. is there a special
>> reason the decorator will not work?
>>
>> Thanks a lot!
>>
>>
>>
>> On Sun, Nov 30, 2008 at 12:14 AM, Angelo Chen <[EMAIL PROTECTED]>wrote:
>>
>>>
>>>
>>> http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate
>>>
>>>
>>> Juan Maya wrote:
>>> >
>>> > Hi! I am creating a standalone application using Tapestry IoC outside of
>>> > Tapestry. now i am struggling to find a way to use the
>>> Tapestry-Hibernate
>>> > integration? Do you know how to this?
>>> > I kinda prefer to give a try to the Tapestry IoC (i have liked it a
>>> lot!)
>>> > and forget about Spring for awhile :)
>>> >
>>> > Thanks a lot for the help!
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Tapestry-Hiberante-with-Tapestry-IoC-tp20749684p20752632.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: Tapestry-Hiberante with Tapestry IoC

2008-11-30 Thread Juan E. Maya
Running the application posted in the wiki using tapestry 5.0.16 gives the
same problem :(

On Sun, Nov 30, 2008 at 8:42 PM, Juan E. Maya <[EMAIL PROTECTED]> wrote:

> Angelo, thank you for the link. However after following the instructions
> i'm still having problems.
> 1. When i run the application i get the following runtime error:
>
> Exception in thread "main" java.lang.RuntimeException: Service id
> 'ClassNameLocator' has already been defined by
> org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
> (at ClassNameLocatorImpl.java:61) via
> org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at
> TapestryIOCModule.java:36) and may not be redefined by
> org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
> (at ClassNameLocatorImpl.java:61) via
> com.superm.lampmanager.service.LampManagerModule.bind(ServiceBinder) (at
> LampManagerModule.java:29). You should rename one of the service builder
> methods.
> at
> org.apache.tapestry5.ioc.internal.RegistryImpl.(RegistryImpl.java:170)
> at
> org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:168)
> at com.superm.lampmanager.Shell.main(Shell.java:26)
>
> If i remove the line the application works, however i can't use a
> transaction decorator because i get the following runtime error:
> Caused by: java.lang.RuntimeException: No service implements the interface
> org.apache.tapestry5.hibernate.HibernateTransactionDecorator.
>
> This is the code use to configure the decorator.
> @Match("*Manager*")
> public static  T
> decorateTransactionally(HibernateTransactionDecorator decorator, Class
> serviceInterface, T delegate, String serviceId) {
> return decorator.build(serviceInterface, delegate, serviceId);
> }
>
> and i have a final question regarding the sentencye: "definitely make sure
> to call registry.cleanupThread(); at the end of the main method"
> Does this mean that  i have to run this line to commit the transaction? If
> so, then i suppose that the decorator can't be used. is there a special
> reason the decorator will not work?
>
> Thanks a lot!
>
>
>
> On Sun, Nov 30, 2008 at 12:14 AM, Angelo Chen <[EMAIL PROTECTED]>wrote:
>
>>
>>
>> http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate
>>
>>
>> Juan Maya wrote:
>> >
>> > Hi! I am creating a standalone application using Tapestry IoC outside of
>> > Tapestry. now i am struggling to find a way to use the
>> Tapestry-Hibernate
>> > integration? Do you know how to this?
>> > I kinda prefer to give a try to the Tapestry IoC (i have liked it a
>> lot!)
>> > and forget about Spring for awhile :)
>> >
>> > Thanks a lot for the help!
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Tapestry-Hiberante-with-Tapestry-IoC-tp20749684p20752632.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: Tapestry-Hiberante with Tapestry IoC

2008-11-30 Thread Juan E. Maya
Angelo, thank you for the link. However after following the instructions i'm
still having problems.
1. When i run the application i get the following runtime error:

Exception in thread "main" java.lang.RuntimeException: Service id
'ClassNameLocator' has already been defined by
org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
(at ClassNameLocatorImpl.java:61) via
org.apache.tapestry5.ioc.services.TapestryIOCModule.bind(ServiceBinder) (at
TapestryIOCModule.java:36) and may not be redefined by
org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl(ClasspathURLConverter)
(at ClassNameLocatorImpl.java:61) via
com.superm.lampmanager.service.LampManagerModule.bind(ServiceBinder) (at
LampManagerModule.java:29). You should rename one of the service builder
methods.
at
org.apache.tapestry5.ioc.internal.RegistryImpl.(RegistryImpl.java:170)
at
org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:168)
at com.superm.lampmanager.Shell.main(Shell.java:26)

If i remove the line the application works, however i can't use a
transaction decorator because i get the following runtime error:
Caused by: java.lang.RuntimeException: No service implements the interface
org.apache.tapestry5.hibernate.HibernateTransactionDecorator.

This is the code use to configure the decorator.
@Match("*Manager*")
public static  T
decorateTransactionally(HibernateTransactionDecorator decorator, Class
serviceInterface, T delegate, String serviceId) {
return decorator.build(serviceInterface, delegate, serviceId);
}

and i have a final question regarding the sentencye: "definitely make sure
to call registry.cleanupThread(); at the end of the main method"
Does this mean that  i have to run this line to commit the transaction? If
so, then i suppose that the decorator can't be used. is there a special
reason the decorator will not work?

Thanks a lot!


On Sun, Nov 30, 2008 at 12:14 AM, Angelo Chen <[EMAIL PROTECTED]>wrote:

>
>
> http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate
>
>
> Juan Maya wrote:
> >
> > Hi! I am creating a standalone application using Tapestry IoC outside of
> > Tapestry. now i am struggling to find a way to use the Tapestry-Hibernate
> > integration? Do you know how to this?
> > I kinda prefer to give a try to the Tapestry IoC (i have liked it a lot!)
> > and forget about Spring for awhile :)
> >
> > Thanks a lot for the help!
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Tapestry-Hiberante-with-Tapestry-IoC-tp20749684p20752632.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] Backslash in URL chokes onActivate (5.0.16)

2008-11-30 Thread thermus

Nevermind. "%255C" did the trick.


thermus wrote:
> 
> I encountered a problem where onActivate(String str) chokes if "%5C" (i.e.
> backslash) is included in the URL context.  Aside from not allowing
> backslashes at all, is there a proper way to escape backslashes so
> Tapestry treats them as part of the incoming string parameter?
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--Backslash-in-URL-chokes-onActivate-%285.0.16%29-tp20759966p20760189.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] Backslash in URL chokes onActivate (5.0.16)

2008-11-30 Thread thermus

I encountered a problem where onActivate(String str) chokes if "%5C" (i.e.
backslash) is included in the URL context.  Aside from not allowing
backslashes at all, is there a proper way to escape backslashes so Tapestry
treats them as part of the incoming string parameter?


-- 
View this message in context: 
http://www.nabble.com/-T5--Backslash-in-URL-chokes-onActivate-%285.0.16%29-tp20759966p20759966.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] Localization problem (PageTester) on Linux

2008-11-30 Thread Daniel Kleine-Albers

Hi guys,

solved it myself.

I had the appName for the PageTester as "App". After changing it to  
"app" everything works as expected on both platforms. However I wonder  
if this is a bug (as Mac OS X is case-sensitive as well) or if this is  
the expected behaviour?


Thanks,
Daniel


On 30.11.2008, at 12:22, Daniel Kleine-Albers wrote:


Hi everyone,

I'm experiencing a strange behaviour regarding localization. As  
usual I've got two localization catalogs in my WEB-INF directory:


app.properties
app_de.properties

I've got some unit tests using the PageTester initialized like this:
tester = new PageTester(appPackage, appName, "src/main/webapp");
tester.setPreferedLanguage(Locale.GERMANY);

When running the tests and rendering a page with a localized message  
in it, on my development machine (running Mac OS X) the german  
message is rendered as expected.


However on the integration machine (using Linux) only [[missing key:  
*]] errors are rendered in the unit tests (not even falling back to  
the default catalog). Any ideas why this happens? (Java and Maven  
versions are identical)


Cheers
Daniel



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



Tap 5.0.17: Take a long time to create a strategy service in debug mode

2008-11-30 Thread Shing Hing Man

I have a strategy service ComputeWorker. In the normal run mode, the start page 
loads up in 
a few seconds. But in debug mode, the start page takes more than two miniutes 
to load.
>From the console, it looks as though it spent a long time to create 
the strategy service computeWorker (in debug mode).
   
[INFO] mortbay.log Started [EMAIL PROTECTED]:8080
[DEBUG] ComputeWorkers.ComputeWorker Creating service 'ComputeWorker'.
[INFO] AppModule.TimingFilter Request time: 127079 ms


I am using Eclipse 3.4 and get the same long start up time in debug mode 
when using  WTP and Jetty.


Has anyone come across the above ?
It would be very much appreciated if someone could help me to resolve this 
issue.
  

shing 


Home page : http://www.lombok.demon.co.uk/





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



[T5] Localization problem (PageTester) on Linux

2008-11-30 Thread Daniel Kleine-Albers

Hi everyone,

I'm experiencing a strange behaviour regarding localization. As usual  
I've got two localization catalogs in my WEB-INF directory:


app.properties
app_de.properties

I've got some unit tests using the PageTester initialized like this:
tester = new PageTester(appPackage, appName, "src/main/webapp");
tester.setPreferedLanguage(Locale.GERMANY);

When running the tests and rendering a page with a localized message  
in it, on my development machine (running Mac OS X) the german message  
is rendered as expected.


However on the integration machine (using Linux) only [[missing key:  
*]] errors are rendered in the unit tests (not even falling back to  
the default catalog). Any ideas why this happens? (Java and Maven  
versions are identical)


Cheers
Daniel