Not really a problem, I was just curious. There are lots of patterns for
creating puesdo-puesdo-random-numbers, and it seems like using the database is
expensive for that function.
It depends on the purpose of the random number and the scale and performance of
the app I guess.It's really
A couple questions: How is it deployed on Tomcat? as a war with your own
context.xml or just auto-deployed war? Can you paste in the catalina.out
output for the relevant request(s)?
Anything special going on in web.xml we should know about? What about
security.xml? Any differences locally
cess(Http11Processor.java:829)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
> at java.lang.Thread.run(Thread.java:637)
>
>
It's not that Appfuse prevents the implementation, it's that Appfuse pre-dates
the Convention plugin and its implementation patterns established a while ago.
There is no reason why Appfuse couldn't do what you want it to, but there would
be a number of changes that would have to happen to the e
It's not dependency injection if you are looking up and grabbing a service in a
factory. Nothing is being injected. The beauty of DI is too vast to describe
in email, but it is a more declarative model. You declare a service with an
interface in the DI container. You then declare that you wa
Ok, you are right. It doesn't work out of the box after the archetype build.
The fix seems simple, but is likely to end up being more complex as it might
have side effects.
The issue is in struts.xml.
This tells struts to only look at URL's with a .html extension. Really want
Strut
See you at Java Symposium. Poker, March Madness, oh and Java.
See you there!
-D
-
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net
Does anyone have experience creating a GenericDaoHibernate without using XML
or subclassing and just using Spring annotations?
So I think I want to be able to do something like:
private GenericDao personDao;
@Autowired
setPersonDao(GenericDao personDao){
this.personDao = personDao;
}
You c
Yeah Derek, we are not sure what a JE is, and transaction can mean a number
of things. Can you post your model code and describe what you are trying
to do in a little more detail?
Derek Broughton-2 wrote:
>
> I am s frustrated.
>
> I have an accounting app, where accounts have JEs, and
My guess is that you have entered the correct setter method in the
UserAction.java but at runtime the original org.appfuseUserAction code
is being run. This has has to do with how you have your project setup.
How are you getting UserAction.java into your projects source code? mvn
appfuse:fu
I think I get what you are saying. I don't think there is an easy way to do
that in displayTag, but you could do the following instead:
* Remove DisplayTags paging links and replace with your own.
* Determine what years you want to display and then create a link for each
year that will filter
I think this error means that spring cannot find the correct implementation
for your LookupManager interface. What I would do is go look at the
applicationContext.xml and verify that the class you have specified there
implements the correct interface.
This has happened to me in the past when I
+1 to Rob. You are absolutely right on the pattern you describe. One of the
main reasons is that you want to have repeated patterns throughout your code
even when your code becomes more complex.
When I am first starting, I will usually create a model and an Action and
use a GenericManager, bu
Changes to your user object shouldn't get persisted until the session flushes
at the end of the transaction. But things get fuzzy here for me since I am
not really an expert on Hibernate/Spring transactions.
You call UserManager.save(user) right after the code below, right? So
somehow the tra
rrc7cz wrote:
>
> For various policy reasons, I can't have any trace of Maven in my project.
> I
> was wondering if there are gotchas I should be aware of before I start
> removing it from the project. Any tips on making it easier? Thanks,
>
> Rob
>
>
Hmmm. Well you are going to want to do
There is no provision for creating a foreign key (object relationship) based
drop-down in appfuse:gen. So if you have a OneToMany relationship in your
model that you ran appfuse:gen against, then you will need to create your
own drop-down based on the models children. Its not too terrible. In y
Rob,
Its probably that time where you zip up the relevant code and ship it off to
me. [EMAIL PROTECTED]
It will be easier if I just take a look, if you'd like me to.
-Dusty
Rob Hills wrote:
>
> Hi Dusty,
>
> dusty wrote:
>> #1 Can you show me your cancel button?
if(child.getId() != null){
childManager.remove(child.getId()) //or something like that
}
parent.getChildren().remove(index);
return SUCCESS;
}
Rob Hills wrote:
>
> Hi Dusty,
>
> On 14 Nov 2007 at 7:44, dusty wrote:
>
>> That is the beauty
At some point I will try to create some pretty wiki tutorial write ups on the
Appfuse siite for this pattern and some other goodies I use regularly.
-D
Rob Hills wrote:
>
> Hi All,
>
> I have an AppFuse 2 + Hibernate + Struts application that includes two
> model classes with a one -> many ent
:
com.cenqua.clover
clover
2.0.1
dusty wrote:
>
> Hello,
>
> I have not been able to get the maven2 clover plugin from Atlassian to
> work with my basic struts archetype. I think I have it setup right but I
> get weird errors like:
>
> /
Rob Hills wrote:
>
> Hi Dusty,
>
> On 13 Nov 2007 at 21:02, dusty wrote:
>
>> So it doesn't happen that often, but it just so happens I wrote what you
>> described today! ;-)
>>
>> You create a table with each row representing your child objects. E
So it doesn't happen that often, but it just so happens I wrote what you
described today! ;-)
You create a table with each row representing your child objects. Each html
element should have the name parent.child[%{row.index}].childpropertyname.
The row part comes from
Next you need to create
You can't cast a List to a Set but you can create a Set from a List.
List myList = manager.getAll();
Set uniqueList = new HashSet(myList);
No iteration or casting needed! ;-)
George.Francis wrote:
>
> Doing this cast causes the following exception to be thrown from Manage
> Users:
>
> org.
Its definitely a Struts bug, but the work around of creating your own
template to override their broken one could be an Appfuse tip/tutorial!
-Dusty
mraible wrote:
>
> Is this a Struts 2 bug or an AppFuse one? If the template is in
> Struts, you should probably file an issue in Str
not the Product class you think you have. Please post
your DAO, Manager and Action code so we can see why you have Strings instead
of Products.
-Dusty
Rob Hills wrote:
>
> Hi All,
>
> I have a weird error on a Listing JSP that's had me stumped for several
> hours.
>
&g
Hello,
I have not been able to get the maven2 clover plugin from Atlassian to work
with my basic struts archetype. I think I have it setup right but I get
weird errors like:
/home/dusty/code/bioguide/target/clover/src/com/thebioguide/webapp/action/ProviderAction.java:64:0::0
I have run into this problem and the ordering the data in sample-data.xml
definitely works on the insert. My problem is that the tables can't be
truncated or deleted because you can't control the order when CLEAN_INSERT
runs. So I usually write a script that truncates/deletes the table data and
trying to imitate it.
Anyways, Appfuse 2.0 rocks! Thanks Matt and the rest of the team!
-Dusty
--
View this message in context:
http://www.nabble.com/Appfuse-coverage-on-theserverside.com-tf4549079s2369.html#a12981514
Sent from the AppFuse - User mailing list archive at Nabble.com
The solution from Mike works. My variables in struts.xml that were getting
replaced were ${provider.id} and ${id}. It was weird because something like
${contact.provider.id} would not get replaced.
How can I look at what is replaced with filter=true in the process-resources
goal?
-D
Mike Hor
getClubName() {
> return clubName;
> }
>
>
> From the above codings, what did I miss out ?
>
> p/s ** I am using 2.0-M5 struts basic
>
>
>
>
>
>
>
>
>
>
> dusty wrote:
>>
>> It depends on how you want
etCommandClass(Requestdao.class);
> setCommandName("requestdao");
> }
>
> protected Object formBackingObject(HttpServletRequest request)
> throws Exception {
> String _id = request.getParameter("_id");
>
> if (!String
te the
relationships when you repost. I suppose you could use the Session but I
just think thats wrong (opinion).
Aled Rhys Jones wrote:
>
> Thanks for your answer Dusty.
> I have a table that has company data, and one that has association data
> (not
> the relationship, but as
nd object is my model object.
> I am also able to save updated value for the entries generated by maven...
>
>
>
>
>
> dusty wrote:
>>
>> A couple of questions to help me understand your problem:
>>
>> 1) Are you using Struts? What web framework a
I have talked about this topic a few times. More like rambled, but basically
its basically about using Composition and making the Appfuse User object a
property of a wrapper you create to include your relationships and
additional properties. I have used that model on a recent project and it
work
So you have an association class with some properties like "type of
relationship", "time of union", etc. You want users to edit these
properties or rewire the relationships or both?
If its just modifying the "modifiers" of the relationship then I believe you
can treat the association object as a
Do you have an tag? Are you using some of the built
in dojo objects on this page? I have seen this flash occur with an iframe
using dojo.
-D
Daniel.Rodriguez wrote:
>
> Some news :
>
> Just got a huuuge project aproved by using Appfuse (and a Appfuse-based
> Stripes project). Matt & everyo
It depends on how you want to implement this. Presumably you want to assign
a user to a single club (ManyToOne). If a user could be in many clubs then
it would be a ManyToMany. But lets stick with ManyToOne and/or the inverse
side Club to User OneToMany.
In appfuse2 you are insulated from the
You have a common interceptor problem when using relationships. The net net
is that you need to modify your inteceptor stack so that near the top you
have an order like
params
prepare
params
That is the first part of the solution.The second part is you need to
implement Preparable on yo
A couple of questions to help me understand your problem:
1) Are you using Struts? What web framework are you using.
2) Have you customized your jsp form or the action the form posts to?
Also, help me understand your problem but confirming my understanding.
You have a model object for which yo
Thanks Matt. I am trying to get used to Maven. I fear change.
-D
mraible wrote:
>
> Have you run "mvn install" on the core module?
>
> On 6/7/07, dusty <[EMAIL PROTECTED]> wrote:
>>
>> I have a modular struts application using M5. I have ported ov
I have a modular struts application using M5. I have ported over my model
classes and everything was working well in core. I added my my classes to
hibernate.cfg.xml and the hibernate plugin happiliy generates my tables.
There are quite a few relationships between the POJOs.
I can run mvn app
Did you ever get the answer to this question? I have seen in other threads
this issue about querying the users. Apparently its a Hibernate issue and
its joining the user's roles and returning you the cross-join product. The
way it was suggested to fix this is to put your Users (or Students) int
Related to this.
I am using the Struts2 Modular archetype. I get a struts.xml in
WEB-INF/classes which I edit to add my actions. Along the way I wanted to
change an appfuse action (MainMenu) to use an action class I created rather
than the pass-through ActionSupport to the JSP page. But
uld be fixed in the next release of EhCache. We have an open
> issue for it in JIRA and more details about it are available in
> EhCache's issue tracker.
>
> Matt
>
> On 2/28/07, dusty <[EMAIL PROTECTED]> wrote:
>>
>> I have seen references to this bug, bu
I am trying to get more involved. I have been quietly playing with these
things for a long time.
See you in Vegas?
-D
mraible wrote:
>
> Don't be sorry Dusty - this is great information! Now if only we could
> figure out a way to get you to ramble on on the mailing list
r.shutdown(CacheManager.java:702)
at net.sf.ehcache.CacheManager$1.run(CacheManager.java:505)
[INFO] [dbunit:operation {execution: test}]
[INFO] [war:war]
[INFO] Exploding webapp...
[INFO] Assembling webapp appfuse-struts in
/home/dusty/lib/appfuse-2.0/web/struts/target/appfuse-struts-2.0-m4-SNAPSHOT
--
have a habit of talking too much.
-D
Fan wrote:
>
> In fact my understanding in Struts & dojo is vey minimal, I am at a lost
> junction now :P
>
>
> dusty wrote:
>>
>> No problem. Its not a matter of checking. Its an issue. So to fix this
>> issue
just adapt the code to
work with the Struts action mapping. Do you think you can make that
adaptation?
Fan wrote:
>
> Dusty, could you please tell me how to check the HTML extension issue ? I
> am using Appfuse 2.0 with struts2 web framework
>
>
>
> dusty wrote:
&g
Strangely enough Fan, someone kind of hijacked this thread with an issue that
could very well help you. Random and strange.
The issue is that Appfuse ships with .html mapped to be the extension for
struts actions. Dojo requires an actual .html file be served up and Struts
intercepts the request
PLEASE DO! You can post it here or you can create a page on the Struts2 wiki
here:
http://cwiki.apache.org/confluence/display/S2WIKI/Home
You can just create your own account to post to this wiki.
Both would be great.
-Dusty
VJ22 wrote:
>
> Thanks Dusty
>
> I finally get this
not able to
> retrieve the chart of the value stackthat is why the error
>
> TksVJ
>
>
> dusty wrote:
>>
>> Here are some JFreeChart results used in WebWork (Struts2's parent).
>>
>> http://www.opensymphony.com/webwork/wikidocs/JFr
Here are some JFreeChart results used in WebWork (Struts2's parent).
http://www.opensymphony.com/webwork/wikidocs/JFreeChartResult.html
It looks like in Struts they have formalized the JFreeChart result type:
http://struts.apache.org/2.x/struts2-plugins/struts2-jfreechart-plugin/apidocs/index.ht
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
53 matches
Mail list logo