Re: to choose all the checkbox and get the value ??? (it did in JSP and how to implement it in Tapestry)

2006-03-28 Thread Nick Westgate
Sure, this is how I use it in Tapestry 3 ... You need a model somewhere, say in class SomeClass: public class SomeClass { public static final IPropertySelectionModel theModel = new StringPropertySelectionModel(new String[] {"a", "b", "c"}); } You need an array for the selected list,

Re: to choose all the checkbox and get the value ??? (it did in JSP and how to implement it in Tapestry)

2006-03-28 Thread Dwi Ardi Irawan
:-( the problem is, i really don't know how tu use MultiplePropertySelection would u give me an example code - Original Message - From: "Nick Westgate" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Wednesday, March 29, 2006 1:01 PM Subject: Re: to choose all the checkbox and get

Re: to choose all the checkbox and get the value ??? (it did in JSP and how to implement it in Tapestry)

2006-03-28 Thread Nick Westgate
Hi Dwi. You should have a look at contrib/MultiplePropertySelection: http://jakarta.apache.org/tapestry/tapestry-contrib/ComponentReference/MultiplePropertySelection.html The default renderer is what you want: CheckBoxMultiplePropertySelectionRenderer Cheers, Nick. Dwi Ardi Irawan wrote: > Hi.

to choose all the checkbox and get the value ??? (it did in JSP and how to implement it in Tapestry)

2006-03-28 Thread Dwi Ardi Irawan
Hi... i'm a tapestry newbie i would like to ask this forum about checkbox component in JSP we can select multiple checkbox and display it home.jsp checkbox Choose your favorite artist : Britney

Re: [ANNOUNCE] TapIdea 0.3

2006-03-28 Thread Jesse Kuhnert
That's kick ass Hugo! Keep up the good work :) I think things like this are ~hugely~ important for tapestry, so I'm very grateful (as I'm sure everyone else is) for the all the hard work you've been putting into this. jesse On 3/28/06, Hugo Palma <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > T

RE: [ANNOUNCE] TapIdea 0.3

2006-03-28 Thread Ben Wong
Hi Hugo, I know the home page said "this plugin adds Tapestry 4.0 support for IntelliJ IDEA IDE". Just curious if it works (or compatible) with Tapestry 3.1 projects. Thanks, Ben -Original Message- From: Hugo Palma [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 28, 2006 5:00 PM To: ta

Re: best way to deal with fields inside @For loops?

2006-03-28 Thread Henri Dupre
I actually just found it out... the keyExpression and converter should do the trick. On 3/28/06, Henri Dupre <[EMAIL PROTECTED]> wrote: > > In one of my pages, I need to display a list of propertySelection lists > and I'm getting into complex problems in Tapestry 4. > In Tapestry 3, I used a Forea

Re: Condition to handle null in forms

2006-03-28 Thread adasal
Mike, Thanks. The null object pattern is discussed at some length in various places including Refactoring in Java by Joshua Kerievsky, but I just wondered how it played out for others. I think the idea is never to return a null, but I know I haven't been writing code like that. I can see the benefi

best way to deal with fields inside @For loops?

2006-03-28 Thread Henri Dupre
In one of my pages, I need to display a list of propertySelection lists and I'm getting into complex problems in Tapestry 4. In Tapestry 3, I used a Foreach loop and I've been recreating my list object even on rewinding cycles for enabling the propertySelection to assign a value. But with Tapestry

Validator message for minLength/maxLength

2006-03-28 Thread Apache
I have a text field and a label with a couple of validators on it like this The question is how to I access the validator message inside of [] when that error happens. I thought since validators is bound in tapestry.form.validators.xml, it would be something like this: Error Message which g

Re: Best Practice: Controlling Page Names

2006-03-28 Thread Pedro Viegas
Thank you all. I also beleave, Adam, that the static imported page names class may be the best solution so far. I'm also very uncertain of the best method and will "try this on for size". The page names class has also one other advantage. With this kind of centralization of pages, one has a central

[ANNOUNCE] TapIdea 0.3

2006-03-28 Thread Hugo Palma
Hi everyone, TapIdea 0.3 release is out. This release includes lot's of bug fixes but also some great new features like attribute auto-completion, syntax highlighting and a page creation wizard. Checkout more detailed information on the changes here http://tapidea.javaforge.com. This is also

Re: Hyperlinsk within InsertText

2006-03-28 Thread Ron Piterman
After you wrote the component, you are most welcome to add it to the jsrc "collection" :-) Ron Detlef Schulze wrote: Not really. First problem is that (according to docs) html entities do not get rendered properly (it's a german site and we do have things like ä,ö,ü,ß that might get screwed

antlr/ANTLRException when loading a page...

2006-03-28 Thread ZedroS Schwart
Hi all I'm using a PageLink to access a page and I bump into a antlr/ANTLRException. More precisely, it's written : org.apache.hivemind.ApplicationRuntimeException antlr/ANTLRException component: [EMAIL PROTECTED] location: context:/WEB-INF/UtilisateursManager.page, line 6, column 64 1 2http://

Re: "Fanciful Ideas = Reality" - A Response to Howard's Blog

2006-03-28 Thread Steve Motola
I don't know if it's clear from the install docs, but: 1. We don't use the Ivy Plugin, and we use Eclipse 3.1 almost exclusively. We are going to get into GMF which will force all of us to use 3.2 eventually... 2. If you are just using the Modeler, you shouldn't need to install Ivy. 3. If yo

RE: Resetting state of Injected Objects

2006-03-28 Thread James Carman
I have integrated the Spring classes into a HiveMind module. You can download the jars inside an example (via SVN) application at www.carmanconsulting.com/svn/public/tapernate-example/trunk All the jars you need are in there. It should build using JD5 and Ant 1.6+. The source code is available

Re: Resetting state of Injected Objects

2006-03-28 Thread amirsguard-tapestry
Opps I did'nt read Howars blog, I guess he did update the spring-tapestry bridge to correct this; read the blog http://howardlewisship.com/blog/ But this issue still remains, if you inject a HttpRequest you would still have the same problem. --- [EMAIL PROTECTED] wrote: > I am not too sure on h

Re: "Fanciful Ideas = Reality" - A Response to Howard's Blog

2006-03-28 Thread Peter Svensson
I would really like to try it, bu for abscure reasons I run eclipse 3.1, which the ivy plugin does not support yet :| Anyway, it looks lika a great effort, and it would be very interresting to see if you could loan/borrow/support some of the existing stuff in trails. Cheers, PS On 3/28/06, Steve

Re: "Fanciful Ideas = Reality" - A Response to Howard's Blog

2006-03-28 Thread Steve Motola
Not trying to take away from Trails, which is a great project and we cross some of the same areas. Chris said they do some of the same stuff but I got the implication from the blog that they did not cover all these items. We take some different approaches but are going to look into how we can col

Re: "Fanciful Ideas = Reality" - A Response to Howard's Blog

2006-03-28 Thread Henri Dupre
Wow this sounds fantastic! Is it easily possible to reuse your Edit components in an existing project? And are they tight to hibernate objects or would they work for any object? Thanks Henri. On 3/28/06, Steve Motola <[EMAIL PROTECTED]> wrote: > > Answering Howard's Blog - Wednesday, March 08,

Re: tapestry datePickernot working when page is first loaded

2006-03-28 Thread Diogenes Moreira
upps i forget one detail this must be in the contents of a @Body in a @Shell 2006/3/28, Diogenes Moreira <[EMAIL PROTECTED]>: > are you using a tacos Datepicker or TapestryDatePicker??? > > if you the tapestry component here you are a example: > > translator="translator:date,pattern=dd/MM/"

Re: tapestry datePickernot working when page is first loaded

2006-03-28 Thread Diogenes Moreira
are you using a tacos Datepicker or TapestryDatePicker??? if you the tapestry component here you are a example: tip: pattern use the same pattearns like SimpleDateFormat. Greetings 2006/3/28, Ivan Culhane <[EMAIL PROTECTED]>: > I have created a tapestry page with a tacos autocompleter and a

Re: Resetting state of Injected Objects

2006-03-28 Thread amirsguard-tapestry
I am not too sure on how to integerating hibernate and hivemind (or if there is a need to), maybe someone else can comment on this. What I did is create my own InjectObjectWorker class with the fix, and packaged it with my source code (it's a hack, I'm hoping future releases would solve it). The

Re: Resetting state of Injected Objects

2006-03-28 Thread Kevin Fightmaster
Probably lack of knowledge on how I would go about doing that ;-). On a more 'meta' note: I like using hibernate and haven't done enough research on hivemind to know how easy it is to integrate the two. So I need Spring to act as my IoC and integration point with hibernate. I've tried hard to main

Re: Resetting state of Injected Objects

2006-03-28 Thread amirsguard-tapestry
Well if you are going that route why not just inject the spring context and query it for your object directly? --- Kevin Fightmaster <[EMAIL PROTECTED]> wrote: > I'm glad other folks are having the same issues. And thanks for the > feedback. > I'm hesitant to modify Tapestry classes. Then I mig

Re: Setting a component property in another page

2006-03-28 Thread Nima Boustanian
Works like a freakin' charm. Thanks! Mike Snare wrote: Inject the item page via an annotation. get it, set the property, and return it all in your select action: // returns the page to go to public ItemPage selectAction(Long postId) { //Grabs the postId from a directLink parameter //setPost

Re: Resetting state of Injected Objects

2006-03-28 Thread Kevin Fightmaster
I'm glad other folks are having the same issues. And thanks for the feedback. I'm hesitant to modify Tapestry classes. Then I might have to worry about unexpected impacts of changing the code and maintainability with updates. The work around im using.. but don't like all that much is to use the @I

Re: Setting a component property in another page

2006-03-28 Thread Mike Snare
Inject the item page via an annotation. get it, set the property, and return it all in your select action: // returns the page to go to public ItemPage selectAction(Long postId) { //Grabs the postId from a directLink parameter //setPostId(postId); don't think you need this... ItemPage ip =

Re: Resetting state of Injected Objects

2006-03-28 Thread amirsguard-tapestry
This is a broder issue than spring, this has to do with the way InjectObjectWorker works. If there is any doubt just log the enhanced class's source code and examine how the injected object is passed to the object (or just examine the injectObject method). The same problem occurs with any inject

Re: Doclet for Tapestry components & hivmind ?

2006-03-28 Thread Jesse Kuhnert
Yeah, I think tapestry will probably start using this as well...Just need some downtime first...Like maybe after 4.1 is done. (unless one of our other new committers decides to do it. ) On 3/28/06, Hugo Palma <[EMAIL PROTECTED]> wrote: > > The project creator and only developer(i think) is Norbert

Re: Doclet for Tapestry components & hivmind ?

2006-03-28 Thread Hugo Palma
The project creator and only developer(i think) is Norbert Sandor. You can see more info in the sourceforge page http://sourceforge.net/projects/tapdoc Cheers Hugo On 28/03/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > No, I haven't but I'm looking at it and am blown away! This is > awesome

Re: Setting a component property in another page

2006-03-28 Thread Nima Boustanian
Okay guys, I took your advice and made the appropriate changes (am using the InjectComponent annotation, made a page property that maps to the component property and so forth.) The only thing that's left is that I can't figure out how to call the goItemPage method in the first page class: pub

Re: Resetting state of Injected Objects

2006-03-28 Thread Jesse Kuhnert
I would reccomend using Howard's spring stuff http://howardlewisship.com/tapestry-javaforge/tapestry-spring/ . On 3/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Kevin, > > I think this is a bug, I had the same problem. > > What is happening is that when the page is being enhanced (subcl

Re: Doclet for Tapestry components & hivmind ?

2006-03-28 Thread Adam Zimowski
No, I haven't but I'm looking at it and am blown away! This is awesome. Are you working on this? I love it. Is it free? Adam On 3/28/06, Hugo Palma <[EMAIL PROTECTED]> wrote: > Have you looked at TapDoc http://www.erinors.com/product/tapdoc ? > > > Cheers > > Hugo > > On 28/03/06, Adam Zimowski

Re: Resetting state of Injected Objects

2006-03-28 Thread amirsguard-tapestry
Kevin, I think this is a bug, I had the same problem. What is happening is that when the page is being enhanced (subclass created) the reference to the injected object (a spring object in your case) is passed through the constructor. Now since the page is pooled, the next time a request is made t

Re: Doclet for Tapestry components & hivmind ?

2006-03-28 Thread Hugo Palma
Have you looked at TapDoc http://www.erinors.com/product/tapdoc ? Cheers Hugo On 28/03/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > Thanks Mike, as always :-) I wonder though how he does components, > because that's really what I'd like to document. Hivemind would be a > nice bonus, and I

Re: Doclet for Tapestry components & hivmind ?

2006-03-28 Thread Adam Zimowski
Thanks Mike, as always :-) I wonder though how he does components, because that's really what I'd like to document. Hivemind would be a nice bonus, and I will try what you suggest. I can't help but to think he's got a doclet for components, otherwise it would be a heck lot of manual documentation

Re: Doclet for Tapestry components & hivmind ?

2006-03-28 Thread Mike Snare
Not sure how he documents the components, but for the hivemodules he has an ant task to take all the hivemodule files and convert them to a single registry file which (I believe) he then converts using xsl. The ant task is available on the hivemind site and you can look at the maven.xml file to us

Re: Newbie editing object values in a simple form...

2006-03-28 Thread Mike Snare
Assuming that you are injecting the ArticleEditPage, try: ArticleEdit ap = getArticleEditPage(); ap.setArticle(a); return ap; I don't think the call to getArticleEditPage() is guaranteed to return the same instance every time if it's injected. Thus your 2 calls to it return 2 different objects.

Doclet for Tapestry components & hivmind ?

2006-03-28 Thread Adam Zimowski
Mornin' Hi, I'd like to generate Javadoc on my custom components and hivemind configuration. Anybody knows how Howard generated documentation for Components and HiveDoc ? I'm guessing he wrote some custom doclets, and ran a JavaDoc on it. If that's the case, anyone knows where to get them? Regard

RE: configuring an IEngineService in Tap4

2006-03-28 Thread Denis Souza
On your getLink implementation you should "explain" to the service how to create an http link to it. Usually you can just call the link factory's constructLink method. Something like this: public ILink getLink(boolean isPost, Object parameters) { return linkFactory.constructLink(this, isPost, p

Newbie editing object values in a simple form...

2006-03-28 Thread GbT
I'm trying to edit an article object from a list of article objects... when I click on the article link to edit I call this method: public ArticleEdit editArticle(Integer pk) { Article a = (Article)DataObjectUtils.objectForPK(getSession ().getDataContext(), Article.class, pk);

Re: Tapestry Support Network

2006-03-28 Thread John Coleman
I agree with you regarding making some open source reference applications. Not sure if there is a need to saturate the market. A good CMS and a eCommerce solution incorporating the best enterprise design principles, but using a light technology stack, would go a long way in taking the ground. But

tapestry datePickernot working when page is first loaded

2006-03-28 Thread Ivan Culhane
I have created a tapestry page with a tacos autocompleter and a datePicker in the page. The problem I have is when I load the page for the first time the autocompleter or the datePicker do not work, it does not seem to recogognise the tapestry elements, I get the folowing errors when I try to u

Resetting state of Injected Objects

2006-03-28 Thread Kevin Fightmaster
Problem: When I submit a form which persists a new object to the database and I return back to the form to create a new object but the old object values are still there. I'm using @InjectObject in my code and I'm not sure how to tell the class to reset the value. Artifacts: [PAGE CLASS] public

"Fanciful Ideas = Reality" - A Response to Howard's Blog

2006-03-28 Thread Steve Motola
Answering Howard's Blog - Wednesday, March 08, 2006 - "From the fanciful ideas category ..." >Wouldn't it be nice if I could just plop the following into the middle of my form? The Cognition Framework Edit component basically works just like that, i.e.: Form fields are wrappered Tapestry c

Re: Condition to handle null in forms

2006-03-28 Thread Mike Snare
Ok. Now I see your point. The problem is that even if you ensure that objects are created properly it's hard to ensure that the values don't get over-written with nulls -- unless of course you take the tack of using a flag value instead of null, using the flag value when the user tries to set an

Re: Condition to handle null in forms

2006-03-28 Thread adasal
Not really criticism, just comments/sharing my experience. (Remember that quirk of email that accentuates unment interpretations.) I'm just saying that I understand you to be suggesting additional code in the container that will reference the calls you wish to make, then the OGNL path is a one step

Re: Setting a component property in another page

2006-03-28 Thread Mike Snare
Doesn't it make more sense to set the value on the page and have the page deal with it however it needs to -- in this case by setting the id on the component in the page. It seems that the components used by a particular page are implementation details for that page that should not be exposed when

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread gaz jones
i consider myself well and truly "ripped" ben stop moanin and pay my outstanding invoices O_O On 3/28/06, Adam Zimowski <[EMAIL PROTECTED]> wrote: > > Come on man. Someone ripping on Howard about a silly logo. That ain't > cool. So we're ripping back on him :-) > > Take it easy. > > Adam > > On

RE: Setting a component property in another page

2006-03-28 Thread James Carman
Have you tried using a ComponentAddress object to find the component? -Original Message- From: Mike Snare [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 28, 2006 8:57 AM To: Tapestry users Subject: Re: Setting a component property in another page Are you trying to set a property of compo

Re: Setting a component property in another page

2006-03-28 Thread Adam Zimowski
Nima, I'd be curious to see the code for your "next" page. I'm guessing you don't have: @InjectComponent("nameofyourcomponent") public abstract ConversationInfoJwc getConversationInfoJwc(); Then, from the previous page (the one you showed us), just call the abstract getter to get ahold of compon

Antwort: Re: form that edits partially an object

2006-03-28 Thread Kristian Marinkovic
i'm not sure but after some debugging i assume the property of the hidden field is set after pageBeginRender. so you should use another page event. am i right? marcopar

Re: Setting a component property in another page

2006-03-28 Thread Mike Snare
Are you trying to set a property of component that is contained within a page? How do you have any idea that the instance of ConversationInfoJwc you are getting is the one used by the ItemPage you are getting? I think you have to assume that it isn't. I think you need an ID setter on the ItemPag

Re: Condition to handle null in forms

2006-03-28 Thread Mike Snare
I'm willing to take criticism, but I must admit that I don't understand what you're trying to say -- so I can't really respond to you except to say this: Marc wanted a way to handle the case where an object in the ognl chain was null. 4 different proposals were given. I gave mine as an option an

Setting a component property in another page

2006-03-28 Thread Nima Boustanian
Hey all Okay, I thought this was easy but I've been trying to set a component property for a couple of hours now without getting anywhere. First off, I have my page class along with a listener method: .. public abstract Long getPostId(); public abstract void setPostId(Long postId); @InjectPag

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread Adam Zimowski
Come on man. Someone ripping on Howard about a silly logo. That ain't cool. So we're ripping back on him :-) Take it easy. Adam On 3/28/06, Detlef Schulze <[EMAIL PROTECTED]> wrote: > This list is getting noisy. > > Would you mind discussing this somewhere else as it is way off-topic? > > --

Re: Condition to handle null in forms

2006-03-28 Thread adasal
Mike, Not sure howm much your solution is a solution. If you have an object with upwards of 3000 nodes and, moreover, the need is to do getObjectUsefullName().getPropertyOtherUsefullName() in different combinations. While OGNL fascilitated this, because usefull names are not lost and also those pat

Re: Is it true that Contrib:Table component stores order and paging parameters in session?

2006-03-28 Thread Andreas Andreou
by default yes. see http://jakarta.apache.org/tapestry/3.0.3/doc/ComponentReference/contrib.Table.html esp. parameters tableSessionStateManager and tableSessionStoreManager. I believe you can use SimpleTableSessionStateManager and a custom storeManager that implements loadState(IRequestCycle) in o

Re: Passing parameter to property

2006-03-28 Thread Nima Boustanian
I can't see a single line of your code, but when sending values to method parameters - write the entire method name in your ognl. // Example one public void getValue(int value) { value++; } // I hope that helps. Apache wrote: Hi all, I need to pass a parameter to a property and don´t

RE: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread Detlef Schulze
This list is getting noisy. Would you mind discussing this somewhere else as it is way off-topic? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread Ben Gidley
Wow Gaz - you must have s much spare time - I'll get you a beany hat so you can wear it at work. That way it will cool your head down and you can do some work :) Ben On 3/28/06, gaz jones <[EMAIL PROTECTED]> wrote: > > lol seriously lighten up... its a joke > im sure Howard Lewis Ship *praise

Re: form that edits partially an object

2006-03-28 Thread marcopar
In data Tue, 28 Mar 2006 15:16:44 +0200, Kristian Marinkovic ha scritto: > hi, > > you could make your setPID load the DB Object itself and let it store > in a persistent property. Then you you don't need your pageBeginRender > method. Ok but if i use an hidden field in the form to store the PID

Re: Condition to handle null in forms

2006-03-28 Thread adasal
Presumably because the class enhancement knows not to (cannot) enhance a null! But there is also the null pattern. I can supply a reference for this later today if interested. This is where nulls are handled in the original class on the basis that really nulls stand in for something else. An exampl

RE: form that edits partially an object

2006-03-28 Thread Kristian Marinkovic
hi, you could make your setPID load the DB Object itself and let it store in a persistent property. Then you you don't need your pageBeginRender method. ... setPID(String id) { setObject(dao.getObjectById(id)) } ... regards, kris

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread Adam Zimowski
> Kids didn't wear 'beanies' where I came from either. ;-) He,he You're too funny man adam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Condition to handle null in forms

2006-03-28 Thread Mike Snare
Another way is to use an accessor method in the container, e.g. getFOTitle(). Implementation as follows: public String getFOTitle() { FirstObject fo = getFirstObject(); if (fo != null) { return fo.getTitle(); } return ""; } It has the benefits of not needing to use the pageBeginRende

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread Nick Westgate
Since Gaz is probably not from the US, this is likely a culture-gap: http://whatis.techtarget.com/definition/0,,sid9_gci212837,00.html Kids didn't wear 'beanies' where I came from either. ;-) Cheers, Nick. gaz jones wrote: > lol seriously lighten up... its a joke > im sure Howard Lewis Ship *pr

form that edits partially an object

2006-03-28 Thread marcopar
Hi, i'm new to tapestry and i need some help: I show a list of objects in a table to allow the user to select wich one to edit. To do so i followed the quickstart and i created a DirectLink and passed the object id along with it. The handler of the DirectLink gets the edit page (@InjectPage) an

Is it true that Contrib:Table component stores order and paging parameters in session?

2006-03-28 Thread Aleksej
In EWDT I wound such sentence: "To remember the paging state and sorting state, it will store them into the session". Is it true and and if so, is there any way to pass such parameters from query string? - To unsubscribe, e-ma

Passing parameter to property

2006-03-28 Thread Apache
Hi all, I need to pass a parameter to a property and don´t know how to handle this (using tapestry 3.0.3). My page specification looks like this (clipping): ... ... So theres is a property getString(String) with a parameter. Tapestry sa

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread gaz jones
lol seriously lighten up... its a joke im sure Howard Lewis Ship *praise be upon him* isnt going to lose any sleep over it, thats if he gets any sleep. he must be up all night thinking about the different kinds of hats he can put on the logo for different projects. On 3/28/06, James Carman <[EMAIL

RE: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread James Carman
I would imagine that the logo was designed by the guy who started the project, Howard Lewis Ship. He's also the guy that invented Tapestry. Usually, in the open source world, constructive criticism is a little better received than ripping on people. If you have better ideas for a logo, then I'm s

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread gaz jones
lol that is amazing. this is my face after looking at the logo ->:O im just trying to get inside the mind of the designer... 1. we have a logo for tapestry that is spherical, _almost_ face like you could say 2. we have a project called tapestry prop * something happened here* 3. ill put a ha

Re: Condition to handle null in forms

2006-03-28 Thread Eduardo Valentim
Hi marc, You can do this in your page class: @Bean public abstract FirstObject getFirstObject(); or, put this in your .page: And in the ognl expression: ... value="ognl:beans.firstObject.title" ... AND leaves tapestry to work for you. I think that I am correct!!! :) On Tue, 20

Re: large volume of i18n shortcut?

2006-03-28 Thread Andreas Andreou
You can use localized templates. If you have Page1, then: - you can have Page1_en.html, Page1_el.html, etc - or, you can include a component PageContent1 in Page1 and then have PageContent1_en.html, PageContent1_el.html files Sam Gendler wrote: >I've got a number of pages which are mostly textu

Re: large volume of i18n shortcut?

2006-03-28 Thread James Carman
You can actually localize your entire HTML file by saving localized versions of it in your webapp (http://jakarta.apache.org/tapestry/UsersGuide/localization.html#localization.localized-templates). I don't know if that would help or not, since changes to the structure would have to be made in each

large volume of i18n shortcut?

2006-03-28 Thread Sam Gendler
I've got a number of pages which are mostly textual. I am using Tapestry to render them so that I can apply a standard Shell component to all of them for look and feel. However, i18n is fairly awkward, as I have lots of text in each file, which isn't dynamically generated except by locale. Is th

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread James Carman
Notice the hat has a little propeller or "prop"? > this may be _slightly_ off topic, but can i just ask what exactly does > putting a hat on the tapestry logo represent? a swirly hat? the penknife > with the logo, fair enough... represents tools etc.. but a hat on the > logo? > WHY IS THERE A HAT

Positioning Tacos Dialog component

2006-03-28 Thread Lennart Benoot
Hi all, Has anyone have any experience with position this component to another location then the center of the screen. Actualy I would like to position it close to the link where it has been invoked. Or relative to its location in the html would be fine too. Kind regards, Lennart ---

RE: tapestry for PDFs and DOCs.

2006-03-28 Thread Detlef Schulze
I am using jasperreports to generate .pdf files and tapestry to deliver it to the user. >From the .page >From the .java public void downloadInvoicePDF(IRequestCycle cycle) { try { HttpServletResponse response = cycle.getRequestContext().getResponse();

Antwort: Re: Condition to handle null in forms

2006-03-28 Thread Kristian Marinkovic
maybe using pageBeginRender for init is a viable solution: extends BasePage implements PageBeginRenderListener{ ... public void pageBeginRender(PageEvent event) { if(getFirstObject() == null) setFirstObject(new Object()); } .. regards, kris

Re: Condition to handle null in forms

2006-03-28 Thread Sebastiaan van Erk
That is one way to do it, however make sure you use the right attributes. Regards, Sebastiaan Marc Ende wrote: Hi, I'm currently looking for a solution for the following problem: I've got some @Input, @Text and @TextArea Fields in a Form. These are filled with a value="ognl:firstObject.t

Re: Once again OGNL in Tapestry *sigh*

2006-03-28 Thread gaz jones
this may be _slightly_ off topic, but can i just ask what exactly does putting a hat on the tapestry logo represent? a swirly hat? the penknife with the logo, fair enough... represents tools etc.. but a hat on the logo? WHY IS THERE A HAT ON IT?!?! im finding it hard to work while i dont know the