[appfuse-user] Eclipse Classpath issue

2007-04-11 Thread Youssef Mohammed

fyi,
   Following is Matt's answer to the question posted below. Sorry I
wasn't aware of the user list.
Regards,
   Youssef

-
Matt said:

The reason there's paths to build/* is because there's quite a few
files generated by XDoclet and they need to be compiled.  In AppFuse
2.x, we're using annotations instead of XDoclet and eliminating a lot
of these issues.  In fact, there's even an Eclipse Plugin now:

http://candy4appfuse.sf.net

In the future, it'd be great if you could ask these types of question
on the user mailing list - that way your questions and my answers can
be archived for others to view.

Thanks,

Matt
- Hide quoted text -

On 4/11/07, Youssef Mohammed <[EMAIL PROTECTED]> wrote:

Matt;
First of all, I want to thank you for the great effort you are
doing in AppFuse.
I have a question related to eclipse class path entries.
I wondering what is the need to add them as source folders although
they seem not having any  java source except of the the last one.







Also I think that having it on src/web/gen seems more natural than
build/web/gen
because it is a source files though they are generated and they are
some classes under src that depend on them.

What do you think ?

--
Regards, Youssef





--
Regards, Youssef

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [appfuse-user] Swing integration

2007-09-24 Thread Youssef Mohammed
 AppFuse is an application for "kickstarting" webapp development.

On 9/24/07, Tuncay A. <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Are there any resource on on how to integrate Swing in Appfuse ?
>
> Thx in advance.
>
> //tua
>
>
> --
> View this message in context:
> http://www.nabble.com/Swing-integration-tf4508672s2369.html#a12858294
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards, Youssef


Re: [appfuse-user] Spring MVC, looking for UI elements

2007-11-20 Thread Youssef Mohammed
free

On Nov 20, 2007 1:46 PM, Carlos Ortiz <[EMAIL PROTECTED]> wrote:

> Thanks Sib
>
> It seems quite interesting, and one question, are they free or paid?
>
>
> On 11/19/07, Sib <[EMAIL PROTECTED]> wrote:
> >
> > Mostly JSP and servlets
> >
> > http://www.servletsuite.com/index.html
> >
> > JSP tags:
> >
> >http://www.servletsuite.com/jsp3.htm
> >
> > HTH
> >
> > On Nov 19, 2007 4:19 PM, Carlos Ortiz <[EMAIL PROTECTED]> wrote:
> >
> > > Hi you all
> > >
> > > I am looking for good open source or free UI elements to use in JSP
> > > like calendars, tabs, and others (this is the list I have in mind these
> > > days.
> > >
> > > I know of DisplayTag for tables or presenting a list of items.
> > >
> > >
> > > Thank you for your help
> > >
> >
> >
>


-- 
Regards, Youssef


Re: [appfuse-user] Speed up Development Cycles....

2008-03-10 Thread Youssef Mohammed
I don't really get the idea of doing ant ... why not just to mvn
eclipse:eclipse and use WTP in eclipse ... it works find with though I
haven't tried it with appfuse.

On Mon, Mar 10, 2008 at 5:31 PM, Cayetano <[EMAIL PROTECTED]> wrote:

> Hi Anthony,
>
> >
> >  We're using appfuse 1.9 with Spring MVC, Hibernate, and Postgresql ...
> > deploying with JDK 1.6 (Sun), and Tomcat 5 (and 6, depending on the
> > developer).
> >
>
> We have similar environments based on appfuse 1.9.4, except jdk 1.5
> instead of 1.6
>
> >
> >  Any other ideas?  What are you guys / gals doing to speed up
> development?
> >
>
> I've created some Ant scripts called build_devel.xml and
> build_test.xml, any of them for development and testing team,
> respectively, which are based on the original build.xml with some
> variations:
>
> - it has compile-*, package-* and deploy-* for every layer, in our
> case: common, dao, service, ws and web
> - every target has no dependencies to bottom layers, so, if a
> developer is working only on web layer, doesnt need to reconstruct all
> the project, just only the modified one
> - every developer must do a complete refresh/redeploy on every global
> change (i.e.: svn update)
> - also we have a pseudo-cache system for XDoclet generation (Hibernate
> and TLD) which is basically: back up the previously hbm.xml generated,
> don't do the hibernatedoclet target, and restore the old xml files,
> this is a bit odd but effective :)
>
> With those changes we gain from 2-3 minutes every "refresh", to less
> than 1minute, and if you are only working on web layer just deploy in
> tomcat in a few seconds.
>
> Hope that helps you
>
> Cheers
> --
> Cayetano
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards, Youssef


Re: [appfuse-user] Question about dependencies in AppFuse 2.0.2

2008-05-12 Thread Youssef Mohammed
from the pom.xml.

On Mon, May 12, 2008 at 2:58 PM, Irshad Buchh <[EMAIL PROTECTED]> wrote:

>
> Hi,
> We tried AppFuse 2.0.2 it rocks some annoying JSF issues have gone. We
> want
> to get rid of XFire and AJAX4Java and instead want to add Apache CXF and
> JBoss RichFaces respectively. Where do we add the corresponding
> dependencies
> and where do we remove the XFire & Ajax4Java dependencies?
>
> --Irshad.
> --
> View this message in context:
> http://www.nabble.com/Question-about-dependencies-in-AppFuse-2.0.2-tp17186146s2369p17186146.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards, Youssef


Re: [appfuse-user] Question about dependencies in AppFuse 2.0.2

2008-05-12 Thread Youssef Mohammed
these are the entries we are using


org.richfaces.framework
richfaces-api
3.2.0.GA


org.richfaces.framework
richfaces-impl
3.2.0.GA


org.richfaces.ui
richfaces-ui
3.2.0.GA




On Mon, May 12, 2008 at 3:10 PM, Youssef Mohammed <
[EMAIL PROTECTED]> wrote:

> from the pom.xml.
>
> On Mon, May 12, 2008 at 2:58 PM, Irshad Buchh <[EMAIL PROTECTED]> wrote:
>
> >
> > Hi,
> > We tried AppFuse 2.0.2 it rocks some annoying JSF issues have gone. We
> > want
> > to get rid of XFire and AJAX4Java and instead want to add Apache CXF and
> > JBoss RichFaces respectively. Where do we add the corresponding
> > dependencies
> > and where do we remove the XFire & Ajax4Java dependencies?
> >
> > --Irshad.
> > --
> > View this message in context:
> > http://www.nabble.com/Question-about-dependencies-in-AppFuse-2.0.2-tp17186146s2369p17186146.html
> > Sent from the AppFuse - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Regards, Youssef




-- 
Regards, Youssef


Re: [appfuse-user] about the oracle9i characterset

2008-06-11 Thread Youssef Mohammed
i don't think there is such a thing in Oracle.

note that in oracle they term database is somehow different than mysql ...
what is a database in mysql is a schema in oracle.

another note about character sets ... you have set the database character
set during creating it (normally during installing oracle),
using NLS_CHARACTERSET should be set automatically then on the server ..
however on the client side you just need to set them so the client speaks
the same language as the server.

it is also better to use the oci driver.



On Wed, Jun 11, 2008 at 11:18 AM, davidludut <[EMAIL PROTECTED]> wrote:

> The issue is like this: my customer is Chinese, so I use the UTF-8 for the
> database character set. The appfuse 2.X default use mysql database, for this
> issue I do like this 1. change the my.ini configuration for database support
> utf8 character. 2. use the default jdbc setting: This setting is copyed from
> Database settings part of the pom.xml. 3. I define a CustomMysqlDialect
> class, let it extends org.hibernate.dialect.MySQL5InnoDBDialect, and then I
> overrides the getTableTypeString() method, let it return " ENGINE=InnoDB
> DEFAULT CHARSET=utf8". So the above is ok, the mysql can support Chinese
> character, but my project default use oracle 9i, I can create a database use
> sql to point out the database use "NLS_CHARACTERSET UTF8". And then use the
> manual create database, it can support the Chinese character. My question,
> is there any method to use the jdbc setting let oracle create a utf8
> characterset database? Thank you, waiting for your reply J
> --
> View this message in context: about the oracle9i 
> characterset
> Sent from the AppFuse - User mailing list 
> archiveat Nabble.com.
>



-- 
Regards, Youssef


Re: [appfuse-user] DoubtOnACEGI Remember me

2008-06-12 Thread Youssef Mohammed
On Thu, Jun 12, 2008 at 4:39 PM, Matt Raible <[EMAIL PROTECTED]> wrote:

> AFAIK, this is not possible as the cookie is tied to the browser being used
> and there's no information from the browser that identifies who is using it.


+1 , actually remembering user A and B in the same time, would have to
prompt for the user to select either A or B, meaning that A and B are pretty
much the same user! (both can see each other's profile)

May be it is just better to have different browser profiles on the same PC.
(eg. for fireforx , just run firefox -ProfileManager -no-remote )




>
>
> Matt
>
>
> On Thu, Jun 12, 2008 at 7:38 AM, jithesh <[EMAIL PROTECTED]> wrote:
>
>>
>> Thanks for your reply matt. What I am looking is to figure out a mechanism
>> to
>> keep more users on remember me. For example user A and user B  are using
>> same computer to access the application. If both users can set their
>> session
>> on the same browser, the job done. I know remember me works for single
>> user.
>> But I am looking to extend that feature to more users.(It wont use it in
>> public computers..).Just lke saving multiple user sessions across the
>> browser. Is that possible ? Please give me some ideas on my logic..
>>
>>
>> regards,
>> Jithesh
>>
>>
>>
>> mraible wrote:
>> >
>> > Remember Me should work for everyone that chooses to use it. It's
>> > cookie-based, so it will be on a per-browser basis. If that doesn't
>> > provide
>> > what you're looking for, please provide more details.
>> >
>> > Thanks,
>> >
>> > Matt
>> >
>> > On Wed, Jun 11, 2008 at 11:58 PM, jithesh <[EMAIL PROTECTED]> wrote:
>> >
>> >>
>> >> Hello Guys...
>> >>
>> >>I am using appfuse 1.9.4 for developing my web application. I
>> >> encorporated ACEGI remember me in my web app. Recently I had a thought
>> in
>> >> my
>> >> mind regarding the remember me option. Its basicaly one user can set
>> the
>> >> remember me for a browser. I was plannin to keep it for multiple user.
>> >> That
>> >> is more than one user can set it for remember. Does it work ? I would
>> >> like
>> >> to get some information on my idea. Is it possible to do that?
>> >>
>> >>  Please let me know how it works.
>> >>
>> >> Thanks and Regards,
>> >> Jithesh PM.
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/DoubtOnACEGI-Remember-me-tp17793028s2369p17793028.html
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/DoubtOnACEGI-Remember-me-tp17793028s2369p17800176.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


-- 
Regards, Youssef


Re: [appfuse-user] I18N Problem

2008-08-24 Thread Youssef Mohammed
On Sun, Aug 24, 2008 at 7:41 PM, alibehzadian <[EMAIL PROTECTED]>wrote:

>
> Hi,
>
> I used Persian text right inside JSP. I saved JSP file with UTF-8 encoding

You have to make sure also that the pages that are rendered to the client
(browser) is identified as UTF-8 encoded (not sure if this is the default in
appfuse or not).

>
> and then I build the project.
> After visiting the JSP, all texts garble. I guess the problem is related to
> sitemesh decorator but I have
> no idea how to solve this problem. Any idea?
>
> Ali Behzadian Nejad.
> --
> View this message in context:
> http://www.nabble.com/I18N-Problem-tp19132153s2369p19132153.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards, Youssef


Re: [appfuse-user] I18N Problem

2008-08-25 Thread Youssef Mohammed
It could be so , some suggestions :

   - check the generated WAR file itself to make sure that your JSPs are
   indeed utf-8 encoded and not garbaged.
   - change the default locale in your system, if it works then it has to be
   in some library that just takes the default locale. The solution would be
   then to just configure/change it to use utf-8.

Regards,
  Youssef


On Mon, Aug 25, 2008 at 11:42 AM, alibehzadian <[EMAIL PROTECTED]>wrote:

>
> In meta.jsp (that is included in every JSP) I have the following line:
>
>
> and my IDE is set to use UTF-8 as its encoding. Even I set encoding
> manually
> to UTF-8 (with some tools) and then rebuild the project and still have the
> problem.
>
> I guess the problem is related to order of filters or is related to
> sitemesh?
>
> Thanks,
> Ali Behzadian Nejad.
>
>
> --
> View this message in context:
> http://www.nabble.com/I18N-Problem-tp19132153s2369p19139967.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards, Youssef


Re: Re: [appfuse-user] download appfuse?

2008-08-25 Thread Youssef Mohammed
try
mvn *-U* integration-test


On Mon, Aug 25, 2008 at 12:05 PM, sam wun <[EMAIL PROTECTED]> wrote:

> Hi, I tried to build one of the tutorial, however I got some errros:
>
>
> D:\DEV\samples\AppFuse\mvcbasic>mvn integration-test
> [INFO] Scanning for projects...
> Downloading:
> http://static.appfuse.org/repository/org/appfuse/maven-warpath-plug
> in/2.0.2/maven-warpath-plugin-2.0.2.pom
> 2K downloaded
> Downloading:
> http://static.appfuse.org/repository/org/appfuse/appfuse/2.0.2/appf
> use-2.0.2.pom
> 21K downloaded
> Downloading:
> http://static.appfuse.org/repository/org/appfuse/maven-warpath-plug
> in/2.0.2/maven-warpath-plugin-2.0.2.jar
> 10K downloaded
> [INFO]
> 
> [INFO] Building AppFuse Spring MVC Application
> [INFO]task-segment: [integration-test]
> [INFO]
> 
> Downloading:
> http://static.appfuse.org/repository/org/apache/maven/plugins/maven
> -war-plugin/2.0.2/maven-war-plugin-2.0.2.pom
> 1K downloaded
> Downloading:
> http://static.appfuse.org/repository/org/apache/maven/plugins/maven
> -plugins/7/maven-plugins-7.pom
> 13K downloaded
> Downloading:
> http://static.appfuse.org/repository/org/apache/maven/maven-plugin-
> surrogate-parent/5/maven-plugin-surrogate-parent-5.pom
> 10K downloaded
> Downloading:
> http://static.appfuse.org/repository/org/apache/maven/plugins/maven
> -war-plugin/2.0.2/maven-war-plugin-2.0.2.jar
> 27K downloaded
> Downloading:
> http://static.appfuse.org/repository/org/codehaus/mojo/appfuse-mave
> n-plugin/2.0.2/appfuse-maven-plugin-2.0.2.pom
> 10K downloaded
> Downloading:
> http://static.appfuse.org/repository/org/codehaus/mojo/mojo/13/mojo
> -13.pom
> 8K downloaded
> Downloading:
> http://static.appfuse.org/repository/org/codehaus/mojo/appfuse-mave
> n-plugin/2.0.2/appfuse-maven-plugin-2.0.2.jar
> 127K downloaded
> Downloading:
> http://static.appfuse.org/repository/org/codehaus/mojo/aspectj-mave
> n-plugin/1.0/aspectj-maven-plugin-1.0.pom
> Downloading:
> http://repo1.maven.org/maven2/org/codehaus/mojo/aspectj-maven-plugi
> n/1.0/aspectj-maven-plugin-1.0.pom
> 6K downloaded
> Downloading:
> http://static.appfuse.org/repository/org/codehaus/mojo/mojo/14/mojo
> -14.pom
> Downloading:
> http://repo1.maven.org/maven2/org/codehaus/mojo/mojo/14/mojo-14.pom
>
> Downloading:
> http://repo1.maven.org/maven2/org/codehaus/mojo/mojo/14/mojo-14.pom
>
> Downloading:
> http://static.appfuse.org/repository/org/codehaus/mojo/mojo/14/mojo
> -14.pom
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Error building POM (may not be this project's POM).
>
>
> Project ID: null:aspectj-maven-plugin:maven-plugin:1.0
>
> Reason: Cannot find parent: org.codehaus.mojo:mojo for project:
> null:aspectj-mav
> en-plugin:maven-plugin:1.0 for project
> null:aspectj-maven-plugin:maven-plugin:1.
> 0
>
>
> [INFO]
> 
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> 
> [INFO] Total time: 2 minutes 34 seconds
> [INFO] Finished at: Mon Aug 25 18:59:29 EST 2008
> [INFO] Final Memory: 3M/7M
> [INFO]
> 
>
> D:\DEV\samples\AppFuse\mvcbasic>
>
>
>
> Your help is much appreciated.
>
>
>
> thanks
>
> sam
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> - Original Message -
> From: Vincenzo Caselli
> Sent: 25/08/08 06:28 pm
> To: users@appfuse.dev.java.net
> Subject: Re: [appfuse-user] download appfuse?
>
> Hi Sam,
> I perfectly understand you, since I made myself the same question when I
> started.
> Well, Appfuse download indeed does not exist!
> It uses Maven to download the archetype of your choice.
> Just install Maven and follow the commands from the tutorial, it will
> download all you need.
>
> Regards
>
> Vincenzo Caselli
>
>
> On Mon, Aug 25, 2008 at 10:14 AM, sam wun <[EMAIL 
> PROTECTED]
> > wrote:
>
>>  Hi there,
>>
>>
>> This is an odd/sure question..
>>
>> where is the download link for appfuse?
>>
>> There is no download link in the appfuse.org website.
>>
>>
>> Thanks
>>
>> Sam
>>
>
>


-- 
Regards, Youssef


Re: [appfuse-user] I18N Problem

2008-08-25 Thread Youssef Mohammed
Marc;
Thanks !
I have tried it on the header jsp and it worked just fine !
The link you have provided is amazing .. it went directly to my Delicious !


On Mon, Aug 25, 2008 at 1:39 PM, Marc Siramy <[EMAIL PROTECTED]> wrote:

> You need the following line at the top of your jsps:
> <%@ page language="java" pageEncoding="utf-8"
> contentType="text/html;charset=utf-8" %> .
>
> .. and .. you can see here if you didn't miss a step (it helped mysel
> recently):
> http://blogs.warwick.ac.uk/kieranshaw/entry/utf-8_internationalisation_with.
>
> Hope that helps.
>
> --
> Marc
>
> 2008/8/25 alibehzadian <[EMAIL PROTECTED]>
>
>
>> In meta.jsp (that is included in every JSP) I have the following line:
>>
>>
>> and my IDE is set to use UTF-8 as its encoding. Even I set encoding
>> manually
>> to UTF-8 (with some tools) and then rebuild the project and still have the
>> problem.
>>
>> I guess the problem is related to order of filters or is related to
>> sitemesh?
>>
>> Thanks,
>> Ali Behzadian Nejad.
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/I18N-Problem-tp19132153s2369p19139967.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>


-- 
Regards, Youssef


[appfuse-user] Adding appfuse in 99transactions

2008-09-03 Thread Youssef Mohammed
http://99translations.com/
I like the idea behind the site ... just add your i18n files up there,
translations should be done cooperatively. there is also ANT task to
download them.
neat idea , isn't ?

-- 
Regards, Youssef


Re: [appfuse-user] AJAX Web framework

2008-09-12 Thread Youssef Mohammed
richfaces ajax support as cool and simple.

On Fri, Sep 12, 2008 at 2:36 PM, Juan Heyns <[EMAIL PROTECTED]> wrote:

>  Hello Guys
>
> This question may be considered as off topic. Excuse it. If you are not
> interested, please stop reading.
>
> I would like to have some expert oppinions on which web framework best
> supports AJAX controls and rich interfaces. I have limited experience with
> Struts2 and so far it has not been painless.
>
> Any suggestions?
>
> Juan
>
>


-- 
Regards, Youssef


Re: [appfuse-user] Using Stored Procedures.

2008-09-16 Thread Youssef Mohammed
yeah JPA is not the way to go for that.

Try SqlMaps of iBATIS .. they are quite nice

http://ibatis.apache.org/javadownloads.cgi
a simple demo .. it has many nice blogs about that  ( db is oracle here )
http://www.it-eye.nl/weblog/2008/07/04/simple-delete-and-insert-statements-with-ibatis/


On Tue, Sep 16, 2008 at 3:45 PM, Mauriff <[EMAIL PROTECTED]> wrote:

>
> Any ideas? I read about "JavaTM Persistence API: Best Practices and Tips"
> from Java One and here they says:
> "Stored Procedures
> How to invoke them
>  -Not specified by Java Persistence API
>  -Three ways to do this
> -Can use persistence provider specific support
> -Can use the underlying Java DataBase Connectivity
>  (JDBCTM) Connection object, if provider allows it, and
> create a CallableStatement
> -Can specify User-Defined Functions (UDF) and wrap
> -SQL Procedures in them
>You can call UDFs through SQL SELECT statements, and
> hence, use native queries in Java Persistence API
>  -Options 1 and 2 locks into the provider whereas
>  -Option 3 is a persistence provider agnostic way"
>
>
> How I can integrate Appfuse 2.x with Stored Procedures?
>
>
>
>
>
>
> Mauriff wrote:
> >
> > Hi, I want use stored procedure in PL/SQL  in my application.
> > How I should embed the DDL for the stored procedure for creation and
> > remove?
> > How I should mapped the procedures?
> > How ? should call the procedures?
> >
> > Thanks a lot!
> >
> > Mauri
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Using-Stored-Procedures.-tp19495092s2369p19512184.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Regards, Youssef


Re: [appfuse-user] mvn archetype:create -o fails even with dependencies in ~/.m2/repository

2008-09-18 Thread Youssef Mohammed
why are you running in offline mode "-o" ?
try -U instead.

On Thu, Sep 18, 2008 at 11:46 AM, mugsy <[EMAIL PROTECTED]> wrote:

> Running mvn -o archetype:create -DarchetypeGroupId=org.appfuse.archetypes
> -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=
> http://static.appfuse.org/releases -DarchetypeVersion=2.0.2
> -DgroupId=enjogu.struts2.basic -DartifactId=basicstruts fails with this
> message The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does
> not exist or no valid version could be found yet I have downloaded the
> dependencies as instructed and unzipped to ~/.m2/repository.
> --
> View this message in context: mvn archetype:create -o fails even with
> dependencies in 
> ~/.m2/repository
> Sent from the AppFuse - User mailing list 
> archiveat Nabble.com.
>



-- 
Regards, Youssef


Re: [appfuse-user] Hibernate madness - how to order a Set

2008-11-20 Thread Youssef Mohammed
Set , by definition, has no particular order for its elements.
You'd better use *List* , with [EMAIL PROTECTED] , you get and ordered list.


Regards, Youssef


On Thu, Nov 20, 2008 at 5:51 PM, syg6 <[EMAIL PROTECTED]> wrote:

>
> I have a @OneToMany Collection (EstablishmentBins) in my POJO
> (Establishment), mapped as a Set. I've tried using LinkedHashSet and
> TreeSet, no go, Hibernate says I can't. Ok, fair enough.
>
> But since it is a plain old Set there is no order. And I need some order.
> So
> I changed my EstablishmentBin POJO so it implements Comparable and made a
> compareTo() method. That's when the problems started.
>
> When loading an Establishment in EstablishmentDaoHibernate, If I futz with
> EstablishmentBins  - for example cast it to a TreeSet and do an
> establishment.setEstablishmentBins(establishmentBinsTreeSet), Hibernate
> complains saying:
>
> A collection with cascade="all-delete-orphan" was no longer referenced by
> the owning entity instance
>
> I also tried:
>
> 1. Casting the Set to a TreeSet, calling clear() on the Set and then
> calling
> addAll(TreeSet). This doesn't work because at the end of the day, the POJO
> still has a Set, so any ordering I do is lost.
>
> 2. Making a private method, orderBins(TreeSet) in Establishment that either
> does the stuff from #1 (clear(), addAll(TreeSet)) or from above
> (this.setEstablishmentBins(establishmentBinsTreeSet)). Neither one works.
> The first one does nothing, the second fails with the same Hibernate error.
>
> So I moved the setEstablishmentBins(establishmentBinsTreeSet) call up into
> the EstablishmentFormController. Annoying, and probably not a Best
> Practice.
> But it works. I am not sure why it works in a Controller and not a Dao, but
> there it is.
>
> But I have another problem - I sometimes load the Establishment from Ajax,
> and I need the EstablishmentBins to be ordered there as well. But I have no
> Controller, I call the Manager/DAO directly. So it seems I *need* to put
> the
> code for ordering the EstablishmentBins in the DAO, at least for this call.
>
> How the heck can I do this without Hibernate getting cross with me?
>
> Bob
> --
> View this message in context:
> http://www.nabble.com/Hibernate-madness---how-to-order-a-Set-tp20604234s2369p20604234.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [appfuse-user] how to config GMail's SMTP server to be used by AppFuse

2009-01-06 Thread Youssef Mohammed
you need to configure your java mail props to have
mail.smtp.auth = true
mail.smtp.starttls.enable = true

as for the port you can use 587 instead.

Regards, Youssef


On Tue, Jan 6, 2009 at 11:03 PM, Ice-Man  wrote:

> Fabio,
>
>   I think u've pointed me in the right way, bcoz there are a lot of Secure
> Policies here!! :O
>   I asked the people from infra-structure/network and I made the
> configuration accordingly, but, unfortunetally, get the same result.
>   I guess the only solution is download SMTP Server and
> install locallyhost it as instructed in QuickStart tuto. Oh, yeah! If I want
> to see it work properlly I'll have to "do my homework" (even being a
> temporary solution)!! ;-))
>   Thnk u so much!!
>
> Ice-Man
>
>
> 2009/1/6 Fabio Cepeda 
>
>
>> It seems the mail server is blocking port 25, sometimes they do this so
>> that
>> the server is not used as a mail forwarder they only let you send emails
>> if
>> you are able to authenticate yourself. Have you tried the mail properties
>> with username and password?
>>
>> Hope it helps,
>>
>> Fabio
>>
>>
>> Ice-Man wrote:
>> >
>> >   Hi all,
>> >
>> >   Everytime I try to configure (in mail.properties) mail.host= as
>> > myCompany
>> > OutLook SMTP Server or either a WebMailler SMTP Server, I always get an
>> > error (for instance): '...[btpool0-3] MailEngine.send(76) | Mail server
>> > connection failed; nested exception is javax.mail.MassageingException:
>> > Could
>> > not connect to SMTP host: smtps.bol.com.br, port 25; nested exception
>> is:
>> > java.net.ConnectException: Connection refused: connect'.
>> >  So, I ask: how can I configure a GMail's SMTP server to be used by
>> > AppFuse's mail service??!
>> >   In advance, thnx a lot,
>> >
>> > Ice-Man
>> >
>> >
>> > 2009/1/5 Ice-Man 
>> >
>> >>   And also confirming: when a new member signsUp an account a e-mail is
>> >> sent to his (new member) own e-mail box (from "myCompany"'s mail box),
>> is
>> >> this way??!
>> >>   And what about if I try to change AppFuse mailing behavior?!! Like
>> >> this:
>> >> whenever a new member SignUp an account, a e-mail is sent to my
>> (AppFuse)
>> >> Application Administrator's mail box (instead of  new member mail box),
>> >> so
>> >> that notify Administrator a New Member is trying to Sign In his
>> >> Application??!
>> >>   It'd be possible in AppFuse??! If so, how do it?!!
>> >>   Thnx,
>> >>
>> >> Ice-Man
>> >>
>> >> 2008/12/31 watcher 
>> >>
>> >>
>> >>>
>> >>> Ice-Man wrote:
>> >>> >
>> >>> >I would like to confirm if SMTP settings are used whenever a new
>> >>> member
>> >>> > SingUp an account, right??!
>> >>> >   If so,  I would like to know  how to config SMTP to set AppFuse to
>> >>> use
>> >>> > Exchange/OutLook Coorporative MailServer??!
>> >>> >
>> >>> >
>> >>> >
>> >>>
>> >>> Just update the mail.properties file to point to you company exchange
>> >>> server.
>> >>>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-to-config-GMail%27s-SMTP-server-to-be-used-by-AppFuse-tp21295305s2369p21316540.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>>


Re: [appfuse-user] Working with velocity templates

2009-01-15 Thread Youssef Mohammed
it is a little bit ugly to do that in Velocity, here is the way I do it


//TODO: these stuff need to be injected
VelocityEngine ve = new VelocityEngine();
try {
Properties p = new Properties();
p.setProperty("resource.loader", "string");
p
.setProperty("string.resource.loader.class",

"org.apache.velocity.runtime.resource.loader.StringResourceLoader");
ve.init(p);
StringResourceRepository vsRepository = StringResourceLoader
.getRepository();
String myTemplateName = "maglink";
String myTemplateBody = "Hi $name ! How do you do?" ;
vsRepository.putStringResource(myTemplateName, myTemplateBody);
} catch (Exception e) {
e.printStackTrace();
}
VelocityContext context = new VelocityContext();
context.put(  "name" ,  "Youssef");
Template template = null;
try {
template = ve.getTemplate("maglink");
StringWriter sw = new StringWriter();
template.merge(context, sw);
assert  sw.toString().equals("Hi Youssef ! How do you do?")  ;

} catch (ResourceNotFoundException rnfe) {
// couldn't find the template
} catch (ParseErrorException pee) {
// syntax error: problem parsing the template
} catch (MethodInvocationException mie) {
// something invoked in the template
// threw an exception
} catch (Exception e) {
}
// TODO Auto-generated method stub




Regards, Youssef


On Fri, Jan 16, 2009 at 3:38 AM, Shailesh Patel wrote:

> Shan -
>
> You can use the evaluate method on a VelocityEngine instance -- pass in
> your own StringWriter:.
>
> See
> http://velocity.apache.org/engine/releases/velocity-1.4/api/org/apache/velocity/app/VelocityEngine.html#evaluate(org.apache.velocity.context.Context,%20java.io.Writer,%20java.lang.String,%20java.lang.String)
>
> -Shailesh
>
>
>
> On Thu, Jan 15, 2009 at 4:32 PM, ashan  wrote:
>
>>
>> I will try to ask this in Velocity forum. It would be very convenient if
>> we
>> have a overloaded VelocityUtil.mergeTemplatexx that takes InputStream
>> instead of template file name ;) .
>>
>> Thanks!
>>
>>
>>
>>
>> ashan wrote:
>> >
>> > I'm using appfuse 2.x. I need to let user to customize email content
>> > before sending. So I have a screen with textarea that shows velocity
>> > template so that user can add their additional contents / customize
>> > current content before sending.
>> >
>> > Is there a  way to pass this modified content to template engine without
>> > saving this into a file?
>> >
>> > Any other better  solution?
>> >
>> > Thanks!
>> > Shan
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Working-with-velocity-templates-tp21476180s2369p21487366.html
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>>
>