Re: Read only bindings - How do I set their value from a mixin?

2013-03-18 Thread trsvax
I think that might work. I would try making a ThreadLocal binding and see what happens. My plan was to bind them to an environmental so you could change defaults by pushing a different environmental. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Read-only-bindings-How-d

Re: Read only bindings - How do I set their value from a mixin?

2013-03-15 Thread trsvax
I ran into this problem also. I think you might be able to create a different binding prefix like default: that is writable and change the default to use that prefix. This is still on my todo list because I'd like to do the same thing. -- View this message in context: http://tapestry.1045711.n

Re: Now hotness at SX vs 5.4

2013-03-15 Thread trsvax
I like that the compressed version is larger than the uncompressed version and the documentation is just a link to the Javascript manual. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Now-hotness-at-SX-vs-5-4-tp5720473p5720482.html Sent from the Tapestry - User mailing

Meetup at SXSW?

2013-03-08 Thread trsvax
Anyone going to SXSW this week and like to meet somewhere? I'll be there. Barry -- View this message in context: http://tapestry.1045711.n5.nabble.com/Meetup-at-SXSW-tp5720375.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: How to disable bootstrap label/button hover behavior?

2013-02-20 Thread trsvax
I think the hover behavior was added in a latter version of 2.x bootstrap than is included by default in the bootstrap module. I usually just include the latest css and then override the parts I want to change in the layout.tml file. -- View this message in context: http://tapestry.1045711.n5.n

Re: form method="GET"

2013-01-23 Thread trsvax
I did some testing and while I can see a reason to support GET, I think the way forms currently work make @ActivationRequestParamater along with the redirect a better choice because Tapestry uses a hidden field to map the form data to the Java parameters and I don't think you want that in the URL.

Re: form method="GET"

2013-01-22 Thread trsvax
I'd write a mixin that just changes the method from POST to GET on the form element. You might need to put in a different URL if Tapestry gets confused about the form URL being a GET. Then just attach that mixin to the form component. I've thought about this for searches but I just put @ActivationR

Re: 5.4-alpha-2 jQuery support solution and another question

2013-01-15 Thread trsvax
It turns out dom.js was being cached. What makes this tricky to figure out is requirejs apparently adds the script tags to the DOM which makes it appear prototype.js is being added by Tapestry when in fact it's being included by the cached dom.js. I'm looking forward to checksums in asset paths.

Re: 5.4-alpha-2 jQuery support solution and another question

2013-01-14 Thread trsvax
I'll restest this when I get home but I'm pretty sure this is it. I did not believe it either so I tried a few times. Also I don't think it's a cache issue. The generated HTML changes -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-4-alpha-2-jQuery-support-solution-and

5.4-alpha-2 jQuery support solution and another question

2013-01-14 Thread trsvax
After removing most of the code from the project I found the line that causes prototype to be included. If I SymbolConstants.APPLICATION_VERSION contains '-SNAPSHOT' I get prototype. So this includes prototype and dom.js is the prototype version public class AppModule { @Contribute(SymbolProvi

Re: Can't get Tapestry 5.4-alpha-2 jQuery Support to work

2013-01-12 Thread trsvax
I commented out the line to see if the the "jquery" line was working. The Scriptaculous Trait only applies for prototype and that's exactly what happens. If I set SymbolConstants.JAVASCRIPT_INFRASTRUCTURE_PROVIDER,"jquery" the Scriptacolous trait does nothing. With SymbolConstants.JAVASCRIPT_I

Can't get Tapestry 5.4-alpha-2 jQuery Support to work

2013-01-12 Thread trsvax
I created a project with alpha-2 in my POM and followed the blog post http://tapestryjava.blogspot.com/2013/01/tapestry-54-jquery-support-now-in-place.html by adding this to my AppModule @Contribute(SymbolProvider.class) @ApplicationDefaults public static void contributeApplicationDe

StrategyBuilder Service and Components

2012-12-27 Thread trsvax
I'm building a mixin that does different things depending what component it's added to. I was trying to use the StrategyBuilder but it does not match the component class In my AppModule I have this public static void contributeSimplifySource( MappedConfiguration config) { config.addInstanc

Re: 5.4-rewrite

2012-12-19 Thread trsvax
I spend the that two months of the year making art and not programing. I'll be porting the Bootstrap module to 5.4 in a week or two. Hopefully it will be easy. -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-4-rewrite-tp5718844p5718853.html Sent from the Tapestry - Us

Re: [Announce] Tapestry-Bootstrap 2.0 early Alpha

2012-12-19 Thread trsvax
I have not tried it on 5.4 but I will in a week or two. The only problem I see is it's dependent on the html output of the base components. If that does not change then I suspect it will work without much difficulty. As far as the Javascript part goes Bootstrap uses jquery and my module brings in

Re: Best way to prevent page to be accessed without context?

2012-12-16 Thread trsvax
Maybe, but they could come from anywhere including just typing in the URL (ie no where). The only way that might work sometimes is get the referring URL from the request and send them back there. You could also return a 404 "Page not found" with a StreamResponse and that might make the most sense.

Re: Tapestry 5.3.6 requires Java 7

2012-12-09 Thread trsvax
For some reason the JVM cannot find the SHA1 crypto class. This is found via a string so it would not cause a compile error, however it is required in Java 6 and even earlier versions. The supported crypto classes are pluggable so I suspect for some reason your Java 6 install has a custom config of

Re: Auto resolve base page from HTTP to HTTPS

2012-11-30 Thread trsvax
If you just mean the page should always be ssl just use @Secure http://tapestry.apache.org/https.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/Auto-resolve-base-page-from-HTTP-to-HTTPS-tp5718424p5718426.html Sent from the Tapestry - User mailing list archive at Na

Re: Trying to update Tapestry

2012-11-17 Thread trsvax
Looks like you have both 5.3.1 and 5.3.4. Maven clean might fix that. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Trying-to-update-Tapestry-tp5718057p5718058.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Can I attach an instance mixin to a nested component

2012-11-07 Thread trsvax
I guess you could implement it that way but it seems easier to install both mixins with a component transformer and then just have a parameter on the grid control the row rather than the existence of the grid mixin -- View this message in context: http://tapestry.1045711.n5.nabble.com/Can-I-att

Re: Can I attach an instance mixin to a nested component

2012-11-07 Thread trsvax
I don't think nested grids would be a problem because environment variables are a stack -- View this message in context: http://tapestry.1045711.n5.nabble.com/Can-I-attach-an-instance-mixin-to-a-nested-component-tp5717741p5717785.html Sent from the Tapestry - User mailing list archive at Nabble

Re: What am i doing in this postgreSQL configuration

2012-11-07 Thread trsvax
The ValueEncoderSource error is usually caused by hibernate not being able to access the database and the bottom of the stack trace is usually the reason. In this case: Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.annotations.common.reflection.java.JavaReflec

Re: Can I attach an instance mixin to a nested component

2012-11-07 Thread trsvax
I would try using an informal parameter on the grid instead of a Mixin. The row mixin should be able to access that with ComponentResources.getInformalParameter(String name, Class type) so in your template -- View this message in context: http://tapestry.1045711.n5.nabble.com/Can-I-attach-

Re: Hosting Tapestry App on Cloud

2012-10-26 Thread trsvax
I've been using VPS style hosting for almost 10 years now, switched to Amazon about 5 years ago and my current thought is I will never buy hardware again. I ended up with AWS because the various VPS venders I was using would come and go and switching was too much work. My thought is AWS is here to

Re: Why is AssetPathConverter not called for javascript stacks

2012-10-05 Thread trsvax
I wrote a CloudFront CDN while ago and also ran into a few problems. Is loading content other than from S3 a new feature? I wrote a CDNManger service that Lazily loaded the assets onto S3. The problem I ran into is Tapestry uses the same URL to deliver compressed and uncompressed content depending

Re: Generating link/url without RequestGlobals

2012-09-30 Thread trsvax
I would suggest that slurping up the HTML from a page is the easiest way to do this. Tapestry is one of the most sophisticated HTML generation systems out there and it's easy to call a URL with Java so why create some other template engine just to send email? Here is the service I use to send pages

Re: Query Parameter Suggestions

2012-09-21 Thread trsvax
You might be interested in this https://github.com/trsvax/Jacquard/blob/master/src/main/java/com/trsvax/jacquard/services/MultiStatePersistenceStrategyImpl.java It enables @Persist to use url query parameters. It's possible to make it the default persist strategy in which case things such a

Re: Sevice State / Stateless

2012-09-14 Thread trsvax
That would be a problem unless the service is perthread. As you say just pass the object to your method. To avoid this it's best to just declare all fields in services as final. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Sevice-State-Stateless-tp5716278p5716279.htm

Re: Confirm mixin with form validation errors

2012-09-13 Thread trsvax
Here is my jQuery one that is added to a form @MixinAfter @Import( library={"submitonce.js"}) public class SubmitOnce { @Inject private Logger logger; @Inject private JavaScriptSupport javaScriptSupport; @InjectContainer pr

Re: Ioc Ordering Contraints

2012-09-10 Thread trsvax
It would be nice just to have some documented "markers". I usually just look at the TapestryModule class to figure out what to do, but having some documented phases would probably solve most issues. It would also solve the problem workers changing between releases. For example what if UnclaimedFiel

Re: Ioc Ordering Contraints

2012-09-10 Thread trsvax
I'd try creating a dummy worker called beforeUnclaimedField and make it before:UnclaimedField then change yours to after:beforeUnclaimedField -- View this message in context: http://tapestry.1045711.n5.nabble.com/Ioc-Ordering-Contraints-tp5716154p5716171.html Sent from the Tapestry - User

Re: Dynamically Writing Raw to Grid Cells

2012-09-10 Thread trsvax
should have been cell text -- View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamically-Writing-Raw-to-Grid-Cells-tp5716164p5716169.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Dynamically Writing Raw to Grid Cells

2012-09-10 Thread trsvax
I think you could create a "raw" datatype. Then in your bean @Datatype("raw") private String rawData; Then create a property display block but it seems like what you really want is CellText If that's the case I'd add a mixin to GridGell and write out the span tag. GridCell has acce

Re: Global setting for date format

2012-09-05 Thread trsvax
You should be able to do this with a mixin but you cannot for the same reason I'm having trouble with submitLabel in BeanEditForm. see: http://tapestry.1045711.n5.nabble.com/Can-t-change-BeanEditForm-submitLabel-with-a-mixin-td5716012.html If the Parameter is defaulted to a readonly value you ca

Re: Tapestry Bootstrap : Autocomplete dropdown style

2012-09-05 Thread trsvax
If you want to convert the existing autocomplete mixin take a look at any of the providers in com.trsvax.bootstrap.services.bootstrapprovider. You need a new one that uses a visitor to find the objects in the DOM and convert them to what bootstrap wants. The FormProvider would be a good place to st

Re: Binding an array and accessing elements of that array in a template

2012-09-04 Thread trsvax
If you make a method in your page class public String monthlyBill(Integer index) { return monthlyBill[index]; } I think you can this in the tml file -- View this message in context: http://tapestry.1045711.n5.nabble.com/Binding-an-array-and-accessing-elements-of-that-array-in-a-temp

Re: Can't change BeanEditForm submitLabel with a mixin?

2012-09-04 Thread trsvax
here is the current working mixin. It uses markup writer to set the button value because submitLabel = defaultLabel; will result in the error public class BeanEditDefaults { @BindParameter private String reorder; @BindParameter private String submitLabel;

Re: Tapestry-Bootstrap : Using the component

2012-09-03 Thread trsvax
I don't think the select component has enough in common with the button group to use the same model. The button group is not really a form component but just a way to display a bunch of links. With Tapestry these could be page/event/action or just plain a tags. I have driven button groups from a

Re: Tapestry Bootstrap : Autocomplete dropdown style

2012-09-03 Thread trsvax
I just have not gotten to that component yet. I'd gladly take a look at a pull request. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Bootstrap-Autocomplete-dropdown-style-tp5716016p5716021.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Can't change BeanEditForm submitLabel with a mixin?

2012-09-03 Thread trsvax
I still get the same error Render queue error in SetupRender[address/New:address]: Failure writing parameter 'submitLabel' of component address/New:address: Binding LiteralBinding[default submitLabel: Create/Update] is read-only. I also tried @Parameter private String submitLabel; @Bi

Can't change BeanEditForm submitLabel with a mixin?

2012-09-03 Thread trsvax
I'm trying to change the BeanEditForms submitLabel with a mixin like this @BindParameter private String submitLabel; void setupRender() { submitLabel = "New"; } but that results in this Render queue error in SetupRender[user/New:user]: Failure writing parameter 'submitLabel' of component u

Re: Tapestry-Bootstrap : Using the component

2012-09-03 Thread trsvax
Button Group button1 button2 button3 Button Group with dropdown # dropdown Link1

Re: Tapestry-Bootstrap : Using the component

2012-09-02 Thread trsvax
I don't think the select component requires any special markup for Bootstrap. Do other form elements look like the Bootstrap ones? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Bootstrap-Using-the-t-select-component-tp5715967p5715986.html Sent from the Tapestry

Re: Tomcat 7 Parallel Deployment

2012-08-22 Thread trsvax
It does look like a similar problem but I don't think I'm doing anything special. I'm not running clustered. All I did what change my Hudson build script to add the build number into the warfile name and copy that to tomcat webapps so I ended up with CJIS##0645.war which deployed as CJIS##0645 I'

Tomcat 7 Parallel Deployment

2012-08-22 Thread trsvax
I was looking at the Tynamo site this morning and found a writeup about Tomcat 7 Parallel Deployment. It looked simple and useful so I gave it a try but my context does not start up because of the following error: Caused by: java.io.FileNotFoundException: /home/cjis/apache-tomcat-7.0.23/webapps/C

Proposal for DateField validation patch

2012-08-21 Thread trsvax
After discovering DateField does not really validate dates and finding it very difficult to make it validate I came up with the following code that I think makes things much easier. There are really 2 problems. First if you pass DateField a string for the format you get a DateFormat with lenient

Re: DateField appears to use lenient date parser (Bug?)

2012-08-21 Thread trsvax
This did seem like the obvious solution but it does not fix the problem either. If you enter a date of 01/01/200q The date you end up with is Jan, 1 200 I had to add a regexp courtDate-regexp=\\d\\d/\\d\\d/\\d\\d\\d\\d create-courtDate-regexp-message=Must be mm/dd/ To make it work correctl

Re: DateField appears to use lenient date parser (Bug?)

2012-08-20 Thread trsvax
While I think that would fix the problem having the DateField use the Lenient parser seems wrong to me. Would it make sense for the Integer validator to accept '123!4' as 12314? If the purpose is to validate dates then that's what it should do. So I suppose a different fix is to replace the type c

DateField appears to use lenient date parser (Bug?)

2012-08-20 Thread trsvax
I have a DateField for entering Date of Birth. If you enter 00/01/2000 the database ends up with 12/01/1999 which is not at all what I would want since 00/01/2000 is (should be) an invalid date. The Java documentation says this: By default, parsing is lenient: If the input is not in the form used

Re: javascript component questions

2012-08-20 Thread trsvax
Most jQuery components can be implemented by simply extending the Widget mixin for example @Import (library={"your js file"}) public Class FreeCalendar extends Widget { } Then in your tml file -- View this message in context: http://tapestry.1045711.n5.nabble.com/javascript-component-ques

Tapestry Testing with Javascript off

2012-08-16 Thread trsvax
I've got a bug that occurs where the browser has Javascript disabled. Is there a way to run a Tapestry Selenium test and to tell the browser to disable Javascript for that test? Barry -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Testing-with-Javascript-off-tp

Re: Library binder and IDE helper

2012-08-16 Thread trsvax
OK I got a sonatype account and the snapshot module is at https://oss.sonatype.org/content/repositories/snapshots/ com.trsvax tapestry-librarybinder 5.3.4-SNAPSHOT I'll make a release version shortly Barry -- View this message in context: http://tapestry.1

Re: Library binder and IDE helper

2012-08-15 Thread trsvax
I also reduces clutter in your page/component classes. I was already using this for DAOs because I have one DAO per entity type. Some pages would have 4 or 5 @Injects for DOAs. Now they have one. Secondly it defines the public API. If you use T5 you do not have access to private services. Lastly

Re: Library binder and IDE helper

2012-08-14 Thread trsvax
I checked in the last of the T5 public services. Lenny if you want to use some of the code feel free. I'll add the Apache 2 license header in the morning. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Library-binder-and-IDE-helper-tp5715397p5715424.html Sent from the T

Re: Library binder and IDE helper

2012-08-14 Thread trsvax
I think I can generate this file from the Javadocs but I have not tried that. If so the moving target does not really matter. Also since the library will bind all the services interfaces from the methods in the Interface file it really becomes the definition for the Library/Module API so there is

Library binder and IDE helper

2012-08-14 Thread trsvax
https://github.com/trsvax/tapestry-librarybinder There was a discussion about IDE help on another thread. I had thought about this before so while I was waiting for My wife at the airport I started one. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Library-binder

Re: Tapestry5 vs Vaadin

2012-08-14 Thread trsvax
I added a comment to your issue. I think you want something like this public interface DAO { @Binder(implementation=CartDAOImpl.class) public CartDAO cart(); ... @Binder(implementation=ItemDAOImpl.class) public ItemDAO item(); } In your AppModule

Re: How to get a page's html to send it as an email?

2012-07-26 Thread trsvax
I just use InputStream is = new URL("tapestry url").openStream(). This works for pretty much anything. If you need more control the URL class has methods for setting headers etc. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-get-a-page-s-html-to-send-it-as-an-

FireFox 13 breaks Tapestry Testing

2012-07-19 Thread trsvax
It appears the FireFox 13 upgrade breaks the Selenium test cases with the folllowing: 13:11:15.572 INFO - Preparing Firefox profile... 13:11:37.603 ERROR - Failed to start new browser session, shutdown browser and clear all session data java.lang.RuntimeException: Firefox refused shutdown while pr

Re: Conditionally (IE) including javascript

2012-07-18 Thread trsvax
For this particular case I suspect you just want this on every page in the site. If so the simplest way would be just include the following in your layout.tml file -- View this message in context: http://tapestry.1045711.n5.nabble.com/Conditionally-IE-

Re: Streamresponse with Tomcat

2012-07-16 Thread trsvax
I believe return "Content-type: application/octet-stream"; should be return "application/octet-stream"; -- View this message in context: http://tapestry.1045711.n5.nabble.com/Streamresponse-with-Tomcat-tp5714475p5714476.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: [Announce] Tapestry-Bootstrap 2.0 early Alpha

2012-07-09 Thread trsvax
I'll take a look. I've been working on iPhone apps for the past few weeks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Announce-Tapestry-Bootstrap-2-0-early-Alpha-tp5462931p5714379.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: tapestry bootstrap

2012-06-17 Thread trsvax
My guess would be the bootstrap.jar file did not get into the war file somehow. Look in the log file and see if any of the bootstrap components are listed. -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-bootstrap-tp5713946p5713952.html Sent from the Tapestry - Us

Re: Maximum number of form elements

2012-06-05 Thread trsvax
It's most likely your web server. Most were patched recently to limit the number of parameters passed in a url or form to avoid a possible denial of service attack. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Maximum-number-of-form-elements-tp5713623p5713627.html Sent f

Tapestry-Bootstrap Beta

2012-05-26 Thread trsvax
After a few comments, fixes and pull requests the tapestry-bootstrap module is ready for beta. The maven repo is now on github: com.trsvax.bootstrap tapestry-bootstrap 2.0-SNAPSHOT trsvax-repo GitHub

Re: [t5.3] Using a map object with BeanEditor

2012-05-21 Thread trsvax
Here is how I did it http://tapestry.1045711.n5.nabble.com/writer-writeRaw-String-text-td5601234.html#a5601626 -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-3-Using-a-map-object-with-BeanEditor-tp5712589p5712988.html Sent from the Tapestry - User mailing list archive

Re: Tapestry-Boostrap Alpha 2 available

2012-05-13 Thread trsvax
I rewrote a bunch of the bead editor code and I don't remember testing the help part. Add an issue on Github and I'll take a look. I'm going to try and provide a beta release next weekend and I'll try and get it done by then -- View this message in context: http://tapestry.1045711.n5.nabble.com/T

Re: Reading out a Component's formal parameters' values

2012-05-02 Thread trsvax
In that case I'd use an Environmental. Have t:mycomp push an object into the environment and the validator can access it. If you don't want do modify t:mycomp you could use a mixin to push the object into the environment. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Read

Re: Reading out a Component's formal parameters' values

2012-05-02 Thread trsvax
If you are just writing a validator for one specific component and not a general purpose one you can use a mixin. They can have access to the component parameters via @BindParameter -- View this message in context: http://tapestry.1045711.n5.nabble.com/Reading-out-a-Component-s-formal-parameters-

Re: How do you feel about requiring JRE 1.6 for Tapestry 5.4?

2012-05-02 Thread trsvax
+1 -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-do-you-feel-about-requiring-JRE-1-6-for-Tapestry-5-4-tp5679713p5680143.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To uns

Re: File System Asset Factory help needed and petition wanted

2012-04-29 Thread trsvax
There are various free services from Amazon but I don't know if S3 has one. It's pretty cheap. For shiro.ini something like user.userName = password,admin role.admin = * -- View this message in context: http://tapestry.1045711.n5.nabble.com/File-System-Asset-Factory-help-needed-and-petition-w

Re: File System Asset Factory help needed and petition wanted

2012-04-29 Thread trsvax
I don't have a Maven repository to put them in. It's on my TODO list. You do have to have an AWS account and the keys go in the ini file. -- View this message in context: http://tapestry.1045711.n5.nabble.com/File-System-Asset-Factory-help-needed-and-petition-wanted-tp5641308p5673952.html Sent f

General CDN problem that came up with Tree component

2012-04-27 Thread trsvax
I have a CDN module that automatically copies assets to a CDN (specifically Amazon S3/Cloudfront). I was working with the tree component and discovered the bits that make of the tree interface were missing images. Things like tree-branch.png, tree-sprits.png etc. When I looked I found out they are

Re: Does the Tree component need to use the session?

2012-04-27 Thread trsvax
I would say the Tapestry way to override persist behavior is with Meta and it should probably stay that way. Secondly I'd prefer making the default the preferred way and overriding that behavior instead of the other way around. The thing Tapestry does not provide out of the box is override Persis

Re: Does the Tree component need to use the session?

2012-04-27 Thread trsvax
Here is my thought because I think there are other places in core that use persist. I think the idea behind persist is you leave the argument blank which allows you to override the type via the metadata. If no overrides are found it falls back to the default which is session. It appears you could

Re: Does the Tree component need to use the session?

2012-04-26 Thread trsvax
I'm not sure how to fix it in a backward compatible way. If you move the persistence to the URL it will change it's behavior under some circumstances. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Does-the-Tree-component-need-to-use-the-session-tp5667428p5668800.html Sent

Re: Does the Tree component need to use the session?

2012-04-26 Thread trsvax
I thought client persist was via the url not cookies, but as I said I never really used it. It might be handy to have a persist that used a URL argument. That's how I do paging with something like url?table1.page=1 where table1 is the component id. In the case of tree that might be url?tree1.nod

Re: Does the Tree component need to use the session?

2012-04-26 Thread trsvax
I would agree with that. I would prefer it if the core did not require a session at all. I suppose you could change the default to Persist(PersistenceConstants.CLIENT) but I have never tried that. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Does-the-Tree-component-nee

Re: Multiple Tapestry5 app on a single server

2012-04-26 Thread trsvax
I only run one Tomcat instance for everything. Be sure and use the incremental garbage collector. Before I did that things would just freeze for a minute or two when you run with large amounts of ram. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Multiple-Tapestry5-app-on

Re: Multiple Tapestry5 app on a single server

2012-04-26 Thread trsvax
I've done this various ways and they all seem to work fine. 1. Virtual Tomcat hosts 2. Virtual Apache hosts 3. Just dump everything in webapp Just depends on what you need. I agree about sharing jars. The only thing I share is database drivers and the ones needed to email because I config log4j

Re: Dynamic forms

2012-04-25 Thread trsvax
http://tapestry.1045711.n5.nabble.com/writer-writeRaw-String-text-td5601234.html#a5601626 -- View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-forms-tp5665475p5665566.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Pagelink above grid picks up context from last pagelink in grid

2012-04-25 Thread trsvax
> 2. Never use onActivate with a parameter Why not? What about onActivate(EventContext context)? It's always invoked, no matter how many activation context values is passed, and you have TypeCoercer-backed coercions for free. In general I never use onActivate at all. I try and define my

Re: Tapestry and inline Handlebars.js

2012-04-25 Thread trsvax
While I agree with you in spirit here my opinion. Sending not well formed XML to any web client is a bad idea and if you do it even by accident you are just asking for hours of grief. Using CDATA to work around this when needed is a small price to pay. Being able to use existing parsers is just ic

Re: Recommended method to reference assets in .css file?

2012-04-25 Thread trsvax
I put all that kind of css in my layout.tml file and I have an environmental object that lets me add to that from pages/components. Usually there is not a lot of it and it let's me easily move all the images to a CDN. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Recommen

Re: Pagelink above grid picks up context from last pagelink in grid

2012-04-25 Thread trsvax
I would say this is more of style preference than anything else. It can be made to work in many ways. My personal style is to use the URL for state and not the session. Generally I only use the session to store a non changing user object. If you start there it dictates many of the decisions that

Re: Tapestry and inline Handlebars.js

2012-04-24 Thread trsvax
Something like this was on my TODO list. I wanted to pass scripts via So here it is. public class Handlebars { @Parameter(required = true) private RenderCommand template; @Parameter(defaultPrefix = "literal") private String id; @Parameter(defaultPrefix

Re: Tapestry and inline Handlebars.js

2012-04-24 Thread trsvax
I'd create a component so you can do something like this Then use something like this to write out the script tag http://tapestry.1045711.n5.nabble.com/Getting-the-HTML-markup-string-from-a-RenderCommand-td5564418.html#a5565449 You still need the CDATA but I'd say the benefi

Re: Tapestry's css/js coming from other languages/frameworks

2012-04-24 Thread trsvax
I think that example serves everything from a CDN but you can do pretty much anything you like. I have one that checks S3 and if the Asset is there is serves it via cloudfront. If it's not there it schedules a copy just serves the Asset locally. This way you just deploy and all your Assets magicall

Re: Pagelink above grid picks up context from last pagelink in grid

2012-04-24 Thread trsvax
Flash will change it but I don't think it will fix it. For example if you go to editPerson/5 and then save, Person 5 will be in the session and you return to Persons Now press new and you go to editPerson The first read will return Person 5 but what you want is a blank form. It's possible to fi

Re: Tapestry's css/js coming from other languages/frameworks

2012-04-24 Thread trsvax
You can override AssetPathConverter -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-s-css-js-coming-from-other-languages-frameworks-tp5662291p5662599.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: Pagelink above grid picks up context from last pagelink in grid

2012-04-24 Thread trsvax
While it seems like a good idea (and believe me I've tried) to have one page handle create/update it turns out that many things conspire to make this more difficult than it seems and I've just returned to having a PersonNew and a PersonEdit. The first problem is if you use @Persist like you are us

Re: Tapestry's css/js coming from other languages/frameworks

2012-04-24 Thread trsvax
For modules you really have to use Assets because you need to serve them from the classpath. For an app you could just hard code paths but it's harder than using Assets because you have to deal with the context plus they handle compression, expires etc. Lastly you can override the url lookup part a

Re: Best place to put application/page parameters?

2012-04-24 Thread trsvax
There are several ways of doing this and I don't think there is any consensus. Personally I don't like storing things in text/xml files because you can't refactor them. Symbol providers are final and Strings if that works for you (but are run thru Type Coercion) I prefer to use Environmental Se

Re: Better Looking Input Form

2012-04-22 Thread trsvax
I wrote a module that changes Tapestry HTML to Bootstrap HTML. Here is the code for BeanEditForm https://github.com/trsvax/tapestry-bootstrap/blob/master/src/main/java/com/trsvax/bootstrap/services/bootstrapprovider/FormProvider.java Basically you run a Visitor on the DOM after the component is

Re: 5.3.0 java.lang.IncompatibleClassChangeError: Implementing class

2012-04-19 Thread trsvax
I know this is a bit old but I just ran into this problem. For me it was org.chenillekit chenillekit-tapestry 1.3.0 Which brings in the tapestry 5.2 functions jar file -- View this message in context: http://tapestry.1045711.n5.nabble.com/5-3-0-java-lang-Incomp

Re: File System Asset Factory help needed and petition wanted

2012-04-17 Thread trsvax
https://github.com/trsvax/tapestry-aws-core. This project has code for getting objects in/out of S3 https://github.com/trsvax/Blog If you just want to serve images/movies you can just make them public and serve them straight from s3 with a url like https://s3.amazonaws.com/assets.judypaul.com

Re: File System Asset Factory help needed and petition wanted

2012-04-16 Thread trsvax
I use Amazon S3 for this sort of thing. It easy and pretty cheap -- View this message in context: http://tapestry.1045711.n5.nabble.com/File-System-Asset-Factory-help-needed-and-petition-wanted-tp5641308p5644639.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Tapestry-Boostrap Alpha 2 available

2012-04-04 Thread trsvax
the module and just use what you want. It also easy to override various defaults and even plug in your own DOM rewriting providers. I've also uploaded the jar file to https://github.com/trsvax/tapestry-bootstrap/downloads so you don't need to build it. The only dependency is tapestry5-jque

Re: Broke something! In contributeApplicationDefaults when adding tapestry5-jquery (jetty:run)

2012-04-03 Thread trsvax
It looks like you might be contributing "tapestry.production-mode", false "tapestry.compress-whitespace", false in your AppModule and DevelopmentModule -- View this message in context: http://tapestry.1045711.n5.nabble.com/Broke-something-In-contributeApplicationDefaults-when-adding-tapestry5-

Re: Readable HTML output

2012-04-03 Thread trsvax
I have not tried to use MarkupWriter to generate a CSV but I do return CSVs with StreamResponse. I usually use StreamReponse for XML also but sometimes it's more work than necessary. For example if you just want something like OK MarkupWriter is much easier than either StreamResponse or a .tml fi

  1   2   >