Re: [appfuse-user] validator

2007-11-13 Thread tibi
its a struts bug and it is fixed in the comming version. but in appfuse 2.0 it is not fixed jet. tibi Matt Raible wrote: > Is this a Struts 2 bug or an AppFuse one? If the template is in > Struts, you should probably file an issue in Struts' JIRA. > > https://issues.apache.org/struts/secure/Dash

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

2007-11-13 Thread Rob Hills
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. Each html > element should have the name parent.child[%{row.index}].childprope

Re: [appfuse-user] Spring MVC basic exception in IDEA at hibernate3:hbm2ddl

2007-11-13 Thread Matt Raible
Can you try installing Maven 2.0.7 and running "mvn install" from the command line? It may be something in IntelliJ's Maven support. Matt On 11/13/07, jaav <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm new to Appfuse and to Maven. Could someone help me on this one please > ... > I have just successf

[appfuse-user] File Upload behavior not consistent on different web server

2007-11-13 Thread BruceLee
Dear Team, We develop a website that allows user to upload image files to web server. The server will save the file path to database. Then the JSP will retrieve this file path for displaying image on page. But one web server (Windows XP) can only display image with absolute file path like D:\Pro

[appfuse-user] Spring MVC basic exception in IDEA at hibernate3:hbm2ddl

2007-11-13 Thread jaav
Hi, I'm new to Appfuse and to Maven. Could someone help me on this one please ... I have just successfully created a 'Spring MVC basic' project which I imported in Intellij. When running the pre-integration-test (or other targets in the lifecycle) I always get this error ... [INFO] [statemgmt:en

[appfuse-user] Spring MVC basic exception in IDEA at hibernate3:hbm2ddl

2007-11-13 Thread Jef Waumans
Hi, I'm new to Appfuse and to Maven. Could someone help me on this one please ... I have just successfully created a 'Spring MVC basic' project which I imported in Intellij. When running the pre-integration-test (or other targets in the lifecycle) I always get this error ... [INFO] [statemgmt:end

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] No encryption after validation error

2007-11-13 Thread Matt Raible
Can you please describe the steps needed to reproduce this error in more detail? Please include the web and persistence framework you're using and the AppFuse version number. Matt On 11/13/07, Aakhunaten <[EMAIL PROTECTED]> wrote: > > I know this error was fixed in M3, but a new project build wit

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.

[appfuse-user] No encryption after validation error

2007-11-13 Thread Aakhunaten
I know this error was fixed in M3, but a new project build with AppFuse 2.0 seems to have the same issue. If there is a validation error on editing user, the password is not encrypted. To test this out, you have to change the password for say user 'user', leave a required field empty (like State)

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 Struts' JIRA. >

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

2007-11-13 Thread Rob Hills
Hi All, I have an AppFuse 2 + Hibernate + Struts application that includes two model classes with a one -> many entity relationship. For simplicity, I'll call them "Parent" and "Child" here. I have a requirement to create a single form that allows the user to edit details of both the Parent a

Re: [appfuse-user] GWT integration

2007-11-13 Thread Sanjiv Jivan
oops, I meant "like Grid, *Tree* and ComboBoxes" On 11/13/07, Sanjiv Jivan <[EMAIL PROTECTED]> wrote: > > You could use CFX to create restful services although I havent used it > myself. I personally just use Spring MVC to manage the URL delegation to > controllers and in the controllers use XStr

Re: [appfuse-user] GWT integration

2007-11-13 Thread Sanjiv Jivan
You could use CFX to create restful services although I havent used it myself. I personally just use Spring MVC to manage the URL delegation to controllers and in the controllers use XStream to convert the beans to XML or Json and return this data ( write directly to the HttpRespose OutputStream ).

Re: [appfuse-user] turn off schemaexport and dbunit data loading during testing for appfuse 2

2007-11-13 Thread Matt Raible
You can delete the plugins, comment them out or move them into a profile. Matt On 11/13/07, dev dev <[EMAIL PROTECTED]> wrote: > Any easy way to do this in the pom.xml? > > Thanks > dev > > - > To unsubscribe, e-mail: [EMAIL PROT

[appfuse-user] turn off schemaexport and dbunit data loading during testing for appfuse 2

2007-11-13 Thread dev dev
Any easy way to do this in the pom.xml? Thanks dev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] validator

2007-11-13 Thread Matt Raible
Is this a Struts 2 bug or an AppFuse one? If the template is in Struts, you should probably file an issue in Struts' JIRA. https://issues.apache.org/struts/secure/Dashboard.jspa Matt On 11/13/07, tibi <[EMAIL PROTECTED]> wrote: > found it > > copy the form-close-validate.ftl to your template/xht

Re: [appfuse-user] validator

2007-11-13 Thread tibi
found it copy the form-close-validate.ftl to your template/xhtml dir to overwrite the struts file. and change the int part to: <#elseif validator.validatorType = "int"> if (field.value != null) { if (<#if validator.min?exists>parseInt(field.value) <

Re: [appfuse-user] validator

2007-11-13 Thread tibi
found it in the struts core jar file. tibi tibi wrote: > ok more google: > > i found this: > http://www.nabble.com/-jira--Created%3A-%28WW-2254%29-Stringlength-validator-xhtml-template-should-be-locale-independent-tf4632858.html#a13230279 > > The freemarker template that generates client side val

Re: [appfuse-user] validator

2007-11-13 Thread tibi
ok more google: i found this: http://www.nabble.com/-jira--Created%3A-%28WW-2254%29-Stringlength-validator-xhtml-template-should-be-locale-independent-tf4632858.html#a13230279 The freemarker template that generates client side validation for the xhtml theme (template/xhtml/*form*-*close*-*validat

Re: [appfuse-user] validator

2007-11-13 Thread tibi
this generated js code should it come from the *validation.js?? *and where can i find this file?? thanks, tibi tibi wrote: > hi list, > > i use the struts validator (appfuse 2.0m5 struts hibernate and spring) > > when i want to validate an int i have no problem when the int is between > 0 and 9

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread ARCS
Yea, its kind of a nuisance. I can clearly see that my method is being called and I log the query results. I don't know where the disconnect is occurring on the response. Thanks for your help and great response. - ARCS -- View this message in context: http://www.nabble.com/DWR-help--nothin

[appfuse-user] GWT integration

2007-11-13 Thread Bron
I am among those who are interested in adding GWT functionality to an Appfuse app and wanted to start a thread to discuss the various approaches. I'm currently thinking the ideal would be be to use REST/JSON messages from Appfuse core or modular archetype. This would be along the lines of curre

RE: [appfuse-user] User Model Access Denied

2007-11-13 Thread Ding, Qin
Thank you very much for your help, Mike. From: Michael Horwitz [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 13, 2007 10:29 AM To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] User Model Access Denied Look for the bean called "methodSecurityI

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread Matt Raible
I don't think it's a bug, but it's worth investigation. Can you please enter an issue in JIRA with as many details as possible so I can try to reproduce? http://issues.appfuse.org/browse/APF Thanks, Matt On Nov 13, 2007 12:21 PM, ARCS <[EMAIL PROTECTED]> wrote: > > Yep, I'm logged in as the adm

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread ARCS
Yep, I'm logged in as the admin. -- View this message in context: http://www.nabble.com/DWR-help--nothing-happens-in-the-dwr-tests-tf4799592s2369.html#a13732750 Sent from the AppFuse - User mailing list archive at Nabble.com.

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread Matt Raible
When you try to call getUsers() from /dwr - are you logged in as an administrator? Matt On Nov 13, 2007 11:57 AM, ARCS <[EMAIL PROTECTED]> wrote: > > I should have said AppFuse 2.0 with Modular Struts2 (+ spring/hib). > > > ARCS wrote: > > > > We're on AppFuse 2.0 and the logs are actually clean.

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread ARCS
I should have said AppFuse 2.0 with Modular Struts2 (+ spring/hib). ARCS wrote: > > We're on AppFuse 2.0 and the logs are actually clean. Thanks > -- View this message in context: http://www.nabble.com/DWR-help--nothing-happens-in-the-dwr-tests-tf4799592s2369.html#a13732227 Sent from the A

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread Matt Raible
Which web framework and which persistence framework? On Nov 13, 2007 11:53 AM, ARCS <[EMAIL PROTECTED]> wrote: > > We're on AppFuse 2.0 and the logs are actually clean. Thanks > -- > View this message in context: > http://www.nabble.com/DWR-help--nothing-happens-in-the-dwr-tests-tf4799592s2369.h

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread ARCS
We're on AppFuse 2.0 and the logs are actually clean. Thanks -- View this message in context: http://www.nabble.com/DWR-help--nothing-happens-in-the-dwr-tests-tf4799592s2369.html#a13732223 Sent from the AppFuse - User mailing list archive at Nabble.com.

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread Matt Raible
Do you see anything in your logs? What framework combination are you using and what version of AppFuse? I need to know this information to see if I can reproduce. Matt On Nov 13, 2007 11:42 AM, ARCS <[EMAIL PROTECTED]> wrote: > > Same for the example userManager.getUsers. I can get to /dwr... bu

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread ARCS
Same for the example userManager.getUsers. I can get to /dwr... but the Execute method returns nothing. -- View this message in context: http://www.nabble.com/DWR-help--nothing-happens-in-the-dwr-tests-tf4799592s2369.html#a13731881 Sent from the AppFuse - User mailing list archive at Nabble.com

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread Matt Raible
Can you execute your method and get results returned from the /dwr/index.html page? If so, you likely have JavaScript errors in your page and DWR is setup correctly. Matt On Nov 13, 2007 11:29 AM, ARCS <[EMAIL PROTECTED]> wrote: > > Yep, I can get to http://localhost:8080/dwr and see my classes a

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread ARCS
Yep, I can get to http://localhost:8080/dwr and see my classes and all the information. Just clicking on the 'Execute' button to test my method doesn't do anything. -- View this message in context: http://www.nabble.com/DWR-help--nothing-happens-in-the-dwr-tests-tf4799592s2369.html#a13731802 Se

Re: [appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread Matt Raible
Do you see something when you go to http://localhost:8080/dwr - does it work? Matt On Nov 13, 2007 11:22 AM, ARCS <[EMAIL PROTECTED]> wrote: > > I've read through several posts on getting dwr to work and I believe I have > it configured properly to expose a manager I added to an AppFuse project.

[appfuse-user] DWR help -nothing happens in the dwr tests

2007-11-13 Thread ARCS
I've read through several posts on getting dwr to work and I believe I have it configured properly to expose a manager I added to an AppFuse project. When I go to /dwr/test/myManager and click the execute button next to my exposed method, nothing happens. At one point I had forgotten the bean co

Re: [appfuse-user] Incomplete "decoration" of

2007-11-13 Thread Nathan Anderson
The best way to make sure this gets fixed is to make a bug report in JIRA: http://issues.appfuse.org/browse/APF You will need to create an account but it is a painless process ;) Nathan - Original Message - From: "Daniel Kibler" <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent

Re: [appfuse-user] Duplicate Users in List

2007-11-13 Thread RoyPorter
mraible wrote: > > On 10/29/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> OK, I have now iteratively added Users to a Set in UserController. >> Is this really a necessary step for anyone wanting to use Hibernate in >> their >> AppFuse app? > > No, it shouldn't be necessary. I remember a

Re: [appfuse-user] Possible bug in UniversalManager?

2007-11-13 Thread RoyPorter
I appreciate this is some time after you asked your question, but to anybody else out there looking for a similar issue solution, check this for an explanation: http://www.nabble.com/apfuse2%2Bhibernate---GenericDaoHibernate-getAll-returns-duplicate-entities-%28users%29-tf3227657s2369.html#a89662

Re: [appfuse-user] User Model Access Denied

2007-11-13 Thread Michael Horwitz
Look for the bean called "methodSecurityInterceptor" in security.xml - it is configured to only allow administrators to access the user list. If you want ordinary users to access this method you need to change the configuration of this bean. Please note that displaying the list of users to all appl

[appfuse-user] User Model Access Denied

2007-11-13 Thread Ding, Qin
Appfuse 1.9.4/DB2/JSF I need to build a dropdown for all the users. Follow the CountryModel sample, to build a UserModel. When login as admin, it is fine. When I Login as user, userModel.getUsers() got error: "org.acegisecurity.AccessDeniedException: Access is denied". My UserModel does not

Re: [appfuse-user] Future of Spring MVC

2007-11-13 Thread kkus
I think this message-driven, event-based service has already been achieved in Flex. Flex's actionScript with aid of mxml is doing what SOFEA is trying. For example, if there is a change in db and a service in midder tier has been implemented to retrieve it, this change will be automatically update

Re: [appfuse-user] Future of Spring MVC

2007-11-13 Thread Matt Raible
On Nov 13, 2007 8:03 AM, Carlos Ortiz <[EMAIL PROTECTED]> wrote: > You are quite right. I beg you all my excuses. You are right, Spring forums > should be the place to ask. > > What I am trying to get at is with all these web frameworks around, does > this framework have a chance to survive? Is i

Re: [appfuse-user] Incomplete "decoration" of

2007-11-13 Thread Daniel Kibler
Then this appears to be an Appfuse 2 problem. As Matt suggested I set up AppFuse Light and added a Boolean property to User and a to userForm.jsp. In Appfuse, the form layout is controlled by list tags. In Appfuse Lite, the layout is controlled by table tags. I assume this means the standard S

Re: [appfuse-user] Future of Spring MVC

2007-11-13 Thread Carlos Ortiz
You are quite right. I beg you all my excuses. You are right, Spring forums should be the place to ask. What I am trying to get at is with all these web frameworks around, does this framework have a chance to survive? Is it worth usign in a production system? Which new integrations are at hand?

Re: [appfuse-user] Appfuse/Tapestry debug and logging

2007-11-13 Thread caarney
Yes, I have - but I set it to WARN level, which didn't produce any output (although the exception was thrown - a bug?) I tried setting it to DEBUG and it works now, thanks for pointing me the right direction. mraible wrote: > > Have you tried modifying your log4j.xml to add loggers for Tapestr

Re: [appfuse-user] Future of Spring MVC

2007-11-13 Thread Matt Raible
To be fair, your question: "I wonder what would be the future of Spring MVC? Any hints?" ... is pretty vague. What specifically are you looking for? You might have better luck asking this question on the Spring forums since they are the ones that develop Spring MVC. Matt On Nov 13, 2007 7:27 AM

[appfuse-user] On Sitemesh and Tiles

2007-11-13 Thread Carlos Ortiz
This a question I have been willing to ask. I am using the SiteMesh library for page decoration and in some place I read that this does not work seamlessly with JSF, is this true or false? Does Tiles have this very same problem?

Re: [appfuse-user] Future of Spring MVC

2007-11-13 Thread Carlos Ortiz
What does this have to do with the future of Spring MVC as it is now. On Nov 12, 2007 3:08 PM, Sanjiv Jivan <[EMAIL PROTECTED]> wrote: > I would really like to integrate GWT-Ext with AppFuse, if only I can find > the time :( But I'll certainly keep it on my todo list. > > Sanjiv > > > On 11/12/07

[appfuse-user] validator

2007-11-13 Thread tibi
hi list, i use the struts validator (appfuse 2.0m5 struts hibernate and spring) when i want to validate an int i have no problem when the int is between 0 and 999 but when i go over 1000 the javascript generates a code like this: // field name: subscriber.user.lastName // validator name

Re: [appfuse-user] SOLVED - AppFuse2 + Struts2 -

2007-11-13 Thread Matt Raible
Thanks Rob! On Nov 13, 2007 5:27 AM, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi Matt, > > On 12 Nov 2007 at 23:33, Matt Raible wrote: > > > On 11/12/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > I think there's no such thing as too much documentation. I FAQ would > > be great - you can expand it to

Re: [appfuse-user] Appfuse/Tapestry debug and logging

2007-11-13 Thread Matt Raible
Have you tried modifying your log4j.xml to add loggers for Tapestry's classes - org.apache.tapestry? Matt On Nov 13, 2007 5:50 AM, caarney <[EMAIL PROTECTED]> wrote: > > Hello everybody, > I'm developing an application using Tapestry+Hibernate version of Appfuse 2. > I would like to know if there

[appfuse-user] Appfuse/Tapestry debug and logging

2007-11-13 Thread caarney
Hello everybody, I'm developing an application using Tapestry+Hibernate version of Appfuse 2. I would like to know if there is any way to enable more detailed debug output and logging of Appfuse or Tapestry framework. Using the newest version of Tapestry isn't vere comfortable these days, because

Re: [appfuse-user] SOLVED - AppFuse2 + Struts2 -

2007-11-13 Thread Rob Hills
Hi Matt, On 12 Nov 2007 at 23:33, Matt Raible wrote: > On 11/12/07, Rob Hills <[EMAIL PROTECTED]> wrote: > I think there's no such thing as too much documentation. I FAQ would > be great - you can expand it to a tutorial later if you have time. OK, I've done the FAQ - it's here: http://appfuse.

Re: [appfuse-user] Couple of questions related to Appfuse

2007-11-13 Thread cloude1080
Many thanks Matt The steps to reproduce are: 1/ I create a basic Spring MVC project 2/ I create 2 entities like below @Entity public class Division { @Id @Column (name="DIV_ID") private Integer divId; @Column (name="DIV_NAME", length=30) private String