RE: strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
i commented out the whole contents of the handler... and it ran ok... so it has to do with the variable itemsPerPage hoping it will thresh out tomorrow... or today have to get some sleep... ciao

RE: strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
here is the latest... a component event exception is being triggered to the HOME.TML so for some reason HOME.TML or HOME.JAVA is not able to handle this somehow. An unexpected application exception has occurred.org.apache.tapestry5.ioc.internal.OperationExceptionlocationcontext:Home.tml, line

RE: strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
Ok here is my actual GALLERY template and code... dont get too lost... its still in-play... and messy trust me I am a clean guy... and hopin this will be cleaned up soon http://www.w3.org/TR/html4/strict.dtd";> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; xmlns:p="tapestry:parameter"

RE: strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
Here is my HOME template and java http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; xmlns:p="tapestry:parameter"> ${message:org.hibernatesecurity.welcome}

RE: strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
Thanks for tryin guys... the initialization attempts had no effect 127.0.0.1 - - [12/Oct/2012:04:45:35 +] "GET /assets/1.0-SNAPSHOT-1350017091525/tynamo-0.3.0/themes/tapestryskin/breadcrumbs.jpg HTTP/1.1" 200 349 "http://localhost:8080/assets/1.0-SNAPSHOT-1350017091525/tynamo-0.3.0/them

RE: strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
Thanks Bob... i will try your solution... hold on

RE: strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
yeah... it didnt work @Property @Parameter(value="50", required = false, cache = false) private Integer itemsPerPage; I kept the integer type because in theory I shouldn't have to change it. I can post the code in a bit... let me take another pass here... 127.0.0.1 - - [12/Oct/2

RE: strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
thanks Cezary... I will try that right now... and if it fails code listings will be better submitted. be right back

Re: strange NPE, really making me nervous

2012-10-11 Thread Robert Zeigler
Since itemsPerPage is a property of a page, the @Parameter bit won't work. Instead, try: @Property private int itemsPerPage void setupRender() { itemsPerPage=50; } Robert On Oct 11, 2012, at 10/:25 PM , Cezary Biernacki wrote: > You are giving us incomplete examples, so we can only guess

Re: strange NPE, really making me nervous

2012-10-11 Thread Cezary Biernacki
You are giving us incomplete examples, so we can only guess. However my suspicion is that your declaration of default value itemsPerPage is bad. Tapestry 5 does not like initialisation of private fields in components and pages. Try: @Parameter(value="50", required = false, cache = false) p

RE: strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
thanks czar yeah collestion is absolutely size = 1 and has a hibernate entity in it In my Gallery.JAVA I tried the following... removed @Property on itemsPerPage and added public Integer getItemsPerPage() { return itemsPerPage; } and invoked it directly instead of attempting

RE: strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
Here is Home.JAVA snippet public class Home { /** * Component */ @Property private Class collectiontype; @Property private Integer itemsPerPage = new Integer("50"); I am trying to figure out why there is a NPE with this itemsPerPage its just a property in Home.*

Re: strange NPE, really making me nervous

2012-10-11 Thread Cezary Biernacki
Hi, are you sure that 'collection' is not null? Best regards, Cezary On Fri, Oct 12, 2012 at 5:27 AM, Ken in Nashua wrote: > > Folks, > > I am scratching my head about this code which generally was ok in T4... > things seem fine but when i enter this handler BOOM > > My usage of the Math.min(.

Re: Gallery for each article using hibernate

2012-10-11 Thread Ken in Nashua
Hi, I did a Gallery for T4... it ran beautiful currently porting it to T5... fun fun fun I wouldn't say its a trivial task... but a nice learning experience if you want to come out with some handy tapestry skill. I should be done with my T5 version in the coming weeks after I soup it up. - c

strange NPE, really making me nervous

2012-10-11 Thread Ken in Nashua
Folks, I am scratching my head about this code which generally was ok in T4... things seem fine but when i enter this handler BOOM My usage of the Math.min(...) hasnt changed... the NPE occurs faithfully on the call to Math.min(...)... even after I tried to change the type of itemsPerPage fro

Gallery for each article using hibernate

2012-10-11 Thread o1550762
Hi! I want to implement gallery for each article using hibernate, and how many images per article should it have is not mandatory set by some value? I am here for your opinion what is the best way to implement it, so any help is greatly appreciated. Thanks in advance. :) -- View this message in

Re: Tynamo tapestry-security Instance-Level Access Control?

2012-10-11 Thread Dmitry Gusev
Done: http://jira.codehaus.org/browse/TYNAMO-183 On Fri, Oct 12, 2012 at 1:46 AM, Dmitry Gusev wrote: > Using @Core annotation helped: > > @Match("*") > > @Order("before:*") > > public static void adviseSecurityAssert(MethodAdviceReceiver receiver, > > final @Core Environment environment) > >

Re: Tynamo tapestry-security Instance-Level Access Control?

2012-10-11 Thread Dmitry Gusev
Using @Core annotation helped: @Match("*") @Order("before:*") public static void adviseSecurityAssert(MethodAdviceReceiver receiver, final @Core Environment environment) On Fri, Oct 12, 2012 at 12:59 AM, Dmitry Gusev wrote: > Ok, I'm working on the patch now. > > I have a problem injecting E

Re: Tynamo tapestry-security Instance-Level Access Control?

2012-10-11 Thread Dmitry Gusev
Ok, I'm working on the patch now. I have a problem injecting Environment instance into advisor method in SecurityModule: @Match("*") @Order("before:*") public static void adviseSecurityAssert(MethodAdviceReceiver receiver, final Environment environment) this issue was already filed in JIRA:

Re: readonly parameter binding issue

2012-10-11 Thread Thiago H de Paula Figueiredo
On Thu, 11 Oct 2012 15:34:44 -0300, Ken in Nashua wrote: maybe defaultPrefix should have been called bindingPrefix or defaultBindingPrefix? In this case, 'prefix', in parameters, can only refer to binding prefixes, so I think the name is clear enough. I didn't want to burn you. If you

RE: readonly parameter binding issue

2012-10-11 Thread Ken in Nashua
maybe defaultPrefix should have been called bindingPrefix or defaultBindingPrefix? I get sort of dyslexic... and yes the default is what took me From: kcola...@live.com To: users@tapestry.apache.org Subject: RE: readonly parameter binding issue Date: Thu, 11 Oct 2012 14:27:17 -0400 burn

RE: readonly parameter binding issue

2012-10-11 Thread Ken in Nashua
burn me beautiful Thiago... thanks I will give that a shot... and keep note of these special best practices you will be the first one to see this gallery i am working on the autopaging button handlers now I wonder whatever happened to tacos... and jfly... andrea chiumante had some nice stuff t

Re: Generating unique tapestry id or client id in HighCharts

2012-10-11 Thread bhorvat
tnx for info I will see what I can about the pull request. cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/Generating-unique-tapestry-id-or-client-id-in-HighCharts-tp5716693p5716810.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: readonly parameter binding issue

2012-10-11 Thread Thiago H de Paula Figueiredo
On Thu, 11 Oct 2012 11:40:00 -0300, Ken in Nashua wrote: Folks, Hi! my Gallery component operates a parameter CURSOR Gallery.JAVA @Property @Parameter(required = true, cache = true, defaultPrefix = "0") private int cursor; You're confusing defaultPrefix with default paramet

Re: pages and components

2012-10-11 Thread Thiago H de Paula Figueiredo
On Thu, 11 Oct 2012 11:35:12 -0300, Ken in Nashua wrote: Folks, Hi! I am trying to nail down the concept (or at least inspired concept) of page and components and how they should be modeled with parameters and properties. Here is my semantic concept issue... if you can add to it t

Re: Another question about using SelectModelFactory

2012-10-11 Thread mbrooks
Hi Thiago, I'll drop you an email, thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Another-question-about-using-SelectModelFactory-tp5716793p5716806.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Another question about using SelectModelFactory

2012-10-11 Thread Thiago H de Paula Figueiredo
Hello, Melanie! I've been working for iFactory as a remote contractor (I live in Brazil) for 2.5 years (OED, ODO, OxMed, ORR, ORO2, OBOv2, SROv2, SRMO) and now I'm officially envying you for working in a project using some Tapestry 5.2 or 5.3 version. :P May I know what the project is? :)

Re: Another question about using SelectModelFactory

2012-10-11 Thread Thiago H de Paula Figueiredo
Hello, Malanie! Could you post the entity class and the criteria code? -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache

Re: Tynamo tapestry-security Instance-Level Access Control?

2012-10-11 Thread Kalle Korhonen
Instance-level access control is a very interesting topic to me. I say you are pretty much on the right track if you want to use the permission model. You wouldn't *necessarily* need to change anything in Shiro if you just did programmatic checks with isPermitted and you knew the right permissions

Re: Tapestry Problem on Google App Engine in Development

2012-10-11 Thread Dan Cyr
When I turn off gzip compression with configuration.add(SymbolConstants.GZIP_COMPRESSION_ENABLED, "false"); my page generates a java.lang.IllegalStateException Sanity check - neither a stream response nor a redirect response was generated for this action request. Can we at least get tapestry-de

Re: passing values into script after ajaxformloop row has been added.

2012-10-11 Thread George Christman
Thanks Lance, I'm all set now :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/passing-values-into-script-after-ajaxformloop-row-has-been-added-tp5716762p5716800.html Sent from the Tapestry - User mailing list archive at Nabble.com.

RE: readonly parameter binding issue

2012-10-11 Thread Ken in Nashua
Thanks Lance... I know it might be asking alot... is there a small snippet code example you could post? this thing is coming along great kcola...@live.com From: kcola...@live.com To: users@tapestry.apache.org Subject: readonly parameter binding issue Date: Thu, 11 Oct 2012 10:40:00 -0400

Re: readonly parameter binding issue

2012-10-11 Thread Lance Java
For persistance between requests, your first consideration should always be activation context (see @PageActivationContext or onActivate() / onPassivate()). This will store values as part of the URL. If activation context does not solve the problem, you should then consider @Persist to either stor

RE: pages and components

2012-10-11 Thread Wechsung, Wulf
Hi Ken, Maybe I can help you out: 1. I would not :) Pages and Components both have Properties. It's nothing special really. Think Bean Properties with automatic getter/setters. Components have Parameters, Pages have PageActivationContext. Both can be Properties as well (because a property i

Re: Howard's Tweet About Bootstrap

2012-10-11 Thread Lenny Primak
We use the t5connduit with bootstrap with great success. Great library. On Oct 11, 2012, at 6:53 AM, Cezary Biernacki wrote: > On Thu, Oct 11, 2012 at 9:57 AM, llama-king wrote: > >> >> Any word on using bootstrap in LESS while we're at it? > > I use Bootstrap in Less with Tapestry successf

Re: Tapestry Problem on Google App Engine in Development

2012-10-11 Thread Lance Java
I'm assuming that this is a problem in GAE but if you want to check, you could contribute a HttpServletRequestHandler to print out the response headers as set by tapestry. Contribute a filter with ordering "after:GZIP". NB. You can disable compression by setting SymbolConstants.GZIP_COMPRESSION_EN

Re: pages and components

2012-10-11 Thread Dmitry Gusev
Pages and components are generally the same for me. Pages are just top-level components. They both have parameters: for pages they came from GET/POST/... HTTP requests, source of component parameters are pages and other components. Properties are just their state, the state that pages/components

Re: pages and components

2012-10-11 Thread Charlouze
Hey, I'm not a tapestry expert but here is what I think about pages, components, properties and parameters: Parameters (annotated with @Parameter) can only be used in components as parameters for the component (pages don't have parameters). Properties (annotated with @Property) are private attrib

Another question about using SelectModelFactory

2012-10-11 Thread mbrooks
I looked through the forum but couldn't quite find something close to the case that I'm running into. Forgive me if this was already answered and I just missed a post. We are using Tapestry 5.2 with Hibernate and the codebase has remnants of pre-5.2 Tapestry code where we needed to directly acces

readonly parameter binding issue

2012-10-11 Thread Ken in Nashua
Folks, my Gallery component operates a parameter CURSOR Gallery.JAVA @Property @Parameter(required = true, cache = true, defaultPrefix = "0") private int cursor; So my component has a read/write property that I use as a parameter. In order to update it across request cycles/pages I

pages and components

2012-10-11 Thread Ken in Nashua
Folks, I am trying to nail down the concept (or at least inspired concept) of page and components and how they should be modeled with parameters and properties. Here is my semantic concept issue... if you can add to it that would be helpful. PAGES HAVE PROPERTIES, COMPONENTS HAVE PARAMETERS (

Re: Tapestry Problem on Google App Engine in Development

2012-10-11 Thread Dan Cyr
There seems to be a "Content-Encodinggzip" missing on the response in 1.7.2. Would that be the cause? Should GAE provide that header? Are they listening or can we inform them? 1.7.1 Response Headersview source Content-Encodinggzip Content-Typetext/html; charset=utf-8 Server

Re: passing values into script after ajaxformloop row has been added.

2012-10-11 Thread Lance Java
Use an environmental http://tapestry.apache.org/environmental-services.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/passing-values-into-script-after-ajaxformloop-row-has-been-added-tp5716762p5716789.html Sent from the Tapestry - User mailing list archive at Nabble

Re: Tynamo tapestry-security Instance-Level Access Control?

2012-10-11 Thread Alex Kotchnev
I also struggled with something similar and came up with a somewhat different solution from instance level access control, specifically for pages (which doesn't seem to fit your need, but I'll mention it anyway). On a previous project in Grails, we used the Grails Shiro plugin ( http://grails.org/p

Tynamo tapestry-security Instance-Level Access Control?

2012-10-11 Thread Dmitry Gusev
Hi, I need to implement instance-level access control in my application using tapestry-security. I already asked similar question here [1]. There Taha suggested to use AuthorityVoter, but that wasn't Tynamo's tapestry-security. I looked at Entity-Relationship Based Access Control [2]. This is

Re: passing values into script after ajaxformloop row has been added.

2012-10-11 Thread George Christman
Thanks Lance, I'm really good with css, so that part shouldn't be an issue, just wasn't sure how you were setting the css class from the mixin :) I think the only other obstacle I foresee is the ability to dynamically validate the required fields based on the submit action. I currently handle thi

Re: passing values into script after ajaxformloop row has been added.

2012-10-11 Thread Lance Java
You can use the @BindParameter annotation in a mixin to get/set parameters on the component that the mixin is bound to. So, your mixin could set the "validate" and "disabled" properties the field. I'm rubbish at css but I assume you can add a class to each required field and then style an asterisk

Re: passing values into script after ajaxformloop row has been added.

2012-10-11 Thread George Christman
Actually I think I may be able to use ehcache for this. Last question, your saying I may be able to do this with css, "which I would prefer" and possibly handle the required in the mixin as well. Any thoughts on how you might get the css / required back to the field? I'm not sure how t:validate w

Re: passing values into script after ajaxformloop row has been added.

2012-10-11 Thread Lance Java
Note, servlet containers re-use threads between requests so use tapestry's PerThreadManager.createValue() to create a value that is per-request. -- View this message in context: http://tapestry.1045711.n5.nabble.com/passing-values-into-script-after-ajaxformloop-row-has-been-added-tp5716762p5716

Re: passing values into script after ajaxformloop row has been added.

2012-10-11 Thread Lance Java
Have the mixin call methods on a service backed by a cache. If you don't want to cache forever, perhaps a ThreadLocal cache will do? -- View this message in context: http://tapestry.1045711.n5.nabble.com/passing-values-into-script-after-ajaxformloop-row-has-been-added-tp5716762p5716782.html Sen

Re: passing values into script after ajaxformloop row has been added.

2012-10-11 Thread George Christman
Hi Lance, I planned on initializing the field in setupRender() once I came up with a viable solution. The mixin seems like an interesting solution. I guess my only concern would be the mixin calling the query everytime a new field called a mixin. Any thoughts on that? Thanks Lance. -- View

Re: Howard's Tweet About Bootstrap

2012-10-11 Thread llama-king
Hi Cezary, That sounds fantastic. Will definitely give it a spin as soon as I get a moment! And I guess LESS is a kind of hit or miss pick and choose kind of thing at this point so it's very nice to have it as opt-in. Awesome! So all (most of?) my styling worries dissipate with this. Finally can a

Re: Adjusting tapestry archtype for java 6

2012-10-11 Thread Thiago H de Paula Figueiredo
On Thu, 11 Oct 2012 07:50:40 -0300, Lance Java wrote: Try the m2eclipse eclipse plugin http://www.sonatype.org/m2eclipse It keeps your eclipse project in sync with your pom.xml so no need for "mvn eclipse:eclipse" Agreed. m2eclipse (now called m2e) is now provided as out-of-the-box in E

Re: Howard's Tweet About Bootstrap

2012-10-11 Thread Cezary Biernacki
On Thu, Oct 11, 2012 at 9:57 AM, llama-king wrote: > > Any word on using bootstrap in LESS while we're at it? > I use Bootstrap in Less with Tapestry successfully. You can try my t5conduit library https://github.com/cezary-biernacki/t5conduit, it integrates LessCss and CoffeeScript compilers wi

Re: Adjusting tapestry archtype for java 6

2012-10-11 Thread Lance Java
Try the m2eclipse eclipse plugin http://www.sonatype.org/m2eclipse It keeps your eclipse project in sync with your pom.xml so no need for "mvn eclipse:eclipse" -- View this message in context: http://tapestry.1045711.n5.nabble.com/Adjusting-tapestry-archtype-for-java-6-tp5716776p5716777.html Se

Adjusting tapestry archtype for java 6

2012-10-11 Thread Muhammad Gelbana
Since I don't know much about maven and how it works, I;m not sure if this is something I can handle from my side. I create a new tapestry project\module using this command: > mvn archetype:generate > -DarchetypeCatalog=http://tapestry.apache.org-DgroupId=com.mypackage > -DartifactId=Project-Di

Re: How to increase text field size.

2012-10-11 Thread Bob Harner
The members of this mailing list are always happy to help, but since Tapestry produces standard HTML/XHTML for these elements, your question is not really Tapestry-specific. You'll probably find better support for HTML & CSS questions on HTML & CSS forums. On Thu, Oct 11, 2012 at 5:16 AM, Jay Gine

Re: How to increase text field size.

2012-10-11 Thread Jay Ginete
Use media queries in your CSS to figure out what width and height your fields should be. On Thursday, 11 October, 2012 05:13 PM, Anbazhagan wrote: Thanks for your reply.. I want visual height display. Now I am using css style(padding-top and padding-left) to increase width and height. But it

Re: How to increase text field size.

2012-10-11 Thread Anbazhagan
Thanks for your reply.. I want visual height display. Now I am using css style(padding-top and padding-left) to increase width and height. But it is not fit for all devices. So please give me your valuable suggestion. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-

Re: How to increase text field size.

2012-10-11 Thread nquirynen
What do you mean with height; more rows? Then you can use a TextArea with rows and cols attributes. If you just want visual height of the text TextField then you'll need CSS. Why can't you use CSS? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-increase-text-field

Howard's Tweet About Bootstrap

2012-10-11 Thread llama-king
Howard M. Lewis Ship @hlship Beginning to convert #tapestry5 from ugly default CSS ℅ me, to pretty CSS ℅ @twbootstrap 5:51 PM Oct 5th Now this is great! For home projects I run with trsvax's tapestry-bootstrap and at work we run with sub-sets of b

Re: Tapestry Problem on Google App Engine in Development

2012-10-11 Thread Lance Java
Using firebug (or similar) can you look at the request/response traffic when the error occurs? In particular, what are the values of the "Accept-Encoding" header on the request and the "Content-Encoding" header on the response? -- View this message in context: http://tapestry.1045711.n5.nabble

Re: passing values into script after ajaxformloop row has been added.

2012-10-11 Thread Lance Java
> private Set fieldIds = new HashSet(); Never initialize a field in it's declaration, the value should be initialized on setupRender() > Any thoughts on how to do this? I'd do it serverside. Attach a mixin to each field which adds the asterisk to the dom (this can most likely be done through css