Re: [RELEASE] Tapestry 5.3.3

2012-04-25 Thread Chris Mylonas
Thank you tapestry team. Javadocs were the first thing i got today, played around with the luxury of having them on my machine - been busy ever since. Look forward to referring to them. Cheers On 26/04/2012, at 4:53 AM, Howard Lewis Ship wrote: > The Tapestry Team is very proud to announce th

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

2012-04-25 Thread netdawg
Thanks, all, for college of knowledge ;-). Much appreciated. 1. I am not beaneditorform (or beaneditor) in EditPerson.tml, therefore the @Persist annotation is needed in Person.java for the form to accept the submit. http://tapestry.apache.org/hibernate-user-guide.html Just added onPrepare

Re: Linking my app with MYSQL

2012-04-25 Thread Thiago H. de Paula Figueiredo
On Wed, 25 Apr 2012 20:44:42 -0300, DegeneRatoR wrote: I have set up hibernate and now control flow over data base processing ( i.e. it shows articles ), however what is not doing is I can't log in, even though in my opinion everything is fine? What am I doing wrong? You're asking for hel

Re: Linking my app with MYSQL

2012-04-25 Thread Chris Mylonas
nabble ate half your post, some of it was relevant ### I have set up hibernate and now control flow over data base processing ( i.e. it shows articles ), however what is not doing is I can't log in, even though in my opinion everything is fine? What am I doing wrong? When I press Sumbit

Linking my app with MYSQL

2012-04-25 Thread DegeneRatoR
I have set up hibernate and now control flow over data base processing ( i.e. it shows articles ), however what is not doing is I can't log in, even though in my opinion everything is fine? What am I doing wrong? Please help. -- View this message in context: http://tapestry.1045711.n5.nabble.com

Re: Composite components like in JSF2?

2012-04-25 Thread Howard Lewis Ship
Nope, they apply at different times. The p: namespace is used when Tapestry parses the template. Later, when it is loading the page and assembling the components, it can tie a named parameter block in a page (or container) template to a parameter of a component within the template. Interestingly

Re: Composite components like in JSF2?

2012-04-25 Thread Chris Mylonas
> Your component needs to have the @SupportsInformalParameters annotation so > elements are recognized as block parameters. Just a quickie, Is this an alternative method than declaring the "p" at the top of the tml file - namespace?

Re: Composite components like in JSF2?

2012-04-25 Thread membersound
Wow amazing, now it works as expected. tyvm! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Composite-components-like-in-JSF2-tp5665396p5666010.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Extract navigation to own menu component - links stop working

2012-04-25 Thread membersound
Oh yes you're right, my fault. Nevertheless the problem persists... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Extract-navigation-to-own-menu-component-links-stop-working-tp5665580p5666000.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Extract navigation to own menu component - links stop working

2012-04-25 Thread Thiago H. de Paula Figueiredo
On Wed, 25 Apr 2012 15:08:47 -0300, membersound wrote: Hi, Hi! I'm just trying to clean up my layout.tml, and trying to separate several contents in custom components. In this case I want to put the whole menu in a menu.tml, and it shows up already, BUT the navigation is not executed. The

RE: Need Help With Event URL Rewriting

2012-04-25 Thread Mike Dunbar
Thought I'd share what finally worked with this. In the end, it turned out to be pretty simple. We just: - Implemented ComponentEventLinkEncoder.createComponentEventLink, wherein we a) Return a Link with the URL of our choice and b) Stash away the associated ComponentEventRequestParameters obje

Re: Composite components like in JSF2?

2012-04-25 Thread Thiago H. de Paula Figueiredo
On Wed, 25 Apr 2012 13:39:50 -0300, membersound wrote: Hi, Hi! how can I build composite components like in JSF2? I don't know exactly what JSF2 composite components are, but Tapestry components are intrinsically composite, as you can use one component in the template of another compo

Re: Possible to build a Table from multiple sources?

2012-04-25 Thread Thiago H. de Paula Figueiredo
On Wed, 25 Apr 2012 13:36:04 -0300, Az Madu wrote: Hi guys, Hi! I'm trying to construct a table (Tapestry 5) unsuccessfully so far, and have been scouring the forums (Nabble) and elswhere for examples on building a table. So far it appears that it's only possible using a single source (i

Re: Composite components like in JSF2?

2012-04-25 Thread Robert Zeigler
"The following" didn't show up. Try pasting in code instead of attaching. Robert On Apr 25, 2012, at 4/2511:39 AM , membersound wrote: > Hi, > > how can I build composite components like in JSF2? > > The following doea not work, but I don't know why? It just simple does not > show up anything!

Re: Dynamic forms

2012-04-25 Thread Lance Java
BeanEditForm and BeanEditor both accept a BeanModel parameter. You will need to implement a custom BeanModel which is likely based on config stored in a database

[RELEASE] Tapestry 5.3.3

2012-04-25 Thread Howard Lewis Ship
The Tapestry Team is very proud to announce the availability of Apache Tapestry 5.3.3. Tapestry is primarily available for download via Maven, from the Maven central repository: org.apache.tapestry tapestry-core 5.3.3 You can also download the binary, source, or JavaDoc archives. Tapest

Extract navigation to own menu component - links stop working

2012-04-25 Thread membersound
Hi, I'm just trying to clean up my layout.tml, and trying to separate several contents in custom components. In this case I want to put the whole menu in a menu.tml, and it shows up already, BUT the navigation is not executed. The app simply does nothing when clicking a link, whereas when the pag

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: tynamo-resteasy - different errors along the way

2012-04-25 Thread Kalle Korhonen
On Wed, Apr 25, 2012 at 8:54 AM, Chris Mylonas wrote: > Stopped app to try and work out what went wrong realised I had a few more > things to do. > 6.  Contributed REST resources as per documentation >        /** >         * Contributions to the RESTeasy main Application, insert all your > RESTe

Dynamic forms

2012-04-25 Thread Tim Koop
I'm making a way for the user to create a dynamic form, with their own defined fields. But how can I do this with Tapestry, since it links the form fields with Java variables? I can't create dynamic variables. Any ideas? Thanks. Tim Koop t...@timkoop.com www.timko

Re: Ajax failure: Status 500 for /mobile/browsegroups.loadingscreen: org.apache.tapestry5.runtime.ComponentEventException Communication with the server failed: org.apache.tapestry5.runtime.ComponentEv

2012-04-25 Thread sommeralex
how can i get the stacktrace? my eclipse console does not show any errors. I was trying to instantiate my list with an empty list if the list is null, but the error consists: package com.airwriting.frontend.pages.mobile; import java.util.ArrayList; import java.util.List; import org.apache.tapes

Re: Possible to build a Table from multiple sources?

2012-04-25 Thread ICE Ernesto Arteaga Zavala
How do you really want to display your info? Provide an example... 2012/4/25 Az Madu > Hi guys, > > I'm trying to construct a table (Tapestry 5) unsuccessfully so far, and > have been scouring the forums (Nabble) and elswhere for examples on > building a table. So far it appears that it's on

Composite components like in JSF2?

2012-04-25 Thread membersound
Hi, how can I build composite components like in JSF2? The following doea not work, but I don't know why? It just simple does not show up anything! ty -- View this message in context: http://tapestry.1045711.n5.nabble.com/Composite-components-like-in-JSF2-tp5665396p5665396.html Sent from the

Possible to build a Table from multiple sources?

2012-04-25 Thread Az Madu
Hi guys, I'm trying to construct a table (Tapestry 5) unsuccessfully so far, and have been scouring the forums (Nabble) and elswhere for examples on building a table. So far it appears that it's only possible using a single source (is that the only way?) either for a Loop, or Grid as demonstrated

tynamo-resteasy - different errors along the way

2012-04-25 Thread Chris Mylonas
Hi, I've gone from zero to consuming (GET) RS and some JAXB in the last 24 hours and am trying tynamo-resteasy for the first time. I've hit an error on start up of my resteasy integration test and I'm wondering where I stuffed up critically (the app started the first time), and has since gone

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Lance Java
Hmm... that's a tricky one... I assumed that RenderInformals always added informals to the currently rendering element but I can see that this won't happen if an element has not been added to the MarkupWriter at beginRender() which happens with the bean edit form. In fact, RenderInformals won't wor

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Chris Mylonas
Cool, good to know for future - My n00bness is still cool too! I've added it to the rosetta stone jira (https://issues.apache.org/jira/browse/TAP5-1894) for the more-than-one-way-to-skin-a-cat approach of getting stuff done in Tapestry. On 26/04/2012, at 12:28 AM, Felix Scheffer wrote: > Gr

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

2012-04-25 Thread Lenny Primak
And what an awesome module it is! On Apr 25, 2012, at 8:01 AM, Cezary Biernacki wrote: > On Wed, Apr 25, 2012 at 1:09 AM, yazdog8 wrote: > >> If you're using Less CSS (or maybe sass possibly), you can set some basic >> variables at the top of your file that can be used as a cache buster in >>

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Felix Scheffer
Grid works fine. It's using inheritInformalParameters @Component(parameters = "class=tableClass", inheritInformalParameters = true) private Any table; 2012/4/25 Chris Mylonas > GridColoum suffers from the same thing having a look at the code. There > is no sign of resources.renderInformalPara

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Chris Mylonas
GridColoum suffers from the same thing having a look at the code. There is no sign of resources.renderInformalParameters() Same for Grid. hehe what I've learned this week from the list, you'll have to contribute the NoFUD service to the registry with @EagerLoad to get in before the rest of

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Felix Scheffer
Thanks guys for the quick response. Much appreciated! 2012/4/25 Chris Mylonas > https://issues.apache.org/jira/browse/TAP5-1917 > > Done. > > > re: sarcasm earlier - there seems to be an increase in "is this a bug?" > tacked onto each problem. I thought you were just having a little fun on > t

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Felix Scheffer
Thanks! That was fast :-) I tried using RenderInformals and the result is: now the class attribute is present, but on the wrong tag (should be on the form tag). Looks like the form tag has not been rendered when RenderInformals.beginRender() method is called. I would expected th

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Lance Java
I'm happy to call a bug a bug but I shall valiantly defend my baby (tapestry) from FUD

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Chris Mylonas
https://issues.apache.org/jira/browse/TAP5-1917 Done. re: sarcasm earlier - there seems to be an increase in "is this a bug?" tacked onto each problem. I thought you were just having a little fun on the list :) So far today, The List 1 : Tapestry-5.3.x 0 Nice one Felix. Cheers Chris On 25/0

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Lance Java
It seems that BeanEditor has the same bug. Pls put that in the Jira too Might be an idea to search all components with @SupportsInformalParameters that don't call renderInformalParameters to find any others

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Thiago H. de Paula Figueiredo
On Wed, 25 Apr 2012 10:37:49 -0300, Chris Mylonas wrote: was the sarcasm meter on that Lance? :) - hard to tell at nearly midnight I'd say that I can't think of any reason BeanEditForm shouldn't render attributes which aren't parameters. JIRA please? :) -- Thiago H. de Paula Figueiredo

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Lance Java
No sarcasm intended It seems that the beanEditForm needs a one-liner added to it ComponentResources.renderInformals(writer) On Wednesday, 25 April 2012, Chris Mylonas wrote: > was the sarcasm meter on that Lance? > :) - hard to tell at nearly midnight > > On 25/04/2012, at 11:22 PM, Lance Java

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Chris Mylonas
was the sarcasm meter on that Lance? :) - hard to tell at nearly midnight On 25/04/2012, at 11:22 PM, Lance Java wrote: > Try adding the following attribute: > t:mixins="renderInformals" > > If it works, there's a bug ;) > > On Wednesday, 25 April 2012, Felix Scheffer wrote: >> Hi, >> >> i a

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Chris Mylonas
fyi, it doesn't add the class normally. It works when adding t:mixins="renderInformals" I'm on 5.3.2 On 25/04/2012, at 11:22 PM, Lance Java wrote: > Try adding the following attribute: > t:mixins="renderInformals" > > If it works, there's a bug ;) > > On Wednesday, 25 April 2012, Felix Scheffe

Re: BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Lance Java
Try adding the following attribute: t:mixins="renderInformals" If it works, there's a bug ;) On Wednesday, 25 April 2012, Felix Scheffer wrote: > Hi, > > i am using a BeanEditForm and added a class attribute to it, i.e.: > > > ... > > > but the class attribute does not appear in the actual h

BeanEditForm does NOT support informal parameters?

2012-04-25 Thread Felix Scheffer
Hi, i am using a BeanEditForm and added a class attribute to it, i.e.: ... but the class attribute does not appear in the actual html code: BeanEditForm has the @SupportsInformalParameters annotation, so am i missing something or is this a bug? Tapestry version is 5.3.3 Thanks a lot!

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: Pagelink above grid picks up context from last pagelink in grid

2012-04-25 Thread Lance Java
I agree with trsvax that avoiding session use is good. I can see that by adding appropriate onActivate / onPassivate methods to my ListPersons example, you could avoid session use. I had a quick look at the PageActivationContextWorker and from what I can see, @PageActivationContext is mandatory so

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

2012-04-25 Thread badluck13
For practical reasons, I hold all css and image files, directly on server. And I reference full path from application. Its easier for designer to do changes directly on the server, and to not handle with any IDE that we use. They mostly use Dreamweaver for editing css. Bojan -- View this messa

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

2012-04-25 Thread Thiago H. de Paula Figueiredo
On Wed, 25 Apr 2012 02:07:55 -0300, netdawg wrote: THIAGO: return person.getId() breaks the Edit Page completely with Render queue error in BeginRender... Full stack trace please. Fully qualifying the Edit link, as below, works fine to get the Edit page to render as Create (edit/) ...witho

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: Pagelink above grid picks up context from last pagelink in grid

2012-04-25 Thread Thiago H. de Paula Figueiredo
On Wed, 25 Apr 2012 08:47:37 -0300, trsvax wrote: I would say this is more of style preference than anything else. It can be made to work in many ways. Agreed. :) 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 u

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

2012-04-25 Thread Thiago H. de Paula Figueiredo
On Wed, 25 Apr 2012 06:10:47 -0300, Lance Java wrote: Please stop saying that there is a bug in tapestry or that tapestry is forcing bad design on you. Thiago has pointed out that he often uses a single page for create and edit. This grid issue seems to have nothing to do with that. Of c

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

2012-04-25 Thread Cezary Biernacki
On Wed, Apr 25, 2012 at 1:09 AM, yazdog8 wrote: > If you're using Less CSS (or maybe sass possibly), you can set some basic > variables at the top of your file that can be used as a cache buster in > your > paths. > > http://lesscss.org/#-variables > And you can even directly integrate LessCSS w

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

2012-04-25 Thread Chris Mylonas
> and remember rules are made to be broken. LOL - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

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: Pagelink above grid picks up context from last pagelink in grid

2012-04-25 Thread Joakim Olsson
Just use another property than person in your page class for storing the current value in the grid. Regards, Joakim On Wed, Apr 25, 2012 at 10:54 AM, netdawg wrote: > I will try this to improve.  But the bad design, as you put it (and I agree), > is required by the grid > ... >            inclu

Re: Ajax failure: Status 500 for /mobile/browsegroups.loadingscreen: org.apache.tapestry5.runtime.ComponentEventException Communication with the server failed: org.apache.tapestry5.runtime.ComponentEv

2012-04-25 Thread derkoe
sommeralex wrote > > Hello, > > I want to update my page after some seconds. In this time, the browser is > trying to retrieve gelocation. The website works, always the first call to > that sites ends with > > Ajax failure: Status 500 for /mobile/browsegroups.loadingscreen: > org.apache.tapest

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

2012-04-25 Thread Lance Java
Please stop saying that there is a bug in tapestry or that tapestry is forcing bad design on you. Thiago has pointed out that he often uses a single page for create and edit. This grid issue seems to have nothing to do with that. Of course you need a property to store the current row in a grid. T

Re: tynamo resteasy and JDO objects

2012-04-25 Thread Alejandro Scandroli
Hi Paulo You weren't completely mistaken, you can use @Xml* annotations to influence the JSON output, but you need to use the jettison provider. I overlooked this fact when I updated the documentation with the switch from the jettison to the jackson provider. Thanks for the heads up. Alejandro.

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

2012-04-25 Thread netdawg
I will try this to improve. But the bad design, as you put it (and I agree), is required by the grid ... ... The row attribute complained that there is no person attribute of class Persons...hence the added person as property, which in turn leads to unintended consequences noted. -- View t

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

2012-04-25 Thread Lance Java
> @Persist(PersistenceConstants.FLASH) makes nullifies Person in Persons page (listing page), thereby breaking it... This sounds like bad design if your ListPersons page is referencing an object persisted by your EditPerson page. It sounds like the flash persistance should instead be on your ListP

Re: AssetsModule.ResourceMinimizer Exception yui compressor

2012-04-25 Thread netdawg
Best I can tell, this issue melted away after I fixed my jQuery dependent scripts. Specifically to replace $ with jQuery as advised below: http://docs.jquery.com/Using_jQuery_with_Other_Libraries My application is no longer dependent on yuicompressor-rhino-bugfix. I also whacked the yuicompres