Re: [appfuse-user] OT: Suggestions for flat file library?

2006-12-20 Thread Sanjiv Jivan
Seems fairly simple to read from this file format. Just open an InputStream, read line by line looking for the header, trailer and other details records. You could potentially also use regular expressions to read entire records in one go but that would need you to read the stream contents in memor

[appfuse-user] Question on class casting

2006-12-20 Thread maskkkk
I have a base class (OSBBaseObject) which is extended by both Chapter and Verse (The mappings for the parent are defined in the OSBBaseObject) There is a parent-child relationship between Chapter and Verse. (many-to-one), now when I ask the Verse for the parent Chapter (see bellow) asking

RE: [appfuse-user] OT: Suggestions for flat file library?

2006-12-20 Thread Josh
The file itself consists of a header record, several different detail records and a trailer record. The record type is driven by the first two characters on each line. Each different record type has a fixed length format. Here is an very over simplified example: 810HDRInvoice 1972-0

Re: [appfuse-user] Role permissions

2006-12-20 Thread Matt Raible
You'll need to rename applicationContext-security.xml to security.xml and change web.xml to have: contextConfigLocation /WEB-INF/applicationContext-*.xml,/WEB-INF/security.xml Instead of: contextConfigLocation /WEB-INF/applicationContext-*.xml Matt

Re: [appfuse-user] Role permissions

2006-12-20 Thread nutanc
Hi Matt, It is in web/WEB-INF.It is not generated. -Chaitanya Matt Raible-3 wrote: > > I forget, is web.xml generated in 1.9.0 or is it in web/WEB-INF? > > Matt > > On 12/19/06, nutanc <[EMAIL PROTECTED]> wrote: >> >> Hi, >> Thanks for replying.I will try that.But I am using appfuse 1.9.0.How

Re: [appfuse-user] Mock testing - using advice vs interceptor

2006-12-20 Thread Matt Raible
The fact that your handler interceptor isn't invoked might be because when testing, you're not actually going through Spring's SimpleHandlerMapping and DispatcherServlet. With Spring 2.0, you could probably use the new AOP stuff and an AspectJ pointcut expression to intercept before a Controller'

Re: [appfuse-user] problem with jsps and action-mappings in struts-config.xml

2006-12-20 Thread Matt Raible
This file is composed by XDoclet by merging files from metadata/web/*.xml and XDoclet tags in JavaDoc comments in your Action.java classes. If you don't like this behavior, you should be able to copy struts-config.xml into web/WEB-INF and remove the piece in build.xml that generates this file. T

Re: [appfuse-user] html search form for hibernate managed object/Displaytag displayed data - Looking for Best Practices

2006-12-20 Thread Matt Raible
In addition to eXtremeComponents, you might want to look into using something like Compass (which is a Spring-ish API to Lucene). There's some tutorials on the wiki: Spring MVC: http://www.nabble.com/search---integrate-compass-%28lucene%29-and-appfuse-p5022176s2369.html Struts: http://raibled

Re: [appfuse-user] Struts 1.2 project advice on path

2006-12-20 Thread Matt Raible
If you want to use WebWork instead of Struts, grab the WebWork bundle: https://appfuse.dev.java.net/files/documents/1397/42851/appfuse-webwork-1.9.4-src.zip Matt On 12/13/06, Scott Purcell <[EMAIL PROTECTED]> wrote: Hello, I have an ecommerce site that I created with Struts 1.2 a year o

Re: [appfuse-user] IE Problem rendering generated XHTML pages

2006-12-20 Thread Matt Raible
Are you saying the Transitional doctype doesn't work? I'm fine with changing it to Strict. http://www.aptana.com/docs/index.php/About_using_a_Strict_vs._Transitional_DOCTYPE_in_HTML Some frameworks may render invalidation XHTML Strict, but that shouldn't affect anything. It's not like AppFuse

Re: [appfuse-user] Problem with struts-menu template?

2006-12-20 Thread Matt Raible
What version of AppFuse are you using? Matt On 12/13/06, Jasper Huzen <[EMAIL PROTECTED]> wrote: Hi, I'm using appfuse, with the struts-menu as menu generator. When i tried to use a sub sub menu, it fails (wrong layout). I tried code like: When i use this, the men

Re: [appfuse-user] Testing new Filters via AppFuse

2006-12-20 Thread Matt Raible
If you look at the LocaleFilterTest, you can see how we use Spring Mocks to test filters out-of-container. http://raibledesigns.com/downloads/appfuse/api/org/appfuse/webapp/filter/LocaleFilterTest.java.html Matt On 12/11/06, Daniel.Rodriguez <[EMAIL PROTECTED]> wrote: I wrote a new Filter, H

Re: [appfuse-user] OT: Suggestions for flat file library?

2006-12-20 Thread Sanjiv Jivan
What's the data format of the file? CSV or something custom? On 12/20/06, Josh <[EMAIL PROTECTED]> wrote: Sorry guys, I know this is old school, but I need to have the ability to parse flat files. Any suggestions? These flat files have a header, trailer and several types of detail records.

Re: [appfuse-user] Hibernate XDoclet question

2006-12-20 Thread GaryW
It's a formula field (e.g.): /** * @hibernate.property * formula="QUESTION_NUM" */ whose value is set as a result of being a child of a List association: * @hibernate.list-index * column="QUESTION_NUM" * base="1" The @hibernate.property tag does have an "access" parameter

[appfuse-user] OT: Suggestions for flat file library?

2006-12-20 Thread Josh
Sorry guys, I know this is old school, but I need to have the ability to parse flat files. Any suggestions? These flat files have a header, trailer and several types of detail records. I would appreciate any comments/advice. Best regards, Joshua

RE: [appfuse-user] Off-topic - Tips to speed up Build-Test-Deploy cycle?

2006-12-20 Thread Josh
Robert, I deal with Weblogic at work as well. If you are dealing with version 8.1 or greater, definitely look into their split-development structure. Essentially, your source code is staged in an exploded ear format. Weblogic will automatically compile JSP's for you (just like developing in

Re: [appfuse-user] Off-topic - Tips to speed up Build-Test-Deploy cycle?

2006-12-20 Thread Matt Raible
On 12/20/06, Dale Newfield <[EMAIL PROTECTED]> wrote: Matt Raible wrote: > Another thing you can do to speed up initial page-loads is pre-compile > JSPs. That speeds up initial page loads, but if the issue is the sum total time for the build-deploy-test cycle, won't that slow things down, as the

Re: [appfuse-user] Off-topic - Tips to speed up Build-Test-Deploy cycle?

2006-12-20 Thread Dale Newfield
Matt Raible wrote: Another thing you can do to speed up initial page-loads is pre-compile JSPs. That speeds up initial page loads, but if the issue is the sum total time for the build-deploy-test cycle, won't that slow things down, as the now ALL the jsps need to compile before the test compl

Re: [appfuse-user] Hibernate XDoclet question

2006-12-20 Thread Bryan Noll
I would give yourself the setter. I believe Hibernate expects them to be there out of the box. Plus, how else do you plan on modifying your instance variables without one? Matt Raible wrote: I don't know - I've never tried to use XDoclet with field-level access. AFAIK, it's not possible to u

Re: [appfuse-user] Off-topic - Tips to speed up Build-Test-Deploy cycle?

2006-12-20 Thread Matt Raible
Another thing you can do to speed up initial page-loads is pre-compile JSPs. AppFuse 1.9.4 supports this. Just change the "jsp.precompile" property in properties.xml or use -Djsp.precompile=true from the command line. Matt On 12/20/06, Sanjiv Jivan <[EMAIL PROTECTED]> wrote: On 12/20/06, Ro

Re: [appfuse-user] Off-topic - Tips to speed up Build-Test-Deploy cycle?

2006-12-20 Thread Sanjiv Jivan
On 12/20/06, Robert Campbell <[EMAIL PROTECTED]> wrote: Hi everyone, We running Appfuse w/Tapestry on WebLogic. Our Build-Test-Deploy cycle is KILLING us. The build isn't so bad, but the wldeploy ant task - the deploying of the war - takes ages, and once it's deployed, the first page view takes

Re: [appfuse-user] Hibernate XDoclet question

2006-12-20 Thread Matt Raible
I don't know - I've never tried to use XDoclet with field-level access. AFAIK, it's not possible to use XDoclet and annotate fields, but I could be wrong. Matt On 12/20/06, GaryW <[EMAIL PROTECTED]> wrote: When using "field" level access, do you put the @hibernate.property tag on the field or

[appfuse-user] Hibernate XDoclet question

2006-12-20 Thread GaryW
When using "field" level access, do you put the @hibernate.property tag on the field or on the getter? Also, do you need a setter in this case or is that optional since it's setting the field and not the property? Thanks, Gary -- View this message in context: http://www.nabble.com/Hibernate-XD

Re: [appfuse-user] Role permissions

2006-12-20 Thread Matt Raible
I forget, is web.xml generated in 1.9.0 or is it in web/WEB-INF? Matt On 12/19/06, nutanc <[EMAIL PROTECTED]> wrote: Hi, Thanks for replying.I will try that.But I am using appfuse 1.9.0.How should I go about changing as you told me to. -Chaitanya Matt Raible-3 wrote: > > One thing we did in t

Re: [appfuse-user] Off-topic - Tips to speed up Build-Test-Deploy cycle?

2006-12-20 Thread Matt Raible
Have you disabled Tapestry's caching? http://softwaretrenches.com/2004/04/disabling_tapestry_cache.html If you do this, you should be able to deploy new templates (*.html files) and refresh your browser to see the changes. Running "ant deploy-web" should allow you to do this. I believe WebLogi

[appfuse-user] Off-topic - Tips to speed up Build-Test-Deploy cycle?

2006-12-20 Thread Robert Campbell
Hi everyone, We running Appfuse w/Tapestry on WebLogic. Our Build-Test-Deploy cycle is KILLING us. The build isn't so bad, but the wldeploy ant task - the deploying of the war - takes ages, and once it's deployed, the first page view takes ages also. Maybe this is a stupid question and we're mis

Re: [appfuse-user] Transaction rollback on exception

2006-12-20 Thread Matt Raible
By default, RuntimeExceptions will generate a rollback. If you don't want that do happen, add +ExceptionName to your transaction attributes. Matt On 12/20/06, Marco Papini <[EMAIL PROTECTED]> wrote: Hi all, I'm experiencing something that I cannot understand when dealing with transaction. I'v

[appfuse-user] Transaction rollback on exception

2006-12-20 Thread Marco Papini
Hi all, I'm experiencing something that I cannot understand when dealing with transaction. I've created a BusinessManager to collect all business methods, I mean all procedures that need to be run in a single transaction. I've registered the Manager in applicationContext-service.xml:

Re: [appfuse-user] Appfuse + EJB

2006-12-20 Thread Bryan Noll
It all depends on what you mean by 'clustering'. Are you clustering it just so you can scale it in terms of handling extra load? If you're working with stateless services, which is what appfuse does out of the box, you can simply put a load balancer in front of your app, something like apache

[appfuse-user] IE6 downloads + external properties

2006-12-20 Thread Jon Loken
Hi all, Here is some information which may be of interest regarding IE6 not being able to download documents, resulting in popup boxes stating: "internet explorer cannot download..."sdhs&download=download from localhost "internet explorer was not able to open this internet site. The requested s

Re: [appfuse-user] Appfuse on Websphere 6 succeed

2006-12-20 Thread Matt Raible
On 12/20/06, Jonathan Tse <[EMAIL PROTECTED]> wrote: Dear all, Long time haven't appeared on the list. Just want to let you guys know that I have successfully deploy appfuse on Websphere 6. Make sure you upgrade your websphere 6 to 6.0.2 because v6.0.0 has some problem with JSTL. I am

Re: [appfuse-user] Appfuse + EJB

2006-12-20 Thread Matt Raible
If you need clustering and more scalability with AppFuse and Spring beans, you should be able to use Terracotta for Spring. http://www.terracotta.org There's no need for EJBs IMHO. Matt On 12/20/06, denon82 <[EMAIL PROTECTED]> wrote: thanks for the quick replay, Does anyone has any expirien

Re: [appfuse-user] Webwork's Conversion not working

2006-12-20 Thread Matt Raible
Can you send a diff/patch by checking out the 1.9.x branch from SVN and changing it? It's difficult for me to see what you changed. svn co https://appfuse.dev.java.net/svn/appfuse/branches/BRANCH_1-9-x appfuse-1.9.x Matt On 12/20/06, Daniel.Rodriguez <[EMAIL PROTECTED]> wrote: Matt , just so

Re: [appfuse-user] Webwork's Conversion not working

2006-12-20 Thread Daniel.Rodriguez
Matt , just solved my problem. Basically I had to do some changes around the package-dao task: This is the original version :

Re: [appfuse-user] Appfuse + EJB

2006-12-20 Thread denon82
thanks for the quick replay, Does anyone has any expirience integrating appfuse with ejb 3.0? Has anyone implemented that? Would you think it would be a good idea to create a tuturial on how to integrate appfuse with ejb? For me it would be really good cause ejb suppors clustering witch really h

Re: [appfuse-user] Appfuse + EJB

2006-12-20 Thread Michael Horwitz
Hi, As AppFuse is based on Spring it should be fairly easy to get AppFuse to use Spring to connect to EJB's on the service layer. It is worth noting that you do not have to use EJB's to make your application scalable - AppFuse will scale quite happily on its own. I guess it all depends on the spe

[appfuse-user] Appfuse + EJB

2006-12-20 Thread denon82
Hello my friends, How difficult would it be to integrate appfuse with EJB? Appfuse is great project, but how can I make it scalable? How can I cluster an appfuse based application if it doesnt use ejb? Thanks, Flávio Oliva -- View this message in context: http://www.nabble.com/Appfuse-%2B-EJB

[appfuse-user] Appfuse on Websphere 6 succeed

2006-12-20 Thread Jonathan Tse
Dear all, Long time haven't appeared on the list. Just want to let you guys know that I have successfully deploy appfuse on Websphere 6. Make sure you upgrade your websphere 6 to 6.0.2 because v6.0.0 has some problem with JSTL. I am able to use MyEclipse to deploy appfuse to websphere