Re: img tag (src)

2012-09-12 Thread iberck
My solution: ${image} public Link getImage() { Link link = resources.createEventLink("preview"); return link; } Object onPreview() { return new StreamResponse(){} } -- View this message in context: http://tapestry.1045711.n5.nabble.com/img-tag-src-tp2425421p5716261.

Re: Import/export in tapestry

2012-09-12 Thread gonzalomp87
Hi I was busy these days and I resume today with the application. I try doing what you told me but there are two problems: 1. Do not let me select the directory where I want download, just ask if I want cancel or save and automatically download in the download folder. 2. Do not know how you c

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Howard Lewis Ship
On Wed, Sep 12, 2012 at 6:02 PM, Thiago H de Paula Figueiredo wrote: > On Wed, 12 Sep 2012 17:05:51 -0300, Muhammad Gelbana > wrote: > >>> >>> HiveMind just makes me think of StarCraft. ;-) >> >> >> Exactly eheheh :D > > > No one thought of the Borg hive mind in Star Trek? I very much did, when

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Sep 2012 17:05:51 -0300, Muhammad Gelbana wrote: HiveMind just makes me think of StarCraft. ;-) Exactly eheheh :D No one thought of the Borg hive mind in Star Trek? -- Thiago H. de Paula Figueiredo - To unsu

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Sep 2012 13:26:09 -0300, Howard Lewis Ship wrote: Maybe we could resurrect the HiveMind name? I always loved that name! I've just had a very bad idea: Unicorn IoC! It matches the Tapestry logo and searching for 'unicorn ioc' in Google has no relevant results . . . -- Thiago

Re: One Template to include another TML - JSP style

2012-09-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Sep 2012 18:47:35 -0300, netdawg wrote: Sorry, Thiago, I do not see - why not? Basically, why cannot pages be allowed simply extend each other? I haven't said that. Anyway, creating a component is the best, most flexible and reusable option. -- Thiago H. de Paula Figueiredo -

Re: One Template to include another TML - JSP style

2012-09-12 Thread netdawg
Sorry, Thiago, I do not see - why not? Basically, why cannot pages be allowed simply extend each other? -- View this message in context: http://tapestry.1045711.n5.nabble.com/One-Template-to-include-another-TML-JSP-style-tp5716240p5716249.html Sent from the Tapestry - User mailing list arch

Re: One Template to include another TML - JSP style

2012-09-12 Thread Robert Zeigler
Doesn't really seem that different to me than including a jsp. ;) And instead of having two page properties files, you'll have a single component properties file, a single template of code to maintain, etc. The only new complexity is that you'll be passing the entity for edit/view into your comp

Re: One Template to include another TML - JSP style

2012-09-12 Thread netdawg
Thanks, Robert. Excellent suggestion, especially the second one about editMode. Looking into this. Fighting my laziness of moving all the logic from page level to component level - classes, properties, templates - ugh - if I am understanding correctly. -- View this message in context: ht

Re: One Template to include another TML - JSP style

2012-09-12 Thread Thiago H de Paula Figueiredo
On Wed, 12 Sep 2012 16:46:01 -0300, netdawg wrote: I think there needs to be a way to contrive this include - simple on the outside - but the framework handles the complexity somehow in the back-end. The framework already provides a very nice way of doing that: write your own component an

Re: One Template to include another TML - JSP style

2012-09-12 Thread Robert Zeigler
... It seems like the framework already handles this complexity nicely, in the form of components, but maybe I'm missing something in your requirements. I think there are at least two viable, very simple options. Option 1: Extract all of the fields into a "PersonEditor" component. This compon

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Muhammad Gelbana
> > HiveMind just makes me think of StarCraft. ;-) Exactly eheheh :D On Wed, Sep 12, 2012 at 8:11 PM, Lenny Primak wrote: > HiveMind always had negative connotations in my mind as well. > I say de-emphasize Tapestry in Tapestry-IoC. > Just call it IoC. > > I hate Spring myself, and anything that

Re: One Template to include another TML - JSP style

2012-09-12 Thread Michael Prescott
No problem. Yes, I know the simple solution sometimes isn't the right fit. For a component, I wonder if you can pass in a shared message catalog as a parameter? Are you literally using HTML fields for display? Or are you writing text in display mode and form fields in edit mode? Michael On 1

Re: One Template to include another TML - JSP style

2012-09-12 Thread netdawg
Thanks, Michael. Your suggestion makes sense - for most. Unfortunately, I have to using a fully customized form - not bean editor. In addition to TML, there is the property files that need to be not repeated - I know there is the app level properties for this - but still project demands thi

Re: One Template to include another TML - JSP style

2012-09-12 Thread Michael Prescott
Tapestry doesn't let you include text from a file into another file, but you could certainly create a PersonViewEdit component that renders itself in two modes. For this particular case, you might find that a reflection-based BeanEditForm on one page, and a BeanDisplay on another is the right way

One Template to include another TML - JSP style

2012-09-12 Thread netdawg
Basically, looking for jsp style include. However, in the user guide, under Layout Component I see "Tapestry doesn't have a mechanism for such includes – nor does it need one." Hmmm... Well, here is the problem I have: 1. Create/Update Page featuring an input form, say, a Person with fields

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Lenny Primak
HiveMind always had negative connotations in my mind as well. I say de-emphasize Tapestry in Tapestry-IoC. Just call it IoC. I hate Spring myself, and anything that gets people off it is a good thing IMHO On Sep 12, 2012, at 1:52 PM, Daniel Jue wrote: > I'd say keep the same name but market the

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Daniel Jue
I'd say keep the same name but market the IOC more heavily, with tutorials and demos (a quickstart, perhaps) of it being used in a non web app. (I don't think this is out there, right? If it is, it wasn't in-my-face enough. :-) ) A T5 IOC quickstart might work well with an Apache Shiro example,

Re: Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Howard Lewis Ship
On Wed, Sep 12, 2012 at 2:59 AM, Lance Java wrote: > I've often had a conversation like this in the workplace: > > colleague: Let's start a new spring project > me: I hate spring, how about we use Tapestry IOC instead? > colleague: Tapestry, isn't that a web framework? > me: Well

Re: Compress Tapestry.init also

2012-09-12 Thread Howard Lewis Ship
On Wed, Sep 12, 2012 at 6:00 AM, antalk wrote: > Hi, > > I've been working a while with 5.3.x and the js minizer(s), and just now i > see that the Tapestry.init functions is not compressed / minized ? All the > other .js scripts are. What does a minimizer do? It eliminates comments and unnecessa

Tapestry 5.3.2 autocomplete mixin not working

2012-09-12 Thread djst
Hi there. I'm trying to get the auto-completion mixin in Tapestry 5.3.2 to work put I cannot get it to function properly. Tapestry does not call my onProvideCompletionsFrom eventhandler. When inputting characters into the textfield I get a little loading icon on the right side of my text field but

Compress Tapestry.init also

2012-09-12 Thread antalk
Hi, I've been working a while with 5.3.x and the js minizer(s), and just now i see that the Tapestry.init functions is not compressed / minized ? All the other .js scripts are. Wouldn't it be an idea to minimize this part also ? Antal -- View this message in context: http://tapestry.1045711.

Re: how to refresh page zone inside a component

2012-09-12 Thread Lance Java
NB. RenderQueue.push() adds commands to the front of the queue so you may need to iterate in reverse to get the desired output. -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-refresh-page-zone-inside-a-component-tp5716201p5716232.html Sent from the Tapestry - User

Re: how to refresh page zone inside a component

2012-09-12 Thread leandroaispuru
Thank you Lance. I will try your solution as soon as possible. Then i will write to you again telling about the results obtained. 2012/9/11 Lance Java > Lets assume you are writing a LinkTree component which accepts a > LinkTreeModel parameter. LinkTreeModel has a visitAll method which takes a

Tapestry IOC - Should it have it's own name?

2012-09-12 Thread Lance Java
I've often had a conversation like this in the workplace: colleague: Let's start a new spring project me: I hate spring, how about we use Tapestry IOC instead? colleague: Tapestry, isn't that a web framework? me: Well... yes, but Tapestry (the web framework) is build on top of Ta

Re: refreshing zone without highlighting it

2012-09-12 Thread Ivan Khalopik
Since 5.3 you can also contribute application defaults to change default values for zone update and show parameter. @Contribute(SymbolProvider.class) @ApplicationDefaults public void contributeApplicationDefaults(final MappedConfiguration configuration) { //... configur

Re: refreshing zone without highlighting it

2012-09-12 Thread sommeralex
thx 2012/9/12 Dragan Sahpaski [via Tapestry] < ml-node+s1045711n5716224...@n5.nabble.com> > Here you go: > > http://tapestry.apache.org/ajax-and-zones.html#AjaxandZones-ZoneEffectFunctions > > Cheers, > Dragan Sahpaski > > > On Wed, Sep 12, 2012 at 10:27 AM, sommeralex <[hidden > email]

Re: refreshing zone without highlighting it

2012-09-12 Thread Dragan Sahpaski
Here you go: http://tapestry.apache.org/ajax-and-zones.html#AjaxandZones-ZoneEffectFunctions Cheers, Dragan Sahpaski On Wed, Sep 12, 2012 at 10:27 AM, sommeralex wrote: > hi! > > does anybody know how i can use the periodic zone updater that way that the > zone is not being highlighted on each

Re: refreshing zone without highlighting it

2012-09-12 Thread nquirynen
Hi, I'm not sure what periodic zone updater you are talking about, but I remember with the Zone component the "update" parameter was by default "highlight". You could set it to "show" to get rid of the yellow highlighting. Not sure if this helps you with your problem though. Greetings, Nathan -

refreshing zone without highlighting it

2012-09-12 Thread sommeralex
hi! does anybody know how i can use the periodic zone updater that way that the zone is not being highlighted on each update with yellow? thx -- View this message in context: http://tapestry.1045711.n5.nabble.com/refreshing-zone-without-highlighting-it-tp5716221.html Sent from the Tapestry -

Re: updating from 5.3.1 to 5.3.5

2012-09-12 Thread Lance Java
> You don't need an exclusion, you need to specify tapestry-core as a dependency in your own pom. Nearest version resolution Ah... I'd never taken the time to figure out what maven did in these cases. Thanks for the heads up. "Dependency mediation - this determines what version of a dependency wil