RE: EventLink parameters

2012-10-16 Thread Lance Java
but it also states that there is a bug with parameters sarcasticI love it when people who don't understand something say it's broken/sarcastic public MapString, String getFoo() { // return a map } t:eventlink parameters=foo.../t:eventlink -- View this message in context:

Re: Get label input submit

2012-10-16 Thread Lance Java
Use the event onSelectedFromX() where X is the t:id of the t:submit. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Get-label-input-submit-tp5716924p5716927.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Get label input submit

2012-10-16 Thread William Lopes
But is this way that I use. How my form is dynamic, everything is dynamic, until the id. Because of this I would enjoy to know how get the label of the clicked submit. 2012/10/16 Lance Java lance.j...@googlemail.com Use the event onSelectedFromX() where X is the t:id of the t:submit. --

Re: Get label input submit

2012-10-16 Thread Lance Java
my form is dynamic So use the t:context attribute. I could to use the t:context, but my form is dynamic and the context would change for the last input I'm not sure what you mean here, perhaps a code sample would help. Surely you can calculate a suitable context value based on the current

Re: How to remove query parmeter from url string

2012-10-16 Thread Lance Java
Most of the time in tapestry, you will never need to access request parameters yourself. Tapestry's form/input components get and set values on your pages / components for you. Tapestry pages can use the activation context and events can use the event context. It's only very rarely that you should

Re: How to remove query parmeter from url string

2012-10-16 Thread George Christman
Hi Guys, I'm confused now. I decided to use query parameters in my page URL over key/pair parameters. Example http://cardaddy.com/used_cars_for_sale?year=2009make=Nissanmodel=GTR The query parameters are set based on year make model options selected from select menu then submitted. This part

Re: How to remove query parmeter from url string

2012-10-16 Thread Lance Java
Ah, I get it now... sorry. I've not needed to do this but can you set your @ActivationRequestParameter values to null? -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5716933.html Sent from the Tapestry - User

Re: How to remove query parmeter from url string

2012-10-16 Thread George Christman
I've tried setting the @ActivationRequestParameter to null, however when the page reloads the parameter still exist in the URL. Do you guys think the URL remains intact do to how I'm reloading the page using pageRenderLinkSource.createPageRenderLink(this.getClass()); ? -- View this message

Re: How to remove query parmeter from url string

2012-10-16 Thread Lance Java
You could simply return this or null. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5716935.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How to remove query parmeter from url string

2012-10-16 Thread Lance Java
On second thought, return this (aka the current page instance) -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5716936.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How to remove query parmeter from url string

2012-10-16 Thread George Christman
Okay, so your thinking my issue has to do with my return logic? I'll give your suggestion a test tonight. Do you see any other issues with me using this code for filter criteria? Just not sure if it's the most efficient way to accomplish this task and considering it's the 2nd highest used page on

Re: How to remove query parmeter from url string

2012-10-16 Thread Thiago H de Paula Figueiredo
On Tue, 16 Oct 2012 10:26:10 -0300, Lance Java lance.j...@googlemail.com wrote: On second thought, return this (aka the current page instance) I wouldn't return 'this', as it always forces a redirect, and that's not what you want in all cases, specially inside onActivate() methods.

Re: How to remove query parmeter from url string

2012-10-16 Thread Lance Java
To tell the truth you seem to be duplicating to logic normally seen in a form method=GET. It seems that you have two ways to fire your search: 1. onActivate - This is where you are getting request parameters which were passed to you from another page (or maybe even this page) 2. Search form is

RE: EventLink parameters

2012-10-16 Thread Ken in Nashua
Lance, jap slappin me is going to make me a better engineer... thank you t:eventLink t:id=IndividualPage parameters=pageValue t:outputRaw value=${individualPageIndex}/

RE: EventLink parameters

2012-10-16 Thread Ken in Nashua
so context was the solution... i get my pagenumber in nicely to the handler t:eventLink t:id=IndividualPage t:context=${pageValue} thanks for helping : ) From: kcola...@live.com To: users@tapestry.apache.org Subject: RE: EventLink parameters Date: Tue, 16 Oct 2012 10:28:38 -0400

RE: EventLink parameters

2012-10-16 Thread Lance Java
eventlink.parameters MUST be either a Map or something that can be coerced to a Map eventlink.context MUST be either a collection or something that can be coerced to a collection (eg a single value) -- View this message in context:

Re: How to remove query parmeter from url string

2012-10-16 Thread Lance Java
George, are you doing all of this to maintain state throughout tapestry's redirect-after-post? Or do you actually have two entry points into your search? If it's the former, have you considered @Persist? You can either use PersistenceConstants.FLASH to temporarily store in the session or

Tapestry-Portlet status?

2012-10-16 Thread Lenny Primak
I heard something about Tapestry supporting the Portlet spec. Is Tapestry going to support it out of the box or is Tapestry-Portlet ready to use in production? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For

Re: Tapestry-Portlet status?

2012-10-16 Thread Kristian Marinkovic
did you take a look at https://github.com/got5/tapestry5-portlet? On Tue, Oct 16, 2012 at 4:56 PM, Lenny Primak lpri...@hope.nyc.ny.us wrote: I heard something about Tapestry supporting the Portlet spec. Is Tapestry going to support it out of the box or is Tapestry-Portlet ready to use in

Re: Tapestry Problem on Google App Engine in Development

2012-10-16 Thread Dan Cyr
That also is Servlet spec 3.0... On Fri, Oct 12, 2012 at 11:37 AM, Lance Java lance.j...@googlemail.comwrote: response.containsHeader(Content-Encoding) ;) -- View this message in context:

Re: Tapestry-Portlet status?

2012-10-16 Thread Lenny Primak
Thanks, I know it exists, but not sure it's ready for production use, hence the question if T5-portlet is something I should be using in production On Oct 16, 2012, at 10:56 AM, Lenny Primak wrote: I heard something about Tapestry supporting the Portlet spec. Is Tapestry going to support it

Re: Tapestry Problem on Google App Engine in Development

2012-10-16 Thread Lance Java
It's in the 2.3 javadocs? http://docs.oracle.com/cd/E17802_01/products/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletResponse.html#containsHeader(java.lang.String) -- View this message in context:

Re: Tapestry-Portlet status?

2012-10-16 Thread Markus Feindler
Hm, it's hard to say since there are some basic features which don't function in the bridge (like returning a page or stream response in onactivate). I wouldn't recommend using it. Original-Nachricht Datum: Tue, 16 Oct 2012 11:09:59 -0400 Von: Lenny Primak

Re: Tapestry-Portlet status?

2012-10-16 Thread Lenny Primak
If not, what's the alternative? Is that something that's going to be improved? On Oct 16, 2012, at 11:19 AM, Markus Feindler wrote: Hm, it's hard to say since there are some basic features which don't function in the bridge (like returning a page or stream response in onactivate). I

Re: Tapestry-Portlet status?

2012-10-16 Thread Kristian Marinkovic
I think you have to answer this question yourself by checking if your requirements are met. you can see on github that it is being actively developed. there is even a mention of Typestry 5.4-alpha in the readme. On Tue, Oct 16, 2012 at 5:19 PM, Markus Feindler markus.feind...@gmx.de wrote: Hm,

Re: Tapestry-Portlet status?

2012-10-16 Thread François Facon
We are using this portlet bridge for some projects with Tapestry 5.2.6 and Tapestry 5.3.6. All those project are using Liferay 6.1.x. are you planning to deploy you portlet in Liferay? 2012/10/16 Lenny Primak lpri...@hope.nyc.ny.us: Thanks, I know it exists, but not sure it's ready for

Re: Tapestry-Portlet status?

2012-10-16 Thread Lenny Primak
Not sure. I just got a requirement for a portlet-type functionality in my app Not even sure what portlet container to use, quick search on the 'Net says that Liferay isn't compatible with Glassfish, that might be wrong so either Liferay or OpenPortal. Thanks for your help On Oct 16, 2012, at

Re: EventLink parameters

2012-10-16 Thread Thiago H de Paula Figueiredo
On Tue, 16 Oct 2012 11:30:49 -0300, Ken in Nashua kcola...@live.com wrote: t:eventLink t:id=IndividualPage t:context=${pageValue} Never, never ever use ${} expansions when passing parameters values. -- Thiago H. de Paula Figueiredo

Re: How to remove query parmeter from url string

2012-10-16 Thread George Christman
Hi Lance, I'd like all the search filters to remain in the URL for book marking, sharing the URL, and SEO. My goal is for the search page to function similarly to the ebaymotors search page. The search form resides directly within the search page. I do however have links from other pages that will

Re: Get label input submit

2012-10-16 Thread Lance Java
I only had a quick look at your code but it seems that your loop variable currentAtributoGeneric is the underlying source of your data. You could use this entire object as your context (assuming that it has an encoder) or a primary key. You could even use selected fields from this object to

Re: How to remove query parmeter from url string

2012-10-16 Thread Lance Java
Ok, cool... then your @ActivationRequestParameter approach seems fine to me. Just checking ;) -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-remove-query-parmeter-from-url-string-tp5716922p5716959.html Sent from the Tapestry - User mailing list archive at

Re: How to remove query parmeter from url string

2012-10-16 Thread George Christman
Would it be better to somehow use @RequestParam inside of onActivate rather than @ActivationRequestParameter? BTW, I'll let you know about returning the page instance tonight. Hopefully that works :) -- View this message in context:

Re: Get label input submit

2012-10-16 Thread William Lopes
Yes, but my currentAtributoGeneric is just one variable and your value is changed the each iteration. I have that to find another way, something that make reference too. If I use the currentAtributoGeneric like you said, I'll to catch just the last currentAtributoGeneric, independently of which I

Re: tapestry5-highcharts available

2012-10-16 Thread bhorvat
I have created an issue https://github.com/got5/tapestry5-highcharts/issues/5 , if you can take a look I would be grateful. cheers -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry5-highcharts-available-tp5606181p5716962.html Sent from the Tapestry - User

Re: Get label input submit

2012-10-16 Thread Thiago H de Paula Figueiredo
On Tue, 16 Oct 2012 15:13:09 -0300, William Lopes williamlopes@gmail.com wrote: Yes, but my currentAtributoGeneric is just one variable and your value is changed the each iteration. I have that to find another way, something that make reference too. If I use the currentAtributoGeneric

Re: Get label input submit

2012-10-16 Thread William Lopes
That's what I think too, but in the practice this not works. 2012/10/16 Thiago H de Paula Figueiredo thiag...@gmail.com On Tue, 16 Oct 2012 15:13:09 -0300, William Lopes williamlopes@gmail.com wrote: Yes, but my currentAtributoGeneric is just one variable and your value is changed the

Re: Tapestry-Portlet status?

2012-10-16 Thread François Facon
Hi Markus, Your experience in developping portlet with tapestry is very interesting. Currently, we return PortletRenderable object and PortalPage object to display another tapestry page in the current portlet or to request the portlet container to redirect the user to another page of the

Re: Get label input submit

2012-10-16 Thread Thiago H de Paula Figueiredo
On Tue, 16 Oct 2012 15:49:12 -0300, William Lopes williamlopes@gmail.com wrote: That's what I think too, but in the practice this not works. Code please. ;) -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail:

Re: Get label input submit

2012-10-16 Thread William Lopes
http://pastebin.com/PPuJjkSm 2012/10/16 Thiago H de Paula Figueiredo thiag...@gmail.com On Tue, 16 Oct 2012 15:49:12 -0300, William Lopes williamlopes@gmail.com wrote: That's what I think too, but in the practice this not works. Code please. ;) -- Thiago H. de Paula Figueiredo

Re: Get label input submit

2012-10-16 Thread Thiago H de Paula Figueiredo
On Tue, 16 Oct 2012 17:06:57 -0300, William Lopes williamlopes@gmail.com wrote: http://pastebin.com/PPuJjkSm Template please too. And please describe why you say it doesn't work. -- Thiago H. de Paula Figueiredo - To

Re: Get label input submit

2012-10-16 Thread William Lopes
.java http://pastebin.com/PPuJjkSm .tml http://pastebin.com/Fz4yWzNX Like I said in previous mails, the context of the submit button is changed for the currentAtributoGeneric of last input field of the form. 2012/10/16 Thiago H de Paula Figueiredo thiag...@gmail.com On Tue, 16 Oct 2012

Re: How to remove query parmeter from url string

2012-10-16 Thread Lance Java
Since you've got two entry points, I'd probably use @RequestParam in onActivate() and populate the same render variables that are populated by submitting the form. -- View this message in context:

Re: Get label input submit

2012-10-16 Thread Lance Java
Yes, but my currentAtributoGeneric is just one variable and your value is changed the each iteration Correct, but before it is changed, you are rendering a HTML submit button to the MarkupWriter. End result being multiple submit elements, each with it's own unique context value. -- View this

Re: Tapestry-Portlet status?

2012-10-16 Thread Lenny Primak
François, Do you think that got5-portlet is ready to use in production? Thanks. On Oct 16, 2012, at 2:12 PM, François Facon francois.fa...@atos.net wrote: Hi Markus, Your experience in developping portlet with tapestry is very interesting. Currently, we return PortletRenderable

Re: Tapestry-Portlet status?

2012-10-16 Thread Lenny Primak
On Oct 16, 2012, at 2:12 PM, François Facon francois.fa...@atos.net wrote: Hi Markus, Your experience in developping portlet with tapestry is very interesting. Currently, we return PortletRenderable object and PortalPage object to display another tapestry page in the current portlet

Re: Get label input submit

2012-10-16 Thread Thiago H de Paula Figueiredo
input t:label=currentAtributoGeneric.name t:type=Submit t:id=selecionar t:context=id value= class=imageSubmit/ public Object onSelectedFromSelecionar(String atributoNome) { } It seems to me you're passing one context in the template (an id) and expecting something else in the event

Re: Get label input submit

2012-10-16 Thread William Lopes
input t:label=currentAtributoGeneric.name t:type=Submit t:id=selecionar t:context=id value= class=imageSubmit/ public Object onSelectedFromSelecionar(String atributoNome) { } Sorry, I put the code that I was testing. The right context is: t:context=currentAtributoGeneric.name 2012/10/16

Re: Tapestry Problem on Google App Engine in Development

2012-10-16 Thread Dan Cyr
.containsHeader(..yes, pre 3.0 .getHeader( 3.0 GAE must be using pre-3.0. Servlet spec... http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletResponse.html#getHeader%28java.lang.String%29 Sigh... getHeader java.lang.String *getHeader*(java.lang.String name) Gets the

Fwd: Get label input submit

2012-10-16 Thread William Lopes
Unfortunately, in practice this doesn't works. 2012/10/16 Lance Java lance.j...@googlemail.com Yes, but my currentAtributoGeneric is just one variable and your value is changed the each iteration Correct, but before it is changed, you are rendering a HTML submit button to the MarkupWriter.

Re: Fwd: Get label input submit

2012-10-16 Thread Thiago H de Paula Figueiredo
On Tue, 16 Oct 2012 22:25:48 -0300, William Lopes williamlopes@gmail.com wrote: So, we go to say that I have 3 atributes in my form: title(stringGeneric), author(modeloDadosGeneric), year(numericGeneric). Case I try to click in submit of the author, the context received will be year,

Re: Fwd: Get label input submit

2012-10-16 Thread William Lopes
Man, I tested this today and not works in the practice. 2012/10/16 Thiago H de Paula Figueiredo thiag...@gmail.com On Tue, 16 Oct 2012 22:25:48 -0300, William Lopes williamlopes@gmail.com wrote: So, we go to say that I have 3 atributes in my form: title(stringGeneric),

FW: EventLink parameters

2012-10-16 Thread Ken in Nashua
Subject: Re: EventLink parameters From: lpri...@hope.nyc.ny.us Date: Tue, 16 Oct 2012 11:06:10 -0400 To: kcola...@live.com Seriously, I hate being rude anonymous guy but we have this saying in aviation (my other profession) this ain't your thing and watching you taking the controls

RE: EventLink parameters

2012-10-16 Thread Ken in Nashua
Lenny Primak... you can go public with your messages to me. You dont have to send me private things like that. Real talent should be brave enough to show their real insides. I dont what could prompt your stuff... over parameter's ??? But I think it is my caption on my T4 widget thats eating

Re: EventLink parameters

2012-10-16 Thread Taha Siddiqi
Hi Ken I think Lenny has been most polite to you by sending you a private message. Although I do believe people can learn if they try(don't know about aviation though :)) but your way is not the right way, IMHO. Migrating a T4 app to T5 is not an easy job, especially when your T5 skills are

RE: EventLink parameters

2012-10-16 Thread Ken in Nashua
Thanks Taha... but I got a huge problem understanding this language and I am not talking about T5. I am having fun with this T5... real diamond grade fun. Is that such a crime ? I can model the natural world... am I not allowed? I enjoy the ups and downs and challenges and problems. I dont

Re: How to remove query parmeter from url string

2012-10-16 Thread George Christman
Hi Lance, setting the variables to null resolved my issue. Not sure what I was doing last night that wouldn't allow it to work. Anyhow Lance, would you take a look at my code below and tell me if I'm using the RequestParameters properly now? Also, how do you typically handle spaces in the URL