RE: form and select component

2012-10-25 Thread nhhockeyplayer nashua
this one doesnt invoke the handler either but I changed handkler to the following @Component(id="itemsPerPageSelect", parameters = { "value=itemsPerPage", "clientId=itemsPerPageSelect" }) private Select itemsPerPageSelect; @OnEvent(value = EventConstants.VALUE_CHANGED, compon

RE: form and select component

2012-10-25 Thread nhhockeyplayer nashua
as you can tell I like to keep things petite and simple onchange="Event.fire(this,'change');" ? From: nhhockeypla...@hotmail.com To: users@tapestry.apache.org Subject: RE: form and select component Date: Thu, 25 Oct 2012 23:49:20 -0400 @Component(id="itemsPerPageSelect", paramete

RE: form and select component

2012-10-25 Thread nhhockeyplayer nashua
@Component(id="itemsPerPageSelect", parameters = { "value=itemsPerPage", "clientId=itemsPerPageSelect" }) private Select itemsPerPageSelect; @OnEvent(value = EventConstants.VALUE_CHANGED, component = "itemsPerPageSelect") public Object onValueChangedItemsPerPageSelect(

Re: form and select component

2012-10-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Oct 2012 22:32:42 -0200, nhhockeyplayer nashua wrote: Folks, Hi! Do I really NEED to have a form with my components ? Short answer: yes. Long answer: ys. :P The Form component is the one who actually invokes the form field components logic that hand

Re: Excluding properties if 0 or null

2012-10-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Oct 2012 22:31:17 -0200, o1550762 wrote: Yes, I understand that, but could I go through the class( all of it's properties ), not through one single property? Have you tried the BeanEditor component? -- Thiago H. de Paula Figueiredo

Re: Excluding properties if 0 or null

2012-10-25 Thread o1550762
I could pass Number ... n but because I have so many vars, I am not sure if that's the best way of handling it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-to-be-shown-in-tml-tp5717193p5717260.html Sent from the Tapestry - User mailin

form and select component

2012-10-25 Thread nhhockeyplayer nashua
Folks, Do I really NEED to have a form with my components ? I know its unorthadox... but I would like to skip the form if possible to keep this lightweight and just use onchange="this.form.submit()" when it gets selected. Can I guarantee my handler will be invoked and the select value persi

Re: Excluding properties if 0 or null

2012-10-25 Thread o1550762
Yes, I understand that, but could I go through the class( all of it's properties ), not through one single property? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-to-be-shown-in-tml-tp5717193p5717258.html Sent from the Tapestry - User m

Re: Excluding properties if 0 or null

2012-10-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Oct 2012 22:05:20 -0200, o1550762 wrote: OK, I have made following for my class public static boolean notNullNorZero(Number n){ return n == null || n.intValue() == 0; } and called it in my tml file -- Thiago H. de Paula Figueiredo

Re: Excluding properties if 0 or null

2012-10-25 Thread o1550762
OK, I have made following for my class public static boolean notNullNorZero(Number n){ return n == null || n.intValue() == 0; } and called it in my tml file http://tapestry.1045711.n5.nabble.com/Excluding-properties-if-0-or-null-to-be-shown-in-tml-tp5717193p5717255.html Sent from the Tapestry - Us

[OT] New SSL API Vuln e.g. AWS/Paypal

2012-10-25 Thread Chris Mylonas
Hi Tapestry List, Some of you may have come across this from a slashdot article. Seeing as some of you may work in places that use AWS or Paypal, you might want to get some auditing/preventative-maintenance done :) Relevant part: In addition to certificate validation vulnerabilities in a numbe

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread Kalle Korhonen
On Thu, Oct 25, 2012 at 1:02 PM, George Christman wrote: > Who do you guys recommend for VPS? I'd rather get out of owning my own box. > Our current hosting cost is 350/mo for a 2 space rack. This includes a 45mb > pipe, but does not include hardware cost. Not having to own your own box is a majo

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread Chris Mylonas
off topic dude - create a new thread marked [OT] in the subject so you don't piss people off :) check webhostingtalk forums, it's a hosting related question. you get for what you pay for - it's not a price only thing, otherwise you could run up a bunch of lowendbox.com servers for really crappy b

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread George Christman
Thanks guys, I'll have to get some help with the image processing. So does $350/mo seem a bit steep for our own dedicated box? I guess I don't know how to value our current services. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Hosting-Tapestry-App-on-Cloud-tp5717236p5

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread Chris Mylonas
hetzner in germany is well priced for a dedicated servers, perhaps create a new thread with [OT] in the subject what thiago/lenny say are right...have an image processing service seeing as it's your bottleneck - an aws instance and cloudfront may be the way to go On 26/10/2012, at 7:02 AM, Georg

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread Lenny Primak
Sounds like you need a services based approach. This is outside the scope of tapestry. We for example use web services and JavaEE for this type of situation. On Oct 25, 2012, at 4:12 PM, George Christman wrote: > We currently have one box doing all the work which is probably less than > idea

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread George Christman
We currently have one box doing all the work which is probably less than ideal. I really never gave it a thought to use AWS or a VPS to do the image processing. I have an image processing service within my T5 app, how would you tell tapestry to use a different server to handle this, or is my thinki

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread George Christman
Who do you guys recommend for VPS? I'd rather get out of owning my own box. Our current hosting cost is 350/mo for a 2 space rack. This includes a 45mb pipe, but does not include hardware cost. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Hosting-Tapestry-App-on-Clou

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Oct 2012 17:47:45 -0200, George Christman wrote: We seem to be pushing our processor limits while processing photo's at peak times of the day, so I was looking for an affordable way to scale the processors at those times of the day. Why, at least for now, don't you use AWS or a V

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Oct 2012 17:30:24 -0200, Kalle Korhonen wrote: If you are not expecting exploding growth, I wouldn't move onto a cloud platform. It's difficult to beat the price/performance ratio of a VPS/dedicated platform. You really need to have some traffic on the system before you need the ou

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread George Christman
Hi Kalle, my app "CarDaddy.com, a vehicle classified app", in its current state does around 20/30 thousand unique visitors /mo and approximately 2000 vehicle postings a month. We have been seeing pretty consistent growth over the past few months. We seem to be pushing our processor limits while pro

Re: Hosting Tapestry App on Cloud

2012-10-25 Thread Kalle Korhonen
If you are not expecting exploding growth, I wouldn't move onto a cloud platform. It's difficult to beat the price/performance ratio of a VPS/dedicated platform. You really need to have some traffic on the system before you need the out-scalability for a reasonably well implemented Tapestry app. O

Hosting Tapestry App on Cloud

2012-10-25 Thread George Christman
Hello all, I figured it's been a while since this topic has been brought up. Anyhow I'm preparing to move my Tapestry app from our own dedicated server onto a cloud. I'm wondering if anybody has any recent experience in doing so. My app is rather simple and uses a mysql db which I assume eliminates

Re: Image lazy loading using tapestry without jquery.

2012-10-25 Thread Alex Kotchnev
I don't think you'll find an existing component that does this in Tapestry - it sounds like a general dynamic HTML kind of problem (and more specifically, how you can handle that problem on the phone browsers you are working with), for which you will most likely will need to write some javascript o

RE: markup question...

2012-10-25 Thread Ken in Nashua
Thanks Guys... Helpful advises... I am just implementing a quarky auto-paging mechanism for my gallery. I know it might not be religious... but i do want it out of my hair. I got something going now with the outputraw.,.. and just need to coordinate the counter so the flow of the objects is unif

Re: t5: clear cookie when browser closes

2012-10-25 Thread sub
I also have the problem to set a so called "session cookie" with tapestry. org.apache.tapestry5.services.Cookies Interface is missing (among others) this method: public void writeCookieValue(String name, String value, String path, int maxAge) So if you want to write a Cookie with a custom path a

Image lazy loading using tapestry without jquery.

2012-10-25 Thread Anbazhagan
Hi, I am developing a web application for smart phones using tapestry. I am display more than 40 images in my index page using tapestry loop component. I want image lazy loading when I scroll down that page. I have achieved using jquery but still i have some problem while I am scrolling in smart

Re: Why is AssetPathConverter not called for javascript stacks

2012-10-25 Thread Bård Magnus Kvalheim
> Regarding AssetPathConverter - should I open a JIRA for stack assets? > > I just created Jira. https://issues.apache.org/jira/browse/TAP5-2019 Let me know if you know of a workaround in tap 5.3.4. thanks Magnus

Re: Why variable do not update in a text field

2012-10-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Oct 2012 04:53:02 -0200, dinesh707 wrote: size="30"/> I'm not sure if that's the source of your problem, but your template above does have an error: it uses a ${} expansion for passing a parameter. Never do that. It's always wrong or useless. In your te

Re: markup question...

2012-10-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Oct 2012 01:54:18 -0200, Ken in Nashua wrote: My table structure should be able to be modeled as such without having to be chased by exceptions that tell me I am failing to terminate. Yeah, Tapestry is actively preventing preventing you to generate improperly nested tags. --

Re: markup question...

2012-10-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Oct 2012 01:13:16 -0200, Ken in Nashua wrote: Folks, Hi! Ok I implement an if component. And upon condition I render some markup... This isn't valid XML, and Tapestry must be valid XML. Why do y

Re: Excluding properties if 0 or null

2012-10-25 Thread Thiago H de Paula Figueiredo
On Wed, 24 Oct 2012 23:56:53 -0200, o1550762 wrote: Thank you mr. Thiago on your reply. How could I do this with objects? The same way. For example if I have object and 4 parameters in it, I want to show only parameters that are not set to 0, but if are set other than that to show them? Is

Re: Why variable do not update in a text field

2012-10-25 Thread derkoe
dinesh707 wrote > following are my code parts. So when some one and a mp3URL to some text > area, system will send a ajax request to " onMp3UrlChanged()". Then it > will get the title and set that value into "songName" and refresh the > zone. IT WORKS!. But my problem is later when i change the tex

Re: Tree and Form submission to Zone problem

2012-10-25 Thread Nicolas Bouillon
FYI, here is the way I solved my problem. Looks not very beautiful, but it works. Not sure if I may have to open a JIRA about this. On Thu, Oct 25, 2012 at 11:16 AM, Nicolas Bouillon wrote: > Sorry for the noise, but I figured out that in Form.java, the code > clientBehaviorSupport.l

Re: [T5.2.6] When can a java.net.URL be returned from an event handler?

2012-10-25 Thread wout86
anyone? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-6-When-can-a-java-net-URL-be-returned-from-an-event-handler-tp5716618p5717221.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Tree and Form submission to Zone problem

2012-10-25 Thread Nicolas Bouillon
Sorry for the noise, but I figured out that in Form.java, the code clientBehaviorSupport.linkZone(getClientId(), zone, link); is @HeartbeatDeferred, and it's not the case in AbstractComponentEventLink. This deferred execution makes the Form to use the last clientId generated inside the

Re: Tree and Form submission to Zone problem

2012-10-25 Thread Nicolas Bouillon
I tried to dig inside the Tree component source, and I'm not really at ease with the RenderCommand way to render stuffs. What I see is the block I overridden to display a form with zone update submit inside, is pushed to the RenderQueue. But I don't understand how this affect the way the form gene