Forms created in a loop - problem with validation

2015-07-24 Thread Matthias Bieber
Hello,   I have a loop that creates a few forms and I have implemented the onValidate method to validate the input. If an error occours in the textarea of the first form, the textareas of all other forms are marked as erroneous too, although the forms and textareas have different IDs. Whats

BeanEditForm in jquery.dialog - problem with validation

2015-07-15 Thread Matthias Bieber
Hello,   I have a BeanEditForm inside a jquery.dialog. The dialog will be opened if you click on a link. I want to validate the input by using onValidateFrom..Form..() and form.recordError().   Once the submit button has been clicked, the page will be reloaded and the jquery.dialog disappears.

Re: Tapestry-security 0.6.0 relased!

2014-03-27 Thread Matthias
Nice, I like it :). Now I can work on my security issues. On 26.03.2014 18:22, Kalle Korhonen wrote: As hinted earlier, our first T5.4 compatible module, tapestry-security is released. This release is primarily for compatibility, although I threw in one, non-backwards compatible enhancements

Re: T5.4 - spinner zone overlay

2014-03-20 Thread Matthias
You can try the following: $(#zone).on(t5:zone:did-update, addZoneOverlay); On 20.03.2014 09:45, Martin Nagl wrote: Hi all, I am trying to implement a loading indicator for zone updates in Tapestry 5.4. Something like this, but for T5.4:

ScheduledExecutorService in tapestry ioc service

2014-02-06 Thread Matthias
; } @Override public void run() { // ... Object result = myDAO.getSomethingFromJob(job); // ... } } } Thanks, Matthias

ScheduledExecutorService in tapestry ioc

2014-02-06 Thread Matthias
; } @Override public void run() { // ... Object result = myDAO.getSomethingFromJob(job); // ... } } } Thanks, Matthias - To unsubscribe, e-mail: users-unsubscr

Re: ScheduledExecutorService in tapestry ioc

2014-02-06 Thread Matthias
Thanks Dmitry, works perfect :). On 06.02.2014 16:11, Dmitry Gusev wrote: You can try anjlab-tapestry-quartz from here: https://github.com/anjlab/anjlab-tapestry-commons/tree/master/anjlab-tapestry-quartz On Thu, Feb 6, 2014 at 2:46 PM, Matthias matthias.eich...@uni-jena.dewrote: Hi, I

Application properties

2014-01-07 Thread Matthias
Hi, I'm looking for the best way to set global application properties like the path to my data directory or the url of my solr server. Currently I set them within the contributeApplicationDefaults() method of my modules (I have a production and development module). But I don't want to set

Re: Application properties

2014-01-07 Thread Matthias
startup script, and read them using standard Java APIs #1 is my favorite (lots of flexibility; you can even provide a web interface to edit some of them if desired). On Tue, Jan 7, 2014 at 12:54 PM, Matthias thegreatme...@gmail.com wrote: Hi, I'm looking for the best way to set global application

Re: How to retrieve complete current URL with context

2014-01-02 Thread Matthias
Hi, you could try to inject the tapestry request class. @Inject Request request void func() { String url = request.getRequestURL(); } On 02.01.2014 08:59, Lidija Dolinar wrote: Hi, My page name is Najdi and I have a query parameter appended to the link so the link looks like this:

Re: [5.4] hibernate events

2013-12-17 Thread Matthias
Thanks Lance, got it working. public interface HibernateInitializer { public void initialize(); } public class HibernateInitializerImpl implements HibernateInitializer { @Inject SolrIndexer solrIndexer; @Inject private HibernateSessionSource hss; @Override public

Re: [5.4] update zone with javascript

2013-12-17 Thread Matthias
can do a solr search with new values return solr.get(...) } It works really great. Thanks all for your support. On 17.12.2013 12:30, Eugen wrote: Hi Matthias, how do You define the myModule? It should be a javascript file in META-INF/modules/myModule.js to be automatically loaded

Re: [5.4] hibernate events

2013-12-16 Thread Matthias
. On 16.12.2013 13:30, Thiago H de Paula Figueiredo wrote: On Sun, 15 Dec 2013 12:08:53 -0200, Matthias thegreatme...@gmail.com wrote: in AppModule public static void contributeHibernateSessionSource(OrderedConfigurationHibernateConfigurer config) { config.add(EventListener, new

[5.4] hibernate events

2013-12-15 Thread Matthias
no way of register an event only with the configuration object (http://stackoverflow.com/questions/8616146/eventlisteners-using-hibernate-4-0-with-spring-3-1-0-release). Second the injection does not work. But how do I get my SolrIndexer into the my event listener? Thanks in advance Matthias

Re: [5.4] update zone with javascript

2013-12-14 Thread Matthias
}); The moduleName is myModule, but when the function is executed the moduleLib is undefined and cannot call the moduleFunc function. On 12.12.2013 21:34, Eugen wrote: Hi Matthias, as second parameter of deferredZoneUpdate() function You need to provide a event link to a function that returns a block

Re: [5.4] update zone with javascript

2013-12-12 Thread Matthias
, Matthias wrote: Hi, I'd like to update a zone with a simple ajax call and I'm not sure how its done: Javascript require([ jquery, myController], function($, myController) { $(myController).on(myEvent, function(e) { // here i'd like to fire an ajax call that should update my zone

[5.4] update zone with javascript

2013-12-11 Thread Matthias
Hi, I'd like to update a zone with a simple ajax call and I'm not sure how its done: Javascript require([ jquery, myController], function($, myController) { $(myController).on(myEvent, function(e) { // here i'd like to fire an ajax call that should update my zone }); }); tml

conditional expression

2013-11-17 Thread Matthias
Hi, if theres something in tapestry for inline conditional expressions? I think of something like a href=www.google.com class=${isActive ? 'active' : 'notActive'}google/a I found nothing like that, but i loved to have it. Thanks in advance Matthias

Re: conditional expression

2013-11-17 Thread Matthias
@Howard Thanks for your reply. I know that it was possible with Java code, but i tried to avoid to write extra methods for such simple tasks. @Michael WOW! Thats really nice. Exactly what I was looking for. I improved it a bit to make the false value optional. // constructor without

Re: conditional expression

2013-11-17 Thread Matthias
Hi Boris, in my opinion it makes the tml less complicated and much more readable. Cause you don't have to look into java for just setting a css-class to an element. In my case I tried to add a simple navigation with 3 elements and want to highlight the currently selected: ul

Re: [5.4] Multi Page Form

2013-11-16 Thread Matthias
Thanks to both of you. I'd tried the form fragment and its way better then my previous approach :). Now i will try the tapestry-conversations module. It looks like its developed exactly for this purpose. - To unsubscribe,

[5.4] Multi Page Form

2013-11-15 Thread Matthias
if there's any good example or if anyone have a nice advice. Thanks in advance Matthias - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

[5.4] Less CSS Support

2013-11-12 Thread Matthias E.
found no hint how to use it. Thanks in advance, Matthias