Re: [appfuse-user] Exception thrown when a unique field in database is duplicate

2010-05-07 Thread Dusty Pearce
Not really a problem, I was just curious. There are lots of patterns for creating puesdo-puesdo-random-numbers, and it seems like using the database is expensive for that function. It depends on the purpose of the random number and the scale and performance of the app I guess.It's really

Re: [appfuse-user] access css

2010-04-28 Thread Dusty Pearce
A couple questions: How is it deployed on Tomcat? as a war with your own context.xml or just auto-deployed war? Can you paste in the catalina.out output for the relevant request(s)? Anything special going on in web.xml we should know about? What about security.xml? Any differences locally

Re: [appfuse-user] Re: Struts2 Annotations in ear file don't work

2010-04-10 Thread Dusty Pearce
cess(Http11Processor.java:829) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598) > at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:637) > >

Re: [appfuse-user] Re: Struts 2 convention plugin

2010-03-24 Thread Dusty Pearce
It's not that Appfuse prevents the implementation, it's that Appfuse pre-dates the Convention plugin and its implementation patterns established a while ago. There is no reason why Appfuse couldn't do what you want it to, but there would be a number of changes that would have to happen to the e

Re: [appfuse-user] RE: applicationContext.xml not found

2010-03-24 Thread Dusty Pearce
It's not dependency injection if you are looking up and grabbing a service in a factory. Nothing is being injected. The beauty of DI is too vast to describe in email, but it is a more declarative model. You declare a service with an interface in the DI container. You then declare that you wa

Re: [appfuse-user] Re: Struts 2 convention plugin

2010-03-22 Thread Dusty Pearce
Ok, you are right. It doesn't work out of the box after the archetype build. The fix seems simple, but is likely to end up being more complex as it might have side effects. The issue is in struts.xml. This tells struts to only look at URL's with a .html extension. Really want Strut

Re: [appfuse-user] See you at Java Symposium!

2010-03-15 Thread Dusty Pearce
See you at Java Symposium. Poker, March Madness, oh and Java. See you there! -D - To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net For additional commands, e-mail: users-h...@appfuse.dev.java.net

[appfuse-user] Create GenericDaoHibernate with no XML

2008-12-21 Thread dusty
Does anyone have experience creating a GenericDaoHibernate without using XML or subclassing and just using Spring annotations? So I think I want to be able to do something like: private GenericDao personDao; @Autowired setPersonDao(GenericDao personDao){ this.personDao = personDao; } You c

Re: [appfuse-user] How to create parent objects?

2008-03-31 Thread dusty
Yeah Derek, we are not sure what a JE is, and transaction can mean a number of things. Can you post your model code and describe what you are trying to do in a little more detail? Derek Broughton-2 wrote: > > I am s frustrated. > > I have an accounting app, where accounts have JEs, and

Re: [appfuse-user] adding manager class to UserAction.java

2008-03-31 Thread dusty
My guess is that you have entered the correct setter method in the UserAction.java but at runtime the original org.appfuseUserAction code is being run. This has has to do with how you have your project setup. How are you getting UserAction.java into your projects source code? mvn appfuse:fu

Re: [appfuse-user] Displaying list (with DisplayTag) starting at last page

2008-03-31 Thread dusty
I think I get what you are saying. I don't think there is an easy way to do that in displayTag, but you could do the following instead: * Remove DisplayTags paging links and replace with your own. * Determine what years you want to display and then create a link for each year that will filter

Re: [appfuse-user] Error deploying in Jetty

2008-03-22 Thread dusty
I think this error means that spring cannot find the correct implementation for your LookupManager interface. What I would do is go look at the applicationContext.xml and verify that the class you have specified there implements the correct interface. This has happened to me in the past when I

Re: Re: [appfuse-user] Executing Named query

2008-03-22 Thread dusty
+1 to Rob. You are absolutely right on the pattern you describe. One of the main reasons is that you want to have repeated patterns throughout your code even when your code becomes more complex. When I am first starting, I will usually create a model and an Action and use a GenericManager, bu

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-18 Thread dusty
Changes to your user object shouldn't get persisted until the session flushes at the end of the transaction. But things get fuzzy here for me since I am not really an expert on Hibernate/Spring transactions. You call UserManager.save(user) right after the code below, right? So somehow the tra

Re: [appfuse-user] Gracefully removing Maven from Appfuse-light

2008-02-18 Thread dusty
rrc7cz wrote: > > For various policy reasons, I can't have any trace of Maven in my project. > I > was wondering if there are gotchas I should be aware of before I start > removing it from the project. Any tips on making it easier? Thanks, > > Rob > > Hmmm. Well you are going to want to do

Re: [appfuse-user] DropDown and Checkbox from Appfuse:gen

2008-02-18 Thread dusty
There is no provision for creating a foreign key (object relationship) based drop-down in appfuse:gen. So if you have a OneToMany relationship in your model that you ran appfuse:gen against, then you will need to create your own drop-down based on the models children. Its not too terrible. In y

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-16 Thread dusty
Rob, Its probably that time where you zip up the relevant code and ship it off to me. [EMAIL PROTECTED] It will be easier if I just take a look, if you'd like me to. -Dusty Rob Hills wrote: > > Hi Dusty, > > dusty wrote: >> #1 Can you show me your cancel button?

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-15 Thread dusty
if(child.getId() != null){ childManager.remove(child.getId()) //or something like that } parent.getChildren().remove(index); return SUCCESS; } Rob Hills wrote: > > Hi Dusty, > > On 14 Nov 2007 at 7:44, dusty wrote: > >> That is the beauty

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-15 Thread dusty
At some point I will try to create some pretty wiki tutorial write ups on the Appfuse siite for this pattern and some other goodies I use regularly. -D Rob Hills wrote: > > Hi All, > > I have an AppFuse 2 + Hibernate + Struts application that includes two > model classes with a one -> many ent

Re: [appfuse-user] Maven2 Clover Plugin? Anyone have a good configuration?

2007-11-14 Thread dusty
: com.cenqua.clover clover 2.0.1 dusty wrote: > > Hello, > > I have not been able to get the maven2 clover plugin from Atlassian to > work with my basic struts archetype. I think I have it setup right but I > get weird errors like: > > /

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-14 Thread dusty
Rob Hills wrote: > > Hi Dusty, > > On 13 Nov 2007 at 21:02, dusty wrote: > >> So it doesn't happen that often, but it just so happens I wrote what you >> described today! ;-) >> >> You create a table with each row representing your child objects. E

Re: [appfuse-user] AppFuse 2 + Hibernate + Struts - Master-detail form - update master and detail data in one transaction

2007-11-13 Thread dusty
So it doesn't happen that often, but it just so happens I wrote what you described today! ;-) You create a table with each row representing your child objects. Each html element should have the name parent.child[%{row.index}].childpropertyname. The row part comes from Next you need to create

Re: [appfuse-user] Duplicate Users in List

2007-11-13 Thread dusty
You can't cast a List to a Set but you can create a Set from a List. List myList = manager.getAll(); Set uniqueList = new HashSet(myList); No iteration or casting needed! ;-) George.Francis wrote: > > Doing this cast causes the following exception to be thrown from Manage > Users: > > org.

Re: [appfuse-user] validator

2007-11-13 Thread dusty
Its definitely a Struts bug, but the work around of creating your own template to override their broken one could be an Appfuse tip/tutorial! -Dusty mraible wrote: > > Is this a Struts 2 bug or an AppFuse one? If the template is in > Struts, you should probably file an issue in Str

Re: [appfuse-user] AppFuse 2.0 + Hibernate + Struts 2 - Error looking up property "id"

2007-10-21 Thread dusty
not the Product class you think you have. Please post your DAO, Manager and Action code so we can see why you have Strings instead of Products. -Dusty Rob Hills wrote: > > Hi All, > > I have a weird error on a Listing JSP that's had me stumped for several > hours. > &g

[appfuse-user] Maven2 Clover Plugin? Anyone have a good configuration?

2007-10-13 Thread dusty
Hello, I have not been able to get the maven2 clover plugin from Atlassian to work with my basic struts archetype. I think I have it setup right but I get weird errors like: /home/dusty/code/bioguide/target/clover/src/com/thebioguide/webapp/action/ProviderAction.java:64:0::0

Re: [appfuse-user] Problem with CLEAN_INSERT

2007-10-01 Thread dusty
I have run into this problem and the ordering the data in sample-data.xml definitely works on the insert. My problem is that the tables can't be truncated or deleted because you can't control the order when CLEAN_INSERT runs. So I usually write a script that truncates/deletes the table data and

[appfuse-user] Appfuse coverage on theserverside.com

2007-10-01 Thread dusty
trying to imitate it. Anyways, Appfuse 2.0 rocks! Thanks Matt and the rest of the team! -Dusty -- View this message in context: http://www.nabble.com/Appfuse-coverage-on-theserverside.com-tf4549079s2369.html#a12981514 Sent from the AppFuse - User mailing list archive at Nabble.com

Re: [appfuse-user] Redirect Action doesn't like in Struts 2 archetype

2007-09-09 Thread dusty
The solution from Mike works. My variables in struts.xml that were getting replaced were ${provider.id} and ${id}. It was weird because something like ${contact.provider.id} would not get replaced. How can I look at what is replaced with filter=true in the process-resources goal? -D Mike Hor

Re: [appfuse-user] struts combo box

2007-07-03 Thread dusty
getClubName() { > return clubName; > } > > > From the above codings, what did I miss out ? > > p/s ** I am using 2.0-M5 struts basic > > > > > > > > > > > dusty wrote: >> >> It depends on how you want

Re: [appfuse-user] Command object null

2007-06-29 Thread dusty
etCommandClass(Requestdao.class); > setCommandName("requestdao"); > } > > protected Object formBackingObject(HttpServletRequest request) > throws Exception { > String _id = request.getParameter("_id"); > > if (!String

[appfuse-user] RE: Many to many relationship with data

2007-06-29 Thread dusty
te the relationships when you repost. I suppose you could use the Session but I just think thats wrong (opinion). Aled Rhys Jones wrote: > > Thanks for your answer Dusty. > I have a table that has company data, and one that has association data > (not > the relationship, but as

Re: [appfuse-user] Command object null

2007-06-28 Thread dusty
nd object is my model object. > I am also able to save updated value for the entries generated by maven... > > > > > > dusty wrote: >> >> A couple of questions to help me understand your problem: >> >> 1) Are you using Struts? What web framework a

Re: [appfuse-user] Add ManyToOne relationship between user and a new pojo

2007-06-28 Thread dusty
I have talked about this topic a few times. More like rambled, but basically its basically about using Composition and making the Appfuse User object a property of a wrapper you create to include your relationships and additional properties. I have used that model on a recent project and it work

Re: [appfuse-user] Many to many relationship with data

2007-06-28 Thread dusty
So you have an association class with some properties like "type of relationship", "time of union", etc. You want users to edit these properties or rewire the relationships or both? If its just modifying the "modifiers" of the relationship then I believe you can treat the association object as a

Re: [appfuse-user] Sitemesh Ugly decorator "flash"

2007-06-28 Thread dusty
Do you have an tag? Are you using some of the built in dojo objects on this page? I have seen this flash occur with an iframe using dojo. -D Daniel.Rodriguez wrote: > > Some news : > > Just got a huuuge project aproved by using Appfuse (and a Appfuse-based > Stripes project). Matt & everyo

Re: [appfuse-user] struts combo box

2007-06-28 Thread dusty
It depends on how you want to implement this. Presumably you want to assign a user to a single club (ManyToOne). If a user could be in many clubs then it would be a ManyToMany. But lets stick with ManyToOne and/or the inverse side Club to User OneToMany. In appfuse2 you are insulated from the

Re: [appfuse-user] problem in save()

2007-06-28 Thread dusty
You have a common interceptor problem when using relationships. The net net is that you need to modify your inteceptor stack so that near the top you have an order like params prepare params That is the first part of the solution.The second part is you need to implement Preparable on yo

Re: [appfuse-user] Command object null

2007-06-28 Thread dusty
A couple of questions to help me understand your problem: 1) Are you using Struts? What web framework are you using. 2) Have you customized your jsp form or the action the form posts to? Also, help me understand your problem but confirming my understanding. You have a model object for which yo

Re: [appfuse-user] Weird Exception when running appfuse:gen in web

2007-06-08 Thread dusty
Thanks Matt. I am trying to get used to Maven. I fear change. -D mraible wrote: > > Have you run "mvn install" on the core module? > > On 6/7/07, dusty <[EMAIL PROTECTED]> wrote: >> >> I have a modular struts application using M5. I have ported ov

[appfuse-user] Weird Exception when running appfuse:gen in web

2007-06-07 Thread dusty
I have a modular struts application using M5. I have ported over my model classes and everything was working well in core. I added my my classes to hibernate.cfg.xml and the hibernate plugin happiliy generates my tables. There are quite a few relationships between the POJOs. I can run mvn app

Re: [appfuse-user] Extending User Class Problem

2007-05-12 Thread dusty
Did you ever get the answer to this question? I have seen in other threads this issue about querying the users. Apparently its a Hibernate issue and its joining the user's roles and returning you the cross-join product. The way it was suggested to fix this is to put your Users (or Students) int

Re: [appfuse-user] duplicate resource files after mvn war:inplace

2007-04-21 Thread dusty
Related to this. I am using the Struts2 Modular archetype. I get a struts.xml in WEB-INF/classes which I edit to add my actions. Along the way I wanted to change an appfuse action (MainMenu) to use an action class I created rather than the pass-through ActionSupport to the JSP page. But

Re: [appfuse-user] Cache error when running Struts unit tests

2007-02-28 Thread dusty
uld be fixed in the next release of EhCache. We have an open > issue for it in JIRA and more details about it are available in > EhCache's issue tracker. > > Matt > > On 2/28/07, dusty <[EMAIL PROTECTED]> wrote: >> >> I have seen references to this bug, bu

Re: [appfuse-user] Calendar component and Date field for Appfuse 2.0

2007-02-28 Thread dusty
I am trying to get more involved. I have been quietly playing with these things for a long time. See you in Vegas? -D mraible wrote: > > Don't be sorry Dusty - this is great information! Now if only we could > figure out a way to get you to ramble on on the mailing list

[appfuse-user] Cache error when running Struts unit tests

2007-02-28 Thread dusty
r.shutdown(CacheManager.java:702) at net.sf.ehcache.CacheManager$1.run(CacheManager.java:505) [INFO] [dbunit:operation {execution: test}] [INFO] [war:war] [INFO] Exploding webapp... [INFO] Assembling webapp appfuse-struts in /home/dusty/lib/appfuse-2.0/web/struts/target/appfuse-struts-2.0-m4-SNAPSHOT --

Re: [appfuse-user] Calendar component and Date field for Appfuse 2.0

2007-02-28 Thread dusty
have a habit of talking too much. -D Fan wrote: > > In fact my understanding in Struts & dojo is vey minimal, I am at a lost > junction now :P > > > dusty wrote: >> >> No problem. Its not a matter of checking. Its an issue. So to fix this >> issue

Re: [appfuse-user] Calendar component and Date field for Appfuse 2.0

2007-02-27 Thread dusty
just adapt the code to work with the Struts action mapping. Do you think you can make that adaptation? Fan wrote: > > Dusty, could you please tell me how to check the HTML extension issue ? I > am using Appfuse 2.0 with struts2 web framework > > > > dusty wrote: &g

Re: [appfuse-user] Calendar component and Date field for Appfuse 2.0

2007-02-26 Thread dusty
Strangely enough Fan, someone kind of hijacked this thread with an issue that could very well help you. Random and strange. The issue is that Appfuse ships with .html mapped to be the extension for struts actions. Dojo requires an actual .html file be served up and Struts intercepts the request

Re: [appfuse-user] JfreeChart - Struts2 - Appfuse detailed problem report -- I am a fool

2007-02-26 Thread dusty
PLEASE DO! You can post it here or you can create a page on the Struts2 wiki here: http://cwiki.apache.org/confluence/display/S2WIKI/Home You can just create your own account to post to this wiki. Both would be great. -Dusty VJ22 wrote: > > Thanks Dusty > > I finally get this

Re: [appfuse-user] JfreeChart - Struts2 - Appfuse detailed problem report

2007-02-25 Thread dusty
not able to > retrieve the chart of the value stackthat is why the error > > TksVJ > > > dusty wrote: >> >> Here are some JFreeChart results used in WebWork (Struts2's parent). >> >> http://www.opensymphony.com/webwork/wikidocs/JFr

Re: [appfuse-user] JfreeChart - Struts2 - Appfuse detailed problem report

2007-02-24 Thread dusty
Here are some JFreeChart results used in WebWork (Struts2's parent). http://www.opensymphony.com/webwork/wikidocs/JFreeChartResult.html It looks like in Struts they have formalized the JFreeChart result type: http://struts.apache.org/2.x/struts2-plugins/struts2-jfreechart-plugin/apidocs/index.ht

Re: [appfuse-user] Extending AppFuse User

2007-02-21 Thread dusty
You may try Composition rather than Inheritance. You can make a User a property of your other People objects. So you have a Person root class that you can extend (if you have a tree-like domain need) and then you encapsulate the User property as that Person's userAccount property. I think I