Re: [appfuse-user] Association between beans

2007-10-15 Thread Michael Horwitz
On 10/12/07, George.Francis <[EMAIL PROTECTED]> wrote: > > > Hi, > Hello, I have a 'Customer' entity and an 'Application' entity. Each > Application has (exactly) )one Customer, how do I correctly annotate the > Application class's Customer member variable to indicate the relationship? So your re

Re: [appfuse-user] Appfuse for "web services" server

2007-10-15 Thread Michael Horwitz
You may want to consider AppFuse Light which has none of the integrations to start with: https://appfuse-light.dev.java.net/ Should get you going that little bit quicker! ;-) Mike On 10/12/07, Johan Chaves SaborĂ­o <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to use appfuse to develop a "web ser

Re: [appfuse-user] Using appfuse:full-source

2007-10-15 Thread Michael Horwitz
On 10/14/07, Mike Wille <[EMAIL PROTECTED]> wrote: > > Thanks! That definitely helped. > > Tapestry started up fine. Spring compiled correctly but choked on the web > tests for lack of commons-beanutils. I added that to the parent pom and all > worked fine after that. (On an aside, I initiall

Re: [appfuse-user] what is the purpose of this @Transactional annotation in AppFuse 2.0 RC?

2007-10-15 Thread James Perry
As Matt has questioned, you need to be more specific. I assume you're referring to Spring 2.0's method of declaring fine-grained declarative transactions using the @Transactional annontations; which can be used at both the class and method level. If you want more information, please refer to the n

Re: [appfuse-user] AppFuse 2.0 - "flat" buttons - what's the best way?

2007-10-15 Thread Rob Hills
Hi again, On 15 Oct 2007 at 9:55, Rob Hills wrote: > I'm migrating an AppFuse 1.8 app to AppFuse 2.0 (+ Struts) and learning all > the underlying frameworks in the process. > > My old app uses need > to retain the original L&F and I'm investigating the best way to do this. OK, since my origi

[appfuse-user] mvn appfuse:gen-model on Oracle9i error

2007-10-15 Thread stonebox2007
When I run the command 'mvn appfuse:gen-model', reading table definition from Oracle9i database, but the AppFuse Maven Plugin have some error, can read all other object definitions, and prompt an error : 16:45:07,593 WARN org.hibernate.cfg.reveng.JDBCReader - Rev.eng. strategy did not report any

Re: [appfuse-user] how to create a model for a table and some other problems

2007-10-15 Thread stonebox2007
For your question 1), you can use file hibernate.reveng.xml, to config which table you want be excluded, so you can only generate the tables you want. (My email: [EMAIL PROTECTED]) Matthew Wu wrote: > > Hi, this is my first time use the forum, I am from Dalian China, thanks a > lot. > I have th

[appfuse-user] Test failed: No Scope registered for scope 'session'

2007-10-15 Thread George Wei
Dear all, I've create an AppFuse Struts 2 Application, but it fails when I run tests. The test code is generated by AppFuse: public class QuoteMasterActionTest extends BaseActionTestCase { private QuoteMasterAction action; public void setQuoteMasterAction(QuoteMasterAction action) {

[appfuse-user] Change the default page login.jsp by something else when not logged

2007-10-15 Thread ttux
Hi, My problem is simple: When I go on the root of my web application (http://localhost:8080/) I don't want to see the login.jsp page when I am not logged in but an other page hello.jsp for example. How can I do that? I don't find where to change this. Thanks in advance for your help. -- Vie

Re: [appfuse-user] Is hibernate.reveng.xml ignored by AMP? How to control reverse eng?

2007-10-15 Thread stonebox2007
hi mraible, I have did it as your configuration, but failed again (mvn appfuse:gen-model access Oracle 9i) below is error message: 17:41:28,234 WARN org.hibernate.cfg.reveng.JDBCReader - Rev.eng. strategy did not report any primary key columns for PATH_VIEW 17:41:28,250 WARN org.hibernate.cfg.r

[appfuse-user] how to get login user info

2007-10-15 Thread Ma, Yong
Dear Matt Thank you for you answer my question.but I want to get login user all information.so I need one User Object.not a username. mayong

Re: [appfuse-user] AppFuse 2.0 - "flat" buttons - what's the best way?

2007-10-15 Thread Matt Raible
The reason we changed from to is mostly because of Safari. Safari gives the aqua/glass look to buttons (unless you use border/background like you mention) while gets more of the default button look you see in Firefox. Matt On 10/15/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi again, > > On 1

Re: [appfuse-user] Change the default page login.jsp by something else when not logged

2007-10-15 Thread Matt Raible
You can change this in index.jsp - it does a redirect to mainMenu.html by default. If you haven't run "full-source", you can copy this file into your project from target/appname-version (to src/main/webapp). HTH, Matt On 10/15/07, ttux <[EMAIL PROTECTED]> wrote: > > Hi, > > My problem is simple:

Re: [appfuse-user] how to get login user info

2007-10-15 Thread Matt Raible
Try this: Authentication auth = SecurityContextHolder.getContext().getAuthentication(); User user = (User) auth.getPrincipal(); Matt On 10/15/07, Ma, Yong <[EMAIL PROTECTED]> wrote: > > > > > Dear Matt > > > > Thank you for you answer my question.but I want to get login user all > informatio

Re: [appfuse-user] Change the default page login.jsp by something else when not logged

2007-10-15 Thread ttux
I tried this replacing in index.jsp by but I get this error: [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: /mnt/data/Linux/home/marc/ws

Re: [appfuse-user] Change the default page login.jsp by something else when not logged

2007-10-15 Thread Michael Horwitz
On 10/15/07, ttux <[EMAIL PROTECTED]> wrote: > > > I tried this replacing in index.jsp by > but I get this error: > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Error executing ant tasks > > Embedded error: The following error

Re: [appfuse-user] Change the default page login.jsp by something else when not logged

2007-10-15 Thread ttux
I just tried to change: by or in my case but it doesn't fix the error below: [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded error: The following error occurred while executing this line: /mnt/d

Re: [appfuse-user] query on DWR Autocomplete

2007-10-15 Thread jithesh
hi, I tried the method in the provide link. But got confused over the url value in the following line, new Ajax.Autocompleter("autocomplete", "autocomplete_choices", "/url/on/server", {}); What it actually denotes? Please give a reply on this query. Thanks, Jithesh mraible wr

Re: [appfuse-user] Entity Listener

2007-10-15 Thread Martin Homik
I use Hibernate as persistence framework, but just declaring a class as an Entity Listener and a method to do pre persistence does not work. Hibernate's annotation documentation doesn't say anything about how to apply lifecycle events in this case. I'm lacking the knowledge how to that. Meanwhil

Re: [appfuse-user] Change the default page login.jsp by something else when not logged

2007-10-15 Thread ttux
Following Mike advice, here is what I did: I put in index.jsp: instead of the mainMenu.html Then I changed in login.xml: to Now I get this error: [ERROR] BUILD ERROR [INFO] [INFO] Error executing ant tasks Embedded err

Re: [appfuse-user] Change the default page login.jsp by something else when not logged

2007-10-15 Thread Peter Schneider-Manzell
You need to change your test values. Take a look at src\test\resources\login.xml You need to modify the line to match the title of your new page Bye, Peter 2007/10/15, ttux <[EMAIL PROTECTED]>: > > > Following Mike advice, here is what I did: > > I put in index.jsp: instead of the > mainMe

Re: [appfuse-user] Change the default page login.jsp by something else when not logged

2007-10-15 Thread ttux
Ok, I found out how was working this test stuff thanks to all of you. Thank you for your answers. It was effectively some changes to do in login.xml and web-tests.xml. Peter Schneider-Manzell wrote: > > You need to change your test values. > > Take a look at src\test\resources\login.xml > >

[appfuse-user] Re: Re[appfuse-user] ading emails at a defined time

2007-10-15 Thread L.
So nobody has an answer for me ? L. wrote: > > Hi, > > I wonder whether there is something existing to perform the following: > I would like at certain times of the day (say 4 times a day) to read > emails and extract the attached files. > > So there are two different things: > > - reading

Re: [appfuse-user] Problemn associating entities via form

2007-10-15 Thread George.Francis
OK, after reading this I assume I need to define a class ApplicationBeanInfo which extends SimpleBeanInfo, whose getPropertyDescriptors() method uses a class CustomerEditor (which I also have to write) which extends PropertyEditor? mraible wrote: > > You need a PropertyEditor to translate the "

Re: [appfuse-user] Problemn associating entities via form

2007-10-15 Thread Michael Horwitz
On 10/15/07, George.Francis <[EMAIL PROTECTED]> wrote: > > > OK, after reading this I assume I need to define a class > ApplicationBeanInfo > which extends SimpleBeanInfo, whose getPropertyDescriptors() method uses a > class CustomerEditor (which I also have to write) which extends > PropertyEditor

Re: [appfuse-user] Sun java JDK 1.6 performance

2007-10-15 Thread Sanjiv Jivan
It's not surprising that the performance of JDK 6 has improved significantly as they have introduced escape analysis where the JVM can convert heap allocations to stack allocation where possible. Sanjiv On 10/13/07, Allan Ang <[EMAIL PROTECTED]> wrote: > > > true. > > but the implementation for a

[appfuse-user] Ajax request doesnt have 'open session in view'

2007-10-15 Thread parti
if one of my ajax calls go to a jsf action, it will only allow 1 dao action, and since my collections are lazy, im getting lazyinit errors cause the session gets closed after this dao action. can anyone assist me how to enable opensessioninview for ajax calls? -- View this message in context: h

[appfuse-user] Bean property not readable

2007-10-15 Thread John Kwon
I'm getting this error with one of my pojos. I can't see where the getters and setters are incorrect. quality] ERROR [http-8080-1] ErrorsTag.doStartTag(84) | Invalid property 'aNamedAFile' of bean class [com.csc.digitization.quality.LotAFile]: Bean property 'aNamedAFile' is not readable or has an

[appfuse-user] Re: Bean property not readable

2007-10-15 Thread John Kwon
Suddenly, http://www.appfuse.org/tags/spring is no longer available on the Net...

[appfuse-user] Ajax with Acegi question

2007-10-15 Thread Artem G. Nickolaenko
Hello from Ukraine, This http://appfuse.org/display/APF/Ajax tutorial is great, thanks to tibi! But I have one problem. When page make AJAX request like http://localhost:8080/test/ajax!ajax.html?decorate=false&dojo.preventCache=1192480510906 it redirecting to login page, and it can't get data un

Re: [appfuse-user] Re: Re[appfuse-user] ading emails at a defined time

2007-10-15 Thread Nathan Anderson
I think you have answered your own question... AppFuse has a built in mechanism for sending email, but not receiving. So you will likely have to integrate another library or implement JavaMail like you suggest. As for scheduling I don't know of a better choice than Quartz. Nathan - Orig

Re: [appfuse-user] Entity Listener

2007-10-15 Thread gederer
Hi Martin, This is an interesting approach. I'll probably use it. I've used the lifecycle event annotations with Toplink/glassfish, and they're really nice because you know they'll always get called. But, I suppose this will have to do. Thanks. Greg Martin Homik wrote: > > I use Hibernate a

[appfuse-user] Which goal uses default-data.xml

2007-10-15 Thread Thomas Ramapuram
Hi, I noticed a file called default-data.xml in Appfuse 2.0. I was wondering which goal uses this file? Regards, Thomas Ramapuram. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: [appfuse-user] Which goal uses default-data.xml

2007-10-15 Thread Matt Raible
If you use the "prod" profile by passing in -Pprod, this file is used by dbunit instead of sample-data.xml. Matt On 10/15/07, Thomas Ramapuram <[EMAIL PROTECTED]> wrote: > Hi, > I noticed a file called default-data.xml in Appfuse 2.0. I was > wondering which goal uses this file? > Regar

Re: [appfuse-user] Ajax request doesnt have 'open session in view'

2007-10-15 Thread Matt Raible
Map the OSIV filter to match your Ajax request URL - for example /dwr/*. Matt On 10/15/07, parti <[EMAIL PROTECTED]> wrote: > > if one of my ajax calls go to a jsf action, it will only allow 1 dao action, > and since my collections are lazy, im getting lazyinit errors cause the > session gets cl

Re: [appfuse-user] Bean property not readable

2007-10-15 Thread Matt Raible
It never was on the net - it's a URI in the appfuse.tld. Matt On 10/15/07, John Kwon <[EMAIL PROTECTED]> wrote: > Suddenly, > > http://www.appfuse.org/tags/spring > > is no longer available on the Net... > -- http://raibledesigns.com --