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] 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 George Wei
Thanks for your recommendations, these articles are really interesting. But writing a theme is a little bit difficult to me now, so I use instead of to implement my requirement. The modified code is as follows: <%@ include file="/common/taglibs.jsp"%>

[appfuse-user] what is the purpose of this dependency exclusion?

2008-05-01 Thread oliver.appfuse
hi,good day! In Appfuse web module these is a section of the parent pom: spring-aop depend on spring-bean,spring-core , but the parent appfuse artifact depend spring-test which has spring-bean spring-core dependencies already why not here can see a exclusion of spring-bean,spring-core ?

Re: [appfuse-user] Problem with the Quickstart archetype Struts 2 Basic

2008-05-01 Thread -=j=-
Hey there, Not sure if this is what your problem is but I ran into semi-similar issues trying to quick start a project using maven 2.0.9. When I backed off to maven 2.0.8 it worked without issue. If you're using maven 2.0.9 you might try backing off to 2.0.8 HTH, -=j=- On Fri, 2008-04-25 at 0

Re: [appfuse-user] AppFuse Tutorial "cannot access org.springframework.test.AbstractTransactionalDataSourceSpringContextTests"

2008-05-01 Thread Matt Raible
On Thu, May 1, 2008 at 12:12 PM, javaunixsolaris <[EMAIL PROTECTED]> wrote: > > I got it to work, I think it's because I accidentally put the PersonDaoTest > inside "src/main/webap/**" instead of "src/test/java/**". Also you need to > change sample-data.xml from "first_name" "last_name" to "fir

Re: [appfuse-user] AppFuse Tutorial "cannot access org.springframework.test.AbstractTransactionalDataSourceSpringContextTests"

2008-05-01 Thread javaunixsolaris
I got it to work, I think it's because I accidentally put the PersonDaoTest inside "src/main/webap/**" instead of "src/test/java/**". Also you need to change sample-data.xml from "first_name" "last_name" to "firstName" and "lastName". See http://appfuse.org/display/APF/Using+Hibernate#UsingHiber

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

2008-05-01 Thread Ryan Withers
Matt, Yes this should help, thanks for your patience. As you might know It's not exactly the Person object but my variation on it. So I may be attempting to refer to the id field but not referring to the bean instance to get at the id field correctly. I'm in the middle of a transition from s

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

2008-05-01 Thread Matt Raible
When id=1 comes in on the request (in the URL on a GET, hidden field on a POST), it will be set on the Action provided there is a setId() method. For the PersonAction, this works on GET, but not on POST. On POST, the hidden fields name is "person.id", so it's setting it on the Person object rather

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

2008-05-01 Thread Ryan Withers
Matt, This makes it sound like something I'm doing, and I will double check that again. Potentially the request parameter isn't being set correctly. Yes I'm saying that editPerson.html isn't in all cases being passed the id= parameter. In some cases the id is coming across as a request parame

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

2008-05-01 Thread Matt Raible
You're saying that /editPerson.html?id=1 results in a null value in the hidden field? Matt On Thu, May 1, 2008 at 10:10 AM, Ryan Withers <[EMAIL PROTECTED]> wrote: > Matt, > > The id does get set, but when the action methods get performed either > (edit, save, delete) the id is being set back t

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

2008-05-01 Thread Ryan Withers
Matt, The id does get set, but when the action methods get performed either (edit, save, delete) the id is being set back to null. Thanks, Ryan On Thu, May 1, 2008 at 11:04 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > The id should be a hidden field so it's retained on an edit. The > tutoria

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

2008-05-01 Thread Matt Raible
The id should be a hidden field so it's retained on an edit. The tutorial shows this: Matt On Thu, May 1, 2008 at 9:58 AM, Ryan Withers <[EMAIL PROTECTED]> wrote: > Matt, > > In the posted example for the Struts 2 project there seems to be an issue > with the PersonAction where things are don

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

2008-05-01 Thread Ryan Withers
Matt, In the posted example for the Struts 2 project there seems to be an issue with the PersonAction where things are done in terms of the id on the action. Trouble is this gets set, and then on a subsequent request it winds up being null. So the call to save always creates a new row in the t

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-05-01 Thread Ryan Withers
Matt, Thanks for looking into this, the basic project also exhibited the same issues, I'm not sure if that's important. The other thing I might add is that the suggestion to run appfuse:full-source before doing any development was finally what worked for me. I copied my sources to the side del

Re: Re: [appfuse-user] what is the best way to import appfuse to eclipse ?

2008-05-01 Thread Matt Raible
On Thu, May 1, 2008 at 3:36 AM, oliver.appfuse <[EMAIL PROTECTED]> wrote: > > > hi,Matt > after i updating the poms i found all maven-eclipse-plugin are changed to > version 2.5.1, > then i run mvn eclipse:clean followed by mvn eclipse:eclipse on the root > directory,but i still cant get what i wan

Re: Re: [appfuse-user] what is the best way to import appfuse to eclipse ?

2008-05-01 Thread oliver.appfuse
hi,Matt after i updating the poms i found all maven-eclipse-plugin are changed to version 2.5.1, then i run mvn eclipse:clean followed by mvn eclipse:eclipse on the root directory,but i still cant get what i want. anything need i to do more? does idea support deep structure of maven project?i kno

Re: [appfuse-user] Validations

2008-05-01 Thread Matt Raible
You might try a visitor validator or use an expression. http://struts.apache.org/2.x/docs/validation.html Matt On Wed, Apr 30, 2008 at 8:00 AM, Leo Barrientos C. <[EMAIL PROTECTED]> wrote: > I just need to validate a related object in a form, before save and using > validation.xml > > > Matt Ra

Re: [appfuse-user] filterInvocationInterceptor doubt

2008-05-01 Thread Matt Raible
On Tue, Apr 29, 2008 at 4:24 AM, jithesh <[EMAIL PROTECTED]> wrote: > > Hi > > I am using appfuse 1.9.4 for developing my web project. I have a pdf file > stored in a folder named 'pdf' in the application directory. the url for > accessing the pdf is just like given below. > https://loca

Re: [appfuse-user] problem occurred after running mvn jetty:run-war

2008-05-01 Thread Matt Raible
After running full-source, please try changing your pom.xml from: org.apache.struts struts2-spring-plugin ${struts.version} To: org.apache.struts struts2-spring-plugin ${struts.version}

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-05-01 Thread Matt Raible
You are correct that AppFuse 2.0.1:Struts 2 Modular:full-source has issues. After running full-source, if you change web/pom.xml from: org.apache.struts struts2-spring-plugin ${struts.version} To: org.apache.struts

Re: [appfuse-user] AppFuse Session ID

2008-05-01 Thread Matt Raible
Do you mean the length of the key or the duration of the session? If the later, you can modify this in web.xml. http://www.adp-gmbh.ch/java/web_application/web_xml.html#session_timeout Matt On Sat, Apr 26, 2008 at 4:31 AM, VICKY K <[EMAIL PROTECTED]> wrote: > > Can any one tell me , > > Is the

Re: [appfuse-user] How to handle composite primary keys?

2008-05-01 Thread Matt Raible
Unfortunately I don't have a good answer for you as I've never tried to do this with AppFuse + iBATIS. Running full-source on your project and modifying the code to fit your needs is probably your best bet. Matt On Tue, Apr 22, 2008 at 12:04 AM, Cens <[EMAIL PROTECTED]> wrote: > > I am using App

Re: [appfuse-user] Any alternative to naming PK field as Id for iBatisDaoUtils.getPrimaryKeyFieldName?

2008-05-01 Thread Matt Raible
Not at the current time, but we do accept patches. Matt On Mon, Apr 21, 2008 at 11:54 PM, Cens <[EMAIL PROTECTED]> wrote: > > Is there any alternative to call the primary PK field as "Id" or "id" for > iBatisDaoUtils.getPrimaryKeyFieldName? > > Thanks > Vincenzo Caselli > -- > View this mes

Re: [appfuse-user] What is the reason of replacing renderer for h:panelGrid that uses lists instead of tables ?

2008-05-01 Thread Matt Raible
If you remove the renderer, it shouldn't affect anything. The reason we customized it is for more useable forms. http://raibledesigns.com/rd/entry/label_placement_in_web_forms Matt On Sun, Apr 20, 2008 at 8:23 AM, Cens <[EMAIL PROTECTED]> wrote: > > Matt, please let me understand. > I find it

Re: [appfuse-user] move from basic to modular project

2008-05-01 Thread Matt Raible
You'll want to put your webapp classes in the web module and your service/dao classes in the core module. Matt On Tue, Apr 15, 2008 at 6:56 AM, grabka <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a struts-basic project. It is monitoring application that uses > external services for getting da

Re: [appfuse-user] Appfuse2.0M3 locale 'zh' unsupported

2008-05-01 Thread Matt Raible
Can you try AppFuse 2.0.1? Matt On Sun, Apr 13, 2008 at 7:55 PM, luxas <[EMAIL PROTECTED]> wrote: > > I have tried it. >when I pass -Duser.language=en, it report the error below: > \web\src\test\resources\web-tests.xml:175: Wrong document title found!. > Expected value ".*Main Menu

Re: [appfuse-user] AppFuse Tutorial "cannot access org.springframework.test.AbstractTransactionalDataSourceSpringContextTests"

2008-05-01 Thread Matt Raible
Can you run "mvn clean" on your project and post it for download? Thanks, Matt On Wed, Apr 30, 2008 at 1:52 PM, javaunixsolaris <[EMAIL PROTECTED]> wrote: > > Following the Tutorial (R1) to the 'T' I still get this: > $ mvn -e test-compile > ... > PersonDaoTest.java:[14,7] cannot access > o