? I ran several
integration-tests on my project with different databases and it worked.
Good luck,
Martin
Aled Rhys Jones wrote:
>
> This seems to have helped a lot, thanks guys.
>
> I now get the same error with all my controller tests, it can't find the
> userManager. T
This seems to have helped a lot, thanks guys.
I now get the same error with all my controller tests, it can't find the
userManager. This is part of appfuse, so I assume I've done something wrong
upgrading to 2.0.1. It worked ok in 2.0 I think.
e.g.
testHandleRequest(com._8media.travelbeen.webap
app/WEB-INF
>
> did not work for me after an 'mvn clean'. All DAO tests failed again.
> Unfortunately, I am not an expert, so I cannot explain the behaviour/error
> but confirm its sudden appearance.
>
> Martin
>
>
>
>
> Aled Rhys Jones wrote:
>>
&g
Thanks Mike
From: Michael Horwitz [mailto:[EMAIL PROTECTED]
Sent: 02 March 2008 22:45
To: users@appfuse.dev.java.net
Subject: Re: [appfuse-user] Update eclipse classpath
On 02/03/2008, Aled Rhys Jones <[EMAIL PROTECTED]> wrote:
Hi all
When I update to a newer version of a
Hi all
When I update to a newer version of appfuse, e.g. from 2.0 to 2.0.1, what's
the best way of updating my classpath for eclipse so it references the new
jars? I've updated the pom.xml as required.
Cheers
Aled
Hi All
I've finally managed to resolve some problems integrating nutch into my
application, but now all my DAO tests fail. I don't think its related, but
not sure.
I had a look at the mailing list and noticed some similar problems, but I'm
not sure if this issue has definitely been resolve
ading to appfuse
2.0
On 10/22/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote:
Any ideas regarding the below guys?
Thanks
Aled
From: Aled Rhys Jones [mailto:[EMAIL PROTECTED]
Sent: 20 October 2007 16:31
To: 'users@appfuse.dev.java.net'
Subject: Hibernate issues after
Any ideas regarding the below guys?
Thanks
Aled
From: Aled Rhys Jones [mailto:[EMAIL PROTECTED]
Sent: 20 October 2007 16:31
To: 'users@appfuse.dev.java.net'
Subject: Hibernate issues after upgrading to appfuse 2.0
Hi all
I've just updated from a m4 of appfuse 2.0
Hi all
I've just updated from a m4 of appfuse 2.0 to the release version.
I'm having a few teething issues with this new version. Now all my DAOTests
fail on my add and remove tests. I've debugged the code, and when the model
is saved after creation, the id is not updated, so the get func
Any ideas guys?
- Original Message -
From: "Aled Rhys Jones" <[EMAIL PROTECTED]>
To:
Sent: Sunday, September 09, 2007 7:20 PM
Subject: [appfuse-user] ValidWhen/RequiredIf
Hi all
I need to validate some fields only if the user has specific roles. How
do I do this
Hi all
I need to validate some fields only if the user has specific roles. How do
I do this?
For example, I don't want to force the user to have to specify a country
unless they're an administrator.
I've had a look at requiredIf and validwhen, I think requiredIf is now
depricated.
I'm not
ickList's right-hand side to turn into fully-composed
objects.
The following article may help you do that:
http://www.jroller.com/raible/entry/multiple_select_with_spring_mvc
Matt
On 8/20/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote:
> Thanks Matt, that makes sense.
> Can you
log.debug("Drop-down initialization complete [OK]");
}
You should be able to put a list of objects in any scope in your
controller to do the same thing. The referenceData() method is a
recommended location.
Matt
On 8/20/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote:
An
Any ideas guys?
Aled Rhys Jones wrote:
Hi all
I'm trying to get my head around the may to many pickList. I've got a
many to many relationship between a website model and a website type
model.
The pick list used in the user form seems suitbable, but when I try to
use it I get Nu
Hi all
I'm trying to get my head around the may to many pickList. I've got a
many to many relationship between a website model and a website type model.
The pick list used in the user form seems suitbable, but when I try to
use it I get Null Pointer (jasper) exceptions.
Questions:
Where do av
Hi guys
Does the spring framework or appfuse have any helper classes for
importing csv files into the database?
Appfuse already has a handy file upload tool, I was looking to take it a
step further and allow the user to upload a csv file that contained data
that mapped to a Pojo (or many pojos
It's a RHE 4 box.
I've got tomcat running properly on 8080, and I've opened the firewall to
8080 using an iptables command. This is a short term solution and the
firewall blocks 8080 again if I restart the box.
Can anyone advise on the correct way of opening port 8080 long term? I'll
eventually
You need to add both models to the hibernate.cfg.xml file.
-Original Message-
From: Srini Bobbala [mailto:[EMAIL PROTECTED]
Sent: 18 July 2007 09:18
To: users@appfuse.dev.java.net
Subject: [appfuse-user] Many to Many mapping error
Hi,
I have 2 model classes (Employee and Task) which ha
_HOME environment variable to
point where you installed Tomcat
You can download the latest 5.5.x from:
http://www.devlib.org/apache/tomcat/tomcat-5/v5.5.23/bin/apache-tomcat-5.5.23.tar.gz
Matt
On 7/17/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote:
Yeh that might prove useful, thanks.
way as it does for Tomcat.
I have been running this on my Fedora box for a while now and find it quite
good.
Will dig out a configuration file for you if you are interested.
Regards
Marty
_
From: Aled Rhys Jones [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 17 July 2007 9:
.
On 7/17/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote:
Ok cool. So if I get my app fuse project onto the remote server, install
maven (java's on already) then run mvn - Dcargo.wait=true then I should be
able to reach my app on port 8080 on the remote machine?
Do I have to do any th
check that it is 1.5.x) and Maven and you
are done.
Mike
On 7/16/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote:
Hi all
I've got a linux box with red hat enterprise 4 that I need to get my
appfuse project running on.
It currently has MySQL and Apache Httpd 2.
What's the bes
Hi all
I've got a linux box with red hat enterprise 4 that I need to get my
appfuse project running on.
It currently has MySQL and Apache Httpd 2.
What's the best course to follow in getting my build (currently running
on windows) up and running on the linux box? Is it possible to use maven?
org.hibernate.HibernateException: identifier
of an instance of com.myapp.model.Country was altered from 1 to 3
Any ideas?
Cheers
Aled
Aled Rhys Jones wrote:
The plot thickens...
As suggested I put in a checker for null in getAsText of the
CountryEditor and to return "" if that was the case.
I
used to populate the list are null, even though the manager returns 3
valid objects to be populated in the drop down list.
So somehow these objects (list of countries) are going from valid
Country objects to null objects.
Aled Rhys Jones wrote:
Every time I try to use the below jsp tags I
can handle null values properly - a bit of unit testing
should provide the test cover you need. You also need to provide an
option in your dropdown list to match to the null value. Something like:
Mike
On 7/8/07, *Aled Rhys Jones* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>&
Yeh you probably want a DAO and Manager (service) for the PersonRequest.
You'll only want CRUD so you can just use the generic hibernate crud stuff.
You need the CRUD to be able to save new relationships between Person and
Request, and to get a list of all PersonRequests associated with a Person or
have to look into how to do this, make a composite key,
hopefully without using @Embedded or @Embeddable ... That would just
complicate matters more ...
Please let me know if you find out how to do this ...
Cheers,
Bob
Aled Rhys Jones wrote:
I'll have to check when I get home the exac
rror
> so, I guess it does.
>
> I'll keep trying ...
>
> Thanks!
> Bob
>
>
>
> Aled Rhys Jones wrote:
>>
>> Yeah, you have to have a model for PersonRequest since you need to know
>> the
>> date object it holds. Any other m
Hibernate expert. I'll keep trying. And further help much appreciated!
Cheers,
Bob
Aled Rhys Jones wrote:
>
> Hi Bob
>
> Ok then, Yes. :-)
>
> http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/
>
> I've got the same scenario in my app.
>
Hi Bob
Ok then, Yes. :-)
http://www.hibernate.org/hib_docs/annotations/reference/en/html_single/
I've got the same scenario in my app.
Example Request model:
@Entity
public class Request {
private List personRequests;
..
@OneToMany(mappedBy="request")
oller code" and "property editor code" ?
I am using struts and hibernate
Aled Rhys Jones wrote:
>
> Hi Fan
>
> Does the below save ok, i.e. when you change club does it save the
> selected club? The below works for me showing the drop down list but
> not
o create y in the formBackingObject and set the id to
-1? Currently I get a null pointer in the property editor, presumably
as its trying to compare the id or name of a null object.
Aled Rhys Jones wrote:
Thanks for the replies Mike.
Two issues with the below is that it doesn't seem t
lines:
*
"
>
Please make sure the name and Id of the dropdown list matches the property
in your POJO.
You could try to debug at the service layer(Action class) to check if the
value is submitted to the action class.
Aled Rhys Jones wrote:
What about:
SEL
What about:
SELECTED>
Lemme know if it works, been having trouble getting drop-down lists working myself.
My issue is that the drop down list appears, and the correct value selected, but saving doesn't work.
Cheers
Aled
Fan wrote:
I have a dropdown with a list of club POJO:
Hi Fan
If the class is serializable then if you haven't defined a
serialVersionUID you'll get a warning icon on the left next to the
public class myModel line. Click on that icon and some options will pop
up. Double click on Add generated serial version ID. This will
generate a serialVersi
to the select element - Spring expects specific names to get
its bindings sorted out.
Mike.
On 7/6/07, *Aled Rhys Jones* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
m4, wanted to finish off some functionality b
m4, wanted to finish off some functionality before updating to m5.
Cheers
Aled
_
From: Michael Horwitz [mailto:[EMAIL PROTECTED]
Sent: 06 July 2007 08:39
To: users@appfuse.dev.java.net
Subject: Re: [appfuse-user] Drop down list population
Which version of AppFuse are you usin
Any ideas with this one guys? I can't work out why the custom editor's
setAsText and getAsText aren't being called...
Aled Rhys Jones wrote:
Seems I spoke too soon. Although the list of countries displays
correctly, it never gets saved.
I have a CountryEditor that has the m
dispatcher-servlet.xml snippet:
Cheers
Aled
Aled Rhys Jones wrote:
Nice one Mike, finally got it working after spending most of yesterday
scratching my head and cursing google for not finding exactly what I
wanted ;-)
Cheers
Aled
Michael Horwitz wrote:
You are going to need to provide Spri
t.
2) You then register this custom editor using one of the appropriate
methods on your controller: initBinder() see api on
http://tinyurl.com/2sutrm
And it should all work like magic
Mike.
On 7/1/07, *Aled Rhys Jones* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wro
Hi peeps
Could someone recommend the best way of populating a drop down list in
edit/add forms? New to spring mvc and not sure of the correct way of
going about it.
I have a list of countries stored in the database. Access to these are
provided by a Generic Manager for crud. One of my edi
e the relationships or both?
If its just modifying the "modifiers" of the relationship then I believe you
can treat the association object as a simple CRUD pattern. But you will
need to be sure to load the object in Prepare and then apply parameters so
that you don't lose your relati
Hi all
I've got a many to many relationship between two models, but in this
case the relationship is also represented by a model as it contains data
that represents a reference of sorts between both models. Its table
therefore has data in addition to the UID's of the other models.
Any one g
Thank you Matt, that fixed it.
Cheers
Aled
Matt Raible wrote:
If you're using Spring's ControllerClassNameHandlerMapping, the "F" in
Form should be lowercase.
Matt
On 6/7/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote:
http://localhost:8080/companyForm.html?id=1
What's the link that's created by the code below? If you manually type
that link into your browser, does it go to the correct controller?
Matt
On 6/6/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote:
> I've been debugging my build, and noticed that when I click the link
> th
doing this? Obviously if it uses the CompanyController then it will
be returning the wrong Model.
The link in company.jsp:
url="/companyForm.html" paramId="id" paramProperty="id"
titleKey="companyForm.id"/>
Can anyone help?
Thanks in advance
A
e" export="true">
url="/companyForm.html" paramId="id" paramProperty="id"
titleKey="companyForm.id"/>
url="/companyForm.html" paramId="id" paramProperty="id"
titleKey="companyForm.na
p.controller.UrlFormController to "url"?
It seems like you're using a Spring bind tag in urls.jsp that expects
a command name of "url". Hard to tell with the details posted.
On 5/17/07, *Aled Rhys Jones* <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>&g
ause you're navigating to the JSP
directly, rather than going through a SimpleFormController. As for the
2nd issue, what is your Controller named? The
ControllerClassNameHandlerMapping determines how URLs are created for
controllers:
http://tinyurl.com/3ce2zn
Matt
On 5/16/07, Aled Rhys Jone
Forgot to say, I'm using Spring MVC with Hibernate. Url has its own
daos and managers whilst company uses the generic stuff just for crud.
Cheers
Aled
Aled Rhys Jones wrote:
Hi everyone
I've started developing with appfuse and so far its been great. I've
created two se
Hi everyone
I've started developing with appfuse and so far its been great. I've
created two services, url and company, and all the tests pass including
the webb ones.
I think there's a problem with my jsp's however, as when I click on a
url in my url list page (urls.jsp) to go to the urlForm
Hi Marty
I had the same problem. I'm guessing your eclipse build hasn't imported all
the libraries in the maven repository. It's not 100% clear in the tutorial
where the maven repository is if you're a windows user.
http://appfuse.org/display/APF/Eclipse
The ~ equates to your user home, so the m
Are you importing javax.persistence.Entity in your class?
Same goes for Id and Generated value. They are part of javax.persistence.
If importing this doesn't seem to work, make sure you're using the maven
repository correctly.
You don't have to extend BaseObject, but if you do you must override m
help:
http://maven.apache.org/maven-1.x/plugins/eclipse/goals.html
Aled Rhys Jones wrote:
Hi all
I'm completely new to AppFuse and a lot of its associated tools, so
bear with me.
I'm trying to set it up for eclipse. I've imported the created
project (spring mvc basic) int
Hi all
I'm completely new to AppFuse and a lot of its associated tools, so bear
with me.
I'm trying to set it up for eclipse. I've imported the created project
(spring mvc basic) into the workspace, then run the command:
*mvn -Declipse.workspace=C:\Source eclipse:add-maven-repo*. (where
C:\So
56 matches
Mail list logo