Re: T4 T4.1.2: tapestry.form.registerForm is not a function

2007-06-28 Thread Jeremy F. Kassis

Just to be clear, I "broke it more" to see what would happen and eliminate
the possibility that the defaultDojoPath and related IAsset declarations
were wrong. I changed them back, assuming they are right, but I don't have
any new theories.

I'm using Firefox 2, which I know is a little bleeding edge, so I tried on
IE and get the same problem.

-- 
View this message in context: 
http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355832
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Problem after upgrade to Tapestry 4.1.2

2007-06-28 Thread spot_

Hi Jesse, gant

thank you very much! After deleting the whole
"/var/cache/tomcat5/Catalina/localhost/MyApp" dir recursively on the server
machine everything works fine.

Cheers
Christoph


Jessek wrote:
> 
> I don't know Maybe it's not a tomcat version issue at all but more of
> a
> library version issue.  Somehow that server machine has an old version of
> tapestry somewhere.
> 
> On your server go to wherever the root path of tomcat is (I never install
> any java related software with apt/yum) and do:
> 
> find . -name "*tapestry*" -print
> 
> That should tell you more.  Just be sure every single occurrence of a
> matching file is accounted for.  I think it's been stuck in the shared lib
> or something else weird somehow.
> 
> -- 
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
> 
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-after-upgrade-to-Tapestry-4.1.2-tf3993336.html#a11355676
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T4 T4.1.2: tapestry.form.registerForm is not a function

2007-06-28 Thread Jeremy F. Kassis

Good idea.

I restarted the server and loaded the page. Looks clean on the server-side.

Then, I "broke it more" by messing with one of IAsset declarations. I get
asset not found errors and the page fails to load. I'm attaching my page
source in case it might help.
http://www.nabble.com/file/p11355653/app.htm app.htm 



Jessek wrote:
> 
> And on the server do you get log warning messages about classpath
> resources
> not being found?
> 
> Maybe your urls aren't being handled properly for some reason?  I haven't
> tested anything without friendly urls in a while, maybe something there is
> broken.
> 
> On 6/29/07, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote:
>>
>>
>> Thanks for the quick reply.
>>
>> I cleared my browser cache, but no luck.
>>
>> Then, I rebuilt the tapestry-framework-4.1.2 jar with a couple of
>> alert('hi'); lines embedded in the form.js file. Cleared my cache again
>> and
>> checked the GET request responses to make sure the browser was fetching
>> the
>> updated file. Loaded the page and got no alerts, so I'm updating my
>> theory.
>> I don't think dojo is parsing these. (Tangentially... do you know an
>> easier
>> way to do this?)
>>
>> One other datum supports this... I added > value="ognl:true"/> to the Shell component declaration. This causes the
>> following lines to appear in the page:
>>dojo.require("dojo.logging.Logger");
>>dojo.log.setLevel(dojo.log.getLevel("WARNING"));
>>
>> firefox complains that dojo.log.getLevel is not a function, so I'm
>> guessing
>> that none of the dojo.require statements are succeeding.
>>
>> Yowza!
>>
>>
>>
>>
>> Jessek wrote:
>> >
>> > Clear your browser cache?  I've never seen/heard of something like this
>> so
>> > I
>> > don't have a lot of ideas.
>> >
>> > On 6/29/07, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> Just upgraded to T4.1.2. On pages with forms, I get the following
>> error:
>> >>  "tapestry.form.registerForm is not a function"
>> >>
>> >> Using firebug, I...
>> >>   1. Set a breakpoint on this line: require("tapestry.form");
>> >>   2. clear the console
>> >>   3. step over the function call
>> >>   4. observe the GET requests for form.js *AND* form/validation.js
>> *AND*
>> >> form_compat.js
>> >>
>> >> The last two files are dependencies declared in the form.js file, so
>> it
>> >> even
>> >> seems that dojo is parsing this. It's just not parsing the money line:
>> >>  tapestry.form={ blah blah blah };
>> >>
>> >> My theory is that dojo is swallowing some errors here, but I'm open to
>> >> others. Any thoughts anyone?
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279
>> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>> > --
>> > Jesse Kuhnert
>> > Tapestry/Dojo team member/developer
>> >
>> > Open source based consulting work centered around
>> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355545
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
> 
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355653
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T4 T4.1.2: tapestry.form.registerForm is not a function

2007-06-28 Thread Jesse Kuhnert

And on the server do you get log warning messages about classpath resources
not being found?

Maybe your urls aren't being handled properly for some reason?  I haven't
tested anything without friendly urls in a while, maybe something there is
broken.

On 6/29/07, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote:



Thanks for the quick reply.

I cleared my browser cache, but no luck.

Then, I rebuilt the tapestry-framework-4.1.2 jar with a couple of
alert('hi'); lines embedded in the form.js file. Cleared my cache again
and
checked the GET request responses to make sure the browser was fetching
the
updated file. Loaded the page and got no alerts, so I'm updating my
theory.
I don't think dojo is parsing these. (Tangentially... do you know an
easier
way to do this?)

One other datum supports this... I added  to the Shell component declaration. This causes the
following lines to appear in the page:
   dojo.require("dojo.logging.Logger");
   dojo.log.setLevel(dojo.log.getLevel("WARNING"));

firefox complains that dojo.log.getLevel is not a function, so I'm
guessing
that none of the dojo.require statements are succeeding.

Yowza!




Jessek wrote:
>
> Clear your browser cache?  I've never seen/heard of something like this
so
> I
> don't have a lot of ideas.
>
> On 6/29/07, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote:
>>
>>
>> Just upgraded to T4.1.2. On pages with forms, I get the following
error:
>>  "tapestry.form.registerForm is not a function"
>>
>> Using firebug, I...
>>   1. Set a breakpoint on this line: require("tapestry.form");
>>   2. clear the console
>>   3. step over the function call
>>   4. observe the GET requests for form.js *AND* form/validation.js
*AND*
>> form_compat.js
>>
>> The last two files are dependencies declared in the form.js file, so it
>> even
>> seems that dojo is parsing this. It's just not parsing the money line:
>>  tapestry.form={ blah blah blah };
>>
>> My theory is that dojo is swallowing some errors here, but I'm open to
>> others. Any thoughts anyone?
>>
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
>

--
View this message in context:
http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355545
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: T4 T4.1.2: tapestry.form.registerForm is not a function

2007-06-28 Thread Jeremy F. Kassis

Thanks for the quick reply.

I cleared my browser cache, but no luck.

Then, I rebuilt the tapestry-framework-4.1.2 jar with a couple of
alert('hi'); lines embedded in the form.js file. Cleared my cache again and
checked the GET request responses to make sure the browser was fetching the
updated file. Loaded the page and got no alerts, so I'm updating my theory.
I don't think dojo is parsing these. (Tangentially... do you know an easier
way to do this?)

One other datum supports this... I added  to the Shell component declaration. This causes the
following lines to appear in the page:
   dojo.require("dojo.logging.Logger");
   dojo.log.setLevel(dojo.log.getLevel("WARNING"));

firefox complains that dojo.log.getLevel is not a function, so I'm guessing
that none of the dojo.require statements are succeeding.

Yowza!




Jessek wrote:
> 
> Clear your browser cache?  I've never seen/heard of something like this so
> I
> don't have a lot of ideas.
> 
> On 6/29/07, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote:
>>
>>
>> Just upgraded to T4.1.2. On pages with forms, I get the following error:
>>  "tapestry.form.registerForm is not a function"
>>
>> Using firebug, I...
>>   1. Set a breakpoint on this line: require("tapestry.form");
>>   2. clear the console
>>   3. step over the function call
>>   4. observe the GET requests for form.js *AND* form/validation.js *AND*
>> form_compat.js
>>
>> The last two files are dependencies declared in the form.js file, so it
>> even
>> seems that dojo is parsing this. It's just not parsing the money line:
>>  tapestry.form={ blah blah blah };
>>
>> My theory is that dojo is swallowing some errors here, but I'm open to
>> others. Any thoughts anyone?
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
> 
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355545
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Problem after upgrade to Tapestry 4.1.2

2007-06-28 Thread gant
may be you should clear the tomcat caches which are in tomcat temp 
directory.


- Original Message - 
From: "spot_" <[EMAIL PROTECTED]>

To: 
Sent: Friday, June 29, 2007 1:32 PM
Subject: Re: Problem after upgrade to Tapestry 4.1.2




Hello Jesse

thanks for help. But no, I have not overriden the Shell component. I
searched all project files for the terms 'dojoPath' and 'Shell' with no
result (except of Border.html where it belongs to).
But what about this: The WebApp works fine on my development machine! It's
WinXP/Tomcat 5.5.17... maybe Tapestry 4.1.2 needs Tomcat 5.5 to work?
(Server machine: Ubuntu 6.10 server/Tomcat 5.0.30)

Cheers
Christoph


Jessek wrote:


The exception message saying its missing classpath resource "'/dojo/'."
sounds suspicious.  This was the old parameter given and shouldn't be
something Tapestry would reference by default in the current release.

I think Marcus was on to something there.You may want to check very
carefully what jar versions you are using and what parameters and such 
you

are giving to your Shell component. (have you overriden the Shell
component
and forgotten maybe?)

--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com




--
View this message in context: 
http://www.nabble.com/Problem-after-upgrade-to-Tapestry-4.1.2-tf3993336.html#a11355278

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: Problem after upgrade to Tapestry 4.1.2

2007-06-28 Thread Jesse Kuhnert

I don't know Maybe it's not a tomcat version issue at all but more of a
library version issue.  Somehow that server machine has an old version of
tapestry somewhere.

On your server go to wherever the root path of tomcat is (I never install
any java related software with apt/yum) and do:

find . -name "*tapestry*" -print

That should tell you more.  Just be sure every single occurrence of a
matching file is accounted for.  I think it's been stuck in the shared lib
or something else weird somehow.

On 6/29/07, spot_ <[EMAIL PROTECTED]> wrote:



Hello Jesse

thanks for help. But no, I have not overriden the Shell component. I
searched all project files for the terms 'dojoPath' and 'Shell' with no
result (except of Border.html where it belongs to).
But what about this: The WebApp works fine on my development machine! It's
WinXP/Tomcat 5.5.17... maybe Tapestry 4.1.2 needs Tomcat 5.5 to work?
(Server machine: Ubuntu 6.10 server/Tomcat 5.0.30)

Cheers
Christoph


Jessek wrote:
>
> The exception message saying its missing classpath resource "'/dojo/'."
> sounds suspicious.  This was the old parameter given and shouldn't be
> something Tapestry would reference by default in the current release.
>
> I think Marcus was on to something there.You may want to check very
> carefully what jar versions you are using and what parameters and such
you
> are giving to your Shell component. (have you overriden the Shell
> component
> and forgotten maybe?)
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>
>

--
View this message in context:
http://www.nabble.com/Problem-after-upgrade-to-Tapestry-4.1.2-tf3993336.html#a11355278
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: T4 T4.1.2: tapestry.form.registerForm is not a function

2007-06-28 Thread Jesse Kuhnert

Clear your browser cache?  I've never seen/heard of something like this so I
don't have a lot of ideas.

On 6/29/07, Jeremy F. Kassis <[EMAIL PROTECTED]> wrote:



Just upgraded to T4.1.2. On pages with forms, I get the following error:
 "tapestry.form.registerForm is not a function"

Using firebug, I...
  1. Set a breakpoint on this line: require("tapestry.form");
  2. clear the console
  3. step over the function call
  4. observe the GET requests for form.js *AND* form/validation.js *AND*
form_compat.js

The last two files are dependencies declared in the form.js file, so it
even
seems that dojo is parsing this. It's just not parsing the money line:
 tapestry.form={ blah blah blah };

My theory is that dojo is swallowing some errors here, but I'm open to
others. Any thoughts anyone?


--
View this message in context:
http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


T4 T4.1.2: tapestry.form.registerForm is not a function

2007-06-28 Thread Jeremy F. Kassis

Just upgraded to T4.1.2. On pages with forms, I get the following error:
 "tapestry.form.registerForm is not a function"

Using firebug, I...
  1. Set a breakpoint on this line: require("tapestry.form");
  2. clear the console
  3. step over the function call
  4. observe the GET requests for form.js *AND* form/validation.js *AND*
form_compat.js

The last two files are dependencies declared in the form.js file, so it even
seems that dojo is parsing this. It's just not parsing the money line:
 tapestry.form={ blah blah blah };

My theory is that dojo is swallowing some errors here, but I'm open to
others. Any thoughts anyone?


-- 
View this message in context: 
http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Problem after upgrade to Tapestry 4.1.2

2007-06-28 Thread spot_

Hello Jesse

thanks for help. But no, I have not overriden the Shell component. I
searched all project files for the terms 'dojoPath' and 'Shell' with no
result (except of Border.html where it belongs to).
But what about this: The WebApp works fine on my development machine! It's
WinXP/Tomcat 5.5.17... maybe Tapestry 4.1.2 needs Tomcat 5.5 to work?
(Server machine: Ubuntu 6.10 server/Tomcat 5.0.30)

Cheers
Christoph


Jessek wrote:
> 
> The exception message saying its missing classpath resource "'/dojo/'."
> sounds suspicious.  This was the old parameter given and shouldn't be
> something Tapestry would reference by default in the current release.
> 
> I think Marcus was on to something there.You may want to check very
> carefully what jar versions you are using and what parameters and such you
> are giving to your Shell component. (have you overriden the Shell
> component
> and forgotten maybe?)
> 
> -- 
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
> 
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-after-upgrade-to-Tapestry-4.1.2-tf3993336.html#a11355278
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: Build Tapestry5.0.5 error

2007-06-28 Thread Howard Lewis Ship

Use Maven 2.0.5.

On 6/28/07, Allen Guo <[EMAIL PROTECTED]> wrote:

Hi All,

Today I build the tapestry-ioc module in eclipse, I get the following
build error

07-6-29 上午11时07分33秒: Project build error Failed to validate POM
07-6-29 上午11时07分33秒: 'dependencies.dependency.version' is missing
for jboss:javassist
07-6-29 上午11时07分33秒: 'dependencies.dependency.version' is missing
for commons-logging:commons-logging
07-6-29 上午11时07分33秒: 'dependencies.dependency.version' is missing
for org.easymock:easymock
07-6-29 上午11时07分33秒: 'dependencies.dependency.version' is missing
for log4j:log4j

How can I build it successfully?

Thanks
Allen Guo

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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com


Re: Invoke method with pararmeters in TP5.0.5

2007-06-28 Thread Nick Westgate

No, not yet. Expansions are a shorthand for Property Bindings, described here:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html

The original reason for prop (IIRC) was to improve on the performance of OGNL.
Now that the much faster OGNL 2.7 has been released, it could be an add-on for
T5 as Howard mentions here:
http://howardlewisship.com/tapestry-javaforge/tapestry-prop/

Cheers,
Nick.


Allen Guo wrote:

Hi All,

Suppose there is a method with parameters in page class like this
// CssPage.java
.
pubic String getEcho(String echo){
return "[" + echo + "]";
}


Can I call it in html template like this?
// CssPage.html
..

${getImage('HELLO')}
...

I just tested it. It doesn't work.
I want to know if tp5 support the feature? If not, do you think if we
really need the feature???


Thanks
Allen Guo


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



Invoke method with pararmeters in TP5.0.5

2007-06-28 Thread Allen Guo
Hi All,

Suppose there is a method with parameters in page class like this
// CssPage.java
.
pubic String getEcho(String echo){
return "[" + echo + "]";
}


Can I call it in html template like this?
// CssPage.html
..

${getImage('HELLO')}
...

I just tested it. It doesn't work.
I want to know if tp5 support the feature? If not, do you think if we
really need the feature???


Thanks
Allen Guo


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



Re: Tap 4.1.2 PageNotFoundException not caught

2007-06-28 Thread Jesse Kuhnert

Damn those commons-pool developers for making me catch their checked
exception...And not even a specific type at that...Oh no...just
java.lang.Exception.  fuc%4%-ers...

I should probably try some strategy to re-throw the original exception if
it's within the org.apache.tapestry package.

If someone logs a jira issue I won't forget about it.

On 6/28/07, Shing Hing Man <[EMAIL PROTECTED]> wrote:



After updating to the latest Tap 4.1.2, a
PageNotFoundException is no longer
caught in the following piece of code in my border
component.

public boolean isShowHelpLink() {
boolean show = true;
IPage currentPage = getPage();
String helpPageName = currentPage.getPageName() +
"Help";
try {
IRequestCycle  requestCycle =
getPage().getRequestCycle();
requestCycle.getPage(helpPageName); // Exception
here is not caught
} catch (PageNotFoundException pnfe) {
show = false;
}

return show;
}

Instead, the exception is shown on the exception page
:
org.apache.hivemind.ApplicationRuntimeException
There was an error borrowing the page with key
PageKey[_pageName='HomeHelp' , _locale=en_GB ] from
the page pool.

[ +/- ] Exception: Page 'HomeHelp' not found in
application namespace.
org.apache.tapestry.PageNotFoundException
Page 'HomeHelp' not found in application namespace.
pageName:   HomeHelp
Stack Trace:

*
org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(
PageSpecificationResolverImpl.java:147)
*

$PageSpecificationResolver_113742bd0e2.resolve($PageSpecificationResolver_113742bd0e2.java)
*

$PageSpecificationResolver_113742bd0e3.resolve($PageSpecificationResolver_113742bd0e3.java)
*
org.apache.tapestry.pageload.PageSource.makeObject(PageSource.java:148)
*
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(
GenericKeyedObjectPool.java:797)
*
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:177)
*
$IPageSource_113742bd03e.getPage($IPageSource_113742bd03e.java)
*
org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)
*
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)
*
$IRequestCycle_113742bd14e.getPage($IRequestCycle_113742bd14e.java)
*
$IRequestCycle_113742bd068.getPage($IRequestCycle_113742bd068.java)
*
net.sf.financial.components.Border.isShowHelpLink(Border.java:103)
*
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)



Is the above the expected behaviour ?

Shing

Home page : http://uk.geocities.com/matmsh/


  ___
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up
for
your free account today
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html

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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Build Tapestry5.0.5 error

2007-06-28 Thread Allen Guo
Hi All,

Today I build the tapestry-ioc module in eclipse, I get the following
build error

07-6-29 上午11时07分33秒: Project build error Failed to validate POM
07-6-29 上午11时07分33秒: 'dependencies.dependency.version' is missing
for jboss:javassist
07-6-29 上午11时07分33秒: 'dependencies.dependency.version' is missing
for commons-logging:commons-logging
07-6-29 上午11时07分33秒: 'dependencies.dependency.version' is missing
for org.easymock:easymock
07-6-29 上午11时07分33秒: 'dependencies.dependency.version' is missing
for log4j:log4j

How can I build it successfully?

Thanks
Allen Guo

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



Re: [t4] EventListener question

2007-06-28 Thread Jesse Kuhnert

Hmmm I'm not sure  completely.   If you had an example I can play with more
easily attached to a jira issue I can take a look.

On 6/28/07, Julian Wood <[EMAIL PROTECTED]> wrote:


Well I'll look forward to the time when that's implemented! But I'm
still curious what the problem is with my original approach, as it
seems to be a different problem. That is, after an initial async
submission, the eventlistener invokes the listener on the submit
button when it shouldn't.

  In the meantime, for completeness, I''ll mention my workaround to
distinguish between calls to my listener invoked by the eventlistener
and calls invoked by the submit button. Maybe there is a better one.

I placed a hidden component in my form, called isSubmission, bound to
a property of the same name, with an initial value of false. I bound
dojo.byId('isSubmission').value='true' to the onclick handler of the
submit button. Now in my listener I can distinguish between the two
types of invocations and act appropriately. The last piece is to set
the hidden component value back to false and updateComponent on the
hidden field.

Curiously, something like this doesn't (but should) work (you need to
use onclick):

 dojo.event.connectOnce(tapestry.form, "submitAsync", function(e) {
 dojo.byId("isSubmission").value='true';
 });

I wonder if that has something to do with the problem.

Thanks,

J

On 27-Jun-07, at 9:34 PM, Jesse Kuhnert wrote:

> Haha look at that. I forget that it can bind to any function
> sometimes.
> That's neat. :)
>
> Yes that was what I was thinking as the "strategy" for doing
> EventListener
> connections on this specific type of component.   It would need to
> honor any
> existing informal onclick attributes and back off to something else
> but I
> think I have that logic implemented for the various link components
> already
> so just need to refactor it out into something more generic and
> consumable
> by eventlistener infrastructure.
>
> BTW, you can drop off "validateForm/async" from your EventListener
> parameters if you wanted to as those are the default values.  (and
> when it
> works with doing a component target="" for radio groups you'll be
> able to
> drop off everything but the event and target)
>
> On 6/27/07, Julian Wood <[EMAIL PROTECTED]> wrote:
>>
>> I used a little trick to get the radiobuttons to send an event, which
>> I suppose could be the problem. All you need to do is add this
>> onclick handler to each radio button, and then the tapestry event
>> listener will respond.
>>
>> 
>>  > value="ognl:@[EMAIL PROTECTED]" onclick="document.getElementById
>> ('stageRadioGroup').clickRadio(this);"/> Pre
>>   ...
>>
>>
>>   @EventListener(events = "clickRadio", elements = "stageRadioGroup",
>> async = true, submitForm = "addEventForm", validateForm = false)
>>   public void stageSelected(IRequestCycle cycle) {...}
>>
>> And yes, the problem occurs without the dialog.
>>
>> Thanks,
>>
>> J
>>
>> On 27-Jun-07, at 1:04 PM, Jesse Kuhnert wrote:
>>
>> > EventListener && Radio Groups don't really get along so well.  The
>> > reason
>> > being that each radio group button must have the same name
>> > attribute and
>> > there is no dom equivalent of a select->options wrapper around
>> them.
>> >
>> > It's possible that ~something~ can be done for this but I'm not
>> > sure of what
>> > that something should be yet.  I could of course probably use my
>> > RadioGroup
>> > widget to provide this functionality but that's adding a specific
>> > javascript dependency on a regular form control. (
>> > http://trac.dojotoolkit.org/browser/branches/0.4/src/widget/
>> > RadioGroup.js)
>> > I think we'll have to address this more directly with some sort of
>> > special
>> > handling between EventListener and component groupings like this
>> but I
>> > haven't figure it out yet.
>> >
>> > As for your problem right now,  what happens if you do the same
>> > exact things
>> > without the Dialog being involved? Does it still happen then ?
>> >
>> > On 6/26/07, Julian Wood <[EMAIL PROTECTED]> wrote:
>> >>
>> >> I have a pretty straight forward paradigm:
>> >>
>> >> - two groups of 3 radio buttons followed by a property selection.
>> >> - an async form with no listener whatsoever
>> >> - a submit button with an action listener (called saveTime)
>> >>
>> >> The idea is that choosing a radio button narrows down the list
>> in the
>> >> property selection.
>> >>
>> >> I chose to add eventlisteners to the onclicks of the radiobuttons,
>> >> and update the property selection in response. The eventlisteners
>> >> submit the above form, which is why there is no listener set in
>> the
>> >> form binding. For simplicity, I'll call one eventListener method
>> >> categorySelected.
>> >>
>> >> This form is entirely contained within a Dialog component,
>> which is
>> >> reused.
>> >>
>> >> Now, this all works perfectly the first time through - open the
>> >> dialog, fill out the form, watch the property selection

Re: Problem after upgrade to Tapestry 4.1.2

2007-06-28 Thread Jesse Kuhnert

The exception message saying its missing classpath resource "'/dojo/'."
sounds suspicious.  This was the old parameter given and shouldn't be
something Tapestry would reference by default in the current release.

I think Marcus was on to something there.You may want to check very
carefully what jar versions you are using and what parameters and such you
are giving to your Shell component. (have you overriden the Shell component
and forgotten maybe?)

On 6/28/07, spot_ <[EMAIL PROTECTED]> wrote:



Hi Marcus

no, I didn't set it explicitly anywhere in the code. This is the first
time,
I recognize this parameter. I also tried to fix the problem using this
parameter and set it to dojoPath="classpath:/dojo-0.4.3/" as I saw it in
the
tapestry 4.2.1 jar file, but with the same results.

Any further help?

Thanks
Christoph


Marcus Schulte wrote:
>
> do you have the @Shell parameter "dojoPath" set explicitly somewhere,
> possibly in an override for the standard Exception -page?
>
--
View this message in context:
http://www.nabble.com/Problem-after-upgrade-to-Tapestry-4.1.2-tf3993336.html#a11349578
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: [T5] Configurable value encoders for select?

2007-06-28 Thread Nick Westgate

It's a bit inconvenient to have to add ValueEncoders for all the basic
wrapper types that are often in domain objects (Boolean, Integer etc.)
Howard's previous comment about translators applies here too:

"It does make sense that there should be a default translator that
leverages the TypeCoercer to perform translations to and from strings"

In fact I've added a JIRA issue:
https://issues.apache.org/jira/browse/TAPESTRY-1598

There's also a bug in automatic List to SelectModel conversion:
https://issues.apache.org/jira/browse/TAPESTRY-1597

Cheers,
Nick.


Howard Lewis Ship wrote:

This is in 5.0.5, it's a new service called ValueEncoderSource. You
can map types to a ValueEncoderFactory implementation.

On 6/28/07, Dan Adams <[EMAIL PROTECTED]> wrote:

Select has hard-coded support for Enums and then defaults to strings.
Could we introduce a service that would allow registering values
encoders by type? I just hit a situation where I had to register an
encoder because my options were a list of booleans. Could also be useful
for lists of hibernate entities.

--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


-
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: upgrade to 4.1.1

2007-06-28 Thread Jesse Kuhnert

I'm not sure...  You can use some fancy client side libraries but there is
also the easier to implement:

var flag = setInterval(function(){
// do stuff here, like call javascript functions...maybe something like

tapestry.bind("generated url");
}, 1000);

setInterval is like setTimeout except that setInterval will keep polling
forever until you call clearInterval(flag) - with flag being the return
value of setInterval() .

I should probably add some kind of @Timer component(annotation?) to handle
the url generation stuff for youbut there is a sort of secret trick you
can use to do this.   Define a DirectLink in a .page or .jwc spec somewhere.
(ie don't render it but define it) Then you can do something like this
(it's a dirty trick mind you,  if you want to know how to do it properly
look at the DirectLink source though that is a little more complicated
than you likely need if you don't particularly want to invoke a method):

tapestry.bind("");



On 6/28/07, craigham <[EMAIL PROTECTED]> wrote:



that is what I tried to do with the annotation isn't it?

i can't find the documentation or an example to explain it.



Paulo Ramos wrote:
>
> Hi,
>
> Why you dont  use ajax to do this?
>
> Paulo Ramos
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context:
http://www.nabble.com/upgrade-to-4.1.1-tf3983447.html#a11347587
Sent from the Tapestry - User mailing list archive at Nabble.com.


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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: OutOfMemoryError after serving N pages

2007-06-28 Thread Jesse Kuhnert

Doesn't happen in dev or production mode with Tapestry 4.1.2.   At least not
even remotely near what it used to.  It's possible someone may hit it at one
point I suppose.

On 6/28/07, Evan Rawson - Work <[EMAIL PROTECTED]> wrote:


that is correct. we disable caching on our dev machines, but enable it on
our live servers and testing servers. This allows for less local resources
to be used and faster redeployments, usually only happens after say 20
to30
redeployments on a 2gig box. using about 60% of system resources. Ive seen
tomcat get up to well over 400 megs. our live servers have never gotten an
outta memory with caching on in the last two years, which makes me happy.

evan
- Original Message -
From: "Norman Franke" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Thursday, June 28, 2007 12:25 PM
Subject: Re: OutOfMemoryError after serving N pages


>I get this if I disable caching after a while. However, I have not  seen
it
>with caching enabled.
>
> -Norman
>
> On Jun 28, 2007, at 11:47 AM, Evan Rawson - Work wrote:
>
>> what application host are you using. cuz i know in tomcat, when you
>> redeploy X amount of times you will get out of memory error. i
dont  know
>> if this is some how related. but the only way to fix it is to  shut
down
>> and start tomcat back up.
>>
>> evan
>> - Original Message - From: "Thomas Wiz" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Thursday, June 28, 2007 3:40 AM
>> Subject: Re: OutOfMemoryError after serving N pages
>>
>>
>>>
>>>
>>>
>>> Arjan Verstoep wrote:

 I'm building an application with the Tapestry 4.0.2 framework, which
 manages my music-collection. I'm getting OutOfMemoryErrors
since  I've
 created a small ajax-ish component that refreshes every 10  seconds
to
 show the song that is currently playing. A piece of javascript  gets
 the
 Tapestry-page with the currently-playing song on it, and puts the
 generated html into a . After 24 hours or so making these
 page-requests, an out of memory error occurs.

 I have the feeling that this new auto-refreshing component of  mine
 only
 quickens the OutOfMemoryError, since I did get these errors  before,
 but
 only after much longer uptimes.

 What am I doing wrong here? Is it the Spring OpenSessionInView-
filter
 that I use that is wasting memory, am I not cleaning-up everything
 myself? Should I use Tapestry 4.1.1? Can anybody help? The code  of
the
 page follows:
 (You can also have a look at
 http://musicontroller.cvs.sourceforge.net/musicontroller/ for more
 sourcecode)

 Thanks,
 ~Arjan Verstoep


>>> Hi Arjan,
>>> I'm having the same problem you had: heap space OOME after serving  N
>>> pages.
>>> Did you find any solutions?
>>> Thanks.
>>> --
>>> View this message in context: http://www.nabble.com/
>>> OutOfMemoryError-after-serving-N-pages-tf3272095.html#a11338497
>>> 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]
>>
>
>
>
> -
> 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]





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: [Tap 4.1.2] More OGNL problems

2007-06-28 Thread Jesse Kuhnert

Not sure, can you file in http://jira.opensymphony.com/browse/OGNL just in
case?  I usually do them all in one batch so it's in everyones best interest
to get them in to jira asap.

On 6/28/07, Bastian Voigt <[EMAIL PROTECTED]> wrote:


Hi *,

we have the following problem with both OGNL 2.7.0 and OGNL
2.7.1-20070625 on Tap 4.1.2 with a construct like this:

html--

You do not have the permission for this!

java--
@InjectStateFlag("loginData")
public abstract boolean getLoggedIn();

@InjectState("loginData")
public abstract LoginSession getUser();
---

Right after deployment, we are of course not logged in, so !loggedIn
should be true and hasPermission should never be called! and getLoggedIn
does indeed return false if you call it from the Java code!.

However, in OGNL it seems to be false or whatever, because we get an
exception saying "hasPermission" was called on a non-existing object.

1. We tried the following:

You do not have the permission for this!

-> this works (hasPermission is NOT called, so no exception)

2. We also tried:

You do not have the permission for this!

-> same exception

3. And then we tried:

You do not have the permission for this!

-> same exception


Is this a bug in OGNL, or in Tapestry? How can I find this out?

--
Bastian Voigt
Neumünstersche Straße 4
20251 Hamburg
telefon +49 - 40  - 67957171
mobil   +49 - 179 - 4826359



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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: Problems with ognl 2.7

2007-06-28 Thread Jesse Kuhnert

I think his case was slightly more complicated with the (sub expression) ==
foo syntax,.  Probably is broken I'm sure.  (though not for long)

On 6/28/07, Ray Fortycoats <[EMAIL PROTECTED]> wrote:


perhaps this was posted in relation to the second issue?

http://jira.opensymphony.com/browse/OGNL-96





On 6/28/07, Maximilian Weißböck <[EMAIL PROTECTED]> wrote:
>
> Thanks for your feedback, I filed an Issue at OGNL Jira.
>
> And also Thanks for the great work you did in both Tapestry and OGNL.
> Tapestry 4.1.2 looks very promising!
>
> Max
>
>
> > -Ursprüngliche Nachricht-
> > Von: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 27. Juni 2007 21:22
> > An: Tapestry users
> > Betreff: Re: Problems with ognl 2.7
> >
> > The syntax hasn't changed .just the runtime.   If you
> > file a JIRA issue
> > here it should be fairly easy to fix.
> >
> > http://jira.opensymphony.com/browse/OGNL
> >
> > Most jira issues are fixed within a day or two of filing -
> > but you'll have to use the new 2.7.1-SNAPSHOT version to see
> > the fixes. (which is deployed to the maven2 snapshot repo
> > http://opencomponentry.com/repository/m2-snapshot-repo/ )
> >
> > On 6/27/07, Maximilian Weißböck
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > We just upgraded to Tapestry 4.1.2 but have some ognl problems.
> > > So far we found two expressions that do no longer work:
> > >
> > > "ognl:components.productSaleTable.tableRow.totalPriceInCent / 100.0"
> > >
> > > It throws this error: Caused by: compile error: ) is missing
> > >
> > > The second one is
> > >
> > > "ognl:ordersPerShopLoop.index % 2 == 0"
> > >
> > > and it throws this error: Caused by: compile error: invalid
> > types for
> > > ==
> > >
> > > Has the syntax of ognl canged in 2.7, and if yes, where can
> > I find the
> > > doc?
> > >
> > > Thanks, Max
> > >
> > > ---
> > >
> > > Maximilian Weißböck
> > > Sphinx IT Consulting GmbH
> > >
> > >
> > >
> > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > Jesse Kuhnert
> > Tapestry/Dojo team member/developer
> >
> > Open source based consulting work centered around
> > dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: T5: Will it be a full stack framework?

2007-06-28 Thread Todd Orr

Come on. Don't be shortsighted. I managed to add a service layer and
bind it in the AppModule. I was thinking to have declarative
transaction each time the web layer invoke the method in this service
layer.


Whatever works for you. Every project has its own nuances. For me,
transactions are not a concern of the Web teir. In my ideal
development world, concerns are separated strictly. I feel as though
if I do not separate my concerns then I'm cutting a corner. But, this
is only my opinion and its based on a perspective of development that
I have.

When I hear about transactional demarcation in the web tier I
immediately think, "what if I want to swap my service implementation
with a WS call?" The TX has to be thought of completely differently in
this respect. Without WS-TX the usual route is to go with
course-grained methods that apply a TX around the backend logic, or
something of that sort. In any case, the web tier has no say in the
TX.

I'm not saying everyone should think this way. It is the way I have
come to think because my exposure to certain architectures. Consider
one such that core services are exposed via SOAP and orchestrated via
ESB. I have no direct interaction with the "code", per se. This
influences me because now when I build anything I think in highly
decoupled terms - my Tap app should not know anything about the
services it uses, not even whether there is a transactional state to
manage. Honestly, this makes the development of a site more difficult
- it's harder to build this way. But the gains I receive in the
overall architecture, scalability, as well as the development
lifecycle impact, are suitably large to make it worthwhile.

With regards to implementing this in Tapestry, I can't say it's "bad"
in all cases. I can say that there are more [easily] scalable
solutions that have more clearly defined architectural borders. This
is the reason I wouldn't use this feature. I know that having this
clear separation allows me to modify my service layer without having
to alter my web layer in any way. I can move development ahead on many
fronts between many teams with minimal impact between the teams. This
isn't everyone's goal.

All that aside, this is a moot point. Tapestry core will remain
focused as Howard says. I get to have my cake, as do you, and we can
both eat it.

On 6/28/07, Joshua Jackson <[EMAIL PROTECTED]> wrote:

On 6/28/07, Todd Orr <[EMAIL PROTECTED]> wrote:
> Transactions declared in the Web tier? Oy vey. What's next, Tapestry-SOAP???

Come on. Don't be shortsighted. I managed to add a service layer and
bind it in the AppModule. I was thinking to have declarative
transaction each time the web layer invoke the method in this service
layer.

--
Let's create a highly maintainable and efficient code

YM!: thejavafreak
Blog: http://www.nagasakti.or.id/roller/joshua/

-
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: Conditional JavaScript code

2007-06-28 Thread 蝈蝈龙

Hi Howard,

When do TP5  plan to support CDATA?
I think it is very important.


2007/6/29, Howard Lewis Ship <[EMAIL PROTECTED]>:


for (var i = 0; i < someConstant; i++) {

On 6/27/07, Martin Dietze <[EMAIL PROTECTED]> wrote:
> Hi,
>
>  I would like to add inline JavaScript code to a form depending
> on conditions set within the page class. I thus wrote code like
> this:
>
> | 
> | function myFunc() {
> | 
> |   for (var i = 0; i < someConstant; i++) {
> | doSomethin();
> |   }
> | 
> | }
> | 
>
> This code causes problems since obviously Tapestry expects
> well-formed HTML code here (note the '<' character). I also run
> into problems if I put the inline JavaScript into HTML
> comments, the code gets completely ignored then.
>
> Since after each submit of the form the condition in the 
> changes I don't really see any alternative to this construct,
> or is there any fix/better way to do this?
>
> Cheers,
>
> Martin
>
> --
> --- / http://herbert.the-little-red-haired-girl.org /
-
> =+=
> Yoda of Borg I am. Assimilated you will be.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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




Re: T5: Will it be a full stack framework?

2007-06-28 Thread Joshua Jackson

On 6/28/07, Todd Orr <[EMAIL PROTECTED]> wrote:

Transactions declared in the Web tier? Oy vey. What's next, Tapestry-SOAP???


Come on. Don't be shortsighted. I managed to add a service layer and
bind it in the AppModule. I was thinking to have declarative
transaction each time the web layer invoke the method in this service
layer.

--
Let's create a highly maintainable and efficient code

YM!: thejavafreak
Blog: http://www.nagasakti.or.id/roller/joshua/

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



Re: T5: form context not invoking onActivate with matching parameters

2007-06-28 Thread Howard Lewis Ship

There's two different contexts here: the page's activate context
(produced by the "passivate" event, provided to the "activate" event
and the Form component's context, which is provide to event handler
methods related to the Form ("success", "prepare", etc.).

The Form does not fire an "activate" event; the framework fires the
"activate" event, on the page (not the Form), passing the page's
activation context.

On 6/28/07, Ben Tomasini <[EMAIL PROTECTED]> wrote:

I was using the following code:

Start.html




Start.java

void onActivate() {
System.out.println("No args");
}

void onActivate(String value) {
System.out.println("String arg");
}

On a form submit,  the console shows:

No args

I expected the form tag above to invoke the onActivate method with matching
arguments, it only invokes the noargs method.  Is this a bug, by design, or
am I missing something?

Ben




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



T5: form context not invoking onActivate with matching parameters

2007-06-28 Thread Ben Tomasini

I was using the following code:

Start.html

   


Start.java

   void onActivate() {
   System.out.println("No args");
   }

   void onActivate(String value) {
   System.out.println("String arg");
   }

On a form submit,  the console shows:

No args

I expected the form tag above to invoke the onActivate method with matching
arguments, it only invokes the noargs method.  Is this a bug, by design, or
am I missing something?

Ben


Re: T5: Conditional JavaScript code

2007-06-28 Thread Howard Lewis Ship

for (var i = 0; i < someConstant; i++) {

On 6/27/07, Martin Dietze <[EMAIL PROTECTED]> wrote:

Hi,

 I would like to add inline JavaScript code to a form depending
on conditions set within the page class. I thus wrote code like
this:

| 
| function myFunc() {
| 
|   for (var i = 0; i < someConstant; i++) {
| doSomethin();
|   }
| 
| }
| 

This code causes problems since obviously Tapestry expects
well-formed HTML code here (note the '<' character). I also run
into problems if I put the inline JavaScript into HTML
comments, the code gets completely ignored then.

Since after each submit of the form the condition in the 
changes I don't really see any alternative to this construct,
or is there any fix/better way to do this?

Cheers,

Martin

--
--- / http://herbert.the-little-red-haired-girl.org / -
=+=
Yoda of Borg I am. Assimilated you will be.

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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: T5: Will it be a full stack framework?

2007-06-28 Thread Howard Lewis Ship

One of the reasons Tapestry uses the T5 IoC container is to allow this
debate to actually pursue both desired courses: keep it simple and
focused vs. be a full stack.

Because of the IoC container, the dynamic module discovery, and the
distributed service configuration (wherein modules may contribute
configuration data to services defined in other modules), you can use
just the core of Tapestry, or you can add in additional libraries
(such as tapestry-spring, tapestry-hibernate, etc.) and get something
that, via integration, becomes a full stack.

I intend to pursue both approaches; I want there to be a story where
you can get a simple CRUD app up and running VERY quickly.  I want to
support business processes using Spring Web Flow, but I also want a
minimal core that stands on its own and it still highly useable.

On 6/28/07, Francois Armand <[EMAIL PROTECTED]> wrote:

Kalle Korhonen wrote:
> Tapestry 4 isn't far behind in powerfulness and in some areas way
> ahead, but
> certainly with a higher learning curve.
Well, I'm just a beginner with Tapestry 5, and don't even had a look to
Tapestry 4, so my notice was just about the thrill I have to use T5 :)
(I'm coming from a world of Struts and even worse home-made framework...
just imagine that)
> Supporting Tap5 is a constant topic
> within Trails, but the reality is that it's a preview and will take some
> time to reach the maturity level of Tap4.x.
That's clear, and your position seems to be quite sensible.
> In the meantime though, we are
> hard at work for upgrading to Tap4.1.2 in Trails. We'll evaluate Tap5
> again
> when a "final" release comes closer.

That sound great, thanks for your work and for you reply !


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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: Updated T5 Tutorial

2007-06-28 Thread Howard Lewis Ship

5.0.6 will have some kind of pop-up calendar, a date-input field.

Jetty is just easier to use from inside Eclipse than Tomcat. YMMV.

On 6/28/07, Bhuiyan, Nazmul <[EMAIL PROTECTED]> wrote:

Great!!

Is it possible for you to include Date field and validation into the
form (e.g. Address created on) that capture date and time?
What are the advantages using Jetty over Tomcat?

Thanks a lot for giving us Tapestry

Naz

-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED]
Sent: Friday, 29 June 2007 9:40 a.m.
To: Tapestry users
Subject: Updated T5 Tutorial

The T5 Tutorial has been updated:

- It is now HTML format, not PDF
- I've added a chapter on forms and validation

it's still very much a work in progress, but I think it will server
many people's needs better than the raw reference documentation.

http://tapestry.apache.org/tapestry5/tutorial1/index.html

--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.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]





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



RE: Updated T5 Tutorial

2007-06-28 Thread Bhuiyan, Nazmul
Great!!

Is it possible for you to include Date field and validation into the
form (e.g. Address created on) that capture date and time?
What are the advantages using Jetty over Tomcat?

Thanks a lot for giving us Tapestry

Naz

-Original Message-
From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
Sent: Friday, 29 June 2007 9:40 a.m.
To: Tapestry users
Subject: Updated T5 Tutorial

The T5 Tutorial has been updated:

- It is now HTML format, not PDF
- I've added a chapter on forms and validation

it's still very much a work in progress, but I think it will server
many people's needs better than the raw reference documentation.

http://tapestry.apache.org/tapestry5/tutorial1/index.html

-- 
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.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] tapestry-spring and WebApplicationContext

2007-06-28 Thread Fidel Chavarria

Hi
I think this willhelp you,
http://tapestry.apache.org/tapestry5/tapestry-spring/





cyrille37 wrote:
> 
> Hi,
> 
> In the T5 tapestry-spring documentation it is writed to don't use other 
> Spring beans than Singleton ones.
> Inject the WebApplicationContext instead.
> http://tapestry.apache.org/tapestry5/tapestry-spring/
> 
> But howto inject the WebApplicationContext ?
> 
> thanks
> cyrille
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--tapestry-spring-and-WebApplicationContext-tf3996411.html#a11352177
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Updated T5 Tutorial

2007-06-28 Thread Howard Lewis Ship

The T5 Tutorial has been updated:

- It is now HTML format, not PDF
- I've added a chapter on forms and validation

it's still very much a work in progress, but I think it will server
many people's needs better than the raw reference documentation.

http://tapestry.apache.org/tapestry5/tutorial1/index.html

--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: [T5] Can't put mixins in parent classes?

2007-06-28 Thread Howard Lewis Ship

It is very important that the abstract base class be in a controlled
Tapestry folder; typically you'll put the base class in root.base (and
your concrete pages go in root.pages).

If Tapestry doesn't get a chance to transform the class, then
annotations and the rest simply don't happen.

This is in the documentation, it will be clearer in the tutorial
(still in progress).

On 6/28/07, Dan Adams <[EMAIL PROTECTED]> wrote:

I put a mixin in an abstract parent class of a component and it was
ignored. I just moved it down to the concrete class and it worked fine.
Is this the decided behavior?

--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Tap 4.1.2 PageNotFoundException not caught

2007-06-28 Thread Shing Hing Man

After updating to the latest Tap 4.1.2, a
PageNotFoundException is no longer 
caught in the following piece of code in my border
component.

public boolean isShowHelpLink() {
boolean show = true;
IPage currentPage = getPage();
String helpPageName = currentPage.getPageName() +
"Help";
try {
IRequestCycle  requestCycle =
getPage().getRequestCycle();
requestCycle.getPage(helpPageName); // Exception
here is not caught
} catch (PageNotFoundException pnfe) {
show = false;
}

return show;
}

Instead, the exception is shown on the exception page
:
org.apache.hivemind.ApplicationRuntimeException
There was an error borrowing the page with key
PageKey[_pageName='HomeHelp' , _locale=en_GB ] from
the page pool.
 
[ +/- ] Exception: Page 'HomeHelp' not found in
application namespace.
org.apache.tapestry.PageNotFoundException
Page 'HomeHelp' not found in application namespace.
pageName:   HomeHelp
Stack Trace:

*
org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(PageSpecificationResolverImpl.java:147)
*
$PageSpecificationResolver_113742bd0e2.resolve($PageSpecificationResolver_113742bd0e2.java)
*
$PageSpecificationResolver_113742bd0e3.resolve($PageSpecificationResolver_113742bd0e3.java)
*
org.apache.tapestry.pageload.PageSource.makeObject(PageSource.java:148)
*
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:797)
*
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:177)
*
$IPageSource_113742bd03e.getPage($IPageSource_113742bd03e.java)
*
org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)
*
org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)
*
$IRequestCycle_113742bd14e.getPage($IRequestCycle_113742bd14e.java)
*
$IRequestCycle_113742bd068.getPage($IRequestCycle_113742bd068.java)
*
net.sf.financial.components.Border.isShowHelpLink(Border.java:103)
*
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) 



Is the above the expected behaviour ?

Shing 

Home page : http://uk.geocities.com/matmsh/


  ___ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

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



Re: [t4] EventListener question

2007-06-28 Thread Julian Wood
Well I'll look forward to the time when that's implemented! But I'm  
still curious what the problem is with my original approach, as it  
seems to be a different problem. That is, after an initial async  
submission, the eventlistener invokes the listener on the submit  
button when it shouldn't.


 In the meantime, for completeness, I''ll mention my workaround to  
distinguish between calls to my listener invoked by the eventlistener  
and calls invoked by the submit button. Maybe there is a better one.


I placed a hidden component in my form, called isSubmission, bound to  
a property of the same name, with an initial value of false. I bound  
dojo.byId('isSubmission').value='true' to the onclick handler of the  
submit button. Now in my listener I can distinguish between the two  
types of invocations and act appropriately. The last piece is to set  
the hidden component value back to false and updateComponent on the  
hidden field.


Curiously, something like this doesn't (but should) work (you need to  
use onclick):


dojo.event.connectOnce(tapestry.form, "submitAsync", function(e) {
dojo.byId("isSubmission").value='true';
});

I wonder if that has something to do with the problem.

Thanks,

J

On 27-Jun-07, at 9:34 PM, Jesse Kuhnert wrote:

Haha look at that. I forget that it can bind to any function  
sometimes.

That's neat. :)

Yes that was what I was thinking as the "strategy" for doing  
EventListener
connections on this specific type of component.   It would need to  
honor any
existing informal onclick attributes and back off to something else  
but I
think I have that logic implemented for the various link components  
already
so just need to refactor it out into something more generic and  
consumable

by eventlistener infrastructure.

BTW, you can drop off "validateForm/async" from your EventListener
parameters if you wanted to as those are the default values.  (and  
when it
works with doing a component target="" for radio groups you'll be  
able to

drop off everything but the event and target)

On 6/27/07, Julian Wood <[EMAIL PROTECTED]> wrote:


I used a little trick to get the radiobuttons to send an event, which
I suppose could be the problem. All you need to do is add this
onclick handler to each radio button, and then the tapestry event
listener will respond.


  Pre
  ...
   

  @EventListener(events = "clickRadio", elements = "stageRadioGroup",
async = true, submitForm = "addEventForm", validateForm = false)
  public void stageSelected(IRequestCycle cycle) {...}

And yes, the problem occurs without the dialog.

Thanks,

J

On 27-Jun-07, at 1:04 PM, Jesse Kuhnert wrote:

> EventListener && Radio Groups don't really get along so well.  The
> reason
> being that each radio group button must have the same name
> attribute and
> there is no dom equivalent of a select->options wrapper around  
them.

>
> It's possible that ~something~ can be done for this but I'm not
> sure of what
> that something should be yet.  I could of course probably use my
> RadioGroup
> widget to provide this functionality but that's adding a specific
> javascript dependency on a regular form control. (
> http://trac.dojotoolkit.org/browser/branches/0.4/src/widget/
> RadioGroup.js)
> I think we'll have to address this more directly with some sort of
> special
> handling between EventListener and component groupings like this  
but I

> haven't figure it out yet.
>
> As for your problem right now,  what happens if you do the same
> exact things
> without the Dialog being involved? Does it still happen then ?
>
> On 6/26/07, Julian Wood <[EMAIL PROTECTED]> wrote:
>>
>> I have a pretty straight forward paradigm:
>>
>> - two groups of 3 radio buttons followed by a property selection.
>> - an async form with no listener whatsoever
>> - a submit button with an action listener (called saveTime)
>>
>> The idea is that choosing a radio button narrows down the list  
in the

>> property selection.
>>
>> I chose to add eventlisteners to the onclicks of the radiobuttons,
>> and update the property selection in response. The eventlisteners
>> submit the above form, which is why there is no listener set in  
the

>> form binding. For simplicity, I'll call one eventListener method
>> categorySelected.
>>
>> This form is entirely contained within a Dialog component,  
which is

>> reused.
>>
>> Now, this all works perfectly the first time through - open the
>> dialog, fill out the form, watch the property selection values
>> change, submit the form, close the dialog, reset all the  
fields. Note

>> that saveTime is not called when you click a radio button - only
>> categorySelected.
>>
>> The second time the dialog is opened, the eventlisteners behave
>> slightly differently. This time, when you click a radio button,  
the

>> form is submitted, categorySelected is invoked _and_ saveTime is
>> called (which is a problem). The primary difference between the  
two

>> posts (at the request lev

Re: T5: Component Cheatsheet

2007-06-28 Thread Howard Lewis Ship

Your state diagram lays out a lot nice than mine, I'll see about
updating mine to match yours.

On 6/28/07, Ben Acker <[EMAIL PROTECTED]> wrote:

This is great! Thanks!

Ben

On 6/28/07, David Peterson <[EMAIL PROTECTED]> wrote:
>
> I put together a simple cheatsheet for the Tapestry 5 component parameters
> and the rendering cycle. I've been finding it useful, so I thought I might
> as well stick it on the web in case you find it useful too...
>
> http://www.davidpeterson.co.uk/files/tapestry5/t5-component-cheatsheet.pdf
>
> David
>




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



[T5] tapestry-spring and WebApplicationContext

2007-06-28 Thread #Cyrille37#

Hi,

In the T5 tapestry-spring documentation it is writed to don't use other 
Spring beans than Singleton ones.

Inject the WebApplicationContext instead.
http://tapestry.apache.org/tapestry5/tapestry-spring/

But howto inject the WebApplicationContext ?

thanks
cyrille

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



Re: [T5] Configurable value encoders for select?

2007-06-28 Thread Howard Lewis Ship

This is in 5.0.5, it's a new service called ValueEncoderSource. You
can map types to a ValueEncoderFactory implementation.

On 6/28/07, Dan Adams <[EMAIL PROTECTED]> wrote:

Select has hard-coded support for Enums and then defaults to strings.
Could we introduce a service that would allow registering values
encoders by type? I just hit a situation where I had to register an
encoder because my options were a list of booleans. Could also be useful
for lists of hibernate entities.

--
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

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



Re: Problem after upgrade to Tapestry 4.1.2

2007-06-28 Thread spot_

Hi Marcus

no, I didn't set it explicitly anywhere in the code. This is the first time,
I recognize this parameter. I also tried to fix the problem using this
parameter and set it to dojoPath="classpath:/dojo-0.4.3/" as I saw it in the
tapestry 4.2.1 jar file, but with the same results.

Any further help?

Thanks
Christoph


Marcus Schulte wrote:
> 
> do you have the @Shell parameter "dojoPath" set explicitly somewhere,
> possibly in an override for the standard Exception -page?
> 
-- 
View this message in context: 
http://www.nabble.com/Problem-after-upgrade-to-Tapestry-4.1.2-tf3993336.html#a11349578
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 : potential feature - JSON component

2007-06-28 Thread Evan Rawson - Work
thanx for bringing that up. flash would be really nice as well, that could 
expand alot of the UI. however i really think AJAX is gonna take over flash 
as more and more things are discovered which you can do with AJAX. flash is 
kewl, but its also plugin dependent where as AJAX works on any JS compliant 
browser. ive been in the process of writing my own flash data stream to 
handle content via parameters, but a JSON implementation would be much more 
superior as you can grab whatever data from any tapestry external JSON 
service you have created on your application.


i suppose in a way JSON would also allow for any other future technologies 
to be easily plugable into an existing tapestry application without the need 
for serious UI overhaul.


this talk abotu flash gives me the proposal of creating a flash only UI, and 
have a tapestry application running on the backend handling all DB queries, 
scheeduled jobs, or any other processor intense process. you could even have 
tapestry manage all of your flash resources and call the resources directly 
withi flash via JSON. I could really see this open up a new scope for the 
scalbility of flash applications. typically now you are limited to the base 
size of your flash application. meaning if you have to many resources in 
your flash movie it will take forever to download and run. whereas you could 
have tapestry manage your backend and resources and have flash call whatever 
resources it needs on the fly. this could be quite powerful.


i mean you can do this already, but the frameworks are which can handle this 
aren't as robust and easy to use as tapestry is. tapestry is also pretty 
fast and efficent at managing resources, along with your httpsession. this 
could really extend flash technologies to a new level.


evan
- Original Message - 
From: "#Cyrille37#" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Thursday, June 28, 2007 2:37 PM
Subject: Re: T5 : potential feature - JSON component



I spoke about Java Applet, but we can think about Macromedia Flash too.
Flash is a really nice technology.

If JSon is implemented in Tapestry like every great Tapestry designs, it
should be very easy to add more protocols !!

cyrille.

Evan Rawson - Work a écrit :
it really wouldn't be that hard. basically you would create a java class 
to generate your RPC calls and internally within your java app it would 
share data via java objects. i believe they would be serialized so you 
could easily access and share them.


the bulk of the work would be having the tapestry java component generate 
the resource location on the fly when an external service is invoked. 
Kinda like how AJAX invokes an XML document on the fly.


i completely forgot about applets. We dont usually use them at work so i 
always forget. go figure. Anyways, the ability to easily allow applets to 
communicate with a java backend running on a servcer would be amazing 
powerful. forexample, you could use your applet to handle only UI data and 
other smaller processes which the client side could handle. have it 
communicate directly with a java app running on the backend which could be 
hooked up to a mainframe or network which could be used to massive 
rendering jobs or datamining.


a possible use of this integration would be a realtime, high resolution 
rendering of say a molecule, CAD drawing, or 3d animation accesable from 
the web. The server could process the rendering and outputs the frames to 
a dir, you could have the applet pick up the frames via JSON (IE. passing 
the applet the URI of the rendered frames, then have the applet sequence 
them. A fbig enough mainframe could even cahce the rendered frames and map 
them to a URI.  This could open up tapestry with the ability to program 
and host say a Web based 3d rendering program such as Maya or something. 
The possibilities are endless.


~evan




- Original Message - From: "#Cyrille37#" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Thursday, June 28, 2007 1:28 PM
Subject: Re: T5 : potential feature - JSON component


Hello,

I'm interesting by the subject. How to integrate JSON with Tap5 in a
nice way.

For the moment I'm using http://oss.metaparadigm.com/jsonrpc/ to
communicate between Java Applets and WebApps.
But I didn't integrate it in Tapestry ; I'm using the JSonRpc Servlet
and share objects with WebApps using SpringFramework.

It would be nice to get Tapestry managing JSonRpc calls.

I'm new with Tapestry, and Java in general, so I could not bring any
idea about the way to do this.
But I can participate to the discussion and make some tryies.

cyrille

Evan Rawson - Work a écrit :
It would be great if a JSON component could be created for T5. After some 
extensive research i feel that this feature really would add a ton of 
flexibility of how your tapestry application can communicate with other 
tapestry application running on a network. For example my company needs 
to split up our monstrous application now con

Re: T5 : potential feature - JSON component

2007-06-28 Thread #Cyrille37#


I spoke about Java Applet, but we can think about Macromedia Flash too. 
Flash is a really nice technology.


If JSon is implemented in Tapestry like every great Tapestry designs, it 
should be very easy to add more protocols !!


cyrille.

Evan Rawson - Work a écrit :
it really wouldn't be that hard. basically you would create a java 
class to generate your RPC calls and internally within your java app 
it would share data via java objects. i believe they would be 
serialized so you could easily access and share them.


the bulk of the work would be having the tapestry java component 
generate the resource location on the fly when an external service is 
invoked. Kinda like how AJAX invokes an XML document on the fly.


i completely forgot about applets. We dont usually use them at work so 
i always forget. go figure. Anyways, the ability to easily allow 
applets to communicate with a java backend running on a servcer would 
be amazing powerful. forexample, you could use your applet to handle 
only UI data and other smaller processes which the client side could 
handle. have it communicate directly with a java app running on the 
backend which could be hooked up to a mainframe or network which could 
be used to massive rendering jobs or datamining.


a possible use of this integration would be a realtime, high 
resolution rendering of say a molecule, CAD drawing, or 3d animation 
accesable from the web. The server could process the rendering and 
outputs the frames to a dir, you could have the applet pick up the 
frames via JSON (IE. passing the applet the URI of the rendered 
frames, then have the applet sequence them. A fbig enough mainframe 
could even cahce the rendered frames and map them to a URI.  This 
could open up tapestry with the ability to program and host say a Web 
based 3d rendering program such as Maya or something. The 
possibilities are endless.


~evan




- Original Message - From: "#Cyrille37#" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Thursday, June 28, 2007 1:28 PM
Subject: Re: T5 : potential feature - JSON component


Hello,

I'm interesting by the subject. How to integrate JSON with Tap5 in a
nice way.

For the moment I'm using http://oss.metaparadigm.com/jsonrpc/ to
communicate between Java Applets and WebApps.
But I didn't integrate it in Tapestry ; I'm using the JSonRpc Servlet
and share objects with WebApps using SpringFramework.

It would be nice to get Tapestry managing JSonRpc calls.

I'm new with Tapestry, and Java in general, so I could not bring any
idea about the way to do this.
But I can participate to the discussion and make some tryies.

cyrille

Evan Rawson - Work a écrit :
It would be great if a JSON component could be created for T5. After 
some extensive research i feel that this feature really would add a 
ton of flexibility of how your tapestry application can communicate 
with other tapestry application running on a network. For example my 
company needs to split up our monstrous application now consisting of 
about 700 to 1000 pages, and and a few thousand components. We are 
branching off our sub applications to run as there own independent 
application. The ability to allow these separate application to talk 
to each other is very ambigious, meaning that we need to transfer 
data via http sessions or via a db.
with the implementation of JSON we could easily setup a java 
component service which could allow another tapestry application to 
request data from another server by giving it the domain, app name, 
and service name (what you wanna look up)


due to JSON 's extreme flexibility and speed, tapestry applicatiosn 
powered by JSON could allow our application to talk to and interact 
with pretty much any other application coded in any modern language. 
wether it be another web application or backend process, or even a 
desktop application.


i believe that JSON would be a better langauge versus say XML becuase 
its parser is faster, and its easier to intrepret in human language. 
JSON is also a more superior way to handle AJAX requests rather then 
using XML streams. (smaller size, and faster to parse)


just a thought.

~evan








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



[T5] Configurable value encoders for select?

2007-06-28 Thread Dan Adams
Select has hard-coded support for Enums and then defaults to strings.
Could we introduce a service that would allow registering values
encoders by type? I just hit a situation where I had to register an
encoder because my options were a list of booleans. Could also be useful
for lists of hibernate entities.

-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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



Re: is ognl usable inside *.css files ?

2007-06-28 Thread Evan Rawson - Work
good question we made this like 16 months ago, so i gotta remember how it 
works. this stomps out the shell and replaces it with your own custom. we 
did this so we can easily incorporate a DB driven meta generator, as well as 
full control of the head. really it wasn't that bad to make it. took about 6 
hours to replicate the head of the document.


within your component to handle this are you rendering the Body using 
RenderBody() i believe this is what triggers the actually rendering of the 
page components and page class.


whats the specific lines of

org.apache.tapestry.html.Shell.renderComponent(Shell.java:63)
org.trails.demo.components.LayoutAssets.renderComponent(LayoutAssets.java:96)

try tracing the problem back though rthe inetrnals that might lead you to 
whats not being set. for some reason i dont think 
super.renderComponent(writer, cycle); is working the way it should. cuz if 
that doesn't render or get triggered then your base component wont put in 
the correct markup for tap to work. try writting out the entire head 
manually usuing the writer rather then extending it.


evan



- Original Message - 
From: "Ken nashua" <[EMAIL PROTECTED]>

To: <[EMAIL PROTECTED]>; 
Sent: Thursday, June 28, 2007 2:14 PM
Subject: RE: is ognl usable inside *.css files ?



Evan I appreciate your assistance and knew you had the best solution.

But does your derivative completely stomp/override and replace default 
Shell.renderComponent? Or does the default Shell.renderComponent get 
executed somewhere?


I am just wondering if you had to go thru th epain of copying out of 
Shell.renderComponent all it's guts and instrumenting them in place within 
your Hacks.renderComponent or whether you found a way to utilize/operate 
the base class in some rendering capacity in conjunction with your 
override.


Could you elaborate? I know it sounds like basic inheritence stuff but I 
have tried to execute super.renderComponent within my overridden version 
and could not get it to work and do not understand why it crashes with 
nullpointerexception... or whether the base class execution of 
renderComponent needs to be avoided altogether for some strange reason.


Best regards
Ken in nashua



Original Message Follows
From: "Ken nashua" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], users@tapestry.apache.org
Subject: RE: is ognl usable inside *.css files ?
Date: Thu, 28 Jun 2007 12:55:58 -0400

Also, is it possible for someone to offer a snippet as how to actually 
implement the instrumentation of the CSS logic? is this specified in a 
template? Or do I have to write it out to the writer?


Thanks for any assistance.

Best regards
Ken in nashua

_
Get a preview of Live Earth, the hottest event this summer - only on MSN 
http://liveearth.msn.com?source=msntaglineliveearthhm


_
Get a preview of Live Earth, the hottest event this summer - only on MSN 
http://liveearth.msn.com?source=msntaglineliveearthhm



-
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: is ognl usable inside *.css files ?

2007-06-28 Thread Ken nashua

Evan I appreciate your assistance and knew you had the best solution.

But does your derivative completely stomp/override and replace default 
Shell.renderComponent? Or does the default Shell.renderComponent get 
executed somewhere?


I am just wondering if you had to go thru th epain of copying out of 
Shell.renderComponent all it's guts and instrumenting them in place within 
your Hacks.renderComponent or whether you found a way to utilize/operate the 
base class in some rendering capacity in conjunction with your override.


Could you elaborate? I know it sounds like basic inheritence stuff but I 
have tried to execute super.renderComponent within my overridden version and 
could not get it to work and do not understand why it crashes with 
nullpointerexception... or whether the base class execution of 
renderComponent needs to be avoided altogether for some strange reason.


Best regards
Ken in nashua



Original Message Follows
From: "Ken nashua" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], users@tapestry.apache.org
Subject: RE: is ognl usable inside *.css files ?
Date: Thu, 28 Jun 2007 12:55:58 -0400

Also, is it possible for someone to offer a snippet as how to actually 
implement the instrumentation of the CSS logic? is this specified in a 
template? Or do I have to write it out to the writer?


Thanks for any assistance.

Best regards
Ken in nashua

_
Get a preview of Live Earth, the hottest event this summer - only on MSN 
http://liveearth.msn.com?source=msntaglineliveearthhm


_
Get a preview of Live Earth, the hottest event this summer - only on MSN 
http://liveearth.msn.com?source=msntaglineliveearthhm



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



Re: T5 : potential feature - JSON component

2007-06-28 Thread Evan Rawson - Work
it really wouldn't be that hard. basically you would create a java class to 
generate your RPC calls and internally within your java app it would share 
data via java objects. i believe they would be serialized so you could 
easily access and share them.


the bulk of the work would be having the tapestry java component generate 
the resource location on the fly when an external service is invoked. Kinda 
like how AJAX invokes an XML document on the fly.


i completely forgot about applets. We dont usually use them at work so i 
always forget. go figure. Anyways, the ability to easily allow applets to 
communicate with a java backend running on a servcer would be amazing 
powerful. forexample, you could use your applet to handle only UI data and 
other smaller processes which the client side could handle. have it 
communicate directly with a java app running on the backend which could be 
hooked up to a mainframe or network which could be used to massive rendering 
jobs or datamining.


a possible use of this integration would be a realtime, high resolution 
rendering of say a molecule, CAD drawing, or 3d animation accesable from the 
web. The server could process the rendering and outputs the frames to a dir, 
you could have the applet pick up the frames via JSON (IE. passing the 
applet the URI of the rendered frames, then have the applet sequence them. A 
fbig enough mainframe could even cahce the rendered frames and map them to a 
URI.  This could open up tapestry with the ability to program and host say a 
Web based 3d rendering program such as Maya or something. The possibilities 
are endless.


~evan




- Original Message - 
From: "#Cyrille37#" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Thursday, June 28, 2007 1:28 PM
Subject: Re: T5 : potential feature - JSON component


Hello,

I'm interesting by the subject. How to integrate JSON with Tap5 in a
nice way.

For the moment I'm using http://oss.metaparadigm.com/jsonrpc/ to
communicate between Java Applets and WebApps.
But I didn't integrate it in Tapestry ; I'm using the JSonRpc Servlet
and share objects with WebApps using SpringFramework.

It would be nice to get Tapestry managing JSonRpc calls.

I'm new with Tapestry, and Java in general, so I could not bring any
idea about the way to do this.
But I can participate to the discussion and make some tryies.

cyrille

Evan Rawson - Work a écrit :
It would be great if a JSON component could be created for T5. After some 
extensive research i feel that this feature really would add a ton of 
flexibility of how your tapestry application can communicate with other 
tapestry application running on a network. For example my company needs to 
split up our monstrous application now consisting of about 700 to 1000 
pages, and and a few thousand components. We are branching off our sub 
applications to run as there own independent application. The ability to 
allow these separate application to talk to each other is very ambigious, 
meaning that we need to transfer data via http sessions or via a db.
with the implementation of JSON we could easily setup a java component 
service which could allow another tapestry application to request data 
from another server by giving it the domain, app name, and service name 
(what you wanna look up)


due to JSON 's extreme flexibility and speed, tapestry applicatiosn 
powered by JSON could allow our application to talk to and interact with 
pretty much any other application coded in any modern language. wether it 
be another web application or backend process, or even a desktop 
application.


i believe that JSON would be a better langauge versus say XML becuase its 
parser is faster, and its easier to intrepret in human language. JSON is 
also a more superior way to handle AJAX requests rather then using XML 
streams. (smaller size, and faster to parse)


just a thought.

~evan





-
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: upgrade to 4.1.1

2007-06-28 Thread Paulo Ramos

This example may help you.

Paulo Ramos

Test.html:
   
   
   estadoactual
   
   onclick="this.disabled = true"/>
   onclick="this.disabled = true"/>

   
   
---
Test.page:
   
   
   
 

 
   
  
   

   
   value="ognl:{'AjaxEstadoActual'}" />

   
   value="ognl:!estadoActual.equals('Stop')" />

   
  
   

   
   value="ognl:{'AjaxEstadoActual'}" />

   
   value="ognl:!estadoActual.equals('Start')" />

   
---
Test.java
   public String getEstadoActual() {
   System.out.println("getEstadoActual()");
   if(estadoActual.equals("")) {
   estadoActual="Stop";
   }
   return estadoActual;
   }

   public void  setEstadoActual(String EstadoActual) {
   System.out.println("setEstadoActual()");
   estadoActual=EstadoActual;
   }

   public IPage onStart(IRequestCycle ciclo) {
   setEstadoActual("Start");
   return null;
   }
   
   public IPage onStop(IRequestCycle ciclo) {

   setEstadoActual("Stop");
   return null;
   }


smime.p7s
Description: S/MIME Cryptographic Signature


Re: is ognl usable inside *.css files ?

2007-06-28 Thread Evan Rawson - Work
our company hasn't migrated to t5 yet so my syntax experience in that 
version is only limited to 3.1


this is how we handle extending our external shell which generate the 
external css links, basically this generates our own custom head to all 
pages within our app.


import java.util.Date;
import java.util.Iterator;

import javax.servlet.ServletContext;

import org.apache.tapestry.AbstractComponent;
import org.apache.tapestry.IAsset;
import org.apache.tapestry.IMarkupWriter;
import org.apache.tapestry.IPage;
import org.apache.tapestry.IRender;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.Tapestry;
import org.apache.tapestry.asset.ContextAsset;
import org.apache.tapestry.engine.IEngineService;
import org.apache.tapestry.engine.ILink;
import org.apache.tapestry.resource.ContextResourceLocation;

public abstract class CssHacksShell extends AbstractComponent {

   private static final String generatorContent = "Tapestry Application 
Framework, version " + Tapestry.VERSION;


   protected void renderComponent(IMarkupWriter writer, IRequestCycle 
cycle) {

   long startTime = 0;

   boolean rewinding = cycle.isRewinding();

   if (!rewinding) {
   startTime = System.currentTimeMillis();

   writeDocType(writer, cycle);

   IPage page = getPage();

   writer.comment("Application: " + 
page.getEngine().getSpecification().getName());

   writer.comment("Page: " + page.getPageName());
   writer.comment("Generated: " + new Date());

   writer.begin("html");
   renderInformalParameters(writer, cycle);
   writer.println();
   writer.begin("head");
   writer.println();

   writer.beginEmpty("meta");
   writer.attribute("name", "generator");
   writer.attribute("content", generatorContent);
   writer.println();

   if (getRenderContentType()) {
   // This should not be necessary (the HTTP content type 
should be sufficient),

   // but some browsers require it for some reason
   writer.beginEmpty("meta");
   writer.attribute("http-equiv", "Content-Type");
   writer.attribute("content", writer.getContentType());
   writer.println();
   }

   writer.begin("title");

   writer.print(getTitle());
   writer.end(); // title
   writer.println();

   //bookmark icon
   writer.beginEmpty("link");
   writer.attribute("rel", "shortcut icon");
   writer.attribute("href", "images/site/favicon.ico");
   writer.println();

   IRender delegate = getDelegate();

   if (delegate != null) {
   delegate.render(writer, cycle);
   }

   String stylesheet = getStylesheet();

   if (stylesheet != null) {
   writeStylesheetLink(writer, cycle, stylesheet);
   }

   Iterator i = Tapestry.coerceToIterator(getStylesheets());

   if (i != null) {
   while (i.hasNext()) {
   stylesheet = (String) i.next();
   writeStylesheetLink(writer, cycle, stylesheet);
   }
   }

   ServletContext context = 
cycle.getRequestContext().getServlet().getServletContext();

   IAsset colorStylesheet = null;

   if("Home".equals(getPage().getPageName()) || 
"Dealer".equals(stylesheet)) {
   colorStylesheet = new ContextAsset(new 
ContextResourceLocation(context, "/css/Color-default.css"), null);

   } else {
   colorStylesheet = new ContextAsset(new 
ContextResourceLocation(context, "/css/Color-auto.css"), null);

   }

  //if user websites, do not apply color theme.
  if(!"Site".equals(getPage().getPageName())) {
   writer.beginEmpty("link");
writer.attribute("rel", "stylesheet");
writer.attribute("type", "text/css");
writer.attribute("href", colorStylesheet.buildURL(cycle));
writer.println();
  }

   writeRefresh(writer, cycle);

   writer.end(); // head
   }

   // Render the body, the actual page content

   renderBody(writer, cycle);

   if (!rewinding) {
   writer.end(); // html
   writer.println();

   long endTime = System.currentTimeMillis();

   writer.comment("Render time: ~ " + (endTime - startTime) + " 
ms");

   }

   }

   private void writeDocType(IMarkupWriter writer, IRequestCycle cycle) {
   String doctype = getDoctype();
   if (Tapestry.isNonBlank(doctype)) {
   writer.printRaw("");
   writer.println();
   }
   }

   private void writeStylesheetLink(IMarkupWriter writer, IRequestCycle 
cycle, String stylesheetBase) {


   String ffPath = "/css/" + stylesheetBase + "-ff.css";
   String normalPath = "/css/" + stylesheetBase + ".css";
   String iePath = "/css/" + styl

Re: OutOfMemoryError after serving N pages

2007-06-28 Thread Evan Rawson - Work
that is correct. we disable caching on our dev machines, but enable it on 
our live servers and testing servers. This allows for less local resources 
to be used and faster redeployments, usually only happens after say 20 to30 
redeployments on a 2gig box. using about 60% of system resources. Ive seen 
tomcat get up to well over 400 megs. our live servers have never gotten an 
outta memory with caching on in the last two years, which makes me happy.


evan
- Original Message - 
From: "Norman Franke" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Thursday, June 28, 2007 12:25 PM
Subject: Re: OutOfMemoryError after serving N pages


I get this if I disable caching after a while. However, I have not  seen it 
with caching enabled.


-Norman

On Jun 28, 2007, at 11:47 AM, Evan Rawson - Work wrote:

what application host are you using. cuz i know in tomcat, when you 
redeploy X amount of times you will get out of memory error. i dont  know 
if this is some how related. but the only way to fix it is to  shut down 
and start tomcat back up.


evan
- Original Message - From: "Thomas Wiz" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, June 28, 2007 3:40 AM
Subject: Re: OutOfMemoryError after serving N pages






Arjan Verstoep wrote:


I'm building an application with the Tapestry 4.0.2 framework, which
manages my music-collection. I'm getting OutOfMemoryErrors since  I've
created a small ajax-ish component that refreshes every 10  seconds to
show the song that is currently playing. A piece of javascript  gets 
the

Tapestry-page with the currently-playing song on it, and puts the
generated html into a . After 24 hours or so making these
page-requests, an out of memory error occurs.

I have the feeling that this new auto-refreshing component of  mine 
only
quickens the OutOfMemoryError, since I did get these errors  before, 
but

only after much longer uptimes.

What am I doing wrong here? Is it the Spring OpenSessionInView- filter
that I use that is wasting memory, am I not cleaning-up everything
myself? Should I use Tapestry 4.1.1? Can anybody help? The code  of the
page follows:
(You can also have a look at
http://musicontroller.cvs.sourceforge.net/musicontroller/ for more
sourcecode)

Thanks,
~Arjan Verstoep



Hi Arjan,
I'm having the same problem you had: heap space OOME after serving  N 
pages.

Did you find any solutions?
Thanks.
--
View this message in context: http://www.nabble.com/ 
OutOfMemoryError-after-serving-N-pages-tf3272095.html#a11338497

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]





-
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: upgrade to 4.1.1

2007-06-28 Thread craigham

that is what I tried to do with the annotation isn't it?  

i can't find the documentation or an example to explain it.



Paulo Ramos wrote:
> 
> Hi,
> 
> Why you dont  use ajax to do this?
> 
> Paulo Ramos
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/upgrade-to-4.1.1-tf3983447.html#a11347587
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: upgrade to 4.1.1

2007-06-28 Thread Paulo Ramos

Hi,

Why you dont  use ajax to do this?

Paulo Ramos



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



Re: T5 : potential feature - JSON component

2007-06-28 Thread #Cyrille37#

Hello,

I'm interesting by the subject. How to integrate JSON with Tap5 in a 
nice way.


For the moment I'm using http://oss.metaparadigm.com/jsonrpc/ to 
communicate between Java Applets and WebApps.
But I didn't integrate it in Tapestry ; I'm using the JSonRpc Servlet 
and share objects with WebApps using SpringFramework.


It would be nice to get Tapestry managing JSonRpc calls.

I'm new with Tapestry, and Java in general, so I could not bring any 
idea about the way to do this.

But I can participate to the discussion and make some tryies.

cyrille

Evan Rawson - Work a écrit :
It would be great if a JSON component could be created for T5. After some extensive research i feel that this feature really would add a ton of flexibility of how your tapestry application can communicate with other tapestry application running on a network. For example my company needs to split up our monstrous application now consisting of about 700 to 1000 pages, and and a few thousand components. We are branching off our sub applications to run as there own independent application. The ability to allow these separate application to talk to each other is very ambigious, meaning that we need to transfer data via http sessions or via a db. 


with the implementation of JSON we could easily setup a java component service 
which could allow another tapestry application to request data from another 
server by giving it the domain, app name, and service name (what you wanna look 
up)

due to JSON 's extreme flexibility and speed, tapestry applicatiosn powered by 
JSON could allow our application to talk to and interact with pretty much any 
other application coded in any modern language. wether it be another web 
application or backend process, or even a desktop application.

i believe that JSON would be a better langauge versus say XML becuase its 
parser is faster, and its easier to intrepret in human language. JSON is also a 
more superior way to handle AJAX requests rather then using XML streams. 
(smaller size, and faster to parse)

just a thought.

~evan
  




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



Re: T5 How reach Sub components informations

2007-06-28 Thread David Avenante

Merci Francois j'ai bien lu cette partie de la documentation mais mon
probleme est que je voudrais "decouvrir" ces composants donc je ne
connais pas leurs id ni leur type.

En fait je recherche a savoir si il existe une facon de lister les
sous composants suivant leur type (Class) et pour chacun  connaitre
leur Id.

Merci pour ton aide ;)


On 6/28/07, Francois Armand <[EMAIL PROTECTED]> wrote:

David Avenante wrote:
> Hi,
>
> I try to create a component with embedded sub component.
>
> How can I access in my root component to the informations about my sub
> components ?
You can access sub component trough ComponentResources
8<
@Inject
private ComponentResources resources;

resources.getEmbeddedComponent(embeddedId)
8<

Take a look at
http://tapestry.apache.org/tapestry5/tapestry-core/guide/inject.html and
http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/ComponentResources.html
for more details.

Francois



-
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: is ognl usable inside *.css files ?

2007-06-28 Thread Ken nashua
Also, is it possible for someone to offer a snippet as how to actually 
implement the instrumentation of the CSS logic? is this specified in a 
template? Or do I have to write it out to the writer?


Thanks for any assistance.

Best regards
Ken in nashua

_
Get a preview of Live Earth, the hottest event this summer - only on MSN 
http://liveearth.msn.com?source=msntaglineliveearthhm



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



RE: is ognl usable inside *.css files ?

2007-06-28 Thread Ken nashua

Folks,

I am trying to get a handle on the right way to extend Shell component. I 
would like to use OGNL based on Evan Rawson's best practice.


Currently I am receiving this...

org.apache.hivemind.ApplicationRuntimeException

component: [EMAIL PROTECTED]
location: context:/WEB-INF/Home.page, line 2, column 54
1 Foundation//Tapestry Specification 4.0//EN" 
"http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>

2 
3 
4 


java.lang.NullPointerException

Stack Trace:
org.apache.tapestry.html.Shell.renderComponent(Shell.java:63)
org.trails.demo.components.LayoutAssets.renderComponent(LayoutAssets.java:96)



All I did was create a derivative...

@ComponentClass(allowBody = true, allowInformalParameters = true)
public abstract class LayoutAssets extends Shell implements ILayout
{
@Override
public void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
{
super.renderComponent(writer, cycle);

if (cycle.isRewinding())
return;
}
}

No html template but I do have a jwc file.



Why is the base class crashing?

Thanks for any assistance.

Best regards
Ken in nashua

_
Make every IM count. Download Messenger and join the i’m Initiative now. 
It’s free. http://im.live.com/messenger/im/home/?source=TAGHM_June07



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



Re: T5 How reach Sub components informations

2007-06-28 Thread Francois Armand

David Avenante wrote:

Hi,

I try to create a component with embedded sub component.

How can I access in my root component to the informations about my sub
components ?

You can access sub component trough ComponentResources
8<
@Inject
private ComponentResources resources;

resources.getEmbeddedComponent(embeddedId)
8<

Take a look at 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/inject.html and 
http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/ComponentResources.html 
for more details.


Francois



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



T5 simple problem

2007-06-28 Thread matt22

I use T5-5.0.4 without Maven.
I use Netbeans and Tomcat 5.5, and have a primitive problem with components.

I have page StartPage.html:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

hilo Start Page


123ItemsView



And Component-ItemsView template:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Component


xxx



But result after rendering is:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

hilo Start Page


123ItemsView




So i dont know where is the problem?
I place start.html and ItemsView.html in \WEB-INF, and also i try plase it
in \WEB-INF\classes\

Where should i place it?
Or is there someone war example for T5 for downloading?
Or can anybody send it to me?

I create huge project, and it will be very very complicated to transfer all
into mavem, or eclipse...
Thanks for whatever reply...

-- 
View this message in context: 
http://www.nabble.com/T5-simple-problem-tf3995442.html#a11346730
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 How reach Sub components informations

2007-06-28 Thread David Avenante

Hi,

I try to create a component with embedded sub component.

How can I access in my root component to the informations about my sub
components ?


Thanks

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



Re: upgrade to 4.1.1

2007-06-28 Thread craigham

my task is very similar to processing a payment request for a shopping cart. 
This task can take 4 seconds.  

I use jms to start this async process.

I think I just need to poll the server from the client to see when the
processing is done, and when done move on to the next step in the process. 
that is why i would like a timer within the browser to fire every second or
so, and then I can check the status of the job.


-- 
View this message in context: 
http://www.nabble.com/upgrade-to-4.1.1-tf3983447.html#a11346009
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: OutOfMemoryError after serving N pages

2007-06-28 Thread Norman Franke
I get this if I disable caching after a while. However, I have not  
seen it with caching enabled.


-Norman

On Jun 28, 2007, at 11:47 AM, Evan Rawson - Work wrote:

what application host are you using. cuz i know in tomcat, when you  
redeploy X amount of times you will get out of memory error. i dont  
know if this is some how related. but the only way to fix it is to  
shut down and start tomcat back up.


evan
- Original Message - From: "Thomas Wiz" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, June 28, 2007 3:40 AM
Subject: Re: OutOfMemoryError after serving N pages






Arjan Verstoep wrote:


I'm building an application with the Tapestry 4.0.2 framework, which
manages my music-collection. I'm getting OutOfMemoryErrors since  
I've
created a small ajax-ish component that refreshes every 10  
seconds to
show the song that is currently playing. A piece of javascript  
gets the

Tapestry-page with the currently-playing song on it, and puts the
generated html into a . After 24 hours or so making these
page-requests, an out of memory error occurs.

I have the feeling that this new auto-refreshing component of  
mine only
quickens the OutOfMemoryError, since I did get these errors  
before, but

only after much longer uptimes.

What am I doing wrong here? Is it the Spring OpenSessionInView- 
filter

that I use that is wasting memory, am I not cleaning-up everything
myself? Should I use Tapestry 4.1.1? Can anybody help? The code  
of the

page follows:
(You can also have a look at
http://musicontroller.cvs.sourceforge.net/musicontroller/ for more
sourcecode)

Thanks,
~Arjan Verstoep



Hi Arjan,
I'm having the same problem you had: heap space OOME after serving  
N pages.

Did you find any solutions?
Thanks.
--
View this message in context: http://www.nabble.com/ 
OutOfMemoryError-after-serving-N-pages-tf3272095.html#a11338497

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]





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



[T5] Can't put mixins in parent classes?

2007-06-28 Thread Dan Adams
I put a mixin in an abstract parent class of a component and it was
ignored. I just moved it down to the concrete class and it worked fine.
Is this the decided behavior?

-- 
Dan Adams
Senior Software Engineer
Interactive Factory
617.235.5857


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



Re: Component Cheatsheet

2007-06-28 Thread Evan Rawson - Work
thats awesome. we need more charts like that :) maybe an interactive one on 
the website would be best, then we can have only one tab ;)


evan
- Original Message - 
From: "David Peterson" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, June 28, 2007 9:45 AM
Subject: T5: Component Cheatsheet



I put together a simple cheatsheet for the Tapestry 5 component parameters
and the rendering cycle. I've been finding it useful, so I thought I might
as well stick it on the web in case you find it useful too...

http://www.davidpeterson.co.uk/files/tapestry5/t5-component-cheatsheet.pdf

David




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



T5 : potential feature - JSON component

2007-06-28 Thread Evan Rawson - Work
It would be great if a JSON component could be created for T5. After some 
extensive research i feel that this feature really would add a ton of 
flexibility of how your tapestry application can communicate with other 
tapestry application running on a network. For example my company needs to 
split up our monstrous application now consisting of about 700 to 1000 pages, 
and and a few thousand components. We are branching off our sub applications to 
run as there own independent application. The ability to allow these separate 
application to talk to each other is very ambigious, meaning that we need to 
transfer data via http sessions or via a db. 

with the implementation of JSON we could easily setup a java component service 
which could allow another tapestry application to request data from another 
server by giving it the domain, app name, and service name (what you wanna look 
up)

due to JSON 's extreme flexibility and speed, tapestry applicatiosn powered by 
JSON could allow our application to talk to and interact with pretty much any 
other application coded in any modern language. wether it be another web 
application or backend process, or even a desktop application.

i believe that JSON would be a better langauge versus say XML becuase its 
parser is faster, and its easier to intrepret in human language. JSON is also a 
more superior way to handle AJAX requests rather then using XML streams. 
(smaller size, and faster to parse)

just a thought.

~evan

Re: [Tap 4.1.2] More OGNL problems

2007-06-28 Thread Christian Dutaret

Did you try to replace getLoggedIn() by isLoggedIn()?

2007/6/28, Bastian Voigt <[EMAIL PROTECTED]>:


Oh I forgot to say that all this was working with Tap 4.1.1

Bastian Voigt wrote:
> Hi *,
>
> we have the following problem with both OGNL 2.7.0 and OGNL
> 2.7.1-20070625 on Tap 4.1.2 with a construct like this:
>
> html--
> 
>You do not have the permission for this!
> 
> java--
> @InjectStateFlag("loginData")
> public abstract boolean getLoggedIn();
>   @InjectState("loginData")
> public abstract LoginSession getUser();
> ---
>
> Right after deployment, we are of course not logged in, so !loggedIn
> should be true and hasPermission should never be called! and
> getLoggedIn does indeed return false if you call it from the Java code!.
>
> However, in OGNL it seems to be false or whatever, because we get an
> exception saying "hasPermission" was called on a non-existing object.
>
> 1. We tried the following:
> 
>You do not have the permission for this!
> 
> -> this works (hasPermission is NOT called, so no exception)
>
> 2. We also tried:
> 
>You do not have the permission for this!
> 
> -> same exception
>
> 3. And then we tried:
> 
>You do not have the permission for this!
> 
> -> same exception
>
>
> Is this a bug in OGNL, or in Tapestry? How can I find this out?
>


--
Bastian Voigt
Neumünstersche Straße 4
20251 Hamburg
telefon +49 - 40  - 67957171
mobil   +49 - 179 - 4826359



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




Re: [T5] OS Summit Asia submission

2007-06-28 Thread Evan Rawson - Work
good write up. i couldn't see y they wouldn't accept that. i truly believe 
that tapestry will become the leader in web application development. when 
someone finally makes a working opensource visual IDE for T5 its gonna be 
game over =)


evan
- Original Message - 
From: "Kolesnikov, Alexander GNI" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Thursday, June 28, 2007 4:22 AM
Subject: [T5] OS Summit Asia submission


Okay, I have submitted two topics to OS Summit Asia, see below. Let's
see whether they will be accepted.

***

Submitter: Alexander Kolesnikov <[EMAIL PROTECTED]>
Title: Creating Web Applications with Apache Tapestry 5
Level: Novice
Style: Tutorial-full
Orientation: Developer
Duration: 360
Categories: Java,New Technologies,Web Technologies

Abstract:

Tapestry is a Java Web framework that introduces a number of innovative
approaches and, as a result, significantly decreases the amount of
effort required to build a sophisticated Web application. Tapestry 3 and
4 are quite popular and are used to build enterprise-class Web
applications, but Tapestry 5 is going to become a champion in terms of
ease of use and efficiency of development.
This full-day training session is designed as a practical hands-on
introduction into building Java Web application with Tapestry 5. The
topics covered include:
the main principles of Tapestry;
setting up an Eclipse project for Tapestry development;
what it takes to create a Tapestry page;
navigation between pages;
working with simple components;
working with rich components;
user input validation;
internationalization and localization;
creating custom components;
AJAX in Tapestry;
Inversion of Control in Tapestry.

Comments:

The audience will be encouraged to use
their computers and practically try
everything that will be explained and
demonstrated.

***

Submitter: Alexander Kolesnikov <[EMAIL PROTECTED]>
Title: What does it take to create a custom component in Tapestry 5
Level: Experienced
Style: Presentation
Orientation: Developer
Duration: 60
Categories: Java,New Technologies,Web Technologies

Abstract:

One of the most attractive features of Tapestry is the simplicity of
extending the framework by creating your own custom components. This
session will demonstrate what it takes to create a non-trivial custom
component using Tapestry 5, the latest version of the framework. It
should be interesting for any kind of Web developers (and not only Java
Web developers), beginners and the most experienced alike. No knowledge
of Tapestry is required as the main principles are simple and they will
be explained along the way.

--
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is 
intended even if addressed incorrectly.  Please delete it from your files if 
you are not the intended recipient.  Thank you for your compliance. 
Copyright 2007 CIGNA

==


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



Re: OutOfMemoryError after serving N pages

2007-06-28 Thread Evan Rawson - Work
what application host are you using. cuz i know in tomcat, when you redeploy 
X amount of times you will get out of memory error. i dont know if this is 
some how related. but the only way to fix it is to shut down and start 
tomcat back up.


evan
- Original Message - 
From: "Thomas Wiz" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, June 28, 2007 3:40 AM
Subject: Re: OutOfMemoryError after serving N pages






Arjan Verstoep wrote:


I'm building an application with the Tapestry 4.0.2 framework, which
manages my music-collection. I'm getting OutOfMemoryErrors since I've
created a small ajax-ish component that refreshes every 10 seconds to
show the song that is currently playing. A piece of javascript gets the
Tapestry-page with the currently-playing song on it, and puts the
generated html into a . After 24 hours or so making these
page-requests, an out of memory error occurs.

I have the feeling that this new auto-refreshing component of mine only
quickens the OutOfMemoryError, since I did get these errors before, but
only after much longer uptimes.

What am I doing wrong here? Is it the Spring OpenSessionInView-filter
that I use that is wasting memory, am I not cleaning-up everything
myself? Should I use Tapestry 4.1.1? Can anybody help? The code of the
page follows:
(You can also have a look at
http://musicontroller.cvs.sourceforge.net/musicontroller/ for more
sourcecode)

Thanks,
~Arjan Verstoep



Hi Arjan,
I'm having the same problem you had: heap space OOME after serving N 
pages.

Did you find any solutions?
Thanks.
--
View this message in context: 
http://www.nabble.com/OutOfMemoryError-after-serving-N-pages-tf3272095.html#a11338497

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: upgrade to 4.1.1

2007-06-28 Thread Evan Rawson - Work
i didn't think tapestry had that kinda control, so we use quartz scheduler, 
which is invoked by the servlet during loading of the application. the 
application can use the quartz methods to set up new jobs to be chron'd or 
one time runs. Its works really well. we use it to import and export data 
into our DB and compile stats on our database. quartz is pretty easy to 
setup and manage.


depending on your context it might be more efficent to use another box  to 
handle this job, depending on the complexity of the status check. what is it 
that you want it to do?


evan.

- Original Message - 
From: "craigham" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, June 27, 2007 10:39 PM
Subject: Re: upgrade to 4.1.1




I tried this to no avail, am I getting close?

I realize this doesn't address  the timer, but  as a first step i was 
trying

to call a method on the load of the screen.

@EventListener(elements = "body", events = "onload")
public void doCheck() {
logger.debug("Do check called");
}


--
View this message in context: 
http://www.nabble.com/upgrade-to-4.1.1-tf3983447.html#a11336081

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: Will it be a full stack framework?

2007-06-28 Thread Francois Armand

Kalle Korhonen wrote:
Tapestry 4 isn't far behind in powerfulness and in some areas way 
ahead, but
certainly with a higher learning curve. 
Well, I'm just a beginner with Tapestry 5, and don't even had a look to 
Tapestry 4, so my notice was just about the thrill I have to use T5 :) 
(I'm coming from a world of Struts and even worse home-made framework... 
just imagine that)

Supporting Tap5 is a constant topic
within Trails, but the reality is that it's a preview and will take some
time to reach the maturity level of Tap4.x. 

That's clear, and your position seems to be quite sensible.

In the meantime though, we are
hard at work for upgrading to Tap4.1.2 in Trails. We'll evaluate Tap5 
again

when a "final" release comes closer.


That sound great, thanks for your work and for you reply !


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



Re: T5: Will it be a full stack framework?

2007-06-28 Thread Kalle Korhonen

On 6/28/07, Francois Armand <[EMAIL PROTECTED]> wrote:


My personal thought are that this kind of application will come to life
in a near future... It already exists Trails
(http://www.trailsframework.org) for Tapestry 4, and well... Tapestry 5
seems to be so pleasant and so powerful... Just need to be done by
someone ;)



Tapestry 4 isn't far behind in powerfulness and in some areas way ahead, but
certainly with a higher learning curve. Supporting Tap5 is a constant topic
within Trails, but the reality is that it's a preview and will take some
time to reach the maturity level of Tap4.x. In the meantime though, we are
hard at work for upgrading to Tap4.1.2 in Trails. We'll evaluate Tap5 again
when a "final" release comes closer.

Kalle


Re: Problem after upgrade to Tapestry 4.1.2

2007-06-28 Thread Marcus Schulte

do you have the @Shell parameter "dojoPath" set explicitly somewhere,
possibly in an override for the standard Exception -page?

2007/6/28, spot_ <[EMAIL PROTECTED]>:



Hi all

I have a problem after upgrading to Tapestry 4.1.2. Here is the stack
trace:


org.apache.hivemind.ApplicationRuntimeException: There was an error
borrowing the page with key PageKey[_pageName='Exception'
, _locale=de_DE
] from the page pool. [classpath:/org/apache/tapestry/html/Shell.jwc, line
179, column 61]
   org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:181)
   $IPageSource_113714f51a6.getPage($IPageSource_113714f51a6.java)
   org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)
   org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)

org.apache.tapestry.error.ExceptionPresenterImpl.presentException(
ExceptionPresenterImpl.java:42)


$ExceptionPresenter_113714f51b3.presentException($ExceptionPresenter_113714f51b3.java)


$ExceptionPresenter_113714f51b2.presentException($ExceptionPresenter_113714f51b2.java)

org.apache.tapestry.engine.AbstractEngine.activateExceptionPage(
AbstractEngine.java:117)

org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:267)

org.apache.tapestry.services.impl.InvokeEngineTerminator.service(
InvokeEngineTerminator.java:54)


$WebRequestServicer_113714f5201.service($WebRequestServicer_113714f5201.java)


$WebRequestServicer_113714f5200.service($WebRequestServicer_113714f5200.java)


$WebRequestServicer_113714f51fd.service($WebRequestServicer_113714f51fd.java)


$WebRequestServicer_113714f51fc.service($WebRequestServicer_113714f51fc.java)

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


$ServletRequestServicer_113714f51ef.service($ServletRequestServicer_113714f51ef.java)


$ServletRequestServicer_113714f51ee.service($ServletRequestServicer_113714f51ee.java)

org.apache.tapestry.request.DecodedRequestInjector.service(
DecodedRequestInjector.java:55)


$ServletRequestServicerFilter_113714f51eb.service($ServletRequestServicerFilter_113714f51eb.java)


$ServletRequestServicerFilter_113714f51ea.service($ServletRequestServicerFilter_113714f51ea.java)


$ServletRequestServicer_113714f51f0.service($ServletRequestServicer_113714f51f0.java)

org.apache.tapestry.multipart.MultipartDecoderFilter.service(
MultipartDecoderFilter.java:52)


$ServletRequestServicerFilter_113714f51e9.service($ServletRequestServicerFilter_113714f51e9.java)


$ServletRequestServicerFilter_113714f51e8.service($ServletRequestServicerFilter_113714f51e8.java)


$ServletRequestServicer_113714f51f0.service($ServletRequestServicer_113714f51f0.java)

org.apache.tapestry.services.impl.SetupRequestEncoding.service(
SetupRequestEncoding.java:53)


$ServletRequestServicerFilter_113714f51ed.service($ServletRequestServicerFilter_113714f51ed.java)


$ServletRequestServicerFilter_113714f51ec.service($ServletRequestServicerFilter_113714f51ec.java)


$ServletRequestServicer_113714f51f0.service($ServletRequestServicer_113714f51f0.java)


$ServletRequestServicer_113714f51e3.service($ServletRequestServicer_113714f51e3.java)


$ServletRequestServicer_113714f51e2.service($ServletRequestServicer_113714f51e2.java)

org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java
:126)
   org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java
:103)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

org.apache.hivemind.ApplicationRuntimeException: Missing classpath
resource
'/dojo/'. [classpath:/org/apache/tapestry/html/Shell.jwc, line 179, column
61]

org.apache.tapestry.asset.ClasspathAssetFactory.createAbsoluteAsset(
ClasspathAssetFactory.java:83)


$AssetFactory_113714f52c4.createAbsoluteAsset($AssetFactory_113714f52c4.java)

org.apache.tapestry.asset.AssetSourceImpl.findAsset(AssetSourceImpl.java
:97)
   $AssetSource_113714f524b.findAsset($AssetSource_113714f524b.java)
   org.apache.tapestry.pageload.PageLoader.addAssets(PageLoader.java:704)

org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java
:399)

org.apache.tapestry.pageload.PageLoader.createImplicitComponent(
PageLoader.java:504)


$IPageLoader_113714f5247.createImplicitComponent($IPageLoader_113714f5247.java)


$IPageLoader_113714f5248.createImplicitComponent($IPageLoader_113714f5248.java)


org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.createImplicitComponent
(ComponentTemplateLoaderLogic.java:203)

org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(
ComponentTemplateLoaderLogic.java:158)

org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(
ComponentTemplateLoaderLogic.java:98)


org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate
(ComponentTemplateLoaderLogic.java:75)

org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate
(Co

AW: How can i make a Tapestry Component of a Stream Response

2007-06-28 Thread Peter Schröder
hi fidel,

there is already an example somewhere on the list. search for streamresponse or 
chart.

kind regards,
peter 

-Ursprüngliche Nachricht-
Von: Fidel Chavarria [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 28. Juni 2007 01:09
An: users@tapestry.apache.org
Betreff: How can i make a Tapestry Component of a Stream Response


I trying to create a Chart dinamically and place it in  a html page , to do
so a create a ImageStreamResponse  class that convert my Jfreechart instance
to a byteArrayInputStream


 class ImageStreamResponse implements StreamResponse {

 private JFreeChart jfreeChart ;
 private String contentType ;
 
 public ImageStreamResponse(final String contentType, 
JFreeChart chart){
 this.contentType = contentType ;
 jfreeChart = chart ;
 }
 
public String getContentType() {
return contentType;
}

public InputStream getStream() throws IOException {
BufferedImage image  = 
jfreeChart.createBufferedImage(600, 400);
ByteArrayOutputStream byteArray = new 
ByteArrayOutputStream() ;
ChartUtilities.writeBufferedImageAsJPEG(byteArray, 
image) ;
return new 
ByteArrayInputStream(byteArray.toByteArray());
}
 
 }


with an ActionLink 

StreamResponse onActionFromViewChart(Object[] context) {
return viewChart.getGraph(context) ;
}


my viewChart.getGraph(Object[] context) method 

public StreamResponse getGraph(Object[] context)  {
 JFreeChart jfreeChart = new BurnDownChartGenerator(context).getChart() ;
return jfreeChart != null ? new ImageStreamResponse("image/jpeg",
jfreeChart) : new TextStreamResponse("text/html","chart not available") ;
}


it generate a blank page with the image, but i need it to be a component so
i can place it (the image)within a fancy page.  
 
-- 
View this message in context: 
http://www.nabble.com/How-can-i-make-a-Tapestry-Component-of-a-Stream-Response-tf3989719.html#a11328870
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: Component Cheatsheet

2007-06-28 Thread Ben Acker

This is great! Thanks!

Ben

On 6/28/07, David Peterson <[EMAIL PROTECTED]> wrote:


I put together a simple cheatsheet for the Tapestry 5 component parameters
and the rendering cycle. I've been finding it useful, so I thought I might
as well stick it on the web in case you find it useful too...

http://www.davidpeterson.co.uk/files/tapestry5/t5-component-cheatsheet.pdf

David



Re: T5: Component Cheatsheet

2007-06-28 Thread Francois Armand

David Peterson wrote:
I put together a simple cheatsheet for the Tapestry 5 component 
parameters
and the rendering cycle. I've been finding it useful, so I thought I 
might

as well stick it on the web in case you find it useful too...

http://www.davidpeterson.co.uk/files/tapestry5/t5-component-cheatsheet.pdf 




Thank you very much !
It seems that I would have at least two tab currently opened closed 
since now :)


Farncois

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



Re: [Tap 4.1.2] More OGNL problems

2007-06-28 Thread Bastian Voigt

Oh I forgot to say that all this was working with Tap 4.1.1

Bastian Voigt wrote:

Hi *,

we have the following problem with both OGNL 2.7.0 and OGNL 
2.7.1-20070625 on Tap 4.1.2 with a construct like this:


html--


   You do not have the permission for this!

java--
@InjectStateFlag("loginData")
public abstract boolean getLoggedIn();
  @InjectState("loginData")
public abstract LoginSession getUser();
---

Right after deployment, we are of course not logged in, so !loggedIn 
should be true and hasPermission should never be called! and 
getLoggedIn does indeed return false if you call it from the Java code!.


However, in OGNL it seems to be false or whatever, because we get an 
exception saying "hasPermission" was called on a non-existing object.


1. We tried the following:


   You do not have the permission for this!

-> this works (hasPermission is NOT called, so no exception)

2. We also tried:


   You do not have the permission for this!

-> same exception

3. And then we tried:


   You do not have the permission for this!

-> same exception


Is this a bug in OGNL, or in Tapestry? How can I find this out?




--
Bastian Voigt
Neumünstersche Straße 4
20251 Hamburg
telefon +49 - 40  - 67957171
mobil   +49 - 179 - 4826359



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



T5: Component Cheatsheet

2007-06-28 Thread David Peterson

I put together a simple cheatsheet for the Tapestry 5 component parameters
and the rendering cycle. I've been finding it useful, so I thought I might
as well stick it on the web in case you find it useful too...

http://www.davidpeterson.co.uk/files/tapestry5/t5-component-cheatsheet.pdf

David


Re: T5: Will it be a full stack framework?

2007-06-28 Thread Francois Armand

Robert Sanders wrote:
I certainly don't think that tapestry-core should ever be a "full 
stack", but I hope that there is eventually something like the 
quick-start which allows new users to generate a "quick and dirty" 
CRUD application very easily (it would be nice it this were less 
typing than the standard maven command line as this is off-putting to 
most new comers, but copy-in-paste does work wonders), no one should 
expect such quick-starts to be full-strength applications, but it 
would provide a great way to get someone new (like myself) up-to-speed 
and productive.  The power of annotations would seem to be to enable 
this via IoC without dumping any additional logic into the 
tapestry-core code base.

Oh, ok :)
My personal thought are that this kind of application will come to life 
in a near future... It already exists Trails 
(http://www.trailsframework.org) for Tapestry 4, and well... Tapestry 5 
seems to be so pleasant and so powerful... Just need to be done by 
someone ;)



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



Re: [T5] missing some listener to bind component/page events ?

2007-06-28 Thread Francois Armand

#Cyrille37# wrote:

Thank you François,

The problem is not on the component context, but on the component id.

Oups ^^

I think a listener concept is missing !

Another example :
(This code is invalid because of the duplicate component id)

   YES
   YES


   Object onActionFromWant2beRich( boolean yes )
   {
  ...
   }

Ok, now I better understand your concern. You would have a kind of group 
notion for action event ?

Somethink like that :
8<--
  context="true">YES
  context="false">YES

8<--
And the event handler "onActionFromFoo" match first link, 
"onActionFromBar" match second link, and "onActionFromWant2beRich" match 
both.


I don't think this kink of feature exists for now, but you can take 
advantage of event "bubbling" to achieve your need : just create a 
trivial component "Want2beRich" :

8<--
java:
public class Want2beRich {}
html:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
YES
NO

8<--
and use it on your parent component/page : , with the 
corresponding event handler "onActionFromWant2berich".


Well, it seems that the risk is to have a batch of component with this 
solution...

Nonetheless, I hope it will help you.


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



Re: T5: Will it be a full stack framework?

2007-06-28 Thread Robert Sanders

Francois Armand wrote:

Todd Orr wrote:

[]
More to the point, I believe that Howard and the Tapestry developers
will be utilized as development resources most effectively if the
focus remains on creating the #1 MVC framework. Thanks a million guys!
Just to continue arguing in this way : I use Tapestry 5 to build an 
LDAP manager web application, and I really don't care to have a "full 
stack" framework for that, because this kind of framework not event 
know what LDAP is... As soon as you step aside from the most common 
use cases, these framework are useless.
In fact, I choose Tapestry 5 because it does it job _very_ well, but 
it just do it (there was other pretenders, but certainly not SEAM, 
RIFE or *rails).


I certainly don't think that tapestry-core should ever be a "full 
stack", but I hope that there is eventually something like the 
quick-start which allows new users to generate a "quick and dirty" CRUD 
application very easily (it would be nice it this were less typing than 
the standard maven command line as this is off-putting to most new 
comers, but copy-in-paste does work wonders), no one should expect such 
quick-starts to be full-strength applications, but it would provide a 
great way to get someone new (like myself) up-to-speed and productive.  
The power of annotations would seem to be to enable this via IoC without 
dumping any additional logic into the tapestry-core code base.


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

Re: Problems with ognl 2.7

2007-06-28 Thread Ray Fortycoats

perhaps this was posted in relation to the second issue?

http://jira.opensymphony.com/browse/OGNL-96





On 6/28/07, Maximilian Weißböck <[EMAIL PROTECTED]> wrote:


Thanks for your feedback, I filed an Issue at OGNL Jira.

And also Thanks for the great work you did in both Tapestry and OGNL.
Tapestry 4.1.2 looks very promising!

Max


> -Ursprüngliche Nachricht-
> Von: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 27. Juni 2007 21:22
> An: Tapestry users
> Betreff: Re: Problems with ognl 2.7
>
> The syntax hasn't changed .just the runtime.   If you
> file a JIRA issue
> here it should be fairly easy to fix.
>
> http://jira.opensymphony.com/browse/OGNL
>
> Most jira issues are fixed within a day or two of filing -
> but you'll have to use the new 2.7.1-SNAPSHOT version to see
> the fixes. (which is deployed to the maven2 snapshot repo
> http://opencomponentry.com/repository/m2-snapshot-repo/ )
>
> On 6/27/07, Maximilian Weißböck
> <[EMAIL PROTECTED]> wrote:
> >
> > We just upgraded to Tapestry 4.1.2 but have some ognl problems.
> > So far we found two expressions that do no longer work:
> >
> > "ognl:components.productSaleTable.tableRow.totalPriceInCent / 100.0"
> >
> > It throws this error: Caused by: compile error: ) is missing
> >
> > The second one is
> >
> > "ognl:ordersPerShopLoop.index % 2 == 0"
> >
> > and it throws this error: Caused by: compile error: invalid
> types for
> > ==
> >
> > Has the syntax of ognl canged in 2.7, and if yes, where can
> I find the
> > doc?
> >
> > Thanks, Max
> >
> > ---
> >
> > Maximilian Weißböck
> > Sphinx IT Consulting GmbH
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
>

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




Re: [T5] How to retrieve the id of an event emitter in handler method ?

2007-06-28 Thread Francois Armand

Nick Westgate wrote:

Ok, here is a solution. Took me 5 minutes to write, 20 mins to test. ;-)
Oh. I should have attempt to do it :) thank you very much, works like a 
charm :)

Yeah, this is exactly what I have implemented. Eventually a shared hidden
input should probably be used, but I can't see (or perhaps grok) the form
support for this yet. Also a context that is a list of objects was my 
plan,
but the context "passivation" is all internal and relies on the 
TypeCoercer

stuff which is a bit involved. This should do for a first cut.
Well, I need at least to deals with List argument, even if it is 
as a (two) simple way, so a change your code as wrote at the end of the 
message. The string of the list are concatenated in the same way a for 
an action link (ex: "value0/value1/value2") so that in the event 
handler, a split give me the different argument. Well, it's clearly not 
robust, it would be better to use TypeCoercer and some other remarks, 
but for now, it would be greatly better to use.


Thanks again for your time !

And thanks to Tapestry developers for the ease of use of T5 !


The code :

8<-
   @Parameter
   private String _context;
==>
   @Parameter
   private List _context;
8<-

8<-
   void beginRender(MarkupWriter writer)
   {
   // write a hidden input for the context
   String elementName = getElementName();
   writer.element("input", "type", "hidden", "name", elementName + 
"X", "value", _context);

   writer.end();

   // now the submit
   writer.element("input", "type", "submit", "name", elementName, 
"id", getClientId());

   }
==>
   void beginRender(MarkupWriter writer)
   {
   /* convert context to a string : 
context[0]/context[1]/context[2] ... */

   StringBuilder contextStringBuilder = new StringBuilder("");
   if(null != _context) {
   int j;
   for(int i = 0;  (j = _context.size()-i) > 0 ;i++) {
   contextStringBuilder.append(_context.get(i));
   if(j >1) { contextStringBuilder.append("/"); }
   }
   }
   // write a hidden input for the context
   String elementName = getElementName();
   writer.element("input", "type", "hidden", "name", elementName + 
"X", "value", contextStringBuilder.toString());

   writer.end();

   // now the submit
   writer.element("input", "type", "submit", "name", elementName, 
"id", getClientId());

   }
8<-

Diff it to Submit and you'll see it's only a few extra lines. Hope it 
helps.


Cheers,
Nick.


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



Re: [T5] How to retrieve the id of an event emitter in handler method ?

2007-06-28 Thread Ulrich Stärk

Nick Westgate schrieb:

Ok, here is a solution. Took me 5 minutes to write, 20 mins to test. ;-)

 > Ulrich Stark wrote:
 >> Nick,
 >>
 >> there is no difference whether your event method gets triggered upon
 >> clicking a link or a button. Except that you can pass parameters like
 >> an index when using actionlink. And that's exactly what you want.
 >>

As I said, not if you want your form input fields sent/preserved.



Ahh, now I see the problem. That won't work with what I proposed, indeed.

Uli

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



Re: [T5] missing some listener to bind component/page events ?

2007-06-28 Thread #Cyrille37#

Francois Armand a écrit :

#Cyrille37# wrote:

In another way to explain,
I would like to make "by hand" the same work than a t:actionLink in a 
t:loop


the code :

   ${guess}

create several links like :
   /do.guess/4
   /do.guess/6
   /do.guess/7

So, howto do the same "by hand" (without a loop) ???

You can use list in context. For example, if you have a
ListgetGuessContexte() {
   List list = new ArrayList();
   list.add("plop");
   list.add(new Integer(guess).toString());
   return list;
}
In your :
${guess}

You will have link : .../do./guess/plop/0, .../do.guess/plop/1 etc.

See 
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#org.apache.tapestry.corelib.components.actionlink

Thank you François,

The problem is not on the component context, but on the component id.
I think a listener concept is missing !

Another example :
(This code is invalid because of the duplicate component id)

   YES
   YES


   Object onActionFromWant2beRich( boolean yes )
   {
  ...
   }


Perhaps I've missed some essential concept ??

cheers
cyrille.

Well, if anybody as an idea about how to do this kind of think with 
submit button, I'm interested :)


Francois


-
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] How to retrieve the id of an event emitter in handler method ?

2007-06-28 Thread Nick Westgate

Ok, here is a solution. Took me 5 minutes to write, 20 mins to test. ;-)

> Ulrich Stark wrote:
>> Nick,
>>
>> there is no difference whether your event method gets triggered upon
>> clicking a link or a button. Except that you can pass parameters like
>> an index when using actionlink. And that's exactly what you want.
>>

As I said, not if you want your form input fields sent/preserved.

Francois Armand wrote:
> My use case was : I have a form with a list of text field, for each
> field a delete (link|button), and a submit button.
> I want that if an user modify some fields and then click to delete
> (without submitting the form), the matching value is deleted _and_ other
> modification are kept.

I've just tested that this works with my SubmitContext component below.

> To achieve that, the field values have to be transmitted to the server,
> what is not done with an action link.

Exactly, we need a submit ...

> So, Nick Westgate point out the good solution (I think), I just need to
> be done ;)
>
> Just to be sure : there is no other solution than to use javascipt to do
> that ? I was thinking that as Tapestry handle the form action link, it
> would be possible to add a context to submit button, as example :

The Javascript was used to assign a "tag" (like a context) to a shared
hidden input and then submit the form. But I found another way - just use
a hidden input for each submit.

> <:tform>
> 
> 
> 
> 
>
> With submit from "submit" button  mapped to action link
> myformcomponent.form and "context" button mapped to
> myformcomponent.form/value, and in Java code, context available as now
> for action link : onSelectedFromContext(String value) {...}

Yeah, this is exactly what I have implemented. Eventually a shared hidden
input should probably be used, but I can't see (or perhaps grok) the form
support for this yet. Also a context that is a list of objects was my plan,
but the context "passivation" is all internal and relies on the TypeCoercer
stuff which is a bit involved. This should do for a first cut.

Diff it to Submit and you'll see it's only a few extra lines. Hope it helps.

Cheers,
Nick.


// Copyright 2007 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package your.package.tapestry.components;

import org.apache.tapestry.ComponentResources;
import org.apache.tapestry.MarkupWriter;
import org.apache.tapestry.annotations.Environmental;
import org.apache.tapestry.annotations.Inject;
import org.apache.tapestry.annotations.Parameter;
import org.apache.tapestry.corelib.base.AbstractField;
import org.apache.tapestry.services.FormSupport;
import org.apache.tapestry.services.Heartbeat;
import org.apache.tapestry.services.Request;

/**
 * Corresponds to , a client-side element that can 
force the
 * enclosing form to submit. The submit responsible for the form submission 
will post a
 * notification that allows the application to know that it was the responsible 
entity. The
 * notification is named "selected" and has a String context.
 */
public final class SubmitContext extends AbstractField
{
static final String SELECTED_EVENT = "selected";

/**
 * If true, then any notification sent by the component will be deferred 
until the end of
 * the form submission (this is usually desirable).
 */
@Parameter
private boolean _defer = true;

@Parameter
private String _context;

@Environmental
private FormSupport _formSupport;

@Environmental
private Heartbeat _heartbeat;

@Inject
private ComponentResources _resources;

@Inject
private Request _request;

public SubmitContext()
{
}

SubmitContext(Request request)
{
_request = request;
}

void beginRender(MarkupWriter writer)
{
// write a hidden input for the context
String elementName = getElementName();
writer.element("input", "type", "hidden", "name", elementName + "X", 
"value", _context);
writer.end();

// now the submit
writer.element("input", "type", "submit", "name", elementName, "id", 
getClientId());
}

void afterRender(MarkupWriter writer)
{
writer.end();
}

@Override
protected void processSubmission(FormSupport formSupport, String 
elementName)
{
String value = _request.getParameter(elementName);
final String context = _request.getParameter(elementName + "X");

if (value == null)
 

Re: [T5] How to retrieve the id of an event emitter in handler method ?

2007-06-28 Thread Francois Armand

Ulrich Stärk wrote:

Nick,

there is no difference whether your event method gets triggered upon 
clicking a link or a button. Except that you can pass parameters like 
an index when using actionlink. And that's exactly what you want.


Ok, but if the data are not transmitted to the server, we are not going 
anywhere.
My use case was : I have a form with a list of text field, for each 
field a delete (link|button), and a submit button.
I want that if an user modify some fields and then click to delete 
(without submitting the form), the matching value is deleted _and_ other 
modification are kept.
To achieve that, the field values have to be transmitted to the server, 
what is not done with an action link.


So, Nick Westgate point out the good solution (I think), I just need to 
be done ;)


Just to be sure : there is no other solution than to use javascipt to do 
that ? I was thinking that as Tapestry handle the form action link, it 
would be possible to add a context to submit button, as example :

<:tform>





With submit from "submit" button  mapped to action link 
myformcomponent.form and "context" button mapped to 
myformcomponent.form/value, and in Java code, context available as now 
for action link : onSelectedFromContext(String value) {...}


But I have absolutely no idea on the feasibility of that.

Between, thanks for the advice and your propositions !


Francois

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



[Tap 4.1.2] More OGNL problems

2007-06-28 Thread Bastian Voigt

Hi *,

we have the following problem with both OGNL 2.7.0 and OGNL 
2.7.1-20070625 on Tap 4.1.2 with a construct like this:


html--


   You do not have the permission for this!

java--
@InjectStateFlag("loginData")
public abstract boolean getLoggedIn();
  
@InjectState("loginData")

public abstract LoginSession getUser();
---

Right after deployment, we are of course not logged in, so !loggedIn 
should be true and hasPermission should never be called! and getLoggedIn 
does indeed return false if you call it from the Java code!.


However, in OGNL it seems to be false or whatever, because we get an 
exception saying "hasPermission" was called on a non-existing object.


1. We tried the following:


   You do not have the permission for this!

-> this works (hasPermission is NOT called, so no exception)

2. We also tried:


   You do not have the permission for this!

-> same exception

3. And then we tried:


   You do not have the permission for this!

-> same exception


Is this a bug in OGNL, or in Tapestry? How can I find this out?

--
Bastian Voigt
Neumünstersche Straße 4
20251 Hamburg
telefon +49 - 40  - 67957171
mobil   +49 - 179 - 4826359



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



Re: [T5] How to retrieve the id of an event emitter in handler method ?

2007-06-28 Thread Ulrich Stärk

Nick,

there is no difference whether your event method gets triggered upon clicking a link or a button. 
Except that you can pass parameters like an index when using actionlink. And that's exactly what you 
want.


Uli

Nick Westgate schrieb:

This is not useful in a form.
(Francois did not quote his original email which describes his use case.)

Cheers,
Nick.


Ulrich Stärk wrote:
Use an actionlink and it's context parameter. See here: 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html


Uli

Nick Westgate schrieb:

Hi Francois.

I had a similar situation but was able to use multiple forms,
so each had a different context used for identification.

T5 needs a LinkSubmit component like that in previous versions
which uses a hidden field and submits the form with Javascript.
I suppose that's a hint if you have time to write one. ;-)

Cheers,
Nick.


Francois Armand wrote:

Francois Armand wrote:

Hello,

I would like to know how I can retrieve the ID of the component 
which triggered an even when I'm in an event handler method ?


[]

I'm still interested by an hint on this topic...



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




-
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] How to retrieve the id of an event emitter in handler method ?

2007-06-28 Thread Nick Westgate

This is not useful in a form.
(Francois did not quote his original email which describes his use case.)

Cheers,
Nick.


Ulrich Stärk wrote:
Use an actionlink and it's context parameter. See here: 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html


Uli

Nick Westgate schrieb:

Hi Francois.

I had a similar situation but was able to use multiple forms,
so each had a different context used for identification.

T5 needs a LinkSubmit component like that in previous versions
which uses a hidden field and submits the form with Javascript.
I suppose that's a hint if you have time to write one. ;-)

Cheers,
Nick.


Francois Armand wrote:

Francois Armand wrote:

Hello,

I would like to know how I can retrieve the ID of the component 
which triggered an even when I'm in an event handler method ?


[]

I'm still interested by an hint on this topic...



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




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



Problem after upgrade to Tapestry 4.1.2

2007-06-28 Thread spot_

Hi all

I have a problem after upgrading to Tapestry 4.1.2. Here is the stack trace: 


org.apache.hivemind.ApplicationRuntimeException: There was an error
borrowing the page with key PageKey[_pageName='Exception'
, _locale=de_DE
] from the page pool. [classpath:/org/apache/tapestry/html/Shell.jwc, line
179, column 61]
   org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:181)
   $IPageSource_113714f51a6.getPage($IPageSource_113714f51a6.java)
   org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:239)
   org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:226)
  
org.apache.tapestry.error.ExceptionPresenterImpl.presentException(ExceptionPresenterImpl.java:42)
  
$ExceptionPresenter_113714f51b3.presentException($ExceptionPresenter_113714f51b3.java)
  
$ExceptionPresenter_113714f51b2.presentException($ExceptionPresenter_113714f51b2.java)
  
org.apache.tapestry.engine.AbstractEngine.activateExceptionPage(AbstractEngine.java:117)
  
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:267)
  
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:54)
  
$WebRequestServicer_113714f5201.service($WebRequestServicer_113714f5201.java)
  
$WebRequestServicer_113714f5200.service($WebRequestServicer_113714f5200.java)
  
$WebRequestServicer_113714f51fd.service($WebRequestServicer_113714f51fd.java)
  
$WebRequestServicer_113714f51fc.service($WebRequestServicer_113714f51fc.java)
  
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:61)
  
$ServletRequestServicer_113714f51ef.service($ServletRequestServicer_113714f51ef.java)
  
$ServletRequestServicer_113714f51ee.service($ServletRequestServicer_113714f51ee.java)
  
org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
  
$ServletRequestServicerFilter_113714f51eb.service($ServletRequestServicerFilter_113714f51eb.java)
  
$ServletRequestServicerFilter_113714f51ea.service($ServletRequestServicerFilter_113714f51ea.java)
  
$ServletRequestServicer_113714f51f0.service($ServletRequestServicer_113714f51f0.java)
  
org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
  
$ServletRequestServicerFilter_113714f51e9.service($ServletRequestServicerFilter_113714f51e9.java)
  
$ServletRequestServicerFilter_113714f51e8.service($ServletRequestServicerFilter_113714f51e8.java)
  
$ServletRequestServicer_113714f51f0.service($ServletRequestServicer_113714f51f0.java)
  
org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
  
$ServletRequestServicerFilter_113714f51ed.service($ServletRequestServicerFilter_113714f51ed.java)
  
$ServletRequestServicerFilter_113714f51ec.service($ServletRequestServicerFilter_113714f51ec.java)
  
$ServletRequestServicer_113714f51f0.service($ServletRequestServicer_113714f51f0.java)
  
$ServletRequestServicer_113714f51e3.service($ServletRequestServicer_113714f51e3.java)
  
$ServletRequestServicer_113714f51e2.service($ServletRequestServicer_113714f51e2.java)
  
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:126)
   org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:103)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

org.apache.hivemind.ApplicationRuntimeException: Missing classpath resource
'/dojo/'. [classpath:/org/apache/tapestry/html/Shell.jwc, line 179, column
61]
  
org.apache.tapestry.asset.ClasspathAssetFactory.createAbsoluteAsset(ClasspathAssetFactory.java:83)
  
$AssetFactory_113714f52c4.createAbsoluteAsset($AssetFactory_113714f52c4.java)
  
org.apache.tapestry.asset.AssetSourceImpl.findAsset(AssetSourceImpl.java:97)
   $AssetSource_113714f524b.findAsset($AssetSource_113714f524b.java)
   org.apache.tapestry.pageload.PageLoader.addAssets(PageLoader.java:704)
  
org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:399)
  
org.apache.tapestry.pageload.PageLoader.createImplicitComponent(PageLoader.java:504)
  
$IPageLoader_113714f5247.createImplicitComponent($IPageLoader_113714f5247.java)
  
$IPageLoader_113714f5248.createImplicitComponent($IPageLoader_113714f5248.java)
  
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.createImplicitComponent(ComponentTemplateLoaderLogic.java:203)
  
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:158)
  
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:98)
  
org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:75)
  
org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60)
  
$ComponentTemplateLoader_113714f5251.loadTemplate($ComponentTemplateLoader_113714f5251.java)

Re: [T5] How to retrieve the id of an event emitter in handler method ?

2007-06-28 Thread Ulrich Stärk
Use an actionlink and it's context parameter. See here: 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html


Uli

Nick Westgate schrieb:

Hi Francois.

I had a similar situation but was able to use multiple forms,
so each had a different context used for identification.

T5 needs a LinkSubmit component like that in previous versions
which uses a hidden field and submits the form with Javascript.
I suppose that's a hint if you have time to write one. ;-)

Cheers,
Nick.


Francois Armand wrote:

Francois Armand wrote:

Hello,

I would like to know how I can retrieve the ID of the component which 
triggered an even when I'm in an event handler method ?


[]

I'm still interested by an hint on this topic...



-
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: [T5] How to retrieve the id of an event emitter in handler method ?

2007-06-28 Thread Nick Westgate

Hi Francois.

I had a similar situation but was able to use multiple forms,
so each had a different context used for identification.

T5 needs a LinkSubmit component like that in previous versions
which uses a hidden field and submits the form with Javascript.
I suppose that's a hint if you have time to write one. ;-)

Cheers,
Nick.


Francois Armand wrote:

Francois Armand wrote:

Hello,

I would like to know how I can retrieve the ID of the component which 
triggered an even when I'm in an event handler method ?


[]

I'm still interested by an hint on this topic...



-
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] OS Summit Asia submission

2007-06-28 Thread Kolesnikov, Alexander GNI
Okay, I have submitted two topics to OS Summit Asia, see below. Let's
see whether they will be accepted.

***

Submitter: Alexander Kolesnikov <[EMAIL PROTECTED]>
Title: Creating Web Applications with Apache Tapestry 5
Level: Novice
Style: Tutorial-full
Orientation: Developer
Duration: 360
Categories: Java,New Technologies,Web Technologies

Abstract:

Tapestry is a Java Web framework that introduces a number of innovative
approaches and, as a result, significantly decreases the amount of
effort required to build a sophisticated Web application. Tapestry 3 and
4 are quite popular and are used to build enterprise-class Web
applications, but Tapestry 5 is going to become a champion in terms of
ease of use and efficiency of development. 
This full-day training session is designed as a practical hands-on
introduction into building Java Web application with Tapestry 5. The
topics covered include: 
the main principles of Tapestry;
setting up an Eclipse project for Tapestry development;
what it takes to create a Tapestry page;
navigation between pages;
working with simple components;
working with rich components;
user input validation;
internationalization and localization;
creating custom components;
AJAX in Tapestry; 
Inversion of Control in Tapestry.

Comments:

The audience will be encouraged to use
their computers and practically try
everything that will be explained and
demonstrated.

***

Submitter: Alexander Kolesnikov <[EMAIL PROTECTED]>
Title: What does it take to create a custom component in Tapestry 5
Level: Experienced
Style: Presentation
Orientation: Developer
Duration: 60
Categories: Java,New Technologies,Web Technologies

Abstract:

One of the most attractive features of Tapestry is the simplicity of
extending the framework by creating your own custom components. This
session will demonstrate what it takes to create a non-trivial custom
component using Tapestry 5, the latest version of the framework. It
should be interesting for any kind of Web developers (and not only Java
Web developers), beginners and the most experienced alike. No knowledge
of Tapestry is required as the main principles are simple and they will
be explained along the way.

--
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2007 CIGNA
==


Re: Refreshing a dojo Dialog on submit

2007-06-28 Thread Heping Zhang

do you resolve the problem? I think you can try to update the entire dialog
box component, not only the if component, or something like this, contains
the error message. I don't know whether it will work in your project, but I
when encounter this problem, I tried this and it works.


Re: [T5] How to retrieve the id of an event emitter in handler method ?

2007-06-28 Thread Francois Armand

Francois Armand wrote:

Hello,

I would like to know how I can retrieve the ID of the component which 
triggered an even when I'm in an event handler method ?


[]

I'm still interested by an hint on this topic...



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



Re: [T5] missing some listener to bind component/page events ?

2007-06-28 Thread Francois Armand

#Cyrille37# wrote:

In another way to explain,
I would like to make "by hand" the same work than a t:actionLink in a 
t:loop


the code :

   ${guess}

create several links like :
   /do.guess/4
   /do.guess/6
   /do.guess/7

So, howto do the same "by hand" (without a loop) ???

You can use list in context. For example, if you have a
ListgetGuessContexte() {
   List list = new ArrayList();
   list.add("plop");
   list.add(new Integer(guess).toString());
   return list;
}
In your :
${guess}

You will have link : .../do./guess/plop/0, .../do.guess/plop/1 etc.

See 
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#org.apache.tapestry.corelib.components.actionlink


Well, if anybody as an idea about how to do this kind of think with 
submit button, I'm interested :)


Francois


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



Re: OutOfMemoryError after serving N pages

2007-06-28 Thread Thomas Wiz



Arjan Verstoep wrote:
> 
> I'm building an application with the Tapestry 4.0.2 framework, which 
> manages my music-collection. I'm getting OutOfMemoryErrors since I've 
> created a small ajax-ish component that refreshes every 10 seconds to 
> show the song that is currently playing. A piece of javascript gets the 
> Tapestry-page with the currently-playing song on it, and puts the 
> generated html into a . After 24 hours or so making these 
> page-requests, an out of memory error occurs.
> 
> I have the feeling that this new auto-refreshing component of mine only 
> quickens the OutOfMemoryError, since I did get these errors before, but 
> only after much longer uptimes.
> 
> What am I doing wrong here? Is it the Spring OpenSessionInView-filter 
> that I use that is wasting memory, am I not cleaning-up everything 
> myself? Should I use Tapestry 4.1.1? Can anybody help? The code of the 
> page follows:
> (You can also have a look at 
> http://musicontroller.cvs.sourceforge.net/musicontroller/ for more 
> sourcecode)
> 
> Thanks,
> ~Arjan Verstoep
> 
> 
Hi Arjan,
I'm having the same problem you had: heap space OOME after serving N pages.
Did you find any solutions?
Thanks.
-- 
View this message in context: 
http://www.nabble.com/OutOfMemoryError-after-serving-N-pages-tf3272095.html#a11338497
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: Will it be a full stack framework?

2007-06-28 Thread Francois Armand

Todd Orr wrote:

[]
More to the point, I believe that Howard and the Tapestry developers
will be utilized as development resources most effectively if the
focus remains on creating the #1 MVC framework. Thanks a million guys!
Just to continue arguing in this way : I use Tapestry 5 to build an LDAP 
manager web application, and I really don't care to have a "full stack" 
framework for that, because this kind of framework not event know what 
LDAP is... As soon as you step aside from the most common use cases, 
these framework are useless.
In fact, I choose Tapestry 5 because it does it job _very_ well, but it 
just do it (there was other pretenders, but certainly not SEAM, RIFE or 
*rails).




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



AW: Problems with ognl 2.7

2007-06-28 Thread Maximilian Weißböck
Thanks for your feedback, I filed an Issue at OGNL Jira.

And also Thanks for the great work you did in both Tapestry and OGNL.
Tapestry 4.1.2 looks very promising!

Max
 

> -Ursprüngliche Nachricht-
> Von: Jesse Kuhnert [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 27. Juni 2007 21:22
> An: Tapestry users
> Betreff: Re: Problems with ognl 2.7
> 
> The syntax hasn't changed .just the runtime.   If you 
> file a JIRA issue
> here it should be fairly easy to fix.
> 
> http://jira.opensymphony.com/browse/OGNL
> 
> Most jira issues are fixed within a day or two of filing - 
> but you'll have to use the new 2.7.1-SNAPSHOT version to see 
> the fixes. (which is deployed to the maven2 snapshot repo 
> http://opencomponentry.com/repository/m2-snapshot-repo/ )
> 
> On 6/27/07, Maximilian Weißböck 
> <[EMAIL PROTECTED]> wrote:
> >
> > We just upgraded to Tapestry 4.1.2 but have some ognl problems.
> > So far we found two expressions that do no longer work:
> >
> > "ognl:components.productSaleTable.tableRow.totalPriceInCent / 100.0"
> >
> > It throws this error: Caused by: compile error: ) is missing
> >
> > The second one is
> >
> > "ognl:ordersPerShopLoop.index % 2 == 0"
> >
> > and it throws this error: Caused by: compile error: invalid 
> types for 
> > ==
> >
> > Has the syntax of ognl canged in 2.7, and if yes, where can 
> I find the 
> > doc?
> >
> > Thanks, Max
> >
> > ---
> >
> > Maximilian Weißböck
> > Sphinx IT Consulting GmbH
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> Jesse Kuhnert
> Tapestry/Dojo team member/developer
> 
> Open source based consulting work centered around 
> dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
> 

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