here is a simple example of what i have:
user = userManager.getUserByUsername(getRequest().getRemoteUser());
mraible wrote:
>
> Yes.
>
> On 2/21/07, tonyl <[EMAIL PROTECTED]> wrote:
>>
>> Thanks Matt for the quick response.
>>
>> Yeah, I just want to get the current logged-in username. So, I
I added a new method to my DAO that uses a where clause as follows...
public List getUploadedDatasByRegion(String region) {
return getHibernateTemplate().find("from UploadedData where
region=?",region);
Hibernate returns two rows but the action shows null...
UploadedDataManager m
Hi
Is there a way to add a horizontal scrollbar to the display table of
displaytag - not using the browser's scrollbar. I have a table with a
lot of columns - too wide to display on the page width. This messes up
the page appearance, menus, images disappear etc. I would like the page
width to rem
Hi Again -
Since i'm working with an older version of appfuse(1.8), i upgraded
httpclient which seemed to fix the problems I was having.
Thanks for the tip!
Now of course, I have a new problem. : )
I've made some progress and managed to display bookmarks from delicious in a
jsp page. The serv
how's the menu being generated in Appfuse 2.0 ?
I wish to trace if generating more than 3 levels of menu is possible
Fan wrote:
>
> here is my menu-config.xml :
>
>
>
>
> type="net.sf.navigator.displayer.VelocityMenuDisplayer"/>
>
>
> page="/mainMenu.html"/
The menu is generated using the menu-config.xml configuration file directly
below WEB-INF.
Mike.
On 2/21/07, Fan <[EMAIL PROTECTED]> wrote:
how's the menu being generated in Appfuse 2.0 ?
I wish to trace if generating more than 3 levels of menu is possible
Fan wrote:
>
> here is my menu-c
Hello,
Equinox 1.7 'Struts, Spring, Hibernate' configuration.
I am trying to do some validation just like the lastname validation in
the userForm.jsp. (that one was broke out of the box also.). I cannot
figure this out, and would really like to get it working. But I cannot
get the userfo
There's currently an open bug related to menus and too many child items:
http://issues.appfuse.org/browse/APF-599
The good news is this bug does contain a patch.
Matt
On 2/21/07, Fan <[EMAIL PROTECTED]> wrote:
how's the menu being generated in Appfuse 2.0 ?
I wish to trace if generating mor
How does the configuration file being parsed and read to generate the menu ?
I wish to know the mechanism behind it
Michael Horwitz wrote:
>
> The menu is generated using the menu-config.xml configuration file
> directly
> below WEB-INF.
>
> Mike.
>
>
> On 2/21/07, Fan <[EMAIL PROTECTED]> w
Looks like a bug to me. Does the validation work on the userForm or
not? You say it's "broken out of th ebox". Did you fix it or does
this cause a similar error?
Matt
On 2/21/07, Scott Purcell <[EMAIL PROTECTED]> wrote:
Hello,
Equinox 1.7 'Struts, Spring, Hibernate' configuration.
You can check out the Struts Menu project from SourceForge if you want
to look at the code:
http://struts-menu.sf.net
The MenuRepository.java in src/java/net/sf/navigator/menu has an
initDigester() method that does most of the parsing work. This is
done using Commons Digester. Here's an articl
The userForm does not work right out of the box. I did it at home last
night also with the same results. If you do not enter a lastname in the
userform, it still saves to the DB.
Scott
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt
Raible
Sent:
Hi!
How to configure struts2 validation for only one method in action?
Thanks.
--
View this message in context:
http://www.nabble.com/struts2-validation-for-only-one-method-in-action-tf3267151s2369.html#a9082179
Sent from the AppFuse - User mailing list archive at Nabble.com.
Matt:
I copied both asm-1.5.3.jar and asm-attrs-1.5.3.jar to hibernate/lib
directory and removed the asm.jar. I still got the same error that the
EmptyVisitor is not found. And then I copied asm-all-2.2.3.jar, too, to
hibernate/lib directory. With both asm-1.5.3 and asm-all-2.2.3.jar, the
error is
Can you enter this as an issue in JIRA? I'm assuming you're using Struts 1.x?
FWIW, I can reproduce this bug on the demo site:
http://demo.raibledesigns.com/equinox-struts/users.html
Matt
On 2/21/07, Scott Purcell <[EMAIL PROTECTED]> wrote:
The userForm does not work right out of the box. I
You can use the @SkipValidation annotation on a method to skip
validation for methods:
http://struts.apache.org/2.x/docs/validation.html
Matt
On 2/21/07, ros <[EMAIL PROTECTED]> wrote:
Hi!
How to configure struts2 validation for only one method in action?
Thanks.
--
View this message in con
More info - I'm using appfuse 1.9.4 and used appgen to generate the
classes.
From: Clark D. Liu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 3:59 AM
To: users@appfuse.dev.java.net
Subject: [appfuse-user] Did I miss a Spring Config??
I add
can you post your config mate?
Clark D. Liu wrote:
>
> More info - I'm using appfuse 1.9.4 and used appgen to generate the
> classes.
>
>
>
>
>
> From: Clark D. Liu [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 21, 2007 3:59 AM
> To: users@appfus
Do you have a DAO test that proves things aren't working as expected?
Matt
On 2/21/07, sionsmith <[EMAIL PROTECTED]> wrote:
can you post your config mate?
Clark D. Liu wrote:
>
> More info - I'm using appfuse 1.9.4 and used appgen to generate the
> classes.
>
>
>
> ___
Yes, I am using Struts 1.x. I would not mind entering it into the JIRA,
but not sure how to go about that. Could you send me a link to the JIRA
and I'll take care of it.
Scott
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt
Raible
Sent: Wednesday,
You'll need to create an account if you don't already have one:
http://issues.appfuse.org/secure/CreateIssue!default.jspa
Matt
On 2/21/07, Scott Purcell <[EMAIL PROTECTED]> wrote:
Yes, I am using Struts 1.x. I would not mind entering it into the JIRA,
but not sure how to go about that. Could y
Looks like java script client-side validations ignores this.
Is there functionality to make per-method validation with
TestAction-TestAction_method-validation.xml like files?
Why in personForm.jsp (tutorial) tutorial on cancel button validation is
ignored?
mraible wrote:
>
> You can use the
That's configured in struts.xml, where the validationInterceptor
excludes methods from validation:
cancel,execute,delete,edit,list,start
Matt
On 2/21/07, ros <[EMAIL PROTECTED]> wrote:
Looks like java script client-side validations ignores th
All,
This may be more of a hibernate/MySql issue than an Appfuse one but this
could occur is Appfuse as well.
I am trying to generate Ids for newly added customers using a table called
SEQUENCE
in MySql 5.0. I am using hibernate 3.2.1.ga annotations. The next customer I
enter should
have an Id of
Matt,
Figured it out.
In the validator-rules.xml there is a required validator:
Problem is, the constructor in the 1.2.9 jar has a
org.apache.commons.validator.Validator between ActionMessages and
Request. Once I added it like so:
All works great now. I just didn't know how to put this fix i
On 2/21/07, Scott Purcell <[EMAIL PROTECTED]> wrote:
Matt,
Figured it out.
In the validator-rules.xml there is a required validator:
Problem is, the constructor in the 1.2.9 jar has a
org.apache.commons.validator.Validator between ActionMessages and
Request. Once I added it like so:
All wo
sionsmith wrote:
here is a simple example of what i have:
user = userManager.getUserByUsername(getRequest().getRemoteUser());
I've found there are times when I need basic info from the current user
object (which acegi stores in the session, so going to the DB is not
necessary), and times whe
Hi all,
I've been playing around with this for a few hours now and i cant seem to
get it working, the users in my system have a number of added entities
compared with that of the stand appfuse one. I thought i could just extend
the class and place the new attributes in the new class.
===
Which version of AppFuse are you using?
Matt
On 2/21/07, sionsmith <[EMAIL PROTECTED]> wrote:
Hi all,
I've been playing around with this for a few hours now and i cant seem to
get it working, the users in my system have a number of added entities
compared with that of the stand appfuse one. I
You should be able to put the displaytag within a div that you set the
width, height, overflow and scroll CSS properties.
There may be other ways, but thats what I'd try first.
Nathan
Travers Snyman wrote:
Hi
Is there a way to add a horizontal scrollbar to the display table of
displaytag
I'm pretty new to JSF and Acegi, and I just learned about enableOnUserRole
and visibleOnUserRole attributes for components. I tried them out yesterday
and like the way they work and the fact that it cleans up the code in my
opinion.
What's considered the best practice? Is it better to use authori
I guess this is all generated.
-Original Message-
From: sionsmith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 21, 2007 9:39 AM
To: users@appfuse.dev.java.net
Subject: [appfuse-user] RE: Did I miss a Spring Config??
can you post your config mate?
Clark D. Liu wrote:
>
> More
I assume you're using 2.0 because of the annotations. Did you change
the mapping in the hibernate.cfg.xml file so it is looking for
InukUser instead of org.appfuse.model.User?
Matt Raible wrote:
Which version of AppFuse are you using?
Matt
On 2/21/07, sionsmith <[EMAIL PROTECTED]> wrote:
The DAO tests show that it is working. My Struts action pretty much is
identical to my DAO test but it returns an empty list. The other method
which returns a list works fine so I figured (maybe incorrectly) that I
needed to register my new method somewhere. I haven't spent much with
appfuse but i
If you run the list test in your manager and action, do you get
similar results. If you can isolate the problem to which test it's
failing in, you should be able to debug and figure out what's
different.
Matt
On 2/21/07, Clark D. Liu <[EMAIL PROTECTED]> wrote:
The DAO tests show that it is wor
Ok thanks.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt
Raible
Sent: Wednesday, February 21, 2007 12:02 PM
To: users@appfuse.dev.java.net
Subject: Re: [appfuse-user] RE: Did I miss a Spring Config??
If you run the list test in your manager and act
If you're using the Acegi component from jsf-comp, it's probably the
same thing. Acegi's SecurityContextHolderAwareRequestFilter
(http://tinyurl.com/2dv5ab) makes request.getRemoteUser() and
request.isUserInRole() work. I suspect that enable* and visible* both
use the isUserInRole call. It seem
WARN [btpool0-2] PageNotFound.noHandlerFound(1005) | No mapping for
[/mainMenu.html] in DispatcherServlet with name 'dispatcher'
2.0-m3, using the tutorial as posted yesterday. I've worked up through the
web tutorial for Spring MVC up through creating
'src/main/webapp/WEB-INF/pages/persons.jsp'.
You should be able to crank up the logging using
src/main/resources/log4j.xml. If you look in
target/yourapp-name/WEB-INF/dispatcher-servlet.xml, do you see a
mapping for mainMenu.html?
If you'd like to send me your project with instructions to reproduce
the problem, I can take a look at it late
The only item in the target/**/dispatcher-servlet.xml is the single
controller I created, in main/webapp/WEB-INF/dispatcher-servlet.xml When I
created that controller, I had to create the dispatcher-servlet.xml file;
I'm now assuming there should have been something already there?
If that's the
There is a bug I fixed earlier this week where the
dispatcher-servlet.xml (and a number of other files) weren't included
in the archetypes by default.
http://issues.appfuse.org/browse/APF-652
If you create a new project with a 1.0-m4-SNAPSHOT archetype and copy
the files from its src/main/webapp
I am having some trouble with appfuse and the struts validator
framework. I have an object A with a foreign key to another object B.
When appfuse generates the StrutsForm object for A, it notices object B,
changes the object reference to BForm, and includes that property in the
generated class. I'm
I've also been thinking of extending the original User class by adding more
properties to it. The way I did it was to extract the core model classes
from appfuse, add @Inheritance(strategy=InheritanceType.JOINED) to the
User.java, and then create a new class which extends User, and add @Entity
to
Greetings everyone!
Does anyone know how to do a relationship one-to-one? I'm working with
appfuse w/spring... and I've done relationships many-to-one or one-to-many a
lot of times, but now I need a relationship one-to-one ... I've read the
XDoclet API to see how to do one.. but I don't quite und
You can just use a many to one with unique set to true like this:
@hibernate.many-to-one column="deviceId" unique="true" lazy="false"
on my getDevice() method
Its a constrained many to one where you can really only have one of these for
each deviceId.
- Original Message
From: hquinn <[
(project name is 'food')
mvn archetype:create -DarchetypeGroupId=org.appfuse
-DarchetypeArtifactId=appfuse-basic-jsf
-DremoteRepositories=http://static.appfuse.org/repository
-DarchetypeVersion=1.0-m4-SNAPSHOT -DgroupId=com.talldean -DartifactId=food
(lotta warnings, ${foo} is not a valid refere
Hi,
If you're using JPA annotations, you could probably take a look here (search
for @onetoone):
http://www.oracle.com/technology/products/ias/toplink/jpa/resources/toplink-jpa-annotations.html
or perhaps here?
http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html#mapping-declarati
You created a JSF project! Use:
-DarchetypeArtifactId=appfuse-basic-spring
Instead of:
-DarchetypeArtifactId=appfuse-basic-jsf
;-)
Matt
On 2/21/07, Dean Jackson <[EMAIL PROTECTED]> wrote:
(project name is 'food')
mvn archetype:create -DarchetypeGroupId=org.appfuse
-DarchetypeArtifactId=a
So, we have a menu-config.xml that defines 2 menus - these show up correctly
along the top of the web app. However, one of the menus appears along the
side of some pages and I can't find how to change that. I'd like to remove
the side menu while still having the menu appear along the top.
If anyo
Is the side menu an admin menu? If so, look in decorators/default.jsp
- there's some logic in there to show the admin menu on the side.
Matt
On 2/21/07, tonyl <[EMAIL PROTECTED]> wrote:
So, we have a menu-config.xml that defines 2 menus - these show up correctly
along the top of the web app.
Shoot! I was on the right track as I was looking in web/common, but didn't
know about the default.jsp in the decorators dir. Thank you very much!
mraible wrote:
>
> Is the side menu an admin menu? If so, look in decorators/default.jsp
> - there's some logic in there to show the admin menu on
You may try Composition rather than Inheritance. You can make a User a
property of your other People objects. So you have a Person root class that
you can extend (if you have a tree-like domain need) and then you
encapsulate the User property as that Person's userAccount property.
I think I
52 matches
Mail list logo