T5.1 AppEngine progress

2009-05-06 Thread Imants Firsts
Has anyone made this to work? I tried repackaging Stax and Woodstox so that they don't use javax.xml.stream package. The quickstart application works in the eclipse, it fails with the NoClassDefFoundError in the Loop component in the local AppEngine environment like people already have posted h

Re: T5: What is NOT beautiful about Tapestry?

2009-04-29 Thread Imants Firsts
The problem probably lies with the fact that many of us have learned T5 gradually while it was being developed and that is why most of the things seem easy and natural. It might not be so when you see the T5 for the first time. Don't get me wrong, I think everything is ok with the framework, but

Re: [T5] 5.0.16 Spanish special characters

2008-12-03 Thread Imants Firsts
Hi Ray! The properties files should be in ascii encoding and the unicode characters should be escaped with \u, for example "\u0161" for ลก character. JDK comes with native2ascii tool that does the conversion. I have seen an eclipse property editor plugin which saves properties files in this form

Re: Antwort: [T5] Bug in HibernateModule?

2008-11-28 Thread Imants Firsts
; :) > > it is fixed in Tapestry 5.0.16 > > g, > kris > > > > > > Imants Firsts <[EMAIL PROTECTED]> > 27.11.2008 18:14 > Bitte antworten an > "Tapestry users" > > > An > Tapestry users > Kopie > > Thema >

Re: Antwort: [T5] Bug in HibernateModule?

2008-11-27 Thread Imants Firsts
tor) > { > config.add(locator.proxy(HibernateConfigurer.class, > MyImplementation.class)); > // or > config.add(locator.autobuild(MyOtherImplementation.class)); > } > > g, > kris > > > > > Imants Firsts <[EMAIL PROTECTED]> > 27.11

[T5] Bug in HibernateModule?

2008-11-27 Thread Imants Firsts
Hi! I am getting the following exception if I have a service in my application that implements HibernateConfigurer and I contribute it to HibernateSessionSource. org.apache.tapestry5.ioc.internal.OperationException Service interface org.apache.tapestry5.hibernate.HibernateConfigurer is matched

Re: Multiple file upload

2008-08-29 Thread Imants Firsts
If you don't mind introducing the dependency to a flash component, then look at this: http://www.swfupload.org/ I have successfully created a tapestry component using SWFUpload, which supports multiple file upload and degrades to default single file upload if Flash is not present. Quoting Thi

Re: Pallete component behavior

2008-05-14 Thread Imants Firsts
If you use svn version of the tapestry you can patch the Palette.tml temporarily by adding type="button" to button elements until the FF is fixed. Quoting Massimo Lusetti <[EMAIL PROTECTED]>: > On Tue, May 13, 2008 at 9:01 PM, Sven Homburg > <[EMAIL PROTECTED]> wrote: > > > sorry for my less det

Re: Index page context and 404 response

2008-04-13 Thread Imants Firsts
onse.sendError(value.getStatusCode(), value.getMessage()); >} > }); >} > > In my Index page I then use it like this: > >Object onActivate(Object obj) { > return new HttpStatusCode(HttpServletResponse.SC_NOT_FOUND); > } > > This triggers i

Index page context and 404 response

2008-04-12 Thread Imants Firsts
Hello! I changed my application to use the Index.tml instead of Start.tml, because pagelink component for index page renders www.mydomain.com/, which looks much better than www.mydomain.com/start However now there is a problem that all the invalid tapestry URLs are rendered as my index page with

Using Upload inside a component

2008-04-08 Thread Imants Firsts
I would like to create a component, which I could add to AppPropertyEditBlocks and would be able to edit entity fields of type MyFile by utilizing tapestry Upload component to upload the file. AppPropertyEditBlocks.tml: AppPropertyEditBlocks.java: @Component(parameters = {"value=context.p

RE: Mixin rendering a component

2008-04-06 Thread Imants Firsts
the form, and use > ActionLinks with the id's of the items to be deleted? > > You could then have a conditional on your list component for whether or > not > the column with the ActionLink is displayed. > > Jonathan > > > > > -Original Message

Re: Mixin rendering a component

2008-04-06 Thread Imants Firsts
you tell > us what you are trying to do? Then maybe someone can offer another > solution. > > Josh > > On Fri, Apr 4, 2008 at 3:22 PM, Imants Firsts <[EMAIL PROTECTED]> wrote: > > Anyone has any idea? Maybe some other solution? > > > > > > Quoti

Re: Mixin rendering a component

2008-04-04 Thread Imants Firsts
Anyone has any idea? Maybe some other solution? Quoting Imants Firsts <[EMAIL PROTECTED]>: > Can mixin render a component, for example TextField? I > know that that it does not support templates and that > it can render the tag directly. > But I would like the mixin to add a

Mixin rendering a component

2008-04-02 Thread Imants Firsts
Can mixin render a component, for example TextField? I know that that it does not support templates and that it can render the tag directly. But I would like the mixin to add a component to form, so that it can be processed when the form is submitted. Is something like that possible with mixins?

Re: T5: Expansions & prefixes

2008-04-02 Thread Imants Firsts
1) See the Binding Expressions section. http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html 2) Use your property like this in the template ${prop:myMessage}, and in code define it as follows: @Inject private Messages _messages; public String getMyMessage() { return _messages

Re: Render element and block using one method

2008-04-02 Thread Imants Firsts
meters(writer); > return _blockParam; > } > > public void afterRender(MarkupWriter writer) { > writer.end(); > } > Josh > > On Tue, Apr 1, 2008 at 4:25 PM, Imants Firsts <[EMAIL PROTECTED]> wrote: > > Is it possible for component to

Render element and block using one method

2008-04-01 Thread Imants Firsts
with accessing ComponentResources. Is it a tapestry bug, or such combination is not supported? What are the alternatives? Thanks in advance, Imants Firsts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

onSelected event from Submit component

2008-04-01 Thread Imants Firsts
Hello! It is quite clear how to use this event if the component is hardcoded in the template, you just use onSelectedFromMySubmit() method in your component. Is it possible to handle onSelected event for dynamically generated Submit components? I have a loop which generates several Submit compone

Re: T5: Inject services into domain objects?

2008-01-23 Thread Imants Firsts
For the domain objects that need access to tapestry service I define a constructor which takes as a parameter the needed service. In my case I only have one such service (not separate DAOs for all domain objects) - HibernateService. Then I contribute the following interceptor to Hibernate, which m

Re: [ANNOUNCE] Tapestry 5.0.7

2007-12-28 Thread Imants Firsts
would like to be able to disable this feature and revert to showing errors on the top of the form. Regarding the BeanEditor I would really appreciate the feature you once mentioned here about supporting ManyToOne (and probably OneToOne also) relationships between beans. Happy New Year! Imants Firsts

T5: JavaScript in my components

2007-12-23 Thread Imants Firsts
the best way? Merry Christmas, Imants Firsts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [t5] Localisation

2007-10-21 Thread Imants Firsts
How about this? @Inject private PersistentLocale persistentLocale; @Inject private RequestGlobals requestGlobals; public Locale getCurrentLocale() { Locale locale = persistentLocale.get(); return locale != null ? locale : requestGlobals.getRequest().getLocale(); } Quoting Christ

Re: t5: no root element has been defined

2007-10-06 Thread Imants Firsts
After the change from .html to .tml in the SVN, my page templates in WEB-INF were not found any more. Moving them to the corresponding package under main/resources like component templates solved the problem. Imants Quoting Christian Gruber <[EMAIL PROTECTED]>: > I did. It's not a version thing.

T5: tapestry-hibernate redirect before commit

2007-09-26 Thread Imants Firsts
Hi! I am trying to edit a hibernate entity in a tapestry form, and when the form is submitted the entitiy is saved to DB, and user is redirected to a ViewEntity page. After the submit I get an exception that entity does not exist (entity is actually created in db), if I hit the refresh button in

Re: T5: Editing a db persisted object with BeanEditForm

2007-09-05 Thread Imants Firsts
:24:58PM +0300, Imants Firsts wrote: > > How do I correctly set up a BeanEditForm for editing a > > hibernate entity? > > I don't think I'm even close to writing idiomatic Tapestry 5 (if such a > thing even exists), but here is the pattern I've been using: >

T5: Editing a db persisted object with BeanEditForm

2007-08-31 Thread Imants Firsts
How do I correctly set up a BeanEditForm for editing a hibernate entity? In T4 I would create hidden field in my form with the id of the entity and add a listener to this field, which would retrieve the entity from DB, before the rest of the form is processed. Then the form would update the fields

T5: Event bubbling

2007-08-31 Thread Imants Firsts
Hi! I have a page (MyPage) which displays a form by delegating the form rendering to a block in a different page (BlockPage). MyPage renders fine, but when the form is submitted it generates Prepare and Submit events in the BlockPage and they are not propagated back to MyPage. Is there a way to r

Editing complex beans with BeanEditForm component.

2007-07-30 Thread Imants Firsts
Hi! Is it possible to use BeanEditForm component for editing complex beans? I have the following classes (getters and some irrelevant things are stripped, which might make classes slightly odd, but they have to be this way in my case). public class Item { private String name; pr