[appfuse-user] Re: DisplayTag, Export and ResponseOverrideFilter

2010-02-12 Thread syg6
I figured out the problem. I hadn't changed the 'export.excel.class' property to be 'org.displaytag.export.ExcelView' in displaytag.properties. Now it spits out an Excel but I have two problems: 1. I need the Excel link to call submit on my Controller. Right now it seems only to be able to call

[appfuse-user] DisplayTag, Export and ResponseOverrideFilter

2010-02-11 Thread syg6
I am trying to get my lists to export to Excel. I've set up my properties correctly, the Export footer appears and everything looks ok. The URLs DisplayTag generates are just links to my Controllers, adding some DisplayTag-specific parameters: http://localhost:8080/mylist.html?d-6780472-e=2&65787

Re: [appfuse-user] How to turn off password encoding

2009-03-05 Thread syg6
Oops. Nevermind. I found an old message on the forum that shows how to solve this problem. All you have to do is comment-out the definition of the passwordEncoder bean and also comment it out from the daoAuthenticationProvider bean definition. Sorry for the wasted bits! Bob syg6 wrote: >

[appfuse-user] How to turn off password encoding

2009-03-05 Thread syg6
I originally had the default ShaPasswordEncoder in my security.xml but have since changed it to PlaintextPasswordEncoder for reasons related to the project. I would like to turn off encryption entirely. How can I do this? I tried commenting out the passwordEncoder bean in security.xml but the app

Re: [appfuse-user] Run an appfuse app on cdrom?

2009-02-12 Thread syg6
I already have done, but hey, I get to learn Air, Flex and SqlLite in the bargain! Many thanks for the very informative and helpful post, I am sure someone else will use your suggestion. Bob gerjan wrote: > > Quoting syg6 : > >> Is this possible? I've been looking at SQL

[appfuse-user] Run an appfuse app on cdrom?

2009-02-09 Thread syg6
Is this possible? I've been looking at SQLLite, Jetty, and projects like Google Gears and Adobe Air. I would like to take my appfuse app and stick it on a cdrom. Of course the user would no longer be able to enter new data, only browse existing data. Has anyone ever done this? Thanks! Bob --

Re: [appfuse-user] Hibernate madness - how to order a Set

2008-11-21 Thread syg6
et and ordered list. > > > Regards, Youssef > > > On Thu, Nov 20, 2008 at 5:51 PM, syg6 <[EMAIL PROTECTED]> wrote: > >> >> I have a @OneToMany Collection (EstablishmentBins) in my POJO >> (Establishment), mapped as a Set. I've tried using LinkedHashSet and

[appfuse-user] Hibernate madness - how to order a Set

2008-11-20 Thread syg6
I have a @OneToMany Collection (EstablishmentBins) in my POJO (Establishment), mapped as a Set. I've tried using LinkedHashSet and TreeSet, no go, Hibernate says I can't. Ok, fair enough. But since it is a plain old Set there is no order. And I need some order. So I changed my EstablishmentBin PO

Re: [appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread syg6
Hmmm ... Alexander Coles wrote: > > > I only include boxed primitive (String) properties + @Embedded > properties when I write my hashCode() and equals(). > Of course, if you have a property that you know should be unique - a > natural key - in addition to your surrogate key, you can just

Re: [appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread syg6
ystery for me! Bob , just a bunch of syg6 wrote: > > I posted a similar message a while back. I only got one response. I > thought I had fixed my problem by eagerly loading my Object's Collections > when needed. But no, it's broke again. > > In summ

[appfuse-user] Lazy Exception again. WTF?

2008-07-09 Thread syg6
I posted a similar message a while back. I only got one response. I thought I had fixed my problem by eagerly loading my Object's Collections when needed. But no, it's broke again. In summary, I am getting the famous 'could not initialize proxy - no Session' error when trying to display a list of

Re: [appfuse-user] Strange LazyInitializationException: could not initialize proxy - no Session

2008-06-13 Thread syg6
e problem. If it does I'll have to look into a couple issues - Fetching strategies and as you mentioned, second-level cache. But I am not sure how to enable/use second-level cache with AppFuse ... Thanks for your response! Bob -D On Jun 12, 2008, at 7:16 AM, syg6 wrote: > > I can&#x

[appfuse-user] Strange LazyInitializationException: could not initialize proxy - no Session

2008-06-12 Thread syg6
I can't figure out why I am getting this error. I recently changed ALL my Collections to LAZY because my application was just dragging when it had a lot of data. But this broke lots of stuff. I think I finally fixed all the stuff that broke (using Hibernate.initialize() to manually load Collection

Re: [appfuse-user] How to access messages from a non-form controller

2008-06-03 Thread syg6
ontroller definition. Thanks a mil! Bob mraible wrote: > > You could inject the messageSource bean into your controller. > > Matt > > On Tue, Jun 3, 2008 at 4:35 AM, syg6 <[EMAIL PROTECTED]> wrote: >> >> Spring's SimpleForm controller and AppFuse'

[appfuse-user] How to access messages from a non-form controller

2008-06-03 Thread syg6
Spring's SimpleForm controller and AppFuse's BaseFormController both have a saveMessage() method which grabs a property from your Properties file using Locale and sticks it in the Sssion under the MESSAGES_KEY attribute. How in the world can I do this with a normal Controller? I've tried delving

Re: [appfuse-user] Can't see menu?

2008-04-09 Thread syg6
Wed, Apr 9, 2008 at 12:09 AM, syg6 <[EMAIL PROTECTED]> wrote: >> >> The latest and greatest - 2.x with Spring / Hibernate. >> >> Thanks, >> Bob >> >> >> >> >> Mike Horwitz wrote: >> > >> > Whic

Re: [appfuse-user] Can't see menu?

2008-04-08 Thread syg6
The latest and greatest - 2.x with Spring / Hibernate. Thanks, Bob Mike Horwitz wrote: > > Which version of AppFuse are you using? > > Mike > > On 08/04/2008, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> I am just now trying to lock down my app and no

[appfuse-user] Can't see menu?

2008-04-08 Thread syg6
I am just now trying to lock down my app and noticed that when I log in as a non-admin user I can't see the menu. I thought it was because of the new roles I created and assigned in security.xml so I rolled back to the original security.xml, menu.jsp and menu-config.xml and sure enough, even with

[appfuse-user] Spring 2.5 Autowiring and MVC Annotations

2008-02-27 Thread syg6
I just read a couple interesting articles over at Wheeler Software. I'm sure Matt has already read them but for the rest of us: http://wheelersoftware.com/articles/spring-autowiring-annotations-3.html Spring Autowiring http://wheelersoftware.com/articles/spring-mvc-annotations.html Spring MVC A

Re: [appfuse-user] Too many records!

2008-02-22 Thread syg6
lp says that its External Pagination is for. Thanks for the (as always) quick and helpful replies. Bob Mike Horwitz wrote: > > On 22/02/2008, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> I have a table with 150,000 records. When I call this object's >> m

[appfuse-user] Too many records!

2008-02-22 Thread syg6
I have a table with 150,000 records. When I call this object's manager.getAll() it tries to load them all at once. This, of course, makes my pc crap the bed. I was wondering what my options are. I suppose one option is to call my own method, instead of getAll(), getSome(int startRecord, int howM

Re: [appfuse-user] How to make Maven see a new JAR that's not in Maven repository?

2008-02-19 Thread syg6
ll complain the dependency is missing. > At the same time it will give you the command you need to run to place the > jar file in your repository. > > Mike. > > On 18/02/2008, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> I have successfully added a JAR to my

[appfuse-user] How to make Maven see a new JAR that's not in Maven repository?

2008-02-18 Thread syg6
I have successfully added a JAR to my app. This JAR contains another app of mine and I need access to some code contained within. I physically added it to my WEB-INF/lib dir, did a Refresh in Eclipse and added it in the Properties : Java Build Properties. Everything compiles but when I execute ru

[appfuse-user] Be careful with sessionVariables=FOREIGN_KEY_CHECKS=0?

2008-01-23 Thread syg6
This is a parameter you can add to your pom.xml under the section for MySQL. It allows DBUnit to populate the database using sample-data.xml without worrying about the order in which the tables and their data appear in that file. It looks like this: But I found out the hard way that this sh

Re: [appfuse-user] Case issue with view / jsp when using Tomcat

2007-12-19 Thread syg6
isn't the View for any Spring URL so ... I have renamed a couple camel-case pages to lower-case and they still work so I guess I'll just rename them all! Thanks again! Bob mraible wrote: > > On 12/18/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> We have been develop

[appfuse-user] Case issue with view / jsp when using Tomcat

2007-12-18 Thread syg6
We have been developing for months on Jetty and are now ready to start testing on a production server, a Tomcat 6. So I copy the WAR and lo and behold, none of my *Form.jsp pages are displayed! I am using the default settings for both ControllerClassNameHandlerMapping and RequestToViewNameTransl

[appfuse-user] Odd error: menus get all messed up when executing jetty:run instead of jetty:run-war

2007-11-29 Thread syg6
Using Appfuse 2, Hibernate+Spring MVC non-modular. Has anyone ever seen this? I am trying to use 'jetty:run' instead of 'jetty:run-war' (so hot-swapping of classes will work) and when I do my menus get all garbled up. They appear at the top of the screen, one next to or on top of another. No drop

Re: [appfuse-user] Calling GenericManager method via DWR

2007-11-21 Thread syg6
Yep, it's Serializable. And I even gave it a serialVersionUID. No, there's no difference between this model Object and all the others that work with DWR, I think it has something to do with calling GenericManager methods ... Bob Rob Hills wrote: > > Hi Bob, > > syg6 wro

Re: [appfuse-user] Calling GenericManager method via DWR

2007-11-21 Thread syg6
am'. <_param name="class" value="com.myco.myapp.service.PlaceManager" /> <_param name="beanName" value="placeManager" /> syg6 wrote: > > Is there anything special you need to do to get this to work? > > I have a manager, PlaceManag

[appfuse-user] Calling GenericManager method via DWR

2007-11-21 Thread syg6
Is there anything special you need to do to get this to work? I have a manager, PlaceManagerImpl, which extends GenericManagerImpl and implements PlaceManager. I wish, however, to call one of the methods from GenericManagerImpl, get(). in my dwr.xml I did this: This is exac

Re: [appfuse-user] Many-to-many collection problem

2007-11-02 Thread syg6
nnotations, PropertyEditor, etc. I'll let the list know when it's up. Cheers, Bob DNewfield wrote: > > syg6 wrote: >> 1. Load ObjectA from database (to get existing ObjectB Collection). >> 2. Use ObjectBManager to get() each ObjectB > > Huh? Shouldn't ObjectA contain

Re: [appfuse-user] Many-to-many collection problem

2007-10-31 Thread syg6
orial, and I don't think my situation is anything out of the ordinary. Having attributes in a Join table must be pretty common. In my project alone I have 6!! If there is any interest I'll try to throw it together. Thanks again listers, and specifically Mssr. Horowitz. Bob , with a Man

Re: [appfuse-user] Many-to-many collection problem

2007-10-31 Thread syg6
nstance - save the transient instance before flushing' error. Anything else I need to do? Thanks! Bob Mike Horwitz wrote: > > On 10/31/07, syg6 <[EMAIL PROTECTED]> wrote: > >> >> I used both Hibernate docs and Hibernate in Action to come up with this >> mapping

Re: [appfuse-user] Many-to-many collection problem

2007-10-31 Thread syg6
gt; going to have to change your annotations. The following section of the > Hibernate manual should help: http://tinyurl.com/ypdln3 look for section > 2.2.5.3.2.1. > > Mike > > On 10/31/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> Well what's cur

Re: [appfuse-user] Many-to-many collection problem

2007-10-31 Thread syg6
guaranteed to return an id for the new object being saved. (And at least in my case, even after calling save(), idObjectA is always null.) Thanks again! Bob syg6 wrote: > > Well what's curious is that with my other 'normal' ManyToMany (see my > previous post. ObjectA ha

Re: [appfuse-user] Many-to-many collection problem

2007-10-31 Thread syg6
omething else to make Hibernate aware that all elements have been deleted. But I have no idea what! Incidentally, any ideas about the other problem? Where when I create a new ObjectA and associate various ObjectB elements, those AAndBJoin Objects are saved incorrectly, with idObjectA=null, b

Re: [appfuse-user] Many-to-many collection problem

2007-10-30 Thread syg6
parison, and deletes nothing. Ugh. Hibernate ... a riddle, wrapped in a mystery, inside an enigma. Bob DNewfield wrote: > > syg6 wrote: >> The only problem left is that when I create a new ObjectA and at the same >> time associate AAndBJoin objects (as opposed to first saving

Re: [appfuse-user] Many-to-many collection problem

2007-10-29 Thread syg6
nail this last problem! Bob syg6 wrote: > > Hmmm. Yea, I already had this set at one time and it didn't seem to be > doing anything so I got rid of it. Looking again at the documentation it > seems DELETE_ORPHAN isn't only for deleting from Collections when the > Parent obje

Re: [appfuse-user] Duplicate Users in List

2007-10-27 Thread syg6
Yep. You're using Hibernate right? Just cast the List of Users to a LinkedHashSet in your UserController. List allows duplicates, Sets do not. Cheers, Bob George.Francis wrote: > > I'm getting some strange behaviour. I find that if I assign two Roles to > User 'admin' then when I call > userM

Re: [appfuse-user] Many-to-many collection problem

2007-10-26 Thread syg6
DELETE_ORPHAN ( a Hibernate specific > annotation) that should do what you want. See here for more details: > http://tinyurl.com/29m6ek. > > Mike. > > On 10/26/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> Well I've been playing with this all week and, qui

Re: [appfuse-user] Many-to-many collection problem

2007-10-26 Thread syg6
BJoins; @OneToMany(mappedBy="objectb") public Set getObjectAAndBJoins () ObjectAAndBJoin: private ObjectA objectA; private ObjectB objectB; @ManyToOne @JoinColumn(name="idObjectA") public ObjectA getObjectA() @ManyToOne @JoinColumn(name="idObjectB"

Re: [appfuse-user] Many-to-many collection problem

2007-10-23 Thread syg6
ibernate sucks me back in. :( Thanks for any help! Bob syg6 wrote: > > That was it! Makes perfect sense now that someone else suggested it to me! > > Thanks again! > > Bob > > > Mike Horwitz wrote: >> >> Are you passing the id in the call from your

Re: [appfuse-user] Many-to-many collection problem

2007-10-23 Thread syg6
t; Mike > > On 10/22/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> Yep. I left it out for brevity. Besides, I don't think Hibernate would be >> able to do the inserts if I hadn't defined a PK, no? >> >> Anyway, here it is: >> &g

Re: [appfuse-user] Many-to-many collection problem

2007-10-22 Thread syg6
Bob Mike Horwitz wrote: > > Are you passing the id in the call from your jsp? If you are not, then > Hibernate will think these are new entities and save rather than update > them. > > Mike > > On 10/22/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >&

Re: [appfuse-user] Many-to-many collection problem

2007-10-22 Thread syg6
d for a minute there. But alas, that's not the problem ... Bob Mike Horwitz wrote: > > Have you assigned a primary key field to your AAndBJoin object? > > Mike. > > On 10/22/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> Hello listers. >>

[appfuse-user] Many-to-many collection problem

2007-10-22 Thread syg6
Hello listers. I have posted on this before. I got no replies, either here or over at hibernate.org. So I parked the issue and moved on but now I have to deal with it. Because of my limited Hibernate knowledge, I am not even really sure of what things to try anymore. Can someone shed some light o

Re: [appfuse-user] How to manually change a Collection with Hibernate / Spring MVC

2007-10-04 Thread syg6
ut then I get a 'object references an unsaved transient instance' error. At any rate, I am glad I fnally got the custom property editor to work. Bob syg6 wrote: > > Well I've more or less given up on getting a reply to > http://www.nabble.com/Best-way-to-

[appfuse-user] How to manually change a Collection with Hibernate / Spring MVC

2007-10-04 Thread syg6
Well I've more or less given up on getting a reply to http://www.nabble.com/Best-way-to-save-ManyToOne-relationships-with-Hibernate-and-Spring-MVC-tf4553758s2369.html my previous post . After searching for two days I haven't found anything remotely like a 'Silver Bullet' that will do what I need

Re: [appfuse-user] Best way to save ManyToOne relationships with Hibernate and Spring MVC

2007-10-03 Thread syg6
in the jsp (rather than multi-select) I would love to know how you managed it! Thanks, Bob syg6 wrote: > > Well I am plugging away at scenario(2) ... as I figured, not trivial. > > I looked at some of the examples of the tag. It seems to be > the way to go. In my jsp I hav

Re: [appfuse-user] Best way to save ManyToOne relationships with Hibernate and Spring MVC

2007-10-02 Thread syg6
e deletion of these objects is going to be a pain as well. I hope to be able to just wipe the table for the current idEstablishment and just do inserts. Otherwise it's going to be a nightmare. Thanks in advance! Bob syg6 wrote: > > Hello again. > > Well I guess I'll deal wi

Re: [appfuse-user] Best way to save ManyToOne relationships with Hibernate and Spring MVC

2007-10-02 Thread syg6
k, but preferable to picking out all of the values from the request, manually instantiating and populating every EstablishmentContainer object and adding it to the List. I'll keep you posted! Bob or objects Mike Horwitz wrote: > > On 10/2/07, syg6 <[EMAIL PROTECTED]> wrote

Re: [appfuse-user] Best way to save ManyToOne relationships with Hibernate and Spring MVC

2007-10-02 Thread syg6
e() on the editor with the corresponding > country object. > > 2) You then register this custom editor using one of the appropriate > methods > on your controller: initBinder() see api on http://tinyurl.com/2sutrm > > And it should all work like magic > > Mike. &

[appfuse-user] Best way to save ManyToOne relationships with Hibernate and Spring MVC

2007-10-02 Thread syg6
I have a couple scenarios, one typical the other not so much, that I am trying to implement as quickly and easily as possible. The first is pretty straight-forward: @Entity public class Application ... private StreetSection streetSecion; ... @ManyToOne(cascade = { CascadeType.PERSIST, CascadeTyp

Re: [appfuse-user] How to put non-command hidden values back in the request with Spring MVC

2007-09-28 Thread syg6
commandClass plus the additional fields you want to capture. > > Matt > > On 9/28/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> This is something you always used to have to do by hand. Is it still the >> case? >> >> I am using a SimpleFormController. I ha

[appfuse-user] How to put non-command hidden values back in the request with Spring MVC

2007-09-28 Thread syg6
This is something you always used to have to do by hand. Is it still the case? I am using a SimpleFormController. I have a bunch of hidden fields in my form. They are NOT tied to the Command object associated with the SimpleFormController, they are just fields with strings. When I click on Submit

Re: [appfuse-user] problem setting up greybox in appfuse

2007-09-27 Thread syg6
gt; > http://prototype-window.xilinus.com/index.html > > I haven't looked at Greybox until today - but it looks like a slick > library. Can you please enter an issue for it into JIRA and I'll take > a look at making it work before the next release? > > http:

Re: [appfuse-user] How to write a controller and test for 'find' functionality

2007-09-26 Thread syg6
tion.class); setCommandName("findStreetSection"); } Since I started off using an AbstractFormController instead of a BaseFormController (which extends SimpleFormController) I had left out the constructor thus the definition of the Command class ... My bad, lesson learned, Bob syg6 wrot

Re: [appfuse-user] How to write a controller and test for 'find' functionality

2007-09-25 Thread syg6
e name of my Controller. Thanks for your help, I hope this post helps some lost soul like me someday ... Bob syg6 wrote: > > I'll give this a try tomorrow at work (3-day weekend here in Barcelona > ...) But I am curious, why should this be necessary? According to Spring's &g

Re: [appfuse-user] How to write a controller and test for 'find' functionality

2007-09-24 Thread syg6
ller), it should use the MyObject Command object by default, correct? That's what I thought anyway ... But even after hard-wiring it in my applicationContext file it doesn't seem to like it ... Anyway, as I said, I'll try your recommendation tomorrow. Many thanks! Bob mraible w

Re: [appfuse-user] How to write a controller and test for 'find' functionality

2007-09-21 Thread syg6
esn't make it to the jsp. Bummer. Bob syg6 wrote: > > I tried doing it with showForm() and it kind of works: > > protected ModelAndView showForm( > { > List sections = null; > > if (request.getParameter("id") != null) > { >

Re: [appfuse-user] How to write a controller and test for 'find' functionality

2007-09-21 Thread syg6
ut() instead ... both seem to work ... But now in my page I don't have access to the Command (Model) object. In theory, naming my Controller FindStreetSectionController, because of conventions, will automatically use my FindStreetSection object, right? But when I debug and look at this.commandCl

[appfuse-user] How to write a controller and test for 'find' functionality

2007-09-21 Thread syg6
I've been messing with this issue for a while. Basically I want to be able to search for StreetSections. Each StreetSection has a Street and a range of numbers. When you enter the search page the first time you see a list of Streets. Select one and enter a number and it will show you a list of Str

Re: [appfuse-user] problem setting up greybox in appfuse

2007-09-19 Thread syg6
extension to something like *.htm. Then modify > dispatcher-servlet.xml and web-tests.xml to use .htm instead of .html. > > Matt > > On 9/19/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> I got rid of all the stuff I had created - GreyboxController, >> greybox.

Re: [appfuse-user] problem setting up greybox in appfuse

2007-09-19 Thread syg6
. Unfortunately the client has already seen and loves greybox. Ugh. Bob syg6 wrote: > > I am using 2.0 RC1. I haven't tried configuring StaticFilter, I am going > to give it a try. I have to un-do all the stuff I have just done - > changing loader_frame.html back into loader_f

Re: [appfuse-user] problem setting up greybox in appfuse

2007-09-18 Thread syg6
ried adding /scripts/* to your StaticFilter? What version of > AppFuse you are using? > > Matt > > On 9/18/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> Did anyone every get this to work? I was thiiis close but no cigar. >> >> The problem is that internally gre

Re: [appfuse-user] problem setting up greybox in appfuse

2007-09-18 Thread syg6
Did anyone every get this to work? I was thiiis close but no cigar. The problem is that internally greybox uses a page, loader_frame.html, to do most of the work. This page is found with other 'static' files, like css and gif, in a directory you specify in the GB_ROOT_DIR variable. When you c

Re: [appfuse-user] Steps to to upgrade Hibernate (or any other dependency)

2007-09-17 Thread syg6
ionManager bean anymore! Bob Mike Horwitz wrote: > > On 9/17/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> Good morning, >> >> I see (or at least I think I see ...) that the version of Hibernate that >> Appfuse uses has been upgraded. If I nuke my Maven re

Re: [appfuse-user] Steps to to upgrade Hibernate (or any other dependency)

2007-09-17 Thread syg6
om to? I can try to upgrade > one of the demo apps locally and provide instructions. > > Matt > > On 9/14/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> Update: I stuck this in my pom.xml: >> >> >> commons-collections >> commons-collect

Re: [appfuse-user] Steps to to upgrade Hibernate (or any other dependency)

2007-09-14 Thread syg6
What I don't get is, if it's the same problem, why aren't the errors the same? Why don't the same tests fail and why doesn't it tell me it couldn't find the 'transactionManager' bean, instead of an INFO message that seems to say 'By the way, there&

Re: [appfuse-user] Steps to to upgrade Hibernate (or any other dependency)

2007-09-14 Thread syg6
, that's my hope. Thanks! Bob mraible wrote: > > What version are you trying to upgrade from to? I can try to upgrade > one of the demo apps locally and provide instructions. > > Matt > > On 9/14/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> Update: I s

Re: [appfuse-user] Steps to to upgrade Hibernate (or any other dependency)

2007-09-14 Thread syg6
Update: I stuck this in my pom.xml: commons-collections commons-collections 3.2 And I no longer get the NoClassDefFoundError. But I still get the 'No Transaction manager found' error. Bob syg6 wrote: > > Hi again folks. > > This topic was started > http:/

[appfuse-user] Steps to to upgrade Hibernate (or any other dependency)

2007-09-14 Thread syg6
Hi again folks. This topic was started http://www.nabble.com/Hibernate-ManyToMany-not-updating-collection-tf4428202s2369.html here under the name 'Hibernate ManyToMany not updating collection'. My original problem was that upon saving an object that has an associated Collection, the Collection

Re: [appfuse-user] Hibernate ManyToMany not updating collection

2007-09-13 Thread syg6
nFactory bean. I haven't made a change in this file in a while and it's worked up until now. But obviously reverting back to the previous Hibernate version has left something that's mucking up the works. Appfuse / Spring / Hibernate experts? Anyone? Thanks, Bob syg6 wrote: &g

Re: [appfuse-user] Hibernate ManyToMany not updating collection

2007-09-13 Thread syg6
I can't find any reference to the 'transactionInterceptor' bean anywhere in appfuse. I searched my whole project and the Maven repository, no trace. (Mind you, I used Windows to search the repository ... nuff said.) Anyone seen this error before? Bob mraible wrote: > > If you &q

Re: [appfuse-user] Hibernate ManyToMany not updating collection

2007-09-12 Thread syg6
> > If you continue reading the thread you linked to - you should find the > solution to your other problem. There's a new dependency you need to > add. > > Matt > > > On 9/12/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> Nothing quite like answering y

Re: [appfuse-user] Hibernate ManyToMany not updating collection

2007-09-12 Thread syg6
Anyone? I am stuck in Maven ... if not hell, limbo. Bob syg6 wrote: > > Hmmm ... According to > http://forum.hibernate.org/viewtopic.php?t=971930&highlight=inversejoincolumns+update > this post it's a Hibernate > http://opensource.atlassian.com/projects/hibernat

Re: [appfuse-user] Hibernate ManyToMany not updating collection

2007-09-12 Thread syg6
Is it as simple as changing the pom.xml line: 3.2.1.ga to 3.2.2.ga and then copying the jar to the Maven repository? I'll give it a try. Bob syg6 wrote: > > I am using Appfuse 2.0, Spring MVC, Hibernate. > > I have two POJOs, Application (as in a job application or for

[appfuse-user] Hibernate ManyToMany not updating collection

2007-09-12 Thread syg6
I am using Appfuse 2.0, Spring MVC, Hibernate. I have two POJOs, Application (as in a job application or form) and Place. I got this example straight out of the JPA Annotations Reference: Application.java @Entity @Table(name = "applications") private Set places; @ManyToMany( targetEntity=com.

Re: [appfuse-user] jQuery + scriptaculous + datePicker = frustration

2007-08-17 Thread syg6
mraible wrote: > > > It seems like it may be appropriate in both places, with the FAQ > linking to the Ajax Reference Guide. As we delve more into Ajax > functionality in a future release, we may have a tutorial that > incorporates this stuff. > > As for style, I'd look at the existing tutoria

Re: [appfuse-user] jQuery + scriptaculous + datePicker = frustration

2007-08-17 Thread syg6
Howdy, mraible wrote: > > >> This is good stuff to know. This might be good information to add to >>the FAQ or Ajax Reference Guide on the wiki. > > I would be more than happy to post my limited knowledge of jQuery. I made an account on the Wiki ... which section do you think is best, Wiki

Re: [appfuse-user] testSave fails using custom property editor

2007-08-17 Thread syg6
applicationplace table more than once. But no, it didn't fix it. I deleted the class, nuked the target directory and rebuilt, and it's still not saving my Places with the Application, still displaying duplicate Applications. Ugh. Bob syg6 wrote: > > Howdy. > > Did both of thos

Re: [appfuse-user] testSave fails using custom property editor

2007-08-16 Thread syg6
ip > you need to add CascadeType.UPDATE to your list. > > Mike. > > On 8/16/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> Upon further reflection it seems I need a ManyToMany, not OneToMany. >> >> I changed my mappings accordingly: >> >>

Re: [appfuse-user] testSave fails using custom property editor

2007-08-16 Thread syg6
ated Places. Bummer. Interestingly, if I omit the fetch=FetchType.EAGER, I get the proper number of Applications in the list page. But the edit page dies, saying that places is null. I got this mapping straight out of the Hibernate reference manual. I'm not sure what I am doing wrong ... Bo

Re: [appfuse-user] testSave fails using custom property editor

2007-08-16 Thread syg6
our application form which stores the > application id. If not there Hibernate will save a new application every > time > 2) Cascade is set to at least "save-update" for the relationship to place. > > Mike. > > > On 8/16/07, syg6 <[EMAIL PROTECTED]> wrote: &

Re: [appfuse-user] testSave fails using custom property editor

2007-08-16 Thread syg6
isted my mapping for Application. I don't have a mapping for Place because I don't need to know which Application a Place is assigned to. Is my mapping somehow wrong? Could that be messing up the save and the list? Thanks, Bob syg6 wrote: > > Hello all. > > I am u

[appfuse-user] testSave fails using custom property editor

2007-08-16 Thread syg6
Hello all. I am using Appfuse M5, Spring MVC + Hibernate. I have an object, Application, that as a 1-many relationship with Place. The Application Pojo looks like this: private Set places; @OneToMany (fetch = FetchType.EAGER) @JoinTable( name="applicationplace", joinColumns = { @J

Re: [appfuse-user] Best practices: Which Spring MVC Form to use?

2007-08-13 Thread syg6
I am neither. :) Bob No sir, I'm not answering to any other thread, Im in the process of learning for myself, Im sorry if you thought that way, I just needed to know if Im doing the right thing... - Original Message ----- From: "syg6" <[EMAIL PROTECTED]> To: Sent: Monda

Re: [appfuse-user] Best practices: Which Spring MVC Form to use?

2007-08-13 Thread syg6
more about those controllers and > hopefully understand each as soon as possible. Again, thanks a lot for the > replies... > > > - Original Message - > From: "syg6" <[EMAIL PROTECTED]> > To: > Sent: Monday, August 13, 2007 4:26 PM > Subject: Re:

Re: [appfuse-user] Best practices: Which Spring MVC Form to use?

2007-08-13 Thread syg6
rmally > involve some sort of bulk operation. > > Mike. > > > On 8/13/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> When you have a simple list you use a Controller and when you are doing >> CRUD >> a SimpleFormController. >> >> But

[appfuse-user] Best practices: Which Spring MVC Form to use?

2007-08-13 Thread syg6
When you have a simple list you use a Controller and when you are doing CRUD a SimpleFormController. But let's say you have an Object Company that has a Collection of Employees. When you CRUD a Company you use a SimpleFormController. But when you want to add an Employee to a Company, you open a p

Re: [appfuse-user] jQuery + scriptaculous + datePicker = frustration

2007-08-09 Thread syg6
ed to include them both. I'd suggest trying to get > things to work in a standalone HTML page (outside of AppFuse). Once > you have that working, turn it into a JSP page and get it working > inside of AppFuse (possibly w/o SiteMesh involved at first). > > Baby steps should help you

[appfuse-user] jQuery + scriptaculous + datePicker = frustration

2007-08-08 Thread syg6
Howdy. Anyone ever successfully used the http://kelvinluck.com/assets/jquery/datePicker/v2/demo/index.html jQuery datePicker with appfuse? Lemme tell you a story: In default.jsp, the page that 'decorates' all of your jsps, you have the following js libraries: prototype.js scriptaculous.js glo

Re: [appfuse-user] AW: AW: AW: Can I use form:select with data bound using referenceDate()

2007-08-07 Thread syg6
#x27;. > > Also worth noting, if you have not done so already, that you will most > likely need to register a custom property editor to handle your inspector > class (assuming the inspector is a class.). > > Mike. > > On 8/6/07, syg6 <[EMAIL PROTECTED]> wrote:

Re: [appfuse-user] AW: AW: AW: Can I use form:select with data bound using referenceDate()

2007-08-06 Thread syg6
a(HttpServletRequest request) throws > Exception { > Map model = new HashMap(); > model.put("countryList", countryManager.getCountries()); > return model; > } > .... > > JSP: > > > > >

Re: [appfuse-user] AW: AW: Can I use form:select with data bound using referenceDate()

2007-08-06 Thread syg6
uot;...path="inspectors"". Maybe the "s" is wrong there... > > > Bye, > > Peter > > PS: The error message corresponds to the "path" attribute, not to one of > the > other attributes (items, itemValue od itemLabel): >>

Re: [appfuse-user] AW: Can I use form:select with data bound using referenceDate()

2007-08-06 Thread syg6
ect" tag with > the > new Spring Taglib. > For more details i would recomend to read > "http://static.springframework.org/spring/docs/2.0.x/reference/mvc.html#mvc- > formtaglib" > > Bye, > > Peter > > -Ursprüngliche Nachricht- > Von: syg6

[appfuse-user] Can I use form:select with data bound using referenceDate()

2007-08-06 Thread syg6
All the posts I see, here on the AppFuse mailing list and all over the net, use the old spring:bind tag. Can I use the Spring 2.0 form:select tag? I have implemented referenceData() in my XxFormController class, and add a Map of Inspectors to the Model. But in the jsp, the following code: give

Re: [appfuse-user] EventListener only firing on User object?

2007-07-31 Thread syg6
I chose the abstract class route, seems to be working. Cheers for the assistance! Bob Michael Horwitz wrote: > > On 7/31/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> Hmmm ... another quick (I hope!) question: >> >> In my onSaveOrUpdate() or onMe

Re: [appfuse-user] EventListener only firing on User object?

2007-07-31 Thread syg6
'instanceof' and cast for every class that has the dateModi and userModi fields? Geez ... I hope not. Perhaps I need an abstract base class that has these methods? Bob syg6 wrote: > > That did the trick! Many thanks! > > Bob > > > Michael Horwitz wrote: >>

Re: [appfuse-user] EventListener only firing on User object?

2007-07-31 Thread syg6
That did the trick! Many thanks! Bob Michael Horwitz wrote: > > On 7/31/07, syg6 <[EMAIL PROTECTED]> wrote: >> >> >> Hello, >> >> I copied into WEB-INF and then deleted the applicationContext-dao.xml >> that >> comes in resources (I &

  1   2   >