Re: Component that displays additional "containing Page" markup

2012-12-12 Thread mailingl...@j-b-s.de
Hi Bogdan! Any reason why you can not use tapestry's grid component? Jens Sent from my iPhone On 12.12.2012, at 15:43, bogdan_cm wrote: > Thank you both for replying. > > Now that I read it after a day, my question is not very clear. Here is a > more to the point explanation. > > My cust

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
The problem with my webapp is it keeps going into my resources dir for templates instead of the webapp context dir for templates. There has been some back and forth about this in the past and I am not sure what the canonical way is. It seems components can live in the webapp context dir fine.

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
here is the actual error An unexpected application exception has occurred.java.lang.RuntimeExceptionPage edit/Coach did not generate any markup when rendered. This could be because its template file could not be located, or because a render phase method in the page prevented rendering. java/

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
yikes,... sorry thiago... i thought I was replying into nother group while I got you on the line... tynamo is the better tapestry its the best code base on the planet and operated by the best developers in the world unfortunately, it lacks finish and polish and I am probably the only guy on

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
Can anyone add to this module to make it a custom edit ? It is currently a custom edit as it sits in my build but I cannot get the activate handler to execute. And blue in the face @At("/{0}/{1}/edit") public class MyDomainObjectEdit { @Inject private ContextValueEncoder contextValueEn

Re: clearing form fields when the user navigates away after loading values

2012-12-12 Thread Muhammad Gelbana
http://tapestry.apache.org/persistent-page-data.html#PersistentPageData-ClearingPersistentFields > The method *discardPersistentFieldChanges()* of *ComponentResources* will > discard all persistent fields for the page, regardless of which strategy is > used to store the property. This will not aff

Re: [5.3.6] A homepage instead of "Index"

2012-12-12 Thread Muhammad Gelbana
I'm contributing a url to the default start page: public static void contributeApplicationDefaults(MappedConfiguration configuration) { configuration.add(SymbolConstants.START_PAGE_NAME, "my/page"); } How can I have a request object to point to my page at this point ? On Thu, Dec 13, 201

Re: custom edit page not possible

2012-12-12 Thread Thiago H de Paula Figueiredo
You should have mentioned before that you're trying to use Tynamo default pages. We thought it was about regular Tapestry ones, not using Tynamo, so your question is not about Tapestry itself, but about a Tynamo feature. I've never used Tynamo, unfortunately, so I can't help you here. -- Th

Re: [5.3.6] A homepage instead of "Index"

2012-12-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Dec 2012 20:05:51 -0200, Muhammad Gelbana wrote: I think this method is the closest to what

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
Well this doesnt work as designed/documented Customized tapestry-model templates If you don't customize anything, Tynamo uses default pages. In Tapestry, a component (a page is a component as well) is comprised of two parts: its template and a backing java class. There's a default page for ea

Re: [5.3.6] A homepage instead of "Index"

2012-12-12 Thread Muhammad Gelbana
I think this method is the closest to what I need but I don't know how can I provide the appropriate *"Request

Re: Upgrading selenium version

2012-12-12 Thread George Christman
Thanks Thiago, all set, wasn't aware you could easily override the versions. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Upgrading-selenium-version-tp5718653p5718656.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Upgrading selenium version

2012-12-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Dec 2012 15:49:51 -0200, George Christman wrote: Hello all, I've been running into an issue with selenium and it has been suggested on stack overflow I try up dating the selenium version. Tapestry is currently running on 2.14.0 while 2.28.0 is the most current. I'm wondering i

Re: [5.3.6] A homepage instead of "Index"

2012-12-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Dec 2012 15:37:56 -0200, Muhammad Gelbana wrote: Thanks a lot that was exactly what I needed. One drawback is that I can't inject a *PageRenderLinkSource* to generate the page's link automatically. Actually, you can, but it will probably not generate a "/" URL. I haven't chec

Upgrading selenium version

2012-12-12 Thread George Christman
Hello all, I've been running into an issue with selenium and it has been suggested on stack overflow I try up dating the selenium version. Tapestry is currently running on 2.14.0 while 2.28.0 is the most current. I'm wondering if there is any plans to upgrade the version or if I have the ability on

Re: [5.3.6] A homepage instead of "Index"

2012-12-12 Thread Muhammad Gelbana
Thanks a lot that was exactly what I needed. One drawback is that I can't inject a *PageRenderLinkSource* to generate the page's link automatically. Is there a way to overcome that ? On Wed, Dec 12, 2012 at 12:11 AM, Dusko Jovanovski wrote: > Try overriding the SymbolConstants.START_PAGE_NAME sym

Re: custom edit page not possible

2012-12-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Dec 2012 14:53:17 -0200, Ken in Nashua wrote: Folks, Hi! is there any unknown magic to creating a simple custom edit page? Absolutely no. I copied Edit.tml into a respective resources/org/tynamo/examples/hibernatesecurity/edit/CoachEdit.tml I copied Edit.Java into a resp

RE: custom edit page not possible

2012-12-12 Thread Ken in Nashua
correction I copied Edit.tml into a respective resources/org/tynamo/examples/hibernatesecurity/pages/edit/CoachEdit.tml I copied Edit.Java into a respective java/org/tynamo/examples/hibernatesecurity/pages/edit/CoachEdit.java I

Re: JQuery Dialog Popup in my tml file.

2012-12-12 Thread Emmanuel DEMEY
The DocsJQueryDialog class is the Documentation page you are visiting. 2012/12/12 mateen > I have had a look, i dont understand where the DocsJQueryDialog class comes > into play ? Do we have to create a reference to it, in my parent tml java > file or what ? I wanted the ajax link. The code i

required input elements displays error message before submit is pressed? (IE8)

2012-12-12 Thread John
This works fine in Chrome but in IE8 the required error message is displayed as soon as the page is displayed before the form is submitted? Any ideas what the issue is? Maybe I should just validate on the form submit, but I'd rather catch this on the client side. John ${message:lab

Re: Component that displays additional "containing Page" markup

2012-12-12 Thread bogdan_cm
Thank you both for replying. Now that I read it after a day, my question is not very clear. Here is a more to the point explanation. My custom component will take care of pagination. This means I need my component to wrap around a Loop in the main page. The Loop will be iterating over a List of

Re: JQuery Dialog Popup in my tml file.

2012-12-12 Thread mateen
I have had a look, i dont understand where the DocsJQueryDialog class comes into play ? Do we have to create a reference to it, in my parent tml java file or what ? I wanted the ajax link. The code is simple just dont understand where the DocsJQueryDialog class comes into play ? -- View this me

Re: Session Timeout in Tapestry

2012-12-12 Thread Geoff Callender
For an example see http://jumpstart.doublenegative.com.au/jumpstart/examples/infrastructure/protectingpages Cheers, Geoff On 12/12/2012, at 11:01 PM, mateen wrote: > Could you show me how to write a request filter in Tapestry > > > > -- > View this message in context: > http://ta

Re: JQuery Dialog Popup in my tml file.

2012-12-12 Thread Emmanuel DEMEY
Hi, Do you use an dialoglink or dialogajaxlink components, which will open the dialog ? Have a look to the template snippet in the documentation page (tabs "Example"). Manu 2012/12/12 mateen > I have included the JQuery dialog found here >

Re: Session Timeout in Tapestry

2012-12-12 Thread mateen
Could you show me how to write a request filter in Tapestry -- View this message in context: http://tapestry.1045711.n5.nabble.com/Session-Timeout-in-Tapestry-tp5718632p5718639.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Return URL POST Redirection from onActivate

2012-12-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Dec 2012 09:03:38 -0200, TNO wrote: Ok, thanks you, so it is not possible to redirect and post at same time Nope. That's not a Tapestry limitation: that's an HTTP one. -- Thiago H. de Paula Figueiredo - To unsubs

Re: Return URL POST Redirection from onActivate

2012-12-12 Thread TNO
Ok, thanks you, so it is not possible to redirect and post at same time Le 12/12/2012 11:07, Thiago H de Paula Figueiredo a écrit : On Wed, 12 Dec 2012 06:33:10 -0200, TNO wrote: Hello everybody, Hi! I'm working on a web site using Tapestry 5.2.6. I need to simulate a POST form data to

Re: Session Timeout in Tapestry

2012-12-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Dec 2012 08:33:46 -0200, mateen wrote: How can i set the Session Time out and redirect the user the login page, when a timeout occurs ? Setting the session time is a web.xml configuration, completely separated from Tapestry. Redirecting to the login page automatically can be d

Re: Session Timeout in Tapestry

2012-12-12 Thread Taha Siddiqi
Session timeout is handled at the servlet level using session-timeout parameter in web.xml On Dec 12, 2012, at 4:03 PM, mateen wrote: > How can i set the Session Time out and redirect the user the login page, when > a timeout occurs ? I know in JSF i could centrally handle the session state > f

Re: Component that displays additional "containing Page" markup

2012-12-12 Thread Geoff Callender
This may help: http://jumpstart.doublenegative.com.au/jumpstart/examples/component/combiningcomponents Cheers, Geoff On 12/12/2012, at 4:00 PM, Taha Siddiqi wrote: > Hi Bogdan > > No sure if I understand you question correctly. From what I understand you > can use block parameters o

Session Timeout in Tapestry

2012-12-12 Thread mateen
How can i set the Session Time out and redirect the user the login page, when a timeout occurs ? I know in JSF i could centrally handle the session state from faces config file. How can i do this in Tapestry ? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Session-Timeou

Re: How to sort Association column in Grid?

2012-12-12 Thread Lance Java
A simple (but slightly hacky) solution is to add a convenience getter to Employee public class Employee { private int id; private String employeeName; private Department department; public String getDepartmentName() { return department == null ? null :

Re: Return URL POST Redirection from onActivate

2012-12-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Dec 2012 06:33:10 -0200, TNO wrote: Hello everybody, Hi! I'm working on a web site using Tapestry 5.2.6. I need to simulate a POST form data to authenticated a client to another site. I'm trying to do it using the return URL from onActivate. That's a redirect, and, as far as

Re: Return URL POST Redirection from onActivate

2012-12-12 Thread Lance Java
Do you want to do the POST from the client's browser or from the server? I think you want to do it from the client's browser. The server can only send a redirect to the client. A redirect causes a "GET" on the client. Another option is to send some javascript to the client so that it does a "POST"

Re: Return URL POST Redirection from onActivate

2012-12-12 Thread Lance Java
I think the most elegant way of handling this would be to handle a new component event result type called ExternalPost. Then you could return an ExternalPost instance from your onActivate() method. public class ExternalPost { private URL url; private String contentType; private Map parame

Re: Component that displays additional "containing Page" markup

2012-12-12 Thread mailingl...@j-b-s.de
Hi! From an Object oriented aspect you are coupling components to particular pages, when I understand you correctly. This is for my personal opinion a wrong design. Can't you not just pass the additional info as parameter from your page to your component (as Taha suggested it)? Or are you displ

Return URL POST Redirection from onActivate

2012-12-12 Thread TNO
Hello everybody, I'm working on a web site using Tapestry 5.2.6. I need to simulate a POST form data to authenticated a client to another site. I'm trying to do it using the return URL from onActivate. Object onActivate(@RequestParameter(value="id", allowBlank=true ) String id) throws IOE