[appfuse-user] TSSJS - Friends of Appfuse!

2008-03-25 Thread Dustin Pearce
Hey all. Any of you going to TSSJS? Want to get a Friends of Appfuse dinner together? I think it would be fun and productive to meet the other Appfusians out there. -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

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

2008-03-31 Thread Dustin Pearce
I think you are both right on the button. When you need to manipulate a series of objects and you want those changes to be in a single transaction, then a Manager is your friend. At one point I found that I kept writing Manager methods that are just reflections of my DAO methods. I foun

Re: [appfuse-user] update user

2008-04-01 Thread Dustin Pearce
When you want to modify just a "part" of an object, you need to be sure that you load the model from the database *before* you apply the parameters posted from your web form. What is happening is that your form is creating a *new* user instance and populating the fields from your small for

Re: [appfuse-user] Easy DAO with parancoe framework

2008-04-02 Thread Dustin Pearce
Le! Very Cool! I am for sure taking this for a test drive later today. Have you benchmarked the performance compared to using the current Appfuse GenericDao and your own implementation for search methods? -D On Apr 1, 2008, at 8:33 PM, Le Anh Tuan wrote: parancoe

Re: [appfuse-user] [apffuse-user]Core

2008-04-04 Thread Dustin Pearce
Oliver, I think you need to be a little more specific about what you have done so far and the errors you are getting back. I think you are referring to a modular archetype, where there is a core and web module. The purpose of a modular archetype is to create a service layer (core) indep

Re: [appfuse-user] Select not getting value from bean

2008-04-04 Thread Dustin Pearce
Can you try dropping the key and value attributes of the list and just replace with name="customer.title" ? Also can you post the HTML source of the generated SELECT+OPTIONS? -D On Apr 4, 2008, at 1:06 AM, JC Oosthuizen wrote: Hi All, I have a POJO that have a enum field as follows: privat

Re: [appfuse-user] Struts2 "s:if" tag comparisons and OGNL

2008-04-07 Thread Dustin Pearce
I think it is an issue where you think you need to pass a string to disabled, presumably because you expect to see a <. disabled="true"/> out in the HTML. Well it turns out that the disabled switch expects a boolean switch rather than pass through text. So that helps a little: Bu

[appfuse-user] Storing User Preferences Pattern

2008-04-08 Thread Dustin Pearce
Hello, I am having a mental block. I want to create a simple list that tracks the last 10 records the user visited. I am using Struts2 and I have implemented an interceptor to capture the id of the object when the user goes to show(). At this point, I am not sure how I want to, or the b

Re: [appfuse-user] Help needed for Many to Many relation

2008-04-08 Thread Dustin Pearce
The mapping you have there is pretty exotic. I think I would use that pattern when I needed to store additional information about each association. It doesn't look that way in the code below, but perhaps in the future you want to distinguish users that belong to a project by a role. In t

Re: [appfuse-user] Storing User Preferences Pattern

2008-04-08 Thread Dustin Pearce
, Peter 2008/4/8, Dustin Pearce <[EMAIL PROTECTED]>: Hello, I am having a mental block. I want to create a simple list that tracks the last 10 records the user visited. I am using Struts2 and I have implemented an interceptor to capture the id of the object when the user goes to sho

Re: [appfuse-user] Storing User Preferences Pattern

2008-04-08 Thread Dustin Pearce
is destroyed... Bye, Peter 2008/4/8, Dustin Pearce <[EMAIL PROTECTED]>: Ok, now that is a pattern I considered, but I don't have experience with the HttpSessionListener. Has it worked well for you? Is it flakey? I think I had a bad experience some time ago with session lis

Re: [appfuse-user] CSS Framework and side-by-side fields

2008-04-09 Thread Dustin Pearce
You may want to look at customizing the .ftl templates Struts uses for its jsp tags. It is a good tool to have, since you can create your own themes or components that generate the HTML and Javascript you need. For example, I am currently hand entering the JSCalendar code for each of my d

Re: [appfuse-user] Databasepooling - prevent timeout recommendations

2008-04-09 Thread Dustin Pearce
I have used autoReconnect=true in my connection string. Here is an interesting article about enabling auto reconnect for MySQL 5+. http://blog.taragana.com/index.php/archive/how-to-enable-disable-auto-reconnect-in-mysql/ There is also some discussion about making sure that autoCommit is tr

Re: [appfuse-user] How to try a more recent version of HtmlUnit (Dojo errors)

2008-04-09 Thread Dustin Pearce
I vaguely remember when I was in Vegas someone at a podium talking about how you can unit test Dojo from the command line vs. other JS frameworks.. So, if that is true, then perhaps you should be looking into the Dojo unit test(s) and looking to use their setup for pages that are Dojo

Re: [appfuse-user] ActionContext.getContext NPE when upgrading to Struts 2.1

2008-04-10 Thread Dustin Pearce
I started this process, but I have not taken it all the way. I think the main issue is that with Struts 2.1.1 and Xwork 2.1.1 we have an opportunity to change the Struts actions to be less Http dependent. This is a good thing. Struts gives you access to the Request and Response through i

Re: [appfuse-user] ActionContext.getContext NPE when upgrading to Struts 2.1

2008-04-10 Thread Dustin Pearce
find property [operation] I also noticed that in the new struts-default.xml for struts 2.1.1 has been added a new interceptor. This looks like the cause of my problem but removing it does not solve it. Has anybody run into the same problem? Thanks again, Oscar On Thu, Apr 10, 2008 at

Re: [appfuse-user] ActionContext.getContext NPE when upgrading to Struts 2.1

2008-04-16 Thread Dustin Pearce
e happy to create a wiki entry on how to integrate struts 2.1 + fit + appfuse if somebody is interested. Best regards, Oscar On Fri, Apr 11, 2008 at 3:48 AM, Matt Raible <[EMAIL PROTECTED]> wrote: On Thu, Apr 10, 2008 at 12:21 PM, Dustin Pearce <[EMAIL PROTECTED] > wrote: >

Re: [appfuse-user] Netbeans BUILD FAILURE

2008-04-21 Thread Dustin Pearce
I use IDEA and use command line for things like jetty:run and sometimes for test. I don't use the Maven plugin other than it recognizing the maven project structure. I use the IDE for running certain JUnit tests I want to debug or I am running alot to solve a problem. I have heard not v

Re: [appfuse-user] CRUD with Non-autogenerated primary keys

2008-04-22 Thread Dustin Pearce
I think you are going to have to modify the appfuse iBatis code to do what you want. In your position I would refactor the save() method and extract the insert and update up to the interface so you can call them directly if you want. You can leave save() and have it call update or insert

Re: [appfuse-user] How to add html values in sample data

2008-04-22 Thread Dustin Pearce
I recently implemented a comments section that used Textile formatting like in confluence. In fact it uses the ConfluenceDialect. I really liked how it turned out. Of course there is some end user training about wiki/textile markup rather than HTML. I need to look at Confluence and see

Re: [appfuse-user] What is best for Ajaxing web app?

2008-04-28 Thread Dustin Pearce
I hear good things about JQuery from people who are supposed to know things like that. Ajaxing a web app is a rather vague concept. You may be making the things on your page do dynamic things like fly around and disappear, or you may be making the data in your page do dynamic things; like

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Dustin Pearce
I would not be that afraid of the collection. There are things you can do to try and mitigate the problems. For a group+members I think I would look to EAGER fetch, rather than LAZY. That will get you the collection in a single query rather than n+1 query for each members look up. I do

Re: [appfuse-user] How to align multi Struts 2 tags on the same line?

2008-04-29 Thread Dustin Pearce
Here are links to two relevant tutorials. The first is how to create a UI Component, which is what I think you need. The second is more advanced on how to create your own theme http://www.vitarara.org/cms/struts_2_cookbook/creating_a_ui_component http://www.vitarara.org/cms/struts_2_co

Re: [appfuse-user] Invoke via command line

2008-04-30 Thread Dustin Pearce
Why do you need to use ant to run your task? Is there configuration that Ant generates right before runtime? I think you can achieve what you want with a main() method and a shell script. You could even schedule it as a cron job. *batch file & task scheduler if your windows At work we

Re: [appfuse-user] Struts 2 Example Issues in Action Class?

2008-05-01 Thread Dustin Pearce
Ryan, if you want you can post your model, action, relevant struts.xml section and jsp for this and we could see if we could figure it out. -D On May 1, 2008, at 10:15 AM, Ryan Withers wrote: Matt, Yes this should help, thanks for your patience. As you might know It's not exactly the

Re: [appfuse-user] How to align multi Struts 2 tags on the same line?

2008-05-01 Thread Dustin Pearce
I am getting beyond my area of comfort, but a CSS line like: form#productSearchForm td {border:0px solid #fff} or form#productSearchForm table.table td {} -D On May 1, 2008, at 9:04 PM, George Wei wrote: Thanks for your recommendations, these articles are really interes

Re: [appfuse-user] First steps with AppFuse, fatal error

2008-05-04 Thread Dustin Pearce
Have you edited your pom.xml at all? It appears that there is trouble loading up your Spring libraries. Were there any problems downloading the dependent libraries when you started? -D On May 4, 2008, at 6:39 PM, Marcelo de Moraes Serpa wrote: mvn archetype:create -DarchetypeGroupId=org.ap

Re: [appfuse-user] Disable GZip by default?

2008-05-08 Thread dustin pearce
Inconceivable!  Ever heard of Plato, Aristotle, Socrates?...Morons.   We should include the filter and disable it.  We already do that with OSIV.  -Dusty     - Original Message From: Nathan Anderson <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Wednesday, May 7, 2008 3:10:56

Re: [appfuse-user] AspectJ 1.6 issues, when is appfuse 2.02 coming out?

2008-05-08 Thread dustin pearce
svn update mvn install if you were any kind of man at all.. -D - Original Message From: mschipperheyn <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Thursday, May 8, 2008 1:37:46 AM Subject: Re: [appfuse-user] AspectJ 1.6 issues, when is appfuse 2.02 coming out? This is

Re: [appfuse-user] Appfuse 2.0.1 and Oracle.

2008-05-09 Thread Dustin Pearce
Can you run that again with mvn -e test -Poracle? You connected to oracle using the profile, correct? We need to see the actual stacktrace for the Oracle error. -D On May 9, 2008, at 4:53 PM, MHL wrote: Hi all. When I switch the database from Mysql to Oracle. it gives me errors as below

[appfuse-user] DisplayTag, Struts2, OGNL & You

2008-05-10 Thread Dustin Pearce
So, we have discussed this topic in the past, but I wanted to bring it up again because I am still not sure why. When I use Appfuse 2.x and Struts2, I can just name my displayTag table to a getter on my Action and somehow that collection (on the OGNL value stack) finds its way to displa

Re: [appfuse-user] DisplayTag, Struts2, OGNL & Yo

2008-05-10 Thread Dustin Pearce
t, May 10, 2008 at 8:05 PM, Dustin Pearce <[EMAIL PROTECTED] > wrote: So, we have discussed this topic in the past, but I wanted to bring it up again because I am still not sure why. When I use Appfuse 2.x and Struts2, I can just name my displayTag table to a getter on my Action a

Re: [appfuse-user] Appfuse 2.0.1 and Oracle.

2008-05-12 Thread Dustin Pearce
Have you set this up in the pom.xml? YOUR_SCHEMA_NAME -D On May 12, 2008, at 10:07 AM, MHL wrote: Thanks for the reply. here is the stacktrace: + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] -

Re: [appfuse-user] Updating a related entity in Struts 2 throws HibernateException

2008-05-15 Thread Dustin Pearce
I think this is a situation where you want to use a custom TypeConverter. Struts does not know how to convert your String id property into a User object. Create a custom type converter for com.yourapp.model.User (or org.appfuse.model.User) that looks up the User in the db based on String

Re: [appfuse-user] Struts 2 Action w/ Multiple Methods and Hibernate Session in Spring

2008-05-15 Thread Dustin Pearce
So Spring is configured to automagically create and handle transactions for your managers with the following code in appfuse's applicationContext-service.xml: ... pointcut="execution(* *..service.*Manager.*(..))" order="2"/> ...

Re: [appfuse-user] Problem with SortedSet in OneToMany

2008-05-20 Thread Dustin Pearce
This is a Groovy model and Controller? Is this a grails app? -D On May 20, 2008, at 4:38 AM, Julien C. wrote: Hi, I have a class Annonce with an unidirectional one to many relation with class media. I use a SortedSet for this. It works when there is only 1 media but if I had an other media

Re: [appfuse-user] AppFuse to production

2008-05-20 Thread Dustin Pearce
I believe I understand your question. I have an application where we develop on MySQL but we run Oracle in production. When we build for production we want to replace the MySQL jdbc settings with the Oracle settings. Also, we don't want to run hibernate3 or dbunit or it would wipe out ou

Re: [appfuse-user] Drop-Down List

2008-06-02 Thread Dustin Pearce
That approach is fine if you are working with a single page and a single drop-down, but when you need to share a drop-down definition several times it starts crumble a bit. What usually do for all of my applications is I first add a DataDictionary POJO with the purpose of creating all the

Re: [appfuse-user] Optimistic Locking Failure Handling

2008-06-05 Thread Dustin Pearce
So, in your use case, the original user sign-up form is still up in the browser window when the user goes to their email, clicks the link (launching a new window) -- updating the user record and then the user returns to the form that is open, makes a change and submits? That would cause a

Re: [appfuse-user] Optimistic Locking Failure Handling

2008-06-05 Thread Dustin Pearce
I understand that you want to stay flexible and make sure you don't turn off your users. So the user completes the registration form (including email) and posts to the server. The registration is complete and the user can login. Your server sends the verification email: You can have s

Re: [appfuse-user] org.dbunit.dataset.NoSuchColumnException pain

2008-06-10 Thread Dustin Pearce
Do you have the schema set in the dbunit properties in your pom.xml? -D On Jun 9, 2008, at 5:08 PM, Daniele De Francesco wrote: Hi all, it looks like, I'm definitely having troubles w dbunit CLEAN_INSERT operation, because mvn hibernate3:hbm2ddl -Poracle runs successfully. The problem is in

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

2008-06-12 Thread Dustin Pearce
I have a couple questions. You don't have a @ManyToOne annotation on the InspectionPackage side. Is that a JPA convention/default that it will just understand what you want there? I have never tried that before. So you have a manager that is returning a Package and then you try to itera

Re: [appfuse-user] cookie related

2008-07-25 Thread Dustin Pearce
One is for accessing the cookie from the client-side (Javascript) and the other is for accessing the cookie from the server-side (RequestUtil.java). -D On Jul 24, 2008, at 7:10 AM, nani2ratna wrote: Hi, When i go through the code, i saw the cookie implementation in javascript global.j

Re: [appfuse-user] cookie related

2008-07-25 Thread Dustin Pearce
Which is used for what? Remember me? -D On Jul 25, 2008, at 10:55 AM, nani2ratna wrote: Hi , I know one from javascript side and one from java side. But u want to know which is using in appfuse aplication. Do you have any idea regading this. Thanks and Regards Ratna dusty wrote: One i

Re: [appfuse-user] cookie related

2008-07-25 Thread Dustin Pearce
I see. Appfuse is a "project kick start". As such it includes a number of utilities that you are likely to need as you develop your web application. The cookie implementations (client and server side) are examples of these utilities. You can remove this implementation if you don't like

Re: [appfuse-user] Webwork validation interger

2008-08-04 Thread Dustin Pearce
Struts2/Webwork includes an interceptor in the default stack called conversionError. This interceptor will throw a validation error if it fails to convert one of the web request values to your action setters. When a validation error like this is thrown then Struts2 will return the input r

Re: [appfuse-user] Problems trying to deploy AppFuse on JBoss

2008-08-04 Thread Dustin Pearce
It smells like there is a different version of Hibernate deployed with your JBoss installation that is being used rather than the Appfuse libraries. I am not sure how that happens, but I know JBoss and Hibernate are really close friends and could be packaged together. Do you get a similar

Re: [appfuse-user] Oracle Sequences / Learning curve / Project Structure

2008-08-04 Thread Dustin Pearce
I like your workaround. I have a similar setup where I develop locally in MySQL and then need to deploy to Oracle. In my case I have existing records and so I want my fancy new Appfuse records to start somewhere out in the 5 range. Sadly the Hibernate Annotation does not support initi

Re: [appfuse-user] 1.9.4 upgrade

2008-08-04 Thread Dustin Pearce
Now lets not get sexist. Guys, gals? There has to be one woman using Appfuse. Right? Anyways. I have not taken an app through the upgrade path from 1.9 to 2.0. I think I practiced and tried it when 2.0 was being developed. But I can't attest to how easy or successful the upgrade is.

Re: [appfuse-user] Oracle Sequences / Learning curve / Project Structure

2008-08-04 Thread Dustin Pearce
called once for every Entity. The constant 'TABLE' is defined in the super class PersistentIdentifierGenerator. /Mike Dustin Pearce schrieb: I like your workaround. I have a similar setup where I develop locally in MySQL and then need to deploy to Oracle. In my case I have exis

Re: [appfuse-user] Experience with Struts2 Annotations?

2008-08-08 Thread Dustin Pearce
I really like the work they have done on the Convention plugin. This is a comprehensive set of configuration annotations that replaces CodeBehind/ZeroConfig. It is still in the sandbox I think, although I haven't checked in a little while. Something I really like about it is the @Action

Re: [appfuse-user] oracle database profile:org.hibernate.exception.JDBCConnectionException

2008-08-19 Thread Dustin Pearce
Do you have more than one profile active by default? When you run maven do you run: mvn -Poracle test? -D On Aug 19, 2008, at 1:18 AM, WalterScott wrote: Mohammad Irfan wrote: Have you turn on the database or you have firewall on your computer? No, I don`t have firewall. -- View this

Re: [appfuse-user] Where/How to write business logic in AppFuse

2008-08-19 Thread Dustin Pearce
Many people use the Manager pattern to write their business logic. This acts a service layer that can be used by your Struts actions, but could also be called by other interfaces (batch processes, web service, etc). In Appfuse these Manager classes are used to create transactions across m

Re: [appfuse-user] Convert Timestamp with DateConverter

2008-08-19 Thread Dustin Pearce
I use a slightly modified DateConverter for Dates and a CalendarConverter for DateTimes. I modified it so I could accept multiple input formats but always print out the same format. public class DateConverter extends DefaultTypeConverter { Log log = LogFactory.getLog(DateConverter.class)

Re: [appfuse-user] oracle database profile:org.hibernate.exception.JDBCConnectionException

2008-08-19 Thread Dustin Pearce
You must use -Poracle when you want it to connect to Oracle. So you need to do: mvn -Pprod appfuse:gen-model On Aug 19, 2008, at 1:11 PM, WalterScott wrote: dusty wrote: When you run maven do you run: mvn -Poracle test? -D When I run mvn -Poracle test, I get following: [INFO] Sca

Re: [appfuse-user] oracle database profile:org.hibernate.exception.JDBCConnectionException

2008-08-20 Thread Dustin Pearce
I am not sure. Have you tried it without a slash in the table name? That seems like your asking for trouble. I'd still with regular alpha characters. I ran into something before when I had a domain object named Comment and that is a reserves word in Oracle. Sent from my iPhone On Aug 20, 20

Re: [appfuse-user] Securing applications/modules in Appfuse

2008-08-21 Thread Dustin Pearce
Are you saying that customers will buy your web based application, install it locally and then use it from there? Like Jira? If that is the case then you will want to use some form of compiled licensing mechanism rather than a Spring Security config file. You are correct. A customer coul

Re: [appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-14 Thread Dustin Pearce
Rob, You can add a parameter in your Form action called "next" or something like that. Then in your link to the Form, you can include next=listOne or next=listTwo. Then in the success and cancel in the action config do .. ${next}.action or ${action} Just be sure you have both the

Re: [appfuse-user] struts 2, wich one is the best Ajax framework to go?

2008-11-09 Thread Dustin Pearce
Dojo in struts2 is not a good idea. Go with Jquery. On Nov 8, 2008, at 8:18 PM, mmaia <[EMAIL PROTECTED]> wrote: Hi, I´ve just started studying ajax for a couple of weeks now. Had some problems with dojo at first then I tryed a bit with DWR, scriptacolous and prototype. I never developed a r

Re: [appfuse-user] (to Experts) Reverse Engineering - AppFuse -> Best Option

2008-12-22 Thread DUSTIN PEARCE
Seems like a reasonable approach to me. I think it depends on how complex the Domain Model is. I have not used the class generator from database you mentioned, but I wonder how well it does at modeling relationships. You probably have to go in after the fact and code in all your parent-c

Re: [appfuse-user] Missing JPA Type Conversion

2008-12-22 Thread DUSTIN PEARCE
I ran up against this once before and I don't remember exactly why. I think it was a problem trying to port my data from MySQL to Oracle. Anyways what I did and have kept around is extend the MySQL dialect and then register this "fixed" copy. Its real easy. public class MySQL5InnoDBDiale

Re: [appfuse-user] Reverse Engineering - AppFuse -> Best Option

2008-12-23 Thread DUSTIN PEARCE
Change the project name in pom.xml and the webapp.name in ApplicationResources.properties. On Dec 23, 2008, at 6:16 AM, Ice-Man wrote: Oh, tnk u so much for your instructions. They've been very usefull; take it for grant. But, plz I'd like a very simple tip: so kind of u :tell me the su

Re: [appfuse-user] passing values between Actions - any best practice?

2008-12-23 Thread DUSTIN PEARCE
Since you are using Struts2, I think the best method is Interceptors. For inbound requests, you would put your decrypting interceptor BEFORE your parameters interceptor and it should work like a charm. For encrypting links and hidden field values, I think that is two different issues. Fo

Re: [appfuse-user] Appfuse2 struts type One-to-One Mapping Problem

2009-01-05 Thread DUSTIN PEARCE
I think you are trying to enter the ID of an Employee record and have that id become the Employee object when the User is processed by Struts. What you have now is Struts will create a blank Employee object and call user.setEmployee() and then will set the id property of that Employee, emp

Re: [appfuse-user] Struts2 REST plugin

2009-02-01 Thread DUSTIN PEARCE
Yes, the current struts version to upgrade to is 2.1.6. If you have JSON or XML interface needs the REST plugin can be useful. Also in the latest version of Struts is the Convention plugin, which help remove XML configuration and javatemplates, which are much faster tag templates. -D

Re: [appfuse-user] Struts 2.0 autocomplete

2009-04-30 Thread DUSTIN PEARCE
It us not much help but I use a JQuery autocomplete with the Struts2 JSON result plugin. The built on dojo tags are not easy too use. I don't know if it's dojo or the tag implementation, but my sugesstion is to do Ajax and DHTML "by hand" with Jquery. On Apr 29, 2009, at 11:07 PM, Saeed

Re: [appfuse-user] Error when run mvn site command

2009-05-05 Thread DUSTIN PEARCE
What does it hang in? Which messages in the console last the longest before another pops up? On May 5, 2009, at 6:22 PM, Kenny Ha wrote: My hardware specifications are : Intel Core 2 Duo CPU 2.21 GHz, 1 GB Ram, Microsoft Windows Professional 2002 service pack 2 Is it ok?? mraible wrot

Re: [appfuse-user] OC4J

2009-05-08 Thread DUSTIN PEARCE
What error are you getting? That being said OC4J kind of stinks. On May 8, 2009, at 1:27 PM, "Bini MukundanVisalakshy" > wrote: Is anyone able to deploy Appfuse 2.0 -struts using OC4J? CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally pr

Re: [appfuse-user] Turn off CLEAN_INSERT behaviour (appfuse, dbunit)

2009-05-08 Thread DUSTIN PEARCE
There are a few things you can do. The first is move dbunit and hibernate to their own profiles. Then when you want them you can include -Pdb-setup or -Pdb-reset or whatever you name the profiles. So if I want to create the production database and seed it with data you would use -Pprod,

Re: [appfuse-user] Struts2 Many-to-one New Record Save problem (JSP Drop down)

2009-05-08 Thread DUSTIN PEARCE
If you want the new User account to save automatically when you save the purchase the add cascade=CascadeType.MERGE to your @ManyToOne. Although usually in a Many to One the "one" exists first but you pattern could be different. If cascade is not going to work for you then you need to save

Re: [appfuse-user] Struts2 Many-to-one New Record Save problem (JSP Drop down)

2009-05-09 Thread DUSTIN PEARCE
I suggest you solve the problem. Also without seeing the error it is hard to say. Sounds like you have a database restriction on a field like username not null and your User is null there. Post an error, jsp and action code and we can look at it. On May 8, 2009, at 11:33 PM, sudhakargupta

Re: [appfuse-user] Security.xml

2009-05-09 Thread DUSTIN PEARCE
Web.XML, just change the refence to your new filename there. On May 9, 2009, at 1:15 AM, Ime Asangansi wrote: Hi guys, I am thinking of changing the name of the file security.xml to something else. Please where can I can effect this change. I'm wondering what class reads this or which

Re: [appfuse-user] s:textfield align in 1 line and label vertical align?

2009-05-14 Thread DUSTIN PEARCE
Struts uses "themes" to create the HTML/CSS layout of form elements. You should read up what you can on S2 themes. Each theme uses a set of freemarker templates for the form tags. If you set your theme to simple on your form then all elements (textfield, button) would be on one line bit y

Re: [appfuse-user] Spring Autowiring during Unit testing

2009-05-15 Thread DUSTIN PEARCE
Hey kent, Autowiring should work for your unit tests. You likely have a spring configuration file in your test/resources directory. If you are using Spring annotations, you can make sure that they are configured to be scanned in your test applicationContext.xml. There is a base test cla

Re: [appfuse-user] Spring Autowiring during Unit testing

2009-05-15 Thread DUSTIN PEARCE
I can help you. When I get home tonight can send you some base test classes that will do what you want. On May 15, 2009, at 2:01 PM, wkbutler wrote: Right, we're using Struts2. I'll investigate further, it would be nice to have the option. I'll post back if I find something useful. Than

Re: [appfuse-user] Spring Autowiring during Unit testing

2009-05-15 Thread DUSTIN PEARCE
s from now, when you are deploying some patch. BusinessEntityControllerTest.java Description: Binary data BaseStrutsTestCaseSpring.java Description: Binary data StrutsContextLoader.java Description: Binary data On May 15, 2009, at 2:49 PM, DUSTIN PEARCE wrote: I can help you. When I get home tonight ca

Re: [appfuse-user] Login

2009-05-28 Thread DUSTIN PEARCE
I don't think you Can use the auto config tags to do that. Without looking at it I think you should research howto define two AuthenticationEntryPoint beans and the wiring that goes with them. On May 28, 2009, at 3:30 PM, taltun wrote: Hi, I'm using Struts 2 Moduler. I hope some can hel

Re: [appfuse-user] DWR appfuse struts2 integration fail

2009-07-04 Thread DUSTIN PEARCE
Typically you use DWR to integrate with your business layer (Managers) and not the web controllers. It looks like DWR can't call your action because the action is called outside of the Struts context. DWR is more about marshalling direct from your business layer to client JavaScript, hence

Re: [appfuse-user] cannot understand the code appfuse 1.0

2009-08-03 Thread DUSTIN PEARCE
That is unfortunate. If only he/she built it using Basic JAVA. The good news is that they used a very well documented framework, which in turn uses very common and well documented frameworks. The alternative is much worse, where someone writes a tangled mess by hand and you have no wher

Re: [appfuse-user] Criteria Query Address (Embedded) and Extend Session Time

2009-08-10 Thread DUSTIN PEARCE
I know you create a nested Criteria for related objects. Not sure if it's the same for embedded objects but you could try. getSession().createCriteria(User.class).createCriteria("address").add (Restrictions.eq("city",paramValue). etc If you are chaining be sure to add the nested criteria la

Re: [appfuse-user] struts2.0 error message in appfuse2.10

2009-11-28 Thread DUSTIN PEARCE
You likely have two entries in sample-data.xml with the same email address which appears to be the primary key for your users table. What is failing is dbunit, the maven plugin that loads your db with test data from sample-data.xml. Change one of the email addresses and it should remove th

Re: [appfuse-user] OSWD Layouts/Stylesheets and AppFuse?

2009-12-04 Thread DUSTIN PEARCE
I have not ported any templates to the appfuse management system, but I can highly reccomend the Blueprint CSS framework. I have had good experiences with it in an Appfuse like setup with SiteMesh, etc. On Dec 4, 2009, at 6:44 PM, Matt Raible wrote: I believe I'm the only one who's attempt

Re: [appfuse-user] Any idea about using struts 2 and ajax specially jquery

2010-01-10 Thread DUSTIN PEARCE
If you use the JSON struts2 plugin you can have your action return a result as a JSON object graph in response to an ajax post/get. I don't reccomend the dojo plugin for struts2, you are better off with JQuery. The struts2 REST plugin also serves JSON, but the JSON plugin is simpler IMO.

[appfuse-user] [OT] CMS and Event Management

2010-03-12 Thread Dustin Pearce
Being a do-it-yourself community its not the best place to ask, but perhaps it is the best place to ask since one way or another most have been exposed to various implementations I am looking for any takes/recommendations on CMS platforms and Event/Class Management platforms and connecting

Re: [appfuse-user] Re: Javascript and Struts2

2010-03-18 Thread DUSTIN PEARCE
Juan, You have a lot of needs and it's easiest in a mailing list to break it down into bite sizes chunks. First, buy Struts2 In Action. It will give you a lot of the info you need to get oriented. As great as Struts2 is, there is a lack of free online tutorials. Appfuse is really the b

Re: [appfuse-user] Struts 2 convention plugin

2010-03-21 Thread Dustin Pearce
Hmm. This could be a few things. First start off with the Convention configuration in struts.xml. By default your.jsp views will need to be in /WEB-INF/content/. You can change this by changing the configuration setting "struts.convention.result.path". If you are trying to use an action-less

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

2010-03-23 Thread DUSTIN PEARCE
Yeah, I figured it would have side effects. Look through Matts blog post. I will have to look in more detail on an alternative with the Convention plugin. -D On Mar 23, 2010, at 8:00 AM, Matt Raible wrote: I would try the following technique with UrlRewriteFilter: http://raibledesigns.c

Re: [appfuse-user] velocity-1.4.jar; error in opening zip file

2010-03-28 Thread DUSTIN PEARCE
Try following the path listed there to the velocity jar and delete it and rerun. It could be a bad jar and maven will redownload and reinstall it if you delete it. On Mar 26, 2010, at 12:13 AM, Evg wrote: Hi, I have a small but disappointing problem. When i try to build project, created

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

2010-04-09 Thread DUSTIN PEARCE
Which annotations? If it's the Convention annotations there have been classpath scanning issues on Websphere. Show the stack traces from the application start-up. The request stacktrace is probably not interesting "An action for /bla ... Can't be found", etc. But if it is interesting s

Re: [appfuse-user] What do you think of this

2010-04-29 Thread DUSTIN PEARCE
I am noting the date and time that Matt declared Struts2 rox0rs and Spring MVC sux0rs. -D On Apr 29, 2010, at 9:35 AM, Matt Raible wrote: I agree this is a nice tag. I don't think something like this exists in Spring MVC, but you could use Ajax or JSTL's c:import tag to call a Controller

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

2010-05-05 Thread Dustin Pearce
Are you generating a random number for the object "key" and then seeing if its already there and trying again...and again...? Just curious. -D On May 5, 2010, at 7:17 PM, Juan Antonio Calderón wrote: > Maybe DataIntegrityViolationException could be used, like in > UserManagerImpl.java? > > T

Re: [appfuse-user] Problem on view jsp/action

2010-05-18 Thread Dustin Pearce
You action's "success" result is a redirect back to the mainMenu. I am assuming that you are returning "success" from your update() method. -D On May 18, 2010, at 4:25 PM, Juan Antonio wrote: > > Hello everybody. > > I have implemented an action with a "prepare()" "update()" and a > "validat

Re: [appfuse-user] Problem on view jsp/action

2010-05-18 Thread Dustin Pearce
very method, and then returns to the mainMenu. > > I try to do the same as "saveUser" or "editUser" action. But it doesn't stops > to let me update the data with the form. > > Cheers. > - Original Message - From: "Dustin Pearce" > To

Re: [appfuse-user] Populate a select with a list from servletcontext

2010-05-18 Thread Dustin Pearce
Try #attr.types When you say sometimes, do you mean each time you load the page it works sometimes and if you reload sometimes it works, or it never works? Also, an ArrayList is a container so you don't need to initialize its size. I don't think you are using the capacity parameter in the con

Re: [appfuse-user] A bug whe using theme="css_xhtml"

2010-05-19 Thread DUSTIN PEARCE
Try changing the name of the select field. I don't think it likes size. It may be eval'ng that as OGNL and getting confused. Change the field name and see what happens. On May 19, 2010, at 5:52 PM, "Juan Antonio" wrote: I don't know how to reproduce it, i have only located it in this

Re: [appfuse-user] Problem with one-to-one mapping in appfuse

2010-05-27 Thread Dustin Pearce
Presumably, User and Computer have fields named id? You might want to try a different JoinColumn like user_id or just leave it out and see what hibernate's magic makes for you. -D On May 27, 2010, at 6:34 AM, Kissue Kissue wrote: > Hi Gurus, > > I am having problem with mapping one-to-one rel

Re: [appfuse-user] BaseStrutsTestCase in appfuse?

2010-12-14 Thread DUSTIN PEARCE
Hi Josep, I can help you. Here is something from the mailing list from a while ago: http://appfuse.547863.n4.nabble.com/Spring-Autowiring-during-Unit-testing-tp575190p575196.html I can send you some examples of how we are using a Struts2 BaseTest class like you describe in a little bit. You m

Re: [appfuse-user] BaseStrutsTestCase in appfuse?

2010-12-14 Thread DUSTIN PEARCE
Ok. Josep. This is what we are using today. Pasting this in the email seems long, but @ContextConfiguration(loader=StrutsContextLoader.class , locations = {"classpath:/applicationContext-resources.xml", "classpath:/applicationContext-CrowdClient.xml" ,"classpath:/applicati

Re: [appfuse-user] (possible resend) evaluating AppFuse -- question, is it right for me?

2010-12-15 Thread DUSTIN PEARCE
The world of hurt you are headed for has more to do with JSF and Weblogic than anything else, but that's a different topic all together. Maven will not prevent you from using Eclipse, you can generate the appropriate Eclipse files with mvn eclipse:eclipse. Even if you couldn't there is no

Re: [appfuse-user] Struts validation

2010-12-18 Thread DUSTIN PEARCE
What validation files were created? For the model? What is there path location? If you just have model validation it will not work since you need to add a Visitor validator to the action that uses the model. Check to see if the action validation files are there. If they are post the pa

  1   2   >