Re: [appfuse-user] Appfuse Maven Plugin

2007-11-29 Thread Matt Raible
After you've checked out the plugin, you can modify its templates and  
then run "mvn install" to install it in your local repo. Then make  
your project match the version and you should use your modified  
version of the plugin.


Matt

On Nov 29, 2007, at 1:03 AM, Rene Guenther wrote:


I did that in my source folder not in my project folder.
I guess I have to put the plugin under my project folder then? I am  
just anxious to put it there unless I am sure that this is the  
right thing to do. I somehow (dunno how) messed up my last appfuse  
tutorial project and I dont want to do it again ;-)


On Wed, 28 Nov 2007 23:07:21 -0700
 Matt Raible <[EMAIL PROTECTED]> wrote:
You should be able to modify the templates and then run "mvn  
install". You'll likely need to change the version number in your  
pom.xml to match the installed version.

Matt
On Nov 28, 2007, at 10:52 PM, René Günther wrote:

If I check out the plugin:
svn co
https://appfuse.dev.java.net/svn/appfuse/trunk/plugins/appfuse-  
maven-plugin

appfuse-maven-plugin
Where should I move the new folder appfuse-maven-plugin, so that   
the code

generation works with my own templates?


René


 
-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] Appfuse Maven Plugin

2007-11-29 Thread Rene Guenther

I did that in my source folder not in my project folder.
I guess I have to put the plugin under my project folder then? I am 
just anxious to put it there unless I am sure that this is the right 
thing to do. I somehow (dunno how) messed up my last appfuse tutorial 
project and I dont want to do it again ;-)


On Wed, 28 Nov 2007 23:07:21 -0700
 Matt Raible <[EMAIL PROTECTED]> wrote:
You should be able to modify the templates and then run "mvn 
install". You'll likely need to change the version number in your 
pom.xml to match the installed version.


Matt

On Nov 28, 2007, at 10:52 PM, René Günther wrote:


If I check out the plugin:
svn co
https://appfuse.dev.java.net/svn/appfuse/trunk/plugins/appfuse- 
maven-plugin

appfuse-maven-plugin
Where should I move the new folder appfuse-maven-plugin, so that  
the code

generation works with my own templates?


René


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] Preopopulating a production database

2007-11-29 Thread Michael Horwitz
I'm not sure I understand why the tests are passing in your development
environment but failing in your production environment? From the stack trace
in your first email it simply looks like you do not have the correct data in
your sample-data.xml file.

Mike

On 11/28/07, Laith Al-Khateeb <[EMAIL PROTECTED]> wrote:
>
> Yes, I find this handy for pre-populating the database with meaningful
> data for my lookup tables and things like that (and I assume that's why it's
> been there in AppFuse), but in effect it is not possible to use it because
> of the test failures you get.
>
> Laith
>
>
>  On 11/28/07, Michael Horwitz <[EMAIL PROTECTED]> wrote:
> >
> > If you are running the tests against a production database surely you
> > should run the data population piece as well?
> >
> > Mike
> >
> >
> >  On 11/28/07, Laith Al-Khateeb <[EMAIL PROTECTED] > wrote:
> > >
> > > Skipping tests skips the data population all together.
> > >
> > > Laith
> > >
> > >
> > >  On 11/21/07, Allan Ang <[EMAIL PROTECTED] > wrote:
> > > >
> > > >
> > > > try mvn:jetty-run -Dmaven.test.skip=true
> > > > --
> > > > View this message in context:
> > > > http://www.nabble.com/Preopopulating-a-production-database-tf4848327s2369.html#a13873159
> > > > Sent from the AppFuse - User mailing list archive at 
> > > > Nabble.com
> > > > .
> > > >
> > > > -
> > > >
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> >
>


Re: [appfuse-user] appfuse:full-source giving connection exception

2007-11-29 Thread Mani_N


Yes. I had tried the following but the error is still there

1. Giving ANT_OPTS as -Dhttp.proxyHost=proxy -Dhttp.proxyPort=8080 in
environment variables
2. Giving ANT_ARGS as -autproxy in environment variables


Can anyone have idea is there any other way of giving this in ant..




mraible wrote:
> 
> It looks like Ant's GET task is failing. You might try setting your  
> proxy settings for Ant. The following explains how to do this for Ant  
> 1.7 - which AppFuse uses in AMP:
> 
> http://ant.apache.org/manual/proxy.html
> 
> Matt
> 
> On Nov 29, 2007, at 12:45 AM, Mani_N wrote:
> 
>>
>>
>> Environment Used
>>
>>Maven: 2.0.7
>>Appfuse Maven plugin: 2.0.1
>>Archetype: Spring MVC Basic with Hibernate
>>DB: SQLServer
>>Java: 1.5
>>
>> I have configured proxy details in both maven and svn even then am  
>> getting
>> connection exception...
>>
>> When am executing mvn appfuse:full-source am getting following
>>
>>
>> exception Not able to understand the problem please provide  
>> the
>> solution.
>>
>>
>>
>>
>> [INFO] [appfuse:full-source]
>> [INFO] [AppFuse] Installing source from data-common module...
>> [INFO] [AppFuse] Installing source from hibernate module...
>> [INFO] [AppFuse] Installing source from service module...
>> [INFO] [AppFuse] Installing source from web-common module...
>> [INFO] [AppFuse] Installing source from spring module...
>> [INFO] [AppFuse] Source successfully exported, modifying  
>> pom.xml...
>> [INFO] [AppFuse] Removing maven-warpath-plugin...
>> [INFO] [AppFuse] Adding dependencies from root module...
>> [INFO]
>>
>>> - 
>>> -
>> -- 
>> [ERROR] FATAL ERROR
>> [INFO]
>>
>>> - 
>>> -
>> --
>> [INFO] java.net.ConnectException: Connection refused: connect
>> [INFO]
>>
>>> - 
>>> -
>> --
>> [INFO] Trace
>> java.net.ConnectException: Connection refused: connect
>> at org.apache.tools.ant.taskdefs.Get.execute
>>> (Get.java:80)
>> at
>>
>>> org.appfuse.mojo.installer.InstallSourceMojo.addModuleDependencies  
>>> (In
>> stallSourceMojo.java:648)
>> at
>>
>>> org.appfuse.mojo.installer.InstallSourceMojo.addModuleDependencies
>>> (In
>> stallSourceMojo.java :621)
>> at
>>> org.appfuse.mojo.installer.InstallSourceMojo.execute
>> (InstallSourceMoj
>> o.java:186)
>> at
>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo
>> (DefaultPlugi
>> nManager.java :443)
>> at
>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
>> ultLifecycleExecutor.java:539)
>> at
>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
>> Goal(DefaultLifecycleExecutor.java :493)
>> at
>>
>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal  
>>> (Defau
>> ltLifecycleExecutor.java:463)
>> at
>>
>> -- 
>> View this message in context: http://www.nabble.com/appfuse%3Afull- 
>> source-giving-connection-exception-tf4895562s2369.html#a14020713
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/appfuse%3Afull-source-giving-connection-exception-tf4895562s2369.html#a14021586
Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[appfuse-user] hibernate reverse engineering table options

2007-11-29 Thread jbarroso

Hi all!,

I'm having problems with hibernate reverse engineering options in appfuse
2.0.1.

I'm trying to change the generated pojo's name adding a  config
element in hibernate.reveng.xml:

---

http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd"; >



























---

Running appfuse:gen-model goal I always get AppUser.java instead of
MyUser.java.

I've tried also with other options inside table element like 
with same results.

Tested in Mysql and Oracle.

Thanks!,
-Jose.
-- 
View this message in context: 
http://www.nabble.com/hibernate-reverse-engineering-table-options-tf4897718s2369.html#a14027367
Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] hibernate reverse engineering table options

2007-11-29 Thread Michael Horwitz
On 11/29/07, jbarroso <[EMAIL PROTECTED]> wrote:
>
>
> Hi all!,
>
> I'm having problems with hibernate reverse engineering options in appfuse
> 2.0.1.
>
> I'm trying to change the generated pojo's name adding a  config
> element in hibernate.reveng.xml:
>
> ---
> 
>  SYSTEM
> "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd"; >
>
> 
>
>
>
>
>
> hibernate-type="boolean"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
>
> ---
>
> Running appfuse:gen-model goal I always get AppUser.java instead of
> MyUser.java.


When I tried a similar exercise with SQL Server I had to specify both the
schema and the catalog before Hibernate tools would recognise the table:

 

This pretty much applied to everything else as well.

Mike


> I've tried also with other options inside table element like 
> with same results.
>
> Tested in Mysql and Oracle.
>
> Thanks!,
> -Jose.
> --
> View this message in context:
> http://www.nabble.com/hibernate-reverse-engineering-table-options-tf4897718s2369.html#a14027367
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [appfuse-user] Preopopulating a production database

2007-11-29 Thread Laith Al-Khateeb
Yes you're right, that's because the ActionTest cases expect negative IDs
(-1, -2) to be in the database, which are used in sample-data.xml  but that
I didn't specify in default-data.xml (which is used when prod is activated).

Ok, to step back a bit. If I was not going to put any data for my tables in
default-data.xml, then the tests will still fail when activating the prod
profile and that's because the ActionTests always assume that there will be
records with negative IDs in the database.

This is from action-test.ftl:

public void testEdit() throws Exception {
log.debug("testing edit...");
action.${setIdMethodName}(-1L);
assertNull(action.get${pojo.shortName}());
assertEquals("success", action.edit());
assertNotNull(action.get${pojo.shortName}());
assertFalse(action.hasActionErrors());
}


So in effect, the line of "action.${setIdMethodName}(-1L);" will always fail
in prod.

Now the question is whether this is a bug or whether it is there by design
(to prevent people from running tests in prod), in which case loading data
from default-data.xml becomes an unusable feature.

Laith


[appfuse-user] Odd error: menus get all messed up when executing jetty:run instead of jetty:run-war

2007-11-29 Thread syg6

Using Appfuse 2, Hibernate+Spring MVC non-modular.

Has anyone ever seen this? I am trying to use 'jetty:run' instead of
'jetty:run-war' (so hot-swapping of classes will work) and when I do my
menus get all garbled up. They appear at the top of the screen, one next to
or on top of another. No drop-down is performed but roll-over seems to work,
anyway the colors change. And visible (top-level, since there is no
drop-down) links work. In fact the whole app works, just not the menus.

The html/css looks the same as when I use 'jetty:run-war'. Odd indeed.

Anyone ever seen this?

Thanks!
Bob
-- 
View this message in context: 
http://www.nabble.com/Odd-error%3A-menus-get-all-messed-up-when-executing-jetty%3Arun-instead-of-jetty%3Arun-war-tf4898060s2369.html#a14028582
Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] hibernate reverse engineering table options

2007-11-29 Thread jbarroso



On 11/29/07, jbarroso <[EMAIL PROTECTED]> wrote:
>
>
>When I tried a similar exercise with SQL Server I had to specify both the
>schema and the catalog before Hibernate tools would recognise the table:

> 

>This pretty much applied to everything else as well.

Mike thanks for response.

I've testing in mysql adding schema and/or catalog attributes and doesn't
work.

-Jose.
-- 
View this message in context: 
http://www.nabble.com/hibernate-reverse-engineering-table-options-tf4897718s2369.html#a14028726
Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] hibernate reverse engineering table options

2007-11-29 Thread Michael Horwitz
On 11/29/07, jbarroso <[EMAIL PROTECTED]> wrote:
>
>
>
>
> On 11/29/07, jbarroso <[EMAIL PROTECTED]> wrote:
> >
> >
> >When I tried a similar exercise with SQL Server I had to specify both the
> >schema and the catalog before Hibernate tools would recognise the table:
>
> >  catalog="db_name"/>
>
> >This pretty much applied to everything else as well.
>
> Mike thanks for response.
>
> I've testing in mysql adding schema and/or catalog attributes and doesn't
> work.


On MySql you may want to try dropping the schema and catalog attributes and
specifying the table name in capitals - i.e. APP_USER. Hibernate tools does
some weird db specific stuff at times. For Oracle you are more than likely
going to have to add both schema and catalog attributes.

Mike

-Jose.
> --
> View this message in context:
> http://www.nabble.com/hibernate-reverse-engineering-table-options-tf4897718s2369.html#a14028726
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [appfuse-user] Preopopulating a production database

2007-11-29 Thread Rob Hills
Hi Matt,

On 29 Nov 2007 at 9:41, Matt Raible wrote:

> We're open to suggestions on how to improve this. The reason we use
> negative ids is because if we don't, Oracle gets its sequences messed
> up. You could fix things in your project by modifying sample-data.xml
> to have positive keys and then run "appfuse:full-source" and modify
> all your tests. Or modify AMP to generate positive ids.

Would you consider it normal practice to run unit tests when deploying to a 
production system?  I would have thought that unit testing would be done for 
development and test environments, but not for production environments.

My gut feeling is that the solution to the default-data problem would be to 
decouple it from tests if possible, so that it can be run independently of 
them.  I think the idea of negative IDs works nicely for development and 
testing, but they probably have no place in a production environment.

> On 11/29/07, Laith Al-Khateeb <[EMAIL PROTECTED]> wrote:
> > Yes you're right, that's because the ActionTest cases expect negative IDs
> > (-1, -2) to be in the database, which are used in sample-data.xml  but that
> > I didn't specify in default-data.xml (which is used when prod is activated).
> >
> > Ok, to step back a bit. If I was not going to put any data for my tables in
> > default-data.xml, then the tests will still fail when activating the prod
> > profile and that's because the ActionTests always assume that there will be
> > records with negative IDs in the database.
> >
> > This is from action-test.ftl:
> >
> > public void testEdit() throws Exception {
> > log.debug("testing edit...");
> > action.${setIdMethodName}(-1L);
> > assertNull(action.get${pojo.shortName} ());
> > assertEquals("success", action.edit());
> > assertNotNull(action.get${pojo.shortName}());
> > assertFalse(action.hasActionErrors());
> > }
> >
> >
> > So in effect, the line of "action.${setIdMethodName}(-1L);"
> > will always fail in prod.
> >
> > Now the question is whether this is a bug or whether it is there by design
> > (to prevent people from running tests in prod), in which case loading data
> > from default-data.xml becomes an unusable feature.

Cheers,
Rob Hills
Waikiki, Western Australia
Mobile +61 (412) 904-357
Fax: +61 (8) 9529-2137

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] Preopopulating a production database

2007-11-29 Thread Michael Horwitz
To load prod data without running tests: mvn -Pprod dbunit:operation

Mike

On 11/29/07, Rob Hills <[EMAIL PROTECTED]> wrote:
>
> Hi Matt,
>
> On 29 Nov 2007 at 9:41, Matt Raible wrote:
>
> > We're open to suggestions on how to improve this. The reason we use
> > negative ids is because if we don't, Oracle gets its sequences messed
> > up. You could fix things in your project by modifying sample-data.xml
> > to have positive keys and then run "appfuse:full-source" and modify
> > all your tests. Or modify AMP to generate positive ids.
>
> Would you consider it normal practice to run unit tests when deploying to
> a
> production system?  I would have thought that unit testing would be done
> for
> development and test environments, but not for production environments.
>
> My gut feeling is that the solution to the default-data problem would be
> to
> decouple it from tests if possible, so that it can be run independently of
> them.  I think the idea of negative IDs works nicely for development and
> testing, but they probably have no place in a production environment.
>
> > On 11/29/07, Laith Al-Khateeb <[EMAIL PROTECTED]> wrote:
> > > Yes you're right, that's because the ActionTest cases expect negative
> IDs
> > > (-1, -2) to be in the database, which are used in sample-data.xml  but
> that
> > > I didn't specify in default-data.xml (which is used when prod is
> activated).
> > >
> > > Ok, to step back a bit. If I was not going to put any data for my
> tables in
> > > default-data.xml, then the tests will still fail when activating the
> prod
> > > profile and that's because the ActionTests always assume that there
> will be
> > > records with negative IDs in the database.
> > >
> > > This is from action-test.ftl:
> > >
> > > public void testEdit() throws Exception {
> > > log.debug("testing edit...");
> > > action.${setIdMethodName}(-1L);
> > > assertNull(action.get${pojo.shortName} ());
> > > assertEquals("success", action.edit());
> > > assertNotNull(action.get${pojo.shortName}());
> > > assertFalse(action.hasActionErrors());
> > > }
> > >
> > >
> > > So in effect, the line of "action.${setIdMethodName}(-1L);"
> > > will always fail in prod.
> > >
> > > Now the question is whether this is a bug or whether it is there by
> design
> > > (to prevent people from running tests in prod), in which case loading
> data
> > > from default-data.xml becomes an unusable feature.
>
> Cheers,
> Rob Hills
> Waikiki, Western Australia
> Mobile +61 (412) 904-357
> Fax: +61 (8) 9529-2137
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [appfuse-user] Preopopulating a production database

2007-11-29 Thread Matt Raible
We're open to suggestions on how to improve this. The reason we use
negative ids is because if we don't, Oracle gets its sequences messed
up. You could fix things in your project by modifying sample-data.xml
to have positive keys and then run "appfuse:full-source" and modify
all your tests. Or modify AMP to generate positive ids.

Matt

On 11/29/07, Laith Al-Khateeb <[EMAIL PROTECTED]> wrote:
> Yes you're right, that's because the ActionTest cases expect negative IDs
> (-1, -2) to be in the database, which are used in sample-data.xml  but that
> I didn't specify in default-data.xml (which is used when prod is activated).
>
> Ok, to step back a bit. If I was not going to put any data for my tables in
> default-data.xml, then the tests will still fail when activating the prod
> profile and that's because the ActionTests always assume that there will be
> records with negative IDs in the database.
>
> This is from action-test.ftl:
>
> public void testEdit() throws Exception {
> log.debug("testing edit...");
> action.${setIdMethodName}(-1L);
> assertNull(action.get${pojo.shortName} ());
> assertEquals("success", action.edit());
> assertNotNull(action.get${pojo.shortName}());
> assertFalse(action.hasActionErrors());
> }
>
>
> So in effect, the line of "action.${setIdMethodName}(-1L);"
> will always fail in prod.
>
> Now the question is whether this is a bug or whether it is there by design
> (to prevent people from running tests in prod), in which case loading data
> from default-data.xml becomes an unusable feature.
>
> Laith
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] Preopopulating a production database

2007-11-29 Thread Matt Raible
On 11/29/07, Rob Hills <[EMAIL PROTECTED]> wrote:
> Hi Matt,
>
> On 29 Nov 2007 at 9:41, Matt Raible wrote:
>
> > We're open to suggestions on how to improve this. The reason we use
> > negative ids is because if we don't, Oracle gets its sequences messed
> > up. You could fix things in your project by modifying sample-data.xml
> > to have positive keys and then run "appfuse:full-source" and modify
> > all your tests. Or modify AMP to generate positive ids.
>
> Would you consider it normal practice to run unit tests when deploying to a
> production system?  I would have thought that unit testing would be done for
> development and test environments, but not for production environments.

No, I don't think this is a normal practice. You may have a set of
integration tests that run against a production database in a staging
environment, but I don't know if you'd actually modify the production
data as part of the tests.

We could also eliminate all integration tests - do pure unit testing -
and get rid of this debate. ;-)

Matt

>
> My gut feeling is that the solution to the default-data problem would be to
> decouple it from tests if possible, so that it can be run independently of
> them.  I think the idea of negative IDs works nicely for development and
> testing, but they probably have no place in a production environment.
>
> > On 11/29/07, Laith Al-Khateeb <[EMAIL PROTECTED]> wrote:
> > > Yes you're right, that's because the ActionTest cases expect negative IDs
> > > (-1, -2) to be in the database, which are used in sample-data.xml  but 
> > > that
> > > I didn't specify in default-data.xml (which is used when prod is 
> > > activated).
> > >
> > > Ok, to step back a bit. If I was not going to put any data for my tables 
> > > in
> > > default-data.xml, then the tests will still fail when activating the prod
> > > profile and that's because the ActionTests always assume that there will 
> > > be
> > > records with negative IDs in the database.
> > >
> > > This is from action-test.ftl:
> > >
> > > public void testEdit() throws Exception {
> > > log.debug("testing edit...");
> > > action.${setIdMethodName}(-1L);
> > > assertNull(action.get${pojo.shortName} ());
> > > assertEquals("success", action.edit());
> > > assertNotNull(action.get${pojo.shortName}());
> > > assertFalse(action.hasActionErrors());
> > > }
> > >
> > >
> > > So in effect, the line of "action.${setIdMethodName}(-1L);"
> > > will always fail in prod.
> > >
> > > Now the question is whether this is a bug or whether it is there by design
> > > (to prevent people from running tests in prod), in which case loading data
> > > from default-data.xml becomes an unusable feature.
>
> Cheers,
> Rob Hills
> Waikiki, Western Australia
> Mobile +61 (412) 904-357
> Fax: +61 (8) 9529-2137
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[appfuse-user] Question about error message on signup page

2007-11-29 Thread Yongping

Normally there is an erorr printed out on top of this page and corresponding
field when it's required (if blank). However I notice field of Country is an
exception. Only error for this field (select) is displayed on top of page
but nothing on the top of Country (if nothing is selected).
A couple of questions I have:
1. Is there any way I can put (repeat) that error on the top of Country?
2. What can I do to disable errors on top of specific fields (if impossible
for question 1)? I want error message presented consistantly.
Thanks
Yongping
-- 
View this message in context: 
http://www.nabble.com/Question-about-error-message-on-signup-page-tf4898948s2369.html#a14031517
Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] Question about error message on signup page

2007-11-29 Thread Matt Raible
This doesn't happen for Country because (in many cases), we're  
rendering our own drop-down instead of using a web framework's. Which  
web framework are you using - it's generally different on enabling/ 
disabling error messages on each field.


Matt

On Nov 29, 2007, at 11:06 AM, Yongping wrote:



Normally there is an erorr printed out on top of this page and  
corresponding
field when it's required (if blank). However I notice field of  
Country is an
exception. Only error for this field (select) is displayed on top  
of page

but nothing on the top of Country (if nothing is selected).
A couple of questions I have:
1. Is there any way I can put (repeat) that error on the top of  
Country?
2. What can I do to disable errors on top of specific fields (if  
impossible

for question 1)? I want error message presented consistantly.
Thanks
Yongping
--
View this message in context: http://www.nabble.com/Question-about- 
error-message-on-signup-page-tf4898948s2369.html#a14031517

Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] How should Compass be integrated with Appfuse 2.x

2007-11-29 Thread Matt Raible
I think a SearchManager might be best - that way it can be exposed as
a web service and used by other applications.

Matt

On 11/25/07, franz see <[EMAIL PROTECTED]> wrote:
>
> Good day,
>
> There is a jira issue regarding providing searching capability in Appfuse
> 2.1 via Compass ( see [1] ).
>
> In line with that, I'd just like to ask how other Appfuse users are
> integrating compass into their applications.
>
> * Where should the searching mechanism be placed ? - Dao, Manager/Service,
> Controller?
> * Also, what is the preferred Compass configuration ? - XML, Annotations?
> * ...Others?
>
> Personally, I started implementing Compass inside my Daos, but later
> transfered it to my SearchManager ( because I might need to return several
> business types of business models in one search ) ( see [2] for more about
> the discussion )but of course, that's just me.
>
> And as for the configuration, since I'm a compass newbie, I prefer using
> annotations because it will minimize the chances that I'll get it wrong :-)
>
> What about you guys?
>
> Thanks,
> Franz
>
> [1] http://issues.appfuse.org/browse/APF-267
> [2] http://forums.opensymphony.com/thread.jspa?threadID=158298&tstart=0
> --
> View this message in context: 
> http://www.nabble.com/How-should-Compass-be-integrated-with-Appfuse-2.x-tf4872943s2369.html#a13943916
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] Question about error message on signup page

2007-11-29 Thread Yongping

Struts 2.0. Thanks


mraible wrote:
> 
> This doesn't happen for Country because (in many cases), we're  
> rendering our own drop-down instead of using a web framework's. Which  
> web framework are you using - it's generally different on enabling/ 
> disabling error messages on each field.
> 
> Matt
> 
> On Nov 29, 2007, at 11:06 AM, Yongping wrote:
> 
>>
>> Normally there is an erorr printed out on top of this page and  
>> corresponding
>> field when it's required (if blank). However I notice field of  
>> Country is an
>> exception. Only error for this field (select) is displayed on top  
>> of page
>> but nothing on the top of Country (if nothing is selected).
>> A couple of questions I have:
>> 1. Is there any way I can put (repeat) that error on the top of  
>> Country?
>> 2. What can I do to disable errors on top of specific fields (if  
>> impossible
>> for question 1)? I want error message presented consistantly.
>> Thanks
>> Yongping
>> -- 
>> View this message in context: http://www.nabble.com/Question-about- 
>> error-message-on-signup-page-tf4898948s2369.html#a14031517
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Question-about-error-message-on-signup-page-tf4898948s2369.html#a14031924
Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] Question about error message on signup page

2007-11-29 Thread Matt Raible
Struts 2 is a bit tricky because we've customized the css_xhtml theme  
to render error messages automatically. We could probably enhance our  
customization so individual error messages could be turned off. As  
far as adding an error message for country, that might be possible  
with a struts:errors tag.


Matt

On Nov 29, 2007, at 11:20 AM, Yongping wrote:



Struts 2.0. Thanks


mraible wrote:


This doesn't happen for Country because (in many cases), we're
rendering our own drop-down instead of using a web framework's. Which
web framework are you using - it's generally different on enabling/
disabling error messages on each field.

Matt

On Nov 29, 2007, at 11:06 AM, Yongping wrote:



Normally there is an erorr printed out on top of this page and
corresponding
field when it's required (if blank). However I notice field of
Country is an
exception. Only error for this field (select) is displayed on top
of page
but nothing on the top of Country (if nothing is selected).
A couple of questions I have:
1. Is there any way I can put (repeat) that error on the top of
Country?
2. What can I do to disable errors on top of specific fields (if
impossible
for question 1)? I want error message presented consistantly.
Thanks
Yongping
--
View this message in context: http://www.nabble.com/Question-about-
error-message-on-signup-page-tf4898948s2369.html#a14031517
Sent from the AppFuse - User mailing list archive at Nabble.com.

 
-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context: http://www.nabble.com/Question-about- 
error-message-on-signup-page-tf4898948s2369.html#a14031924

Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] Using groovy in Appfuse

2007-11-29 Thread Matt Raible
On 11/27/07, Mike McCown <[EMAIL PROTECTED]> wrote:
>
> Hmmm...I got groovy integrated into the webtest (integration-test target),
> maybe this would work for appfuse in general?  I'll check it out later this
> week.
>
> In 2.0 (2.0.1) the pom.xml excludes groovy-all from the webtest dependency
> (the comment says this is because groovy-all isn't in the central repo).  I
> had already installed groovy (I'm on a mac, so I installed using macports),
> so I just let the maven repository know about it by doing this...
>
>  mvn install:install-file -DgroupId=org.codehaus.groovy
> -DartifactId=groovy-all  -Dversion=1.0 -Dpackaging=jar -Dfile=groovy-1.0.jar
> [this last -Dfile should be the path to your local groovy jar file]
>
> Then I added this before the webtest dependency in pom.xml...
>   
> org.codehaus.groovy
> groovy-all
> ${groovy.version}
>   
>
> (You should also add a 1.0 down with all
> the other versions).
>
> That's it!  Now I can do things like
> 
> 
> step.context.currentResponse.getFormByName('displayProfile').submit()
> 
> to simulate a return key press for a form that doesn't use a submit button
> (which webtest doesn't directly support, except through neat tricks like
> this in groovy).
>
> I don't have time to check it out right now, but I'm wondering if I just add
> that dependency to the overall build target if that wouldn't allow you to
> use groovy in my appfuse project proper?

Yes, I believe it would. It'd be very cool to have Groovy support in
AppFuse. The reason for the exclusion in webtest's dependencies is
because groovy-all doesn't have a pom in the central repo. So
commenting it out prevents the following error from occurring.

[INFO] [talledLocalContainer] Tomcat 5.x started on port [9876]
Downloading: 
http://static.appfuse.org/repository/groovy/groovy-all/1.0/groovy-all-1.0.pom
Downloading: 
http://repo1.maven.org/maven2/groovy/groovy-all/1.0/groovy-all-1.0.pom
Downloading: 
http://repo1.maven.org/maven2/groovy/groovy-all/1.0/groovy-all-1.0.pom
Downloading: 
http://static.appfuse.org/repository/groovy/groovy-all/1.0/groovy-all-1.0.pom
[INFO] [antrun:run {execution: default}]

Matt

>
> Mike
>
>
> Carlos Orrego wrote:
> >
> > mmm i am using appfuse 1.8
> >
> > i think it can be done with spring, but hen i would like to invode service
> > beans written in java from groovy.
> >
> > I will keep you posted
> >
> > thanks Matt, you are my hero!!!
> >
> > :-)
> >
> > On Nov 15, 2007 1:32 PM, Matt Raible <[EMAIL PROTECTED]> wrote:
> >
> >> If you're using 2.0+, it should be easy with the groovy-maven-plugin:
> >>
> >> http://mojo.codehaus.org/groovy/groovy-maven-plugin/index.html
> >>
> >> I'm interested in this too - so if you get it working, it'd be great
> >> if you could write up a tutorial on the wiki. I'd be happy to edit it.
> >>
> >> Matt
> >>
> >> On Nov 15, 2007 11:27 AM, Carlos Orrego <[EMAIL PROTECTED]> wrote:
> >> > I would like to be able to write groovy code on an appfuse application.
> >> I
> >> > found this link for a way to integrate it:
> >> > http://www.leegrey.com/hmm/2004/10/25/1098732842000.html
> >> >
> >> > But it seems way too complex. Is there an easier way to do thi with
> >> appfuse?
> >> >
> >> > greetings
> >> >
> >> > --
> >> > Carlos Orrego
> >> > www.orbitando.com
> >> >  www.inflexa.com
> >> >
> >> > "Salve un bosque. No imprima."
> >> > "Save a forest. Do not print."
> >>
> >>
> >>
> >> --
> >> http://raibledesigns.com
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Carlos Orrego
> > www.orbitando.com
> > www.inflexa.com
> >
> > "Salve un bosque. No imprima."
> > "Save a forest. Do not print."
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Using-groovy-in-Appfuse-tf4815504s2369.html#a13986772
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] AMP gen target help for classes with relationships

2007-11-29 Thread Matt Raible
Can you try 2.0.1 and see if you have similar issues?

Thanks,

Matt

On Nov 9, 2007 1:19 AM, nvin <[EMAIL PROTECTED]> wrote:
>
>
>
> mraible wrote:
> >
> > On Nov 8, 2007 10:25 PM, nvin <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi All,
> >> Does Appfuse generate CRUDL classes for Java objects containing
> >> relationships automatically?
> >
> > No, it does not.
> >
> > Matt
> >
> > --Thanks,Matt for the quick reply,guess I should have posted before trying
> > it out. But,could you suggest any other mechanism or suggest what might be
> > needed to use appfuse(AMP) to fix these issues. My application has a fluid
> > data model,so, I was hoping I could use a auto -generation tool for the
> > initial screens. The reason is my JSF skills are pretty basic and I did
> > notice that it generated the JSF pages ,so, I was hoping there were some
> > minor fixes needed. Also, I am very impressed with your work as such and
> > the whole maven integration and structuring really helped me.
> > Thanks,
> > Amar
>
> >>
> >> I am trying to use the AMP targets (appfuse:gen-model and appfuse:gen) to
> >> generate the CRUD  pages of a simple application currently with two
> >> tables
> >> with a many-one relationship.
> >> 1. Table Alertrules
> >> 2. Table Alertrecipients which has a many to one with Alertrules
> >> What I have done so far is follows:
> >> 1. Take the Appfuse JSF basic archetype
> >> 2. Run mvn
> >> 3. Run mvn jetty:run-war (At this stage,I have the basic application up)
> >>
> >> 4. I created the two tables in the MySQL database.
> >> 5. Ran mvn:gen-model and then mvn appfuse:gen -Dentity=Alertrules and
> >> appfuse:gen -Dentity=Alertrecipients. At this stage, I saw I had the
> >> classes
> >> generated for the model and the JSF pages.
> >> 6. But when I run mvn jetty:run-war, it tries to run the test cases and
> >> there were java syntax errors
> >> 7. I tried to import the application in eclipse, and noticed there were
> >> some
> >> compilation errors in the Test classes,(Long value types were being set
> >> to
> >> Double in the test methods). I fixed them,but still, I get the test fail
> >> errors.
> >>
> >>
> >> As can be seen,it does try to run the other tests properly but fails on
> >> the
> >> tests created for the new objects.
> >> --
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO] Searching repository for plugin with prefix: 'jetty'.
> >> [INFO]
> >> 
> >> [INFO] Building AppFuse JSF Application
> >> [INFO]task-segment: [jetty:run-war]
> >> [INFO]
> >> 
> >> [INFO] Preparing jetty:run-war
> >> [INFO] [aspectj:compile {execution: default}]
> >> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
> >> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
> >> [INFO] [resources:resources]
> >> [INFO] Using default encoding to copy filtered resources.
> >> [INFO] [compiler:compile]
> >> [INFO] Nothing to compile - all classes are up to date
> >> [INFO] [resources:testResources]
> >> [INFO] Using default encoding to copy filtered resources.
> >> [INFO] Preparing hibernate3:hbm2ddl
> >> [WARNING] Removing: hbm2ddl from forked lifecycle, to prevent recursive
> >> invocation.
> >> [INFO] [aspectj:compile {execution: default}]
> >> [INFO] [native2ascii:native2ascii {execution: native2ascii-utf8}]
> >> [INFO] [native2ascii:native2ascii {execution: native2ascii-8859_1}]
> >> [INFO] [resources:resources]
> >> [INFO] Using default encoding to copy filtered resources.
> >> [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is
> >> invalid.
> >> It will be ignored for artifact resolution. Reason: Parse error reading
> >> POM.
> >> Reason: TEXT must be immediately followed by END_TAG and not START_TAG
> >> (position: START_TAG seen ...\n\t\t\t... @12:13)  for
> >> project org.hibernate:jtidy at C:\Documents and
> >> Settings\amar\.m2\repository\org\hibernate\jtidy\r8-20060801\jtidy-r8-20060801.pom
> >> [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:runtime' is
> >> invalid.
> >> It will be ignored for artifact resolution. Reason: Parse error reading
> >> POM.
> >> Reason: TEXT must be immediately followed by END_TAG and not START_TAG
> >> (position: START_TAG seen ...\n\t\t\t... @12:13)  for
> >> project org.hibernate:jtidy at C:\Documents and
> >> Settings\amar\.m2\repository\org\hibernate\jtidy\r8-20060801\jtidy-r8-20060801.pom
> >> [INFO] [hibernate3:hbm2ddl {execution: default}]
> >> [INFO] Configuration XML file loaded:
> >> c:\personal\testProject\openApp\src\main\resources\hibernate.cfg.xml
> >> [INFO] Configuration XML file loaded:
> >> c:\personal\testProject\openApp\src\main\resources\hibernate.cfg.xml
> >> [INFO] Configuration Properties file loaded:
> >> c:\personal\testProject\open

[appfuse-user] AppFuse and IceFaces

2007-11-29 Thread Kiran Karnati
Hello All,

Did any one ever integrated AppFuse and IceFaces and have a running
application ?

I am about to start to do an application with IceFaces and want to use
AppFuse for that, just wondering if any one else have already one that
already.

I appreciate any suggestion or heads up.

Thanks.
-- 
Best Regards,

Kiran Karnati


[appfuse-user] Problem with the language on spring with the commons.validator

2007-11-29 Thread colonel D

Hi Matt,

I'm using spring 1.2.1,
and i've got a problem with the commons.validator. I'm using spring mvc in
an application like equinox.

The problem is, when i change le language on my web site, for example the
site is in french by default and i put it in english, i change the
sessionlocaleresolver, the language change on my web pages, but it don't
change in the javascript validation, when i validate form and i have some
errors (in the javascript popup),
the alert is not in the language of my sessionlocaleresolver, it's not in
english, but he stay in the default language(here in french) of the user's
browser.

My action-servlet : 


...
 
siteLanguage












listeDisqueController
...
 












My pages are in the language of my session local but not the javascript
validation popup...

I'm looking for a solution or an explication on the web since long time but
i did not found any solutions.

I realy need some help.

Thks in advance.

PS : you can see the problem on my web site black-catalog.com

-- 
View this message in context: 
http://www.nabble.com/Problem-with-the-language-on-spring-with-the-commons.validator-tf4899642s2369.html#a14033930
Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] Preopopulating a production database

2007-11-29 Thread Laith Al-Khateeb
On Nov 30, 2007 3:55 AM, Michael Horwitz <[EMAIL PROTECTED]> wrote:

> To load prod data without running tests: mvn -Pprod dbunit:operation
>



Yes, thanks for that and thanks for everyone else's input.

Laith


[appfuse-user] annotations for managed beans

2007-11-29 Thread René Günther
With Spring 2.5, is there a reason why not using annotations for managed
beans except for the lack of possibility to inject request parameter? I
tried with something like this:

@Controller
@Scope("request")
public class ClientForm extends BasePage implements Serializable {

/**
 * 
 */
private static final long serialVersionUID = 3157623575918409233L;

@Resource
private GenericManager clientManager;


And used getParameter("id") in the edit method of ClientForm.


Rene

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] annotations for managed beans

2007-11-29 Thread Matt Raible

I don't understand your question - can you rephrase it?

Thanks,

Matt

On Nov 29, 2007, at 4:24 PM, René Günther wrote:

With Spring 2.5, is there a reason why not using annotations for  
managed
beans except for the lack of possibility to inject request  
parameter? I

tried with something like this:

@Controller
@Scope("request")
public class ClientForm extends BasePage implements Serializable {

/**
 *
 */
private static final long serialVersionUID = 3157623575918409233L;

@Resource
private GenericManager clientManager;


And used getParameter("id") in the edit method of ClientForm.


Rene

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] problem with appfuse:gen in windows

2007-11-29 Thread Ocram Itnaf

To prevent this error, change settings.xml in your .m2 directory to:



C:\Docume~1\username\.m2


Replace username with your windows user name.

-- oi


J. David Mendoza R. wrote:
> 
> There's a bug with the ant plugin 
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg64744.html and is 
> triggered in windows default m2 repositories, cause there on the 
> "Documents and Settings" folder that contains spaces. :(
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-with-appfuse%3Agen-in-windows-tf4882369s2369.html#a14039296
Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[appfuse-user] Save validation problem

2007-11-29 Thread colaru

Hello!

First I generate all the Actions with appfuse:gen. I have this problem in
one of my actions: when I try to do a save request all my fields are marked
as been required even I add some informations in some fields. This is
happend just then I do a save after an add, not on a modify and just in one
of the actions. I rewtite the page, action. etc. But the problem is the
same!

Is somebody with the some problem?
-- 
View this message in context: 
http://www.nabble.com/Save-validation-problem-tf4902009s2369.html#a14041937
Sent from the AppFuse - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: [appfuse-user] annotations for managed beans

2007-11-29 Thread René Günther
Appfuse uses annotations for hibernate configuration files, with Spring 2.5
one can use annotations for the managed bean of JSF instead of configure
them in faces-config.xml. It is similar to
http://cagataycivici.wordpress.com/2007/09/10/using-spring-to-manage-jsf-bea
ns/ but uses annotations. But before I start to use those annotations, I
wanted to know wether that’s a good thing to do..? 

-Ursprüngliche Nachricht-
Von: Matt Raible [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 30. November 2007 01:24
An: users@appfuse.dev.java.net
Betreff: Re: [appfuse-user] annotations for managed beans

I don't understand your question - can you rephrase it?

Thanks,

Matt

On Nov 29, 2007, at 4:24 PM, René Günther wrote:

> With Spring 2.5, is there a reason why not using annotations for  
> managed
> beans except for the lack of possibility to inject request  
> parameter? I
> tried with something like this:
>
> @Controller
> @Scope("request")
> public class ClientForm extends BasePage implements Serializable {
>
>   /**
>*
>*/
>   private static final long serialVersionUID = 3157623575918409233L;
>
>   @Resource
>   private GenericManager clientManager;
>
>
> And used getParameter("id") in the edit method of ClientForm.
>
>
> Rene
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]