Re: T5: ETA for t5-acegi and t5-components to work with SNAPSHOT?

2008-05-28 Thread Massimo Lusetti
On Wed, May 28, 2008 at 12:51 AM, Franz Amador-2 <[EMAIL PROTECTED]> wrote: > > Unsurprisingly, due to the package-name changes, t5-acegi and t5-components > no longer work with the snapshot version of t5. Are there snapshot versions > of them that use the new package names? I didn't see one for

Re: Tapestry Page Pool handling.

2008-05-28 Thread zaxeer
Hi i am using Jetty pluged in with eclipse. Zaheer Toby Hobson wrote: > > What application server are you using? > > Toby > > - Original Message > From: zaxeer <[EMAIL PROTECTED]> > To: users@tapestry.apache.org > Sent: Friday, 23 May, 2008 1:40:54 PM > Subject: Tapestry Page Pool h

Re: Add Parameterized Message to ExceptionReport

2008-05-28 Thread Filip S. Adamsen
Hi Mike, I posted about how to turn the RequestExceptionHandler into a pipeline a week or two ago: http://www.mail-archive.com/search?q=RequestExceptionFilter&l=users%40tapestry.apache.org You could use this approach, perhaps coupled with the Strategy service I'm talking about in one of my po

Re: T5: Enum value in a context

2008-05-28 Thread Filip S. Adamsen
Can't you just use it like a regular context parameter? I thought coercions for enums was supported by Tapestry... although I don't use it myself in contexts. -Filip Stephane Decleire skrev: Is there a simple way to put an Enum value in the context of link in T5 ? In T4, i used to use ognl .

Re: T5: Enum value in a context

2008-05-28 Thread Stephane Decleire
it works with the literal prefix and the value of the enum but it's a bit weird isn't it ? Stephane Filip S. Adamsen a écrit : Can't you just use it like a regular context parameter? I thought coercions for enums was supported by Tapestry... although I don't use it myself in contexts. -Fil

Re: Is there any way to represent this?

2008-05-28 Thread daniel alonso
Sorry for disturbing again, but I'm a bit newbie in tapestry. At this moment i have a Pojo called User, with several properties. The type of the list is User class. I don't understand very good the GridRowClass... is a Pojo too? which fields it has? Sorry again for all this stuff... 2008/5/28 Ada

Re: T5: ETA for t5-acegi and t5-components to work with SNAPSHOT?

2008-05-28 Thread Sven Homburg
t5components SNAPSHOT reflects the package renaming 2008/5/28 Franz Amador-2 <[EMAIL PROTECTED]>: > > Unsurprisingly, due to the package-name changes, t5-acegi and t5-components > no longer work with the snapshot version of t5. Are there snapshot > versions > of them that use the new package nam

Re: Is there any way to represent this?

2008-05-28 Thread Filip S. Adamsen
Hi, You're not disturbing - this is a mailing list, if you can't post to it, what good is it? :) Anyhow, YourGridRowClassType is User in your case. So if you want to disable sorting on the username property, you would do it like this: @Inject private BeanModelSource beanModelSource;

Re: Callback in a propery editor

2008-05-28 Thread José Paumard
Hi Marcus, Thank you for tour answer, but unfortunately, this event, as well as the others is not called in a property editor. And the class that holds the form, and in which the events are fired is not aware of this property editor, or at least I dont know how it could be... José Marcus a

use final for BeanModel fields

2008-05-28 Thread nille hammer
Hi Guys, just a little side note on Filip´s suggesion. Instead of initializing the BeanModel in onActivate() you could do this: private final BeanModel model; { model = beanModelSource.create(User.class, false, componentResources); model.get("username").sortable(false); } Mind the final. T

how to capture the submit event which occured from a input type=image

2008-05-28 Thread LakshithaS
HI.. all, I have a situation like this, i have a single form and two image buttons (actually i am using >>"); nextPage = null; } public void onSelectFromNext(){ System.out.println("onSelectFromNext >>>"); nextPage = "Registr

Re: how to capture the submit event which occured from a input type=image

2008-05-28 Thread Filip S. Adamsen
As far as I know this only works with the Submit component... At least what you're doing is how it's done when you use that. -Filip LakshithaS skrev: HI.. all, I have a situation like this, i have a single form and two image buttons (actually i am using has done the form submission? i trie

Re: how to capture the submit event which occured from a input type=image

2008-05-28 Thread nille hammer
Hi Lakshitha, the event handler Methods for Submit-Buttons end with "ed". See this for an example (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Submit.html) rename your methods to: onSelectedFromUpload() onSelectedFromNext() That should fix it.

How to Localize persistent Objects

2008-05-28 Thread Bastian Voigt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear *, in my application I have lots of persistent objects (regions, cities, countries, etc), from the database which are used in PropertySelectionModels and other UI elements. My approach for localizing the names was to give them a "key" field whic

Re: How to Localize persistent Objects

2008-05-28 Thread Andreas Andreou
http://wiki.apache.org/tapestry/HowTos see the Resources / I18n section On Wed, May 28, 2008 at 4:02 PM, Bastian Voigt <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Dear *, > > in my application I have lots of persistent objects (regions, cities, > countries, et

Re: Is there any way to represent this?

2008-05-28 Thread Adam Zimowski
Also make sure you either have a public getter on your model or you attach a property annotation: @Property(write=false) private BeanModel model; And of course, in your *.tml you need to pass reference to model from your class: wrote: > Hi, > > You're not disturbing - this is a mailing list, if

Re: Contributing to the BeanModel

2008-05-28 Thread José Paumard
Hello Marcus, Thank you for your answer, but the customization provided by the BeanModel are about properties, their orders etc... A bean is built by a call to newInstance, defined in the BeanModel interface. The way the bean is built comes from InternalUtils.findAutobuildConstructor. This cl

Re: how to capture the submit event which occured from a input type=image

2008-05-28 Thread Davor Hrg
it works only wih submit component, the submit component is pretty basic, but you might easily create your own submit comp by copy/paste the original and add-in extra options you need On Wed, May 28, 2008 at 2:45 PM, nille hammer <[EMAIL PROTECTED]> wrote: > > Hi Lakshitha, > > the event handle

Re: How to Localize persistent Objects

2008-05-28 Thread Christian Koeberl
There are two good practices to do database i18n: http://www.theserverside.com/tt/blogs/showblog.tss?id=HibernateInternational http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/i18n/i18n5.html We do quite the same with just one table for all texts. Cheers, Chris

Re: Contributing to the BeanModel

2008-05-28 Thread Filip S. Adamsen
Hi José, You can put @Inject in the constructor you want Tapestry to use for auto-instantiation. Should solve your problem. -Filip On 2008-05-28 15:59, José Paumard wrote: Hello Marcus, Thank you for your answer, but the customization provided by the BeanModel are about properties, their o

Re: Contributing to the BeanModel

2008-05-28 Thread José Paumard
Hello Filip, From what I understand, that would involve changing the object model (not so nice, I dont have the hand on that), and making a dependency from this model to T5. I can already hear ppl screaming at that ;) Am I right ? Thank you, José Filip S. Adamsen a écrit : Hi José, You

Maven problems

2008-05-28 Thread Robin Helgelin
Hi, I must be doing something wrong, when trying to use snapshots, or maven is just plain stupid, maybe I'm the stupid one :) org.apache.tapestry tapestry-core ${tapestry-release-version}

Re: Contributing to the BeanModel

2008-05-28 Thread Filip S. Adamsen
Well, you're right. But to me, at least, it's not that big of a deal. The dependency will be to tapestry5-annotations, which is a very small dependency. Anyhow, developing Tapestry apps is just a hobby of mine - for now, anyhow - so I make the decisions myself. Sadly, I don't know of any oth

Re: Maven problems

2008-05-28 Thread Filip S. Adamsen
Hi Robin, Is that the complete output from Maven? It's usually more detailed... It looks alright to me, though. -Filip On 2008-05-28 21:26, Robin Helgelin wrote: Hi, I must be doing something wrong, when trying to use snapshots, or maven is just plain stupid, maybe I'm the stupid one :)

Re: Contributing to the BeanModel

2008-05-28 Thread Fernando Padilla
The design pattern that we are starting to play with is to create beans specifically for the forms. Then write code that ferries the data between the form-bean and the actual persistent objects. This gives you more grunt work, but it adds a point of abstraction and flexibility. For the most

tapestry portlets

2008-05-28 Thread pserik
Hello, i'm new to developing webapllications with tapestry and have some problems there. In my case i have a portal based on jetspeed 2.1.3 with tapestry-portlets. My issue: On a portal page there are three portlets. One with the search input field and others two with information dependent on sea

T5: Dynamically returning a component to a zone

2008-05-28 Thread Chuck Kring
Hello, I have an application where I use a zone to display content that changes depending upon user input. This content can vary and I would like to have different versions of the content served by a library of components. Think if this a zone with various modes that depend upon other user

Re: Contributing to the BeanModel

2008-05-28 Thread Daniel Jue
I am a sole developer on my project, and I am also using Fernando's approach. The "form beans" help solve order of data entry and other dependencies that I just wouldn't want to encode in the persistent model. In addition, I've found these "form beans" are a great way to insert hard coded data an

Re: Maven problems

2008-05-28 Thread nille hammer
Hi Robin, could Maven's access to the internet be interupted (e.g. no/wrong proxy, no access to internet at all, network problems, firewall...)? That really is a short output and I once got sth. similar when I had no acces to the internet and so Maven could not download the libs. Greetz nille

t5-components MultipleSelect use

2008-05-28 Thread zack1403
Hey All, Using tapestry-components, I'm trying to utilize the Mutiple Select component but am getting: 'Could not find a coercion from type org.apache.tapestry.internal.services.StringValueEncoder to type org.apache.tapestry.commons.encoder.MultipleValueEncoder'. Does anyone have an example of h

T5 Creating a Library of Custom Components

2008-05-28 Thread Marcus
Hi, I'm trying to create a T5 library using Eclipse, but... :( Here are my steps and codes. - New Java Project: t5lib - Compiler compliance level is set to 5 src src/pub/t5lib src/pub/t5lib/LibraryModule.java src/pub/t5lib/components src/pub/t5lib/components/MyComponent.java (don't have a

Re: actionlink context value

2008-05-28 Thread Marcelo Lotif
Hi, Can you show us some more of your code? this way we can understand better and help you in what you are trying to achieve... Regards, Marcelo. 2008/5/27, amritabisht <[EMAIL PROTECTED]>: > > I am sorry if i was not clear but this drop down is dhtml dorp-down. so even > if i submit i will not

Re: T5 Creating a Library of Custom Components

2008-05-28 Thread Thiago HP
It looks like your LibraryModule was not loaded. To ensure it is, put a System.out.println("Module loaded!") in your contributeComponentClassResolver() method. Also check the generated JAR to ensure everything is in the proper place. -- Thiago

Re: T5 Creating a Library of Custom Components

2008-05-28 Thread Marcus
Hi Thiago, You are right, LibraryModule was not loaded. generated JAR: META-INF META-INF/MANIFEST.MF pub pub/t5lib pub/t5lib/LibraryModule.class pub/t5lib/components pub/t5lib/components/MyComponent.class any idea? Thanks, Marcus

Re: t5-components MultipleSelect use

2008-05-28 Thread Weisu
Hi Zack, I think you need to define your getSelectModel(), this is my getSelectModel method. Hope this helps. public GenericMultipleSelectModel getSelectModel() { _districtList = _editService.getDistricts(); _selectModel = new GenericMultipleSelectModel(_districtList, EllipseD

Re: t5 - Classloader issues with System classpath

2008-05-28 Thread Richard Clark
Hi Ben, Would you consider moving that to its own page and linking from the "Tapestry 5 How Tos" page? Since this works with all IDEs, it probably deserves its own page. ...Richard (who has been organizing the How To page for clarity) -

Re: Maven problems

2008-05-28 Thread Robin Helgelin
On Wed, May 28, 2008 at 10:19 PM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > Hi Robin, Hi. > Is that the complete output from Maven? It's usually more detailed... I skipped the non vital parts :) > It looks alright to me, though. Yes, and the matter of facts it actually works today makes me

[T5-12snapshot] How to write a ajaxform?

2008-05-28 Thread Donyee
I use the form component,and the form code: JSONStreamResponse onSuccess(); The json is like {'url':'loginpage'}. how can i get this json data in my javascript method? Is there a form submit callback method? -- Yet Another Java EE Developer!