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

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

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

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.

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

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 imple

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 grou

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 a

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 rendere

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

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 c

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

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?

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 t

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

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 wor

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)

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

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

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

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 o

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.

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

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

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:     @P

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 trig

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

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

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

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

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

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 probl

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.

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

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

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

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(

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.

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 wit