Re: [appfuse-user] Workflow in appfuse

2007-05-03 Thread Jonathan Tse
d for workflow. JBPM, or Bonita could also be integrated. I was thinking about something a bit more generic ? What do you think ? Regards, Nicolas, On Apr 30, 2007, at 5:28 PM, Jonathan Tse wrote: Hi Niko, Do you mind giving us some very brief information (like the technologies, architecture

Re: [appfuse-user] iReport and Acegi UserDetails

2007-05-02 Thread Jonathan Tse
: Hi, You'll have to add your .jar in ireport classpath using options/classpath menu. You'll be able to user your bean fields in ireport. -Message d'origine- De : Jonathan Tse [mailto:[EMAIL PROTECTED] Envoyé : mercredi 2 mai 2007 11:44 À : users@appfuse.dev.java.net O

[appfuse-user] iReport and Acegi UserDetails

2007-05-02 Thread Jonathan Tse
Hi all, I am currently trying to use iReport and meet some difficulties. In iReport we can choose from "report query" (which is plain sql) or "javabean data source". When choosing javabean data source, some of my class attributes can be shown and some classes can't. I further discovered

Re: [appfuse-user] Switch database from mySQL to Db/2 using JNDI datasources

2007-05-01 Thread Jonathan Tse
Bajaj, We use INT for role column in DB2. I am using appfuse 1.9.3 but i doubt there is a permission column in 2.0. Btw, regarding generation of DDL, i suggest that you should setup your own db2 development environment, make sure everything is working fine first. After that, you can use d

Re: [appfuse-user] Workflow in appfuse

2007-04-30 Thread Jonathan Tse
tasks to make a smooth integration. Niko, On Apr 27, 2007, at 1:47 PM, Jonathan Tse wrote: I personally welcome this kind of integration to appfuse. I am not familar with openwfe but a richer set of feature will make appfuse more attractive. Jonathan Nicolas Modrzyk wrote: Hi list, T

Re: [appfuse-user] Database driven struts menu and filter

2007-04-27 Thread Jonathan Tse
/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Hi all, I am using Spring 1.9.4 and Spring MVC. I want to make a strut menu from database. According to the Database Driven Menu example, it suggests using filter to preload the data to the menu repository. I have written my data loading lo

Re: [appfuse-user] Database driven struts menu and filter

2007-04-27 Thread Jonathan Tse
aible wrote: You could use an HttpSessionActivationListener and do it that way - stuff the menu repository in the session of each new user. Matt On 4/27/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Hi all, I am using Spring 1.9.4 and Spring MVC. I want to make a strut menu from database. According to

[appfuse-user] Database driven struts menu and filter

2007-04-27 Thread Jonathan Tse
Hi all, I am using Spring 1.9.4 and Spring MVC. I want to make a strut menu from database. According to the Database Driven Menu example, it suggests using filter to preload the data to the menu repository. I have written my data loading logic in service manager already, so how i can injec

Re: [appfuse-user] Workflow in appfuse

2007-04-26 Thread Jonathan Tse
I personally welcome this kind of integration to appfuse. I am not familar with openwfe but a richer set of feature will make appfuse more attractive. Jonathan Nicolas Modrzyk wrote: Hi list, This a forward from a short mail with Matt: Looking at all the progress and achievements done in

Re: [appfuse-user] i18n in action

2007-04-26 Thread Jonathan Tse
I see your point. And I agree that Model can reach MessageSourceAccessor. Currently in Spring MVC, i18n is not supported very well too (or i miss something?). I duplicated BaseFormController to a BaseController so that all controllers which implements org.springframework.web.servlet.mvc.Contr

Re: [appfuse-user] Which web framework are you using with AppFuse?

2007-04-25 Thread Jonathan Tse
Matt, Is JIRA and Confluence using separate account management system? I cannot use my JIRA account to log on confluence. Best regards, Jonathan Matt Raible wrote: As part of my upcoming Comparing Java Web Frameworks talk, I'd like to show some statistics of web framework usage in AppF

Re: [appfuse-user] Spring MVC data binding

2007-04-13 Thread Jonathan Tse
Hi, I have done something like this before and i suggest that you should include an id when posting to SFC. In this way, you can guarantee that your dao will update the database with the correct id. Don't rely on the index of the list as the command object is not stored in the session. It

Re: [appfuse-user] Native2ascii and Chinese character

2007-04-11 Thread Jonathan Tse
ion. HTH As far as your jsp files xml is again your friend. You could convert all your jsp's to the xml format and specify the encoding in the pre-amble: HTH Jonathan Tse wrote: I am using appfuse 1.9.3 , thx wnqq wrote: please let us know which version of appfuse you are talking

Re: [appfuse-user] How to i18n images

2007-03-21 Thread Jonathan Tse
="login" width="73" height="23"/> Mike On 3/21/07, *Jonathan Tse* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Hi all, I have been using tag to i18n my view. When I try to i18n the image, I found that the following

[appfuse-user] How to i18n images

2007-03-20 Thread Jonathan Tse
Hi all, I have been using tag to i18n my view. When I try to i18n the image, I found that the following method doesn't work. key="image.login" />" />" name="login" value="login" width="73" height="23"/> So , how do you i18n your image? Any input is welcome Best regards, Jonathan

Re: [appfuse-user] How do I reuse a view(jsp) through SpringMVC

2007-03-12 Thread Jonathan Tse
Ivan, It works! Thanks. Best regards, Jonathan Ivancho wrote: You can set a new request variable named "order" before you do the include: Ivan Jonathan Tse wrote: Hi all, I don't know if my question make sense or not. I got a jsp (say, ViewOrder.jsp) disp

[appfuse-user] How do I reuse a view(jsp) through SpringMVC

2007-03-07 Thread Jonathan Tse
Hi all, I don't know if my question make sense or not. I got a jsp (say, ViewOrder.jsp) displaying an order summary, i want to reuse it everytime I want to display something together with this order summary by using In this jsp it take a variable at path "order". In one controller wh

Re: [appfuse-user] Native2ascii and Chinese character

2007-02-26 Thread Jonathan Tse
I am using appfuse 1.9.3 , thx wnqq wrote: please let us know which version of appfuse you are talking about. Jonathan Tse wrote: Hi all, I am currently working on the i18n part of my application. I notice that I need to perform a native2ascii conversion for my

[appfuse-user] Native2ascii and Chinese character

2007-02-26 Thread Jonathan Tse
Hi all, I am currently working on the i18n part of my application. I notice that I need to perform a native2ascii conversion for my ApplicationResources_zh*.properties or otherwise I will get some monster character. Why is that? The file are already encoded in UTF-8. Moreover, if I type ch

Re: [appfuse-user] DB2 Driver Class cannot be loaded error in AppFuse

2007-02-13 Thread Jonathan Tse
you should find something like db2_*licence.jar and put it in your classpath. I am not at office now, maybe I can give you more exact step tmr. Best regards, Jonathan ranjini wrote: Hi, I am trying to connect AppFuse with DB2 version 9. I found that to change the database connectivity, we need

[appfuse-user] List inside a form object - SimpleFormController

2007-02-05 Thread Jonathan Tse
Hi all, I have a question about spring mvc. Can I put a List in the form object and bind each object inside the List? I want to post a list of things (imagine a list of object with checkbox which can be deleted in one screen). I have attached my code below and got the following error: Nei

Re: [appfuse-user] JSTL and Class constant

2007-01-31 Thread Jonathan Tse
Thanks Matt. Will let you know if there is any alternatives. Matt Raible wrote: It's the only way I know of, but would love to hear other alternatives. Matt On 1/30/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Hi all, In appfuse there is a Constants Class holding many constan

[appfuse-user] JSTL and Class constant

2007-01-30 Thread Jonathan Tse
Hi all, In appfuse there is a Constants Class holding many constant value and it was put into request scope by a custom tag. I would like to know if this is the only way to access a Class constant in jstl? Seems it is not so handy Best regards, Jonathan -

Re: [appfuse-user] Redirect after authentication (acegi)

2007-01-29 Thread Jonathan Tse
iated. Thanks Best regards, Jonathan Matt Raible wrote: In the authenticationProcessingFilter, you can set the defaultTargetUrl. You can also set it's always used: ref="authenticationManager"/> HTH, Matt On 1/29/0

[appfuse-user] Redirect after authentication (acegi)

2007-01-29 Thread Jonathan Tse
formBackingObject method of this controller) but this constant cannot be found. Any idea? Best regards, Jonathan Tse | From acegi documentation: Once the |SecurityContextHolder| has been updated, the browser will need to be redirected to the target URL. The target URL is usually indicated by the

Re: [appfuse-user] Where is the Logout.jsp mentioned in security.xml in appfuse 1.9.4 located?

2007-01-25 Thread Jonathan Tse
Hi Paul, Please refer http://issues.appfuse.org/browse/APF-566 Best regards, Jonathan Tse Garvey, Paul M (GE Comm Fin) wrote: I am using Acegi 1.0.3 and JBoss 4.0.5.ga - Paul -Original Message- From: Jonathan Tse [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 10:32

Re: [appfuse-user] Where is the Logout.jsp mentioned in security.xml in appfuse 1.9.4 located?

2007-01-25 Thread Jonathan Tse
Hi Paul, What is your web container? Best regards, Jonathan Garvey, Paul M (GE Comm Fin) wrote: 1. I can't find the logout.jsp mentioned in the Acegi security config file, where is it located? Is it in a jar somewhere? 2. Also I am have problems invalidating the session and so a u

[appfuse-user] Uploading image

2007-01-24 Thread Jonathan Tse
Hi all, I notice that there is quite a lot of code to handle one file upload in FileUploadController.java . Is there any helper library that can help to make the code shorter? Btw, what library do you use to resize image ? Best regards, Jonathan Tse

Re: [appfuse-user] Recursive data structure in JSP

2007-01-23 Thread Jonathan Tse
ad the contents of a hierarchy too. If you end up using it would be very nice to share thoughts about use/integration-design. Cheers, Samuel. -----Original Message- From: Jonathan Tse [mailto:[EMAIL PROTECTED] Sent: Martes, 23 de Enero de 2007 02:46 a.m. To: users@appfuse.dev.java.net S

Re: [appfuse-user] Recursive data structure in JSP

2007-01-23 Thread Jonathan Tse
verse the tree and print out the contents. Regular ol' HTML tags should help you indent it where you need to. Matt On 1/23/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Hi all, I am implementing a multi-level hierarchy (You can imagine it category , sub category and sub sub cate

[appfuse-user] Recursive data structure in JSP

2007-01-23 Thread Jonathan Tse
ly in the JSP if I just pass the root node to the View. I couldn't find any tag library on the net that could traverse the whole tree. Any idea? Should I write a custom tag? Or just flatten the structure before output to View? Best regards, Jo

[appfuse-user] Application level question - Product versus Item

2007-01-14 Thread Jonathan Tse
Hi all, In jpetstore (spring sample app), a Product may contain several items and customer will purchase an item instead of a product. I found the term "item" and "lineitem" in a lot of textbook too. In reality, is there any case that contains product -> items relationship? I am implement

[appfuse-user] UsernameNotFoundException redirect to login

2007-01-12 Thread Jonathan Tse
Hi all, I found that when UsernameNotFoundException is thrown in Controller, appfuse will re-direct me to the login page. I am curious to know which configuration has done this trick? The exceptionTranslationFilter in security.xml? Thanks for your kind attention Best regards, Jonathan --

Re: [appfuse-user] How to make url friendly in spring?

2007-01-09 Thread Jonathan Tse
Thanks Dale. I will try it out. Dale Newfield wrote: Dale Newfield wrote: Add a "shortName" attribute to your category object Make that a *unique* attribute. -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [appfuse-user] How to make url friendly in spring?

2007-01-09 Thread Jonathan Tse
Hi Dale, If this is the case, I would have to hardcode the id in urlrewrite.xml . I am thinking of passing "camera", "mp3players" to the controller. Best regards, Jonathan Tse Dale Newfield wrote: Jonathan Tse wrote: If I got some url like this h

[appfuse-user] How to make url friendly in spring?

2007-01-09 Thread Jonathan Tse
Hi all, If I got some url like this http://localhost/shop/viewCategory.html?categoryId=1 -> Camera category , Handled by ViewCategoryController http://localhost/shop/viewCategory.html?categoryId=2 -> Mp3 Players category , Handled by ViewCategoryController Is it possible that I c

Re: [appfuse-user] Websphere 6 doesn't work with acegi 1.01

2007-01-07 Thread Jonathan Tse
Done. http://issues.appfuse.org/browse/APF-566 Matt Raible wrote: Can you please enter this issue in JIRA so other users can search and find the solution? http://issues.appfuse.org Thanks, Matt On 1/7/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Matt, If I place your logout.jsp

Re: [appfuse-user] Websphere 6 doesn't work with acegi 1.01

2007-01-07 Thread Jonathan Tse
%> <% session.invalidate(); Cookie terminate = new Cookie(TokenBasedRememberMeServices.ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE_KEY, null); terminate.setMaxAge(0); response.addCookie(terminate); %> Matt On 1/5/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Matt, I mean, I d

Re: [appfuse-user] Websphere 6 doesn't work with acegi 1.01

2007-01-05 Thread Jonathan Tse
JIRA with steps to reproduce? Also, you could try WebSphere CE - it should work fine on there. Matt On 1/5/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Matt, Login does work. However, I tried to deploy acegi sample app to websphere and both login and logout work! Seems it is an appfuse p

Re: [appfuse-user] Websphere 6 doesn't work with acegi 1.01

2007-01-05 Thread Jonathan Tse
#x27;s probably related to Acegi's LogoutFilter. Matt On 1/5/07, Jonathan Tse <[EMAIL PROTECTED]> wrote: Hi all, Sorry. It seems that 1.0.3 doesn't work too. I am finding out why Best regards, Jonathan Jonathan Tse wrote: > Hi all, > >Just want to let yo

Re: [appfuse-user] Websphere 6 doesn't work with acegi 1.01

2007-01-05 Thread Jonathan Tse
Hi all, Sorry. It seems that 1.0.3 doesn't work too. I am finding out why Best regards, Jonathan Jonathan Tse wrote: Hi all, Just want to let you know that websphere 6.0.2 doesn't work with 1.01. When I click logout.jsp, it returns a 404. I have tried 1.0.3, it

[appfuse-user] Websphere 6 doesn't work with acegi 1.01

2007-01-05 Thread Jonathan Tse
Hi all, Just want to let you know that websphere 6.0.2 doesn't work with 1.01. When I click logout.jsp, it returns a 404. I have tried 1.0.3, it works fine. Please note that appfuse 1.9.3 still bundle acegi 1.0.1. All you need to do is replacing the jar. Best regards, jonathan

[appfuse-user] Appfuse on Websphere 6 succeed

2006-12-20 Thread Jonathan Tse
Matt, Is there any reason that /web/pages does not live under /web/WEB-INF? :) Best regards, Jonathan Tse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]