Re: Tapestry 5.3.0 and JPA - Errors hot-deploying using Glassfish & Netbeans

2011-07-12 Thread Magnus Kvalheim
Hi Lenny, Which version of glassfish? And have you been successful in getting tapestry's live class reload working there? best regards Magnus Kvalheim On Tue, Jul 12, 2011 at 6:58 PM, Lenny Primak wrote: > Thanks, Igor! Change in Tapestry is not required. > I was using Persistens.createEntityMa

Re: T5: accessing json objects posted in body from Groovy

2011-07-12 Thread Angelo C.
right! that's where the data come from. rd = new BufferedReader(new InputStreamReader(requestGlobals.getHTTPServletRequest().getInputStream())); StringBuilder sb = new StringBuilder(); String line = null; while ((line = rd.readLine()) != null) sb.append(lin

Re: A problem occur at loop of zone

2011-07-12 Thread dick_hu
when I a create a new project and try it ,it runs right. I explore the problem,It's my mistake,I destroy the tapestry.js. I am sorry to cost everyone a lot of time for the stupid mistake. Thank you ! -- View this message in context: http://tapestry.1045711.n5.nabble.com/A-problem-occur-at-loop-of

Re: T5: accessing json objects posted in body from Groovy

2011-07-12 Thread Taha Hafeez
Did you try requestGlobals.getHTTPServletRequest().getInputStream() ? regards Taha On Wed, Jul 13, 2011 at 7:52 AM, Angelo C. wrote: > Hi, > > I use following Groovy code to post a json object to a T5 app: > > def http = new HTTPBuilder( "http://.sample.com"; ) > http.request( POST, JSON

Re: A problem occur at loop of zone

2011-07-12 Thread Taha Hafeez
try setting the javascript id for zone regards Taha On Wed, Jul 13, 2011 at 8:07 AM, dick_hu wrote: > > Taha Hafeez wrote: > > > > Hi > > > > I just copied your code and tried it, I works on firefox, chrome & opera. > > What browser are you using ? > > > > > I works on IE 8, > first click is r

Re: A problem occur at loop of zone

2011-07-12 Thread Thiago H. de Paula Figueiredo
On Tue, 12 Jul 2011 23:42:02 -0300, dick_hu wrote: Block onActionFromDelete() { return testZone.getBody(); } } but occur the exception like this A component event handler method returned the value Block[Body of test/Test:testzone, at classpath:com/lai2/pages/tes

Re: A problem occur at loop of zone

2011-07-12 Thread dick_hu
Thiago H. de Paula Figueiredo wrote: > > On Tue, 12 Jul 2011 23:04:55 -0300, dick_hu > wrote: > >> Zone onActionFromDelete() { >> return testZone; >> } > > Return testZone.getBody() instead. > > I according to your issue, public class Test {

Re: A problem occur at loop of zone

2011-07-12 Thread dick_hu
Taha Hafeez wrote: > > Hi > > I just copied your code and tried it, I works on firefox, chrome & opera. > What browser are you using ? > > I works on IE 8, first click is right,but second click the page reflesh,the actionlink is not return a zone. you alway is right? I want to create a new pr

T5: accessing json objects posted in body from Groovy

2011-07-12 Thread Angelo C.
Hi, I use following Groovy code to post a json object to a T5 app: def http = new HTTPBuilder( "http://.sample.com"; ) http.request( POST, JSON ) { req -> uri.path = "updateproc/1/2/3" body = [ status : 'update!' , source : 'httpbuilder' ] req

JPA Integration 5.3.0 with Primary Key Entity Classes Fails

2011-07-12 Thread Lenny Primak
Well, I am going in deeper into the JPA integration, and I am faced with another problem. Single Persistence Unit this time, Glassfish 3,1 This used to work with Tynamo JPA as well. Everything works until I introduce a primary key entity reference such as this: Thanks! --- Main Ent

Re: A problem occur at loop of zone

2011-07-12 Thread Taha Hafeez
Hi I just copied your code and tried it, I works on firefox, chrome & opera. What browser are you using ? regards Taha On Wed, Jul 13, 2011 at 7:34 AM, dick_hu wrote: > this problem I still have not sovle. > But I use MultiZoneUpdate as return type it runs success. > > I guess Is the actionlin

Re: A problem occur at loop of zone

2011-07-12 Thread Thiago H. de Paula Figueiredo
On Tue, 12 Jul 2011 23:04:55 -0300, dick_hu wrote: Zone onActionFromDelete() { return testZone; } Return testZone.getBody() instead. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner,

Re: A problem occur at loop of zone

2011-07-12 Thread dick_hu
this problem I still have not sovle. But I use MultiZoneUpdate as return type it runs success. I guess Is the actionlink inside in the zone,when the zone updated cause the actionlink's ajax action invalid. can you help me? I write a easiest test,but failure yet. test.tml

Re: Java Magic has 10000+ hits

2011-07-12 Thread Taha Hafeez
Hi The example you mentioned is tapestry's documentation issue that is why I asked for a jira :). If you find anything deprecated/old/outdated you can mention it in dev list. If you find anything missing but not sure you can discuss it in users list. If you find anything missing and you are confid

Re: Tapestry Tools on OS X?

2011-07-12 Thread Gavin Lei
Yeah, do not forget to open Eclipse *Palette* view :-) 2011/7/13 Igor Drobiazko : > Works for me. You need to open it with the WTP Web Page Editor. > > See here: > http://code.google.com/p/tapestrytools/wiki/Tapestry_support_in_Web_Page_Editor > > And don't forget to open the "Palette" view. > > O

Re: Java Magic has 10000+ hits

2011-07-12 Thread Taha Hafeez
On Wed, Jul 13, 2011 at 7:08 AM, Vangel V. Ajanovski wrote: > On 07/13/2011 02:41 AM, Taha Hafeez wrote: > >> This is an unfair comment. I always check any comments and try to respond >> to >> them as soon as possible. It is not possible to remember which of my >> article >> is outdated. All you

Re: Java Magic has 10000+ hits

2011-07-12 Thread Vangel V. Ajanovski
On 07/13/2011 02:41 AM, Taha Hafeez wrote: As for the documentation, the same rule applies but instead of adding a comment you have to file a jira. ... Intentionally separate mail for this. Unfortunately, I don't understand most of the documents tackling advanced topics. Again, it would be un

Re: Java Magic has 10000+ hits

2011-07-12 Thread Vangel V. Ajanovski
On 07/13/2011 02:41 AM, Taha Hafeez wrote: This is an unfair comment. I always check any comments and try to respond to them as soon as possible. It is not possible to remember which of my article is outdated. All you have to do is add a comment at the bottom of the It would have been a truly unf

Re: Java Magic has 10000+ hits

2011-07-12 Thread Taha Hafeez
Hi Vangel, This is an unfair comment. I always check any comments and try to respond to them as soon as possible. It is not possible to remember which of my article is outdated. All you have to do is add a comment at the bottom of the article you find outdated/wrong etc and I will do my best to up

Re: Java Magic has 10000+ hits

2011-07-12 Thread Vangel V. Ajanovski
And even better if articles get updated :) For example, your article was my first encounter with Perf4J and implemented it in the same way, unfortunately after move to T5.3.0 I get several dozens of warnings about things that are deprecated. I tried to fix them all and after one hour, I under

ajaxformloop: syncValue is never called for added rows on form submit

2011-07-12 Thread Ray Nicholus
Note that I am using a custom value encoder. When I click submit, the values in the rows that were rendered during form load are synced, resulting in calls to getValue of my value encoder, but this does not happen for rows added via the addrow event.

Re: Java Magic has 10000+ hits

2011-07-12 Thread Taha Hafeez
Hi Inge, On Wed, Jul 13, 2011 at 12:18 AM, Inge Solvoll wrote: > This kind of blogging effort is tremendously important for tapestry's > position in the market. Frequent high quality articles on dzone might > be the most important thing that has happened to this framework for a > long time. Good

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
Yet another issue: syncValue in ajaxformloop is never called on form submit for rows that have been added after the form renders. Everything seems to work ok for original rows. On Tue, Jul 12, 2011 at 6:01 PM, Ray Nicholus wrote: > Sorry, I figured it out. I haven't played with custom value en

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
Sorry, I figured it out. I haven't played with custom value encoders before, and that seems to have it's own set of new challenges for me. On Tue, Jul 12, 2011 at 5:42 PM, Robert Zeigler wrote: > Hard to say without seeing more code :) > > Robert > > On Jul 12, 2011, at 7/125:36 PM , Ray Ni

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Robert Zeigler
Hard to say without seeing more code :) Robert On Jul 12, 2011, at 7/125:36 PM , Ray Nicholus wrote: > Thanks for this info. I did create a custom value encoder, and I confirmed > that the encoder is returning the correct object on toValue, but the object > is not updated with the current f

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
Thanks for this info. I did create a custom value encoder, and I confirmed that the encoder is returning the correct object on toValue, but the object is not updated with the current form values on submit. Am I missing something? On Tue, Jul 12, 2011 at 4:45 PM, Robert Zeigler wrote: > Yup. >

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Robert Zeigler
Yup. But see: http://tapestry.apache.org/current/tapestry-core/ref/org/apache/tapestry5/corelib/components/AjaxFormLoop.html In particular, the encoder parameter: encoderValueEncoderRequired, NOT Allow Nullprop Required parameter used to convert server-s

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
Can't I simply maintain a list of the persisted objects server side (the source for the ajaxformloop), add a new object to the list in my onAddRow handler, and simply save the non-persisted objects on form submit? On Tue, Jul 12, 2011 at 4:19 PM, Robert Zeigler wrote: > Hm... no... you don't hav

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Robert Zeigler
Hm... no... you don't have to commit it to the DB. BUT. You must be able to handle converting the uncommitted object to/from a string representation. There are a variety of ways to do that, but it's worth noting that the default value encoders for the hibernate module do not handle un-persisted e

Re: how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
Nevermind, I'm ditching ajaxformloop - too many shortcomings/problems. This component is not useful for my situation, and I would not consider my situation to be unusual at all. Instead, I will opt to use a normal loop and create my own remove & add links/buttons. It seems, for one, the ajaxform

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Igor Drobiazko
I started a discussion in the developers list. Feel free to join. On Tue, Jul 12, 2011 at 10:48 PM, Lenny Primak wrote: > Since I have persistence.xml, it didn't even occur to me that I needed > configure it manually, > and the documentation only shows how to do it for a new programmatic PU. > So

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
Since I have persistence.xml, it didn't even occur to me that I needed configure it manually, and the documentation only shows how to do it for a new programmatic PU. So, without knowing that I needed to do this, it was next to impossible to figure out what's going on here. Also, the relationship

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Igor Drobiazko
On Tue, Jul 12, 2011 at 10:28 PM, Lenny Primak wrote: > Thank you! That finally worked. > Great. > > Definitely not trivial to figure out... > Well, actually the documentation mentions how to configure persistence units programmatically. http://tapestry.apache.org/integrating-with-jpa.html H

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
Thank you! That finally worked. Definitely not trivial to figure out... Here is the code if anybody is interested: - @Contribute(EntityManagerSource.class) public static void configurePUs( final MappedConfiguration configuration, final

how do I stop tapestry from appending to the id of a form element added via the add row link (ajaxformloop)

2011-07-12 Thread Ray Nicholus
In my ajaxformloop, I specify an clientId for each of my selects. I am working around an issue/shortcoming in Tapesty regarding zone updates in a form loop. To do this, I must be able to specify the IDs of my form elements. For one particular element, in each row of the form loop, I specify a cl

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
My PUs are statically defined, and they are both development and production PUs available, but only one is accessed at any one time depending on which app server the app is installed. This is actually only one aspect, as this app does access multiple databases. On Jul 12, 2011, at 4:04 PM, Kalle

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Igor Drobiazko
On Tue, Jul 12, 2011 at 9:53 PM, Lenny Primak wrote: > I've been trying to figure out how to add package name to an existing PU > read from persistence.xml, > can you share some code on how to do that? That would work for me just > fine. > I am unable to figure that out. > Check out this module:

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Kalle Korhonen
On Tue, Jul 12, 2011 at 12:53 PM, Lenny Primak wrote: > About scanning all packages, in my situation there is production and > development databases, > they have exactly the same schema, so in this instance scanning all packages > is the right thing to do, > but I would be very happy with contri

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
I've been trying to figure out how to add package name to an existing PU read from persistence.xml, can you share some code on how to do that? That would work for me just fine. I am unable to figure that out. About scanning all packages, in my situation there is production and development datab

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Igor Drobiazko
On Tue, Jul 12, 2011 at 9:24 PM, Lenny Primak wrote: > Thanks again Igor, > Unfortunately, we have other parts of the app using persistence.xml, > so this isn't a great solution. > I don't really see a way to do this cleanly with this method. > You can still have a persistence.xml file. A Persist

Re: Remove CSS & JS stacks in v5.3

2011-07-12 Thread Martin Strand
On Tue, 12 Jul 2011 17:13:52 +0200, stephanos2k wrote: It seems AssetStack was removed in v5.3. But I modified it to this (using Scala): def contributeJavaScriptStackSource(configuration: MappedConfiguration[String, JavaScriptStack]) { configuration.`override`("core", new Java

Re: updating a zone inside of an ajaxformloop

2011-07-12 Thread Ray Nicholus
When the select in your loopZone reloads after the zone update, it uses purchaseRequest to determine it's value. However, after the loop has already executed, purchaseRequest, which you persist, points to the last purchaseRequest instant enountered by the ajaxformloop. Correct? On Tue, Jul 12, 2

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
Thanks again Igor, Unfortunately, we have other parts of the app using persistence.xml, so this isn't a great solution. I don't really see a way to do this cleanly with this method. May I suggest the following patch: EntityManagerSourceImpl.java, - instead of if(persisten

Re: updating a zone inside of an ajaxformloop

2011-07-12 Thread George Christman
I might not be understanding your question completely, so please correct me if I'm misunderstanding you. The sample code I posted enables you to only update the zone within the row of the select menu triggering it. If you select an option in the first select menu / first row, it will only update t

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Igor Drobiazko
On Tue, Jul 12, 2011 at 9:02 PM, Lenny Primak wrote: > I'm having trouble figuring this out. Can you help me so I can go on a > well deserved vacation? > I wasn't fast enough since your last mail :) Please checkout the "XML-less JPA configuration" section at the following page. http://tapestry.

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
I'm having trouble figuring this out. Can you help me so I can go on a well deserved vacation? BTW your book is fantastic! On Jul 12, 2011, at 2:09 PM, Igor Drobiazko wrote: > Hi Lenny, > > the JpaEntityPackageManager service is invoked if only a single persistence > unit is defined. The reaso

Re: Java Magic has 10000+ hits

2011-07-12 Thread Inge Solvoll
This kind of blogging effort is tremendously important for tapestry's position in the market. Frequent high quality articles on dzone might be the most important thing that has happened to this framework for a long time. Good job! Please write more. We need more people to do this as well :) On We

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
Igor, do you mind sending me quick sample on how to do this? Really appreciate it. This is a bit confusing to me. On Jul 12, 2011, at 2:09 PM, Igor Drobiazko wrote: > Hi Lenny, > > > So, you need to contribute a PersistenceUnitConfigurer to the > EntityManagerSource service's configuration. >

Re: Tapestry Tools on OS X?

2011-07-12 Thread Igor Drobiazko
Works for me. You need to open it with the WTP Web Page Editor. See here: http://code.google.com/p/tapestrytools/wiki/Tapestry_support_in_Web_Page_Editor And don't forget to open the "Palette" view. On Tue, Jul 12, 2011 at 5:44 PM, Mark wrote: > Has anyone installed http://code.google.com/p/ta

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Igor Drobiazko
On Tue, Jul 12, 2011 at 8:20 PM, Lenny Primak wrote: > > > If I may offer a suggestion... > In case of multiple persistence units, perhaps it would be better to scan > the whole app for entities, > rather than scan nothing. This would seem much more appropriate default > behavior, > as it is not a

Re: updating a zone inside of an ajaxformloop

2011-07-12 Thread Ray Nicholus
Unless I'm missing something, it looks like this will have the same problem I've been battling. After the loop executes and the zone is updated, the purchaseRequest, in this case, will always be the last purchaseRequest encountered by the loop. Please correct me if I am incorrect. At this time,

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
Never mind this, I actually will have multiple different databases that this app accesses in the future, so multiple PUs are here to stay. On Jul 12, 2011, at 2:13 PM, Lenny Primak wrote: > Thanks Igor! > Perhaps I am not doing things the optimal way. > My use case is that I have a production an

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
Thanks again, Igor, I will try this out. If I may offer a suggestion... In case of multiple persistence units, perhaps it would be better to scan the whole app for entities, rather than scan nothing. This would seem much more appropriate default behavior, as it is not at all clear and simple ho

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
Thanks Igor! Perhaps I am not doing things the optimal way. My use case is that I have a production and a development database. I would like to have the same war file for both, and depending on system properties, choose what database to access. I have Persistence Unit for the production and one fo

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
Ok, I've debugged this a bit further. providePagkages() gets called ONLY if there is only one persistence unit in persistence.xml. On the other hand, in the all-important case of multiple persistence units, providePackages() does not get called. Any ideas? Thanks! On Jul 12, 2011, at 1:00 PM, L

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Igor Drobiazko
Hi Lenny, the JpaEntityPackageManager service is invoked if only a single persistence unit is defined. The reasons are: 1) 99% of the apps are using a single persistence unit. In this case, auto-configuring entities from the entities su-package is very useful. 2) if multiple persistence units are

Unit testing Tapestry within intellij?

2011-07-12 Thread Julien Martin
Hello, I am trying to follow the unit testing tutorial provided here: http://tapestry.apache.org/unit-testing-pages-or-components.html and I am not able to run the tests from Intellij. Here is what I get: *com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 tests.CreateJobPosting log

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
I use persistense.xml. I don't think @Contribute(JpaEntityPackageManager.class)public static void providePackages(Configuration configuration) is getting called, hence continuing of my frustrations. Still need help with getting that resolved. Thanks! Here is my persistense.xml: ---

Re: Tapestry 5.3.0 and JPA - Errors hot-deploying using Glassfish & Netbeans

2011-07-12 Thread Lenny Primak
Thanks, Igor! Change in Tapestry is not required. I was using Persistens.createEntityManagerFactory() from ousite EJB or tapestry IOC which is apparently a big no-no which isn't documented anywhere besides stackoverflow.com On Jul 12, 2011, at 9:50 AM, Igor Drobiazko wrote: > What was your fix

Tapestry Tools on OS X?

2011-07-12 Thread Mark
Has anyone installed http://code.google.com/p/tapestrytools/ on OS X? I tried it last night, but couldn't get the tapestry component palette to work. Just curious it is a problem with my system or if everyone on OS X has the same problem. Mark

Re: Remove CSS & JS stacks in v5.3

2011-07-12 Thread Thiago H. de Paula Figueiredo
On Tue, 12 Jul 2011 12:13:52 -0300, stephanos2k wrote: This removes almost everything except for: /ProgressiveDisplay.js/ (which I guess is not actually a part of the stack). This is included (and needed) by the ProgressiveDisplay component, so I don't think you really want to remove it

Re: how to use asset from component library in template?

2011-07-12 Thread stephanos2k
Thanks for the explanation! Very much appreciated :-) On Mon, Jul 11, 2011 at 9:30 PM, Nillehammer-2 [via Tapestry] < ml-node+4576210-1636130599-151...@n5.nabble.com> wrote: > Hi stephanos2k, > > By the way, the stylesheet in my library references some images > > [background-image: "/images/erro

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Igor Drobiazko
Looks like named query is not know in the BillingPUTest persistence unit. How did you define it? On Tue, Jul 12, 2011 at 2:19 PM, Lenny Primak wrote: > I am using Tapestry 5.3 and the JPA module 5.3 > > In my Page class: > > @PersistenceContext(unitName = "BillingPUTest") private EntityManager e

Re: Remove CSS & JS stacks in v5.3

2011-07-12 Thread stephanos2k
Thanks for the suggestion! It seems AssetStack was removed in v5.3. But I modified it to this (using Scala): def contributeJavaScriptStackSource(configuration: MappedConfiguration[String, JavaScriptStack]) { configuration.`override`("core", new JavaScriptStack { def getInit

Zone update causes to loose js/css bound to div inside zone

2011-07-12 Thread sandeep kale
Hi, I am using zone to reset ordering of rows in my list grid. I reorder the rows in the list after clicking on reset button which refreshes zone containing list grid. Upto this it's fine. But I have added js to on load of document to set the class of rows in the list to a css class through javasc

Re: Remove CSS & JS stacks in v5.3

2011-07-12 Thread Martin Strand
I'm doing something like this in 5.2, I suppose it ought to work in 5.3 too: public void contributeJavaScriptStackSource(MappedConfigurationJavaScriptStack> configuration) { List scripts = Collections.emptyList(); List stylesheets = Collections.emptyList(); configuratio

Re: Tapestry 5.3.0 and JPA - Errors hot-deploying using Glassfish & Netbeans

2011-07-12 Thread Igor Drobiazko
What was your fix? Is a change in Tapestry required? On Tue, Jul 12, 2011 at 2:14 PM, Lenny Primak wrote: > I finally figured out what the problem here is. > I was 'leaking EntityManagerFactory objects. They can only be used within > SessionBeans or such, > or be closed manually. > > On Jul 12,

Remove CSS & JS stacks in v5.3

2011-07-12 Thread stephanos2k
I recently upgraded to v5.3 and noticed that my previous method of removing the default Tapestry stylesheet and javascript stacks didn't work anymore (I decorated JavaScriptSupport and disabled importStack() etc.). What's the best way to get rid of the two stacks completely? -- View this message

Re: Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
I believe this piece of code in my app module is not getting called: @Contribute(JpaEntityPackageManager.class) public static void providePackages(Configuration configuration) { log.severe("Calling addPackage()"); configuration.add("com.baw.website.entities"); } An

Re: updating a zone inside of an ajaxformloop

2011-07-12 Thread George Christman
Ray, I'm not sure if this helps, but here is an example of a AjaxFormLoop with a nested select / zone and nested within the zone is another select. The tempId in the value encoder is just a @Transient UUID generated from your entity class. Hope it helps.

Problems accessing Named Queries in multiple Persistent Units

2011-07-12 Thread Lenny Primak
I am using Tapestry 5.3 and the JPA module 5.3 In my Page class: @PersistenceContext(unitName = "BillingPUTest") private EntityManager em; @SuppressWarnings("unused") @PageAttached private void populate() { // userList = facade.findAll(); // either variant will work th

Re: Tapestry 5.3.0 and JPA - Errors hot-deploying using Glassfish & Netbeans

2011-07-12 Thread Lenny Primak
I finally figured out what the problem here is. I was 'leaking EntityManagerFactory objects. They can only be used within SessionBeans or such, or be closed manually. On Jul 12, 2011, at 4:40 AM, Lenny Primak wrote: > Actually, it doesn't work in 5.2.5 either. Does anyone else have a similar

Re: Tapestry 5.3.0 and JPA - Errors hot-deploying using Glassfish & Netbeans

2011-07-12 Thread Lenny Primak
Actually, it doesn't work in 5.2.5 either. Does anyone else have a similar problem? On Jul 12, 2011, at 4:07 AM, Lenny Primak wrote: > I had no problems doing this in 5.2.5 & Tynamo JPA... > > I just upgraded to 5.3.0, > Whenever I change any code in any of the Tapestry packages, > when runni

Tapestry 5.3.0 and JPA - Errors hot-deploying using Glassfish & Netbeans

2011-07-12 Thread Lenny Primak
I had no problems doing this in 5.2.5 & Tynamo JPA... I just upgraded to 5.3.0, Whenever I change any code in any of the Tapestry packages, when running JPA related code, I get an exception (listed on the bottom) The only way to fix it is to restart the server. I have not tried Jetty because Gla

Re: Why does the 5.3 Tapestry JPA needs to know where my entities are?

2011-07-12 Thread Lenny Primak
Well, I have never used Hibernate, so the 'conformance' is foreign to me. When developing 'pure' EJB apps in the past, the default I don't need to worry about putting my entities in a certain place, I guess it is confusing when coming from a pure EJB development to tapestry, because this behavior

Re: Why does the 5.3 Tapestry JPA needs to know where my entities are?

2011-07-12 Thread Igor Drobiazko
Currently, Tapestry excludes the unlisted managed classes. The tag in the persistence descriptor is ignored, so that the following method always returns true. http://download.oracle.com/javaee/5/api/javax/persistence/spi/PersistenceUnitInfo.html#excludeUnlistedClasses%28%29 The reason is: I'm n

Re: datefield & timezone

2011-07-12 Thread Paul Stanton
My final solution was to patch DateField.java and datefield.js so that neither use 'getTime'. Instead I translate into "-MM-dd" format for transportation, and read/write that on the server with the same tz as the DateFormat supplied by the format parameter. If some of your users are in a d

Why does the 5.3 Tapestry JPA needs to know where my entities are?

2011-07-12 Thread Lenny Primak
Just curious... how do they get instrumented? Are there any side-effects of not putting them into a package that Tapestry knows about? Thanks! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional command