Re: t 5.3.1 tree

2012-01-01 Thread Chris Collins
I think your right.  Looks like.  
On Jan 1, 2012, at 10:13 AM, Josh Canfield wrote:

> I'm guessing that the LI sits on top of the UL when rendered. The tree
> images use transparency and if you don't set the background color of the LI
> then the background is also transparent and the UL image bleeds through.
> Now you have the two backgrounds merged together.
> On Dec 31, 2011 1:34 PM, "Chris Collins"  wrote:
> 
>> Perhaps someone that understands css could help explain the problem I am
>> seeing with the tree control.  I am trying to use it with a non white
>> background.  The last element of a branch has a background of white (from
>> the class t-last found in tree.css).  Tracing the css the LI.t-last defines
>> the background to be white.  If you turn that off in the browser (through
>> firefox inspection) the wrong image appears for the tree structure, I guess
>> thats why the white was applied.  You end up seeing the  tree-vpipe.png
>> image so you end up seeing a T shape rather than an L (if that makes sense).
>> 
>> I actually filed a bug on this but was wondering if someone could explain
>> why the image of "DIV.t-tree-container UL" seems to be shown even though
>> "IV.t-tree-container LI.t-last " image should override it.
>> 
>> I am able to reproduce this on firefox and safari.
>> 
>> 
>> DIV.t-tree-container LI.t-last {
>>   background-color: white;
>>   background-image: url("tree-branchend.png");
>> }
>> 
>> DIV.t-tree-container LI {
>>   background-image: url("tree-branch.png");
>>   background-repeat: no-repeat;
>>   line-height: 1.5;
>>   margin: 0;
>>   padding: 0 0 0 16px;
>> }
>> 
>> seems to have white because:
>> 
>> DIV.t-tree-container UL {
>>   background-image: url("tree-vpipe.png");
>>   background-repeat: repeat-y;
>>   list-style-type: none;
>>   margin: 0 0 0 12px;
>>   padding: 0;
>> }
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



t 5.3.1 tree

2011-12-31 Thread Chris Collins
Perhaps someone that understands css could help explain the problem I am seeing 
with the tree control.  I am trying to use it with a non white background.  The 
last element of a branch has a background of white (from the class t-last found 
in tree.css).  Tracing the css the LI.t-last defines the background to be 
white.  If you turn that off in the browser (through firefox inspection) the 
wrong image appears for the tree structure, I guess thats why the white was 
applied.  You end up seeing the  tree-vpipe.png image so you end up seeing a T 
shape rather than an L (if that makes sense).

I actually filed a bug on this but was wondering if someone could explain why 
the image of "DIV.t-tree-container UL" seems to be shown even though 
"IV.t-tree-container LI.t-last " image should override it.

I am able to reproduce this on firefox and safari. 


DIV.t-tree-container LI.t-last {
background-color: white;
background-image: url("tree-branchend.png");
}

DIV.t-tree-container LI {
background-image: url("tree-branch.png");
background-repeat: no-repeat;
line-height: 1.5;
margin: 0;
padding: 0 0 0 16px;
}

seems to have white because:

DIV.t-tree-container UL {
background-image: url("tree-vpipe.png");
background-repeat: repeat-y;
list-style-type: none;
margin: 0 0 0 12px;
padding: 0;
}


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: CSS -> a:active

2011-12-29 Thread Chris Mylonas
Thanks Bob - I didn't think there was anything to do in Tapestry, just wanted 
to confirm.

HomeLiveCallsByHourByDayByWeekByCLI

I was trying to get the same nav bar happening as this template: 
http://livedemo00.template-help.com/drupal_35527/
Got everything but the a:active going :(
I'll give it a crack again over the next couple of days.


Have a good weekend / new years folks!!
Chris


On 30/12/2011, at 4:11 AM, Bob Harner wrote:

> I'm pretty sure this is a pure HTML/CSS issue (not Tapestry-specific).
> Also, you didn't post your HTML, or whether your horizontal menu is
> updated upon selection via custom javascript, ajax refresh, or whole
> page refresh.
> 
> Regardless, I don't believe the "active" pseudo-class is what you want
> here. It's effect is undone when the menu is redrawn.
> 
>http://www.w3schools.com/cssref/tryit.asp?filename=trycss_sel_active
> 
> Instead, what I generally do is have the server side set a certain CSS
> class name on the selected menu item (e.g. )
> and then I use something like #horizontal-menu li.selected-item a {
> . } to specify a distinct style.
> 
> Hope this helps...
> 
> On Thu, Dec 29, 2011 at 7:01 AM, Chris Mylonas  wrote:
>> To my fellow Tapestry aficionados,
>> 
>> (Sorry if it made it the first time - i got a message not delivered back 
>> from my mail server (gmail))
>> 
>> I've been plugging away with a mock up but made a bigger effort with the CSS 
>> than normal because it's been a while.  I have a little niggle though..
>> The a:hover works on the horizontal menu I have but not the a:active (They 
>> share the same rule below)
>> 
>> The horizontal-menu looks like this
>> [ FIRST | MIDDLE | MIDDLE | MIDDLE | MIDDLE | MIDDLE | LAST ]
>> 
>> The mouse over (hover rule) works all along it however the active page 
>> doesn't keep the highlighted menu item.
>> 
>> Is there some special tapestry magic required to make the active page work 
>> in the nav bar?
>> 
>> Cheers
>> Chris
>> 
>> #horizontal-menu li a:hover, #horizontal-menu li a:active {
>>background: url( images/bg-li-main.gif ) repeat-x scroll center top
>>transparent;
>>width: 160px;
>>height: 46px;
>>overflow: inherit;
>>color: #FF;
>>text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
>> }
>> 
>> #horizontal-menu .last a:hover {
>>background: url( images/bg-li-last.png ) no-repeat scroll 0 0
>>transparent;
>> }
>> 
>> #horizontal-menu .first a:hover {
>>background: url( images/bg-li-first.png ) no-repeat scroll 0 0
>>transparent;
>> }
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 



CSS -> a:active

2011-12-29 Thread Chris Mylonas
To my fellow Tapestry aficionados,

(Sorry if it made it the first time - i got a message not delivered back from 
my mail server (gmail))

I've been plugging away with a mock up but made a bigger effort with the CSS 
than normal because it's been a while.  I have a little niggle though..
The a:hover works on the horizontal menu I have but not the a:active (They 
share the same rule below)

The horizontal-menu looks like this
[ FIRST | MIDDLE | MIDDLE | MIDDLE | MIDDLE | MIDDLE | LAST ]

The mouse over (hover rule) works all along it however the active page doesn't 
keep the highlighted menu item.

Is there some special tapestry magic required to make the active page work in 
the nav bar?

Cheers
Chris

#horizontal-menu li a:hover, #horizontal-menu li a:active {
background: url( images/bg-li-main.gif ) repeat-x scroll center top
transparent;
width: 160px;
height: 46px;
overflow: inherit;
color: #FF;
text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.8);
}

#horizontal-menu .last a:hover {
background: url( images/bg-li-last.png ) no-repeat scroll 0 0
transparent;
}

#horizontal-menu .first a:hover {
background: url( images/bg-li-first.png ) no-repeat scroll 0 0
transparent;
}
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5.3.1 a simple security

2011-12-28 Thread Chris Poulsen
Hi,

I'd prefer a filter based solution based on something like spring
security or apache shiro for a requirement like the one you mention.
They are usually really easy to setup for the basic case and can be
configured to handle something more complex later on, if necessary.

A separate filter based solution keeps the security concerns separate
from your pages - so you can concentrate on getting the pages to work
and then apply the security in another pass.

-- 
Chris

On Thu, Dec 29, 2011 at 4:08 AM, angelochen  wrote:
> hi,
>
> right, that's what I was looking for. however, lprimak pointed me to that
> tynamo's security package, think might be time now to look at a more
> complete security package for future projects, applying that to a current,
> small project might be a good practice. Thanks,
>
> Angelo
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/T5-3-1-a-simple-security-tp5106576p5106671.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: paypal

2011-12-22 Thread Chris Mylonas
Beauty!  Thanks for the tips Kalle


On 22/12/2011, at 6:18 PM, Kalle Korhonen wrote:

> On Wed, Dec 21, 2011 at 8:05 PM, Chris Mylonas  wrote:
>> after taking most of this year off from deving i'm looking at a project for 
>> early next year.
>> i'm looking at porting an application that uses PHP stuff (drupal.org + 
>> ubercart.org) to tapestry5 early next year.
>> the paypal integration is new to me in java, does a library exist already 
>> that just requires the keys put into a file?
> 
> There's more than one way to skin the Paypal cat. I wouldn't use an
> implementation that just "requires the keys put into a file". There
> are lots and lots of different workflows with Paypal depending on what
> you need. If there was a module available, I'd carefully look into how
> extensible and customizable it was.
> 
>> also, apart from session stuff, are there any gotchas that i need to be wary 
>> of for a tapestry web app <---> paypal site?
> 
> No. For my use case, progressive display worked great (there are
> several steps to process a payment via Paypal). For server-to-server
> communication, I used the SOAP api with CXF client & wsdl2java.
> 
> Kalle
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



paypal

2011-12-21 Thread Chris Mylonas
hi tapestry users,

after taking most of this year off from deving i'm looking at a project for 
early next year.

i'm looking at porting an application that uses PHP stuff (drupal.org + 
ubercart.org) to tapestry5 early next year.
the paypal integration is new to me in java, does a library exist already that 
just requires the keys put into a file?

also, apart from session stuff, are there any gotchas that i need to be wary of 
for a tapestry web app <---> paypal site?

thanks for any help

cheers
chris
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: template refresh in development

2011-12-17 Thread Chris Collins
that was the trick (coupled with a cmd-9) that makes it work in idea.  I will 
try out the jetty:run thing in a bit.  Could we put some notes on the t5 
website to help here? Not sure where the best place to put it would be.

Best

C
On Dec 17, 2011, at 9:53 AM, Josh Canfield wrote:

> I seem to recall with Intellij that you also have to add ?*.tml to the
> resource patterns copied after doing a compile. You access it through
> the compiler settings.
> 
> On Wed, Dec 14, 2011 at 12:24 PM, Howard Lewis Ship  wrote:
>> IntelliJ requires that you rebuild (Cmd-F9) after making a change for
>> it to be visible.  I use the built-in Jetty support.
>> 
>> When using mvn jetty:run, the problem is that the directories that the
>> Jetty instance see contains copies of the files from your workspace;
>> changing them and rebuilding does not copy them to that directory, so
>> you don't see the changes. Don't use Maven.
>> 
>> On Wed, Dec 14, 2011 at 12:16 PM, Chris Collins  wrote:
>>> I tried a few ways.  I have tried editing tml files both from vi and from 
>>> intellij.
>>> 
>>> I have also run the archetype demo from mvn jetty:run (so I was not even 
>>> running through an intellij debug session).
>>> 
>>> I even put a little logic in a page to test if I was in production mode or 
>>> not (I was not).
>>> 
>>> So basically I tried my own app and then I went back to basics and tried 
>>> the demo app that you can create via mvn archetype
>>> 
>>> 
>>> C
>>> On Dec 14, 2011, at 12:13 PM, Howard Lewis Ship wrote:
>>> 
>>>> On Wed, Dec 14, 2011 at 12:05 PM, Chris Collins  wrote:
>>>>> Never got any takers on this.  Any tips from any of the wise elders?
>>>>> 
>>>>> Also what is the functionally equiv of Blackbird since it was taken out 
>>>>> of 5.3?
>>>> 
>>>> It should just work.  What IDE are you using?  How are you running the
>>>> application.  Basically, if Tapestry can't see the updated files, it
>>>> can't make them referesh. No configuration should be necessary,
>>>> besides ensuring that the application is running in development mode
>>>> (not production mode).  The Tapestry Quickstart archetype sets this up
>>>> for you.
>>>> 
>>>> In terms of blackbrird ... that's gone, and the replacement is to use
>>>> the native console (if present), and to use floating divs when there
>>>> is no native console.
>>>> 
>>>>> 
>>>>> C
>>>>> On Dec 11, 2011, at 9:47 PM, Chris Collins wrote:
>>>>> 
>>>>>> Ok, another dumb question from Chris.  How do you make template 
>>>>>> refreshes work at least in dev mode?
>>>>>> 
>>>>>> I am specifically setting:
>>>>>> 
>>>>>>configuration.add(SymbolConstants.FILE_CHECK_INTERVAL, "1 s");
>>>>>>configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
>>>>>> 
>>>>>> Perhaps thats my error.
>>>>>> 
>>>>>> I then start my app and fetch a page.
>>>>>> change the content (just a simple spelling change).
>>>>>> Wait a few seconds.
>>>>>> Refresh.
>>>>>> 
>>>>>> No change in the output.
>>>>>> 
>>>>>> I even tried this experiment with the tapestry archetype demo app using 
>>>>>> mvn jetty:run target.
>>>>>> 
>>>>>> 
>>>>>> C
>>>>> 
>>>>> 
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> Howard M. Lewis Ship
>>>> 
>>>> Creator of Apache Tapestry
>>>> 
>>>> The source for Tapestry training, mentoring and support. Contact me to
>>>> learn how I can get you up and productive in Tapestry fast!
>>>> 
>>>> (971) 678-5210
>>>> http://howardlewisship.com
>>>> 
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>> 
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>> 
>> 
>> 
>> --
>> Howard M. Lewis Ship
>> 
>> Creator of Apache Tapestry
>> 
>> The source for Tapestry training, mentoring and support. Contact me to
>> learn how I can get you up and productive in Tapestry fast!
>> 
>> (971) 678-5210
>> http://howardlewisship.com
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: template refresh in development

2011-12-16 Thread Chris Collins
so from idea cmd-9 did nothing for me (neither did the use of the menu option 
of cmd-9.  Again running with parameters for prod mode set to false.

Kalle, could you recommend the magic incarnation for tweaking jetty:run plugin 
to fix the path so that it will look at the resource tree rather than target 
(tried scan target).  My preference is to tweak idea since I don't natively use 
jetty:run as my way of running things but I don't see an obvious way to point 
to my resource tree…is this something I can hack in intellij or should I be 
tweaking a web.xml parameter?

Howard ironically I moved to mvn from a shitty ant build based upon how cool 
tapestry was using mvn….eerrr just as you moved to gradle.  I would be happy to 
move to gradle but since its not free to magically migrate I won't be doing 
that any time soon (perhaps you could do a blog on your experience migrating 
tapestry from mvn to gradle to help poor people like me who are too scared of 
change :-} ).

Best

C
On Dec 14, 2011, at 12:28 PM, Kalle Korhonen wrote:

> On Wed, Dec 14, 2011 at 12:24 PM, Howard Lewis Ship  wrote:
>> IntelliJ requires that you rebuild (Cmd-F9) after making a change for
>> it to be visible.  I use the built-in Jetty support.
>> When using mvn jetty:run, the problem is that the directories that the
>> Jetty instance see contains copies of the files from your workspace;
>> changing them and rebuilding does not copy them to that directory, so
>> you don't see the changes. Don't use Maven.
> 
> It's unrelated to Maven. Whether you use Maven or not, configure your
> build environment so the templates are not copied and Jetty picks up
> the templates from the source directory.
> 
> Kalle
> 
> 
>> On Wed, Dec 14, 2011 at 12:16 PM, Chris Collins  wrote:
>>> I tried a few ways.  I have tried editing tml files both from vi and from 
>>> intellij.
>>> 
>>> I have also run the archetype demo from mvn jetty:run (so I was not even 
>>> running through an intellij debug session).
>>> 
>>> I even put a little logic in a page to test if I was in production mode or 
>>> not (I was not).
>>> 
>>> So basically I tried my own app and then I went back to basics and tried 
>>> the demo app that you can create via mvn archetype
>>> 
>>> 
>>> C
>>> On Dec 14, 2011, at 12:13 PM, Howard Lewis Ship wrote:
>>> 
>>>> On Wed, Dec 14, 2011 at 12:05 PM, Chris Collins  wrote:
>>>>> Never got any takers on this.  Any tips from any of the wise elders?
>>>>> 
>>>>> Also what is the functionally equiv of Blackbird since it was taken out 
>>>>> of 5.3?
>>>> 
>>>> It should just work.  What IDE are you using?  How are you running the
>>>> application.  Basically, if Tapestry can't see the updated files, it
>>>> can't make them referesh. No configuration should be necessary,
>>>> besides ensuring that the application is running in development mode
>>>> (not production mode).  The Tapestry Quickstart archetype sets this up
>>>> for you.
>>>> 
>>>> In terms of blackbrird ... that's gone, and the replacement is to use
>>>> the native console (if present), and to use floating divs when there
>>>> is no native console.
>>>> 
>>>>> 
>>>>> C
>>>>> On Dec 11, 2011, at 9:47 PM, Chris Collins wrote:
>>>>> 
>>>>>> Ok, another dumb question from Chris.  How do you make template 
>>>>>> refreshes work at least in dev mode?
>>>>>> 
>>>>>> I am specifically setting:
>>>>>> 
>>>>>>configuration.add(SymbolConstants.FILE_CHECK_INTERVAL, "1 s");
>>>>>>configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
>>>>>> 
>>>>>> Perhaps thats my error.
>>>>>> 
>>>>>> I then start my app and fetch a page.
>>>>>> change the content (just a simple spelling change).
>>>>>> Wait a few seconds.
>>>>>> Refresh.
>>>>>> 
>>>>>> No change in the output.
>>>>>> 
>>>>>> I even tried this experiment with the tapestry archetype demo app using 
>>>>>> mvn jetty:run target.
>>>>>> 
>>>>>> 
>>>>>> C
>>>>> 
>>>>> 
>>>>> -
>&g

Re: template refresh in development

2011-12-14 Thread Chris Collins
I tried a few ways.  I have tried editing tml files both from vi and from 
intellij. 

I have also run the archetype demo from mvn jetty:run (so I was not even 
running through an intellij debug session).

I even put a little logic in a page to test if I was in production mode or not 
(I was not).

So basically I tried my own app and then I went back to basics and tried the 
demo app that you can create via mvn archetype 


C
On Dec 14, 2011, at 12:13 PM, Howard Lewis Ship wrote:

> On Wed, Dec 14, 2011 at 12:05 PM, Chris Collins  wrote:
>> Never got any takers on this.  Any tips from any of the wise elders?
>> 
>> Also what is the functionally equiv of Blackbird since it was taken out of 
>> 5.3?
> 
> It should just work.  What IDE are you using?  How are you running the
> application.  Basically, if Tapestry can't see the updated files, it
> can't make them referesh. No configuration should be necessary,
> besides ensuring that the application is running in development mode
> (not production mode).  The Tapestry Quickstart archetype sets this up
> for you.
> 
> In terms of blackbrird ... that's gone, and the replacement is to use
> the native console (if present), and to use floating divs when there
> is no native console.
> 
>> 
>> C
>> On Dec 11, 2011, at 9:47 PM, Chris Collins wrote:
>> 
>>> Ok, another dumb question from Chris.  How do you make template refreshes 
>>> work at least in dev mode?
>>> 
>>> I am specifically setting:
>>> 
>>>configuration.add(SymbolConstants.FILE_CHECK_INTERVAL, "1 s");
>>>configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
>>> 
>>> Perhaps thats my error.
>>> 
>>> I then start my app and fetch a page.
>>> change the content (just a simple spelling change).
>>> Wait a few seconds.
>>> Refresh.
>>> 
>>> No change in the output.
>>> 
>>> I even tried this experiment with the tapestry archetype demo app using mvn 
>>> jetty:run target.
>>> 
>>> 
>>> C
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator of Apache Tapestry
> 
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
> 
> (971) 678-5210
> http://howardlewisship.com
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: template refresh in development

2011-12-14 Thread Chris Collins
Never got any takers on this.  Any tips from any of the wise elders?

Also what is the functionally equiv of Blackbird since it was taken out of 5.3?

C
On Dec 11, 2011, at 9:47 PM, Chris Collins wrote:

> Ok, another dumb question from Chris.  How do you make template refreshes 
> work at least in dev mode?
> 
> I am specifically setting:
> 
>configuration.add(SymbolConstants.FILE_CHECK_INTERVAL, "1 s");
>configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
> 
> Perhaps thats my error.
> 
> I then start my app and fetch a page.
> change the content (just a simple spelling change).
> Wait a few seconds.
> Refresh.
> 
> No change in the output.
> 
> I even tried this experiment with the tapestry archetype demo app using mvn 
> jetty:run target.
> 
> 
> C


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



template refresh in development

2011-12-11 Thread Chris Collins
Ok, another dumb question from Chris.  How do you make template refreshes work 
at least in dev mode?

I am specifically setting:

configuration.add(SymbolConstants.FILE_CHECK_INTERVAL, "1 s");
configuration.add(SymbolConstants.PRODUCTION_MODE, "false");

Perhaps thats my error.

I then start my app and fetch a page.
change the content (just a simple spelling change).
Wait a few seconds.
Refresh.

No change in the output.

I even tried this experiment with the tapestry archetype demo app using mvn 
jetty:run target.


C

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Artifacts in T5.3 tree component

2011-12-08 Thread Chris Collins
Got no response so I filed TAP5-1782.  Also there doesn't seem to be a version 
5.3 available in jira.

C
On Dec 7, 2011, at 11:48 AM, Chris Collins wrote:

> I was playing with the tree component and had a background color set in my 
> css as a gradient.  
> 
> When I draw the tree I am seeing an interesting artifact.  The last node 
> within each sub branch has a white background.  I guess its related to the 
> css associated with class t-last defined for that element.  Should I file a 
> bug or is it something I am doing wrong?  
> 
> Defining in my layout.css didn't help: 
> 
> DIV.t-tree-container LI.t-last
> {
>background-color: transparent;
> }
> 
> Actually trying different colors defined in my layout.css didn't work at all. 
>  Playing with the inspector in firefox disabling parts of the css made me 
> realize that perhaps the white is there to cover up part of the vertical bar 
> of the three layout.  Seems that currently this tree only works well with a 
> white background.
> 
> C
> 
> 



Re: smarter css

2011-12-07 Thread Chris Collins
Is prototype a good comparison here?  It seems that both the tools mentions 
here somewhat become an extension to the template engine "server side" part of 
the T5 equation.  

After quickly playing with Tapestry-jquery it wasn't a case of "getting rid of" 
prototype, but adding safely jquery.  I certainly want to use javascript 
libraries that use both prototype and jquery.  I can imagine that one day there 
maybe extensions for tapestry that incorporate not only these competing js 
libraries but potentially leverage competing css macro languages like less and 
sass.  I guess I personally wouldn't care too much if it was one or the other 
but it certainly would be nice if as a component of tapestry you could perhaps 
have them as components that can co-exist in their own namespace.

1 1/2 cents worth.

C
On Dec 7, 2011, at 4:57 PM, Andreas Fink wrote:

> Please do not include this kind of technologies in the core.
> It took us long enough to get rid of prototype.js.
> Sure, it can be overridden but why not just offer it as part of an external 
> CoolKidsJavascriptStack.
> 
> Just my 2c.
> Andi.
> 
> On Dec 8, 2011, at 1:15 , Howard Lewis Ship wrote:
> 
>> Less or SCSS are both promising, but I'd love to see it integrated
>> into tapestry-core so that it could be used for Tapestry's default
>> stylesheet.
>> 
>> On Wed, Dec 7, 2011 at 3:32 PM, Greg Pagendam-Turner
>>  wrote:
>>> Hey Howard what about less?
>>> 
>>> 
>>> On 08/12/11 04:49, Howard Lewis Ship wrote:
>>>> 
>>>> One thing we need to do is support SASS (http://sass-lang.com/) so
>>>> that we can code concise&  configurable SASS stylesheets and let
>>>> 
>>>> Tapestry expand them into ugly, redundant CSS for the client web
>>>> browser.
>>>> 
>>>> On Tue, Dec 6, 2011 at 6:59 PM, Chris Collins  wrote:
>>>>> 
>>>>> Makes sense.  Working in Java for too long has made me soft.  I need to
>>>>> read some c code to repent for my sins ;-}
>>>>> 
>>>>> Thanks Bob.
>>>>> 
>>>>> C
>>>>> On Dec 6, 2011, at 6:41 PM, Bob Harner wrote:
>>>>> 
>>>>>> Rather than having separate IE-only style sheets, a technique I prefer
>>>>>> is to use IE conditional comments to add an additional div around the
>>>>>> body in my layout.tml, like this:
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Once that's done, then it becomes trivially easy to add all sorts of
>>>>>> IE-specific CSS rules in your app's main (or only) style sheet file:
>>>>>> 
>>>>>> DIV.menu {
>>>>>>   /* CSS rules for most browsers go here */
>>>>>> }
>>>>>> DIV.ie-old DIV.menu {
>>>>>>   /* some IE-specific rules go here */
>>>>>> }
>>>>>> 
>>>>>> Hope this helps...
>>>>>> 
>>>>>> On Tue, Dec 6, 2011 at 12:10 PM, Chris Collins  wrote:
>>>>>>> 
>>>>>>> Thanks Peter, makes total sense.  I am so happy that css3 helped
>>>>>>> standardize cross browser support :-}
>>>>>>> 
>>>>>>> So I probably would want to detect a non HTML5 browser such as earlier
>>>>>>> IE's with something that would throw in to the css another technique 
>>>>>>> such as
>>>>>>> using a gradient filled image file (in this example)?  I don't think I 
>>>>>>> would
>>>>>>> want to throw in the technique of last resort because in the gradient 
>>>>>>> image
>>>>>>> case it would compete with the html5 technique right? For the 
>>>>>>> conditional
>>>>>>> method there is a technique proposed in:
>>>>>>> 
>>>>>>> http://tapestry.apache.org/css.html
>>>>>>> 
>>>>>>> Of course I am actually not literally talking about gradient fills I am
>>>>>>> talking about the general new vs old vs cross browser css challenge.
>>>>>>> 
>>>>>>> This client side commenting conditional logic seems to be only for IE.
>>>>>>> Would that be correct? I am guessing from a browser laggard pers

Artifacts in T5.3 tree component

2011-12-07 Thread Chris Collins
I was playing with the tree component and had a background color set in my css 
as a gradient.  

When I draw the tree I am seeing an interesting artifact.  The last node within 
each sub branch has a white background.  I guess its related to the css 
associated with class t-last defined for that element.  Should I file a bug or 
is it something I am doing wrong?  

Defining in my layout.css didn't help: 

DIV.t-tree-container LI.t-last
{
background-color: transparent;
}

Actually trying different colors defined in my layout.css didn't work at all.  
Playing with the inspector in firefox disabling parts of the css made me 
realize that perhaps the white is there to cover up part of the vertical bar of 
the three layout.  Seems that currently this tree only works well with a white 
background.

C



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: smarter css

2011-12-06 Thread Chris Collins
Makes sense.  Working in Java for too long has made me soft.  I need to read 
some c code to repent for my sins ;-}

Thanks Bob.

C
On Dec 6, 2011, at 6:41 PM, Bob Harner wrote:

> Rather than having separate IE-only style sheets, a technique I prefer
> is to use IE conditional comments to add an additional div around the
> body in my layout.tml, like this:
> 
> 
> 
> 
> 
> 
> 
> Once that's done, then it becomes trivially easy to add all sorts of
> IE-specific CSS rules in your app's main (or only) style sheet file:
> 
> DIV.menu {
>/* CSS rules for most browsers go here */
> }
> DIV.ie-old DIV.menu {
>/* some IE-specific rules go here */
> }
> 
> Hope this helps...
> 
> On Tue, Dec 6, 2011 at 12:10 PM, Chris Collins  wrote:
>> Thanks Peter, makes total sense.  I am so happy that css3 helped standardize 
>> cross browser support :-}
>> 
>> So I probably would want to detect a non HTML5 browser such as earlier IE's 
>> with something that would throw in to the css another technique such as 
>> using a gradient filled image file (in this example)?  I don't think I would 
>> want to throw in the technique of last resort because in the gradient image 
>> case it would compete with the html5 technique right? For the conditional 
>> method there is a technique proposed in:
>> 
>> http://tapestry.apache.org/css.html
>> 
>> Of course I am actually not literally talking about gradient fills I am 
>> talking about the general new vs old vs cross browser css challenge.
>> 
>> This client side commenting conditional logic seems to be only for IE.  
>> Would that be correct? I am guessing from a browser laggard perspective the 
>> only older browsers people would care about would be IE in general?
>> 
>> Sorry for all the novice questions, by day I normally do non ui data 
>> crunching like engineering :-}
>> 
>> Best
>> 
>> C
>> 
>> 
>> 
>> 
>> On Dec 5, 2011, at 11:23 PM, Peter Stavrinides wrote:
>> 
>>> Hi Chris,
>>> 
>>> 
>>>> So when it comes to css3 is it really so ugly?
>>> If you really want an answer to that, unfortunately yes... and no its not 
>>> just gradients.
>>> 
>>> 
>>>> So say I was trying to add browser specific css to my layout component 
>>>> what would people suggest as the best strategy?
>>> Browser detection is pretty awful, as its a moving target and not perfectly 
>>> accurate, but granted in some cases a necessary evil... avoid it if you 
>>> can. Its not uncommon to simply specify all the styles for the various 
>>> browsers because those that are not understood will simply be ignored... be 
>>> sure though that they are not understood or you might encounter a nasty 
>>> surprise or two. In your example there should be no need for detection.
>>> 
>>> 
>>> Cheers,
>>> Peter
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> - Original Message -
>>> 
>>> From: "Chris Collins" 
>>> To: "Tapestry users" 
>>> Sent: Tuesday, 6 December, 2011 7:48:57 AM
>>> Subject: smarter css
>>> 
>>> So when it comes to css3 is it really so ugly? Ok perhaps its just things 
>>> like gradients:
>>> 
>>> http://ie.microsoft.com/testdrive/graphics/cssgradientbackgroundmaker/default.html
>>> 
>>> So in the microsoft example above for getting a gradient background you 
>>> have to use different css properties per browser. So say I was trying to 
>>> add browser specific css to my layout component what would people suggest 
>>> as the best strategy?
>>> 
>>> Random thoughts:
>>> 
>>> - You can't tml-ify css, if you could then you could condition parts of it 
>>> by browser right?
>>> - Would you create a series of browser specific css assets then build 
>>> inject them directly into the layout page?
>>> 
>>> Clearly I don't have a clue :-}
>>> 
>>> again sorry for dumb questions.
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: community page at tapestry.apache.org

2011-12-06 Thread Chris Collins
I agree that finder would probably be what I am wishing for.

I don't personally have anything to recommend I just was noticing 
inconsistencies within the website (for instance tapestry-testify on 
http://tapestry.apache.org/unit-testing-pages-or-components.html but not on the 
community page).  Also I have seen a lot of fleeting comments on the mailing 
list that seem to get lost where either someone is announcing a module/plugin 
or make reference to it as something a user could look at to solve an issue or 
to see how something is done.  Equally some of the stuff on the community 
website seems to be really old and crusty.

As for what is ready to be mentioned there yet or not, there could be a section 
for "brewing" I guess tapestry-finder will support that?  

I look forward to tapestry-finder.

Cheers

C
On Dec 5, 2011, at 2:14 PM, Chris Collins wrote:

> I have a couple of questions about the community page:
> 
> http://tapestry.apache.org/community.html
> 
> - Who is responsible for putting a comment about a contribution on this page? 
>   I know its not exhaustive as it says it at the top of the page :-}   Is it 
> the author of the contrib or can anyone elect to have something listed there? 
>  For instance there is the tapestry-finder project.
> 
> - What is the chance that we can track the versions of tapestry these are 
> known to support?  Many of these don't support 5.3 (yet), then there are some 
> that seem to be completely abandoned.
> 
> Best
> 
> C
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Anyone knows some Tapestry based open source platforms? Like CMS? Forum or Community site?

2011-12-06 Thread Chris Collins
There are a lot of CMS systems out there that are open source.  Peoples 
definition of CMS is extremely broad.  Some would consider a simple entity 
representing a document backed by a db as a CMS, others may say that is not.  
For comparison take a look at something like:

http://jackrabbit.apache.org/

This doesn't have a tapestry integration as far as I know but it does have some 
clean api's to access it such as webdav.

C
On Dec 6, 2011, at 12:24 PM, Lenny Primak wrote:

> Is this open source?  I'd like to take a look.
> Thanks!
> 
> On Dec 6, 2011, at 3:14 PM, Thiago H. de Paula Figueiredo wrote:
> 
>> On Tue, 06 Dec 2011 16:07:37 -0200, Lenny Primak  
>> wrote:
>> 
>>> I second that question.  I would like to get a CMS going with my current 
>>> Tapestry project.
>>> Is there anything that just plugs in and easily integrates?
>> 
>> I don't know if there's something ready to use out there, but I've done 
>> something like that for a personal project (www.cristilenesalomao.com.br and 
>> pronutricionsita.com.br use it) and the CMS implementation was just a form 
>> using FCKEditor, some entity classes, some tables and some Tapestry pages. 
>> :) I've also implemented a forum. Again, some entity classes, some tables 
>> and some Tapestry pages. :)
>> 
>> -- 
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
>> instructor
>> Owner, Ars Machina Tecnologia da Informação Ltda.
>> http://www.arsmachina.com.br
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: smarter css

2011-12-06 Thread Chris Collins
Thanks Peter, makes total sense.  I am so happy that css3 helped standardize 
cross browser support :-}

So I probably would want to detect a non HTML5 browser such as earlier IE's 
with something that would throw in to the css another technique such as using a 
gradient filled image file (in this example)?  I don't think I would want to 
throw in the technique of last resort because in the gradient image case it 
would compete with the html5 technique right? For the conditional method there 
is a technique proposed in:

http://tapestry.apache.org/css.html

Of course I am actually not literally talking about gradient fills I am talking 
about the general new vs old vs cross browser css challenge.

This client side commenting conditional logic seems to be only for IE.  Would 
that be correct? I am guessing from a browser laggard perspective the only 
older browsers people would care about would be IE in general?

Sorry for all the novice questions, by day I normally do non ui data crunching 
like engineering :-}

Best

C




On Dec 5, 2011, at 11:23 PM, Peter Stavrinides wrote:

> Hi Chris, 
> 
> 
>> So when it comes to css3 is it really so ugly? 
> If you really want an answer to that, unfortunately yes... and no its not 
> just gradients. 
> 
> 
>> So say I was trying to add browser specific css to my layout component what 
>> would people suggest as the best strategy? 
> Browser detection is pretty awful, as its a moving target and not perfectly 
> accurate, but granted in some cases a necessary evil... avoid it if you can. 
> Its not uncommon to simply specify all the styles for the various browsers 
> because those that are not understood will simply be ignored... be sure 
> though that they are not understood or you might encounter a nasty surprise 
> or two. In your example there should be no need for detection. 
> 
> 
> Cheers, 
> Peter 
> 
> 
> 
> 
> 
> 
> 
> - Original Message -
> 
> From: "Chris Collins"  
> To: "Tapestry users"  
> Sent: Tuesday, 6 December, 2011 7:48:57 AM 
> Subject: smarter css 
> 
> So when it comes to css3 is it really so ugly? Ok perhaps its just things 
> like gradients: 
> 
> http://ie.microsoft.com/testdrive/graphics/cssgradientbackgroundmaker/default.html
>  
> 
> So in the microsoft example above for getting a gradient background you have 
> to use different css properties per browser. So say I was trying to add 
> browser specific css to my layout component what would people suggest as the 
> best strategy? 
> 
> Random thoughts: 
> 
> - You can't tml-ify css, if you could then you could condition parts of it by 
> browser right? 
> - Would you create a series of browser specific css assets then build inject 
> them directly into the layout page? 
> 
> Clearly I don't have a clue :-} 
> 
> again sorry for dumb questions. 
> 
> - 
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org 
> For additional commands, e-mail: users-h...@tapestry.apache.org 
> 
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



smarter css

2011-12-05 Thread Chris Collins
So when it comes to css3 is it really so ugly?  Ok perhaps its just things like 
gradients:

http://ie.microsoft.com/testdrive/graphics/cssgradientbackgroundmaker/default.html

So in the microsoft example above for getting a gradient background you have to 
use different css properties per browser.  So say I was trying to add browser 
specific css to my layout component what would people suggest as the best 
strategy?

Random thoughts:

- You can't tml-ify css, if you could then you could condition parts of it  by 
browser right?
- Would you create a series of browser specific css assets then build inject 
them directly into the layout page?

Clearly I don't have a clue :-}

again sorry for dumb questions.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Prototype and jQuery question

2011-12-05 Thread Chris Collins
Thats kinda interesting.  Yes that worked.  What makes it interesting is that I 
tried a completely stripped down test with mvn tapestry archetype.  Just adding 
the dependencies described on the website and that worked. 

Thanks guys, I should of really tried this in the first place.

C
On Dec 5, 2011, at 2:43 PM, Tony Nelson wrote:

> Try adding this to your pom.xml
> 
>
>org.apache.tapestry
>tapestry-upload
>${tapestry-release-version}
>
> 
> 
> 
> On Dec 5, 2011, at 5:26 PM, Chris Collins wrote:
> 
>> So when I actually include tapestry-jquery things blow up when the servlet 
>> container is initialized (I use an embedded jetty).  This is with Tapestry 
>> 5.3 and using the mvn dependency described on the tapestry-jquery website.  
>> Any ideas what I did wrong?
>> 
>> java.lang.NoClassDefFoundError: 
>> org/apache/tapestry5/upload/services/UploadedFile
>>  at java.lang.Class.getDeclaredConstructors0(Native Method)
>>  at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
>>  at java.lang.Class.getConstructors(Class.java:1459)
>>  at 
>> org.apache.tapestry5.ioc.internal.util.InternalUtils.findAutobuildConstructor(InternalUtils.java:623)
>>  at 
>> org.apache.tapestry5.ioc.internal.ServiceBinderImpl.createStandardConstructorBasedObjectCreatorSource(ServiceBinderImpl.java:143)
>>  at 
>> org.apache.tapestry5.ioc.internal.ServiceBinderImpl.createObjectCreatorSourceFromImplementationClass(ServiceBinderImpl.java:128)
>>  at 
>> org.apache.tapestry5.ioc.internal.ServiceBinderImpl.flush(ServiceBinderImpl.java:95)
>>  at 
>> org.apache.tapestry5.ioc.internal.ServiceBinderImpl.finish(ServiceBinderImpl.java:83)
>>  at 
>> org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.bind(DefaultModuleDefImpl.java:539)
>>  at 
>> org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.(DefaultModuleDefImpl.java:123)
>>  at 
>> org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:131)
>>  at 
>> org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:159)
>>  at 
>> org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
>>  at 
>> org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
>>  at 
>> org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
>>  at 
>> org.apache.tapestry5.internal.TapestryAppInitializer.(TapestryAppInitializer.java:124)
>>  at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103)
>>  at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
>>  at 
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>>  at 
>> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
>>  at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
>>  at 
>> org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
>>  at 
>> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
>>  at 
>> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
>>  at 
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>>  at 
>> org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
>>  at 
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>>  at 
>> org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
>>  at org.mortbay.jetty.Server.doStart(Server.java:224)
>>  at 
>> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
>> 
>> On Dec 2, 2011, at 1:48 PM, François Facon wrote:
>> 
>>> Hi Chris,
>>> 
>>> Tapestry Ensure Backwards Compatibility on server side and also on client 
>>> side.
>>> As mention by Thiago, you can use both prototype an jQuery with Tapestry.
>>> in Tapestry-jquery we use jQuery plugin structure to make sure $ is safe.
>>> 
>>> see 
>>> https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/assets/mixins/button/button.js
>>> for example with agnostic structure introduce in 5.3.
>>> 
>>> When we have to use both jQuery an Prototype on our projects we set
>>> configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");
>>> jQuery is then used only inside jQuery Plugin.
>>> 
>>> Fr

Re: Prototype and jQuery question

2011-12-05 Thread Chris Collins
So when I actually include tapestry-jquery things blow up when the servlet 
container is initialized (I use an embedded jetty).  This is with Tapestry 5.3 
and using the mvn dependency described on the tapestry-jquery website.  Any 
ideas what I did wrong?

java.lang.NoClassDefFoundError: 
org/apache/tapestry5/upload/services/UploadedFile
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructors(Class.java:1459)
at 
org.apache.tapestry5.ioc.internal.util.InternalUtils.findAutobuildConstructor(InternalUtils.java:623)
at 
org.apache.tapestry5.ioc.internal.ServiceBinderImpl.createStandardConstructorBasedObjectCreatorSource(ServiceBinderImpl.java:143)
at 
org.apache.tapestry5.ioc.internal.ServiceBinderImpl.createObjectCreatorSourceFromImplementationClass(ServiceBinderImpl.java:128)
at 
org.apache.tapestry5.ioc.internal.ServiceBinderImpl.flush(ServiceBinderImpl.java:95)
at 
org.apache.tapestry5.ioc.internal.ServiceBinderImpl.finish(ServiceBinderImpl.java:83)
at 
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.bind(DefaultModuleDefImpl.java:539)
at 
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.(DefaultModuleDefImpl.java:123)
at 
org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:131)
at 
org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:159)
at 
org.apache.tapestry5.ioc.IOCUtilities.addModulesInList(IOCUtilities.java:137)
at 
org.apache.tapestry5.ioc.IOCUtilities.addModulesInManifest(IOCUtilities.java:107)
at 
org.apache.tapestry5.ioc.IOCUtilities.addDefaultModules(IOCUtilities.java:77)
at 
org.apache.tapestry5.internal.TapestryAppInitializer.(TapestryAppInitializer.java:124)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)

On Dec 2, 2011, at 1:48 PM, François Facon wrote:

> Hi Chris,
> 
> Tapestry Ensure Backwards Compatibility on server side and also on client 
> side.
> As mention by Thiago, you can use both prototype an jQuery with Tapestry.
> in Tapestry-jquery we use jQuery plugin structure to make sure $ is safe.
> 
> see 
> https://github.com/got5/tapestry5-jquery/blob/master/src/main/resources/org/got5/tapestry5/jquery/assets/mixins/button/button.js
> for example with agnostic structure introduce in 5.3.
> 
> When we have to use both jQuery an Prototype on our projects we set
> configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, "false");
> jQuery is then used only inside jQuery Plugin.
> 
> François
> 
> 
> 2011/12/2 Thiago H. de Paula Figueiredo :
>> On Fri, 02 Dec 2011 18:52:49 -0200, Chris Collins  wrote:
>> 
>>> jquery and prototype living together in perfect harmony
>>> ==
>>> I am working on a project where I am looking at a number of open source
>>> javascript libraries.  Some depend on jQuery and some depend on prototype. I
>>> apologize for my ignorance here but it seems the fundamental issue is one of
>>> namespace primarily around "$".  I know you can run jQuery in compatible
>>> mode but wouldn't this mean that any js library I used that depended on
>>> jQuery would need to be hacked up carefully to substitute all $() with
>>> jQuery(…)?
>> 
>> 
>> In theory, all jQuery plugins should *not* use $() and use $jQuery instead:
>> http://docs.jquery.com/Plugins/Authoring.
>> 
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
>> instructor
>> Owner, Ars Machina Tecnologia da Inf

community page at tapestry.apache.org

2011-12-05 Thread Chris Collins
I have a couple of questions about the community page:

http://tapestry.apache.org/community.html

- Who is responsible for putting a comment about a contribution on this page?   
I know its not exhaustive as it says it at the top of the page :-}   Is it the 
author of the contrib or can anyone elect to have something listed there?  For 
instance there is the tapestry-finder project.

- What is the chance that we can track the versions of tapestry these are known 
to support?  Many of these don't support 5.3 (yet), then there are some that 
seem to be completely abandoned.

Best

C



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: a trouble problem

2011-12-05 Thread Chris Poulsen
It will not work as he's running out of PermGen, the -Xmx switch controls
heap size.

The switch to use is: -XX:MaxPermSize= to allow the VM to allocate
more PermGen.

Eg. -XX:MaxPermSize=400m

HTH.

-- 
Chris


On Mon, Dec 5, 2011 at 6:27 AM, angelochen wrote:

> try this:
> JAVA_OPTS='-Xms256m -Xmx1024m'
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/a-trouble-problem-tp5047877p5047892.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Prototype and jQuery question

2011-12-02 Thread Chris Collins
Thanks Francois and Thiago.  Now I will go and play.  

Best

C
On Dec 2, 2011, at 1:02 PM, Thiago H. de Paula Figueiredo wrote:

> On Fri, 02 Dec 2011 18:52:49 -0200, Chris Collins  wrote:
> 
>> jquery and prototype living together in perfect harmony
>> ==
>> I am working on a project where I am looking at a number of open source 
>> javascript libraries.  Some depend on jQuery and some depend on prototype. I 
>> apologize for my ignorance here but it seems the fundamental issue is one of 
>> namespace primarily around "$".  I know you can run jQuery in compatible 
>> mode but wouldn't this mean that any js library I used that depended on 
>> jQuery would need to be hacked up carefully to substitute all $() with 
>> jQuery(…)?
> 
> In theory, all jQuery plugins should *not* use $() and use $jQuery instead: 
> http://docs.jquery.com/Plugins/Authoring.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Prototype and jQuery question

2011-12-02 Thread Chris Collins
Sorry if this is not completely a Tapestry question.

tapestry-jquery
===
How have people found transitioning to tapestry-jquery?  Does it completely 
replace prototype with jQuery and still maintain all the goodness of the 
existing tapestry base.  Or put another way if I had an existing application 
written with T5 and now I incorporated tapestry-jquery are there things that 
are going to stop working?

jquery and prototype living together in perfect harmony
==
I am working on a project where I am looking at a number of open source 
javascript libraries.  Some depend on jQuery and some depend on prototype. I 
apologize for my ignorance here but it seems the fundamental issue is one of 
namespace primarily around "$".  I know you can run jQuery in compatible mode 
but wouldn't this mean that any js library I used that depended on jQuery would 
need to be hacked up carefully to substitute all $() with jQuery(…)?  How do 
people normally manage this?  Do you just get religious and say "we are a 
jQuery shop" or "we are a prototype shop"?

Best

C
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Moving to T5.3 / Problem with textfield and translate ...

2011-11-27 Thread Chris Poulsen
It sounds like you are using the "disabled" attribute instead of the
"readonly" attribute - but it is hard to tell without seeing the code.

Some random google result on the difference between the two:
http://www.htmlcodetutorial.com/forms/_INPUT_DISABLED.html

-- 
Chris

On Sun, Nov 27, 2011 at 2:54 PM, Gunnar Eketrapp
wrote:

> Hi!
>
> Now I also noticed that my contact form does not work with 5.3.
>
> It is a really simple page with a form containing an email textfield, a
> title textfield plus a message textarea.
>
> When a user is logged in I disable editing of the email textfield but still
> uses the value when the mail is sent.
>
> With 5.3 I get no email value back ...
>
> Have I missed something completely with 5.3 and forms !?
>
> Thank in advance,
> Gunnar Eketrapp
>
>
> 2011/11/27 Gunnar Eketrapp 
>
> > Hi!
> >
> > This morning i decided to step up to 5.3.
> >
> > I noticed that 5.3 is stricter and some of my pages did not work due to
> > the fact that
> > there where event methods with no corresponding template component. So I
> > had to
> > do some cleanup but that I like ! I was also one of the few that had used
> > @PageDetached :-)
> >
> > Now I encountered another problem that at the first sight could not be
> > seen among the breaking
> > changes listing in http://tapestry.apache.org/release-notes-53.html
> >
> > A textfield that is using a none standard type raises an exception.
> >
> > Caused by: org.apache.tapestry5.ioc.internal.util.TapestryException:
> > Failure reading parameter 'translate' of component
> > economy/EditTransaction:date: java.lang.NullPointerException
> >  at
> >
> org.apache.tapestry5.internal.transform.ParameterWorker$3$1.readFromBinding(ParameterWorker.java:259)
> > ~[tapestry-core-5.3.jar:na]
> >  at
> >
> org.apache.tapestry5.internal.transform.ParameterWorker$3$1.get(ParameterWorker.java:372)
> > ~[tapestry-core-5.3.jar:na]
> >  at
> >
> org.apache.tapestry5.corelib.base.AbstractTextField.getfieldvalue_translate(AbstractTextField.java)
> > ~[tapestry-core-5.3.jar:na]
> >  at
> >
> org.apache.tapestry5.corelib.base.AbstractTextField.begin(AbstractTextField.java:159)
> > ~[tapestry-core-5.3.jar:na]
> >  at
> >
> org.apache.tapestry5.corelib.base.AbstractTextField.beginRender(AbstractTextField.java)
> > ~[tapestry-core-5.3.jar:na]
> >  at
> >
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$BeginRenderPhase.invokeComponent(ComponentPageElementImpl.java:202)
> > ~[tapestry-core-5.3.jar:na]
> >  at
> >
> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:143)
> > ~[tapestry-core-5.3.jar:na]
> >  ... 82 common frames omitted
> > Caused by: java.lang.NullPointerException: null
> >  at
> > java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
> > ~[na:1.6.0_22]
> >  at
> >
> org.apache.tapestry5.ioc.util.AbstractMessages.getFormatter(AbstractMessages.java:67)
> > ~[tapestry-ioc-5.3.jar:na]
> >  at $Messages_531628bb891f.getFormatter(Unknown Source) ~[na:na]
> >  at $Messages_531628bb899c.getFormatter(Unknown Source) ~[na:na]
> >  at
> >
> org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.findFormatter(FieldTranslatorSourceImpl.java:129)
> > ~[tapestry-core-5.3.jar:na]
> >  at
> >
> org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createTranslator(FieldTranslatorSourceImpl.java:93)
> > ~[tapestry-core-5.3.jar:na]
> >  at
> >
> org.apache.tapestry5.internal.services.FieldTranslatorSourceImpl.createDefaultTranslator(FieldTranslatorSourceImpl.java:74)
> > ~[tapestry-core-5.3.jar:na]
> >
> >
> > To get my user types to function in textfield's I have added the
> following
> > in my module config class which worked in 5.2
> >
> > public static void
> > contributeTranslatorSource(MappedConfiguration, Translator>
> > configuration) {
> > configuration.add(EmailAddress.class, new EmailTranslator());
> > configuration.add(Money.class, new MoneyTranslator());
> > configuration.add(Percentage.class, new PercentageTranslator());
> > configuration.add(UTDate.class, new UTDateTranslator());
> > }
> >
> > Thanks in advance!!!
> > Gunnar Eketrapp
> > (Note: Stockholm in november is as made for hacking ...)
> >
>
>
>
> --
> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> Allévägen 2A, 132 42 Saltsjö-Boo
>


Re: Tapestry grid not working with JPA.

2011-11-23 Thread Chris Mylonas
hello back!


try 



that's usually the source of crazy persistence errors with glassfish 
(eclipselink.weaving)

HTH,
Chris



On 23/11/2011, at 8:02 PM, saurabh.jain wrote:

> Hello,
> 
> 
> 
> While I am trying to display tapestry grid it throws following exception.
> 
> 
> 
> Render queue error in SetupRender[Displayperson:grid]: Failure reading
> parameter 'source' of component Displayperson:grid: Failed to create
> EntityManagerFactory for persistence unit 'JPATESTDB'
> 
> 
> 
> My persistence.xml looks like as 
> 
> 
> 
> 
> 
> http://java.sun.com/xml/ns/persistence";
> 
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> 
>xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> persistence_2_0.xsd
> <http://java.sun.com/xml/ns/persistence%20persistence_2_0.xsd> "
> 
>version="2.0">
> 
>
> 
>false
> 
>
> 
> value="oracle.jdbc.driver.OracleDriver"/>
> 
> value="jdbc:oracle:thin:@172.20.1.115:5584:PLTDEV"/>
> 
>
> 
>
> 
>
> 
>
> 
> 
> 
> 
> 
> My tml file.
> 
> 
> 
>  
>  xmlns:t="http://tapestry.apache.org/schema/tapestry_5_3.xsd";>
> 
> 
> 
>Person List
> 
> 
> 
>
> 
> 
> 
>
> 
> 
> 
>
> 
>
> 
>
> 
> value="New Person"/>
> 
>
> 
>
> 
>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> My corresponding component class.
> 
> 
> 
> package com.rage.tutorial.pages;
> 
> 
> 
> import java.util.List;
> 
> 
> 
> import org.apache.tapestry5.annotations.InjectPage;
> 
> 
> 
> import com.rage.tutorial.entities.Person;
> 
> import javax.persistence.EntityManager;
> 
> import javax.persistence.PersistenceContext;
> 
> 
> 
> /**
> 
> * Start page of application tutorial1.
> 
> */
> 
> public class Displayperson
> 
> {
> 
> 
> 
>@PersistenceContext(unitName = "JPATESTDB")
> 
>private EntityManager entityManager;
> 
> 
> 
>@InjectPage
> 
>private Createperson createperson;
> 
> 
> 
>public List getPersons()
> 
>{
> 
>return entityManager.createQuery("from
> Person", Person.class).getResultList();
> 
>}
> 
> 
> 
>Object onSuccessFromDisplayperson()
> 
>{
> 
>return createperson;
> 
>}
> 
> }
> 
> 
> 
> So please help.
> 
> 
> 
> Thanks & Regards,
> 
> 
> 
> Saurabh Jain
> 
> 
> This message and any attachments are solely for the intended recipient and
> may contain confidential or privileged information. If you are not the
> intended recipient, any disclosure, copying, use, or distribution of the
> information included in this message and any attachments is prohibited. If
> you have received this communication in error, please notify us by reply
> e-mail and immediately and permanently delete this message and any
> attachments. Thank you
> 



Re: Gradle o Gradle!

2011-11-11 Thread Chris Mylonas
In glassfish?


On 12/11/2011, at 4:26 AM, Gunnar Eketrapp wrote:

> I'll answer this me myself.
> 
> The problem was solved by adding the entity classes to persistence.xml
> 
> I don't know why it works wiht Maven without having them there.
> 
> 
> 2011/11/11 Gunnar Eketrapp 
> 
>> Inspired by HLS condolences to us that are still using Maven I tried
>> Gradle out yesterday.
>> 
>> And  gosh that seem's like a big leap forward. Awesome product and I was
>> almost there in less then an hour!
>> 
>> One small step in the other direction was that the scanning of my entity
>> beans totally disappeared.
>> 
>> I have filed a question in the Gradle forum ...
>> 
>> 
>> http://forums.gradle.org/gradle/topics/context_component_scan_stopped_working_after_move_to_gradle
>> 
>> Has anyone in this forum encountered something alike !?
>> 
>> Thanks in advance and excuse me for asking Gradle related quest in this
>> forum.
>> 
>> /Gunnar
>> 
> 
> 
> 
> -- 
> [Hem: 08-715 59 57, Mobil: 070-991 86 42]
> Allévägen 2A, 132 42 Saltsjö-Boo


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: lesscss

2011-11-10 Thread Chris Collins
Yeh I noticed that thread but looked like unfinished business with comments 
that 5.3 would be able to help.  Seemed like lesscss would of been a great 
addition in the tapestry tool belt. 

C


On Nov 10, 2011, at 5:54 PM, Steve Eynon wrote:

> Non myself but I found these threads on Nabble:
> 
> Compiled CSS
> http://tapestry.1045711.n5.nabble.com/Compiled-CSS-td4872738.html
> 
> GZip Filter getting in the way of my LessCSS Filter
> http://tapestry.1045711.n5.nabble.com/GZip-Filter-getting-in-the-way-of-my-LessCSS-Filter-td4491550.html
> 
> Steve.
> 
> On 11 November 2011 08:33, Chris Collins  wrote:
>> Anyone have any experiences using lesscss with tapestry?
>> 
>> I am not using it but came highly recommended.
>> 
>> Best
>> 
>> C
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



lesscss

2011-11-10 Thread Chris Collins
Anyone have any experiences using lesscss with tapestry?

I am not using it but came highly recommended.

Best

C

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
RemoteHost=0:0:0:0:0:0:0:1%0

C
On Nov 1, 2011, at 10:19 PM, Steve Eynon wrote:

> Cool!
> 
> But I'm also interested in your remote host ('cos I use an embedded
> Jetty to!). Could you try adding this to one of your pages (not
> checked for syntax):
> 
> @Inject
> private Request request;
> 
> void setupRender() {
>System.err.println("RemoteHost="+request.getRemoteHost());
> }
> 
> Cheers,
> 
> Steve.
> 
> 
> 
> On 2 November 2011 13:09, Chris Collins  wrote:
>> Well I take that request and up the ante.  Rather than doing what you asked 
>> (cause I didn't know how todo it :-}).  I changed my request from 
>> http://localhost/. to http://127.0.0.1/ and it worked
>> 
>> 
>> On Nov 1, 2011, at 10:01 PM, Steve Eynon wrote:
>> 
>>> Having said that
>>> 
>>> http://svn.apache.org/viewvc?view=revision&revision=1183162
>>> and
>>> http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/security/LocalhostOnly.java?view=markup&pathrev=1183162
>>> 
>>> gives
>>> 
>>> public class LocalhostOnly implements WhitelistAnalyzer {
>>>public boolean isRequestOnWhitelist(Request request) {
>>>String remoteHost = request.getRemoteHost();
>>>return remoteHost.equals("localhost") || 
>>> remoteHost.equals("127.0.0.1");
>>>}
>>> }
>>> 
>>> Could you print out your "request.remoteHost" from one your pages and
>>> check it's either "localhost" or "127.0.0.1"?
>>> 
>>> Steve.
>>> 
>>> On 2 November 2011 12:57, Steve Eynon  
>>> wrote:
>>>> (Oh and I didn't mean to leave my last response hanging - only I'm not
>>>> in a position to look at T5.3 code right now, so unfortunately I can't
>>>> give much more than a few pointers...)
>>>> 
>>>> Steve.
>>>> 
>>>> On 2 November 2011 12:52, Chris Collins  wrote:
>>>>> Just to add to this (which I am sure points to the fact I am doing 
>>>>> something really stupid) I want to give a bit of a background and a 
>>>>> validation (or an attempt at a validation).
>>>>> 
>>>>> My process embeds jetty and adds the tapestry filter through web.xml (but 
>>>>> I am not using a standard tomcat or jetty "runner").
>>>>> 
>>>>> I have a few of my own T5 pages that render fine though they are pretty 
>>>>> basic (components and pages).
>>>>> 
>>>>> just to take my code out of the equation I took recent project Barry 
>>>>> Books posted for twitter-bootstrap earlier this week.  I added to his 
>>>>> little project's web.xml:
>>>>> 
>>>>>   
>>>>>tapestry.production-mode
>>>>>false
>>>>>
>>>>> 
>>>>> Then I tried the demo and this particular path:
>>>>> 
>>>>> http://localhost:8080/tapestry-bootstrap/servicestatus
>>>>> 
>>>>> not much exciting happened.
>>>>> 
>>>>> Thanks for your help and sorry this is probably described in large bold 
>>>>> text on some main page under "read this first" :-}
>>>>> 
>>>>> Best
>>>>> 
>>>>> C
>>>>> 
>>>>> On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:
>>>>> 
>>>>>> PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
>>>>>> PropertyDisplayBlocks: 
>>>>>> org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
>>>>>> PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
>>>>>> ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
>>>>>> 
>>>>>> package-info: org.apache.tapestry5.corelib.pages.package-info
>>>>>> 
>>>>>> 
>>>>>> dont know if all these are supposed to be addressable in a meaningful 
>>>>>> way.
>>>>>> package-info blows a classformaterror
>>>>>> propertyeditblocks gives me ""
>>>>>> propertydisplayblocks gives me a runtimeexception because a file coudlnt 
>>>>>> be found during render time
>>>&g

Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
Well I take that request and up the ante.  Rather than doing what you asked 
(cause I didn't know how todo it :-}).  I changed my request from 
http://localhost/. to http://127.0.0.1/ and it worked


On Nov 1, 2011, at 10:01 PM, Steve Eynon wrote:

> Having said that
> 
> http://svn.apache.org/viewvc?view=revision&revision=1183162
> and
> http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/main/java/org/apache/tapestry5/internal/services/security/LocalhostOnly.java?view=markup&pathrev=1183162
> 
> gives
> 
> public class LocalhostOnly implements WhitelistAnalyzer {
>public boolean isRequestOnWhitelist(Request request) {
>String remoteHost = request.getRemoteHost();
>return remoteHost.equals("localhost") || 
> remoteHost.equals("127.0.0.1");
>}
> }
> 
> Could you print out your "request.remoteHost" from one your pages and
> check it's either "localhost" or "127.0.0.1"?
> 
> Steve.
> 
> On 2 November 2011 12:57, Steve Eynon  wrote:
>> (Oh and I didn't mean to leave my last response hanging - only I'm not
>> in a position to look at T5.3 code right now, so unfortunately I can't
>> give much more than a few pointers...)
>> 
>> Steve.
>> 
>> On 2 November 2011 12:52, Chris Collins  wrote:
>>> Just to add to this (which I am sure points to the fact I am doing 
>>> something really stupid) I want to give a bit of a background and a 
>>> validation (or an attempt at a validation).
>>> 
>>> My process embeds jetty and adds the tapestry filter through web.xml (but I 
>>> am not using a standard tomcat or jetty "runner").
>>> 
>>> I have a few of my own T5 pages that render fine though they are pretty 
>>> basic (components and pages).
>>> 
>>> just to take my code out of the equation I took recent project Barry Books 
>>> posted for twitter-bootstrap earlier this week.  I added to his little 
>>> project's web.xml:
>>> 
>>>   
>>>tapestry.production-mode
>>>false
>>>
>>> 
>>> Then I tried the demo and this particular path:
>>> 
>>> http://localhost:8080/tapestry-bootstrap/servicestatus
>>> 
>>> not much exciting happened.
>>> 
>>> Thanks for your help and sorry this is probably described in large bold 
>>> text on some main page under "read this first" :-}
>>> 
>>> Best
>>> 
>>> C
>>> 
>>> On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:
>>> 
>>>> PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
>>>> PropertyDisplayBlocks: 
>>>> org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
>>>> PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
>>>> ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
>>>> 
>>>> package-info: org.apache.tapestry5.corelib.pages.package-info
>>>> 
>>>> 
>>>> dont know if all these are supposed to be addressable in a meaningful way.
>>>> package-info blows a classformaterror
>>>> propertyeditblocks gives me ""
>>>> propertydisplayblocks gives me a runtimeexception because a file coudlnt 
>>>> be found during render time
>>>> pagecatalog gives me a 404
>>>> servicestatus gives me a 404
>>>> 
>>>> 
>>>> 
>>>> 
>>>> On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:
>>>> 
>>>>> When you start up T5 it lists all the available page class files with
>>>>> their corresponding URLs, e.g:
>>>>> 
>>>>> ComponentClassResolver - Available pages:
>>>>> ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
>>>>> PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
>>>>> 
>>>>> Do you see the pages listed?
>>>>> 
>>>>> Steve.
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> On 2 November 2011 11:21, Chris Collins  wrote:
>>>>>> I dont think that is the case.  I had already verified that exception 
>>>>>> reporting was working.
>>>>>> 
>>>>>> I programmatically set tapestry.production-mode=false in one of my 
>>>>>> AppModule's (I didnt do it via the web.xml):
>>>>>> 
>&g

Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
Not a problem.  But I am sure its my fault :-}

C
On Nov 1, 2011, at 9:53 PM, Steve Eynon wrote:

> package-info is just JavaDocs (interesting that it makes it through as
> a bonified page class!)
> propertyeditblocks & propertydisplayblocks aren't meant to be hit
> directly, they're a holding ground for blocks that are displayed by
> the Grid and BeanEditor
> 
> pagecatalog & servicestatus should be rendered.
> 
> As you can hit the other pages I believe the problem is something to
> do with this:
> 
> Tapestry should include a @WhitelistOnly page annotation
> https://issues.apache.org/jira/browse/TAP5-1696
> 
> Desc:
> PageCatalog and ServiceStatus should be protected with this page.
> 
> As the above only recently got shipped with T5.3.
> 
> Steve.
> 
> 
> On 2 November 2011 12:24, Chris Collins  wrote:
>> package-info
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
Just to add to this (which I am sure points to the fact I am doing something 
really stupid) I want to give a bit of a background and a validation (or an 
attempt at a validation).

My process embeds jetty and adds the tapestry filter through web.xml (but I am 
not using a standard tomcat or jetty "runner").

I have a few of my own T5 pages that render fine though they are pretty basic 
(components and pages).

just to take my code out of the equation I took recent project Barry Books 
posted for twitter-bootstrap earlier this week.  I added to his little 
project's web.xml:

   
tapestry.production-mode
false


Then I tried the demo and this particular path:

http://localhost:8080/tapestry-bootstrap/servicestatus

not much exciting happened. 

Thanks for your help and sorry this is probably described in large bold text on 
some main page under "read this first" :-}

Best

C

On Nov 1, 2011, at 9:24 PM, Chris Collins wrote:

> PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
> PropertyDisplayBlocks: 
> org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
> PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
> ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
> 
> package-info: org.apache.tapestry5.corelib.pages.package-info
> 
> 
> dont know if all these are supposed to be addressable in a meaningful way.  
> package-info blows a classformaterror
> propertyeditblocks gives me ""
> propertydisplayblocks gives me a runtimeexception because a file coudlnt be 
> found during render time
> pagecatalog gives me a 404
> servicestatus gives me a 404
> 
> 
> 
> 
> On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:
> 
>> When you start up T5 it lists all the available page class files with
>> their corresponding URLs, e.g:
>> 
>> ComponentClassResolver - Available pages:
>> ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
>> PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
>> 
>> Do you see the pages listed?
>> 
>> Steve.
>> 
>> 
>> 
>> 
>> On 2 November 2011 11:21, Chris Collins  wrote:
>>> I dont think that is the case.  I had already verified that exception 
>>> reporting was working.
>>> 
>>> I programmatically set tapestry.production-mode=false in one of my 
>>> AppModule's (I didnt do it via the web.xml):
>>> 
>>> 
>>> configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
>>> .
>>> 
>>> 
>>> I have a page I test to see if this property is set:
>>> 
>>>   @Inject
>>>   @Symbol(SymbolConstants.PRODUCTION_MODE)
>>>   @Property(write = false)
>>>   private boolean productionMode;
>>> 
>>> .
>>> 
>>> 
>>>   Production Mode
>>>   
>>>   Not production mode still
>>>   
>>>   
>>> 
>>> 
>>> it says it is in production mode or not (it says not production mode).
>>> 
>>> Further I have in a test page something that forces the exception reporting:
>>> 
>>> void onActionFromFail ()
>>>   {
>>>   throw new RuntimeException("Failure inside action event handler.");
>>>   }
>>> 
>>> It blows a lovely exception report page (I love it).
>>> 
>>> C
>>> 
>>> On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:
>>> 
>>>> The pages are "invisible" when not in development mode, so the most
>>>> likely case is that you are not actually running in development mode.
>>>> 
>>>> On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
>>>>  wrote:
>>>>> I am a novice at T5 so apologize for what is surely a stupid question.
>>>>> 
>>>>> I am trying out 5.3-rc-1.
>>>>> 
>>>>> I am trying to get either the pagecatalog or servicestatus pages such:
>>>>> 
>>>>> http://localhost:/
>>>> 
>>>> By default, the pages are only accessible from localhost.  This should
>>>> work ... but possibly something else is going on. What is your dev
>>>> environment (OS, etc.)?
>>>> 
>>>>> 
>>>>> I can render any of my pages but neither of these pages seem to be found. 
>>>>>  I am running in developer mode.  Any clues on my stupidity?
>>>> 
>>>> I'd phrase it as "Any idea what I'm missing."  There

Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
PropertyDisplayBlocks: org.apache.tapestry5.corelib.pages.PropertyDisplayBlocks
PropertyEditBlocks: org.apache.tapestry5.corelib.pages.PropertyEditBlocks
ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus

package-info: org.apache.tapestry5.corelib.pages.package-info


dont know if all these are supposed to be addressable in a meaningful way.  
package-info blows a classformaterror
propertyeditblocks gives me ""
propertydisplayblocks gives me a runtimeexception because a file coudlnt be 
found during render time
pagecatalog gives me a 404
servicestatus gives me a 404




On Nov 1, 2011, at 8:57 PM, Steve Eynon wrote:

> When you start up T5 it lists all the available page class files with
> their corresponding URLs, e.g:
> 
> ComponentClassResolver - Available pages:
> ServiceStatus: org.apache.tapestry5.corelib.pages.ServiceStatus
> PageCatalog: org.apache.tapestry5.corelib.pages.PageCatalog
> 
> Do you see the pages listed?
> 
> Steve.
> 
> 
> 
> 
> On 2 November 2011 11:21, Chris Collins  wrote:
>> I dont think that is the case.  I had already verified that exception 
>> reporting was working.
>> 
>> I programmatically set tapestry.production-mode=false in one of my 
>> AppModule's (I didnt do it via the web.xml):
>> 
>> 
>> configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
>> .
>> 
>> 
>> I have a page I test to see if this property is set:
>> 
>>@Inject
>>@Symbol(SymbolConstants.PRODUCTION_MODE)
>>@Property(write = false)
>>private boolean productionMode;
>> 
>> .
>> 
>> 
>>Production Mode
>>
>>Not production mode still
>>
>>
>> 
>> 
>> it says it is in production mode or not (it says not production mode).
>> 
>> Further I have in a test page something that forces the exception reporting:
>> 
>> void onActionFromFail ()
>>{
>>throw new RuntimeException("Failure inside action event handler.");
>>}
>> 
>> It blows a lovely exception report page (I love it).
>> 
>> C
>> 
>> On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:
>> 
>>> The pages are "invisible" when not in development mode, so the most
>>> likely case is that you are not actually running in development mode.
>>> 
>>> On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
>>>  wrote:
>>>> I am a novice at T5 so apologize for what is surely a stupid question.
>>>> 
>>>> I am trying out 5.3-rc-1.
>>>> 
>>>> I am trying to get either the pagecatalog or servicestatus pages such:
>>>> 
>>>> http://localhost:/
>>> 
>>> By default, the pages are only accessible from localhost.  This should
>>> work ... but possibly something else is going on. What is your dev
>>> environment (OS, etc.)?
>>> 
>>>> 
>>>> I can render any of my pages but neither of these pages seem to be found.  
>>>> I am running in developer mode.  Any clues on my stupidity?
>>> 
>>> I'd phrase it as "Any idea what I'm missing."  There's a lot going on
>>> in Tapestry (almost, too much) , and in all the tiers of client web
>>> browser and HTTP between you and it, so don't jump to the conclusion
>>> that it's you ... or that it's Tapestry.
>>> 
>>>> 
>>>> 
>>>> Best
>>>> 
>>>> C
>>>> -
>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Howard M. Lewis Ship
>>> 
>>> Creator of Apache Tapestry
>>> 
>>> The source for Tapestry training, mentoring and support. Contact me to
>>> learn how I can get you up and productive in Tapestry fast!
>>> 
>>> (971) 678-5210
>>> http://howardlewisship.com
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
I dont think that is the case.  I had already verified that exception reporting 
was working.

I programmatically set tapestry.production-mode=false in one of my AppModule's 
(I didnt do it via the web.xml):


configuration.add(SymbolConstants.PRODUCTION_MODE, "false");
.


I have a page I test to see if this property is set:

@Inject
@Symbol(SymbolConstants.PRODUCTION_MODE)
@Property(write = false)
private boolean productionMode;

.


Production Mode

Not production mode still




it says it is in production mode or not (it says not production mode).

Further I have in a test page something that forces the exception reporting:

void onActionFromFail ()
{
throw new RuntimeException("Failure inside action event handler.");
}

It blows a lovely exception report page (I love it).

C

On Nov 1, 2011, at 4:26 PM, Howard Lewis Ship wrote:

> The pages are "invisible" when not in development mode, so the most
> likely case is that you are not actually running in development mode.
> 
> On Tue, Nov 1, 2011 at 12:29 PM, Chris Collins
>  wrote:
>> I am a novice at T5 so apologize for what is surely a stupid question.
>> 
>> I am trying out 5.3-rc-1.
>> 
>> I am trying to get either the pagecatalog or servicestatus pages such:
>> 
>> http://localhost:/
> 
> By default, the pages are only accessible from localhost.  This should
> work ... but possibly something else is going on. What is your dev
> environment (OS, etc.)?
> 
>> 
>> I can render any of my pages but neither of these pages seem to be found.  I 
>> am running in developer mode.  Any clues on my stupidity?
> 
> I'd phrase it as "Any idea what I'm missing."  There's a lot going on
> in Tapestry (almost, too much) , and in all the tiers of client web
> browser and HTTP between you and it, so don't jump to the conclusion
> that it's you ... or that it's Tapestry.
> 
>> 
>> 
>> Best
>> 
>> C
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator of Apache Tapestry
> 
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
> 
> (971) 678-5210
> http://howardlewisship.com
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



pagecatalog and servicestatus

2011-11-01 Thread Chris Collins
I am a novice at T5 so apologize for what is surely a stupid question.

I am trying out 5.3-rc-1.

I am trying to get either the pagecatalog or servicestatus pages such:

http://localhost:/

I can render any of my pages but neither of these pages seem to be found.  I am 
running in developer mode.  Any clues on my stupidity?


Best

C
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry 5.3 Validation removal of validateForm

2011-10-27 Thread Chris Poulsen
My guess would be "onValidateFrom" replaces
"validateForm" ?

Simply using onValidate is probably not specific enough as it may get
triggered by bubbling events.

-- 
Chris

On Thu, Oct 27, 2011 at 12:49 PM,  wrote:

> Hi All,
>
> The 5.3 release notes provide the following info:
> "validateForm" event triggered by Form component (replaced with "validate"
> event)
>
> How validate replaces validateForm is not clear to me and I could not find
> any more info?
>
> These two methods are certainly not interchangeable, i.e.: validateForm was
> invoked just before OnSucess and once for a form, whereas onValidate may
> potentially be called several times with a different event life-cycle. Is
> there an example of how to re-factor code that was using 'validateForm' to
> use 'Validate', and in such a way as to reproduce the behaviour of
> validateForm? The only other alternative is to have one method per data
> point, which is really not practical for anything scalable.
>
> Kind regards,
> Peter
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: running eclipse in production

2011-10-10 Thread Chris Mylonas
Also in your container you can set it up for debugging - i.e. attach to port 
number X, for debugging with eclipse.
If that's what your intention was as well.

On 11/10/2011, at 6:25 AM, Howard Lewis Ship wrote:

> That would be a very silly idea, and not necessary. If you deploy an
> exploded WAR (with application class files and resources on the file
> system, not inside a WAR file) you can get hot swapping (but you'll
> need to run in development mode in 5.3, which turns off live class
> reloading in production).
> 
> On Mon, Oct 10, 2011 at 12:17 PM, Dmitry Gusev  wrote:
>> Eclipse is not a web container, so you're not running Tapestry in Eclipse
>> anyway.
>> 
>> On Mon, Oct 10, 2011 at 22:42, Bryan Lewis  wrote:
>> 
>>> This might be a silly idea, but I'll ask it anyway...  Would it be bad to
>>> run a Tapestry application inside Eclipse on a production server?  The
>>> objective would be to have full hot-swapping, as I have in my local
>>> development workspace, but maybe it would be bad for memory consumption or
>>> stability.
>>> 
>> 
>> 
>> 
>> --
>> Dmitry Gusev
>> 
>> AnjLab Team
>> http://anjlab.com
>> 
> 
> 
> 
> -- 
> Howard M. Lewis Ship
> 
> Creator of Apache Tapestry
> 
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
> 
> (971) 678-5210
> http://howardlewisship.com
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapesty CDI at compile time ( or sort of )

2011-10-06 Thread Chris Poulsen
Hi,

I think you could have an ioc module for each customer (each customers code
in his own "project") - and then just drop in the right jar and have it
autoload.

-- 
Chris


On Thu, Oct 6, 2011 at 4:03 PM, Jose Luis Sanchez <
joseluis.sanc...@m-centric.com> wrote:

>
>
> Hi guys !
>
> I do need some behaviour in Tapestry already available to me via CDI in a
> non-web Application.
>
> Let me explain myself :
>
> I have a product, made for different customers.
>
> The product is the same, but for some different implementations of common
> services each one has.
>
> For example :
>
>
> com.mycompany.product.service.**customer1.SubscribeService
> com.mycompany.product.service.**customer2.SubscribeService
> com.mycompany.product.service.**customer3.SubscribeService
>
>
> In CDI ( Using weld ), y do use the beans.xml file facility to populate the
> service for the desired customer.
> Then, in the code all i need is invoking the @Inject into a service, and i
> will get the customer X service  at my disposal.
>
> But in Tapestry, i do not know how to implement this.
>
> I believe that dinamically adding a service to  the /public static void
> bind(ServiceBinder binder)/ in the AppModule is not the wright way to
> achieve it.
>
>
> May any of you help me with this ? I do not need any runtime behaviour,
> just compile time.
>
> Thanks everyone, and long life to Tapestry ! ( So to Howard and all the
> maintainers, of course  :) )
>
>
>
> --
> *Jose Luis Sanchez*
> Senior Developer
>
> *E-mail*: joseluis.sanc...@m-centric.com
> *Phone* : +34 91 277 03 16
> mCentric mobilising imagination
>
>
> c/ Jose Echegaray, 8 Building 3
> 28230 Las Rozas (Madrid). SPAIN.
>
> This message may contain confidential information or privileged material,
> and is intended only for the individual(s) named. If you are not in the
> named addressee you should not disseminate, distribute or copy this e-mail.
> Please notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system E-mail
> transmission cannot be guaranteed to be secured or error-free as information
> could be intercepted, corrupted, lost, destroyed, arrive late or incomplete,
> or contain viruses. The sender therefore does not accept liability for any
> errors or omissions in the contents of this message which arise as a result
> of e-mail transmission. If verification is required please request a
> hard-copy version.
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Another approach to dynamic templating (T5.1.0.5)

2011-10-04 Thread Chris Poulsen
Interesting! How does your solution differ from the template skinning
feature of T5.3? (
http://blog.tapestry5.de/index.php/2011/06/24/template-skinning/ )
- Or is it just the same functionality for pre 5.3 ?

-- 
Chris


On Tue, Oct 4, 2011 at 4:45 PM, Caiiiycuk  wrote:

> Hi. Let me explain. Imagine that we have standard tapestry page:
> Templates.java and of course we have template of this page Templates.tml
> and
> it works perfect. But I need to change template of this page by user
> request. More precisely I want to use one java class (Templates.java) with
> many templates files (Template1.tml, Template2.tml, etc). And of course
> EventLinks, ActionLinks, Zones, Componenst should work as usual.
>
> Our team has spent much time to get this work by using tapestry standard
> features. But no luck. I have working solution based on reflection wich
> brakes oop ideology.
> I introduce an interface:
>
> public interface PageLoadService {
>Page loadPage(String defaultPageName, String templateName, Locale
> locale,
> Object coreComponent);
> }
>
> Where defaultPageName is default template (Templates.tml), templateName is
> overriding template (Template1.tml, etc) and coreComponent is instance of
> Page (Template.java instance).
>
> And in Template.onActivate() i use this interface like this:
>
>@Inject
>private PageResponseRenderer renderer;
>
>@Inject
>private PageLoadService pageLoadService;
>
>public void onActivate() {
>if (request.isXHR()) {
>//Ajax
>return;
>}
>
>if (request.getPath().contains(":") ||
> request.getPath().contains(".")) {
>//EVENT, ACTION, ZONE
>return;
>}
>
>if (template == null || template.equals(BASIC_TEMPLATE)) {
>//Default approach
>return;
>}
>
>Page page = pageLoadService.loadPage(
>BASIC_TEMPLATE,
>template,
>Locale.getDefault(),
>this);
>
>try {
>page.attached();
>renderer.renderPageResponse(page);
>page.detached();
>} catch (IOException e) {
>e.printStackTrace();
>}
>}
>
> Let me explain. I'm trying to use default approach (without templating
> Template.tml+Template.java) to handle ajax,zone,event|action links
> requests,
> and PageResponseRenderer to render page in other requests. And it works
> (tested T5.1.05 and T5.2.0, 5.2.6). But tapestry is huge project, and i'm
> not sure if there are hidden problems, what do you think?
>
> ---
> Realization of PageLoadService is really ugly:
>
> package org.apache.tapestry5.internal.pageload;
>
> import java.lang.reflect.Method;
> import java.util.Locale;
>
> import org.apache.tapestry5.internal.parser.ComponentTemplate;
> import org.apache.tapestry5.internal.services.ComponentInstantiatorSource;
> import org.apache.tapestry5.internal.services.Instantiator;
> import org.apache.tapestry5.internal.services.PageLoader;
> import org.apache.tapestry5.internal.services.PersistentFieldManager;
> import org.apache.tapestry5.internal.services.TemplateParser;
> import org.apache.tapestry5.internal.structure.ComponentPageElement;
> import
> org.apache.tapestry5.internal.structure.ComponentPageElementResources;
> import
>
> org.apache.tapestry5.internal.structure.ComponentPageElementResourcesSource;
> import org.apache.tapestry5.internal.structure.Page;
> import org.apache.tapestry5.internal.structure.PageImpl;
> import org.apache.tapestry5.ioc.Resource;
> import org.apache.tapestry5.model.ComponentModel;
> import org.apache.tapestry5.services.ComponentClassResolver;
>
> public class PageLoadServiceT5_1Impl implements PageLoadService {
>
>private final PageLoaderImpl internalPageLoader;
>
>private final ComponentInstantiatorSource
> internalInstantiatorSource;
>private final TemplateParser internalTemplateParser;
>private final ComponentPageElementResourcesSource
> internalResourcesSource;
>private final ComponentClassResolver internalComponentClassResolver;
>private final PersistentFieldManager internalPersistentFieldManager;
>private final Method internalProgramAssembler;
>
>public PageLoadServiceT5_1Impl(PageLoader tapestr

Re: Intellij & jetty

2011-09-30 Thread Chris Poulsen
I always run jetty from a command prompt (mvn jetty:run) and have not
experienced issues with IDEA / jetty /live reloading.

It is just a matter of opening the pom as a project and then we're good to
go (jdk version may need to be adjusted iirc).

-- 
Chris

On Fri, Sep 30, 2011 at 5:13 PM, Taha Hafeez wrote:

> Thanks everybody.
>
> I have been able to sort half the issue. Files are getting updated but
> jetty does not pick them up.
>
> I manually deleted files in classes directory and on command + F10
> everything was copied and compiled but jetty is not picking them up.
>
> Any ideas ?
>
>
> On Fri, Sep 30, 2011 at 7:03 PM, Josh Canfield 
> wrote:
> > Under "Project Settings" | "Artifacts" you'll see your web application
> > artifact. Look for "Build on make" and check the box. this isn't set
> > by default so your compiled changes aren't stored into the file
> > system.
> >
> > There is an issue that I haven't worked around. When you change a
> > class file it seems to replace all of your resource files with the
> > ones in the original deployment. When I'm working on a page I tend to
> > compile the class then flip over and re-compile the page. Running make
> > can also pick up all the changes.
> >
> > Josh
> >
> > On Fri, Sep 30, 2011 at 4:30 AM, Taha Hafeez 
> wrote:
> >> Hi
> >>
> >> I am just trying a new project in Intellij 10( I am new to it) and
> >> these are the steps I use
> >>
> >> 1) gradle cleanIdea idea
> >>
> >> 2) open the project in intellij
> >>
> >> 3) Add tapestry and web facets.
> >>
> >> 4) Run with jetty.
> >>
> >> Everything works fine but no class reloading is happening. I tried a
> >> few things but it did not work. Any clue why ?
> >> --
> >> Regards
> >>
> >> Taha Hafeez Siddiqi (tawus)
> >> http://tawus.wordpress.com
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>
>
>
> --
> Regards
>
> Taha Hafeez Siddiqi (tawus)
> http://tawus.wordpress.com
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Any interest in starting a Tapestry Meetup in the SF-Bay area?

2011-09-27 Thread Chris Collins
That sounds like a great idea (also in sf bay area).

C
On Sep 27, 2011, at 3:23 PM, George Ludwig wrote:

> I searched meetup.com for a Tapestry meetup and didn't find one. I'm
> still a newb at this, yet I find the framework compelling, and am
> devoting a lot of energy to it.
> 
> Is anyone else interested in forming a meetup? I imagine it being the
> usual things: speaker, hacking session, company sponsored pizza, and
> especially networking opportunities.
> 
> I live in San Francisco, but will go anywhere I can get to on public 
> transport.
> 
> -George
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [T5.3] Symbols for Default Component Parameter Values

2011-09-27 Thread Chris Mylonas
I thought this was a bad idea

On 28/09/2011, at 12:49 AM, Steve Eynon wrote:

> To enhance Tapestry, what are people's thoughts about defining default
> component values for some components as Symbols?
> 
> For example, the Grid component has the following:
> 
> @Parameter("25")
> private int rowsPerPage;

until here because it's a template thing and I wouldn't want to recompile my 
stuff just to change/add rowsPerPage.

Then I read your "case study" below and think it's a great idea.  That would be 
a powerful feature to be able to add, especially as displays change and the app 
gets used more and requirements slowly change.

It's a pleasure to feel so n00b :)


> meaning if I wish for a pagination of 50 rows, I have to find all
> instances of the Grid component in my application and manually add a
> "rowsPerPage" parameter.
> 
> But if the parameter was defined as:
> 
> @Parameter("symbol:tapestry.grid.rowsPerPage")
> private int rowsPerPage;
> 
> then all I would need to do is override the symbol contribution and
> voilà, it changes everywhere.
> 
> While converting developers to T5 a common question I'm asked is,
> "That's cool - but how do I now make that change happen everywhere in
> the app?" At the moment all I can do is shrug and say, "Um, it's
> complicated." (*)
> 
> Other specific component defaults I've been asked about are, the
> "update" parameter for Zone et al (because the classic "yellow fade"
> doesn't work for everyone!) and a date format for DateField (I know
> this one is a bit tricky, but the default format for the default
> formatter could be supplied by a symbol).
> 
> To me, this why Symbols exist, for extensible configuration - so, err,
> how about it!? Or have I overlooked / missed something really obvious
> here?
> 
> Regards,
> 
> Steve.
> 
> (*) I know workers and mixins can accomplish the same, but a T5 newbie
> isn't going to appreciate that!
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Validator abilities

2011-09-27 Thread Chris Poulsen
Hi,

I was looking for a similar solution (my example was a "period selection"
with a from- and to date - where a cross field validation had to ensure that
from date was before todate)

I found some usable examples in the 3 "sub-form" examples in jumpstart. I
ended up extending AbstractField for my solution.

HTH
-- 
Chris

On Tue, Sep 27, 2011 at 7:19 PM, cqasker  wrote:

> That makes sense. But is there a way I can wrap this up into a validator
> that
> say takes a fieldid, and then server side, the validator can grab the value
> of the field id (in the same form of course) and compare it to the field
> the
> validator is attached to?
>
> This way I can just plug this to several forms in my app and not have to
> write separate validation code for each form.
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Validator-abilities-tp4845773p4846156.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [T5.3] Symbols for Default Component Parameter Values

2011-09-27 Thread Chris Poulsen
Hi,

I think you can use a message: prefix as well (defining it in the
app.properties) - tough a symbol (or similar) binding for properties will
probably be less confusing.

For date field format the message: binding is a perfect match as you get all
the ordinary resource bundle goodness for free ;)
-- 
Chris

On Tue, Sep 27, 2011 at 4:49 PM, Steve Eynon  wrote:

> To enhance Tapestry, what are people's thoughts about defining default
> component values for some components as Symbols?
>
> For example, the Grid component has the following:
>
> @Parameter("25")
> private int rowsPerPage;
>
> meaning if I wish for a pagination of 50 rows, I have to find all
> instances of the Grid component in my application and manually add a
> "rowsPerPage" parameter.
>
> But if the parameter was defined as:
>
> @Parameter("symbol:tapestry.grid.rowsPerPage")
> private int rowsPerPage;
>
> then all I would need to do is override the symbol contribution and
> voilà, it changes everywhere.
>
> While converting developers to T5 a common question I'm asked is,
> "That's cool - but how do I now make that change happen everywhere in
> the app?" At the moment all I can do is shrug and say, "Um, it's
> complicated." (*)
>
> Other specific component defaults I've been asked about are, the
> "update" parameter for Zone et al (because the classic "yellow fade"
> doesn't work for everyone!) and a date format for DateField (I know
> this one is a bit tricky, but the default format for the default
> formatter could be supplied by a symbol).
>
> To me, this why Symbols exist, for extensible configuration - so, err,
> how about it!? Or have I overlooked / missed something really obvious
> here?
>
> Regards,
>
> Steve.
>
> (*) I know workers and mixins can accomplish the same, but a T5 newbie
> isn't going to appreciate that!
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-25 Thread Chris Mylonas
Thanks Lenny - I'm sure this will come in handy and has given me a few hours 
head start on myself,

Cheers
Chris


On 24/09/2011, at 2:26 AM, Lenny Primak wrote:

> Yes indeed.  The relationships between JPA, tap-JPA, and entities themselves 
> isn't clearly documented.
> It took me a while to figure out what the relationship was.
> 
> tap-jpa and EJB packaging can coexist and must coexist peacefully.
> The key to understanding this is how annotation processing works.
> tapestry-jpa implements annotations via tapestry-ioc, while glassfish does 
> this via JEE annotation processing methods.
> 
> For example, @PersistenceContext and @EntityManager annotations are processed 
> by tapestyr-jpa in tapestry packages only,
> while they are processed by JEE/EJB code in glassfish in @Stateless/@Stateful 
> EJBs only.
> 
> If you put @Stateless session bean, for example inside a tapestry package 
> (xxx.components, for example)
> and declare a @PersistenceContext there, 
> then you will have a clash because both tapestry and glassfish will both try 
> to process the annotation.
> 
> Hoep this helps
> 
> On Sep 23, 2011, at 9:24 AM, Chris Mylonas wrote:
> 
>> This is my lack of having not tested tapestry-jpa at all!!!
>> If tap-jpa reads the same persistence.xml as my ejb-jar  omg `kin rad!!
>> 
>> otherwise - don't worry - this takes it to [OT]   off topic.
>> 
>> i don't understand the j2ee packaging that well - so take my knowledge with 
>> a grain of salt for now re: java packaging and how that works.  i'm into 
>> protocol analysis on network stuff cos I like to connect things together 
>> (like most of us).
>> 
>> i do not understand the relationship betweeen:
>> 1.. persistence.xml in an ejb-jar; and,
>> 2... persistence.xml in tapestry-jpa jar
>> and whether the two can co-exist in the same ear project (i.e. how an entity 
>> manager works in both cases)
>> 
>> which is beyond this mailing lists purpose.
>> 
>> 
>> This is stuff I'll hammer out with some testing in due course :)
>> 
>> 
>> Tapestry enables me to do web stuff "IN JAVA" much easier than mangling bits 
>> of non-UI java database stuff (e.g. EJB) than with php (ie. drupal cos it's 
>> easily hackable in the spaghetti code sense because that's the nature of the 
>> language IMO)
>> 
>> which for me enables me to be a more productive/better progammer  which 
>> I've been waiting for, for years!!!
>> Hope that makes sense, both in my lack of understanding of java stuff - and 
>> where I expect tapestry to take things for me :)
>> 
>> The rate at which stuff happens in this tapestry community is incredible to 
>> say the least, I just hope I can catch up - economically, socially, 
>> engineer-ily, glue-ily, technically etc..
>> 
>> 
>> Cheers
>> Chris
>> 
>> 
>> On 23/09/2011, at 4:22 PM, Lenny Primak wrote:
>> 
>>> I don't understand this last message.
>>> Tapestry-jpa module reads the same persistense.xml file as the JPA in 
>>> glassfish.
>>> The only thing that's different is that glassfish does annotation 
>>> processing inside JEE-annotated classes (session beans)
>>> and the tapestry-jpa module does the same within tapestry-ioc packages.
>>> 
>>> On Sep 23, 2011, at 2:18 AM, Chris Mylonas wrote:
>>> 
>>>> Good to know - my understanding of entity managers is low, so I was 
>>>> thinking the two lots of persistence.xml files would mean 2 entity 
>>>> managers, one for tapestry-jpa and one for EJB, unless tapestry-jpa can 
>>>> get the EJB's persistence.xml through java packaging magic.
>>>> 
>>>> Stuff for me to learn unless someone can give a definitive "this is how it 
>>>> works"
>>>> 
>>>> Have a good weekend,
>>>> Chris
>>>> 
>>>> 
>>>> On 23/09/2011, at 4:14 PM, Lenny Primak wrote:
>>>> 
>>>>> I am using JPA module from 5.3 no problems, not sure about 5.2, but I 
>>>>> don't think that it should be an issue
>>>>> I don't see any issues of mixing JPA module with EJB3 because I  use it 
>>>>> myself
>>>>> On Sep 22, 2011, at 6:12 PM, Chris Mylonas wrote:
>>>>> 
>>>>>> Thanks Lenny
>>>>>> I'm on GF 3.1.1 + tapestry 5.2.5 no JPA module, just using the jumpstart 
>>>>>> stuff from the EJB3 sample.
>>>>>>

Re: Handling components event in the page that includes the component

2011-09-23 Thread Chris Poulsen
Yeah I think that part should be mentioned - its a really neat feature! I'll
dig into it and see if I can get around to whipping up a suggestion for
JIRA.

-- 
Chris

On Fri, Sep 23, 2011 at 6:56 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Fri, 23 Sep 2011 13:11:25 -0300, Chris Poulsen 
> wrote:
>
>  Nice to know you got it working!
>>
>> I'm still interested in the docs mentioning the custom component events.
>> If they are missing, it should definitely be added. (I was expecting to find
>> it on 
>> http://tapestry.apache.org/**component-events.html<http://tapestry.apache.org/component-events.html>
>> )
>>
>
> Yep, that page is missing the event triggering part. Could you file a JIRA
> for that so the committers don't forget it? :)
>
> Basically, @Inject ComponentResources and use the triggerEvent(String
> eventType, Object[] contextValues, ComponentEventCallback callback) method.
> You'll only need to implement a ComponentEventCallback if you want to get
> the return value of the handler method. The return value of triggerEvent()
> says if the event was handled or not. Very simple after you implement your
> first one. :)
>
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>


Re: Handling components event in the page that includes the component

2011-09-23 Thread Chris Poulsen
Nice to know you got it working!

I'm still interested in the docs mentioning the custom component events. If
they are missing, it should definitely be added. (I was expecting to find it
on http://tapestry.apache.org/component-events.html)

-- 
Chris

On Fri, Sep 23, 2011 at 6:02 PM, bhorvat  wrote:

> Yap, that solved all my problems.
>
> Thank you both so much
>
> Cheers
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Handling-components-event-in-the-page-that-includes-the-component-tp4833388p4834135.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Handling components event in the page that includes the component

2011-09-23 Thread Chris Poulsen
Inject ComponentResources and poke around?

-- 
Chris

On Fri, Sep 23, 2011 at 5:45 PM, bhorvat  wrote:

> Perfect. This works. Thank you so much for your assistance.
>
> So I can't access the link's id from the page since it is local to the
> component but I can trigger an event and handle that. Great. :D
>
> Can I ask for one more thing if it is not to much of a trouble.
>
> Is it possible and how do I access the component's id from the inside of a
> component?
>
> Index.tml
>
> 
>
> Popup.java - this is my component
>
>@Parameter(required = true, defaultPrefix = "literal")
>@Property
>private String id;
>
> I pass this id as a parameter. But is it possible to access the components
> id. To avoid something like this
>
>  t:source="sectionsForwardMessage"/>
>
> So what I want is just to pass
>
> 
>
> and then in class Popup.java I access it. But I can't do it like this
>
>  @Parameter(required = true, defaultPrefix = "literal")
>@Property
>private String id;
>
> So any ideas?
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Handling-components-event-in-the-page-that-includes-the-component-tp4833388p4834084.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Handling components event in the page that includes the component

2011-09-23 Thread Chris Poulsen
Wow Thiago, that is pretty cool. I haven't found (/noticed) this in the docs
yet, can you provide a pointer?

-- 
Chris

On Fri, Sep 23, 2011 at 5:27 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Fri, 23 Sep 2011 10:23:50 -0300, Boris Horvat 
> wrote:
>
>  I probably din't explain it very well.
>>
>
> I disagree. :) I guess I haven't explained my suggestion well.
>
>  I have component with two submit links in it. I also have a page that
>> includes those two links. I need to write in that page that includes the
>>
>> components the event handling for those two links but I am not sure how.
>> If I write handler in the Component.java it is handled but if I write it in
>> the Page.java class it is not handled.
>>
>
> This happens because you're specifying the component id in your event
> handler method, which is local to the component or page at which it was
> declared.
>
>
>  Is there a way to push the event from the component up to the page?
>>
>
> Non-render events in components are bubbled to the page unless someone
> handles them in between. Just use event name instead of component id in your
> handler method, as I've suggested before. ;)
>
> 
> 
>
> In your page:
>
> void onEvent1() { ... } or void @OnEvent("event1") anyName() { ... }
>
> void onEvent2() { ... } or void @OnEvent("event2") anyOtherName() { ... }
>
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
>
> --**--**-
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Handling components event in the page that includes the component

2011-09-23 Thread Chris Poulsen
Hi,

I'm still not clear on what you are doing and where - did your mail client
strip out your source code example? ;)

http://tapestry.apache.org/component-events.html should explain how the
handler stuff works.

-- 
Chris

On Fri, Sep 23, 2011 at 3:53 PM, bhorvat  wrote:

> Yea I come to the same conclusion by trying to insert a method
>
> void onSelected{
> }
>
> This method is activated, but I need to activate it with a ID so that I can
> have two methods
>
> void onSelectedFromFirst{
> }
>
> void onSelectedFromSecond{
> }
>
> However this doesn't work. So any ideas how should I call the ID of the
> element inside a component included in the page?
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Handling-components-event-in-the-page-that-includes-the-component-tp4833388p4833597.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Handling components event in the page that includes the component

2011-09-23 Thread Chris Poulsen
Events bubble up in the page hierarchy afaik. So you could try to postfix
your handlers with "From"

something like: onActionFromMyComponentId(...) ?

-- 
Chris

On Fri, Sep 23, 2011 at 3:24 PM, bhorvat  wrote:

> I probably din't explain it very well.
>
> I have component with two submit links in it. I also have a page that
> includes that component those two links. I need to write in that page that
> includes the components the event handling for those two links but I am not
> sure how. If I write handler in the Component.java it is handled but if I
> write it in the Page.java class it is not handled. Is there a way to push
> the event from the component up to the page?
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Handling-components-event-in-the-page-that-includes-the-component-tp4833388p4833462.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-23 Thread Chris Mylonas
This is my lack of having not tested tapestry-jpa at all!!!
If tap-jpa reads the same persistence.xml as my ejb-jar  omg `kin rad!!

otherwise - don't worry - this takes it to [OT]   off topic.

i don't understand the j2ee packaging that well - so take my knowledge with a 
grain of salt for now re: java packaging and how that works.  i'm into protocol 
analysis on network stuff cos I like to connect things together (like most of 
us).

i do not understand the relationship betweeen:
1.. persistence.xml in an ejb-jar; and,
2... persistence.xml in tapestry-jpa jar
and whether the two can co-exist in the same ear project (i.e. how an entity 
manager works in both cases)

which is beyond this mailing lists purpose.


This is stuff I'll hammer out with some testing in due course :)


Tapestry enables me to do web stuff "IN JAVA" much easier than mangling bits of 
non-UI java database stuff (e.g. EJB) than with php (ie. drupal cos it's easily 
hackable in the spaghetti code sense because that's the nature of the language 
IMO)

which for me enables me to be a more productive/better progammer  which 
I've been waiting for, for years!!!
Hope that makes sense, both in my lack of understanding of java stuff - and 
where I expect tapestry to take things for me :)

The rate at which stuff happens in this tapestry community is incredible to say 
the least, I just hope I can catch up - economically, socially, engineer-ily, 
glue-ily, technically etc..


Cheers
Chris


On 23/09/2011, at 4:22 PM, Lenny Primak wrote:

> I don't understand this last message.
> Tapestry-jpa module reads the same persistense.xml file as the JPA in 
> glassfish.
> The only thing that's different is that glassfish does annotation processing 
> inside JEE-annotated classes (session beans)
> and the tapestry-jpa module does the same within tapestry-ioc packages.
> 
> On Sep 23, 2011, at 2:18 AM, Chris Mylonas wrote:
> 
>> Good to know - my understanding of entity managers is low, so I was thinking 
>> the two lots of persistence.xml files would mean 2 entity managers, one for 
>> tapestry-jpa and one for EJB, unless tapestry-jpa can get the EJB's 
>> persistence.xml through java packaging magic.
>> 
>> Stuff for me to learn unless someone can give a definitive "this is how it 
>> works"
>> 
>> Have a good weekend,
>> Chris
>> 
>> 
>> On 23/09/2011, at 4:14 PM, Lenny Primak wrote:
>> 
>>> I am using JPA module from 5.3 no problems, not sure about 5.2, but I don't 
>>> think that it should be an issue
>>> I don't see any issues of mixing JPA module with EJB3 because I  use it 
>>> myself
>>> On Sep 22, 2011, at 6:12 PM, Chris Mylonas wrote:
>>> 
>>>> Thanks Lenny
>>>> I'm on GF 3.1.1 + tapestry 5.2.5 no JPA module, just using the jumpstart 
>>>> stuff from the EJB3 sample.
>>>> 
>>>> 
>>>> Can I mix tapestry-jpa with EJB3 stuff without causing problems for entity 
>>>> manager?  Or would the web stuff be safer to be read-only?
>>>> 
>>>> 
>>>> 
>>>> On 22/09/2011, at 11:55 PM, Lenny Primak wrote:
>>>> 
>>>>> Just to let you know, I am using GF 3.1.1 and tapestry 5.3 beta 5 with 
>>>>> built in JPA module and I have no such issue. 
>>>>> 
>>>>> 
>>>>> 
>>>>> On Sep 22, 2011, at 6:12 AM, Chris Mylonas  wrote:
>>>>> 
>>>>>> OMG!! - That did the trick!!
>>>>>> 
>>>>>> The magic is in persistence.xml
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> Thank you Geoff you champion
>>>>>> 
>>>>>> 
>>>>>> I wonder what it will do to  "performance, caching and change tracking"  
>>>>>> because according to that page, that's what weaving is for.
>>>>>> 
>>>>>> PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND   
>>>>>>  
>>>>>> 7484 root  20   0  827m 372m  13m S 93.3 18.4  38:09.77 java 
>>>>>>
>>>>>> 2258 mysql 15   0  140m  30m 5000 S 34.9  1.5  13:07.30 mysqld   
>>>>>>
>>>>>> 8168 root  15   0 10436 6304 2336 S  0.3  0.3   0:09.03 ssh  
>>>

Re: Deadlock issue in 5.3-beta-5 ?

2011-09-23 Thread Chris Poulsen
There have been some work related to synchronization in more recent betas.
Why are you still on beta-5?

-- 
Chris

2011/9/23 Dávið Klein Sundsskarð 

> Hi,
>
> I am experiencing deadlock issues in Tap 5.3-beta-5. I don't know if it
> only is related to live class reloading, but it happens very often while
> developing.
> The page is making ajax calls to eventhandlers every second and when
> editing and saving a class some of the requests deadlock.
>
> I'm hoping it will go away in production mode. Maybe someone else is
> experiencing the same or am I doing something wrong?
> See stacktraces below.
>
> /David
>
> -- Thread 1 ---
> Name: http-8030-33 - /main.layout.refreshinfopanelinecount.
> State: BLOCKED on
> org.apache.tapestry5.internal.plastic.PlasticClassLoader@2cec33 owned by:
> http-8030-34 - /main.layout.refreshinfopanelinecount
> Total blocked: 78  Total waited: 4
>
> Stack trace:
>  java.lang.Class.forName0(Native Method)
> java.lang.Class.forName(Class.java:247)
>
> org.apache.tapestry5.internal.plastic.PlasticInternalUtils.toClass(PlasticInternalUtils.java:318)
>
> org.apache.tapestry5.internal.services.ComponentClassCacheImpl.lookupClassForType(ComponentClassCacheImpl.java:78)
>
> org.apache.tapestry5.internal.services.ComponentClassCacheImpl.forName(ComponentClassCacheImpl.java:65)
> $ComponentClassCache_c639cd1eb0ed.forName(Unknown Source)
>
> org.apache.tapestry5.internal.services.DefaultInjectionProvider.provideInjection(DefaultInjectionProvider.java:65)
> $InjectionProvider2_c639cd1eb179.provideInjection(Unknown Source)
> $InjectionProvider2_c639cd1eb165.provideInjection(Unknown Source)
>
> org.apache.tapestry5.internal.transform.InjectWorker$2.run(InjectWorker.java:73)
>
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:51)
>
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl$1.invoke(OperationTrackerImpl.java:48)
>
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
>
> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.run(OperationTrackerImpl.java:47)
>
> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.run(PerThreadOperationTracker.java:56)
> org.apache.tapestry5.ioc.internal.RegistryImpl.run(RegistryImpl.java:1077)
>
> org.apache.tapestry5.internal.transform.InjectWorker.transform(InjectWorker.java:67)
> $ComponentClassTransformWorker2_c639cd1eb169.transform(Unknown Source)
> $ComponentClassTransformWorker2_c639cd1eb15f.transform(Unknown Source)
>
> org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl$3.run(ComponentInstantiatorSourceImpl.java:320)
>
> -- Thread 2 ---
> Name: http-8030-34 - /main.layout.refreshinfopanelinecount
> State: BLOCKED on
> org.apache.tapestry5.internal.plastic.PlasticClassLoader@6e4109 owned by:
> http-8030-33 - /main.layout.refreshinfopanelinecount
> Total blocked: 163  Total waited: 5
>
> Stack trace:
>
>  
> org.apache.tapestry5.internal.plastic.PlasticClassLoader.loadClass(PlasticClassLoader.java:31)
> java.lang.ClassLoader.loadClass(ClassLoader.java:295)
>   - locked org.apache.tapestry5.internal.plastic.PlasticClassLoader@2cec33
>
> org.apache.tapestry5.internal.plastic.PlasticClassLoader.loadClass(PlasticClassLoader.java:47)
>   - locked org.apache.tapestry5.internal.plastic.PlasticClassLoader@2cec33
> java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>
> org.apache.tapestry5.internal.plastic.PlasticClassPool.createAnnotationAccess(PlasticClassPool.java:191)
>
> org.apache.tapestry5.internal.plastic.PlasticClassImpl.(PlasticClassImpl.java:191)
>
> org.apache.tapestry5.internal.plastic.PlasticClassPool.createTransformation(PlasticClassPool.java:371)
>
> org.apache.tapestry5.internal.plastic.PlasticClassPool.createTransformation(PlasticClassPool.java:408)
>
> org.apache.tapestry5.plastic.PlasticManager.createProxyTransformation(PlasticManager.java:260)
>
> org.apache.tapestry5.plastic.PlasticManager.createProxy(PlasticManager.java:233)
>
> org.apache.tapestry5.ioc.internal.services.PlasticProxyFactoryImpl.createProxy(PlasticProxyFactoryImpl.java:57)
> $PlasticProxyFactory_c639cd1eb16b.createProxy(Unknown Source)
> $PlasticProxyFactory_c639cd1eb16a.createProxy(Unknown Source)
>
> org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.build(PropertyConduitSourceImpl.java:1372)
>
> org.apache.tapestry5.internal.services.PropertyConduitSourceImpl.create(PropertyConduitSourceImpl.java:1274)
> $PropertyConduitSource_c639cd1eb1be.create(Unknown Source)
>
> org.apache.tapestry5.internal.bindings.PropBindingFactory.newBinding(PropBindingFactory.java:49)
&

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-22 Thread Chris Mylonas
Good to know - my understanding of entity managers is low, so I was thinking 
the two lots of persistence.xml files would mean 2 entity managers, one for 
tapestry-jpa and one for EJB, unless tapestry-jpa can get the EJB's 
persistence.xml through java packaging magic.

Stuff for me to learn unless someone can give a definitive "this is how it 
works"

Have a good weekend,
Chris


On 23/09/2011, at 4:14 PM, Lenny Primak wrote:

> I am using JPA module from 5.3 no problems, not sure about 5.2, but I don't 
> think that it should be an issue
> I don't see any issues of mixing JPA module with EJB3 because I  use it myself
> On Sep 22, 2011, at 6:12 PM, Chris Mylonas wrote:
> 
>> Thanks Lenny
>> I'm on GF 3.1.1 + tapestry 5.2.5 no JPA module, just using the jumpstart 
>> stuff from the EJB3 sample.
>> 
>> 
>> Can I mix tapestry-jpa with EJB3 stuff without causing problems for entity 
>> manager?  Or would the web stuff be safer to be read-only?
>> 
>> 
>> 
>> On 22/09/2011, at 11:55 PM, Lenny Primak wrote:
>> 
>>> Just to let you know, I am using GF 3.1.1 and tapestry 5.3 beta 5 with 
>>> built in JPA module and I have no such issue. 
>>> 
>>> 
>>> 
>>> On Sep 22, 2011, at 6:12 AM, Chris Mylonas  wrote:
>>> 
>>>> OMG!! - That did the trick!!
>>>> 
>>>> The magic is in persistence.xml
>>>> 
>>>> 
>>>> 
>>>> Thank you Geoff you champion
>>>> 
>>>> 
>>>> I wonder what it will do to  "performance, caching and change tracking"  
>>>> because according to that page, that's what weaving is for.
>>>> 
>>>> PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND 
>>>>
>>>> 7484 root  20   0  827m 372m  13m S 93.3 18.4  38:09.77 java   
>>>>  
>>>> 2258 mysql 15   0  140m  30m 5000 S 34.9  1.5  13:07.30 mysqld 
>>>>  
>>>> 8168 root  15   0 10436 6304 2336 S  0.3  0.3   0:09.03 ssh
>>>>  
>>>> 8497 chrismyl  15   0  2416 1084  820 R  0.3  0.1   0:01.69 top
>>>>  
>>>> 1 root  15   0  2160  680  584 S  0.0  0.0   0:00.60 init 
>>>> 
>>>> Load average is at 0.7, but I'm monitoring systems during off-peak time.
>>>> I'll definitely have to check JBoss out against Glassfish for this type of 
>>>> work I think.
>>>> 
>>>> Anyway - I'm off to play with some Grid components :D
>>>> 
>>>> Cheers
>>>> Chris
>>>> 
>>>> 
>>>> On 22/09/2011, at 7:45 PM, Geoff Callender wrote:
>>>> 
>>>>> According to the following thread _persistence_shouldRefreshFetchGroup 
>>>>> was removed in Sep 2009, and a workaround for now might be to partially 
>>>>> disable "weaving".
>>>>> 
>>>>> http://forums.terracotta.org/forums/posts/list/2227.page
>>>>> 
>>>>> On 22/09/2011, at 3:54 PM, Chris Mylonas wrote:
>>>>> 
>>>>>> Hi Lenny & Tapestry Users,
>>>>>> 
>>>>>> Yep I tried exclude in the template.  No such luck.  The thing errors 
>>>>>> out in setupRender - I might do the fetching of the List in 
>>>>>> onActivate (even though it's in the wrong place to put such stuff).
>>>>>> 
>>>>>> I tried a few things, like the other suggestion to use @Inject 
>>>>>> BeanModelSource and also what is on the jumpstart page using
>>>>>> 
>>>>>> myModel = beanModelSource.createDisplayModel(CalledEvent.class, 
>>>>>> componentResources.getMessages()).exclude("_persistence_shouldRefreshFetchGroup");
>>>>>> 
>>>>>> But it still didn't work.   Not exactly sure where the problem is, in 
>>>>>> EclipseLink or somewhere in Tapestry's use of BeanModel -  I'll just use 
>>>>>> a Loop for now whilst I'm still deving.
>>>>>> 
>>>>>> When I

Re: Meap Tapestry 5 book cancelled?

2011-09-22 Thread Chris Mylonas

Congratulations Igor!!  

What a righteous decision!  Good luck with the 2nd half :D



On 23/09/2011, at 9:06 AM, Igor Drobiazko wrote:

> Hi guys,
> 
> Manning Publications canceled the contract due to financial reasons but
> there is no reason to be sad. I'm going to publish the book on my own. Read
> more details here:
> 
> http://blog.tapestry5.de/index.php/2011/09/23/publishing-tapestry-5-in-action-book-on-my-own/
> 
> Stay tuned!
> 
> On Thu, Sep 22, 2011 at 6:04 PM, Chris Collins 
> wrote:
> 
>> Wow that is a bummer, such great progress had been made on it, what
>> happened?
>> 
>> Best
>> 
>> C
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> 
> -- 
> Best regards,
> 
> Igor Drobiazko
> http://tapestry5.de


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-22 Thread Chris Mylonas
Thanks Lenny
I'm on GF 3.1.1 + tapestry 5.2.5 no JPA module, just using the jumpstart stuff 
from the EJB3 sample.


Can I mix tapestry-jpa with EJB3 stuff without causing problems for entity 
manager?  Or would the web stuff be safer to be read-only?



On 22/09/2011, at 11:55 PM, Lenny Primak wrote:

> Just to let you know, I am using GF 3.1.1 and tapestry 5.3 beta 5 with built 
> in JPA module and I have no such issue. 
> 
> 
> 
> On Sep 22, 2011, at 6:12 AM, Chris Mylonas  wrote:
> 
>> OMG!! - That did the trick!!
>> 
>> The magic is in persistence.xml
>> 
>> 
>> 
>> Thank you Geoff you champion
>> 
>> 
>> I wonder what it will do to  "performance, caching and change tracking"  
>> because according to that page, that's what weaving is for.
>> 
>> PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND   
>>  
>> 7484 root  20   0  827m 372m  13m S 93.3 18.4  38:09.77 java 
>>
>> 2258 mysql 15   0  140m  30m 5000 S 34.9  1.5  13:07.30 mysqld   
>>
>> 8168 root  15   0 10436 6304 2336 S  0.3  0.3   0:09.03 ssh  
>>
>> 8497 chrismyl  15   0  2416 1084  820 R  0.3  0.1   0:01.69 top  
>>
>>   1 root  15   0  2160  680  584 S  0.0  0.0   0:00.60 init 
>> 
>> Load average is at 0.7, but I'm monitoring systems during off-peak time.
>> I'll definitely have to check JBoss out against Glassfish for this type of 
>> work I think.
>> 
>> Anyway - I'm off to play with some Grid components :D
>> 
>> Cheers
>> Chris
>> 
>> 
>> On 22/09/2011, at 7:45 PM, Geoff Callender wrote:
>> 
>>> According to the following thread _persistence_shouldRefreshFetchGroup was 
>>> removed in Sep 2009, and a workaround for now might be to partially disable 
>>> "weaving".
>>> 
>>>   http://forums.terracotta.org/forums/posts/list/2227.page
>>> 
>>> On 22/09/2011, at 3:54 PM, Chris Mylonas wrote:
>>> 
>>>> Hi Lenny & Tapestry Users,
>>>> 
>>>> Yep I tried exclude in the template.  No such luck.  The thing errors out 
>>>> in setupRender - I might do the fetching of the List in 
>>>> onActivate (even though it's in the wrong place to put such stuff).
>>>> 
>>>> I tried a few things, like the other suggestion to use @Inject 
>>>> BeanModelSource and also what is on the jumpstart page using
>>>> 
>>>> myModel = beanModelSource.createDisplayModel(CalledEvent.class, 
>>>> componentResources.getMessages()).exclude("_persistence_shouldRefreshFetchGroup");
>>>> 
>>>> But it still didn't work.   Not exactly sure where the problem is, in 
>>>> EclipseLink or somewhere in Tapestry's use of BeanModel -  I'll just use a 
>>>> Loop for now whilst I'm still deving.
>>>> 
>>>> When I find some time next week I'll create a simple 
>>>> tapestry-jpa/tapestry-hibernate to see if that will work on Glassfish with 
>>>> the Grid component.
>>>> 
>>>> Otherwise, I might go back to testing on JBoss so I can use Grid.  It'll 
>>>> be a toss up whether the gains in getting easy webservices RS/SOAP on 
>>>> glassfish is worth not having use of BeanModel stuff.
>>>> 
>>>> This is my persistence.xml in case you can see something I'm missing to 
>>>> make it work.
>>>> 
>>>> 
>>>> 
>>>> http://java.sun.com/xml/ns/persistence";
>>>>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
>>>> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";
>>>>   version="1.0">
>>>> 
>>>>   
>>>>   org.eclipse.persistence.jpa.PersistenceProvider
>>>>   jdbc/fullcti1DS
>>>>   
>>>> org.opencsta.ctiserver.business.callservices.model.BasicEvent
>>>>   
>>>> org.opencsta.ctiserver.business.callevents.model.CalledEvent
>>>>   
>&

Re: Meap Tapestry 5 book cancelled?

2011-09-22 Thread Chris Collins
Yes it is.  Hey Igor is it something you think "the tapestry community" could 
help with to finish it?  

Best

C
On Sep 22, 2011, at 10:00 AM, Borut Bolčina wrote:

> A sad day.
> 
> 2011/9/22 Jon Williams 
> 
>> This is terrible news. That was some fine technical writing. Very
>> disappointed.
>> 
>> 
>> On Thu, Sep 22, 2011 at 10:24 AM, Lenny Primak >> wrote:
>> 
>>> Damn. I was looking forward to the rest of the book. Why did it happen.
>>> Does anybody know?
>>> 
>>> 
>>> 
>>> On Sep 22, 2011, at 12:10 PM, cqasker  wrote:
>>> 
 I also just got the news as I signed up for the MEAP.
 
 On related note:
 I hope this project gets ressurected but I understand Tapestry is a
>> labor
>>> of
 love and a lot of work by all the developers involved and writing a
>> book
>>> is
 yet another huge task.
 
 I am loving Tapestry and everytime I need it to do something, the
>> answer
>>> is
 always yes and 90% of the time, the solution is easy. The only hard
>> part
>>> is
 figuring it out -- the book was something I used to help me out with
>>> that.
 
 --
 View this message in context:
>>> 
>> http://tapestry.1045711.n5.nabble.com/Meap-Tapestry-5-book-cancelled-tp4830642p4830657.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>>> 
>> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Meap Tapestry 5 book cancelled?

2011-09-22 Thread Chris Collins
Wow that is a bummer, such great progress had been made on it, what happened?

Best

C

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-22 Thread Chris Mylonas
OMG!! - That did the trick!!

The magic is in persistence.xml



Thank you Geoff you champion


I wonder what it will do to  "performance, caching and change tracking"  
because according to that page, that's what weaving is for.

  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND

 7484 root  20   0  827m 372m  13m S 93.3 18.4  38:09.77 java   
 
 2258 mysql 15   0  140m  30m 5000 S 34.9  1.5  13:07.30 mysqld 
 
 8168 root  15   0 10436 6304 2336 S  0.3  0.3   0:09.03 ssh
 
 8497 chrismyl  15   0  2416 1084  820 R  0.3  0.1   0:01.69 top
 
1 root  15   0  2160  680  584 S  0.0  0.0   0:00.60 init 

Load average is at 0.7, but I'm monitoring systems during off-peak time.
I'll definitely have to check JBoss out against Glassfish for this type of work 
I think.

Anyway - I'm off to play with some Grid components :D

Cheers
Chris


On 22/09/2011, at 7:45 PM, Geoff Callender wrote:

> According to the following thread _persistence_shouldRefreshFetchGroup was 
> removed in Sep 2009, and a workaround for now might be to partially disable 
> "weaving".
> 
>   http://forums.terracotta.org/forums/posts/list/2227.page
> 
> On 22/09/2011, at 3:54 PM, Chris Mylonas wrote:
> 
>> Hi Lenny & Tapestry Users,
>> 
>> Yep I tried exclude in the template.  No such luck.  The thing errors out in 
>> setupRender - I might do the fetching of the List in onActivate 
>> (even though it's in the wrong place to put such stuff).
>> 
>> I tried a few things, like the other suggestion to use @Inject 
>> BeanModelSource and also what is on the jumpstart page using
>> 
>> myModel = beanModelSource.createDisplayModel(CalledEvent.class, 
>> componentResources.getMessages()).exclude("_persistence_shouldRefreshFetchGroup");
>> 
>> But it still didn't work.   Not exactly sure where the problem is, in 
>> EclipseLink or somewhere in Tapestry's use of BeanModel -  I'll just use a 
>> Loop for now whilst I'm still deving.
>> 
>> When I find some time next week I'll create a simple 
>> tapestry-jpa/tapestry-hibernate to see if that will work on Glassfish with 
>> the Grid component.
>> 
>> Otherwise, I might go back to testing on JBoss so I can use Grid.  It'll be 
>> a toss up whether the gains in getting easy webservices RS/SOAP on glassfish 
>> is worth not having use of BeanModel stuff.
>> 
>> This is my persistence.xml in case you can see something I'm missing to make 
>> it work.
>> 
>> 
>> 
>> http://java.sun.com/xml/ns/persistence";
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>  xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
>>  http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";
>>  version="1.0">
>> 
>>  
>>  
>> org.eclipse.persistence.jpa.PersistenceProvider
>>  jdbc/fullcti1DS
>>  
>> org.opencsta.ctiserver.business.callservices.model.BasicEvent
>>  
>> org.opencsta.ctiserver.business.callevents.model.CalledEvent
>>  
>>  
>>  > value="create-tables" />
>>  > />
>>  
>>  
>>  >  transaction-type="JTA">
>>  
>> org.eclipse.persistence.jpa.PersistenceProvider
>>  jdbc/d6alerteetestDS
>>  com.alertee.contacts.model.CustomAlerteeContacts
>>  com.alertee.contacts.model.CustomAlerteeNumbers
>>  
>>  > value="none" />
>>  > />
>>  
>>  
>>  
>> 
>> 
>> 
>> Thanks for your suggestions!
>> 
>> Chris
>> 
>> On 22/09/2011, at 1:24 AM, Lenny Primak wrote:
>> 
>>> Have you tried exclude= in your template?  That worked for me and is 
>>> simple. 
>>> 
>>> 
>>> 
>>> On Sep 21, 2011, at 11:18 AM, Chris Mylonas  wrote:
>>> 
>>>> Hi!!
>>>> 
>>>> It is EclipseLink (glassfi

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Chris Mylonas
Hi Lenny & Tapestry Users,

Yep I tried exclude in the template.  No such luck.  The thing errors out in 
setupRender - I might do the fetching of the List in onActivate 
(even though it's in the wrong place to put such stuff).

I tried a few things, like the other suggestion to use @Inject BeanModelSource 
and also what is on the jumpstart page using

myModel = beanModelSource.createDisplayModel(CalledEvent.class, 
componentResources.getMessages()).exclude("_persistence_shouldRefreshFetchGroup");

But it still didn't work.   Not exactly sure where the problem is, in 
EclipseLink or somewhere in Tapestry's use of BeanModel -  I'll just use a Loop 
for now whilst I'm still deving.

When I find some time next week I'll create a simple 
tapestry-jpa/tapestry-hibernate to see if that will work on Glassfish with the 
Grid component.

Otherwise, I might go back to testing on JBoss so I can use Grid.  It'll be a 
toss up whether the gains in getting easy webservices RS/SOAP on glassfish is 
worth not having use of BeanModel stuff.

This is my persistence.xml in case you can see something I'm missing to make it 
work.



http://java.sun.com/xml/ns/persistence";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
   http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd";
version="1.0">



org.eclipse.persistence.jpa.PersistenceProvider
jdbc/fullcti1DS

org.opencsta.ctiserver.business.callservices.model.BasicEvent

org.opencsta.ctiserver.business.callevents.model.CalledEvent








org.eclipse.persistence.jpa.PersistenceProvider
jdbc/d6alerteetestDS
com.alertee.contacts.model.CustomAlerteeContacts
com.alertee.contacts.model.CustomAlerteeNumbers


    






Thanks for your suggestions!

Chris

On 22/09/2011, at 1:24 AM, Lenny Primak wrote:

> Have you tried exclude= in your template?  That worked for me and is simple. 
> 
> 
> 
> On Sep 21, 2011, at 11:18 AM, Chris Mylonas  wrote:
> 
>> Hi!!
>> 
>> It is EclipseLink (glassfish 3.1.1), I've just tried the first time now and 
>> it failed again (same reason) but I'll try a few other things based on 
>> Thiago's response earlier (re: BeanModel).
>> 
>> Here is CalledEvent which the error comes from if you can see anything 
>> strange, apologies Thiago for sending it to you directly earlier!!
>> 
>> package org.opencsta.ctiserver.business.callevents.model;
>> 
>> import java.io.Serializable;
>> 
>> import javax.persistence.Entity;
>> import javax.persistence.GeneratedValue;
>> import javax.persistence.GenerationType;
>> import javax.persistence.Id;
>> import javax.persistence.NamedQueries;
>> import javax.persistence.NamedQuery;
>> import javax.persistence.Transient;
>> 
>> /**
>> * @author chrismylonas
>> * 
>> */
>> @Entity
>> @NamedQueries({ @NamedQuery(name 
>> =org.opencsta.ctiserver.business.callevents.model.CalledEvent.QUERY_GETALL, 
>> query ="select c FROM CalledEvent c") })
>> public class CalledEvent implements Serializable {
>> 
>>   /**
>>* 
>>*/
>>   private static final long serialVersionUID =-35384297244606697L;
>> 
>>   /**
>>* 
>>*/
>>   public static final String QUERY_GETALL 
>> ="org.opencsta.ctiserver.business.callevents.model.CalledEvent.QUERY_GETALL";
>> 
>>   /**
>>* 
>>*/
>>   @Id
>>   @GeneratedValue(strategy =GenerationType.IDENTITY)
>>   private Long id;
>> 
>>   /**
>>* 
>>*/
>>   private String name;
>> 
>>   /**
>>* 
>>*/
>>   private String callingParty;
>> 
>>   /**
>>* 
>>*/
>>   private String calledParty;
>> 
>>   /**
>>* 
>>*/
>>   private String dialedNumber;
>> 
>>   /**
>>* 
>>*/
>>   private String trunk;
>> 
>>   /**
>>* 
>>*/
>>   private String server;
>> 
>>   /**
>>* @return
>>*/
>>   public Long getId() {
>>   return id;
>>   }
>> 
>>   /**
>>* @param id
>>*/
>>   public void setId(Long id) {
>>   t

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Chris Mylonas
Yes - but I'm going to restart the app server because I don't trust it  (cache 
wise, it's probably still got something in there)




Still yields the same errors :(

With this added to the original for providing the model,

@Inject
private BeanModelSource bms;

@Inject
private Messages messages;

public BeanModel getMyGridModel() {
return bms.createDisplayModel(CalledEvent.class, messages);
}



location
classpath:org/opencsta/eventviewer/pages/Index.tml, line 30
org.apache.tapestry5.internal.services.PropertyExpressionException
Exception generating conduit for expression 
'_persistence_shouldRefreshFetchGroup': Unable to add method java.lang.Object 
get(java.lang.Object) to class $PropertyConduit_1328c9eca52: [source error] 
_persistence_shouldRefreshFetchGroup() not found in 
org.opencsta.ctiserver.business.callevents.model.CalledEvent
expression
_persistence_shouldRefreshFetchGroup
javassist.CannotCompileException
[source error] _persistence_shouldRefreshFetchGroup() not found in 
org.opencsta.ctiserver.business.callevents.model.CalledEvent
reason
[source error] _persistence_shouldRefreshFetchGroup() not found in 
org.opencsta.ctiserver.business.callevents.model.CalledEvent
javassist.compiler.CompileError
_persistence_shouldRefreshFetchGroup() not found in 
org.opencsta.ctiserver.business.callevents.model.CalledEvent








On 22/09/2011, at 1:24 AM, Lenny Primak wrote:

> Have you tried exclude= in your template?  That worked for me and is simple. 
> 
> 
> 
> On Sep 21, 2011, at 11:18 AM, Chris Mylonas  wrote:
> 
>> Hi!!
>> 
>> It is EclipseLink (glassfish 3.1.1), I've just tried the first time now and 
>> it failed again (same reason) but I'll try a few other things based on 
>> Thiago's response earlier (re: BeanModel).
>> 
>> Here is CalledEvent which the error comes from if you can see anything 
>> strange, apologies Thiago for sending it to you directly earlier!!
>> 
>> package org.opencsta.ctiserver.business.callevents.model;
>> 
>> import java.io.Serializable;
>> 
>> import javax.persistence.Entity;
>> import javax.persistence.GeneratedValue;
>> import javax.persistence.GenerationType;
>> import javax.persistence.Id;
>> import javax.persistence.NamedQueries;
>> import javax.persistence.NamedQuery;
>> import javax.persistence.Transient;
>> 
>> /**
>> * @author chrismylonas
>> * 
>> */
>> @Entity
>> @NamedQueries({ @NamedQuery(name 
>> =org.opencsta.ctiserver.business.callevents.model.CalledEvent.QUERY_GETALL, 
>> query ="select c FROM CalledEvent c") })
>> public class CalledEvent implements Serializable {
>> 
>>   /**
>>* 
>>*/
>>   private static final long serialVersionUID =-35384297244606697L;
>> 
>>   /**
>>* 
>>*/
>>   public static final String QUERY_GETALL 
>> ="org.opencsta.ctiserver.business.callevents.model.CalledEvent.QUERY_GETALL";
>> 
>>   /**
>>* 
>>*/
>>   @Id
>>   @GeneratedValue(strategy =GenerationType.IDENTITY)
>>   private Long id;
>> 
>>   /**
>>* 
>>*/
>>   private String name;
>> 
>>   /**
>>* 
>>*/
>>   private String callingParty;
>> 
>>   /**
>>* 
>>*/
>>   private String calledParty;
>> 
>>   /**
>>* 
>>*/
>>   private String dialedNumber;
>> 
>>   /**
>>* 
>>*/
>>   private String trunk;
>> 
>>   /**
>>* 
>>*/
>>   private String server;
>> 
>>   /**
>>* @return
>>*/
>>   public Long getId() {
>>   return id;
>>   }
>> 
>>   /**
>>* @param id
>>*/
>>   public void setId(Long id) {
>>   this.id =id;
>>   }
>> 
>>   /**
>>* @return
>>*/
>>   public String getName() {
>>   return name;
>>   }
>> 
>>   /**
>>* @param name
>>*/
>>   public void setName(String name) {
>>   this.name =name;
>>   }
>> 
>>   /**
>>* @return
>>*/
>>   public String getCallingParty() {
>>   return callingParty;
>>   }
>> 
>>   /**
>>* @param callingParty
>>*/
>>   public void setCallingParty(String callingParty) {
>>   this.callingParty ÊllingParty;
>>   }
>> 
>>   /**
>>* @return
>>*/
>>   public String getCalledParty() {
>>   return calledPar

Re: Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Chris Mylonas
Hi!!

It is EclipseLink (glassfish 3.1.1), I've just tried the first time now and it 
failed again (same reason) but I'll try a few other things based on Thiago's 
response earlier (re: BeanModel).

Here is CalledEvent which the error comes from if you can see anything strange, 
apologies Thiago for sending it to you directly earlier!!

package org.opencsta.ctiserver.business.callevents.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Transient;

/**
 * @author chrismylonas
 * 
 */
@Entity
@NamedQueries({ @NamedQuery(name = 
org.opencsta.ctiserver.business.callevents.model.CalledEvent.QUERY_GETALL, 
query = "select c FROM CalledEvent c") })
public class CalledEvent implements Serializable {

/**
 * 
 */
private static final long serialVersionUID = -35384297244606697L;

/**
 * 
 */
public static final String QUERY_GETALL = 
"org.opencsta.ctiserver.business.callevents.model.CalledEvent.QUERY_GETALL";

/**
 * 
 */
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

/**
 * 
 */
private String name;

/**
 * 
 */
private String callingParty;

/**
 * 
 */
private String calledParty;

/**
 * 
 */
private String dialedNumber;

/**
 * 
 */
private String trunk;

/**
 * 
 */
private String server;

/**
 * @return
 */
public Long getId() {
return id;
}

/**
 * @param id
 */
public void setId(Long id) {
this.id = id;
}

/**
 * @return
 */
public String getName() {
return name;
}

/**
 * @param name
 */
public void setName(String name) {
this.name = name;
}

/**
 * @return
 */
public String getCallingParty() {
return callingParty;
}

/**
 * @param callingParty
 */
public void setCallingParty(String callingParty) {
this.callingParty = callingParty;
}

/**
 * @return
 */
public String getCalledParty() {
return calledParty;
}

/**
 * @param calledParty
 */
public void setCalledParty(String calledParty) {
this.calledParty = calledParty;
}

/**
 * @return
 */
public String getDialedNumber() {
return dialedNumber;
}

/**
 * @param dialedNumber
 */
public void setDialedNumber(String dialedNumber) {
this.dialedNumber = dialedNumber;
}

/**
 * @return
 */
public String getTrunk() {
return trunk;
}

/**
 * @param trunk
 */
public void setTrunk(String trunk) {
this.trunk = trunk;
}

/**
 * @return
 */
public String getServer() {
return server;
}

/**
 * @param server
 */
public void setServer(String server) {
this.server = server;
}
}



On 22/09/2011, at 12:53 AM, Lenny Primak wrote:

> This is EclipseLink.  I use it and ran into the same problem.
> 
> On Sep 21, 2011, at 10:28 AM, Lenny Primak wrote:
> 
>> If you add exclude="_persistence_shouldRefreshFetchGroup"
>> to your grid definition, this should resolve the problem.
>> 
>> On Sep 21, 2011, at 3:10 AM, Chris Mylonas wrote:
>> 
>>> Hello Tapestry Users,
>>> 
>>> I've got a problem with the grid element.
>>> 
>>> 
>>> 
>>> It doesn't happen if I put my List into a Loop element and 
>>> build the table.
>>> 
>>> 
>>> 
>>> ${calledEvent.id}
>>> ${calledEvent.calledParty}
>>> ${calledEvent.callingParty}
>>> ${calledEvent.dialedNumber}
>>> 
>>> 
>>> 
>>> I'm getting this error when using the grid
>>> 
>>> Render queue error in SetupRender[Index:grid.columns]: Failure reading 
>>> parameter &#

Re: Translating the cancel button on BeanEditForm

2011-09-21 Thread Chris Poulsen
Hi,

I think the message binding is correct (and probably more correct than the
${ } expansion).

You should probably try to provide your translation in the same
package/properties file as the component originally uses. - I think the
app.properties are only used if no more specific definition is found (and
the default definition for the the component is probably more specific than
the app module).

HTH

-- 
Chris

On Wed, Sep 21, 2011 at 3:23 PM, Sigbjørn Tvedt  wrote:

> Hi.
> I tried to translate the cancel button on a BeanEditForm by supplying the
> translation "cancel-label=Avbryt" in my app.properties, but this does not
> seem to work.
> I had a look at the source tml for the BeanEditForm, and I see that the
> cancel button are written as
> 
>
> Are the value supposed to be "message:cancel-label"? Would not
> ${message:cancel-label} be the correct way of referencing the message
> catalog in a component? (Palette.tml uses this for the alt messages)
>
> Regards
>
> Sigbjørn Tvedy
>


Re: Console app with Tapestry IoC configuration

2011-09-21 Thread Chris Poulsen
Hi,

I thought the @Inject was a part of the web app goodness that only works in
those special packages and constructor injection is the way to go when using
the IoC stand-alone?

(This page shows an example using this:
http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly )

-- 
Chris

On Wed, Sep 21, 2011 at 9:37 AM, nquirynen wrote:

> I have made a new project and have now this:
>
> *Main.java*
>
> public static void main(String[] args) {
> RegistryBuilder builder = new RegistryBuilder();
>builder.add(AppModule.class);
>
>Registry registry = builder.build();
>registry.performRegistryStartup();
>
>DocumentGenerator gen = new DocumentGenerator();
>
>registry.cleanupThread();
>registry.shutdown();
>}
>
> *AppModule.java*
>
> public static void bind(ServiceBinder binder)
>{
>binder.bind(PolicyValueProviderSource.class,
> PolicyValueProviderSourceImpl.class);
> }
>
>
>public void
> contributePolicyValueProviderSource(MappedConfiguration<String,
> PolicyValueProvider> config) {
> config.add("name", new PolicyValueProvider(){
>@Override
>public String getValue(Policy policy) {
>return policy.getHolder().getName();
>}
>});
>config.add("firstname", new PolicyValueProvider(){
>@Override
>public String getValue(Policy policy) {
>return policy.getHolder().getFirstName();
>}
>});
>}
>
> *
> DocumentGenerator.java*
>
> @Inject
>private static PolicyValueProviderSource policyValueProvider;
>
>public DocumentGenerator() {
> for(String v : policyValueProvider.getConfiguredFields()) {
>System.out.println(v+" : ");
>}
>}
>
>
>
>
> But now I always get a NullPointerException on *policyValueProvider* in
> *DocumentGenerator.*
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Console-app-with-Tapestry-IoC-configuration-tp4822836p4825438.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Grid, generating conduit, unable to add method java.lang.Object get() to class

2011-09-21 Thread Chris Mylonas
Hello Tapestry Users,

I've got a problem with the grid element.



It doesn't happen if I put my List into a Loop element and build 
the table.



${calledEvent.id}
${calledEvent.calledParty}
${calledEvent.callingParty}
${calledEvent.dialedNumber}



I'm getting this error when using the grid

Render queue error in SetupRender[Index:grid.columns]: Failure reading 
parameter 'model' of component Index:grid: Exception generating conduit for 
expression '_persistence_shouldRefreshFetchGroup': Unable to add method 
java.lang.Object get(java.lang.Object) to class $PropertyConduit_1328ac84ee8: 
[source error] _persistence_shouldRefreshFetchGroup() not found in 
org.opencsta.ctiserver.business.callevents.model.CalledEvent


What does this mean?

I'm using Geoff's @EJB stuff from jumpstart's EJBAnnotationWorker example


I'd really like to use the grid because then I can use the rowsPerPage 
parameter for "developer productivity" :P

Thanks for any help,
Chris

Re: [ANN] JumpStart 5.4.8 gets @EJB and a better PageProtectionFilter

2011-09-13 Thread Chris Mylonas
Thanks a lot Geoff!

As soon as I can sort out my little bugs atm (in EJB3 stuff) I can't wait to 
give the new @EJB support in tapestry.

A few months ago I was having some jndi lookup problems with using your old 
business services locator way and didn't end up sorting it out.

Yes, EJB3.1 facades and stuff are so good for cutting out a lot of code :)

I also got a copy of Igor's MEAP Tapestry 5 in Action book he's writing - 
hopefully October/November will be the front-end magic months before summer 
hits here in Oz.

Thank you everyone who makes java web programming a lot more 
interesting/fun/more-manageable!

Chris

On 14/09/2011, at 2:13 AM, Lenny Primak wrote:

> Fortunately?  EJB 3.1 is excellent and a pleasure to use. 
> 
> 
> 
> On Sep 13, 2011, at 3:54 AM, Massimo Lusetti  wrote:
> 
>> On Tue, Sep 13, 2011 at 12:30 AM, Geoff Callender
>>  wrote:
>> 
>>> Thanks Francois. Always nice to hear that someone finds it useful.
>> 
>> Never used EJB fortunately but Jumpstart is a must!... Thanks Geoff
>> 
>> -- 
>> Massimo
>> http://meridio.blogspot.com
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: spring integration?

2011-09-13 Thread Chris Poulsen
You should probably take a look at the following section of the docs:

http://tapestry.apache.org/component-classes.html#ComponentClasses-ComponentPackages

-- 
Regards Chris

On Tue, Sep 13, 2011 at 8:06 PM, Alfonso Quiroga wrote:

> Just one thing to add, now I'm using spring integration, be carefoul
> with objects in the "base" package, I think Tapestry treats this
> package in a special manner. I've tried to instantiate this objects
> via spring, I could, but then I had some cast problems.
>
>


Re: [ANN] exanpe-t5-lib : new Tapestry 5 library

2011-09-06 Thread Chris Mylonas
It looks stunningly simple to use, double +1
Thanks for sharing,
Chris

On 06/09/2011, at 10:12 PM, Geoff Callender wrote:

> Thumbs up.
> Geoff
> 
> On 06/09/2011, at 9:35 AM, Taha Hafeez wrote:
> 
>> Cool !!
>> 
>> Thanks for sharing.
>> 
>> 2011/9/6 François Facon :
>>> Very Nice work.
>>> Felicitations.
>>> François
>>> 
>>> 2011/9/5 Muhammad Gelbana :
>>>> Congrats !!
>>>> 
>>>> Magnificent components, I love many of them :)
>>>> 
>>>> On Mon, Sep 5, 2011 at 8:43 PM, Guerin Laurent 
>>>> wrote:
>>>> 
>>>>> Hi everyone!
>>>>> 
>>>>> 
>>>>> 
>>>>> We are pleased to announce you the release 1.0.0 of our Tapestry 5 
>>>>> Library:
>>>>> exanpe-t5-lib.
>>>>> 
>>>>> 
>>>>> 
>>>>> This library aims to provide a full set of components ready for use and
>>>>> easy
>>>>> to integrate in any web application, as well as providing a new skin for
>>>>> some of the most popular Tapestry 5 native components.
>>>>> 
>>>>> 
>>>>> 
>>>>> You can have a look to our demo here (GAE hosting, sorry about that):
>>>>> http://exanpe-t5-lib.appspot.com/
>>>>> 
>>>>> 
>>>>> 
>>>>> A full documentation is available here:
>>>>> http://exanpe.github.com/exanpe-t5-lib/
>>>>> 
>>>>> 
>>>>> 
>>>>> The lib is available into Maven central repository, you just have to add
>>>>> this dependency in your pom.xml :
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> fr.exanpe
>>>>> 
>>>>> exanpe-t5-lib
>>>>> 
>>>>> 1.0.0
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> Feel free to share any comment or suggestion!
>>>>> 
>>>>> 
>>>>> 
>>>>> Exanpe Team.
>>>>> 
>>>>> (Julien Maupoux / Laurent Guerin)
>>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> *Regards,*
>>>> *Muhammad Gelbana
>>>> Java Developer*
>>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>>> 
>> 
>> 
>> 
>> -- 
>> Regards
>> 
>> Taha Hafeez Siddiqi (tawus)
>> http://tawus.wordpress.com
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: OT Re: Eid Mubarak

2011-09-06 Thread Chris Mylonas
Thanks everyone for the thread - it is the first thread in quite a while where 
the chatter was allowed to continue before someone mentioned, "please keep it 
on topic" or "in english only" - there were a few smiles in there, particularly 
the use of jihad in it's new meaning ;)

It's also quirkily ironic that the 'please keep it on topic' message came from 
someone with a name that looks like 'angel' (i.e. messenger)

May we grow more tolerant (through Tapestry 'jihad') muhahaha

Kind Regards,
Chris

On 07/09/2011, at 3:53 AM, Vangel V. Ajanovski wrote:

> On 06.09.2011 18:51, Muhammad Gelbana wrote:
>> No religion EVER would deliver bad teachings !!..It would die and
> Please let's not start a debate about the interpretation of religion 
> teachings and whether they are good or bad for an individual, or even if the 
> religion as a process is opium for the people or not. :)
> 
> If we have to have something off-topic, let it be just plain regular software 
> engineering and web programming off-topic discussions.
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Where's KaptchaImage and KaptchaField in T5.3-beta-1

2011-09-03 Thread Chris Mylonas
Me too.

I used to write classes that ALWAYS implemented runnable (I think I picked up 
the habit from needing to renegotiate layer 2  stuff at some point in comms 
land) - this allowed me to dump classes into any thread pool to do a task.  
I've found tapestry to be able to give me that level of "runnableness" because 
of what power is hidden away from my understanding of it atm.  To me it seems 
as if "one day" it clicks how tapestry works and we are all writing these 
sub-projects in a similar way, i.e. through IoC/AppModule.

I imagine tapestry to be like the "routing" of application development

Hope that makes sense
Thanks,
Chris


On 04/09/2011, at 1:30 AM, Steve Eynon wrote:

> That's cool - I like the idea of multiple sub-projects. It prevents
> Tapestry from turning into "Bloat Ware".
> 
> (e.g. I never did understand why Sun decided to ship all the javax
> packages with standard java!??)
> 
> Steve.
> 
> On 3 September 2011 22:34, Dragan Sahpaski  wrote:
>> Hi,
>> There is a separate project called tapestry-kaptcha. That's what you are
>> looking for.
>> They are not part of tapestry-core due to the discussion here
>> http://tapestry.1045711.n5.nabble.com/T5-3-and-tapx-tt4627854.html
>> 
>> Just add it to your app as a dependency.
>> 
>> Cheers
>> 
>> On Sat, Sep 3, 2011 at 4:10 PM, nillehammer <
>> tapestry.nilleham...@winfonet.eu> wrote:
>> 
>>> Hello,
>>> 
>>> I have recently updated one of my webapps from 5.2.6 to the recently
>>> released 5.3. beta. The only thing I had to change was code using the
>>> Predicate, because it is an interface and not an abstract class anymore.
>>> 
>>> Based on the information posted here http://tapestry5.de/ and here
>>> https://github.com/hlship/tapx I thought that KaptchaImage and
>>> KaptchaField
>>> have become part of Tapestry core. But I cannot find them. Where are they?
>>> Or will I have to wait for a new beta?
>>> 
>>> -
>>> http://www.winfonet.eu
>>> --
>>> View this message in context:
>>> http://tapestry.1045711.n5.nabble.com/Where-s-KaptchaImage-and-KaptchaField-in-T5-3-beta-1-tp4765547p4765547.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: May Tapestry go wrong ...

2011-09-03 Thread Chris Mylonas
Cool, glad you found your error
I found it funny watching you do what I do as a first reaction - blame tapestry 
:)
I'm still a tapestry noob after one and a half years of part-time deving on my 
own projects :)
Can't wait for the tapestry 5 in action book to help me in my part-time ways .

Have a good weekend,
Chris


On 03/09/2011, at 6:04 PM, Gunnar Eketrapp wrote:

> Tapestry may not go wrong!
> 
> It must has to do with autoboxing in method isClosed() in Ledger.
> 
> I was fooled by the debugger and that ledger was shown as null but when
> adding log statements I can see that it isn't.
> 
> So I have to read a little bit about aoutoboxing but for sure it was NOT a
> T5 problem!
> 
> The call ledger.isClosed() raises a nul pointer but ledgers is not null!
> 
> Sorry for disturbing all of you.
> 
> 
> 2011/9/3 Gunnar Eketrapp 
> 
>> BUT it is also a T5 property so that could be T5 related.
>> 
>> The instance seems to created but the T5 property ledger is null after the
>> assignment.
>> 
>> 
>> 2011/9/3 Gunnar Eketrapp 
>> 
>>> Hum .. sorry .. too early in the morning for me .. Ledger is a hibernate
>>> entity class and T5 should not be involved.
>>> 
>>> I'll be right back ...
>>> 
>>> 
>>> 2011/9/3 Gunnar Eketrapp 
>>> 
>>>> Hi !
>>>> 
>>>> I have been happily hacking web sites with T5 for a year and half now and
>>>> is more then pleased!
>>>> Kudos to all of you for this excellent web framework that makes coding
>>>> fun again.
>>>> 
>>>> And I have never ever encountered any defect in the T5 code.
>>>> 
>>>> Now to my problem.
>>>> 
>>>> I just got an error in an onActivate method that looked like it could not
>>>> happen.
>>>> 
>>>> When steeping through it in my debugger I really get puzzled.
>>>> 
>>>> A variable assigned inside a block is null after leaving the block.
>>>> 
>>>> It must have something to do with the "plastering" of my code. Or !?
>>>> 
>>>> The error I get is ..
>>>> 
>>>> Caused by: java.lang.NullPointerException
>>>>   at
>>>> utskicket.pages.economy.EditYear._$advised$onActivate_13(EditYear.java:91)
>>>> 
>>>> ... and in the debugger I can see that ledger is null at line 91.
>>>> 
>>>> In the code below I have commented what happens in the debugger.
>>>> 
>>>> Can anyone understand what could cause this error ...
>>>> I have stepped through the generated code without seeing anything
>>>> strange. It all looks great but when returning ledger is null.
>>>> 
>>>> Do I break any rule / convention with my code !?
>>>> 
>>>> Many many thanks in  advance,
>>>> Gunnar Eketrapp, Stockholm, Sweden
>>>> 
>>>> Environment:
>>>> *jdk 1.6.0_22*
>>>> *t5.2.6*
>>>> *windows 7 proffesional, 32-bit*
>>>> 
>>>> 
>>>>@Property
>>>>private Ledger ledger;
>>>> 
>>>>@Property
>>>>private String notice;
>>>> 
>>>>//
>>>> --
>>>>// -- Tapestry event methods - Tapestry event methods - Tapestry
>>>> event methods --
>>>>//
>>>> --
>>>> 
>>>>@Log
>>>>Object onActivate(long groupId, long ledgerId) {
>>>> 
>>>>group = groupDAO.findById(groupId);
>>>>if (group == null)
>>>>return Index.class;
>>>> 
>>>>if (ledgerId != 0) {
>>>>ledger = ledgerDAO.findById(ledgerId);
>>>>if (ledger == null)
>>>>return Index.class;
>>>>if (!same(group.getId(), ledger.getGroup().getId()))
>>>>return Index.class;
>>>> 
>>>>hasPrevious = (null != ledgerDAO.findPrevious(ledger));
>>>>hasNext = (null != ledgerDAO.findNext(ledger));
>>>>transactionCount = transactionDAO.countTransactions(ledger);
>>>> 
>>>>} else  {
>>>>ledger = new Ledger(); 

Re: T 5.3 Alert and AlertManager Tutorials

2011-08-24 Thread Chris Mylonas
jar tvf  | grep AlertManager

would be able to locate it.

combine that command in a loop with all the tapestry jars in the same directory 
and  on the bash prompt (if you're on mac/linux)
for i in `ls *.jar`
do
  jar tvf $i | grep AlertManager
done

and that will spit it out.

HTH
Chris

the one liner would be:   for i in `ls *.jar`; do jar tvf $i | grep 
AlertManager; done

On 25/08/2011, at 10:52 AM, TG wrote:

> AlertManager is located in what jar? I am not using Maven. And I can't import
> it from Eclipse ...
> 
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/T-5-3-Alert-and-AlertManager-Tutorials-tp4732469p4732546.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to create a war from Eclipse

2011-08-24 Thread Chris Mylonas
(1) Right click on the project:  Maven -> Enable dependency management
(2) Right click on the project:  Run As -> maven package

If you don't have (1), you need the eclipse maven plugin:
In eclipse, Help -> Install New Software and update this url to the update site 
URL list m2eclipse Core Update Site:
http://m2eclipse.sonatype.org/sites/m2e
Good luck!

 

On 25/08/2011, at 7:57 AM, Tim Koop wrote:

> I've looked around for a way to create a .war file from Eclipse, but I can't 
> find one.
> 
> Can someone here please tell me how it's done?
> 
> Thanks!
> 
> 
> For more information:
> - I've looked in "Export...", but no war option is there, probably because my 
> Tapestry project is not a Web Application.
> - I think I'm using Maven somewhere in the background, because I sometimes 
> see Maven notices on the console, and I suspect you can create a war with 
> Maven, but I have no idea how.
> 
> -- 
> Tim Koop
> t...@timkoop.com 
> www.timkoop.com 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: [t5.2.6] Looping over a collection (The "value" attribute)

2011-08-24 Thread Chris Mylonas

>> Thanks a lot steve :)
> 
> No probs, the guys in work do it all the time (I keep yelling at them,
> but to no avail!). 

Sounds like tapestry attributes could use a do-not-use-expansions meme to send 
to your naughty devs - a la rickrolling :D
/humour

Chris
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Patching Tapestry for IE9 Prototype Bug

2011-08-24 Thread Chris Poulsen
Hi,

I haven't been following this closely, but are you sure that the most recent
5.2 build (5.2.6) does not contain what you need?

It has some updates to the js libs as far as i can tell from the release
notes?

http://tapestry.apache.org/release-notes-52.html#ReleaseNotes5.2-ReleaseNotes%253ATapestry5.2.6

-- 
Chris


On Wed, Aug 24, 2011 at 2:02 PM, Joel Halbert  wrote:

> 
> It's pretty frustrating there there is no procedure on the Tap website
> for patching 5.2.X for the prototype IE9 bug. And any links in the
> mailing list archive that point to git have expired.
>
> I'd have thought this was a pretty serious bug. Unfortunately for us
> we've only just realised it's affecting our users (our bad for not
> testing IE9 properly).
>
> In frustration I'm now downloading the 5.3 alpha - with all the
> headaches a version upgrade entails (breaking changes / testing etc...)
>
> But it seems there are only source files available for 5.3, which is
> fine but ant now seems to insist on various maven artefacts, or it
> barfs. Why does everything need to go through
> maven/gradle/yet-another-random-build-system ?
>
> What's wrong with a simple ant build?
> 
>
> Anyway, are there
> a) any binaries for 5.3 or a simple ant build target ?
> b) a comprehensive patch with instructions for the IE9 zone/prototype
> bug ?
>
>
> On Wed, 2011-08-24 at 12:11 +0100, Joel Halbert wrote:
> > Oof, does this
> >
> https://github.com/hlship/tapx/commit/6088137226a045e03faca2e1c4e0cb62f94c9c3c
> > mean that we need to upgrade to 5.3 to fix this?
> >
> >
> > Does anyone have a version of the original patch or know how I can
> > access it from git-hub?
> >
> >
> > On Wed, 2011-08-24 at 11:34 +0100, Joel Halbert wrote:
> > > Hi Folks,
> > >
> > > We're on T 5.2.4.
> > >
> > > Are these instructions for patching Tap for IE9 up-to-date?
> > >
> > >
> http://tapestry.1045711.n5.nabble.com/Re-Prototype-IE9-update-td4331824.html
> > >
> > >
> > > The tapestry-js-fixes.js file Howard refers to seems not to exist.
> > >
> https://github.com/hlship/tapx/blob/master/tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/tapestry-js-fixes.js
> > >
> > > Pointers appreciated
> > >
> > >
> > > Joel Halbert
> > >
> > > http://www.webalertpro.com
> > > http://twitter.com/webalertpro
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > For additional commands, e-mail: users-h...@tapestry.apache.org
> > >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


RE: Upgrading from old Tomcat and Tapestry versions

2011-08-23 Thread Parker, Chris@CDCR
That would buy us some time, but eventually it will be a problem.  Thanks for 
the info. 


--
  Chris Parker

-Original Message-
From: Andreas Fink [mailto:fink.a...@googlemail.com] 
Sent: Tuesday, August 23, 2011 8:07 AM
To: Tapestry users
Subject: Re: Upgrading from old Tomcat and Tapestry versions

Hi Chris.
The current Versions (5.x) of Tapestry has only concepts in common with 3.x.
If your machine is beefy enugh i would recommend running the existing app in a 
32bit VM.

Just my 2 cents.

Cheers,
Andi.

The 

On Aug 23, 2011, at 4:59 PM, Parker, Chris@CDCR wrote:

> Greetings all:
> 
> I recently started to manage an application written by someone long gone, 
> after the application had sat unattended and unmanaged for ages.  The 
> application is currently running on Java 4, Tomcat 5.0, and uses Tapestry 
> 3.0.1, running on 32bit Windows 2000 server.  We'd like to upgrade the whole 
> system to 64bit Windows 2008 - and doing so requires all new services since 
> the current versions of Java and Tomcat do not support 64 bits.
> 
> After a bit of thrashing with the various configuration files and deprecated 
> methods, I've mostly gotten Tomcat 7 to where it will start, with the 
> exception of the Tapestry entry in web.xml .  web.xml has a stanza that looks 
> like this:
> 
>  
>
> http://jakarta.apache.org/tapestry/tld/tapestry_1_0.tld
>/WEB-INF/lib/tapestry-3.0.1.jar
>  
> 
> Tomcat starts up without complaint without that stanza (but of course the 
> application doesn't work), or it complains that "taglib definition not 
> consistent with specification version" with that stanza in.  No doubt the TLD 
> inside the jar file does not meet with the new J2EE server specification.
> 
> 
> 
> I have never used or even touched Tapestry, although I'm otherwise 
> comfortable in Java.
> 
> I'm concerned about upgrading to the latest tapestry version.  Since this 
> application was written by someone else, I don't know if I know enough about 
> it to test all corners of the app to make sure his code is compatible with an 
> upgraded jar.  Said another way, I don't yet know the business process well 
> enough to hit every corner of the application.
> 
> Will the new version be backwards compatible with the code?  Alternatively, 
> would it be reasonable to open the 3.0.1 jar file and modify the TLD?  And if 
> that's possible, what should the new specification look like?  I especially 
> don't know what the URL for the specification should be.
> 
> Bottom line - what is my most reasonable course forward?  
> 
> --
>  Chris Parker
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Upgrading from old Tomcat and Tapestry versions

2011-08-23 Thread Parker, Chris@CDCR
Greetings all:

I recently started to manage an application written by someone long gone, after 
the application had sat unattended and unmanaged for ages.  The application is 
currently running on Java 4, Tomcat 5.0, and uses Tapestry 3.0.1, running on 
32bit Windows 2000 server.  We'd like to upgrade the whole system to 64bit 
Windows 2008 - and doing so requires all new services since the current 
versions of Java and Tomcat do not support 64 bits.

After a bit of thrashing with the various configuration files and deprecated 
methods, I've mostly gotten Tomcat 7 to where it will start, with the exception 
of the Tapestry entry in web.xml .  web.xml has a stanza that looks like this:

  

http://jakarta.apache.org/tapestry/tld/tapestry_1_0.tld
/WEB-INF/lib/tapestry-3.0.1.jar
  

Tomcat starts up without complaint without that stanza (but of course the 
application doesn't work), or it complains that "taglib definition not 
consistent with specification version" with that stanza in.  No doubt the TLD 
inside the jar file does not meet with the new J2EE server specification.



I have never used or even touched Tapestry, although I'm otherwise comfortable 
in Java.

I'm concerned about upgrading to the latest tapestry version.  Since this 
application was written by someone else, I don't know if I know enough about it 
to test all corners of the app to make sure his code is compatible with an 
upgraded jar.  Said another way, I don't yet know the business process well 
enough to hit every corner of the application.

Will the new version be backwards compatible with the code?  Alternatively, 
would it be reasonable to open the 3.0.1 jar file and modify the TLD?  And if 
that's possible, what should the new specification look like?  I especially 
don't know what the URL for the specification should be.

Bottom line - what is my most reasonable course forward?  

--
  Chris Parker


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Chaining of Select components

2011-08-17 Thread Chris-1977
I should add that if I remove the @Persist annotation from availableModels,
the onValueChanged method does exist, as shown by the log:

[DEBUG] pages.Contact [ENTER] onValueChanged(AUDI)
[DEBUG] pages.Contact [ EXIT] onValueChanged [Block[Body of
Contact:modelzone, at classpath:com/example/tutorial/pages/Contact.tml, line
14]]

However, nothing happens on the SelectZoneDemo.tml page.  The body of the
modelZone does not become visible.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Chaining-of-Select-components-tp4706131p4710049.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Supporting @EJB annotation in Tapestry classes

2011-08-17 Thread Chris Mylonas
This is true.

On 18/08/2011, at 6:26 AM, Lenny Primak wrote:

> The biggest advantage of using glassfish is that everything is pre-configured 
> for you,
> you don't need to deal with any dependencies, no putting stuff together 
> yourself,
> it 'just works' and y you get everything - Tapestry, REST, WebServices, EJB,
> the whole stack with zero effort.
> 

And there's no (sic) JBoss5ClasspathURL fixing to do.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Supporting @EJB annotation in Tapestry classes

2011-08-16 Thread Chris Mylonas
I know what you mean :)

On 17/08/2011, at 1:36 PM, Lenny Primak wrote:

> This kind of method is what I am currently using.
> My application is a big integration project and code bloat using the method 
> is becoming nasty.
> I want an elegant method to do this, i.e. @EJB annotation.
> 
> On Aug 16, 2011, at 11:33 PM, Chris Mylonas wrote:
> 
>> I'm using ejb3.1/jee6 on a new project -  on jee5 i used the jumpstart 
>> method of integration - works a treat! 
>> http://jumpstart.doublenegative.com.au/jumpstart/examples/state/ejb3
>> 
>> sorry if it's been pointed out before
>> 
>> On 17/08/2011, at 1:28 PM, Lenny Primak wrote:
>> 
>>> I just took a look at that post, but it leaves a lot of unanswered 
>>> questions,
>>> actually more questions than answers.
>>> 
>>> I know tapestry-jpa made @PersistenceContext work within Tapestry,
>>> which is similar.  I am going to look at that.
>>> Perhaps Igor can shed some light on this.
>>> 
>>> Thanks again.
>>> 
>>> On Aug 14, 2011, at 8:10 AM, Thiago H. de Paula Figueiredo wrote:
>>> 
>>>> On Sat, 13 Aug 2011 15:37:43 -0300, Lenny Primak  
>>>> wrote:
>>>> 
>>>>> Hi guys,
>>>> 
>>>> Hi!
>>>> 
>>>>> I am developing a front-end in Tapestry for an EJB application (EJB 
>>>>> 3.1/JEE 6) Its getting really annoying to build Tapestry services for 
>>>>> each of the EJBs. Do you have any suggestions on how to support @EJB 
>>>>> annotation instead?
>>>> 
>>>> Magnus did something this, but for CDI, and posted in this mailing list: 
>>>> http://tapestry.1045711.n5.nabble.com/First-stab-at-CDI-module-for-tapestry-td4469281.html.
>>>>  I haven't used CDI nor EJB, so I don't know if its solution can be used 
>>>> for EJB without any changes. Even if not, the approach would be very 
>>>> similar.
>>>> 
>>>> -- 
>>>> Thiago H. de Paula Figueiredo
>>>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, 
>>>> and instructor
>>>> Owner, Ars Machina Tecnologia da Informação Ltda.
>>>> http://www.arsmachina.com.br
>>>> 
>>> 
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Supporting @EJB annotation in Tapestry classes

2011-08-16 Thread Chris Mylonas
I'm using ejb3.1/jee6 on a new project -  on jee5 i used the jumpstart method 
of integration - works a treat! 
http://jumpstart.doublenegative.com.au/jumpstart/examples/state/ejb3

sorry if it's been pointed out before

On 17/08/2011, at 1:28 PM, Lenny Primak wrote:

> I just took a look at that post, but it leaves a lot of unanswered questions,
> actually more questions than answers.
> 
> I know tapestry-jpa made @PersistenceContext work within Tapestry,
> which is similar.  I am going to look at that.
> Perhaps Igor can shed some light on this.
> 
> Thanks again.
> 
> On Aug 14, 2011, at 8:10 AM, Thiago H. de Paula Figueiredo wrote:
> 
>> On Sat, 13 Aug 2011 15:37:43 -0300, Lenny Primak  
>> wrote:
>> 
>>> Hi guys,
>> 
>> Hi!
>> 
>>> I am developing a front-end in Tapestry for an EJB application (EJB 3.1/JEE 
>>> 6) Its getting really annoying to build Tapestry services for each of the 
>>> EJBs. Do you have any suggestions on how to support @EJB annotation instead?
>> 
>> Magnus did something this, but for CDI, and posted in this mailing list: 
>> http://tapestry.1045711.n5.nabble.com/First-stab-at-CDI-module-for-tapestry-td4469281.html.
>>  I haven't used CDI nor EJB, so I don't know if its solution can be used for 
>> EJB without any changes. Even if not, the approach would be very similar.
>> 
>> -- 
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
>> instructor
>> Owner, Ars Machina Tecnologia da Informação Ltda.
>> http://www.arsmachina.com.br
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Jumping to a new page

2011-08-16 Thread Chris Mylonas
I've been a newbie a couple of times with tapestry because of project work etc..
I think you will also find the first chapter (free download) of this book a 
great read on the overview of tapestry: http://www.manning.com/drobiazko/

Jumpstart is a great living-example of tapestry

This video http://blog.markwshead.com/900/tapestry-5-10-minute-demo/  is also 
good

Good luck tapping away!

P.S. Estoy loco como sundia :)


On 17/08/2011, at 12:02 PM, Thiago H. de Paula Figueiredo wrote:

> On Tue, 16 Aug 2011 21:06:05 -0300, ixcoatl  
> wrote:
> 
>> Hi,
> 
> Hi!
> 
>> I'm having some trouble shifting from the conventional event-driven model to 
>> the way Tapestry works.
> 
> Tapestry is event-driven too, but
> 
>> Is there a newbie forum where I can ask the most basic questions?
> 
> This is the place for asking all questions about Tapestry, from the most 
> basic to the more complex ones. :)
> 
>> Right now I'm stuck trying to jump from one page in charge to create users 
>> to others in charge of editing and deleting them.
> 
> I guess you're using a structure that isn't common. The common pattern I see 
> for CRUDs is to have one page for listing/searching and one for editing (both 
> existing and new objects). Removing is generally implemented as an event in 
> the listing page, but in the edition page too.
> 
>> This is the code of the list with the already created users is:
>> 
>>> include="nombre,controlarUsuarios,crearProyectos">
>>
>>> page="seguridad/editarUsuario" context="nombre" >Editar
> 
> Common newbie error: in Tapestry, events are always triggered and handled 
> inside a given page. In other words, one page doesn't trigger an event in 
> another page. In this case, you have an edition page for Usuario, so you 
> should use a PageLink instead of ActionLink.
> 
>>
>>
>>> page="seguridad/BorrarUsuario" context="nombre" >Borrar
>>
> 
> ActionLink doesn't have a page parameter, so it's ignored. As Robert said, to 
> handle this event, you should write an onActionFromBorrarUsuario(String 
> nombre) to handle this event. You can also use any method name and annotate 
> it with @OnEvent(value = "event name", component = "t:id of the component).
> 
>>
>>  No hay informacion en la lista.
>>
>>
>> 
>> Both seguridad/BorrarUsuario and seguridad/editarUsuario are pages intended 
>> to handle the delete and edit tasks
> 
> Why do you need a page for removing users? Isn't an event enough?
> 
>> (sorry the code is in spanish).
> 
> I'm Brazilian, my first language is Portuguese, I don't speak Spanish and I 
> could understand your code without problems. :)
> 
>> However
>> the jump never happens and the methods onActionFromBorrarUsuario and
>> onActionFromEditarUsuario are being called on the page where the grid
>> exists.
> 
> The jump doesn't happen because ActionLink (and also EventLink) only trigger 
> events in the page they were declared.
> 
>> Then I thought that returning a BorrarUsuario page from this methods should 
>> be enough, for that I put:
>> 
>>@InjectPage("seguridad/BorrarUsuario")
>>private EditarUsuario eu;
> 
> You don't need to specify the page name in 99% of the cases. Just the type of 
> the field is enough.
> 
>> or
>> 
>>@Inject
>>private EditarUsuario eu;
> 
> @InjectPage and @Inject are very different. @Inject inject a service 
> configured thought Tapestry-IoC. @InjectPage is the way of getting a page 
> instance in Tapestry.
> 
>>   No service implements the interface
>> compucentro.volumetria.pages.seguridad.EditarUsuario.
> 
> The message is quite descriptive: you haven't declared a Tapestry-IoC service 
> of type EditarUsuario. You should have used just @InjectPage private 
> EditarUsuario eu;
> 
>> It would be very nice to have a tutorial on how to implement a full
>> create/update/delete cycle using hibernate, that way a newbie can get the
>> feeling of how manage the set of objects (pages, entities, etc. ) involved 
>> with DB access.
> 
> Have you checked the Hotel Booking example application 
> (http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/signin, source 
> code linked in the bottom of the page) or Tapestry JumpStart 
> (http://jumpstart.doublenegative.com.au/) or the Tapestry-Hibernate 
> documentation (http://tapestry.apache.org/hibernate.html)?
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additi

Re: IoC services - can they come from an external jar?

2011-08-11 Thread Chris Mylonas
To nillehammer and Thiago, thank you for answering.

Eclipse on gentoo is acting a little weird in not being able to find classes in 
the same project, so I thought I'd make BSL a separate jar to ease my woes :)
Trying to move away from osx to gentoo for deving on.  (don't ask why, i enjoy 
the painful freedom!)




On 11/08/2011, at 10:34 PM, nillehammer wrote:

>> Well, my definition of distributed configuration is different: it's the
>> ability of more than one module class to contribute configuration for a
>> given service.
> Granted. And how that works is, what I was trying to explain in my first
> reply to the question. I wanted to point out, that this feature goes far
> beyond just having services in a different jar. Admiddetly my explanation
> was a bit too clumsy or short.
> 
> -
> http://www.winfonet.eu
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/IoC-services-can-they-come-from-an-external-jar-tp4688157p4689361.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



IoC services - can they come from an external jar?

2011-08-10 Thread Chris Mylonas
Hi Tapestry Users,

It gives me great pleasure to have a question to ask this list after picking
up some tapestry deving again.

I'm playing around with a new EJB3.1 book with icedtea6 (openjdk) running on
glassfishv3.1.1.

Using jumpstart's BusinessServicesLocator(BSL) and bind() -ing it in
AppModule.java I wondered if the BSL and it's interface can come from
another jar or does it have to be in the services directory?

Thanks for your time,
Chris

P.S. how is the tapestry 5 in action book going?  i read chapter 1 about 3
or 4 months ago i think and it was an amazing explanation of a terrific
framework!  Thanks everyone :D


Re: Problem with the idea gradle task

2011-07-29 Thread Chris Poulsen
As far as I can remember someone committed a fix for this exact issue a
while ago.

Doing a "gradle build" before using the idea task was a work-around before
it was fixed, is your source 100% up to date?

-- 
Chris

On Fri, Jul 29, 2011 at 11:14 PM, Jon Williams
wrote:

> I have the same problem w/"gradle idea" using Gradle 1.0-milestone-3.
>
> On Fri, Jul 29, 2011 at 1:51 PM, Howard Lewis Ship 
> wrote:
>
> > I haven't tried milestone-4; I'm using milestone-3 and I think I'll
> > stick there for a bit!
> >
> > On Fri, Jul 29, 2011 at 1:36 PM, Jon Williams
> >  wrote:
> > > Hi Tapestrians,
> > >
> > > Working with the SVN trunk I am unable to gradle the idea project into
> > > existence.
> > > I'm brand new to gradle, am I missing something? or is the idea task
> > indeed
> > > broken?
> > > (using Gradle 1.0-milestone-4)
> > >
> > > thanks
> > >
> > > cut and paste from the terminal below
> > > -
> > > Jon-Williamss-MacBook-Pro:tap-proj jonwilliams$ gradle idea
> --stacktrace
> > > ...
> > > :tapestry-core:ideaModule
> > >
> > > FAILURE: Build failed with an exception.
> > >
> > > * Where:
> > > Build file
> > >
> >
> '/Users/jonwilliams/wrk/java/3rdParty/tap-proj/tapestry-core/build.gradle'
> > > line: 68
> > >
> > > * What went wrong:
> > > Execution failed for task ':tapestry-core:ideaModule'.
> > > Cause: Cannot invoke method minus() on null object
> > >
> > > * Try:
> > > Run with --info or --debug option to get more log output.
> > >
> > > * Exception is:
> > > org.gradle.api.tasks.TaskExecutionException: Execution failed for task
> > > ':tapestry-core:ideaModule'.
> > >
> >
> >
> >
> > --
> > Howard M. Lewis Ship
> >
> > Creator of Apache Tapestry
> >
> > The source for Tapestry training, mentoring and support. Contact me to
> > learn how I can get you up and productive in Tapestry fast!
> >
> > (971) 678-5210
> > http://howardlewisship.com
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>


Re: Java Magic has 10000+ hits

2011-06-28 Thread Chris Collins
Hey I read it!  Just I used to work for a company where we had a "famous" tech 
blogger working for us.  He always talked about how many people who were 
reading his blog.except we saw his metrics :-{

C
On Jun 28, 2011, at 12:20 AM, Taha Hafeez wrote:

> Thank God I have only 1 :)
> 
> 
> On Tue, Jun 28, 2011 at 12:47 PM, Chris Collins  wrote:
> 
>> Do you know what your uniques are, were those browser or rss reader
>> requests?  If you had 133 people who added your rss to their rss reader,
>> assuming it only fetched from your feed once a day that would be about 130
>> people :-{
>> 
>> Best
>> 
>> C
>> 
>> 
>> On Jun 27, 2011, at 11:50 PM, Taha Hafeez wrote:
>> 
>>> Hi
>>> 
>>> More than 1 hits in two and a half months, not bad.
>>> 
>>> regards
>>> Taha
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Java Magic has 10000+ hits

2011-06-28 Thread Chris Collins
Do you know what your uniques are, were those browser or rss reader requests?  
If you had 133 people who added your rss to their rss reader, assuming it only 
fetched from your feed once a day that would be about 130 people :-{

Best

C


On Jun 27, 2011, at 11:50 PM, Taha Hafeez wrote:

> Hi
> 
> More than 1 hits in two and a half months, not bad.
> 
> regards
> Taha


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: RE : Trying out 5.3.0

2011-06-19 Thread Chris Poulsen
Hi,

I guess the archetype is kind of in between versions.

I guess the deprecated @IncludeStyleSheet has been removed in 5.3 and should
he replaced with @Import(stylesheet="context:layout/layout.css")

HTH.

-- 
Chris

On Sun, Jun 19, 2011 at 12:04 PM, Angelo C.  wrote:

> Thanks, works this time, see those 5.3.0 jar's being downloaded, but got
> this:
>
> [ERROR]
>
> /Users/wcc/test_t5_3/newapp/src/main/java/com/example/newapp/components/Layout.java:[11,1]
> cannot find symbol
> [ERROR] symbol: class IncludeStylesheet
> [ERROR] @IncludeStylesheet("context:layout/layout.css")
> [ERROR] -> [Help 1]
>
> I do have another question, how to create a project in 5.3.0, following is
> not working:
>
> mvn -DarchetypeVersion=5.3.0 -Darchetype.interactive=false
> -DgroupId=com.example -DarchetypeArtifactId=quickstart
> -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.tapestry
> -Dpackage=com.example.newapp -DartifactId=newapp --batch-mode
> -DarchetypeRepository=
> https://repository.apache.org/content/repositories/orgapachetapestry-023/
> archetype:generate
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Trying-out-5-3-0-tp4503041p4503126.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Tapestry Remembers which page to navigate after User Logs in ?

2011-06-14 Thread Chris Poulsen
Hi,

If I'm not mistaken its an acegi feature you are experiencing, not a
tapestry issue.

It has been years since we have used acegi security where i work, but if my
memory serves me correctly, you have to set a property called something like
"alwaysUseDefaultTargetUrl" to true on your authentication processing filter
and then your "/LoginRedirectDispatcher.html" page (page-123?) should of
course do the right thing.

Hope this helps.

-- 
Regards Chris


On Tue, Jun 14, 2011 at 11:23 PM, sunilmanu wrote:

> Hi,
>
> its Tapestry 4.0.2. We use ACEGI for the authentication. Below is how its
> configured in
>
> /* hivemodule.xml *
> ***/
>
>
> interface="web.filters.FormProcessor">
>
> initialize-method="afterPropertiesSet">
> value="/HomePage.html"
> />
> value="/LoginRedirectDispatcher.html" />
> value="/j_acegi_security_check" />
> value="false" />
>
>
>
>
> interface="org.acegisecurity.ui.AuthenticationEntryPoint">
>
>
>
>
>
>
>
>
>
>
> /* FormProcessingFilter.java *
> **/
> public class FormProcessingFilter extends AuthenticationProcessingFilter
> implements FormProcessor  {
> 
> 
>
>public boolean attemptAuthentication( String username, String
> password ) {
>UsernamePasswordAuthenticationToken authRequest = new
> UsernamePasswordAuthenticationToken( username, password );
>authRequest.setDetails(
> authenticationDetailsSource.buildDetails( request
> ) );
>
>Authentication authResult;
>
>try {
>authResult =
> getAuthenticationManager().authenticate( authRequest );
>} catch( AuthenticationException failed ) {
>failed.printStackTrace();
>
>  SecurityContextHolder.getContext().setAuthentication( null );
>return false;
>}
>
>try {
>successfulAuthentication( request, response,
> authResult );
>} catch( IOException e ) {
>log.error("--(authentication )IOException--: " +
> e.getMessage() );
>return false;
>}
>
>return true;
>}
>
>@Override
>protected void onSuccessfulAuthentication(HttpServletRequest request,
> HttpServletResponse response,Authentication authResult) throws IOException{
>
> //  System.out.println("in successfull authentation
> method.");
>  GrantedAuthority[] authArray = authResult.getAuthorities();
>  for (int i = 0; i < authArray.length; i++) {
> //System.out.println("The Role "+ i+" = " +authArray[i] + "
> : " + authResult.getName());
>  }
>  HttpSession session = request.getSession();
>  SecurityContext sc = SecurityContextHolder.getContext();
>  sc.setAuthentication(authResult);
>  session.setAttribute("ACEGI_SECURITY_CONTEXT", sc);
>}
>
>
>
>
> /* FormProcessingFilter.java *
> **/
> public class FormAuthenticationEntryPoint extends
> AuthenticationProcessingFilterEntryPoint {
>public void commence(ServletRequest request, ServletResponse
> response,
>AuthenticationException authException) throws
> IOException,
> ServletException {
>((HttpServletResponse) response).addHeader("Connection",
> "close");
>super.commence(request, response, authException);
>}
> }
>
>
> Thanks,
> Sunil
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Tapestry-Remembers-which-page-to-navigate-after-User-Logs-in-tp4489125p4489354.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: chenillekit

2011-05-18 Thread Chris Collins
Yeh I could get to the website, noticed the last published date and when I went 
wondering the maven repo that was mentioned on the site I only saw 1.1.0. That 
version exploded with T5.2.5. I did a search and found someones comment that 
there was a 1.3.2. which seems to work.  

This project is center stage on the front page of the tapestry website, there 
isnt a single mention that its somewhat abandoned nor what the correct maven 
versions are for what release.  Is there any chance that could be fixed at 
least to prevent wondering souls like myself asking dumb questions like I did? 
:-}

Would you mind sharing the reasoning behind switching from Maven?  I am late to 
the party and only just switched to maven :-}

Best

C
On May 18, 2011, at 6:50 AM, Massimo Lusetti wrote:

> On Wed, May 18, 2011 at 3:12 PM, Michael Dukaczewski
>  wrote:
> 
>> Yes, the site is reachable, but ...
>> "Last Published: 2009-09-18"
>> ... so it is almost dead.
> 
> Sure the site is dead and I'll not fix till I'll switch to something
> other then maven but the maven repo is updated
> 
> -- 
> Massimo
> http://meridio.blogspot.com
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



chenillekit

2011-05-18 Thread Chris Collins
Does anyone know if chenillekit is dead?  A quick play trying to use it with 
t5.2.5 failed and seems the mailing lists on google don't exist anymore?

C
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: transposed form loop

2011-05-04 Thread Chris Poulsen
Hi,

Can't you just prepare/transpose your model in java and keep the template
simple?

-- 
Regards, Chris


On Wed, May 4, 2011 at 7:28 AM, Paul Stanton  wrote:

> Hi all,
>
> I have a strange requirement and i'm not clear on the recommended tapestry
> approach... (T5.1.2)
>
> It seems similar to AjaxFormLoop or Form+Loop except that I need to
> transpose the table, ie each Column is a record and each Row is an
> attribute.
>
> Is there a way to use AjaxFormLoop in a transposed mode?
>
> Regards, Paul.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
Now I'm all curious. After looking through
FieldValidatorDefaultSource, FieldValidatorSource and the
ValidationContstraintGenerator implementations, I'm not sure how a
numeric field would automatically be validated as such. The Regexp
validator is only reference in TapestryModule, which allows you to
explicitly use it, but you're talking about something automatic.

I'm wondering what lead you to believe it would be automatically
generated in the first place? Though Howard's suggestion that it isn't
working right seems to imply that it should be doing that...

On Thu, Mar 31, 2011 at 11:04 AM, Adam Zimowski  wrote:
> :) I don't think I'm in position to teach Tapestry to others, I'm
> still learning myself But, using Eclipse I looked at class
> hierarchy for:
>
> org.apache.tapestry5.AbstractValidator
>
> and see that Tapestry provides only the following out of the box:
>
> Email, Max, MaxLength, Min, MinLength, None, Regexp and Required
>
> So, just by guessing, I'd venture to say that Tapestry uses Regexp
> validator to test if numeric field contains indeed a numeric value.
> I'd also suspect that if there is a bug, it's probably in the regular
> expression passed to Regexp validator on numeric field test, not the
> validator itself.
>
> Again, I'm still learning myself, so somebody that actually knows for
> sure would have to confirm, but that's be my guess.
>
> Adam
>
> On Thu, Mar 31, 2011 at 10:59 AM, Chris Norris
>  wrote:
>> Well perhaps you can teach me a few things. I'm trying to figure out
>> by what mechanism tapestry would be validating this. We generally
>> specify our custom NumericValidator on numeric fields. Is there some
>> sort of automatic validation that can occur? I don't see much mention
>> of it on this page: http://tapestry.apache.org/input-validation.html
>>
>> On Thu, Mar 31, 2011 at 10:54 AM, Adam Zimowski  wrote:
>>> No problem. Howard mentioned this may be a Tapestry bug. I'm in no
>>> immediate rush as my project isn't going live until next year, so
>>> hopefully by then it gets fixed.
>>>
>>> Adam
>>>
>>> On Thu, Mar 31, 2011 at 10:51 AM, Chris Norris
>>>  wrote:
>>>> Sorry, I was completely wrong. I was looking at a NumericValidator
>>>> that we wrote, not a Tapestry one.
>>>>
>>>> On Thu, Mar 31, 2011 at 9:43 AM, Adam Zimowski  
>>>> wrote:
>>>>> My client side validation is disabled. This happens on my shopping
>>>>> cart page where I have multiple forms (inside a loop) with indexed
>>>>> trackers ( Map. You can find complete code
>>>>> for the ShoppingCart page which exhibits this behavior in another
>>>>> thread which I posted recently:
>>>>>
>>>>> "T5: form validation with pre-existing errors"
>>>>>
>>>>> The actual numeric field which exhibits this is defined in the template 
>>>>> as:
>>>>>
>>>>> >>>> label="prop:quantityLabel" validate="required" size="2"/>
>>>>>
>>>>>
>>>>>       @Component(parameters = {"tracker=tracker"})
>>>>>       private Form cartForm;
>>>>>
>>>>>       @Persist(PersistenceConstants.FLASH)
>>>>>       private Map indexedTrackers;
>>>>>
>>>>> public ValidationTracker getTracker() {
>>>>>               if(indexedTrackers == null) return new 
>>>>> ValidationTrackerImpl();
>>>>>               return indexedTrackers.get(index);
>>>>>       }
>>>>>
>>>>>       public void setTracker(ValidationTracker aTracker) {
>>>>>
>>>>>               if(indexedTrackers == null) {
>>>>>                       if(log.isTraceEnabled()) log.trace("crating
>>>>> indexed trackers map");
>>>>>                       indexedTrackers = new HashMap>>>> ValidationTracker>();
>>>>>               }
>>>>>
>>>>>               if(log.isTraceEnabled()) {
>>>>>                       log.trace("setting tracker for index: " + index);
>>>>>               }
>>>>>
>>>>>               indexedTrackers.put(index, aTracker);
>>>>>       }
>>>>>
>>>>> In addition, this field carries a mixin:
>>>>>
>>>>> @Component

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
Well perhaps you can teach me a few things. I'm trying to figure out
by what mechanism tapestry would be validating this. We generally
specify our custom NumericValidator on numeric fields. Is there some
sort of automatic validation that can occur? I don't see much mention
of it on this page: http://tapestry.apache.org/input-validation.html

On Thu, Mar 31, 2011 at 10:54 AM, Adam Zimowski  wrote:
> No problem. Howard mentioned this may be a Tapestry bug. I'm in no
> immediate rush as my project isn't going live until next year, so
> hopefully by then it gets fixed.
>
> Adam
>
> On Thu, Mar 31, 2011 at 10:51 AM, Chris Norris
>  wrote:
>> Sorry, I was completely wrong. I was looking at a NumericValidator
>> that we wrote, not a Tapestry one.
>>
>> On Thu, Mar 31, 2011 at 9:43 AM, Adam Zimowski  wrote:
>>> My client side validation is disabled. This happens on my shopping
>>> cart page where I have multiple forms (inside a loop) with indexed
>>> trackers ( Map. You can find complete code
>>> for the ShoppingCart page which exhibits this behavior in another
>>> thread which I posted recently:
>>>
>>> "T5: form validation with pre-existing errors"
>>>
>>> The actual numeric field which exhibits this is defined in the template as:
>>>
>>> >> label="prop:quantityLabel" validate="required" size="2"/>
>>>
>>>
>>>       @Component(parameters = {"tracker=tracker"})
>>>       private Form cartForm;
>>>
>>>       @Persist(PersistenceConstants.FLASH)
>>>       private Map indexedTrackers;
>>>
>>> public ValidationTracker getTracker() {
>>>               if(indexedTrackers == null) return new 
>>> ValidationTrackerImpl();
>>>               return indexedTrackers.get(index);
>>>       }
>>>
>>>       public void setTracker(ValidationTracker aTracker) {
>>>
>>>               if(indexedTrackers == null) {
>>>                       if(log.isTraceEnabled()) log.trace("crating
>>> indexed trackers map");
>>>                       indexedTrackers = new HashMap>> ValidationTracker>();
>>>               }
>>>
>>>               if(log.isTraceEnabled()) {
>>>                       log.trace("setting tracker for index: " + index);
>>>               }
>>>
>>>               indexedTrackers.put(index, aTracker);
>>>       }
>>>
>>> In addition, this field carries a mixin:
>>>
>>> @Component(id=ID_QUANTITY_FIELD, parameters 
>>> ={"AttachError.message=fieldError"})
>>> @MixinClasses(value=AttachError.class)
>>> private TextField quantityField;
>>>
>>> @MixinAfter
>>> public class AttachError {
>>>
>>>        @Parameter(required = true, allowNull = true)
>>>        private String message;
>>>
>>>        @Environmental
>>>        private ValidationTracker tracker;
>>>
>>>        @InjectContainer
>>>        private Field field;
>>>
>>>
>>>        void setupRender() {
>>>                if (message != null) {
>>>                        tracker.recordError(field, message);
>>>                }
>>>        }
>>> }
>>>
>>>  public String getFieldError() {
>>>               String error = null;
>>>               ValidationTracker tracker = getTracker();
>>>               if(tracker != null && tracker.getError(quantityField) != 
>>> null) {
>>>                       return null;
>>>               }
>>>               CartItemBean cib = 
>>> findCartItem(cartDisplayItem.getLineNumber());
>>>
>>>    // look up error in CartItemBean and if found return it, or return null;
>>>
>>>   return error;
>>> }
>>>
>>> Let me know, perhaps I am doing something wrong..
>>>
>>> Adam
>>>
>>> On Thu, Mar 31, 2011 at 9:03 AM, Chris Norris
>>>  wrote:
>>>> The Tapestry NumericValidator seems to rely on whether
>>>> Double.valueOf(String) will throw an exception, which it does for
>>>> '1k'.
>>>>
>>>> How are you configuring and using your validator?
>>>>
>>>> On Tue, Mar 29, 2011 at 5:19 PM, Adam Zimowski  
>>>> wrote:
>>>>> It is server side. Looks like if input starts with a digit, Tapestr

Re: T5: built-in numeric validator

2011-03-31 Thread Chris Norris
Sorry, I was completely wrong. I was looking at a NumericValidator
that we wrote, not a Tapestry one.

On Thu, Mar 31, 2011 at 9:43 AM, Adam Zimowski  wrote:
> My client side validation is disabled. This happens on my shopping
> cart page where I have multiple forms (inside a loop) with indexed
> trackers ( Map. You can find complete code
> for the ShoppingCart page which exhibits this behavior in another
> thread which I posted recently:
>
> "T5: form validation with pre-existing errors"
>
> The actual numeric field which exhibits this is defined in the template as:
>
>  label="prop:quantityLabel" validate="required" size="2"/>
>
>
>       @Component(parameters = {"tracker=tracker"})
>       private Form cartForm;
>
>       @Persist(PersistenceConstants.FLASH)
>       private Map indexedTrackers;
>
> public ValidationTracker getTracker() {
>               if(indexedTrackers == null) return new ValidationTrackerImpl();
>               return indexedTrackers.get(index);
>       }
>
>       public void setTracker(ValidationTracker aTracker) {
>
>               if(indexedTrackers == null) {
>                       if(log.isTraceEnabled()) log.trace("crating
> indexed trackers map");
>                       indexedTrackers = new HashMap ValidationTracker>();
>               }
>
>               if(log.isTraceEnabled()) {
>                       log.trace("setting tracker for index: " + index);
>               }
>
>               indexedTrackers.put(index, aTracker);
>       }
>
> In addition, this field carries a mixin:
>
> @Component(id=ID_QUANTITY_FIELD, parameters 
> ={"AttachError.message=fieldError"})
> @MixinClasses(value=AttachError.class)
> private TextField quantityField;
>
> @MixinAfter
> public class AttachError {
>
>        @Parameter(required = true, allowNull = true)
>        private String message;
>
>        @Environmental
>        private ValidationTracker tracker;
>
>        @InjectContainer
>        private Field field;
>
>
>        void setupRender() {
>                if (message != null) {
>                        tracker.recordError(field, message);
>                }
>        }
> }
>
>  public String getFieldError() {
>               String error = null;
>               ValidationTracker tracker = getTracker();
>               if(tracker != null && tracker.getError(quantityField) != null) {
>                       return null;
>               }
>               CartItemBean cib = 
> findCartItem(cartDisplayItem.getLineNumber());
>
>    // look up error in CartItemBean and if found return it, or return null;
>
>   return error;
> }
>
> Let me know, perhaps I am doing something wrong..
>
> Adam
>
> On Thu, Mar 31, 2011 at 9:03 AM, Chris Norris
>  wrote:
>> The Tapestry NumericValidator seems to rely on whether
>> Double.valueOf(String) will throw an exception, which it does for
>> '1k'.
>>
>> How are you configuring and using your validator?
>>
>> On Tue, Mar 29, 2011 at 5:19 PM, Adam Zimowski  wrote:
>>> It is server side. Looks like if input starts with a digit, Tapestry is 
>>> happy :)
>>>
>>> Adam
>>>
>>> On Tue, Mar 29, 2011 at 5:05 PM, Howard Lewis Ship  wrote:
>>>> Seems like a bug to me!  Surprising, though. Is this server-side or
>>>> client-side validation?
>>>>
>>>> On Tue, Mar 29, 2011 at 2:49 PM, Adam Zimowski  
>>>> wrote:
>>>>> For numeric fields, Tapestry validates correctly non-numeric input.
>>>>> However, input such as:
>>>>>
>>>>> 1k
>>>>> 1\
>>>>> etc..
>>>>>
>>>>> passes the validation.
>>>>>
>>>>> Am I missing something?
>>>>>
>>>>> Adam
>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Howard M. Lewis Ship
>>>>
>>>> Creator of Apache Tapestry
>>>>
>>>> The source for Tapestry training, mentoring and support. Contact me to
>>>> learn how I can get you up and productive in Tapestry fast!
>>>

Re: How do I set the anchor of the current page?

2011-03-31 Thread Chris Norris
Instead of returning null, why not return a url that has the anchor set?

On Tue, Mar 29, 2011 at 1:04 PM, LLTYK  wrote:
> So someone clicked something on my page, and whatever event handler returns
> null/is void. Is there a way to set the anchor in this case? I know there's
> a setAnchor on a Link, but that doesn't seem to be the easiest way (since
> all these event handlers weren't returning anything to begin with).
>
> --
> View this message in context: 
> http://tapestry-users.832.n2.nabble.com/How-do-I-set-the-anchor-of-the-current-page-tp6220281p6220281.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Generating popup window after form success

2011-03-31 Thread Chris Norris
I'd probably just set a value on the next page to be rendered after
the form that would use JavaScript support to create the popup.

On Wed, Mar 30, 2011 at 5:13 PM, Rich M  wrote:
> Hi,
>
> I'm wondering if there is a good strategy to create a popup window after a
> successful form submit. The concept here is to popup a Voucher/Coupon window
> for the user if they complete a successful purchase.
>
> I've researched the basics of the concept in terms of HTML forms. You can
> run some Javascript to open a new window on submission of an HTML form. I'd
> like to be able to limit this functionality to only occur if the transaction
> is successful, in other words after the onSuccess method has run. Is there
> any means to fire javascript at this stage before a page refresh, or should
> I be looking rather at persisted fields and conditionally executing the
> javascript on page rending after the onSuccess method invokes a re-render of
> the page?
>
> Looking at the Event constants in the tapestry.js, I didn't immediately see
> an event beyond prepare/validate for forms that I might observe.
>
> Thanks,
> Rich
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



<    2   3   4   5   6   7   8   9   10   11   >