Re: [appfuse-user] getting current logged in user

2007-02-21 Thread sionsmith
here is a simple example of what i have: user = userManager.getUserByUsername(getRequest().getRemoteUser()); mraible wrote: > > Yes. > > On 2/21/07, tonyl <[EMAIL PROTECTED]> wrote: >> >> Thanks Matt for the quick response. >> >> Yeah, I just want to get the current logged-in username. So, I

[appfuse-user] Did I miss a Spring Config??

2007-02-21 Thread Clark D. Liu
I added a new method to my DAO that uses a where clause as follows... public List getUploadedDatasByRegion(String region) { return getHibernateTemplate().find("from UploadedData where region=?",region); Hibernate returns two rows but the action shows null... UploadedDataManager m

[appfuse-user] displaytag with horizontal scrollbar

2007-02-21 Thread Travers Snyman
Hi Is there a way to add a horizontal scrollbar to the display table of displaytag - not using the browser's scrollbar. I have a table with a lot of columns - too wide to display on the page width. This messes up the page appearance, menus, images disappear etc. I would like the page width to rem

Re: [appfuse-user] using delicious-java api

2007-02-21 Thread Dorothy Turner
Hi Again - Since i'm working with an older version of appfuse(1.8), i upgraded httpclient which seemed to fix the problems I was having. Thanks for the tip! Now of course, I have a new problem. : ) I've made some progress and managed to display bookmarks from delicious in a jsp page. The serv

Re: [appfuse-user] Struts Menus with 3 or more Levels

2007-02-21 Thread Fan
how's the menu being generated in Appfuse 2.0 ? I wish to trace if generating more than 3 levels of menu is possible Fan wrote: > > here is my menu-config.xml : > > > > > type="net.sf.navigator.displayer.VelocityMenuDisplayer"/> > > > page="/mainMenu.html"/

Re: [appfuse-user] Struts Menus with 3 or more Levels

2007-02-21 Thread Michael Horwitz
The menu is generated using the menu-config.xml configuration file directly below WEB-INF. Mike. On 2/21/07, Fan <[EMAIL PROTECTED]> wrote: how's the menu being generated in Appfuse 2.0 ? I wish to trace if generating more than 3 levels of menu is possible Fan wrote: > > here is my menu-c

[appfuse-user] Equinox 1.7 Validation Help Required

2007-02-21 Thread Scott Purcell
Hello, Equinox 1.7 'Struts, Spring, Hibernate' configuration. I am trying to do some validation just like the lastname validation in the userForm.jsp. (that one was broke out of the box also.). I cannot figure this out, and would really like to get it working. But I cannot get the userfo

Re: [appfuse-user] Struts Menus with 3 or more Levels

2007-02-21 Thread Matt Raible
There's currently an open bug related to menus and too many child items: http://issues.appfuse.org/browse/APF-599 The good news is this bug does contain a patch. Matt On 2/21/07, Fan <[EMAIL PROTECTED]> wrote: how's the menu being generated in Appfuse 2.0 ? I wish to trace if generating mor

Re: [appfuse-user] Struts Menus with 3 or more Levels

2007-02-21 Thread Fan
How does the configuration file being parsed and read to generate the menu ? I wish to know the mechanism behind it Michael Horwitz wrote: > > The menu is generated using the menu-config.xml configuration file > directly > below WEB-INF. > > Mike. > > > On 2/21/07, Fan <[EMAIL PROTECTED]> w

Re: [appfuse-user] Equinox 1.7 Validation Help Required

2007-02-21 Thread Matt Raible
Looks like a bug to me. Does the validation work on the userForm or not? You say it's "broken out of th ebox". Did you fix it or does this cause a similar error? Matt On 2/21/07, Scott Purcell <[EMAIL PROTECTED]> wrote: Hello, Equinox 1.7 'Struts, Spring, Hibernate' configuration.

Re: [appfuse-user] Struts Menus with 3 or more Levels

2007-02-21 Thread Matt Raible
You can check out the Struts Menu project from SourceForge if you want to look at the code: http://struts-menu.sf.net The MenuRepository.java in src/java/net/sf/navigator/menu has an initDigester() method that does most of the parsing work. This is done using Commons Digester. Here's an articl

RE: [appfuse-user] Equinox 1.7 Validation Help Required

2007-02-21 Thread Scott Purcell
The userForm does not work right out of the box. I did it at home last night also with the same results. If you do not enter a lastname in the userform, it still saves to the DB. Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Raible Sent:

[appfuse-user] struts2 validation for only one method in action

2007-02-21 Thread ros
Hi! How to configure struts2 validation for only one method in action? Thanks. -- View this message in context: http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267151s2369.html#a9082179 Sent from the AppFuse - User mailing list archive at Nabble.com.

RE: [appfuse-user] ASM, CIGLIB

2007-02-21 Thread Ding, Qin
Matt: I copied both asm-1.5.3.jar and asm-attrs-1.5.3.jar to hibernate/lib directory and removed the asm.jar. I still got the same error that the EmptyVisitor is not found. And then I copied asm-all-2.2.3.jar, too, to hibernate/lib directory. With both asm-1.5.3 and asm-all-2.2.3.jar, the error is

Re: [appfuse-user] Equinox 1.7 Validation Help Required

2007-02-21 Thread Matt Raible
Can you enter this as an issue in JIRA? I'm assuming you're using Struts 1.x? FWIW, I can reproduce this bug on the demo site: http://demo.raibledesigns.com/equinox-struts/users.html Matt On 2/21/07, Scott Purcell <[EMAIL PROTECTED]> wrote: The userForm does not work right out of the box. I

Re: [appfuse-user] struts2 validation for only one method in action

2007-02-21 Thread Matt Raible
You can use the @SkipValidation annotation on a method to skip validation for methods: http://struts.apache.org/2.x/docs/validation.html Matt On 2/21/07, ros <[EMAIL PROTECTED]> wrote: Hi! How to configure struts2 validation for only one method in action? Thanks. -- View this message in con

RE: [appfuse-user] Did I miss a Spring Config??

2007-02-21 Thread Clark D. Liu
More info - I'm using appfuse 1.9.4 and used appgen to generate the classes. From: Clark D. Liu [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 3:59 AM To: users@appfuse.dev.java.net Subject: [appfuse-user] Did I miss a Spring Config?? I add

[appfuse-user] RE: Did I miss a Spring Config??

2007-02-21 Thread sionsmith
can you post your config mate? Clark D. Liu wrote: > > More info - I'm using appfuse 1.9.4 and used appgen to generate the > classes. > > > > > > From: Clark D. Liu [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 21, 2007 3:59 AM > To: users@appfus

Re: [appfuse-user] RE: Did I miss a Spring Config??

2007-02-21 Thread Matt Raible
Do you have a DAO test that proves things aren't working as expected? Matt On 2/21/07, sionsmith <[EMAIL PROTECTED]> wrote: can you post your config mate? Clark D. Liu wrote: > > More info - I'm using appfuse 1.9.4 and used appgen to generate the > classes. > > > > ___

RE: [appfuse-user] Equinox 1.7 Validation Help Required

2007-02-21 Thread Scott Purcell
Yes, I am using Struts 1.x. I would not mind entering it into the JIRA, but not sure how to go about that. Could you send me a link to the JIRA and I'll take care of it. Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Raible Sent: Wednesday,

Re: [appfuse-user] Equinox 1.7 Validation Help Required

2007-02-21 Thread Matt Raible
You'll need to create an account if you don't already have one: http://issues.appfuse.org/secure/CreateIssue!default.jspa Matt On 2/21/07, Scott Purcell <[EMAIL PROTECTED]> wrote: Yes, I am using Struts 1.x. I would not mind entering it into the JIRA, but not sure how to go about that. Could y

Re: [appfuse-user] struts2 validation for only one method in action

2007-02-21 Thread ros
Looks like java script client-side validations ignores this. Is there functionality to make per-method validation with TestAction-TestAction_method-validation.xml like files? Why in personForm.jsp (tutorial) tutorial on cancel button validation is ignored? mraible wrote: > > You can use the

Re: [appfuse-user] struts2 validation for only one method in action

2007-02-21 Thread Matt Raible
That's configured in struts.xml, where the validationInterceptor excludes methods from validation: cancel,execute,delete,edit,list,start Matt On 2/21/07, ros <[EMAIL PROTECTED]> wrote: Looks like java script client-side validations ignores th

[appfuse-user] @TableGenerator doesn't seem to work with Hibernate 3.2.1.ga / MySql 5.0

2007-02-21 Thread masterg007
All, This may be more of a hibernate/MySql issue than an Appfuse one but this could occur is Appfuse as well. I am trying to generate Ids for newly added customers using a table called SEQUENCE in MySql 5.0. I am using hibernate 3.2.1.ga annotations. The next customer I enter should have an Id of

RE: [appfuse-user] Equinox 1.7 Validation Help Required

2007-02-21 Thread Scott Purcell
Matt, Figured it out. In the validator-rules.xml there is a required validator: Problem is, the constructor in the 1.2.9 jar has a org.apache.commons.validator.Validator between ActionMessages and Request. Once I added it like so: All works great now. I just didn't know how to put this fix i

Re: [appfuse-user] Equinox 1.7 Validation Help Required

2007-02-21 Thread Matt Raible
On 2/21/07, Scott Purcell <[EMAIL PROTECTED]> wrote: Matt, Figured it out. In the validator-rules.xml there is a required validator: Problem is, the constructor in the 1.2.9 jar has a org.apache.commons.validator.Validator between ActionMessages and Request. Once I added it like so: All wo

Re: [appfuse-user] getting current logged in user

2007-02-21 Thread Dale Newfield
sionsmith wrote: here is a simple example of what i have: user = userManager.getUserByUsername(getRequest().getRemoteUser()); I've found there are times when I need basic info from the current user object (which acegi stores in the session, so going to the DB is not necessary), and times whe

[appfuse-user] Extending AppFuse User

2007-02-21 Thread sionsmith
Hi all, I've been playing around with this for a few hours now and i cant seem to get it working, the users in my system have a number of added entities compared with that of the stand appfuse one. I thought i could just extend the class and place the new attributes in the new class. ===

Re: [appfuse-user] Extending AppFuse User

2007-02-21 Thread Matt Raible
Which version of AppFuse are you using? Matt On 2/21/07, sionsmith <[EMAIL PROTECTED]> wrote: Hi all, I've been playing around with this for a few hours now and i cant seem to get it working, the users in my system have a number of added entities compared with that of the stand appfuse one. I

Re: [appfuse-user] displaytag with horizontal scrollbar

2007-02-21 Thread Nathan Anderson
You should be able to put the displaytag within a div that you set the width, height, overflow and scroll CSS properties. There may be other ways, but thats what I'd try first. Nathan Travers Snyman wrote: Hi Is there a way to add a horizontal scrollbar to the display table of displaytag

[appfuse-user] authorize tag vs. enableOnUserRole attribute

2007-02-21 Thread tonyl
I'm pretty new to JSF and Acegi, and I just learned about enableOnUserRole and visibleOnUserRole attributes for components. I tried them out yesterday and like the way they work and the fact that it cleans up the code in my opinion. What's considered the best practice? Is it better to use authori

RE: [appfuse-user] RE: Did I miss a Spring Config??

2007-02-21 Thread Clark D. Liu
I guess this is all generated. -Original Message- From: sionsmith [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 21, 2007 9:39 AM To: users@appfuse.dev.java.net Subject: [appfuse-user] RE: Did I miss a Spring Config?? can you post your config mate? Clark D. Liu wrote: > > More

Re: [appfuse-user] Extending AppFuse User

2007-02-21 Thread Bryan Noll
I assume you're using 2.0 because of the annotations. Did you change the mapping in the hibernate.cfg.xml file so it is looking for InukUser instead of org.appfuse.model.User? Matt Raible wrote: Which version of AppFuse are you using? Matt On 2/21/07, sionsmith <[EMAIL PROTECTED]> wrote:

RE: [appfuse-user] RE: Did I miss a Spring Config??

2007-02-21 Thread Clark D. Liu
The DAO tests show that it is working. My Struts action pretty much is identical to my DAO test but it returns an empty list. The other method which returns a list works fine so I figured (maybe incorrectly) that I needed to register my new method somewhere. I haven't spent much with appfuse but i

Re: [appfuse-user] RE: Did I miss a Spring Config??

2007-02-21 Thread Matt Raible
If you run the list test in your manager and action, do you get similar results. If you can isolate the problem to which test it's failing in, you should be able to debug and figure out what's different. Matt On 2/21/07, Clark D. Liu <[EMAIL PROTECTED]> wrote: The DAO tests show that it is wor

RE: [appfuse-user] RE: Did I miss a Spring Config??

2007-02-21 Thread Clark D. Liu
Ok thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Raible Sent: Wednesday, February 21, 2007 12:02 PM To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] RE: Did I miss a Spring Config?? If you run the list test in your manager and act

Re: [appfuse-user] authorize tag vs. enableOnUserRole attribute

2007-02-21 Thread Matt Raible
If you're using the Acegi component from jsf-comp, it's probably the same thing. Acegi's SecurityContextHolderAwareRequestFilter (http://tinyurl.com/2dv5ab) makes request.getRemoteUser() and request.isUserInRole() work. I suspect that enable* and visible* both use the isUserInRole call. It seem

[appfuse-user] Spring MVC Tutorial question; should mainMenu.html work?

2007-02-21 Thread Dean Jackson
WARN [btpool0-2] PageNotFound.noHandlerFound(1005) | No mapping for [/mainMenu.html] in DispatcherServlet with name 'dispatcher' 2.0-m3, using the tutorial as posted yesterday. I've worked up through the web tutorial for Spring MVC up through creating 'src/main/webapp/WEB-INF/pages/persons.jsp'.

Re: [appfuse-user] Spring MVC Tutorial question; should mainMenu.html work?

2007-02-21 Thread Matt Raible
You should be able to crank up the logging using src/main/resources/log4j.xml. If you look in target/yourapp-name/WEB-INF/dispatcher-servlet.xml, do you see a mapping for mainMenu.html? If you'd like to send me your project with instructions to reproduce the problem, I can take a look at it late

Re: [appfuse-user] Spring MVC Tutorial question; should mainMenu.html work?

2007-02-21 Thread Dean Jackson
The only item in the target/**/dispatcher-servlet.xml is the single controller I created, in main/webapp/WEB-INF/dispatcher-servlet.xml When I created that controller, I had to create the dispatcher-servlet.xml file; I'm now assuming there should have been something already there? If that's the

Re: [appfuse-user] Spring MVC Tutorial question; should mainMenu.html work?

2007-02-21 Thread Matt Raible
There is a bug I fixed earlier this week where the dispatcher-servlet.xml (and a number of other files) weren't included in the archetypes by default. http://issues.appfuse.org/browse/APF-652 If you create a new project with a 1.0-m4-SNAPSHOT archetype and copy the files from its src/main/webapp

[appfuse-user] Issue with Struts Form Validation

2007-02-21 Thread Sanders, Corey
I am having some trouble with appfuse and the struts validator framework. I have an object A with a foreign key to another object B. When appfuse generates the StrutsForm object for A, it notices object B, changes the object reference to BForm, and includes that property in the generated class. I'm

Re: [appfuse-user] Extending AppFuse User

2007-02-21 Thread viggo
I've also been thinking of extending the original User class by adding more properties to it. The way I did it was to extract the core model classes from appfuse, add @Inheritance(strategy=InheritanceType.JOINED) to the User.java, and then create a new class which extends User, and add @Entity to

[appfuse-user] hibernate relationship one-to-tone

2007-02-21 Thread hquinn
Greetings everyone! Does anyone know how to do a relationship one-to-one? I'm working with appfuse w/spring... and I've done relationships many-to-one or one-to-many a lot of times, but now I need a relationship one-to-one ... I've read the XDoclet API to see how to do one.. but I don't quite und

Re: [appfuse-user] hibernate relationship one-to-tone

2007-02-21 Thread Ron Anderson
You can just use a many to one with unique set to true like this: @hibernate.many-to-one column="deviceId" unique="true" lazy="false" on my getDevice() method Its a constrained many to one where you can really only have one of these for each deviceId. - Original Message From: hquinn <[

Re: [appfuse-user] Spring MVC Tutorial question; should mainMenu.html work?

2007-02-21 Thread Dean Jackson
(project name is 'food') mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=1.0-m4-SNAPSHOT -DgroupId=com.talldean -DartifactId=food (lotta warnings, ${foo} is not a valid refere

Re: [appfuse-user] hibernate relationship one-to-tone

2007-02-21 Thread viggo
Hi, If you're using JPA annotations, you could probably take a look here (search for @onetoone): http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-annotations.html or perhaps here? http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html#mapping-declarati

Re: [appfuse-user] Spring MVC Tutorial question; should mainMenu.html work?

2007-02-21 Thread Matt Raible
You created a JSF project! Use: -DarchetypeArtifactId=appfuse-basic-spring Instead of: -DarchetypeArtifactId=appfuse-basic-jsf ;-) Matt On 2/21/07, Dean Jackson <[EMAIL PROTECTED]> wrote: (project name is 'food') mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifactId=a

[appfuse-user] Menu Config

2007-02-21 Thread tonyl
So, we have a menu-config.xml that defines 2 menus - these show up correctly along the top of the web app. However, one of the menus appears along the side of some pages and I can't find how to change that. I'd like to remove the side menu while still having the menu appear along the top. If anyo

Re: [appfuse-user] Menu Config

2007-02-21 Thread Matt Raible
Is the side menu an admin menu? If so, look in decorators/default.jsp - there's some logic in there to show the admin menu on the side. Matt On 2/21/07, tonyl <[EMAIL PROTECTED]> wrote: So, we have a menu-config.xml that defines 2 menus - these show up correctly along the top of the web app.

Re: [appfuse-user] Menu Config

2007-02-21 Thread tonyl
Shoot! I was on the right track as I was looking in web/common, but didn't know about the default.jsp in the decorators dir. Thank you very much! mraible wrote: > > Is the side menu an admin menu? If so, look in decorators/default.jsp > - there's some logic in there to show the admin menu on

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