Re: Tapestry and SeeSaw talk
Ok - try http://www.vimeo.com/10588204 - this time it is hosted on my vimeo accout and set to be public. Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Wed, Mar 31, 2010 at 8:41 PM, Christian Edward Gruber < christianedwardgru...@gmail.com> wrote: > Likewise. I'd love to see it. > > Christian. > > > On Mar 31, 2010, at 1:34 PM, Ivano Luberti wrote: > > Keep getting a permission denied message >> >> Il 26/03/2010 17.03, Ben Gidley ha scritto: >> >>> Hi, >>> >>> Skillsmatter have changed the permissions - so it may work better now or >>> try >>> http://vimeo.com/10399058 >>> Ben Gidley >>> >>> www.gidley.co.uk >>> b...@gidley.co.uk >>> >>> >>> On Thu, Mar 25, 2010 at 9:05 PM, Felix Gonschorek < >>> felix.gonscho...@gmail.com> wrote: >>> >>> >>> hi ben, i am very interested in watching your podcast/video, but somehow this is not possible. Instead of the video is see a "Sorry" message from vimeo, saying that i am not allowed to watch your file. Do you have any access restrictions activated? I would really apreciate to watch your talk. Thank you! Felix Am 24.03.2010 18:29, schrieb Ben Gidley: Hi, I did a talk last night on how we used tapestry for SeeSaw.com and if > you > are interested there is a video podcast at > > http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand > the slides are at links.gidley.co.uk/tiafr > > Ben Gidley > > www.gidley.co.uk > b...@gidley.co.uk > > > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org >>> >> -- >> == >> dott. Ivano Mario Luberti >> Archimede Informatica societa' cooperativa a r. l. >> Sede Operativa >> Via Gereschi 36 - 56126- Pisa >> tel.: +39-050- 580959 >> tel/fax: +39-050-9711344 >> web: www.archicoop.it >> == >> >> >> - >> 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] Jazoon 2010 Talk (JavaServer Faces 2.0 vs. Tapestry 5: A Head-to-Head Comparison)
On Wed, Mar 31, 2010 at 9:49 AM, Christian Riedel wrote: > ...do you have some free tickets? :) > Unfortunately not. > > Looking at the other talks it almost seems like a JSF 2.0 convention. Good > luck for surviving the Q&A! There are only 3 JSF-Talks. I would not say this is a JSF convention like JAX 2010 [1] and [2]. http://it-republik.de/konferenzen/jax2010/session/?tid=1502 http://it-republik.de/konferenzen/jax2010/session/?tid=1503 > > > Am 31.03.2010 um 02:46 schrieb Howard Lewis Ship: > > > Yep, it sounds like fun. I'm curious to see your findings. I hope > > that the balance is on Tapestry for the stronger architecture and > > (reasonably) JSF for the market acceptance, but I'm sure there's some > > worthwhile ideas somewhere inside JSF waiting to be stolen! > > > > > > On Tue, Mar 30, 2010 at 3:24 PM, Andreas Andreou > wrote: > >> That's some great news for: > >> - tapestry > >> - the attendants > >> - yourself! > >> > >> Way to go Igor. > >> > >> On Tue, Mar 30, 2010 at 23:05, Igor Drobiazko > wrote: > >>> Hi folks, > >>> > >>> in June I'll be speaking at Jazoon 2010 [1] in Zurich, Switzerland. > I'll be > >>> presenting a 50 minutes talk "JavaServer Faces 2.0 vs. Tapestry 5: A > >>> Head-to-Head Comparison". More information about the presentation can > be > >>> found at my blog [2]: > >>> > >>> [1] http://jazoon.com > >>> [2] > >>> > http://blog.tapestry5.de/index.php/2010/03/30/jazoon-2010-talk-javaserver-faces-2-0-vs-tapestry-5/ > >>> > >>> I hope to see some Tapestry folks at the conference. > >>> > >>> -- > >>> Best regards, > >>> > >>> Igor Drobiazko > >>> http://tapestry5.de/blog > >>> > >> > >> > >> > >> -- > >> Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr > >> Tapestry / Tacos developer > >> Open Source / JEE Consulting > >> > >> - > >> 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 > > -- Best regards, Igor Drobiazko http://tapestry5.de/blog
Re: submit form on Safari and Opera doesn't work
I've tried use Opera debugger just make sure that JS code with submit form is called. Yes it is. I've created simple web application in Tapestry 5.1.0.5. Just one form, one textfield and one link which fire submit form. It DOESN'T WORK for me in Safari and Opera at all. I post example of my code: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> WebTest Submit ${result} JS file Index.js: function submitForm(){ //try to use more ways how to submit form document.paTableForm.submit(); $('paTableForm').submit(); } Java page: @IncludeJavaScriptLibrary("context:js/index.js") public class Index { @Inject private ComponentResources resources; @Property @Persist private String name; @Property @Persist private String result; public Object onSubmitFromPaTableForm(){ return getCurrentPageName(); } private String getCurrentPageName(){ return resources.getPageName(); } @OnEvent(component="handleAction") public Object handleAction(){ System.out.println( name); result = name; return getCurrentPageName(); } } This code works for me on Firefox 3 and IE8. It doesn't work on Safari 4, Opera 9.64. May anybody say what I'm doing wrong? I'm fighting with it for a few days! Started to be frustrated from Tapestry. Libor -- View this message in context: http://old.nabble.com/submit-form-on-Safari-and-Opera-doesn%27t-work-tp28081757p28104646.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: Res: Res: [T5.1] Best approach to Nested Combos on Forms
Or carry the 1at and 2nd combo selection info into the 3rd combo values too, eg. USA | San Francisco | SomeName. No? On 01/04/2010, at 3:55 AM, Everton Agner wrote: > Yes, there is also the problem that, if there is more than two nested combos, > the First Combo's selected option is lost when the Second Combo option is > selected (and fills/filters the third combo). > > So, the easier way out is really updating the properties values (in the Page > Class instance) by Ajax in every "onBlur()" on each field? > > > Corrections: > > 1 - After the , there is a tag, not a > > > 2 - Its "So, since everything is inside the "updateZone" DIV, every field is > refreshed and lost their values." > > > > > De: Geoff Callender > Para: Tapestry users > Enviadas: Terça-feira, 30 de Março de 2010 19:44:29 > Assunto: Re: Res: [T5.1] Best approach to Nested Combos on Forms > > The origin of the problem is that the context passed to ZoneUpdater has only > one piece of information - the value of the option you selected. No other > context is received. So the server-side must get the rest of the context from > either (a) the session, eg. by saving country and city in the session on > output by using @Persist; or (b) saving them in a conversation persisted in > the session or the database, which avoids the side-effects of @Persist; or > (c) including the context in the value of the option selected, eg. when city > option "San Francisco" is chosen, the value passed could be "USA | San > Francisco". > > Are there any other alternatives? Well maybe there's a way to use > ZoneUpdater's context parameter, but I'm not sure. So (c) is looking pretty > good. > > HTH, > > Geoff > > On 31/03/2010, at 6:53 AM, Everton Agner wrote: > >> Just to show the example cleaner... >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> ... >> >> >> >> >> >> >> So, since everything is inside the "updateZone" combo, every field is >> refreshed and lost their values. >> >> >> Thanks! >> >> - Everton >> >> >> >> >> De: Everton Agner >> Para: Tapestry Users >> Enviadas: Terça-feira, 30 de Março de 2010 16:39:37 >> Assunto: [T5.1] Best approach to Nested Combos on Forms >> >> >> Hi, >> >> I'd like to know which is the cleaner way to work with nesting on Forms on >> T5. >> >> I saw a project with the ZoneUpdater mixin... But, to preserve the values >> from the Form - to reload them after the refresh - it needed to @Persist the >> values and update them everytime the fields lost their focus. >> >> Example: >> >> > zone="updateZone" t:mixins="zoneUpdater" >> t:value="current.name" t:id="name" >> t:validate="required" size="30"/> >> >> So, there is a "changeName()" method in the Page Class to update the "name" >> field value - which is @Persist'ed. >> >> I don't like the way it sounds. Is there another way to achieve the nesting >> and preserve the Form fields values? >> >> Thanks >> >> - Everton >> >> >> Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - >> Celebridades - Música - Esportes >> >> >> >> >> Veja quais são os assuntos do momento no Yahoo! +Buscados >> http://br.maisbuscados.yahoo.com > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > Veja quais são os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: 5.0.1.8 Download?
use http://repository.apache.org/snapshots/ On 31.03.2010 22:22, Kalle Korhonen wrote: Well that's because 5.1.0.8 hasn't been released yet. Kalle On Wed, Mar 31, 2010 at 1:19 PM, xfile80303 wrote: Thanks Kalle, but I still only see 5.1.0.5 there... -- View this message in context: http://n2.nabble.com/5-0-1-8-Download-tp4832734p4833317.html Sent from the Tapestry Users 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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: 5.0.1.8 Download?
Well that's because 5.1.0.8 hasn't been released yet. Kalle On Wed, Mar 31, 2010 at 1:19 PM, xfile80303 wrote: > > Thanks Kalle, but I still only see 5.1.0.5 there... > -- > View this message in context: > http://n2.nabble.com/5-0-1-8-Download-tp4832734p4833317.html > Sent from the Tapestry Users 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: 5.0.1.8 Download?
Thanks Kalle, but I still only see 5.1.0.5 there... -- View this message in context: http://n2.nabble.com/5-0-1-8-Download-tp4832734p4833317.html Sent from the Tapestry Users 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: 5.0.1.8 Download?
You can happily browse the central Maven repo and manually download whatever you like, see e.g: http://repo2.maven.org/maven2/org/apache/tapestry/tapestry-core/ Kalle On Wed, Mar 31, 2010 at 11:42 AM, xfile80303 wrote: > > Hi all, > > It would seem that I'm experiencing some bugs in 5.1.0.5 which have been > fixed in 5.1.0.8, but I can't seem to find a download link for the 5.1.0.8 > jars (and I don't use Maven). Anyone know how to get these (or can explain > to a non-maven user how to simply get the updated binaries from maven)? > > Thanks, > > Levi > -- > View this message in context: > http://n2.nabble.com/5-0-1-8-Download-tp4832734p4832734.html > Sent from the Tapestry Users 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: How to get the Component inside advice?
Chances are your instanceof is failing because you put the SecurePage interface into the pages or components package; move it up a level, to a non-controlled package, so that the services layer and the component layer can agree. Anything inside the pages or components packages (or mixins or base) will be loaded by a different class loader, and this causes these apparently anomalous ClassCastExceptions. But Thiago is right, Tapestry has a proper place for this kind of thing, if you check my blog, you'll see an article where I head down the same path as you (I've recently done this kind of thing for a couple of different clients). I hope to have a simple authentication framework, possibly as a Tapestry extension, at some point in the next couple of months. On Wed, Mar 31, 2010 at 12:31 PM, satb wrote: > >> Advice is for services, not pages and components. > > Thanks for the response. > > Yes. That is true. I want to do one other thing on the methods of the > service if the request is originating from a "SecurePage" -- which is to > check the credentials. Isn't advice the right thing for it? Thats what the > above advice is trying to do except the "instaceof" check is always > returning false. > > I guess what is causing some concern to me is -- why would "component > instanceof SecurePage" return false? > -- > View this message in context: > http://old.nabble.com/How-to-get-the-Component-inside-advice--tp28100055p28100745.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 > > -- 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: How to get the Component inside advice?
On Wed, 31 Mar 2010 16:31:17 -0300, satb wrote: Advice is for services, not pages and components. Thanks for the response. Yes. That is true. I want to do one other thing on the methods of the service if the request is originating from a "SecurePage" -- which is to check the credentials. Isn't advice the right thing for it? Again, advice is for services, not pages and components. If you want to advise pages and components, you'll need to implement a ComponentClassTransformWorker. To check the origin of a request, you'll need to use the Referrer HTTP header or put something in the URL. Thats what the above advice is trying to do except the "instaceof" check is always returning false. Please post your code or we cannot help you. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: Tapestry and SeeSaw talk
Likewise. I'd love to see it. Christian. On Mar 31, 2010, at 1:34 PM, Ivano Luberti wrote: Keep getting a permission denied message Il 26/03/2010 17.03, Ben Gidley ha scritto: Hi, Skillsmatter have changed the permissions - so it may work better now or try http://vimeo.com/10399058 Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Thu, Mar 25, 2010 at 9:05 PM, Felix Gonschorek < felix.gonscho...@gmail.com> wrote: hi ben, i am very interested in watching your podcast/video, but somehow this is not possible. Instead of the video is see a "Sorry" message from vimeo, saying that i am not allowed to watch your file. Do you have any access restrictions activated? I would really apreciate to watch your talk. Thank you! Felix Am 24.03.2010 18:29, schrieb Ben Gidley: Hi, I did a talk last night on how we used tapestry for SeeSaw.com and if you are interested there is a video podcast at http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand the slides are at links.gidley.co.uk/tiafr Ben Gidley www.gidley.co.uk b...@gidley.co.uk - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - 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: [Tapestry Central] In The Brain Of Howard Lewis Ship
They seem to have screwed up the permissions some how - they fixed it and then unfixed. I have a copy - so will chuck it up somewhere tomorrow (as I am bit short of bandwidth to upload it right now). Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Wed, Mar 31, 2010 at 8:08 PM, Ivano Luberti wrote: > Don't ask me why , in my copy of the message the link is broken: > > > > > I did a talk last night on how we used tapestry for SeeSaw.com and if you > > are interested there is a video podcast at > > > http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand > > the slides are at links.gidley.co.uk/tiafr > > there is and attached to the link.thanks Howard > > Il 31/03/2010 20.21, Howard Lewis Ship ha scritto: > > The link he sent worked for me. > > > > http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-real > > > > > > On Wed, Mar 31, 2010 at 10:54 AM, Ivano Luberti > wrote: > > > >> Well I just tried to use the link provided by Ben but it shows an empty > >> page on SkillsMatter > >> > >> Il 31/03/2010 19.49, Howard Lewis Ship ha scritto: > >> > >>> SkillsMatter does tape these sessions and puts them put them up on > >>> their web site ... such as Ben Gidley's talk last week. > >>> > >>> On Wed, Mar 31, 2010 at 10:27 AM, Ivano Luberti > wrote: > >>> > >>> > Why you don't record it and let us see? > > Il 30/03/2010 19.38, Howard ha scritto: > > > > While I'm in London for three days of Tapestry 5 Training, I'll also > be > > giving an evening In The Brain Of talk ... on Tapestry, because > there's > > not that much else rattling around my brain lately. Whereas Ben's > talk > > was about lessons learned at the tail end of a Tapestry project, my > > talk gives you a point of reference on what Tapestry is all about, > and > > why you want to start using it. > > Swing by, take in the talk, and come on out for a pint or two! The > talk > > is Tuesday, April 13th at 18:30. > > > > -- > > Posted By Howard to Tapestry Central at 3/30/2010 10:38:00 AM > > > > > > > -- > == > dott. Ivano Mario Luberti > Archimede Informatica societa' cooperativa a r. l. > Sede Operativa > Via Gereschi 36 - 56126- Pisa > tel.: +39-050- 580959 > tel/fax: +39-050-9711344 > web: www.archicoop.it > == > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > >>> > >>> > >>> > >> -- > >> == > >> dott. Ivano Mario Luberti > >> Archimede Informatica societa' cooperativa a r. l. > >> Sede Operativa > >> Via Gereschi 36 - 56126- Pisa > >> tel.: +39-050- 580959 > >> tel/fax: +39-050-9711344 > >> web: www.archicoop.it > >> == > >> > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >> For additional commands, e-mail: users-h...@tapestry.apache.org > >> > >> > >> > > > > > > > > -- > == > dott. Ivano Mario Luberti > Archimede Informatica societa' cooperativa a r. l. > Sede Operativa > Via Gereschi 36 - 56126- Pisa > tel.: +39-050- 580959 > tel/fax: +39-050-9711344 > web: www.archicoop.it > == > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: How to get the Component inside advice?
> Advice is for services, not pages and components. Thanks for the response. Yes. That is true. I want to do one other thing on the methods of the service if the request is originating from a "SecurePage" -- which is to check the credentials. Isn't advice the right thing for it? Thats what the above advice is trying to do except the "instaceof" check is always returning false. I guess what is causing some concern to me is -- why would "component instanceof SecurePage" return false? -- View this message in context: http://old.nabble.com/How-to-get-the-Component-inside-advice--tp28100055p28100745.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: [Tapestry Central] In The Brain Of Howard Lewis Ship
Don't ask me why , in my copy of the message the link is broken: > > I did a talk last night on how we used tapestry for SeeSaw.com and if you > are interested there is a video podcast at > http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand > the slides are at links.gidley.co.uk/tiafr there is and attached to the link.thanks Howard Il 31/03/2010 20.21, Howard Lewis Ship ha scritto: > The link he sent worked for me. > > http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-real > > > On Wed, Mar 31, 2010 at 10:54 AM, Ivano Luberti wrote: > >> Well I just tried to use the link provided by Ben but it shows an empty >> page on SkillsMatter >> >> Il 31/03/2010 19.49, Howard Lewis Ship ha scritto: >> >>> SkillsMatter does tape these sessions and puts them put them up on >>> their web site ... such as Ben Gidley's talk last week. >>> >>> On Wed, Mar 31, 2010 at 10:27 AM, Ivano Luberti >>> wrote: >>> >>> Why you don't record it and let us see? Il 30/03/2010 19.38, Howard ha scritto: > While I'm in London for three days of Tapestry 5 Training, I'll also be > giving an evening In The Brain Of talk ... on Tapestry, because there's > not that much else rattling around my brain lately. Whereas Ben's talk > was about lessons learned at the tail end of a Tapestry project, my > talk gives you a point of reference on what Tapestry is all about, and > why you want to start using it. > Swing by, take in the talk, and come on out for a pint or two! The talk > is Tuesday, April 13th at 18:30. > > -- > Posted By Howard to Tapestry Central at 3/30/2010 10:38:00 AM > > > -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >>> >> -- >> == >> dott. Ivano Mario Luberti >> Archimede Informatica societa' cooperativa a r. l. >> Sede Operativa >> Via Gereschi 36 - 56126- Pisa >> tel.: +39-050- 580959 >> tel/fax: +39-050-9711344 >> web: www.archicoop.it >> == >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> > > > -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to get the Component inside advice?
On Wed, 31 Mar 2010 15:37:36 -0300, satb wrote: I am trying to get the component inside an advice and if the page invoked isextends "SecurePage", then I have to check the security credentials on that request. A way better way of doing it is to implement a ComponentEventRequestFilter and contribute it to the service ComponentEventRequestHandler. Take a look at the graph in the end of http://tapestry.formos.com/nightly/tapestry5/guide/request.html to have a better look at how Tapestry processes requests. A typical cross-cutting concern which is best served by an advice. Advice is for services, not pages and components. By the way, looking at your advice, there's the ComponentEventLinkEncoder service that provides methods like PageRenderRequestParameters decodePageRenderRequest(Request request) to deal with extracting the page name from a request. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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
5.0.1.8 Download?
Hi all, It would seem that I'm experiencing some bugs in 5.1.0.5 which have been fixed in 5.1.0.8, but I can't seem to find a download link for the 5.1.0.8 jars (and I don't use Maven). Anyone know how to get these (or can explain to a non-maven user how to simply get the updated binaries from maven)? Thanks, Levi -- View this message in context: http://n2.nabble.com/5-0-1-8-Download-tp4832734p4832734.html Sent from the Tapestry Users 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
Deadlock in weblogic?
Hey all. I searched JIRA and couldn't find anything. Has anyone seen the following deadlock on WebLogic 9.2? This project is running T5.0.15 (upgrade needed badly) but I didn't want to assume an upgrade would fix it. The code in question has changed since this version. <[STANDBY] ExecuteThread: '291' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1269959444220> <[STUCK] ExecuteThread: '145' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "667" seconds working on the request "Http Request: /swan/projects.overviewcell.activitybox.zonelink/4078", which is more than the configured time (StuckThreadMaxTime) of "600" seconds. Stack trace: org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:58) $Context_127af610c32.delegate($Context_127af610c32.java) $Context_127af610c32.getResource($Context_127af610c32.java) org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:61) $RequestHandler_127af610c37.service($RequestHandler_127af610c37.java) org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:93) org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:84) org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:83) org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:106) $RequestHandler_127af610c37.service($RequestHandler_127af610c37.java) $RequestHandler_127af610c2e.service($RequestHandler_127af610c2e.java) org.apache.tapestry5.services.TapestryModule$16.service(TapestryModule.java:1005) org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62) $HttpServletRequestFilter_127af610c2d.service($HttpServletRequestFilter_127af610c2d.java) $HttpServletRequestHandler_127af610c2f.service($HttpServletRequestHandler_127af610c2f.java) $HttpServletRequestHandler_127af610c23.service($HttpServletRequestHandler_127af610c23.java) org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:179) weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3229) weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002) weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908) weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362) weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) weblogic.work.ExecuteThread.run(ExecuteThread.java:181) Dan Adams Principal Software Engineer Interactive Factory p: 617.235.5857
How to get the Component inside advice?
I am trying to get the component inside an advice and if the page invoked is extends "SecurePage", then I have to check the security credentials on that request. A typical cross-cutting concern which is best served by an advice. But its not working. Anything I am doing wrong here? Could this below problem be a classloader problem? @Match("SecureInterface") public static void adviceSecureRequest(MethodAdviceReceiver receiver, final Request request, final ComponentClassResolver componentClassResolver, final RequestPageCache cache, final AuthService authService){ MethodAdvice advice = new MethodAdvice(){ public void advise(Invocation invocation){ //SOME PLUMBING CODE TO GET TO THE COMPONENT. //DON'T KNOW IF THERE IS AN EASIER WAY. String path = request.getPath(); int actionEvent = path.lastIndexOf('.'); if (actionEvent != -1) path = path.substring(0, actionEvent); int nextslashx = path.length(); String pageName; while (true) { pageName = path.substring(1, nextslashx); if (!pageName.endsWith("/") && componentClassResolver.isPageName(pageName)) break; nextslashx = path.lastIndexOf('/', nextslashx - 1); if (nextslashx <= 1) break; } if (componentClassResolver.isPageName(pageName)){ Page page = cache.get(pageName); //NOW WE HAVE A HANDLE ON THE COMPONENT Component component = page.getRootComponent(); //THE BELOW IF CONDITION ALWAYS FAILS. //AS AN EXAMPLE, THIS "component" could be a "PayPage" page which extends "SecurePage". //SO component HERE SHOULD ACTUALLY BE "PayPage" AND THEREFORE A "SecurePage". BUT, THE CONDITION ISN'T SATISFIED //I DOUBLE CHECKED THE HASHCODE of "PayPage" in BeginRender of PayPage and that of "component" over here AND BOTH ARE IDENTICAL. //SO I AM CONFUSED WHY THE BELOW CONDITION WOULD FAIL. //IS THIS A CLASSLOADER PROBLEM IF THE HASHCODE IS THE SAME //THEN THEY ARE THE SAME OBJECTS, SO WHY IS THE BELOW CONDITION FAILING? if (component instanceof SecurePage) authService.checkSecurity(invocation.getParameter(0)); // I NEED TO CALL THIS TO CHECK THE CREDENTIALS IF THE PAGE IS A "SecurePage" } invocation.proceed(); } // end advice method of inner class }; // end inner class receiver.adviseAllMethods(advice); } -- View this message in context: http://old.nabble.com/How-to-get-the-Component-inside-advice--tp28100055p28100055.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: Grid: Customizing cell CSS based on property value
Hi! Although Tapestry Grid don't allow you to specify cell CSS style, you can do something like this: ${o.someproperty} Don't you? Regards. Matías. Thiago H. de Paula Figueiredo wrote: > > On Wed, 31 Mar 2010 09:21:04 -0300, Stephan Windmüller > wrote: > >> On 30.03.2010 16:34 Thiago H. de Paula Figueiredo wrote: >> Is it possible to change the class of a grid cell (not just the row or column) based on the value of the property? >>> Yes! Just use the rowClass parameter. >> >> But this changes only the class of the tr element like: > > Oops, I misread your question. I'm sorry. Grid currently hasn't a way of > specifying a cell CSS class. > >> Of course I could change the rowClass and use CSS selectors and the >> property id but I am wondering if there is another way. > > AFAIK, there isn't. If you want, you can file a JIRA for that. > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, 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 > > > -- View this message in context: http://old.nabble.com/Grid%3A-Customizing-cell-CSS-based-on-property-value-tp28083380p28099971.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: [Tapestry Central] In The Brain Of Howard Lewis Ship
The link he sent worked for me. http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-real On Wed, Mar 31, 2010 at 10:54 AM, Ivano Luberti wrote: > Well I just tried to use the link provided by Ben but it shows an empty > page on SkillsMatter > > Il 31/03/2010 19.49, Howard Lewis Ship ha scritto: >> SkillsMatter does tape these sessions and puts them put them up on >> their web site ... such as Ben Gidley's talk last week. >> >> On Wed, Mar 31, 2010 at 10:27 AM, Ivano Luberti wrote: >> >>> Why you don't record it and let us see? >>> >>> Il 30/03/2010 19.38, Howard ha scritto: >>> While I'm in London for three days of Tapestry 5 Training, I'll also be giving an evening In The Brain Of talk ... on Tapestry, because there's not that much else rattling around my brain lately. Whereas Ben's talk was about lessons learned at the tail end of a Tapestry project, my talk gives you a point of reference on what Tapestry is all about, and why you want to start using it. Swing by, take in the talk, and come on out for a pint or two! The talk is Tuesday, April 13th at 18:30. -- Posted By Howard to Tapestry Central at 3/30/2010 10:38:00 AM >>> -- >>> == >>> dott. Ivano Mario Luberti >>> Archimede Informatica societa' cooperativa a r. l. >>> Sede Operativa >>> Via Gereschi 36 - 56126- Pisa >>> tel.: +39-050- 580959 >>> tel/fax: +39-050-9711344 >>> web: www.archicoop.it >>> == >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >>> >> >> >> > > -- > == > dott. Ivano Mario Luberti > Archimede Informatica societa' cooperativa a r. l. > Sede Operativa > Via Gereschi 36 - 56126- Pisa > tel.: +39-050- 580959 > tel/fax: +39-050-9711344 > web: www.archicoop.it > == > > > - > 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: [Tapestry Central] In The Brain Of Howard Lewis Ship
Well I just tried to use the link provided by Ben but it shows an empty page on SkillsMatter Il 31/03/2010 19.49, Howard Lewis Ship ha scritto: > SkillsMatter does tape these sessions and puts them put them up on > their web site ... such as Ben Gidley's talk last week. > > On Wed, Mar 31, 2010 at 10:27 AM, Ivano Luberti wrote: > >> Why you don't record it and let us see? >> >> Il 30/03/2010 19.38, Howard ha scritto: >> >>> While I'm in London for three days of Tapestry 5 Training, I'll also be >>> giving an evening In The Brain Of talk ... on Tapestry, because there's >>> not that much else rattling around my brain lately. Whereas Ben's talk >>> was about lessons learned at the tail end of a Tapestry project, my >>> talk gives you a point of reference on what Tapestry is all about, and >>> why you want to start using it. >>> Swing by, take in the talk, and come on out for a pint or two! The talk >>> is Tuesday, April 13th at 18:30. >>> >>> -- >>> Posted By Howard to Tapestry Central at 3/30/2010 10:38:00 AM >>> >>> >> -- >> == >> dott. Ivano Mario Luberti >> Archimede Informatica societa' cooperativa a r. l. >> Sede Operativa >> Via Gereschi 36 - 56126- Pisa >> tel.: +39-050- 580959 >> tel/fax: +39-050-9711344 >> web: www.archicoop.it >> == >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> > > > -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Tapestry Central] In The Brain Of Howard Lewis Ship
SkillsMatter does tape these sessions and puts them put them up on their web site ... such as Ben Gidley's talk last week. On Wed, Mar 31, 2010 at 10:27 AM, Ivano Luberti wrote: > Why you don't record it and let us see? > > Il 30/03/2010 19.38, Howard ha scritto: >> While I'm in London for three days of Tapestry 5 Training, I'll also be >> giving an evening In The Brain Of talk ... on Tapestry, because there's >> not that much else rattling around my brain lately. Whereas Ben's talk >> was about lessons learned at the tail end of a Tapestry project, my >> talk gives you a point of reference on what Tapestry is all about, and >> why you want to start using it. >> Swing by, take in the talk, and come on out for a pint or two! The talk >> is Tuesday, April 13th at 18:30. >> >> -- >> Posted By Howard to Tapestry Central at 3/30/2010 10:38:00 AM >> > > -- > == > dott. Ivano Mario Luberti > Archimede Informatica societa' cooperativa a r. l. > Sede Operativa > Via Gereschi 36 - 56126- Pisa > tel.: +39-050- 580959 > tel/fax: +39-050-9711344 > web: www.archicoop.it > == > > > - > 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: Tapestry and SeeSaw talk
Keep getting a permission denied message Il 26/03/2010 17.03, Ben Gidley ha scritto: > Hi, > > Skillsmatter have changed the permissions - so it may work better now or try > http://vimeo.com/10399058 > Ben Gidley > > www.gidley.co.uk > b...@gidley.co.uk > > > On Thu, Mar 25, 2010 at 9:05 PM, Felix Gonschorek < > felix.gonscho...@gmail.com> wrote: > > >> hi ben, >> >> i am very interested in watching your podcast/video, but somehow this is >> not possible. Instead of the video is see a "Sorry" message from vimeo, >> saying that i am not allowed to watch your file. Do you have any access >> restrictions activated? >> >> I would really apreciate to watch your talk. >> >> Thank you! >> >> Felix >> >> Am 24.03.2010 18:29, schrieb Ben Gidley: >> >> Hi, >> >>> I did a talk last night on how we used tapestry for SeeSaw.com and if you >>> are interested there is a video podcast at >>> http://skillsmatter.com/podcast/java-jee/tapestry-5-in-action-for-realand >>> the slides are at links.gidley.co.uk/tiafr >>> >>> Ben Gidley >>> >>> www.gidley.co.uk >>> b...@gidley.co.uk >>> >>> >>> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> >> > -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Tapestry Central] In The Brain Of Howard Lewis Ship
Why you don't record it and let us see? Il 30/03/2010 19.38, Howard ha scritto: > While I'm in London for three days of Tapestry 5 Training, I'll also be > giving an evening In The Brain Of talk ... on Tapestry, because there's > not that much else rattling around my brain lately. Whereas Ben's talk > was about lessons learned at the tail end of a Tapestry project, my > talk gives you a point of reference on what Tapestry is all about, and > why you want to start using it. > Swing by, take in the talk, and come on out for a pint or two! The talk > is Tuesday, April 13th at 18:30. > > -- > Posted By Howard to Tapestry Central at 3/30/2010 10:38:00 AM > -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Res: Res: [T5.1] Best approach to Nested Combos on Forms
Yes, there is also the problem that, if there is more than two nested combos, the First Combo's selected option is lost when the Second Combo option is selected (and fills/filters the third combo). So, the easier way out is really updating the properties values (in the Page Class instance) by Ajax in every "onBlur()" on each field? Corrections: 1 - After the , there is a tag, not a 2 - Its "So, since everything is inside the "updateZone" DIV, every field is refreshed and lost their values." De: Geoff Callender Para: Tapestry users Enviadas: Terça-feira, 30 de Março de 2010 19:44:29 Assunto: Re: Res: [T5.1] Best approach to Nested Combos on Forms The origin of the problem is that the context passed to ZoneUpdater has only one piece of information - the value of the option you selected. No other context is received. So the server-side must get the rest of the context from either (a) the session, eg. by saving country and city in the session on output by using @Persist; or (b) saving them in a conversation persisted in the session or the database, which avoids the side-effects of @Persist; or (c) including the context in the value of the option selected, eg. when city option "San Francisco" is chosen, the value passed could be "USA | San Francisco". Are there any other alternatives? Well maybe there's a way to use ZoneUpdater's context parameter, but I'm not sure. So (c) is looking pretty good. HTH, Geoff On 31/03/2010, at 6:53 AM, Everton Agner wrote: > Just to show the example cleaner... > > > > > > > > > > > > > > > >... > > > > > > > So, since everything is inside the "updateZone" combo, every field is > refreshed and lost their values. > > > Thanks! > > - Everton > > > > > De: Everton Agner > Para: Tapestry Users > Enviadas: Terça-feira, 30 de Março de 2010 16:39:37 > Assunto: [T5.1] Best approach to Nested Combos on Forms > > > Hi, > > I'd like to know which is the cleaner way to work with nesting on Forms on T5. > > I saw a project with the ZoneUpdater mixin... But, to preserve the values > from the Form - to reload them after the refresh - it needed to @Persist the > values and update them everytime the fields lost their focus. > > Example: > > zone="updateZone" t:mixins="zoneUpdater" > t:value="current.name" t:id="name" > t:validate="required" size="30"/> > > So, there is a "changeName()" method in the Page Class to update the "name" > field value - which is @Persist'ed. > > I don't like the way it sounds. Is there another way to achieve the nesting > and preserve the Form fields values? > > Thanks > > - Everton > > > Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - > Celebridades - Música - Esportes > > > > > Veja quais são os assuntos do momento no Yahoo! +Buscados > http://br.maisbuscados.yahoo.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
Answering my own JEE6/Tapestry Question [LONG]
I asked before, didn't get a great answer, but I've figured some stuff out since then, so here goes: (Note that some of this stuff may be wrong, I'm not an EJB or Tapestry expert, I'm just trying to weld the two together. (pun intended)). Q: How can/should I use EJBs/JPA in Tapestry? A: Tapestry currently doesn't support EJB injection, however, there's a tynamo-jpa project that support injecting EntityManager objects in a fashion similar to tapestry-hibernate. You can lookup EJBs easily as needed using the EJB3.1 naming convention though. Between the two, you can actually produce a "best of both worlds" environment for using JEE6. That is, you can keep pretty light sessions mostly, but when you need to write data, you can do that via an EJB. Read-Mostly using tynamo-jpa: Tynamo-jpa, like tapestry-hibernate, works best with read-mostly data. The cycle is something like this: 1. Link to page with primary key of entity stored in context portion of URL, page expects entity object. 2. Tapestry makes a new EntityManager (EntityManagers are lightweight objects in JPA). 3. Entity fetched from either database or level 2 cache, passed to Page. 4. Page generates, entities turned back into primary keys, stored in context. 5. Entity Manager thrown away. If you need to write data, you can fetch something into memory, modify it, and then save it using @CommitAfter. Despite the dramatic language ("throwing stuff away"), the trade offs are complex because of the various caches built into JPA. Think of it as if the only thing that Tapestry needs to store in the session is the primary keys that it can then, via JPA, use to lookup objects via the cache. So for searching and displaying data, tynamo-jpa does the job. But there's an assumption there about what most of your data looks like. For something like a webstore, 90% of the data is read-only catalog data that should be cached across users. The read/write data is stuff like the shopping cart, and that's what needs to be stored in the session, not the catalog, and it doesn't need to be cached so much. Or consider GMail. When you login to GMail, it has to fetch all of your mailboxes, but your data doesn't intersect with anyone elses data. So caching your mailboxes doesn't make sense, and fetching all of your mail data again for each page may not make sense. What makes more sense is to fetch the data once, and then keep it around in the session. Using EJB session beans for read/write data: EJBs come in 3 flavors: Singleton, which means everyone gets the same EJB, Stateless, which means they're kept in pools and re-used, and Stateful which means "one per customer". Normally, the container manages the distinction for you. Since Tapestry doesn't directly support EJB injection though, though you can trust Singleton's to be singleton's, I'm not sure what happens with Stateless session beans. But that's ok, because in this case, we want a Stateful session bean, because we want an EntityManager that has data that persists across requests. This is what mine looks like: @Stateful public class SchemaEditEJB { //~ Instance fields /** Information for EntityManager we want injected when EJB is built*/ @PersistenceContext( unitName = "LocalDB2GlassFish", type = PersistenceContextType.EXTENDED ) protected EntityManager em; //~ Methods /** * Static method to lookup our EJB using standardized name spaces * */ static SchemaEditEJB lookupSchemaEditEJB() { for (String prefix: new String[] { "", "java:module/", "java:app/MyApp/", "java:global/MyApp/" } ) { try { Context context = new InitialContext(); return (SchemaEditEJB) context.lookup(prefix + SchemaEditEJB.class.getSimpleName()); } catch (NamingException ex) { Logger.getLogger(SchemaEditEJB.class.getName()).log(Level.SEVERE, null, ex); } } return null; } /** * Return an entity manager */ public EntityManager getEntityManager() { return em; } /** * Persist an object * */ public void persist(Object o) { em.persist(o); } /** * revert an object * */ public void revert(Object o) { em.refresh(o); } /** * Save everything to the database, and throw the EJB away */ @Remove @Transact
Re: Grid: Customizing cell CSS based on property value
On Wed, 31 Mar 2010 09:21:04 -0300, Stephan Windmüller wrote: On 30.03.2010 16:34 Thiago H. de Paula Figueiredo wrote: Is it possible to change the class of a grid cell (not just the row or column) based on the value of the property? Yes! Just use the rowClass parameter. But this changes only the class of the tr element like: Oops, I misread your question. I'm sorry. Grid currently hasn't a way of specifying a cell CSS class. Of course I could change the rowClass and use CSS selectors and the property id but I am wondering if there is another way. AFAIK, there isn't. If you want, you can file a JIRA for that. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: Grid: Customizing cell CSS based on property value
On 30.03.2010 16:34 Thiago H. de Paula Figueiredo wrote: Is it possible to change the class of a grid cell (not just the row or column) based on the value of the property? Yes! Just use the rowClass parameter. But this changes only the class of the tr element like: ... What I want to do is customizing the cell, not the row: ... Of course I could change the rowClass and use CSS selectors and the property id but I am wondering if there is another way. - Stephan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Page without markup
On Wed, 31 Mar 2010 05:30:49 -0300, Dmitry Gusev wrote: Can't get it working with Dispatcher. Take a look at http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher. Where should I plug new dispatcher It must be contributed to the MasterDispatcher service. and what should a dispatcher do? A dispatcher is a class that handles requests and generates a response. In Tapestry, it's the concept more similar to a servlet. In your case, as you don't need to generate a response, it would be a better fit than a page. Do you propose to replaces pages with dispatchers? No, just to handle URLs that don't generate a response. Or just make dispatcher which somehow says to Tapestry that specified page doesn't contain any template file? No. A dispatcher is completely different from a page. I tried to add new dispatcher to both "before:PageRender" and "after:PageRender" but didn't have any success. The one in "after:PageRender" never ever invoked. And handlign request in "before:PageRender" prevents executing page's onActivate at all. In this case, the dispatcher would replace the page that handles the GAE callback. Don't forget that the boolean dispatch(Request request, Response response) throws IOException method must return false for requests not really handled by the dispatcher. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, 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: LinkSubmit with Context?
i created https://issues.apache.org/jira/browse/TAP5-1091 by cloning TAP-532 i hope i can provide a patch over next monday. g, kris Von:Łukasz Jazgar An: Tapestry users Datum: 31.03.2010 13:19 Betreff:Re: LinkSubmit with Context? 2010/3/31 Kristian Marinkovic > hi pierce, > > there was already the jira issue > https://issues.apache.org/jira/browse/TAP5-532 > that was closed as duplicat of > https://issues.apache.org/jira/browse/TAP5-194 > which was not correct. > > maybe we should reopen it. > > Yes, we should. I also grapple with a problem of lack of context in LinkSubmit at the moment. This improvement would be great. I vote for it. :) Regards Lukasz
Re: LinkSubmit with Context?
2010/3/31 Kristian Marinkovic > hi pierce, > > there was already the jira issue > https://issues.apache.org/jira/browse/TAP5-532 > that was closed as duplicat of > https://issues.apache.org/jira/browse/TAP5-194 > which was not correct. > > maybe we should reopen it. > > Yes, we should. I also grapple with a problem of lack of context in LinkSubmit at the moment. This improvement would be great. I vote for it. :) Regards Lukasz
Re: LinkSubmit with Context?
hi pierce, there was already the jira issue https://issues.apache.org/jira/browse/TAP5-532 that was closed as duplicat of https://issues.apache.org/jira/browse/TAP5-194 which was not correct. maybe we should reopen it. g, kris Von:"Pierce T. Wetter III" An: "Tapestry users" Datum: 30.03.2010 17:15 Betreff:Re: LinkSubmit with Context? On Mar 30, 2010, at 12:46 AM, Kristian Marinkovic wrote: > if you have multiple linksubmit components you can distinguish them > by adding onSelectedFromSubmit1() or onSelectedFromSubmit2() > action handler. > > the linksubmit component does not support a context parameter out of > the box. if you really need it you have to create your own component. > all you need is the code from the linksubmit component + the part of > submit that stores an action into the form that resolves the context > again: > > formSupport.store(this, new ProcessSubmission(name)); Do you agree that this seems like a bug? That linksubmit should support the same set of things as regular submit? Pierce - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Page without markup
Can't get it working with Dispatcher. Where should I plug new dispatcher and what should a dispatcher do? Do you propose to replaces pages with dispatchers? Or just make dispatcher which somehow says to Tapestry that specified page doesn't contain any template file? I tried to add new dispatcher to both "before:PageRender" and "after:PageRender" but didn't have any success. The one in "after:PageRender" never ever invoked. And handlign request in "before:PageRender" prevents executing page's onActivate at all. Am I doing something wrong? On Tue, Mar 30, 2010 at 23:20, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 30 Mar 2010 15:42:39 -0300, Dmitry Gusev > wrote: > > My onActivate methods in such pages return nothing, they're void. >> > > In this case, Tapestry expects your page to have a template so it has > something to render. > > > Should I change return type to something else? I know I can use >> StreamResponse and return something like new >> TextStreamResponse("text/plain", ""). >> > > That's not beautiful but it's a solution. > > > Would it be preferred way? >> > > I guess it would be to implement a Dispatcher. > > > -- > Thiago H. de Paula Figueiredo > Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, > and instructor > Owner, software architect and developer, 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 > > -- Dmitry Gusev AnjLab Team http://anjlab.com
Re: [ANN] Jazoon 2010 Talk (JavaServer Faces 2.0 vs. Tapestry 5: A Head-to-Head Comparison)
...do you have some free tickets? :) Looking at the other talks it almost seems like a JSF 2.0 convention. Good luck for surviving the Q&A! Am 31.03.2010 um 02:46 schrieb Howard Lewis Ship: > Yep, it sounds like fun. I'm curious to see your findings. I hope > that the balance is on Tapestry for the stronger architecture and > (reasonably) JSF for the market acceptance, but I'm sure there's some > worthwhile ideas somewhere inside JSF waiting to be stolen! > > > On Tue, Mar 30, 2010 at 3:24 PM, Andreas Andreou wrote: >> That's some great news for: >> - tapestry >> - the attendants >> - yourself! >> >> Way to go Igor. >> >> On Tue, Mar 30, 2010 at 23:05, Igor Drobiazko >> wrote: >>> Hi folks, >>> >>> in June I'll be speaking at Jazoon 2010 [1] in Zurich, Switzerland. I'll be >>> presenting a 50 minutes talk "JavaServer Faces 2.0 vs. Tapestry 5: A >>> Head-to-Head Comparison". More information about the presentation can be >>> found at my blog [2]: >>> >>> [1] http://jazoon.com >>> [2] >>> http://blog.tapestry5.de/index.php/2010/03/30/jazoon-2010-talk-javaserver-faces-2-0-vs-tapestry-5/ >>> >>> I hope to see some Tapestry folks at the conference. >>> >>> -- >>> Best regards, >>> >>> Igor Drobiazko >>> http://tapestry5.de/blog >>> >> >> >> >> -- >> Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr >> Tapestry / Tacos developer >> Open Source / JEE Consulting >> >> - >> 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