Class trandformation problems

2008-02-08 Thread Adriaan Joubert
Hi, tapestry 5 is great and it is fantastic how easy it is to write new components for tapestry. One problem we have though is that using injected variables at times breaks the application in unpredictable ways. A typical example is as follows: Getting some information from a wrapping component

Re: T5: ActionLink/Zone components inside a loop

2008-02-10 Thread Adriaan Joubert
Hi, anybody had any luck with this? I tried Show But get Component id '${zoneId}' is not valid; component ids must be valid Java identifiers: start with a letter, and consist of letters, numbers and underscores. So it looks as if only literal values are accepted here? And how do I deal with

Re: Class trandformation problems

2008-02-11 Thread Adriaan Joubert
Hi Howard, More information. The actual error is "bad frame_type in StackMapTable" and is thrown from javassist.bytecode.StackMapTable.stackMapFrames(int,int). Not sure whether this helps, but it looks as if the stack is messed up. There is a try {...} finally{..} in the code, and if I remove t

Re: Class trandformation problems

2008-02-11 Thread Adriaan Joubert
Hi, I did some more research into this, and the root cause is a a BadBytecode exception in line 213 in javassist.expr.FieldAccess in the method replace0, where the error occurs in the insertGap method. It is attempting to insert a gap of length 11, which looks innocuous enough. I got somewhat lost

Re: Class trandformation problems

2008-02-11 Thread Adriaan Joubert
> done this a few times before a later release of Javassist fixed the > problem ... or so I thought. > > You may also do ok by getting the value from the parameter into a > local variable outside the try ... finally block. try ... finally > support is a late addition to Javassist a

Tapestry 5 applications works when compiled with eclipse 3.3.x but does not work when compiled with maven 2.0.8

2008-02-18 Thread Adriaan Joubert
Hi, as I mentioned previously on this list we've been having some issues with class transformation errors out of javassist. Recently we had a case where everything was running fine under eclipse, but the same code would not run on the server. Here a description from one of our guys: *Tapestry 5 a

Grid in form and pager

2008-02-20 Thread Adriaan Joubert
Hi, putting a grid in a form is really fantastically simple. I have one issue though: if a user modifies some fields on one page and then goes to the next using the pager, the changes are lost (there is no submit of the form). I can see why it was implemented this way, but believe that this is goi

Re: Grid in form and pager

2008-02-22 Thread Adriaan Joubert
Thanks for the example, Francois. I'll have a play with these ideas and see how I get on. Cheers, Adriaan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[T5] JSONObject response

2008-02-27 Thread Adriaan Joubert
Hi, I'm having a problem with returning a JSON object from an actionlink in (5.0.11-SNAPSHOT). I have some javascript that submits a request, which works great, and the actionhandler returns a JSONObject as follows Object onUpdate() { JSONObject json = new JSONObject();

[T5] AJAX form submit

2008-02-28 Thread Adriaan Joubert
Hi, I have a form that needs to change the view in a zone on a page. So I use the new (5.0.11-SNAPSHOT) form with a zone (fantastic stuff, Howard!) Show liquidated funds

Re: [T5] JSONObject response

2008-02-29 Thread Adriaan Joubert
Thanks! I've added it in JIRA as TAPESTRY-2209 Cheers, Adriaan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: What happened to property accessor methods generation in T5 ?

2008-03-12 Thread Adriaan Joubert
Hi, echoing Peter, it would be great to see support for a trailing suffix. I put in a JIRA https://issues.apache.org/jira/browse/TAPESTRY-2236 for this, with the few lines of code that should fix this issue. Any chance of putting these into the 5.0.12 snapshot? Cheers, Adriaan --

Re: What happened to property accessor methods generation in T5 ?

2008-03-13 Thread Adriaan Joubert
Excellent! Thanks a lot Howard! Adriaan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Form fragments and radio buttons

2008-04-04 Thread Adriaan Joubert
Hi, I had an issue with triggering a form fragment with a radio button. I came up with the following solution, and thought I'd share and ask for comments - perhaps it is possible to come up with something that can be included in Tapestry. The .tml looks as follows:

[T5] Loops in a Form with child components

2008-04-14 Thread Adriaan Joubert
Hi, I've got the following problem: I have a list of relatively complex data objects that I need to edit, which leads to the following form: So far so great, but I'm having real problems with the MyCons

ValidationMessages.properties

2008-04-16 Thread Adriaan Joubert
Hi, I added a couple of validators to check for int/double values in text fields. All works great, except that Tapestry cannot find my messages. I've put messages in app.properties and also in ValidationMessages.properties, but no matter where I put them they are not being picked up. Anybody got a

Re: ValidationMessages.properties

2008-04-16 Thread Adriaan Joubert
Excellent, thanks a lot, Peter. Looked in the tapestry init for the registration of the validation functions, but not for the message catalogs. I've added a page to the wiki with a description of adding validators. For anybody else with the same problems look at http://wiki.apache.org/tapestry/Ta

Re: [T5] Loops in a Form with child components

2008-04-18 Thread Adriaan Joubert
Hi, thought I'd post my experiences with a form with multiple components in a loop. My initial (preferred) solution was to have a single form with a series of components in a loop. As far as I can tell this is simply not possible with Tapestry at the moment. What can be done is: 1. Inject FormSu

Tapestry.js and firefox 3

2008-05-05 Thread Adriaan Joubert
Hi, since starting to use firefox 3 (upgrade to new ubuntu!), the tapestry javascript has stopped working. In particular the registration functions now come up as undefined, so I get errors such as Tapestry.linkTriggerToFormFragment is not a function Same for zone initialisation. I haven't had m

Re: Tapestry.js and firefox 3

2008-05-06 Thread Adriaan Joubert
False alarm - once I had wiped my maven repository and got a fresh snapshot of tapestry down things started working again. Cheers, Adriaan On Tue, May 6, 2008 at 9:50 AM, Adriaan Joubert <[EMAIL PROTECTED]> wrote: > Hi, > > since starting to use firefox 3 (upgrade to new ubuntu!

T5 IoC Tests and Mock objects

2009-11-02 Thread Adriaan Joubert
Hi, We are using T5 IOC in a standalone application and it is great. Most tests we can implement with a few mock classes and instantiating an instance of the implementation of a service. There are however cases where it is easier to use the IOC registry to stitch things together, but only replace

Re: T5 IoC Tests and Mock objects

2009-11-02 Thread Adriaan Joubert
gt; On Mon, Nov 2, 2009 at 10:45 AM, Adriaan Joubert wrote: >> Hi, >> >> We are using T5 IOC in a standalone application and it is great. Most >> tests we can implement with a few mock classes and instantiating an >> instance of the implementation of a service. There a

Re: T5 IoC Tests and Mock objects

2009-11-02 Thread Adriaan Joubert
Thanks, Howard. I've put it in as https://issues.apache.org/jira/browse/TAP5-918. Let me know if there is something I can do to help. Thanks, Adriaan - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional

Re: T5 IoC Tests and Mock objects

2009-11-07 Thread Adriaan Joubert
Hi Paul, thanks a lot for your mail. Not having to rebuild the registry between tests is indeed a major consideration. I like your idea of a special proxy that can be 'cleaned' and refreshed from a pool. I do not need the multi-threaded testing on our web applications right now. I mainly need it

IoC container performance issues

2009-11-09 Thread Adriaan Joubert
Hi, we hit some performance issues using the tapestry IoC. The problem is that we have legacy apps where we do need to do a lot of registry look-ups - takes a while to rewrite everything to have services injected via constructors everywhere. In our particular case we have a few hundred services an

Re: IoC container performance issues

2009-11-10 Thread Adriaan Joubert
keys services you want. Inject those other services into its > implementation. Obtain it from the Registry. Store it in a global and > use that for non-service code to gain access to IoC services. > > On Mon, Nov 9, 2009 at 2:15 AM, Adriaan Joubert wrote: >> Hi, >> >>

Standalone IOC: integrating javassist Translator and using @Inject

2009-07-25 Thread Adriaan Joubert
Hi, we have a large application that has a fat client interface as well as a tapestry 5 web front end. Tapestry 5 IOC is marvelous and we would like to use it in our client application. Using tapestry standalone turns out to be easy, however I have two related issues: 1. I'd love to use @Inject

Re: Standalone IOC: integrating javassist Translator and using @Inject

2009-07-25 Thread Adriaan Joubert
Hi Igor, thanks for your mail! 2009/7/25 Igor Drobiazko : > ComponentClassTransformWorker is supposed to transform only component (and > page) classes. > The ijection mechanism can be extended in two ways: > - by contributing a org.apache.tapestry5.ioc.ObjectProvider > - by contributing a org.apa

Re: Standalone IOC: integrating javassist Translator and using @Inject

2009-07-26 Thread Adriaan Joubert
So, I have been trying a number of approaches with varying success. Using a service in a standalone implementation and retrieving the service with a call to getService() on the registry works as expected. Any @Inject annotations on fields work great. I have had less joy with the class factory. I'

Standalone IOC and service overrides

2013-12-12 Thread Adriaan Joubert
Hi, we love the IOC and are using it in our standalone Java applications as well as our web applications. I do however have a problem with overriding services. When using the suggestions from the cookbook ( http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html) to override a service

T5 IoC Advice: Inconsistent args_size for opc_invokeinterface

2011-04-16 Thread Adriaan Joubert
Hi, I tried to build a rough-and-ready timer for service method calls by using an advisor. We already use these for transaction management etc and never had an issue. However after many successful calls I suddenly get: Exception in thread "Thread-26" java.lang.VerifyError: (class: Invocation$Mont

Re: T5 IoC Advice: Inconsistent args_size for opc_invokeinterface

2011-04-17 Thread Adriaan Joubert
> Which Tapestry-IoC version are you using? I tried with both 5.1.0.5 and 5.2.4. I should also mention that I thought this may have something to do with other advisors (we use them for transaction management as well as checking that a slave database has caught up to a certain point). I've marked

Re: T5 IoC Advice: Inconsistent args_size for opc_invokeinterface

2011-04-17 Thread Adriaan Joubert
... a bug in the > wrappers around Tapestry or a bug in Javassist.  I'm hoping that the > 5.3 code, based on wrappers around ASM, will be faster, more > efficient, and more stable. > > On Sun, Apr 17, 2011 at 12:30 AM, Adriaan Joubert > wrote: >>> Which Tapestry-Io

[T5.3.1] Tapestry.js error on IE8

2012-01-13 Thread Adriaan Joubert
Hi, I'm somewhat non-plussed by a javascript error in Tapestry.js on IE8 (this works fine on firefox/chrome). We have several zones on a page, and in Tapestry.onDOMLoaded there is a call Tapestry.init({ "formEventManager" : [ { "formId" : "GlobalSearch", "validate" : {

Re: Apache Tapestry for Java 11

2018-10-24 Thread Adriaan Joubert
Hi, we are also very interested in seeing 5.5 released. If there is a company/consultant supporting Tapestry we would be interested in seeing whether there is some way to support this development. Best regards Adriaan On Wed, 17 Oct 2018 at 10:03, gard sæbø wrote: > Hi Bob! > > Sorry for late

Re: Apache Tapestry for Java 11

2018-11-04 Thread Adriaan Joubert
iag...@gmail.com> wrote: > On Wed, Oct 24, 2018 at 12:58 PM Adriaan Joubert > wrote: > > > Hi, > > > > Hello! > > > > we are also very interested in seeing 5.5 released. If there is a > > company/consultant supporting Tapestry we would be interested

Re: [ANNOUNCEMENT] Tapestry 5.7.1 and 5.6.3 released

2021-03-20 Thread Adriaan Joubert
Yes, thanks a lot! Tapestry is still one of the best and most productive frameworks out there - we have thousands of lines of tapestry code and multiple websites with complex applications, and keep on adding. Cheers, Adriaan On Sat, 20 Mar 2021 at 03:41, Liu Yong wrote: > Thiago, > > Thanks fo

Coercion error for JSONObject

2021-10-05 Thread Adriaan Joubert
Hi, we intermittently see coercion errors for JSONObject - which we use frequently for ajax context information. The relevant bit of stack trace is - Caused by: java.util.ConcurrentModificationException - at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:

Re: Coercion error for JSONObject

2021-10-05 Thread Adriaan Joubert
a concurrent environment. > > Maybe you could use another type of thread-safe data structure in your > session, and convert it to a JSONObject before sending it back to the > client? > > Cheers, > Ben > > > On Tue, Oct 5, 2021 at 2:50 PM Adriaan Joubert > wrote: &g

Re: Coercion error for JSONObject

2021-10-06 Thread Adriaan Joubert
related code into a utility able to > convert a JSONObject to a String and contribute a type coercer using it. > > Another option would be a custom tapestry-json version by vendoring the > whole tapestry-json code into your project and adapt it to your needs. > > Cheer

Rendering a tapestry component to a string

2021-10-11 Thread Adriaan Joubert
Hi, We are starting to use a library called fancytree ( http://wwwendt.de/tech/fancytree/demo/index.html). For basic trees this integrates really easily with tapestry. However for tree tables the simplest way to render the trees client-side is to ship the contents of the tree table down in a json

Re: Rendering a tapestry component to a string

2021-10-16 Thread Adriaan Joubert
Oh excellent! Thank you very much! Adriaan On Thu, 14 Oct 2021 at 22:33, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Mon, Oct 11, 2021 at 12:47 PM Adriaan Joubert > wrote: > > > Hi, > > > > Hello, Adriaan! > > > > We are starting