Re: TapestryIoC: Is it possible to receive an OrderedConfiguration's ID?

2013-03-17 Thread Steve Eynon
Nothing specific that I know of... ...you could iterate over the ServiceActivities in the ServiceActivityScoreboard service looking for a matching service interface and take the ID from there. It's not nice, but as long as you know the type of the service, it should work.

Re: Streaming a binary file - IllegalArgumentException

2013-03-17 Thread Bela Takacs
Hi Sigbjørn, Hi Bob, Yeah, I think, I get the idea. So, if you want to use the HTML img tag for streaming, you need a org.apache.tapestry5.Link (for example, it can be created by a componentResources.createEventLink("image", id)) or you need to inject a LinkSource (just as in the UploadStore exam

RE: is there a way to get the hostname:port and IP address

2013-03-17 Thread nhhockeyplayer nashua
Thanks Bob... awesome answer... blows the others right off the boards. I wish your development opens up for a breakout and terrific designs to follow. - cheers Best regards and thanks... KEN From: nhhockeypla...@hotmail.com To: users@tapestry.apache.org Subject: is there a way to get the hostn

Re: Streaming a binary file - IllegalArgumentException

2013-03-17 Thread Sigbjørn Tvedt
Hi As Bob Harner said, the "img" tag you are using is a normal html tag that takes a url. If you look at the example you are linking to, you will see that it is using 2 different classes (UploadStore and SomePage) These pages have different tasks. UpploadStore redenders a image based on the ID in

Re: Read only bindings - How do I set their value from a mixin?

2013-03-17 Thread Rusty Phillips
On Mar 13, 2013 4:52 AM, "Lance Java" wrote: > > In a mixin, I can change the value of a component parameter using:.. > @BindParameter to get a mirror of the parameter and then updating the > mirrored value. > > This is fine with the prop: and var: bindings since they are read/write > bindings. If

Re: is there a way to get the hostname:port and IP address

2013-03-17 Thread Bob Harner
The Tapestry-related answer is that Tapestry provides an injectable service, Request [1], that is a "shadow" of the current thread's HTTPServletRequest [2]: import org.apache.tapestry5.services.Request; @Inject Request request; public String getRemoteHost() { return request.getRemoteHost(); }