Re: [appfuse-user] CruiseControl config.xml

2007-06-20 Thread Phread
Thanks Matt. A gave a 10mn trial at Hudson a year ago or so. I thought it lacked some reporting features compared to CC. Anyway I'll take it a look to see if it supports the flat directory structure w/ Maven 2. regards, Phread. mraible wrote: > > Here's the CruiseControl config.xml I've been

[appfuse-user] Ajax call with XMLHttpRequest in Appfuse 1.94

2007-06-20 Thread Srini Bobbala
I am using Appfuse 1.94 with struts: My sample code for Ajax call check below: "getEventsbyapsid" is method in my action class which returns a string, form "eagdForm.jsp" I believe, am making mistake in url variable values, url="eagdForm.do?methodName=getEventsbyapsid&selectedO

Re: [appfuse-user] Getting user information from JSF pages

2007-06-20 Thread snew2k5
It's strange that I can't use other property names such as fullName, firstName, lastName, email, etc. as declared in User class. Am I making any wrong? Thanks a lot. BTW, AppFuse 1.9.4 also includes acegi-jsf beside acegi from acegisecurity.org, right? There is no description in README.txt in lib

Re: [appfuse-user] Getting user information from JSF pages

2007-06-20 Thread Matt Raible
You can pass it any of property names and it'll call the getter methods on the user object. So you could use "fullName" and it'd call getFullName(). Matt On 6/20/07, snew2k5 <[EMAIL PROTECTED]> wrote: Right now I only know to use . Are there any other valid values to pass to "operation" attrib

Re: [appfuse-user] Getting user information from JSF pages

2007-06-20 Thread snew2k5
Right now I only know to use . Are there any other valid values to pass to "operation" attribute? Thanks. mraible wrote: > > The short answer is no, there is no session object with the user > information in it. However, you should be able to use Acegi's tags to > get any of the user's informati

Re: [appfuse-user] Getting user information from JSF pages

2007-06-20 Thread Matt Raible
The short answer is no, there is no session object with the user information in it. However, you should be able to use Acegi's tags to get any of the user's information. Matt On 6/20/07, snew2k5 <[EMAIL PROTECTED]> wrote: Thanks for your reply. The link only shows how to print the username usi

Re: [appfuse-user] ApplicationResources.properties to javascript?

2007-06-20 Thread adriel manalansan
Thanks Matt...God bless u. On Wed, 2007-06-20 at 07:15 -0600, Matt Raible wrote: > If your JavaScript is in a JSP, yes - just use key="key.name"/>. If it's in a .js file, no. However, you can have > your JavaScript served up by a JSP if you really need this > functionality. Just use the following

Re: [appfuse-user] Getting user information from JSF pages

2007-06-20 Thread snew2k5
Thanks for your reply. The link only shows how to print the username using Acegi tag. Is there any way to get such info using pure JSF EL? Is there any session scope object storing the info? Thanks in advance. mraible wrote: > > This should help: > > http://cagataycivici.wordpress.com/2006/01/

Re: [appfuse-user] How to Appfuse2 without Internet?

2007-06-20 Thread Matt Raible
You should be able to zip up your $USER_HOME/.m2 directory and expand it in the same location when you get home. We've also done this for you if you'd like to try download all the dependencies at once: https://appfuse.dev.java.net/files/documents/1397/58379/appfuse-2.0-m5-dependencies.zip Instru

[appfuse-user] How to Appfuse2 without Internet?

2007-06-20 Thread Jesfre
I want to build and work with a new project, but I haven't an Internet connection in my home. In my job's computer I have the complete appfuse2 enviroment. Wich file I must to copy to build and work with a new apllication in home? -- View this message in context: http://www.nabble.com/How-to-App

Re: [appfuse-user] CruiseControl config.xml

2007-06-20 Thread Matt Raible
Here's the CruiseControl config.xml I've been using for AppFuse 2.x: http://static.appfuse.org/cruisecontrol/config.xml However, you should know that I've recently quit using CruiseControl and started using Hudson (http://hudson.dev.java.net). I think it's one of the best open source CI servers

[appfuse-user] CruiseControl config.xml

2007-06-20 Thread Phread
Hi, I'm currently refactoring a legacy multi-projects app, using WSAD 5.1.2 (flat directory structure), Maven 2, CVS and CruiseControl. I can't use Appfuse per se, but I'm definitely inspired by some of the good ideas. I'm interested in taking a look at Appfuse 2 cruisecontrol's config.xml, but I

Re: [appfuse-user] Parser Exception

2007-06-20 Thread Matt Raible
If you run "mvn -U", do you get a new version of the plugin. In the archetype.xml, we exclude filtering for menu.jsp, so it's strange that this error is happening. Also, even when parse errors happen, they're usually warnings, not errors. Is your system classpath clean, or do you have certain JARs

Re: [appfuse-user] referring to components from Javascript

2007-06-20 Thread Ron Anderson
I've used something like this to get the component id and then set the value of a component later for a DWR driven display. var filenameId = document.getElementById("importCdrs:filename"); Where I have a form called importCdrs and a component called filename. Not sure if this is what you're l

[appfuse-user] referring to components from Javascript

2007-06-20 Thread jeremiah.lopez
This is a probably a really stupid question, so please be gentle How do I refer to components from Javascript with a JSF page? I've got a drop down list with an id of availableTypes embedded in a form with an id of typeForm. I thought you would do it like so: document.typeForm.availableTyp

Re: [appfuse-user] Parser Exception

2007-06-20 Thread smithla
I noticed a few things. First, when I try to run an archetype, it fails and suggests I download the jar and directly install it in my repository. Easy enough. Then I rerun the command and get the Parser Exception I sent before. I'm starting to think that because I'm deep inside my workplace, I'm

Re: [appfuse-user] DWR and Appfuse tutorial?

2007-06-20 Thread mbrz2477
Yeah, I've already got that far. I'm just looking for something that shows me how to make managers visible to DWR and then maybe examples of how to use them in Javascript. For example, I want to be able to query our db using a dao that's called by a manager once a user selects an item in a dropd

Re: [appfuse-user] DWR and Appfuse tutorial?

2007-06-20 Thread Matt Raible
DWR is already pre-integrated, so it should just be a matter of adding your DWR configuration to WEB-INF/dwr.xml. There's one merged in by AppFuse, so you may have to copy it from target/appname-version/WEB-INF if you don't have it in your project. Matt On 6/20/07, mbrz2477 <[EMAIL PROTECTED]> w

[appfuse-user] DWR and Appfuse tutorial?

2007-06-20 Thread mbrz2477
Is there a tutorial on how to setup DWR with Appfuse and make the beans visible from Javascript? I thought this tutorial would help me, but it's a broken link :-( http://resmoked.net:8080/JSPWiki/Wiki.jsp?page=AppFuseAjaxWithDWR -- View this message in context: http://www.nabble.com/DWR-and-Ap

Re: [appfuse-user] Need other jar????

2007-06-20 Thread Mcdiel
Oh ok Tnxs for the answer :D... mraible wrote: > > I've seen this before on this list and don't know of a solution. I > haven't had to work behind a proxy so I haven't spent any time trying > to solve it. You might try setting proxy settings in the antrun plugin > where it calls Canoo. You a

Re: [appfuse-user] Data Access Error when editing an object.

2007-06-20 Thread Matt Raible
Have you tried implementing Preparable to preload your object from the database before applying request parameters to it? If you don't have any user.* fields on your form, you might consider using CascadeType.NONE. If you'd like to see how Preparable is used, UserAction.java uses it - you can vie

Re: [appfuse-user] Data Access Error when editing an object.

2007-06-20 Thread sarat.pediredla
Ah sorry! Struts 2 with Appfuse 2.0 M5 mraible wrote: > > Which web framework are you using? > > Matt > > On 6/20/07, sarat.pediredla <[EMAIL PROTECTED]> wrote: >> >> I get the following error when I try to objectManager.save(object) >> through an >> edit interface. >> >> Object of class [org

Re: [appfuse-user] Excluding certain pages from the default menu

2007-06-20 Thread mark.forster
Thanks again for your opinions on this. Although i still have the same problem I have enough info now to investigate further Cheers again mraible wrote: > > On 6/20/07, mark.forster <[EMAIL PROTECTED]> wrote: >> >> Thanks matt >> >> Tried what you suggested but it doesnt work either >> >> My

Re: [appfuse-user] Need other jar????

2007-06-20 Thread Matt Raible
I've seen this before on this list and don't know of a solution. I haven't had to work behind a proxy so I haven't spent any time trying to solve it. You might try setting proxy settings in the antrun plugin where it calls Canoo. You also might contact your IT department and see if it's possible f

Re: [appfuse-user] Data Access Error when editing an object.

2007-06-20 Thread Matt Raible
Which web framework are you using? Matt On 6/20/07, sarat.pediredla <[EMAIL PROTECTED]> wrote: I get the following error when I try to objectManager.save(object) through an edit interface. Object of class [org.appfuse.model.User] with identifier [1]: optimistic locking failed; nested exceptio

Re: [appfuse-user] Need other jar????

2007-06-20 Thread Mcdiel
Ok Other question.. Matt.test canoo error when the proxy is enabled in settings of maven mraible wrote: > > The warpath plugin is what allows Maven to resolve dependencies from > WARs, which it normally doesn't do. AFAIK, Candy for AppFuse (an > Eclipse Plugin) solves this problem:

[appfuse-user] Data Access Error when editing an object.

2007-06-20 Thread sarat.pediredla
I get the following error when I try to objectManager.save(object) through an edit interface. Object of class [org.appfuse.model.User] with identifier [1]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or

Re: [appfuse-user] Excluding certain pages from the default menu

2007-06-20 Thread Matt Raible
On 6/20/07, mark.forster <[EMAIL PROTECTED]> wrote: Thanks matt Tried what you suggested but it doesnt work either My first thought was, as you said, to change the order of the decorators in the XML file hoping it would effect their presendence but after the switch there is know difference. I

Re: [appfuse-user] Parser Exception

2007-06-20 Thread Matt Raible
That's pretty strange - it doesn't happen for me. I tried the same command and it worked for me - I uploaded the resulting project to http://static.appfuse.org/downloads/jsfbasictest1.tar.gz. Matt On 6/20/07, Lance Smith <[EMAIL PROTECTED]> wrote: I'm new to Appfuse but not to Maven. Everyth

Re: [appfuse-user] Excluding certain pages from the default menu

2007-06-20 Thread mark.forster
Thanks matt Tried what you suggested but it doesnt work either My first thought was, as you said, to change the order of the decorators in the XML file hoping it would effect their presendence but after the switch there is know difference. I then figured it was the string used for the match (t

[appfuse-user] Parser Exception

2007-06-20 Thread Lance Smith
I'm new to Appfuse but not to Maven. Everything is installed(java 5, maven 2.0.6) except Mysql. I plan to use Oracle, but I am waiting for the dba to set up test tablespaces for me. I run the following: C:\apps\workspace>mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeArtifac

Re: [appfuse-user] Need other jar????

2007-06-20 Thread Matt Raible
The warpath plugin is what allows Maven to resolve dependencies from WARs, which it normally doesn't do. AFAIK, Candy for AppFuse (an Eclipse Plugin) solves this problem: http://candy4appfuse.sf.net Matt On 6/20/07, Mcdiel <[EMAIL PROTECTED]> wrote: I use eclipse 3.2 What is the warpath plugi

Re: [appfuse-user] Need other jar????

2007-06-20 Thread Mcdiel
I use eclipse 3.2 What is the warpath plugin?? mraible wrote: > > When do you get this? From the command line or in your IDE? If it's > the latter, which IDE are you using? I suspect it may be a problem > with your IDE supporting the warpath plugin. > > Matt > > On 6/20/07, Mcdiel <[EMAIL

Re: [appfuse-user] Need other jar????

2007-06-20 Thread Matt Raible
When do you get this? From the command line or in your IDE? If it's the latter, which IDE are you using? I suspect it may be a problem with your IDE supporting the warpath plugin. Matt On 6/20/07, Mcdiel <[EMAIL PROTECTED]> wrote: Hi The errors always follow me :( What I need for fix this err

[appfuse-user] Need other jar????

2007-06-20 Thread Mcdiel
Hi The errors always follow me :( What I need for fix this error --> the import org.springframework cannot be resolved I need other jar??? I working in the tutorial of appfuse2 and struts 2 Thanks for the help :) -- View this message in context: http://www.nabble.com/Need-other-jar-tf395

Re: [appfuse-user] Excluding certain pages from the default menu

2007-06-20 Thread Matt Raible
I would try moving your install decorator so it comes after the default one. If that doesn't work, add /WEB-INF/pages/performInstall.jsp as a pattern as well. Since SiteMesh is mapped to both REQUEST and FORWARD, you need to include both patterns. Matt On 6/20/07, mark.forster <[EMAIL PROTECTED

Re: [appfuse-user] Excluding certain pages from the default menu

2007-06-20 Thread mark.forster
Can you elaborate as to how to do this. I am trying to do this too. I know what i need to do with the decorators but my implementation does not seem to work (See below) Basically i want an install page to NOT be decorated with the default.jsp but with the install.jsp. So, when the user types "p

Re: [appfuse-user] How to browse pom structure in Eclipse for M5 pom files?

2007-06-20 Thread Matt Raible
I don't believe the tool you're asking for exists. However, I have put a list of commonly used commands on the following page: http://appfuse.org/display/APF/Maven+2 If anyone would like to enhance this page, they're more than welcome - just go to View > Account > Sign Up and you should be able

Re: [appfuse-user] How to browse pom structure in Eclipse for M5 pom files?

2007-06-20 Thread kkus
In process of setting up M5 I have experienced different maven "commands" like, mvn appfuse:full-source mvn eclipse:eclipse mvn jetty:run-war I am wondering how I can browse these commands and their dependancy in their pom files in Eclipse env. Just like I can browse build.xml file for Ant in Ec

Re: [appfuse-user] Build Error: maven-archetype-plugin does not exist or no valid version could be found

2007-06-20 Thread Arash.R
I am behind proxy and that was my first guess but where would I change any settings since I'm depending on maven I'm impressed by your quick response Thanks a million mraible wrote: > > Are you behind a proxy server? If so, you might want to look at: > > http://maven.apache.org/guides/mini/gu

Re: [appfuse-user] Build Error: maven-archetype-plugin does not exist or no valid version could be found

2007-06-20 Thread Matt Raible
Are you behind a proxy server? If so, you might want to look at: http://maven.apache.org/guides/mini/guide-proxies.html Matt On 6/20/07, Arash.R <[EMAIL PROTECTED]> wrote: Thanks in advance to take a look at this In the process of creating a project. I followed the steps as described. Java a

[appfuse-user] Weird issue

2007-06-20 Thread Martin Ravell
Hi Matt, That seems to work around the issue. Will take a closer look to see if I can work out the root cause but for now I have a successful deployment on Windows and Linux with both Jetty and Tomcat on both platforms. Thank you so much! Regards Marty It looks like the 403 page is thrown an

Re: [appfuse-user] How to browse pom structure in Eclipse for M5 pom files?

2007-06-20 Thread Matt Raible
What do you mean by pom file structure? Matt On 6/20/07, kkus <[EMAIL PROTECTED]> wrote: I am using basic for Spring MVC. mraible wrote: > > Are you using a basic or modular archetype? > > Matt > > > On 6/19/07, kkus <[EMAIL PROTECTED]> wrote: >> >> I have already installed Maven 2.x Integra

[appfuse-user] Build Error: maven-archetype-plugin does not exist or no valid version could be found

2007-06-20 Thread Arash.R
Thanks in advance to take a look at this In the process of creating a project. I followed the steps as described. Java and Maven are setup correctly C:\Dev>java -version java version "1.6.0_01" Java(TM) SE Runtime Environment (build 1.6.0_01-b06) Java HotSpot(TM) Client VM (build 1.6.0_01-b06, m

Re: [appfuse-user] How to browse pom structure in Eclipse for M5 pom files?

2007-06-20 Thread kkus
I am using basic for Spring MVC. mraible wrote: > > Are you using a basic or modular archetype? > > Matt > > > On 6/19/07, kkus <[EMAIL PROTECTED]> wrote: >> >> I have already installed Maven 2.x Integration for Eclipse 3.2.2 >> (http://maven.apache.org/eclipse-plugin.html), but still can't

Re: [appfuse-user] Weird issue

2007-06-20 Thread Matt Raible
It looks like the 403 page is thrown an error. I'd suggest excluding your 40* pages from decoration in decorators.xml (you may have to create this file in your WEB-INF directory to override the one in AppFuse). /40*.jsp /*ajax=true* /scripts/dojo/* /struts/dojo/*

[appfuse-user] Weird issue

2007-06-20 Thread Martin Ravell
I have a 2m5 app working nicely on my XP development box rnning in Jetty and also in Tomcat 5.0. I compile up the war on my Linux box and consistantly get the Exception below. This happens when I click on the Add button in any program generated using appfuse:gen / appfuse:install. The weird thi

Re: [appfuse-user] ApplicationResources.properties to javascript?

2007-06-20 Thread Matt Raible
If your JavaScript is in a JSP, yes - just use . If it's in a .js file, no. However, you can have your JavaScript served up by a JSP if you really need this functionality. Just use the following at the top of the page: <%@ page language="java" contentType="text/javascript" %> Matt On 6/20/07, a

Re: [appfuse-user] Libraries integrated in AppFuse

2007-06-20 Thread Matt Raible
Did you read the README.txt in the "lib" directory? On 6/20/07, snew2k5 <[EMAIL PROTECTED]> wrote: Hi all, I'd like to know some info about libraries integrated in AppFuse 1.9.4(name and version, etc.). Thanks a lot. -- View this message in context: http://www.nabble.com/Libraries-integrated-

Re: [appfuse-user] Getting user information from JSF pages

2007-06-20 Thread Matt Raible
This should help: http://cagataycivici.wordpress.com/2006/01/19/acegi_jsf_components_hit_the/ On 6/20/07, snew2k5 <[EMAIL PROTECTED]> wrote: Hi all, I'm using AppFuse 1.9.4 + JSF + facelets. I'm wondering if there is a way to check user has logged in or not and how to get user information fr

[appfuse-user] ApplicationResources.properties to javascript?

2007-06-20 Thread adriel manalansan
Hello to everyone, can I output a message from ApplicationResources.properties in my javascript alert()? How? I am using appfuse 1.9.4 webwork. Thanks in advance. God bless u. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

[appfuse-user] DWR - Question

2007-06-20 Thread VJ22
Hi, I got a simple question regarding DWR converters in Appfuse. Suppose I get a customer object back from a DWR request if the customers email address is null, and I do this $("email").value = customerObj.email customerObj is the Customer object that comes back from DWRThis returns a null

Re: [appfuse-user] need help for decorators

2007-06-20 Thread mark.forster
Hi, i am having the same problem. Could you let me know how you solved this thanks ;-) andrea cossu-2 wrote: > > Ok, i discovered what i have to do! :-) > > andrea > > -- > andrea cossu > "andrea cossu" <[EMAIL PROTECTED]> ha scritto nel > messaggio news:[EMAIL PROTECTED] >>I need to appl

Re: [appfuse-user] Appfuse New user

2007-06-20 Thread nityan
No reason as such. My colleague had downloaded 1.8.2 source, so i just thought of trying with the same. Thought of doing with 1.8.2 and then do the latest. I am fine with ANT. But I guess I will try setting up AppFuse 2.0 and will download the source, MySQL 5.0 and others. Thanks a lot Mike. That

Re: [appfuse-user] PersonActionTest in IDEA

2007-06-20 Thread arvinder
You are right Mike. My problem was that as per instructions in the tutorial I was creating the user in onSetUpBeforeTransaction() but did not have corresponding onTearDownAfterTransaction() to remove the test user. Thanks, Arvinder Michael Horwitz wrote: > > The test cases normall extend > Abstr

[appfuse-user] Libraries integrated in AppFuse

2007-06-20 Thread snew2k5
Hi all, I'd like to know some info about libraries integrated in AppFuse 1.9.4 (name and version, etc.). Thanks a lot. -- View this message in context: http://www.nabble.com/Libraries-integrated-in-AppFuse-tf3951242s2369.html#a11210051 Sent from the AppFuse - User mailing list archive at Nabble

Re: [appfuse-user] Appfuse New user

2007-06-20 Thread Michael Horwitz
It all depends on your requirements. If you are more comfortable with Ant, then AppFuse 1.9.4 is the latest stable version. Is there any particular reason you are using 1.8.2? There are numerous ways to create AppFuse based applications. Candy is designed to make life easier for those who want to

Re: [appfuse-user] Appfuse New user

2007-06-20 Thread nityan
Thanks Mike. I am not working with AppFuse 2.0. In fact I have downloaded the source of AppFuse 1.8.2...the very basic one. I could run the Sample App and could create user and user roles in MySQL DB. If we dont have Candy for AppFuse for versions less than 2, then we cannot create any applicatio

Re: [appfuse-user] Appfuse New user

2007-06-20 Thread Michael Horwitz
It sounds as if your project is based on AppFuse 1.9.4? If this is the case, then Candy for AppFuse will not be of use - the Candy Eclipse plugin is designed for AppFuse 2.0. In order to get started I would recommend you work your way through the tutorials: for AppFuse 1.9.4 start here: http://ra

Re: [appfuse-user] Appfuse New user

2007-06-20 Thread nityan
Hi, I am very new to AppFuse. I have downloaded MySQL 4.1.22, tomcat 5.0.28, and all other requirements. I have run the Sample Application as per step by step instructions provided in AppFuse Quickstart. Still I am not very clear with the functionality of what it is doing. If you could develop a

[appfuse-user] Getting user information from JSF pages

2007-06-20 Thread snew2k5
Hi all, I'm using AppFuse 1.9.4 + JSF + facelets. I'm wondering if there is a way to check user has logged in or not and how to get user information from JSF pages. Thanks a lot. -- View this message in context: http://www.nabble.com/Getting-user-information-from-JSF-pages-tf3950856s2369.html#a