Re: [appfuse-user] multiple decorators

2008-02-22 Thread Dale Newfield
tibi wrote: ok any help would be great In decorator pattern matching, order matters. I think it'll use the first pattern that matches, so make sure your catch-all is listed *after* the special case deocators. -Dale - To u

Re: [appfuse-user] multiple decorators

2008-02-22 Thread tibi
ok it seems inpossible to get to html files. when i have this: /login.jsp /logout.jsp /newSubscribe.jsp /newSubscribe.html login.jsp is decorated so is logout.jsp and newSubscribe.jsp but not newSubscribe.html (which is the same file) g

Re: [appfuse-user] multiple decorators

2008-02-22 Thread tibi
i keep on digging. found these are working: /login.jsp /logout.jsp tibi wrote: > yes i tried that... but it does not help > > here it seems it should work fine: > https://sitemesh.dev.java.net/source/browse/*checkout*/sitemesh/src/example-webapp/WEB-INF/decorators.xml?c

Re: [appfuse-user] multiple decorators

2008-02-22 Thread tibi
yes i tried that... but it does not help here it seems it should work fine: https://sitemesh.dev.java.net/source/browse/*checkout*/sitemesh/src/example-webapp/WEB-INF/decorators.xml?content-type=text%2Fplain&rev=1.6 thanks matt, tibi Matt Raible wrote: > Have you tried /*n*? > > On 2/22/08, tib

Re: [appfuse-user] multiple decorators

2008-02-22 Thread Matt Raible
Have you tried /*n*? On 2/22/08, tibi <[EMAIL PROTECTED]> wrote: > ok any help would be great > > i don't understand the decorator :( > i have this: > > > > /* > > > > any page is decorated > this works to: > > > * > > > will not mach a page with a 'n' in it

Re: [appfuse-user] multiple decorators

2008-02-22 Thread tibi
ok any help would be great i don't understand the decorator :( i have this: /* any page is decorated this works to: * will not mach a page with a 'n' in it (which i expect) *n* how can i select only 1 page??? thanks tibi tibi wrote: >

Re: [appfuse-user] Dao Tests fail after ManyToMany on User

2008-02-22 Thread Matt Raible
This is a bug that should be fixed. http://issues.appfuse.org/browse/APF-794 On 2/22/08, Kropp, Henning <[EMAIL PROTECTED]> wrote: > It's a Hibernate Exception: > > Invocation of init method failed; nested exception is > org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany > tar

Re: [appfuse-user] single sign on between multiple appfuse based apps

2008-02-22 Thread Matt Raible
I think it's possible if you use Acegi's Remember Me feature (which is cookie based by default). You could override the default class and set the cookie on the root (/) instead of the contextPath - that should solve the problem. Matt On 2/22/08, rovi75 <[EMAIL PROTECTED]> wrote: > > Hi Matt, >

Re: [appfuse-user] single sign on between multiple appfuse based apps

2008-02-22 Thread rovi75
Hi Matt, Yes each application is currently mapped to the same database of users and roles: I'd like to know if there's a way to get username and password from the user a single time ( and authenticate him against the database or LDAP) and then let him navigate through the different applications

[appfuse-user] Re: Re: Problem in surefire tests

2008-02-22 Thread Derek Broughton
Michael Horwitz wrote: > On 22/02/2008, Derek Broughton > <[EMAIL PROTECTED]> wrote: >> > Do you have a model class called Transaction? If so it may have created an > entry for a bean in the Spring files called "transactionManager". You will > need to change this by hand. Damn you're good! I do.

RE: [appfuse-user] a cache question

2008-02-22 Thread Ding, Qin
Yes, Matt. After calling save (merge), I checked the database, the newly modified the users are there in the database. I did not check the multiple browsers. I'll let you know soon. QD -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Friday, February 22, 2008 12:09 P

Re: [appfuse-user] jsp parts

2008-02-22 Thread tibi
yes thougth about that... if thats the prefferd way of doing such a thing is can use that. i'm used to tiles but this will work to thanks tibi Dale Newfield wrote: > tibi wrote: >> what is the appfuse way of making a jsp part wich i can use on more >> pages? > > Are you looking for > http://jav

Re: [appfuse-user] Re: Problem in surefire tests

2008-02-22 Thread Michael Horwitz
On 22/02/2008, Derek Broughton <[EMAIL PROTECTED]> wrote: > > Michael Horwitz wrote: > > > On 22/02/2008, Derek Broughton > > <[EMAIL PROTECTED]> wrote: > >> > >> > >>2.0.1 > >>2.5 > >> > >> > >>1.1.0 > >>2.0 > >>4.4 > >>2.4 > >>

Re: [appfuse-user] Dao Tests fail after ManyToMany on User

2008-02-22 Thread Kropp, Henning
It's a Hibernate Exception: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: Use of @OneToMany or @ManyToMany targeting an unmapped class .. Found a thread in the archive of this mailing list, that helped me. It's that I have 2 hibernate.cfg.xml one in

Re: [appfuse-user] Dao Tests fail after ManyToMany on User

2008-02-22 Thread Matt Raible
You need to look in target/surefire-reports for *UserDaoTest.txt to find the error. Matt On 2/22/08, Kropp, Henning <[EMAIL PROTECTED]> wrote: > I can't use -Dsurefire.useFile=false, because: > > [INFO] Invalid task '.useFile=false': you must specify a valid lifecycle > phase, or a goal in the

Re: [appfuse-user] Dao Tests fail after ManyToMany on User

2008-02-22 Thread Kropp, Henning
I can't use -Dsurefire.useFile=false, because: [INFO] Invalid task '.useFile=false': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal But runnig mvn test -Dtest=UserDaoTest gives the following result: -

Re: [appfuse-user] How to configure TEST Injections

2008-02-22 Thread Matt Raible
I don't know if underscores are allowed in package names. You might also verify that the fully-qualified class name is correct. Matt On 2/13/08, Leo Barrientos C. <[EMAIL PROTECTED]> wrote: > Yes "bloqueDao" is defined in > src/main/webapp/WEB-INF/applicationContext.xml > > Also, if i delete th

Re: [appfuse-user] appfuse + enunciate

2008-02-22 Thread Matt Raible
Yes. http://issues.appfuse.org/browse/APF-897 Patches welcome. ;-) Matt On 2/13/08, bmoraillon <[EMAIL PROTECTED]> wrote: > > Hi, > Do you plan to build an appfuse-ws archetype with enunciate maven plugin > embedded ? > > > -- > View this message in context: > http://www.nabble.com/appfus

[appfuse-user] Re: Problem in surefire tests

2008-02-22 Thread Derek Broughton
Michael Horwitz wrote: > On 22/02/2008, Derek Broughton > <[EMAIL PROTECTED]> wrote: >> >> >>2.0.1 >>2.5 >> >> >>1.1.0 >>2.0 >>4.4 >>2.4 >>1.2 >> >> >>R_1600 >> >> Having created my tables, POJOs, actions and t

Re: [appfuse-user] a cache question

2008-02-22 Thread Matt Raible
If you query the database after calling merge - does the change show up in there? Does it happen in multiple browsers? Matt On 2/11/08, Ding, Qin <[EMAIL PROTECTED]> wrote: > Matt: > > Yes, I did. > getHibernateTemplate().merge(group); > getHibernateTemplate().flush(); > getHibernateTemplate(

Re: [appfuse-user] single sign on between multiple appfuse based apps

2008-02-22 Thread Matt Raible
You could modify the mappings for each application so their User and Role objects read from the same database. Either that, or authenticate against LDAP. If you decide to use LDAP, you'll want to remove the User CRUD as it goes against the database and not LDAP. Matt On 2/22/08, rovi75 <[EMAIL PR

Re: [appfuse-user] Generating full source and .xml entries using appfuse 2

2008-02-22 Thread Matt Raible
mvn appfuse:gen -Damp.genericCore=false You can also change the property in your pom.xml to be false instead of true (the default). Matt On 2/9/08, mmaia <[EMAIL PROTECTED]> wrote: > > Hi, > > I used appfuse 1.9.4 to build a project last year. Now I'm trying with > appfuse 2 and struts 2 mod

Re: [appfuse-user] Dao Tests fail after ManyToMany on User

2008-02-22 Thread Matt Raible
What's the error you're seeing from a particular test - UserDaoTest for example? You can use "mvn test -Dtest=UserDaoTest -Dsurefire.useFile=false" to see the error in your console. Matt On 2/22/08, Kropp, Henning <[EMAIL PROTECTED]> wrote: > Hi List, > > I am new to Appfuse and just installed a

[appfuse-user] Dao Tests fail after ManyToMany on User

2008-02-22 Thread Kropp, Henning
Hi List, I am new to Appfuse and just installed a fresh Struts2 project with full source. I really would like my Users to speak languages. Therefor I created a new model Language like: @Entity @Table(name="language") public class Language extends BaseObject implements Serializable{ private

[appfuse-user] appfuse and jbpm integration

2008-02-22 Thread Ding, Qin
I am using Appfuse 1.9.4/Mysql/JSF. I tried to integrate jbpm to my appfuse-based the application. I followed the instruction at http://raibledesigns.com/wiki/Wiki.jsp?page=IntegratingJBPMIntoAppFuse. 1. I created jbpm tables in my application database (mysql); 2. I reused the "datasource

Re: [appfuse-user] Problem in surefire tests

2008-02-22 Thread Michael Horwitz
On 22/02/2008, Derek Broughton <[EMAIL PROTECTED]> wrote: > > >2.0.1 >2.5 > > >1.1.0 >2.0 >4.4 >2.4 >1.2 > > >R_1600 > > Having created my tables, POJOs, actions and tests, starting with a > Postgres > database

Re: [appfuse-user] Working with existing domain model classes in spring mvc

2008-02-22 Thread wkbutler
I'd agree on the use of the FBO in most cases, and as of SpringMVC v1.8 and and I believe 2.0, hidden fields are required in the page in order to be bound. There are of course exceptions to this pattern, e.g. if your domain object contains a large data field(s) unnecessary for the user to see, i

Re: [appfuse-user] Display tag link problem

2008-02-22 Thread Michael Horwitz
On 22/02/2008, Sanath <[EMAIL PROTECTED]> wrote: > > > I have a displaytag that needs to have 3 columns and I have applied a URL > attribute to the first column of the display tag. Other 2 columns doesn't > have a url attribute. MY PROBLEM IS THAT WITH DISPLAYTAG 1.1.1, WHEN I > CLICK > AND COLUMN,

[appfuse-user] Display tag link problem

2008-02-22 Thread Sanath
I have a displaytag that needs to have 3 columns and I have applied a URL attribute to the first column of the display tag. Other 2 columns doesn't have a url attribute. MY PROBLEM IS THAT WITH DISPLAYTAG 1.1.1, WHEN I CLICK AND COLUMN, IT GOES TO THAT GIVEN URL. I HAVE THE APPFUSE LIGHT (EQUINOX)

Re: [appfuse-user] Working with existing domain model classes in spring mvc

2008-02-22 Thread Michael Horwitz
On 22/02/2008, reddeagle9 <[EMAIL PROTECTED]> wrote: > > > I am currently working on a project that has an existing DAO layer in > place. > One of the domain models has 20 attributes, but only 10 of these are > editable via the web. The other 10 are set by back ground processes. > > My question to

[appfuse-user] Working with existing domain model classes in spring mvc

2008-02-22 Thread reddeagle9
I am currently working on a project that has an existing DAO layer in place. One of the domain models has 20 attributes, but only 10 of these are editable via the web. The other 10 are set by back ground processes. My question to the group, is what strategy to people take for this. Currently I r

Re: [appfuse-user] Too many records!

2008-02-22 Thread syg6
I guess I'll check out displayTag's External Pagination, which I had seen before but never looked into. Thanks for the tip! The other option, implementing my own pagination, I'd rather not deal with. Anyway, it's only for 1-2 tables, which is exactly what displayTag's help says that its External

Re: [appfuse-user] Too many records!

2008-02-22 Thread Ealden EscaƱan
I encountered the same problem and yes implemented pagination myself in my current project. On Fri, Feb 22, 2008 at 5:04 PM, syg6 <[EMAIL PROTECTED]> wrote: > > I have a table with 150,000 records. When I call this object's > manager.getAll() it tries to load them all at once. This, of course, ma

Re: [appfuse-user] Too many records!

2008-02-22 Thread Michael Horwitz
On 22/02/2008, syg6 <[EMAIL PROTECTED]> wrote: > > > I have a table with 150,000 records. When I call this object's > manager.getAll() it tries to load them all at once. This, of course, makes > my pc crap the bed. I was wondering what my options are. > > I suppose one option is to call my own meth

[appfuse-user] Too many records!

2008-02-22 Thread syg6
I have a table with 150,000 records. When I call this object's manager.getAll() it tries to load them all at once. This, of course, makes my pc crap the bed. I was wondering what my options are. I suppose one option is to call my own method, instead of getAll(), getSome(int startRecord, int howM

Re: [appfuse-user] single sign on between multiple appfuse based apps

2008-02-22 Thread rovi75
Hi Matt, currently there is no sso for the applications in the product suite: every application still have its own login page. In the basic scenario I'll have to support at minimum a sso only between the apps in the .ear (sharing user roles and domain information from a local database). In a m