Re: Tapestry 5.2.5: Tapestry Exception "MarkupWriter.element() and not followed up with MarkupWriter.end()"

2013-08-30 Thread Thiago H de Paula Figueiredo
On Fri, 30 Aug 2013 19:49:38 -0300, rukmini n wrote: msgEle.removeChildren(); msgEle.pop(); I had already suggested you to replace the code above, both lines, to msgEle.remove(), but you left the call to pop(), which is quite probably the source of your pro

Re: Tapestry 5.2.5: Tapestry Exception "MarkupWriter.element() and not followed up with MarkupWriter.end()"

2013-08-30 Thread rukmini n
Thiago thanks for reponding. Here is the java code public class FieldValidationErrorMsg { @Parameter(required = true, defaultPrefix="literal") private String fieldId; @Parameter private Form form; @Parameter private Boolean leaveMessage; @Parameter (defaultPrefix

Re: Using Hibernate Session outside of @CommitAfter. Bugs I saw in our project

2013-08-30 Thread John
Seperation of concerns rules the approach below out, however you can always create a top level facade layer between your DAOs and pages/components to resolve this. Your DAO classes can then be trivial CRUD implementations. John - Original Message - From: Lance Java To: Tapestry u

Re: [5.3.7] Integrating Metro web services (Using Derkoe's code)

2013-08-30 Thread Thiago H de Paula Figueiredo
On Fri, 30 Aug 2013 17:51:17 -0300, Muhammad Gelbana wrote: I'm asking because having a maintained session between the client and the server is a better scenario. Instead of having to authenticate the user's credentials upon every request. As far as I know, that's how almost any webservice

Re: Tapestry 5.2.5: Tapestry Exception "MarkupWriter.element() and not followed up with MarkupWriter.end()"

2013-08-30 Thread Thiago H de Paula Figueiredo
On Fri, 30 Aug 2013 18:05:33 -0300, rukmini n wrote: Hi All, Hi! Any one knows, what might be issue here. I'm still stuck. Please help.. The error itself happens at com.test.ui.components.sh.common.FieldValidationErrorMsg.afterRenderBody, so we need its source to help you. -- Thiago

Re: Adding tab to default project (index, about, contact)

2013-08-30 Thread Thiago H de Paula Figueiredo
On Fri, 30 Aug 2013 17:33:28 -0300, Jeremy Villalobos wrote: I am still new to Tapestry 5. For a prototype, I am doing very simple user login portal. I would like to show a couple of option along with index, about and contact, but they would only show up if the user is signed in. How

Re: Include everything with jquery java anotation ImportJQueryUI

2013-08-30 Thread Boris Horvat
btw any plans to update the jquery (the plugin I would like to use requires newer jquery as it would seem) On Thu, Aug 29, 2013 at 11:08 PM, Boris Horvat wrote: > Well I probably wont use them all but there is a possibility that I will > use many. Still the plugin I plan to use will depend on qu

Re: [5.3.7] Integrating Metro web services (Using Derkoe's code)

2013-08-30 Thread Muhammad Gelbana
> > Why are you asking that? Any specific need? I'm asking because having a maintained session between the client and the server is a better scenario. Instead of having to authenticate the user's credentials upon every request. I'm aware there are other standard methods to have a statefull web se

Re: Tapestry 5.2.5: Tapestry Exception "MarkupWriter.element() and not followed up with MarkupWriter.end()"

2013-08-30 Thread rukmini n
Hi All, Any one knows, what might be issue here. I'm still stuck. Please help.. On Tue, Aug 13, 2013 at 2:08 PM, Lenny Primak wrote: > Yup. Things change. Bugs get exposed etc. that's just the way it is > unfortunately. > > > > On Aug 13, 2013, at 5:02 PM, rukmini n wrote: > > > OK.. But this

Adding tab to default project (index, about, contact)

2013-08-30 Thread Jeremy Villalobos
I am still new to Tapestry 5. For a prototype, I am doing very simple user login portal. I would like to show a couple of option along with index, about and contact, but they would only show up if the user is signed in. How do I access the Layout class from a Page ? I see on the documentation

Godzilla's Guide to Gradle/Geb

2013-08-30 Thread Barry Books
I'm no expert, in fact this is my first Gradle/Geb project. The following works for me with 5.4 alpha: With the Eclipse Gradle plugin I can do a Gradle build which runs the tests and creates a war file. create a build.gradle file with this apply plugin: 'java' apply plugin: 'war' apply plugin:

Re: JQuery Datatable Bind Mixin

2013-08-30 Thread Barry Books
The callback is javascript. The bind mixin has no way of know what value you would like to pass back so the callback gets the value you want in the javascript event then adds it into the event url It's been a while but I think it's something like this On Fri, Aug 30, 2013 at 2:23 PM, john c w

Re: JQuery Datatable Bind Mixin

2013-08-30 Thread john c
Ok, here is a little more of the datatable code:                          Requeue                   currRow is defined in java with @Property annotation. I have tried in the tml: bind.context="${currRow.fileID}" bind.context="currRow.fileID" I am always getting an error: currRow is NULL.

Re: [5.3.7] Integrating Metro web services (Using Derkoe's code)

2013-08-30 Thread Thiago H de Paula Figueiredo
On Fri, 30 Aug 2013 12:15:00 -0300, Muhammad Gelbana wrote: I have one last question. Is it possible to instruct the ApplicationStateManager to manage it's sessions using something else than a HTTP based request (i.e. Whether its *HttpServletRequest* or Tapestry's * Request*) ? Tapestr

Re: Using Hibernate Session outside of @CommitAfter. Bugs I saw in our project

2013-08-30 Thread Taha Siddiqi
Hi Martin As Thiago has already pointed out, it would make more sense to have new annotations instead of changing @CommitAfter which is already in use. I would suggest either create a new library which can add these new annotations to the existing tapestry-hibernate without breaking the code or

Re: [5.3.7] Integrating Metro web services (Using Derkoe's code)

2013-08-30 Thread Muhammad Gelbana
I have one last question. Is it possible to instruct the ApplicationStateManager to manage it's sessions using something else than a HTTP based request (i.e. Whether its *HttpServletRequest* or Tapestry's * Request*) ? This has been fruitful discussion, thanks a lot :) *-* *Mu

Re: Tapestry 5.4-alpha-15

2013-08-30 Thread Barry Books
I found one https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=blob;f=tapestry-webresources/src/test/groovy/t5/webresources/tests/WebResourcesSpec.groovy;hb=e3b423ac On Fri, Aug 30, 2013 at 7:48 AM, Barry Books wrote: > Are there any Geb test cases in the source tree? I poked around a

Re: Using Hibernate Session outside of @CommitAfter. Bugs I saw in our project

2013-08-30 Thread Martin Kersten
I didnt started the project I am only maintaining it. I would love to donate this code since this is so dangerous. I wont think about the money this might have cost to find these bugs in a live system. Especially if the database gots mixed up over these. But you are right annotating actions and pa

Re: JQuery Datatable Bind Mixin

2013-08-30 Thread Barry Books
You will need to provide a javascript callback function to the mixin that puts the value into the url. It's called like this if ( callback ) { // TODO should work if value is array u.addContext = function(value) { u.url = u.url.replace(u.context,value)

Re: Tapestry 5.4-alpha-15

2013-08-30 Thread Barry Books
Are there any Geb test cases in the source tree? I poked around a bit and did not find any. I'm getting ready to write some new ones and I might as well head down the new path. Thanks Barry On Wed, Aug 28, 2013 at 3:33 PM, Dmitry Gusev wrote: > On Wed, Aug 28, 2013 at 6:58 PM, Dmitry Gusev >wr

Re: Lightweight Tapestry5 Design/Code Switch plugin for Eclipse

2013-08-30 Thread Barry Books
Had not thought of an Outline view. That would be nice and you would not have to worry about too many tabs. On Fri, Aug 30, 2013 at 7:26 AM, Dmitry Gusev wrote: > I'll look what I can do with this on the weekends. I haven't worked with > editors (actually this is my first eclipse plugin ever :),

Re: Lightweight Tapestry5 Design/Code Switch plugin for Eclipse

2013-08-30 Thread Dmitry Gusev
I'll look what I can do with this on the weekends. I haven't worked with editors (actually this is my first eclipse plugin ever :), but maybe a View would be enough to list all these files for current document? Something similar to the Outline view. Maybe including @Import'ed stylesheets/libraries/

Re: Lightweight Tapestry5 Design/Code Switch plugin for Eclipse

2013-08-30 Thread Barry Books
As long as you are taking features requests: Instead of using control-R to switch between java/tml it would be really nice to have a tabbed editor with everything java/tml/properties/javascript etc. That said the current one solves 90% of my problems. On Fri, Aug 30, 2013 at 6:39 AM, Dmitry Gus

Re: Lightweight Tapestry5 Design/Code Switch plugin for Eclipse

2013-08-30 Thread Dmitry Gusev
Glad you liked it, keep your eyes for updates. Version 1.0.2 with bug fixes available from update site now. On Fri, Aug 30, 2013 at 4:31 AM, Barry Books wrote: > Simple, Perfect > > Thanks > Barry > > > On Thu, Aug 29, 2013 at 4:38 PM, Dmitry Gusev >wrote: > > > Added Eclipse update site: > >

Re: Using Hibernate Session outside of @CommitAfter. Bugs I saw in our project

2013-08-30 Thread Lance Java
I never annotate my services or dao's with @CommitAfter and only annotate the actions in my pages / components. Is there a reason why you can't use this approach?

Re: [5.3.7] Integrating Metro web services (Using Derkoe's code)

2013-08-30 Thread Lance Java
IMO using the session in a webservice is a bad idea. It's much better to keep it stateless and pass the required info in each request.

Re: [5.3.7] Integrating Metro web services (Using Derkoe's code)

2013-08-30 Thread Lance Java
It depends how you are making the webservice call. Apache HTTPClient can handle cookies and I'm sure many other web service libraries out there can too. If you are using java.net.URL directly then you won't have session / cookie management on the client.

Re: [5.3.7] Integrating Metro web services (Using Derkoe's code)

2013-08-30 Thread Muhammad Gelbana
Didn't know it was that simple ! Thanks a lot :) Now ApplicationStateManager (ASM) can be injected and used. But there is another problem. I'm still not sure but I don't think web services keep cookie sessions ! So If I facilitate session-id generation and send back a session-id to the client when

VS: 5.4-alpha-15 resource exceptions

2013-08-30 Thread Ville Virtanen
Hi, created https://issues.apache.org/jira/browse/TAP5-2165 to address this. Ville -Alkuperäinen viesti- Lähettäjä: Massimo Lusetti [mailto:mluse...@gmail.com] Lähetetty: 30. elokuuta 2013 11:29 Vastaanottaja: Tapestry users Aihe: Re: 5.4-alpha-15 resource exceptions Please open a new

Re: 5.4-alpha-15 resource exceptions

2013-08-30 Thread Massimo Lusetti
Please open a new one On Fri, Aug 30, 2013 at 10:28 AM, Ville Virtanen < ville.virta...@orientimport.fi> wrote: > Hi, > > thanks for the info. Should I reopen ticket > https://issues.apache.org/jira/browse/TAP5-1007 or create new one? > > (And thanks for all the hard work, 5.4 is proving to be a

VS: 5.4-alpha-15 resource exceptions

2013-08-30 Thread Ville Virtanen
Hi, thanks for the info. Should I reopen ticket https://issues.apache.org/jira/browse/TAP5-1007 or create new one? (And thanks for all the hard work, 5.4 is proving to be awesome!) Ville -Alkuperäinen viesti- Lähettäjä: Howard Lewis Ship [mailto:hls...@gmail.com] Lähetetty: 30. elokuut

Re: 5.4-alpha-15 resource exceptions

2013-08-30 Thread Howard Lewis Ship
Looks like the code that checks for case mismatch is broken when the path separator is different. It must be hard coded to look for "/", which is a problem on Windows. On Fri, Aug 30, 2013 at 6:55 AM, Ville Virtanen < ville.virta...@orientimport.fi> wrote: > Dear list, > > > > just tried to upg

Re: [5.3.7] Integrating Metro web services (Using Derkoe's code)

2013-08-30 Thread Lance Java
Why can't you use a RequestFilter? The HttpServletRequest has been set on RequestGlobals by the time the RequestFilters are invoked. So you can @Inject HttpServletRequest in your RequestFilter (or any service called by your RequestFilter). If you need to wrap the HttpServletRequest, you can @Inje