ie9 + ajax response + stylesheets - bug/incompatibility

2012-04-16 Thread Paul Stanton
I've found an incompatibility with ie9 and tapestry exposed when an ajax response renders a component(s) which include their own stylesheets. https://issues.apache.org/jira/browse/TAP5-1907 If you use partial renders (ajax responses) and components which include their own stylesheets (@Import)

Re: [ANN] Tapestry AWS Services

2012-04-16 Thread bhorvat
https://github.com/trsvax/tapestry-aws-core there are two .. in your link :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-Tapestry-AWS-Services-tp3407864p5645466.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Reuse Edit/Create

2012-04-16 Thread netdawg
Thanks, Thiago. I think I understand the logic/strategy: "If there's a context value passed, it is the id of an object to be edited. If not, we're going to create a new object". In the above code, just changing @Persist("entity") to @PageActivationContext seems to achieve that Is tha

Re: Serving images outisde of war in tapestry

2012-04-16 Thread Thiago H. de Paula Figueiredo
On Mon, 16 Apr 2012 22:41:23 -0300, bhorvat wrote: So you use the stream to show the image but in the db you only store some sort of id, right? And if the file is too big (say 100 MB) it makes no difference? I store the files inside the database. That's my choice. I've never needed to dea

Re: [ANN] Tapestry AWS Services

2012-04-16 Thread bhorvat
The url is broken can you reposted? -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-Tapestry-AWS-Services-tp3407864p5645394.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Re: Serving images outisde of war in tapestry

2012-04-16 Thread bhorvat
So you use the stream to show the image but in the db you only store some sort of id, right? And if the file is too big (say 100 MB) it makes no difference? Cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/Serving-images-outisde-of-war-in-tapestry-tp5637138p5645358.

Re: Reuse Edit/Create

2012-04-16 Thread Thiago H. de Paula Figueiredo
On Mon, 16 Apr 2012 22:14:35 -0300, netdawg wrote: In other words, if you could modify the EditPerson class to service a form input that is both Add and Update, what "smart" coding would you do in onActivate and why? If there's a context value passed, it is the id of an object to be edite

Re: Serving images outisde of war in tapestry

2012-04-16 Thread bhorvat
Nice I didn know about that one. Tnx BTW if you have time can you take a look at http://tapestry.1045711.n5.nabble.com/File-System-Asset-Factory-help-needed-and-petition-wanted-td5641308.html#a5645272 and tell us your opinion. You dont have to look at the code if you dont have the time (I still

Re: Serving images outisde of war in tapestry

2012-04-16 Thread Thiago H. de Paula Figueiredo
On Mon, 16 Apr 2012 21:39:29 -0300, bhorvat wrote: Hi Thiago Hi! Can you tell me is this a good approach is you have a lot of images and files to work with? It doesn't matter how many as long as you pass some information (such as file name or database id) in the context. Also how d

Re: Serving images outisde of war in tapestry

2012-04-16 Thread Thiago H. de Paula Figueiredo
On Mon, 16 Apr 2012 21:41:24 -0300, bhorvat wrote: Thiago H de Paula Figueiredo wrote I use this approach too. :) @SessionState private ProjectState projectState; private boolean projectStateExists; Why don't you just check if projectState is null instead of using the b

Re: Reuse Edit/Create

2012-04-16 Thread netdawg
Thanks, Thiago. I am not sure I understand, though. Let me clarify. Here is a another thread that brought up this subject with a rather elaborate (unnecessary) workaround: http://tapestry.1045711.n5.nabble.com/Using-the-same-page-for-edit-new-Solution-td4876281.html Howard Lewis Ship wrote

Re: File System Asset Factory help needed and petition wanted

2012-04-16 Thread bhorvat
arterzatij wrote > > And what is the better approach in order to upload files to a web app > without using DBs and file system? > Hi, Can you please check out my "solution" and try to figure out what is wrong. It is like the MIME of the file is set wrong so the file is corrupted, but I am not

Re: File System Asset Factory help needed and petition wanted

2012-04-16 Thread bhorvat
trsvax wrote > > I use Amazon S3 for this sort of thing. It easy and pretty cheap > Can you please provide us with some example code so that I can see who you connect everything. I like your solution so I would like to hear more, please share Cheers -- View this message in context: http://

Re: File System Asset Factory help needed and petition wanted

2012-04-16 Thread bhorvat
Lance Java wrote > > The J2EE specification states that you should never read or write to the > local file system. Using the local file system raises many issues > including > security, portability, transactions, clustering and thread safety. I don't > really agree with including a FileAssetFacto

Re: Serving images outisde of war in tapestry

2012-04-16 Thread bhorvat
Thiago H de Paula Figueiredo wrote > > > I use this approach too. :) > >> @SessionState >> private ProjectState projectState; >> private boolean projectStateExists; > > Why don't you just check if projectState is null instead of using the > boolean field? > > Wont that acutally

Re: Serving images outisde of war in tapestry

2012-04-16 Thread bhorvat
Hi Thiago Can you tell me is this a good approach is you have a lot of images and files to work with? Also how do you upload then images? Can you please share some code to help me grasp the concept. Cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/Serving-images-out

Re: parameter generic type not respected

2012-04-16 Thread Lenny Primak
Java generics are compile-time only. They are lost at run-time, Tapestry has no way to check this. On Apr 16, 2012, at 7:42 PM, Paul Stanton wrote: > Hi all, > > I have a component with a parameter using a generic type eg: > > public class MyComponent > { >@Parameter >private List coll

parameter generic type not respected

2012-04-16 Thread Paul Stanton
Hi all, I have a component with a parameter using a generic type eg: public class MyComponent { @Parameter private List collectionParameter; } However I can set the parameter with a List of any generic type: public class MyPage { @Property private List otherCollection; } ...

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

Re: Bean Edit Form w/ Select Menu

2012-04-16 Thread Thiago H. de Paula Figueiredo
On Mon, 16 Apr 2012 12:07:17 -0300, ICE Ernesto Arteaga Zavala wrote: Hehehe hi, Hi! I need the same explanation! I found that if, the entity has a user Object tapestry could not make the coercion object... so in the beaneditor or beaneditform I need to add it. Tapestry (actually,

Re: File System Asset Factory help needed and petition wanted

2012-04-16 Thread arterzatij
And what is the better approach in order to upload files to a web app without using DBs and file system? Cheers! -- View this message in context: http://tapestry.1045711.n5.nabble.com/File-System-Asset-Factory-help-needed-and-petition-wanted-tp5641308p5644119.html Sent from the Tapestry - User

Re: Bean Edit Form w/ Select Menu

2012-04-16 Thread ICE Ernesto Arteaga Zavala
Hehehe hi, I need the same explanation! I found that if, the entity has a user Object tapestry could not make the coercion object... so in the beaneditor or beaneditform I need to add it. Some more clarification, please! 2012/4/16 George Christman > I answered my own question, looks like I ju

Re: Bean Edit Form w/ Select Menu

2012-04-16 Thread George Christman
I answered my own question, looks like I just needed to add the parameter "add". I didn't think I'd need to add the parameter since applicationUser existed in my entity bean. Can some one explain the reasoning behind this> Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble

Bean Edit Form w/ Select Menu

2012-04-16 Thread George Christman
Hello, I'm trying to use a beaneditform for the first time, but I'm currently facing a problem getting a select menu to appear and work. I'm using Tap3.2 along with hibernate Source code .tml .class public class Evaluator_Test { @

Re: [ANN] JumpStart solves AjaxFormLoop conundrum, I think!

2012-04-16 Thread Geoff Callender
The link should be: http://jumpstart.doublenegative.com.au/jumpstart/ On 16/04/2012, at 7:21 PM, Geoff Callender wrote: > Hi all, > > A lot of us have been struggling to get AjaxFormLoop to work correctly > through all situations: validation failures server-side; rows deleted from > t

Re: Reuse Edit/Create

2012-04-16 Thread Thiago H. de Paula Figueiredo
On Mon, 16 Apr 2012 06:20:28 -0300, netdawg wrote: Just curious what the best (new) practice is for this common design pattern of Add/Update being driven by the same page/class etc. I've been using it since my Struts (aaargh!) days and it works very, very well in Tapestry too.

Re: Not serializable: org.apache.tapestry5.tree.TreeExpansionModel

2012-04-16 Thread Thiago H. de Paula Figueiredo
On Sun, 15 Apr 2012 09:23:55 -0300, Felix Gonschorek wrote: hi thiago, Hi, Felix! it's not me persisting the model ;-) - it's the Tree component: org.apache.tapestry5.corelib.components.Tree, Line 113: @Persist private TreeExpansionModel defaultTreeExpansionModel; Ouch! I sho

Re: Serving images outisde of war in tapestry

2012-04-16 Thread Thiago H. de Paula Figueiredo
On Sun, 15 Apr 2012 08:59:01 -0300, Beat Durrer wrote: Hi Boris. Hi! I do not use asset domains, but a spezialized page that transforms my parameters into a filelocation (because it's also dependent on user roles and such). Page classes may return an Stream instead of rendering a page templ

Re: How change the post color?

2012-04-16 Thread Thiago H. de Paula Figueiredo
On Fri, 13 Apr 2012 16:18:26 -0300, xxxgirls wrote: Hi, H! I don't like the black post color in IE. How can I chaged it ? thanks! I guess you're talking about Nabble, but this is actually a mailing list. Nabble is just a forum interface on the top of the mailing list and you're asking

Re: how to get component event source?

2012-04-16 Thread Lance Java
Now I'm starting to doubt myself, I'm starting to think that the @Parameter will be null when the ajax method is invoked. You will need to pass the droppablecontext in the AJAX event URL in a similar way to how the draggablecontext is passed. https://github.com/got5/tapestry5-jquery/blob/master/s

Re: how to get component event source?

2012-04-16 Thread Chris Mylonas
Geez Lance, thanks for checking it out further, hope you had a pleasant weekend. Are you serious with that's all that has to happen + a parameter i guess? I read the source code and was tempted by it's length - and yes it doesn't look too hard, but you've seriously taken it to easy-ville!! Especi

[ANN] JumpStart solves AjaxFormLoop conundrum, I think!

2012-04-16 Thread Geoff Callender
Hi all, A lot of us have been struggling to get AjaxFormLoop to work correctly through all situations: validation failures server-side; rows deleted from the DB by others; and without using session persistence. It's been a tough nut, but I think I've finally cracked it! There are 3 AjaxFormLo

Re: Reuse Edit/Create

2012-04-16 Thread netdawg
Replacing @Persist("entity") with @PageActivationContext seems to do the trick. There was also talk of creatively coding the onActivate method starting with version 5.3. Of course, the onSuccess() is modified to @CommitAfter Object onSuccess() { session.saveOrUpdate(person); // rath

Reuse Edit/Create

2012-04-16 Thread netdawg
How to reuse the EditPerson from http://tapestry.apache.org/hibernate-user-guide.html as also create. public class EditPerson { @Persist("entity") @Property private Person person; @InjectPage private PersonIndex personIndex; void onActivate(Person person) { this.person = pers

how to get component event source?

2012-04-16 Thread Lance Java
Hi Chris, the ZoneDroppable mixin is only a few lines of code https://github.com/got5/tapestry5-jquery/blob/master/src/main/java/org/got5/tapestry5/jquery/mixins/ZoneDroppable.java You could quite easily create another mixin by copying/tweaking the code or better yet, clone the repository and send

Re: Serving images outisde of war in tapestry

2012-04-16 Thread Beat Durrer
Well it's not a "physical" redirect, its a replacement. The page does nothing else than streaming an image back to the browser, tapestry does not need to do a redirect for that. I can't really tell you how well it performs in real life, it does not have a big user base (maybe 200 users). I have a

How change the post color?

2012-04-16 Thread xxxgirls
Hi, I don't like the black post color in IE. How can I chaged it ? thanks! xxxgirls -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-change-the-post-color-tp5639341p5639341.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Not serializable: org.apache.tapestry5.tree.TreeExpansionModel

2012-04-16 Thread Lance Java
I think that SeleniumTestCase should inject a Session implementation that fails when setAttribute() is called with a non-Serializable object so that we can catch this in the future

Re: File System Asset Factory help needed and petition wanted

2012-04-16 Thread Lance Java
The J2EE specification states that you should never read or write to the local file system. Using the local file system raises many issues including security, portability, transactions, clustering and thread safety. I don't really agree with including a FileAssetFactory in the Tapestry source as th