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

Re: Tynamo Security does not honor secure-enabled, @Security annotation?

2011-11-01 Thread Lenny Primak
Thank you Kalle,
JIRA issue submitted: http://jira.codehaus.org/browse/TYNAMO-103

On Nov 1, 2011, at 11:33 PM, Kalle Korhonen wrote:

> On Tue, Nov 1, 2011 at 5:37 PM, Lenny Primak  wrote:
>> secure-enabled = true...
>> I have a pretty simple authenticated page...
>> @RequiresRoles(logical = Logical.OR, value = { Role.LogisticsRole, 
>> Role.AccountingRole, Role.PalletsRole })
>> @Secure
>> public class TapPage
>> {
>> ...
>> }
>> When the page is redirected to the login screen (no authentication yet) and 
>> is called from plain old http:// URL,
>> the login screen is shown, but it's still the http:// protocol that is used.
>> According to the Tapestry documentation @Scecure redirects to https:// URL 
>> if the page is already not called through https.
>> This works, until tynamo security gets involved and points to the login 
>> screen.
>> Any chance of getting this fixed?
> 
> Please file an issue. I'll cut a new version of tapestry-security once
> Shiro 1.2 and T5.3 is out.
> 
> 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



Re: Update Zone in form1 from form2

2011-11-01 Thread Steve Eynon
Not too sure but... if zoneOne and zoneTwo are injected components,
try returning zone.getBody() instead - as in:

Object onSelectedFromUpdate() {
return new MultiZoneUpdate("zoneOne",
zoneOne.getBody()).add("zoneTwo", zoneTwo.getBody());
}

Steve.


On 2 November 2011 03:27, George Christman  wrote:
> I simplified my problem with a small code example. Hopefully this helps.
>
>
> 
>        
>               This select menu will trigger the popup box.
>                t:event="newFundingChanged" t:context="lineItemFunding.tempId"
> value="lineItemFunding.funding" model="fundingModel"
> encoder="selectEncoder" zoneupdater.zone="fundingZone"/>
>
>        
> 
>
> This is the popup box that contains a text field which will update the
> select menu in form 1 on submit
> 
>        
>             
>             
>        
> 
>
>
> Object onSelectedFromUpdate() {
>         return new MultiZoneUpdate("zoneOne", zoneOne).add("zoneTwo",
> zoneTwo);
> }
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Update-Zone-in-form1-from-form2-tp4955889p4956100.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: pagecatalog and servicestatus

2011-11-01 Thread Steve Eynon
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
> 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:
>>>
>>> 

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):
>> 
>> 
>> 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.
>

Re: pagecatalog and servicestatus

2011-11-01 Thread Steve Eynon
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):
>
> 
> 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 yo

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 Steve Eynon
(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):

 
 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

Re: pagecatalog and servicestatus

2011-11-01 Thread Steve Eynon
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



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

Re: [ANNOUNCE] Apache Tapestry preview 5.3-rc-1

2011-11-01 Thread dh ning
A pleasure! Done.

https://issues.apache.org/jira/browse/TAP5-1741

Thanks,
DH

2011/11/1 Howard Lewis Ship 

> It is possible, can you open up a JIRA issue and attach your template?
>
> On Tue, Nov 1, 2011 at 3:01 AM, dh ning  wrote:
> > Me too where tml contains Chinese words.
> >
> > Should be caused by the html5 doc type changes?
> >
> > Caused by: java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8
> > sequence.
> >at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown
> Source)
> >at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
> >at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
> >at org.apache.xerces.impl.XMLEntityScanner.scanLiteral(Unknown
> > Source)
> >at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown
> > Source)
> >at
> > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown
> > Source)
> >at
> > org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> > Source)
> >at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> > Source)
> >at
> >
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> > Source)
> >at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> >at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> > Source)
> >at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> >at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
> >at
> >
> org.apache.tapestry5.internal.services.XMLTokenStream.parse(XMLTokenStream.java:306)
> >at
> >
> org.apache.tapestry5.internal.services.SaxTemplateParser.parse(SaxTemplateParser.java:163)
> >
> >
> > 2011/11/1 Donyee 
> >
> >> Both rc-1 and rc-2, I got this " Invalid byte 1 of 1-byte UTF-8
> sequence."
> >> but works fine with beta-26
> >> is there any new changes??
> >>
> >>
> >>
> >> 2011/11/1 Howard Lewis Ship 
> >>
> >> > Uh, yes. It's been a trying afternoon.
> >> >
> >> > On Mon, Oct 31, 2011 at 3:26 PM, Muhammad Gelbana <
> m.gelb...@gmail.com>
> >> > wrote:
> >> > > You mean 5.3-rc-2 I suppose.
> >> > >
>


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 Steve Eynon
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



Re: Tynamo Security does not honor secure-enabled, @Security annotation?

2011-11-01 Thread Kalle Korhonen
On Tue, Nov 1, 2011 at 5:37 PM, Lenny Primak  wrote:
> secure-enabled = true...
> I have a pretty simple authenticated page...
> @RequiresRoles(logical = Logical.OR, value = { Role.LogisticsRole, 
> Role.AccountingRole, Role.PalletsRole })
> @Secure
> public class TapPage
> {
> ...
> }
> When the page is redirected to the login screen (no authentication yet) and 
> is called from plain old http:// URL,
> the login screen is shown, but it's still the http:// protocol that is used.
> According to the Tapestry documentation @Scecure redirects to https:// URL if 
> the page is already not called through https.
> This works, until tynamo security gets involved and points to the login 
> screen.
> Any chance of getting this fixed?

Please file an issue. I'll cut a new version of tapestry-security once
Shiro 1.2 and T5.3 is out.

Kalle

-
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



Re: [ANN] Tapestry Bootstrap Module

2011-11-01 Thread Donyee
Great Idea!

2011/10/30 Barry Books 

> I'm working on a couple of projects that will use Twitter Bootstrap
> http://twitter.github.com/bootstrap/ templates so I decided to create
> a Tapestry Module for this. The project is on GitHub
> https://github.com/trsvax/tapestry-bootstrap and I've been working on
> it about a week. It contains wrappers for the various Bootstrap items
> such as alerts, popups etc.
>
> Perhaps the most interesting component is the MediaGrid. The idea is
> to create a component that supports pagination as well as javascript
> scrolling on demand. It's somewhat like the Tapestry Grid but built in
> a completely different way. It uses a subcomponents controlled through
> the environment setup by a mixin. The presentation is in the
> components and the mixin is the controller. There are interfaces
> between the parts and each one is pluggable. The components receive
> the parameters like this:
>
> @Parameter(value="prop:alert?.type",defaultPrefix="literal")
> private String type;
>
> @SuppressWarnings("unused")
> @Environmental(false)
> @Property
> private AlertEnvironment alert;
>
> and the controller looks something like this
>
> https://github.com/trsvax/tapestry-bootstrap/blob/master/src/main/java/com/trsvax/bootstrap/mixins/Pager.java
>
> There is also a javascript mixin
>
> https://github.com/trsvax/tapestry-bootstrap/blob/master/src/main/java/com/trsvax/bootstrap/mixins/InfiniteScroll.java
> that hides the pagination component and adds items to the grid
> dynamically as the user scrolls.
>
> I've been trying for a while to figure out a way to set component
> parameter defaults without success and this is the first
> implementation I'm happy with. I've also included a mixin to push
> objects into the environment
>
> https://github.com/trsvax/tapestry-bootstrap/blob/master/src/main/java/com/trsvax/bootstrap/mixins/PushEnvironment.java
>
> There is an example page that uses most of the components.
>
>
> https://github.com/trsvax/tapestry-bootstrap/blob/master/src/test/resources/com/trsvax/bootstrap/pages/Index.tml
>
> and can be run with mvn jetty:run
>
> I would say the current code is mostly usable but the Media Grid needs
> some work. Since that's the main reason I created the module it will
> be improved shortly.
>
> I've already had some very useful feedback and would appreciate more.
> Code is also welcome.
>
> Lastly I've created a blog to chronicle this project. It also used
> Bootstrap and is written in Tapestry.
>
> http://trsvax.com/blog/
>
> Thanks
> Barry
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Yet Another Java EE Developer!


Tynamo Security does not honor secure-enabled, @Security annotation?

2011-11-01 Thread Lenny Primak
Hi,

secure-enabled = true...
I have a pretty simple authenticated page...

@RequiresRoles(logical = Logical.OR, value = { Role.LogisticsRole, 
Role.AccountingRole, Role.PalletsRole })
@Secure
public class TapPage
{
...
}

When the page is redirected to the login screen (no authentication yet) and is 
called from plain old http:// URL,
the login screen is shown, but it's still the http:// protocol that is used.

According to the Tapestry documentation @Scecure redirects to https:// URL if 
the page is already not called through https.
This works, until tynamo security gets involved and points to the login screen.

Any chance of getting this fixed?

Thanks!



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



Unknown beaneditform save exception

2011-11-01 Thread TG
I am not sure what is the issue, but I noticed lately that I am not able to
save a form anymore for some reason. I can provide more details if you need
any further details, but the exception occured consistently while I am
saving the form i.e.

Nov 1, 2011 7:59:20 PM
com.google.appengine.tools.development.DevAppServerImpl start
INFO: The server is running at http://localhost:/
Nov 1, 2011 8:12:19 PM
org.apache.tapestry5.ioc.internal.OperationTrackerImpl log
SEVERE: org.apache.tapestry5.runtime.ComponentEventException
Nov 1, 2011 8:12:19 PM
org.apache.tapestry5.ioc.internal.OperationTrackerImpl log
SEVERE: Operations trace:
Nov 1, 2011 8:12:19 PM
org.apache.tapestry5.ioc.internal.OperationTrackerImpl log
SEVERE: [ 1] Triggering event 'action' on UserSave:beaneditform.form
Nov 1, 2011 8:12:19 PM
org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler
handleRequestException
SEVERE: Processing of request failed with uncaught exception:
org.apache.tapestry5.ioc.internal.OperationException
org.apache.tapestry5.ioc.internal.OperationException [at
classpath:org/apache/tapestry5/corelib/components/BeanEditForm.tml, line 2]
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.logAndRethrow(OperationTrackerImpl.java:121)
at
org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:88)
at
org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1010)
at
org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
at
org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1040)
at
org.apache.tapestry5.internal.services.ComponentEventRequestHandlerImpl.handle(ComponentEventRequestHandlerImpl.java:81)
at
org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:42)
at $ComponentEventRequestHandler_125243979eba1fe9.handle(Unknown Source)
at
org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42)
at $ComponentEventRequestHandler_125243979eba1fe9.handle(Unknown Source)
at
org.apache.tapestry5.services.TapestryModule$40.handle(TapestryModule.java:2444)
at $ComponentEventRequestHandler_125243979eba1fe9.handle(Unknown Source)
at $ComponentEventRequestHandler_125243979eba1efa.handle(Unknown Source)
at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43)
at
org.apache.tapestry5.services.InitializeActivePageName.handleComponentEvent(InitializeActivePageName.java:39)
at 
$ComponentRequestHandler_125243979eba1efc.handleComponentEvent(Unknown
Source)
at 
$ComponentRequestHandler_125243979eba1edf.handleComponentEvent(Unknown
Source)
at
org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispatch(ComponentEventDispatcher.java:46)
at $Dispatcher_125243979eba1ee1.dispatch(Unknown Source)
at $Dispatcher_125243979eba1edc.dispatch(Unknown Source)
at
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:298)
at
org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
at $RequestHandler_125243979eba1edd.service(Unknown Source)
at
org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:895)
at $RequestHandler_125243979eba1edd.service(Unknown Source)
at
org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:885)
at $RequestHandler_125243979eba1edd.service(Unknown Source)
at
org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
at $RequestHandler_125243979eba1edd.service(Unknown Source)
at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)
at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:95)
at
org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
at
org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:119)
at $RequestHandler_125243979eba1edd.service(Unknown Source)
at $RequestHandler_125243979eba1ed1.service(Unknown Source)
at
org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:249)
at
org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
at $HttpServletRequestHandler_125243979eba1ed3.service(Unknown Source)
at
org.apache.tapestry5.internal.services.

Re: 5.3-rc-2 Exception

2011-11-01 Thread Thiago H. de Paula Figueiredo
On Tue, 01 Nov 2011 19:37:06 -0200, Tony Nelson   
wrote:



void setupRender() {
try {
response.sendRedirect(linkSource.createPageRenderLinkWithContext(ViewUser.class,  
userId));

} catch (IOException ioe) {
// shrug?
}

}


Why don't you do the redirection the Tapestry way by returning a ViewUser  
instance on onActivate() instead of using Response.sendRedirect()?



The exception I get is:
java.lang.NullPointerException

org.apache.tapestry5.internal.services.assets.CompressionAnalyzerImpl.isCompressable(CompressionAnalyzerImpl.java:34)


This is an exception I once get in 5.1.0.5, but for a completely unrelated  
scenario.


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



Re: pagecatalog and servicestatus

2011-11-01 Thread Howard Lewis Ship
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



5.3-rc-2 Exception

2011-11-01 Thread Tony Nelson
I have a very simple page that does nothing but redirect to another page.  It 
works fine under jetty, but fails under tomcat 6.0.33.

Any help would be greatly appreciated.

My page class is:

package com.starpoint.instihire.pages.view;

import com.starpoint.instihire.pages.user.ViewUser;
import org.apache.tapestry5.annotations.PageActivationContext;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.services.PageRenderLinkSource;
import org.apache.tapestry5.services.Response;

import java.io.IOException;

/**
 */
public class User {

@Inject
private Response response;

@Inject
private PageRenderLinkSource linkSource;

@PageActivationContext
private Long userId;

void setupRender() {
try {

response.sendRedirect(linkSource.createPageRenderLinkWithContext(ViewUser.class,
 userId));
} catch (IOException ioe) {
// shrug?
}

}
}


The exception I get is:
java.lang.NullPointerException

org.apache.tapestry5.internal.services.assets.CompressionAnalyzerImpl.isCompressable(CompressionAnalyzerImpl.java:34)
$CompressionAnalyzer_195e0b3cd2a3f5.isCompressable(Unknown Source)

org.apache.tapestry5.internal.services.ResponseCompressionAnalyzerImpl.isCompressable(ResponseCompressionAnalyzerImpl.java:65)
$ResponseCompressionAnalyzer_195e0b3cd2a3ec.isCompressable(Unknown 
Source)

org.apache.tapestry5.internal.gzip.BufferedGZipOutputStream.openResponseOutputStream(BufferedGZipOutputStream.java:77)

org.apache.tapestry5.internal.gzip.BufferedGZipOutputStream.checkForCutover(BufferedGZipOutputStream.java:70)

org.apache.tapestry5.internal.gzip.BufferedGZipOutputStream.write(BufferedGZipOutputStream.java:116)
sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:202)
sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:263)
sun.nio.cs.StreamEncoder.write(StreamEncoder.java:106)
java.io.OutputStreamWriter.write(OutputStreamWriter.java:190)
java.io.BufferedWriter.flushBuffer(BufferedWriter.java:111)
java.io.BufferedWriter.write(BufferedWriter.java:212)
java.io.PrintWriter.write(PrintWriter.java:412)
java.io.PrintWriter.write(PrintWriter.java:429)
java.io.PrintWriter.print(PrintWriter.java:559)
org.apache.tapestry5.dom.Text.toMarkup(Text.java:59)
org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:901)
org.apache.tapestry5.dom.Element.toMarkup(Element.java:390)
org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:901)
org.apache.tapestry5.dom.Element.toMarkup(Element.java:390)
org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:901)
org.apache.tapestry5.dom.Element.toMarkup(Element.java:390)
org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:901)
org.apache.tapestry5.dom.Element.toMarkup(Element.java:390)
org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:901)
org.apache.tapestry5.dom.Element.toMarkup(Element.java:390)
org.apache.tapestry5.dom.Document.toMarkup(Document.java:166)
org.apache.tapestry5.dom.Node.toMarkup(Node.java:79)

org.apache.tapestry5.internal.services.MarkupWriterImpl.toMarkup(MarkupWriterImpl.java:56)

org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:73)
$PageResponseRenderer_195e0b3cd2a4b2.renderPageResponse(Unknown Source)

org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:85)
$RequestExceptionHandler_195e0b3cd2a3f9.handleRequestException(Unknown 
Source)

org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42)
$RequestHandler_195e0b3cd2a3fc.service(Unknown Source)

org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
$RequestHandler_195e0b3cd2a3fc.service(Unknown Source)

org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
$RequestHandler_195e0b3cd2a3fc.service(Unknown Source)

org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
$RequestHandler_195e0b3cd2a3fc.service(Unknown Source)

org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)

org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:95)

org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)

org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:119)
$RequestHandler_195e0b3cd2a3fc.service(Unknown Source)
$RequestHandler_195e0b3cd2a3ef.service(Unknown Source)


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: Update Zone in form1 from form2

2011-11-01 Thread George Christman
I simplified my problem with a small code example. Hopefully this helps. 




   This select menu will trigger the popup box. 
   




This is the popup box that contains a text field which will update the
select menu in form 1 on submit


 
 




Object onSelectedFromUpdate() {
 return new MultiZoneUpdate("zoneOne", zoneOne).add("zoneTwo",
zoneTwo);
}

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Update-Zone-in-form1-from-form2-tp4955889p4956100.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: Multi-page Grid inside a Form

2011-11-01 Thread Thiago H. de Paula Figueiredo
On Tue, 01 Nov 2011 16:35:59 -0200, Michael Prescott  
 wrote:



Grid seems to have some obvious problems for editability - click anything
on the pager bar, or any of the sort buttons, and you lose your edits.
Inge Solvoll mentioned this in 2009, but I can't find any conclusion.
http://tapestry.1045711.n5.nabble.com/Pager-breaks-grid-inside-form-tt2435929.html#none
Looks like the way to go is to use a Loop and then build my own sorting  
and paging.  Can anyone confirm that this is a standard way to go?


I'd try some JavaScript to submit the form before the clicks to paging  
links are followed by the browser.


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



Re: Submit inside loop

2011-11-01 Thread Josh Canfield
onValidate is fired by your form after all of fields have been
processed, your fields also trigger an validate event. You may want to
be more specific about which field/form your validate method is
intended to service.

Here is a test:













    @Property
    private String text1;    @Property    private String text2;
@Property    private String text3;
    @Property    private int index;
    @Inject    private Logger log;

@Inject
private Environment environment;

void onPrepare() {
log.info("onPrepare()");
}

void onValidate() {
log.info("onValidate()");
}

void onValidate(String value) {
log.info("onValidate('{}')", value);
}

void onValidateFromText1(String value) {
log.info("onValidateFromText1('{}')", value);
}

void onSelected() {
log.info("onSelected()");
FormSupport formSupport = environment.peek(FormSupport.class);
formSupport.defer(new Runnable() {

public void run() {
log.info("onSelected() deferred");
}
});
}

I typed a,b,c into the form fields, here is the output:

[INFO] pages.SubmitTests onPrepare()
[INFO] pages.SubmitTests onSelected()
[INFO] pages.SubmitTests onValidate('a')
[INFO] pages.SubmitTests onValidate()
[INFO] pages.SubmitTests onValidateFromText1('a')
[INFO] pages.SubmitTests onValidate('b')
[INFO] pages.SubmitTests onValidate()
[INFO] pages.SubmitTests onValidate('c')
[INFO] pages.SubmitTests onValidate()
[INFO] pages.SubmitTests onSelected() deferred
[INFO] pages.SubmitTests onValidate()


You can see that the onValidate is called for each field, in addition
to the single parameter onValidate, and the targeted
"onValidateFromText1".

Writing this example makes me think there should be a way to get the
component that is actually triggering an event. I don't think that's
currently possible...

Josh

On Tue, Nov 1, 2011 at 8:33 AM, George Christman
 wrote:
> Thanks Josh, I got it working. I do have one question though, I notice it
> runs things in the following order.
>
> onSelected
> onValidate
> formSupport.defer run code
> back to onValidate
> and back to onSelected
>
> Should I somehow be preventing it from rerunning the onValidate onSelected a
> second time?
>
> Thanks,
> George
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Submit-inside-loop-tp4946513p4955519.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



Update Zone in form1 from form2

2011-11-01 Thread George Christman
I have a form that contains two form fields, form1 and form2

Form1 contains all the main form data and form2 is a popup box surrounded by
a zone. 

Form2 popup box zone is triggered from a select menu within form1. The
select menu contains an add new value option. 

When the popup box zone is triggered, the popup box appears with the addrow
component. 

When you add a new row of data to the popup box and hit submit, I'm looking
to close out the box and update the select menu within form1. 

The easiest way to handle this would be to just commit it to the database,
but that isn't an option here, so I would need to update the session object. 

I'm using a multiZone component which seems to work find until it reloads
the select menu which is also contained within a zone. I think it's removing
the select menu zone from it's current location and giving me the following
exception. 

purchaserequestform.select must be enclosed by a Form component.

If anybody has any suggestions, it would be greatly appriciated. I'm not
sure if I zone component can be used in such away. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Update-Zone-in-form1-from-form2-tp4955889p4955889.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: Submit inside loop

2011-11-01 Thread George Christman
I figured out a way to handle the defer without having to defer the form. 
Seems to work perfectly.



   
  
  
   


private Integer action;

void onPrepare() {
}

void onValidate() {
}

void onSuccess() {
}

void onSelected(Integer action) {
this.action = action;
}

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Submit-inside-loop-tp4946513p4955823.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: Submit inside loop

2011-11-01 Thread George Christman
Josh, I should probable refrain the question, when using defer inside of
onSelected, could I get it to run after onValidate runs?

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Submit-inside-loop-tp4946513p4955694.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: Submit inside loop

2011-11-01 Thread George Christman
Thanks Josh, I got it working. I do have one question though, I notice it
runs things in the following order.

onSelected
onValidate
formSupport.defer run code
back to onValidate
and back to onSelected

Should I somehow be preventing it from rerunning the onValidate onSelected a
second time?

Thanks, 
George

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Submit-inside-loop-tp4946513p4955519.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: text/javascript not minimized and HTTP status 200

2011-11-01 Thread pico.dev
Yes, I'm using apache-tomcat-7.0.22, with the only additions of mysql
connector and java-mail libs.

If it is relevant my other enviroment is:
Arch Linux (64 bits).

java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.4)
(ArchLinux-6.b22_1.10.4-1-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode).

App is deployed into tomcat in expanded mode.

My list of libraries included in the WEB-INF/lib:
annotations-api-6.0.30.jar
antlr-2.7.7.jar
antlr-runtime-3.3.jar
aopalliance-1.0.jar
apache-mime4j-0.6.jar
bcprov-jdk15-135.jar
bsh-2.0b4.jar
c3p0-0.9.1.1.jar
cglib-nodep-2.2.jar
commons-codec-1.5.jar
commons-collections-3.2.1.jar
commons-fileupload-1.2.2.jar
commons-io-2.0.1.jar
commons-lang-2.4.jar
commons-lang3-3.0.jar
commons-logging-1.1.1.jar
cssparser-0.9.5.jar
dbcp-6.0.30.jar
dom4j-1.6.1.jar
easymock-3.0.jar
ehcache-core-2.4.3.jar
freemarker-2.3.18.jar
groovy-all-1.8.3.jar
gson-1.7.1.jar
guava-r09.jar
guice-2.0.jar
hibernate-commons-annotations-3.2.0.Final.jar
hibernate-core-3.6.8.Final.jar
hibernate-ehcache-3.6.8.Final.jar
hibernate-jpa-2.0-api-1.0.1.Final.jar
hibernate-validator-4.2.0.Final.jar
htmlunit-2.8.jar
htmlunit-core-js-2.8.jar
httpclient-4.0.2.jar
httpcore-4.0.1.jar
httpmime-4.0.1.jar
javassist-3.12.1.GA.jar
javax.inject-1.jar
jcommander-1.12.jar
jna-3.2.3.jar
js-1.6R7.jar
json-20080701.jar
jta-1.1.jar
juli-6.0.30.jar
junit-3.8.1.jar
log4j-1.2.16.jar
mockito-all-1.9.0-rc1.jar
mx4j-tools-3.0.1.jar
nekohtml-1.9.14.jar
objenesis-1.2.jar
plastic-5.3-rc-2.jar
quartz-2.1.0.jar
restfb-1.6.6.jar
sac-1.3.jar
serializer-2.7.1.jar
slf4j-api-1.6.1.jar
slf4j-log4j12-1.6.1.jar
snakeyaml-1.8.jar
stringtemplate-3.2.1.jar
tapestry5-annotations-5.3-rc-2.jar
tapestry-beanvalidator-5.3-rc-2.jar
tapestry-core-5.3-rc-2.jar
tapestry-facebook-0.0.1-SNAPSHOT.jar
tapestry-func-5.3-rc-2.jar
tapestry-hibernate-5.3-rc-2.jar
tapestry-hibernate-core-5.3-rc-2.jar
tapestry-ioc-5.3-rc-2.jar
tapestry-javadoc-5.3-rc-2.jar
tapestry-jmx-5.3-rc-2.jar
tapestry-json-5.3-rc-2.jar
tapestry-test-5.3-rc-2.jar
tapestry-upload-5.3-rc-2.jar
tapestry-yuicompressor-5.3-rc-2.jar
testng-5.14.9.jar
validation-api-1.0.0.GA.jar
xalan-2.7.1.jar
xercesImpl-2.9.1.jar
xml-apis-1.3.04.jar
yuicompressor-2.4.6.jar


Howard Lewis Ship wrote:
> 
> We're finding that YUICompressor doesn't work inside Tomcat.  Could
> this be the issue?
> 
> On Tue, Nov 1, 2011 at 5:48 AM, pico.dev .  wrote:
>> Hi!
>>
>> I've updated my app to Tapestry 5.3-rc-2 and I'm testing the
>> minification and production mode. I've included in my project the
>> tapestry-yuicompressor dependency and I've made contributions to the
>> ApplicationDefaults like this in my app module:
>>
>> public static void
>> contributeApplicationDefaults(MappedConfiguration
>> configuration) {
>>        configuration.add(SymbolConstants.PRODUCTION_MODE, "true");
>>        configuration.add(SymbolConstants.COMPRESS_WHITESPACE, "true");
>>        configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true");
>>        configuration.add(SymbolConstants.MINIFICATION_ENABLED, "true");
>>        configuration.add(SymbolConstants.COMPACT_JSON, "true");
>>        ...
>> }
>>
>> When I access to my application the text/css resources gets minimized
>> correctly but the text/javascript resources are returned like the
>> originals without any minimization.
>>
>> Also I noted that with PRODUCTION_MODE to "true" all text/css and
>> text/javascript assets are returned with HTTP status 200 code and the
>> transferred size of all resources of a request to my app is 290 KiB
>> according to Chrome Developer Tools. With PRODUCTION_MODE to "false"
>> the assets are returned with HTTP status 304 code and the transferred
>> size of all resources is 25 KiB.
>>
>> I'm missing something? Anyone with the same behavour?
>>
>> Cheers,
>>
>> -
>> To unsubscribe, e-mail: users-unsubscribe@.apache
>> For additional commands, e-mail: users-help@.apache
>>
>>
> 
> 
> 
> -- 
> 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-unsubscribe@.apache
> For additional commands, e-mail: users-help@.apache
> 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/text-javascript-not-minimized-and-HTTP-status-200-tp4955260p4955399.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: Insert Stylesheet to the Head top

2011-11-01 Thread Eugene Zhulkov
Sure I will :)

I'll try to do this tomorrow

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Insert-Stylesheet-to-the-Head-top-tp4952484p4955381.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: Insert Stylesheet to the Head top

2011-11-01 Thread Thiago H. de Paula Figueiredo
On Tue, 01 Nov 2011 12:41:46 -0200, Eugene Zhulkov   
wrote:



Thank you for reply,
I'll try it but think it will drastically increase overall processing
time...


Believe me, it won't. I've worked on projects that rely on Tapestry DOM  
rewriting heavilly and they don't have any performance problems. Please do  
a before and after comparison and post it here. :)


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



Re: Insert Stylesheet to the Head top

2011-11-01 Thread Eugene Zhulkov
Thank you for reply,

I'll try it but think it will drastically increase overall processing
time...  

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Insert-Stylesheet-to-the-Head-top-tp4952484p4955357.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: Insert Stylesheet to the Head top

2011-11-01 Thread trsvax
You should be able to do this with a MarkupRendererFilter

Here is an example of one that puts code after the body tag

https://github.com/trsvax/tapestry-facebook/blob/master/src/main/java/com/trsvax/tapestry/facebook/services/FBModule.java



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Insert-Stylesheet-to-the-Head-top-tp4952484p4955340.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: text/javascript not minimized and HTTP status 200

2011-11-01 Thread Howard Lewis Ship
We're finding that YUICompressor doesn't work inside Tomcat.  Could
this be the issue?

On Tue, Nov 1, 2011 at 5:48 AM, pico.dev .  wrote:
> Hi!
>
> I've updated my app to Tapestry 5.3-rc-2 and I'm testing the
> minification and production mode. I've included in my project the
> tapestry-yuicompressor dependency and I've made contributions to the
> ApplicationDefaults like this in my app module:
>
> public static void
> contributeApplicationDefaults(MappedConfiguration
> configuration) {
>        configuration.add(SymbolConstants.PRODUCTION_MODE, "true");
>        configuration.add(SymbolConstants.COMPRESS_WHITESPACE, "true");
>        configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true");
>        configuration.add(SymbolConstants.MINIFICATION_ENABLED, "true");
>        configuration.add(SymbolConstants.COMPACT_JSON, "true");
>        ...
> }
>
> When I access to my application the text/css resources gets minimized
> correctly but the text/javascript resources are returned like the
> originals without any minimization.
>
> Also I noted that with PRODUCTION_MODE to "true" all text/css and
> text/javascript assets are returned with HTTP status 200 code and the
> transferred size of all resources of a request to my app is 290 KiB
> according to Chrome Developer Tools. With PRODUCTION_MODE to "false"
> the assets are returned with HTTP status 304 code and the transferred
> size of all resources is 25 KiB.
>
> I'm missing something? Anyone with the same behavour?
>
> Cheers,
>
> -
> 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



Re: [ANNOUNCE] Apache Tapestry preview 5.3-rc-1

2011-11-01 Thread Howard Lewis Ship
It is possible, can you open up a JIRA issue and attach your template?

On Tue, Nov 1, 2011 at 3:01 AM, dh ning  wrote:
> Me too where tml contains Chinese words.
>
> Should be caused by the html5 doc type changes?
>
> Caused by: java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8
> sequence.
>        at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
>        at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
>        at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
>        at org.apache.xerces.impl.XMLEntityScanner.scanLiteral(Unknown
> Source)
>        at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>        at
> org.apache.tapestry5.internal.services.XMLTokenStream.parse(XMLTokenStream.java:306)
>        at
> org.apache.tapestry5.internal.services.SaxTemplateParser.parse(SaxTemplateParser.java:163)
>
>
> 2011/11/1 Donyee 
>
>> Both rc-1 and rc-2, I got this " Invalid byte 1 of 1-byte UTF-8 sequence."
>> but works fine with beta-26
>> is there any new changes??
>>
>>
>>
>> 2011/11/1 Howard Lewis Ship 
>>
>> > Uh, yes. It's been a trying afternoon.
>> >
>> > On Mon, Oct 31, 2011 at 3:26 PM, Muhammad Gelbana 
>> > wrote:
>> > > You mean 5.3-rc-2 I suppose.
>> > >
>> > > On Mon, Oct 31, 2011 at 11:32 PM, Howard Lewis Ship > > >wrote:
>> > >
>> > >> FYI: I found a minor problem in Tapestry 5.2-rc-1 and am
>> > >> building/uploading Tapestry 5.2-rc-2 right now.
>> > >>
>> > >> On Mon, Oct 31, 2011 at 11:05 AM, Howard Lewis Ship > >
>> > >> wrote:
>> > >> > We are very pleased to announce the first release candidate preview
>> of
>> > >> > Tapestry 5.3.
>> > >> >
>> > >> > Tapestry 5.3 is significantly faster than Tapestry 5.2, and is more
>> > >> > memory efficient ... a long with tons of significant new features,
>> > >> > improvements, and bug fixes.
>> > >> >
>> > >> > Details here:
>> > >>
>> > http://tapestry.apache.org/2011/10/31/tapestry-53-release-candidate.html
>> > >> >
>> > >> > This is still a preview release, but we encourage the Tapestry
>> > >> > community to upgrade to this release. With positive feedback (and no
>> > >> > show-stopping negative feedback) we should progress to a final
>> release
>> > >> > of 5.3 in a few weeks.
>> > >> >
>> > >> > For most users, the upgrade path is simply changing the version
>> > >> > number, and performing a clean compile.
>> > >> >
>> > >> > Note that with each new release, we get a slew of panicked messages
>> > >> > that Tapestry is broken in bizarre ways. These ALMOST ALWAYS turn
>> out
>> > >> > to be prior-release JARs still on the classpath, either in the
>> > >> > developer's working directory, or in a servlet container deployment
>> > >> > directory. Please carefully clean up your environment as part of the
>> > >> > upgrade!
>> > >> >
>> > >> > There are some cases where Tapestry 5.3 performs more rigorous
>> checks
>> > >> > than Tapestry 5.2; for example, 5.3 ensures that event handler
>> methods
>> > >> > that reference a component id ("onSuccessFromLogin") correspond to
>> an
>> > >> > actual component ("login"); in Tapestry 5.2, this was not checked
>> for,
>> > >> > and the event handler method would never fire ... it likely has a
>> typo
>> > >> > in its name, or is related to a component that was removed from the
>> > >> > template.  This particular check can be disabled:
>> > >> >
>> > >>
>> >
>> http://tapestry.apache.org/configuration.html#Configuration-tapestry.compatibility.unknowncomponentidcheck
>> > .
>> > >> ..
>> > >> >
>> > >> > It would be wise to start up your application under 5.3, then use
>> the
>> > >> > new PageCatalog page (http://localhost:8080/pagecatalog) and click
>> > the
>> > >> > "load all" link, to force all pages to be loaded. This will quickly
>> > >> > identify any coding problems in your application.
>> > >> >
>> > >> > --
>> > >> > 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
>> > >> >
>> > >>
>> > >>
>> > >>
>> > >> --
>> > >> Howard M. Lewis Ship
>> > >>
>> > >> Cre

text/javascript not minimized and HTTP status 200

2011-11-01 Thread pico.dev .
Hi!

I've updated my app to Tapestry 5.3-rc-2 and I'm testing the
minification and production mode. I've included in my project the
tapestry-yuicompressor dependency and I've made contributions to the
ApplicationDefaults like this in my app module:

public static void
contributeApplicationDefaults(MappedConfiguration
configuration) {
configuration.add(SymbolConstants.PRODUCTION_MODE, "true");
configuration.add(SymbolConstants.COMPRESS_WHITESPACE, "true");
configuration.add(SymbolConstants.COMBINE_SCRIPTS, "true");
configuration.add(SymbolConstants.MINIFICATION_ENABLED, "true");
configuration.add(SymbolConstants.COMPACT_JSON, "true");
...
}

When I access to my application the text/css resources gets minimized
correctly but the text/javascript resources are returned like the
originals without any minimization.

Also I noted that with PRODUCTION_MODE to "true" all text/css and
text/javascript assets are returned with HTTP status 200 code and the
transferred size of all resources of a request to my app is 290 KiB
according to Chrome Developer Tools. With PRODUCTION_MODE to "false"
the assets are returned with HTTP status 304 code and the transferred
size of all resources is 25 KiB.

I'm missing something? Anyone with the same behavour?

Cheers,

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



Re: [ANNOUNCE] Apache Tapestry preview 5.3-rc-1

2011-11-01 Thread dh ning
Me too where tml contains Chinese words.

Should be caused by the html5 doc type changes?

Caused by: java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8
sequence.
at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
at org.apache.xerces.impl.XMLEntityScanner.scanLiteral(Unknown
Source)
at org.apache.xerces.impl.XMLScanner.scanAttributeValue(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanAttribute(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at
org.apache.tapestry5.internal.services.XMLTokenStream.parse(XMLTokenStream.java:306)
at
org.apache.tapestry5.internal.services.SaxTemplateParser.parse(SaxTemplateParser.java:163)


2011/11/1 Donyee 

> Both rc-1 and rc-2, I got this " Invalid byte 1 of 1-byte UTF-8 sequence."
> but works fine with beta-26
> is there any new changes??
>
>
>
> 2011/11/1 Howard Lewis Ship 
>
> > Uh, yes. It's been a trying afternoon.
> >
> > On Mon, Oct 31, 2011 at 3:26 PM, Muhammad Gelbana 
> > wrote:
> > > You mean 5.3-rc-2 I suppose.
> > >
> > > On Mon, Oct 31, 2011 at 11:32 PM, Howard Lewis Ship  > >wrote:
> > >
> > >> FYI: I found a minor problem in Tapestry 5.2-rc-1 and am
> > >> building/uploading Tapestry 5.2-rc-2 right now.
> > >>
> > >> On Mon, Oct 31, 2011 at 11:05 AM, Howard Lewis Ship  >
> > >> wrote:
> > >> > We are very pleased to announce the first release candidate preview
> of
> > >> > Tapestry 5.3.
> > >> >
> > >> > Tapestry 5.3 is significantly faster than Tapestry 5.2, and is more
> > >> > memory efficient ... a long with tons of significant new features,
> > >> > improvements, and bug fixes.
> > >> >
> > >> > Details here:
> > >>
> > http://tapestry.apache.org/2011/10/31/tapestry-53-release-candidate.html
> > >> >
> > >> > This is still a preview release, but we encourage the Tapestry
> > >> > community to upgrade to this release. With positive feedback (and no
> > >> > show-stopping negative feedback) we should progress to a final
> release
> > >> > of 5.3 in a few weeks.
> > >> >
> > >> > For most users, the upgrade path is simply changing the version
> > >> > number, and performing a clean compile.
> > >> >
> > >> > Note that with each new release, we get a slew of panicked messages
> > >> > that Tapestry is broken in bizarre ways. These ALMOST ALWAYS turn
> out
> > >> > to be prior-release JARs still on the classpath, either in the
> > >> > developer's working directory, or in a servlet container deployment
> > >> > directory. Please carefully clean up your environment as part of the
> > >> > upgrade!
> > >> >
> > >> > There are some cases where Tapestry 5.3 performs more rigorous
> checks
> > >> > than Tapestry 5.2; for example, 5.3 ensures that event handler
> methods
> > >> > that reference a component id ("onSuccessFromLogin") correspond to
> an
> > >> > actual component ("login"); in Tapestry 5.2, this was not checked
> for,
> > >> > and the event handler method would never fire ... it likely has a
> typo
> > >> > in its name, or is related to a component that was removed from the
> > >> > template.  This particular check can be disabled:
> > >> >
> > >>
> >
> http://tapestry.apache.org/configuration.html#Configuration-tapestry.compatibility.unknowncomponentidcheck
> > .
> > >> ..
> > >> >
> > >> > It would be wise to start up your application under 5.3, then use
> the
> > >> > new PageCatalog page (http://localhost:8080/pagecatalog) and click
> > the
> > >> > "load all" link, to force all pages to be loaded. This will quickly
> > >> > identify any coding problems in your application.
> > >> >
> > >> > --
> > >> > 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
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> 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
> > >>
> > >> --

Re: [T5.3] Using ResourceMinimizer to remove debugging code?

2011-11-01 Thread Jochen Berger

Hi,

Am 31.10.2011 18:48, schrieb Martin Strand:

Perhaps you could use Google closure compiler and its preprocessor
features?
http://stackoverflow.com/questions/2934509/exclude-debug-javascript-code-during-minification


That looks like a good idea, thanks for the hint.


I have no experience with the closure compiler, but it's written in Java
so should be possible to integrate with a Tapestry app.


And ASL2, too. I think I'll give it a try.

Jochen

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