[appfuse-user] question on cluster environment

2008-10-15 Thread Ding, Qin
Our appfuse(1.9.4) runs in a clustered environment. (Websphere with Oracle). We have a requirement to know which instance of websphere serves the user request. Does anyone know how to implement this requirement? Thank you for your ideas and pointers. QD

RE: [appfuse-user] Advice please.

2008-09-08 Thread Ding, Qin
u can include specific .html's in here and assign them with ROLE_ANONYMOUS. Not sure though if this is the best practice. HTH! Richard On Sep 8, 2008, at 10:09 PM, Ding, Qin wrote: > My website has two parts, general information and membership-only > information. > > Members

[appfuse-user] Advice please.

2008-09-08 Thread Ding, Qin
My website has two parts, general information and membership-only information. Membership-only part is built using Appfuse 1.9.4/MySql/Spring MVC, which requires longin. The general information part should not require login. How should I make changes so that user can browse the general informatio

[appfuse-user] disable displaytag msg

2008-06-16 Thread Ding, Qin
Appfuse 1.9.4/SpringMVC DisplayTag display's a msg "4 found. Displaying all " on top of the table. How can I disable this msg? Thanks. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

RE: [appfuse-user] Menu and Menu Item

2008-06-13 Thread Ding, Qin
On Fri, Jun 13, 2008 at 9:50 AM, Ding, Qin <[EMAIL PROTECTED]> wrote: I am using appfuse 1.9.4. I tried to remove the fileupload from the menu. I commented it out from menu-config.xml, but got msg on the page stating fileupload is not in the repository. How to remove the Memu like Log

[appfuse-user] Menu and Menu Item

2008-06-13 Thread Ding, Qin
I am using appfuse 1.9.4. I tried to remove the fileupload from the menu. I commented it out from menu-config.xml, but got msg on the page stating fileupload is not in the repository. How to remove the Memu like Login and FileUpload? Thank you.

RE: [appfuse-user] help appfuse 1.9.4 on DB2/Websphere eclipse WTP

2008-06-09 Thread Ding, Qin
, I've never used WTP so I can't offer much help. Matt On Mon, Jun 9, 2008 at 9:03 AM, Ding, Qin <[EMAIL PROTECTED]> wrote: > Matt: > > I tried to use eclipse WTP to run and debug my appfuse based > application. I have some difficulties to deploy and debug the app using &

[appfuse-user] help appfuse 1.9.4 on DB2/Websphere eclipse WTP

2008-06-09 Thread Ding, Qin
Matt: I tried to use eclipse WTP to run and debug my appfuse based application. I have some difficulties to deploy and debug the app using WTP. I found the following entry but I could not find the instruction for doing that. Would you please help me with some pointers or instructions on how-to?

RE: [appfuse-user] CRUD+

2008-04-16 Thread Ding, Qin
I am using Appfuse 1.9.4/JSF/DB2. When I generate the JSF page (i.e., list and form) using appgen, the list page has a pagination component. How can I make it work with my java.util.List? Any pointers are appreciated. Thanks. QD > ---

[appfuse-user] DisplayTag and JSF Managed Bean

2008-04-08 Thread Ding, Qin
Appfuse 1.9.4/JSF/DisplayTag 1.1/DB2 Does DisplayTag work with JSF's managed Bean? Any pointers and references are appreciated. Q View this message in context: http://www.nabble.com/Acegi-and-app_user.-Recommended-use-of-custom-user -classes-tp16556921s2369p16572058.html Sent from the AppFuse

RE: [appfuse-user] a cache question

2008-02-22 Thread Ding, Qin
12:09 PM To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] a cache question If you query the database after calling merge - does the change show up in there? Does it happen in multiple browsers? Matt On 2/11/08, Ding, Qin <[EMAIL PROTECTED]> wrote: > Matt: &

[appfuse-user] appfuse and jbpm integration

2008-02-22 Thread Ding, Qin
I am using Appfuse 1.9.4/Mysql/JSF. I tried to integrate jbpm to my appfuse-based the application. I followed the instruction at http://raibledesigns.com/wiki/Wiki.jsp?page=IntegratingJBPMIntoAppFuse. 1. I created jbpm tables in my application database (mysql); 2. I reused the "datasource

[appfuse-user] setup-db question

2008-02-12 Thread Ding, Qin
How do I use setup-db to create the table with the hibernate UserType in xdoclet attribute? I create a UserType and use it in xdoclet like this @hibernate.property column="my_column" type="org.appfuse.util.MyUserType" When I run setup-db, "org.appfuse.util.MyUserType" is unable to be resolved

RE: [appfuse-user] a cache question

2008-02-11 Thread Ding, Qin
] a cache question Have you tried flushing the SessionFactory after updating the collection? Matt On Feb 8, 2008, at 1:27 PM, Ding, Qin wrote: > > I have a department domain object which contains a list of user > objects. > After the admin adds or removes a user from the departm

[appfuse-user] a cache question

2008-02-08 Thread Ding, Qin
I have a department domain object which contains a list of user objects. After the admin adds or removes a user from the department, I had a hard time to see the modified department's user list unless I logout, close the browser, open a new browser session and the login again, then I can see the d

RE: [appfuse-user] cacheFlush verify

2008-02-08 Thread Ding, Qin
Matt On Feb 8, 2008, at 10:35 AM, Ding, Qin wrote: > Matt: > > Is Appfuse using ehcache by default? I believe the user object is in > that cache. If this is the case, how do I clean up ehcache from admin > menu? Right now in the AdminMenu, we have cacheFlush.jsp there, which >

RE: [appfuse-user] cacheFlush verify

2008-02-08 Thread Ding, Qin
ed by default. Matt On Feb 8, 2008, at 10:21 AM, Ding, Qin wrote: > > I am using Appfuse 1.9.4/DB2/JSF. > > When I run cacheFlush.jsp, I believe that all objects in the EHCache > will be "emptied" or "cleaned" by ? Is there a w

[appfuse-user] cacheFlush verify

2008-02-08 Thread Ding, Qin
I am using Appfuse 1.9.4/DB2/JSF. When I run cacheFlush.jsp, I believe that all objects in the EHCache will be "emptied" or "cleaned" by ? Is there a way I can verify it? Thank you. QD - To unsubscribe, e-mail: [EMAIL PROTE

RE: [appfuse-user] Using User from appfuse in appz

2008-01-22 Thread Ding, Qin
ubject: Re: [appfuse-user] Using User from appfuse in appz I don't know of any upgrade issues - I'd suggest upgrading to 2.5.1 which was released last week. Matt On Jan 22, 2008, at 2:24 PM, Ding, Qin wrote: Matt, Yes, I tried. I pasted the code in. It won'

RE: [appfuse-user] Using User from appfuse in appz

2008-01-22 Thread Ding, Qin
- I'd suggest upgrading to 2.5.1 which was released last week. Matt On Jan 22, 2008, at 2:24 PM, Ding, Qin wrote: Matt, Yes, I tried. I pasted the code in. It won't compile due to the fact getRequest method is not visible. I am using appfuse 1.9.4. and the spring is 2.0. Is

RE: [appfuse-user] Using User from appfuse in appz

2008-01-22 Thread Ding, Qin
below? I'm using this on a project with Spring 2.5 and it works. Matt On Jan 22, 2008, at 2:13 PM, Ding, Qin wrote: Matt: getRequest() method is not visible from requestAttributes. QD From: Matt Raible [mailto:[EMAIL PROTECTED] Sen

[appfuse-user] Simple

2008-01-22 Thread Ding, Qin
How do I configure JavaMailSenderImpl and SimpleMailMessage to send HTML mail messages? Is it possible? Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [appfuse-user] Using User from appfuse in appz

2008-01-22 Thread Ding, Qin
Attributes()).getRequest(); } HTH, Matt On Jan 22, 2008, at 1:12 PM, Ding, Qin wrote: Again, my goal is to find out how I can get application URL from my bean in service layer. According to Mike, I made my bean servletContextAware so that I can get applicat

[appfuse-user] Inject FacesContext to service bean

2008-01-22 Thread Ding, Qin
My goal is to find out how I can get application URL from my bean in service layer. According to Mike, I made my bean servletContextAware so that I can get application URL by calling Url url = servletContext.getResource("/index.jsp"); However, I don't get the host, port information from url.getHo

RE: [appfuse-user] Using User from appfuse in appz

2008-01-22 Thread Ding, Qin
Again, my goal is to find out how I can get application URL from my bean in service layer. According to Mike, I made my bean servletContextAware so that I can get application URL by calling Url url = servletContext.getResource("/index.jsp"); However, I don't get the host, port information

RE: [appfuse-user] Send Email from Service Layer

2008-01-21 Thread Ding, Qin
g wires up your application it will pass in the ServletContext. To obtain the web URL simply call servletContext.getResource("/index.html") or something similar. Mike On 1/18/08, Ding, Qin <[EMAIL PROTECTED]> wrote: Yes, Matt, I can pass the emailEngine but how do I get &qu

RE: [appfuse-user] Send Email from Service Layer

2008-01-21 Thread Ding, Qin
Mike: After my bean extends ServletContextAware and added the setter for the ServletContext, I got the nullpointer exception for the ServletContext. Do I still have to add to the applicationContext-service.xml file? If yes QD From: Ding, Qin [mailto

RE: [appfuse-user] Send Email from Service Layer

2008-01-21 Thread Ding, Qin
Spring wires up your application it will pass in the ServletContext. To obtain the web URL simply call servletContext.getResource("/index.html") or something similar. Mike On 1/18/08, Ding, Qin <[EMAIL PROTECTED]> wrote: Yes, Matt, I can pass the emailEngine but how do I get

RE: [appfuse-user] Send Email from Service Layer

2008-01-18 Thread Ding, Qin
Email from Service Layer You should be able to add a setEmailEngine method and wire it up in your XML file with: Matt On 1/17/08, Ding, Qin <[EMAIL PROTECTED]> wrote: > I have a need to send email from service layer (ie., > xxxManagerImpl.java) rather than web layer. There is

[appfuse-user] Send Email from Service Layer

2008-01-17 Thread Ding, Qin
I have a need to send email from service layer (ie., xxxManagerImpl.java) rather than web layer. There is no web layer for the application. This is a scheduled batch job. How do I get the emailEngine bean defined in spring applicationContext-service.xml from xxxManagerImpl.java? Thank you. ---

RE: [appfuse-user] Yikes Error Page

2008-01-11 Thread Ding, Qin
users@appfuse.dev.java.net Subject: Re: [appfuse-user] Yikes Error Page You may want to have a look at the ACEGI tag libraries to help here: http://www.acegisecurity.org/guide/springsecurity.html#taglib Mike On 1/11/08, Ding, Qin <[EMAIL PROTECTED]> wrote: I modified error.jsp. I have a

RE: [appfuse-user] Yikes Error Page

2008-01-11 Thread Ding, Qin
-user] Yikes Error Page Assuming you are using Struts with AppFuse 2.0.1 the page displayed on error is error.jsp. You can change the contents to be anything you like. Mike On 1/9/08, Ding, Qin <[EMAIL PROTECTED]> wrote: How can I replace "YIKES" error page with a use

RE: [appfuse-user] Yikes Error Page

2008-01-09 Thread Ding, Qin
displayed on error is error.jsp. You can change the contents to be anything you like. Mike On 1/9/08, Ding, Qin <[EMAIL PROTECTED]> wrote: How can I replace "YIKES" error page with a user friendly message while logging "YIKES" error stack? Or after logging the err

[appfuse-user] Yikes Error Page

2008-01-09 Thread Ding, Qin
How can I replace "YIKES" error page with a user friendly message while logging "YIKES" error stack? Or after logging the error, present the user with friendly page. Thanks QD - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

[appfuse-user] error display in JSF

2007-12-31 Thread Ding, Qin
Appfuse 1.9.4/DB2/JSF I am using the same logic as UserExistsException to do my own checking for the existence of the record. The backend is working fine in throwing errors when record already exists in the database. However, in JSF page, the error message is not shown. In JSF form, t

[appfuse-user] error db-export

2007-12-10 Thread Ding, Qin
Appfuse 1.9.4/DB2/JSF Ant task setup-db and db-load work fine with DB2 database. However, when I try to do db-export, I got the error org.dbunit.dataset.DataSetException: COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL 0204N "CWR.ALTOBJ_INFO" is an undefined name. SQLSTATE=42704

RE: [appfuse-user] Acegi Security LDAP

2007-12-07 Thread Ding, Qin
pe this helps. Gareth On 7 Dec 2007, at 15:11, Ding, Qin wrote: Mike: Thank you for the info. However, login is bit different. Please let me explain. We have single sign-on for the company. The appfuse application contact the company's signon via url, which challenges by p

RE: [appfuse-user] Acegi Security LDAP

2007-12-07 Thread Ding, Qin
with AppFuse: http://www.appfuse.org/display/APF/LDAP+Authentication Mike On 12/6/07, Ding, Qin <[EMAIL PROTECTED]> wrote: We built an appfuse application using 1.9.4. We need to change the login from db to ldap. Our company uses novell's ichan to authenticate/authorize the u

[appfuse-user] Acegi Security LDAP

2007-12-06 Thread Ding, Qin
We built an appfuse application using 1.9.4. We need to change the login from db to ldap. Our company uses novell's ichan to authenticate/authorize the user. What's the good and easy way to make that switch? Please advise. Thank you. QD -

[appfuse-user] ajax4jsf

2007-11-26 Thread Ding, Qin
Appfuse 1.9.4/JSF I have a dropdown of products. I need to dynamically display the detailed information on the selected products from the dropdown. I used a4j:support. However, I don't know how to pass the selectedItem to the action. I googled but found no working samples. Is there anyone

RE: [appfuse-user] User Model Access Denied

2007-11-13 Thread Ding, Qin
nsidered a security risk. Mike On 11/13/07, Ding, Qin <[EMAIL PROTECTED]> wrote: Appfuse 1.9.4/DB2/JSF I need to build a dropdown for all the users. Follow the CountryModel sample, to build a UserModel. When login as admin, it is fine. When I Login as user, userModel.getU

[appfuse-user] User Model Access Denied

2007-11-13 Thread Ding, Qin
Appfuse 1.9.4/DB2/JSF I need to build a dropdown for all the users. Follow the CountryModel sample, to build a UserModel. When login as admin, it is fine. When I Login as user, userModel.getUsers() got error: "org.acegisecurity.AccessDeniedException: Access is denied". My UserModel does not

[appfuse-user] RE: Questions on JSF Datatable and CommandLink

2007-10-25 Thread Ding, Qin
I am using Appfuse 1.9.4/JSF/DB2. I have a page using JSF tags datatable and commandLink. Everything is fine except that the commandLink within datatable does not fire the action, that is, the review method is never getting called. If I move the commandLink out of the datatable, it is trigging

[appfuse-user] debugging through Appfuse 1.9.4

2007-09-25 Thread Ding, Qin
Hi, I am using Appfuse 1.9.4, JSF, Eclipse 3.2 and tomcat plugin of sysdeo. I have a difficult time to set it up for debugging even I followed first Matt's instruction on http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseEclipse. I also found a few site giving the instructions but still not wo

[appfuse-user] Mapping to Blob (DB2)

2007-08-30 Thread Ding, Qin
Appfuse 1.9.4/DB2/JSF I try to map a java property to db type blob /** * @return Returns the content. * uploaded file's content: * word, excel, pdf, image, txt and html file content * @hibernate.property column="content" type="binary" not-null="true" */ public byte[] getContent() { ret

RE: [appfuse-user] Re: Struts test failure

2007-08-30 Thread Ding, Qin
Appfuse 1.9.4/DB2/JSF I try to map a java property to db type blob /** * @return Returns the content. * uploaded file's content: * word, excel, pdf, image, txt and html file content * @hibernate.property column="content" type="binary" not-null="true" */ public byte[] getContent() { ret

RE: [appfuse-user] Help please

2007-08-17 Thread Ding, Qin
/blog/?page_id=4 http://downside.ch/hibernate/hibernatetutorial-1.4.pdf I think the tutorial covers what you want to do. Regards, Abe On 8/16/07, Ding, Qin <[EMAIL PROTECTED]> wrote: Abc: Yest I mean Hibernate. abstract class textType{ protected Strin

RE: [appfuse-user] Help please

2007-08-16 Thread Ding, Qin
, I am not sure what part of your app you want to create a hierarchy relationship in. I am guessing you mean Hibernate. Can you describe the problem you are trying to solve in more depth. Regards, Abe On 8/14/07, Ding, Qin <[EMAIL PROTECTED]> wrote: I use Appfuse 1.9.4/J

[appfuse-user] Help please

2007-08-15 Thread Ding, Qin
I am having an problem and I searched the hibernate FAQ and tried many ways; but was not successful. I have an Object Product which has another object called Solution Product{ private String name; private SolutionSet solutionSet; /** * @return Returns the solutionSet. * @hibernate.m

[appfuse-user] Help please

2007-08-14 Thread Ding, Qin
I use Appfuse 1.9.4/JSF/DB2. I try to build a hierarchy relationship by adding xdoclet attributes to the class and its subclasses. Can anyone of the appfuse developers show me a good example or point me to a good document, tutorials...? Thank you very much.

RE: [appfuse-user] Cannot display validation error message with WebWork

2007-07-31 Thread Ding, Qin
I use Appfuse 1.9.4/JSF/DB2/Websphere 6.x. Appfuse deployed to websphere 6 successfully but if I use IE browser to display the application, it is good. If I use firefox, the entire page displayed is actually unreadable garbage. I then deploy the app to tomcat, both IE and FireFox display the pag

RE: [appfuse-user] dropdown question

2007-07-18 Thread Ding, Qin
BasePage.java: http://static.appfuse.org/appfuse-jsf/xref/org/appfuse/webapp/action/Cou ntryModel.html Matt On 7/18/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > Appfuse 1.9.4/JSF > > Where is the countries dropdown get its data from? > > In userForm.xhtml: > > > >

[appfuse-user] dropdown question

2007-07-18 Thread Ding, Qin
Appfuse 1.9.4/JSF Where is the countries dropdown get its data from? In userForm.xhtml: In UserForm.java: I see getCountry() and setCountry(). But I don't see countires in UserForm.java. Qin - To unsu

RE: [appfuse-user] appgen failed

2007-07-10 Thread Ding, Qin
the code, and then adding them back in. Matt On 7/10/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > I am using appfuse 1.9.4/JSF. > > Using appgen to produce all files from pojo is good only when the pojo > is simple. I have a pojo with a many-to-one association with the user > obj

[appfuse-user] appgen failed

2007-07-10 Thread Ding, Qin
I am using appfuse 1.9.4/JSF. Using appgen to produce all files from pojo is good only when the pojo is simple. I have a pojo with a many-to-one association with the user object. When I use the appgen to produce the files from this pojo, I got the error stating: [xdoclet] (XDocletMain.start

[appfuse-user] Question JSTL Version

2007-07-09 Thread Ding, Qin
What's the version of JSTL used in appfuse 1.9.4? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [appfuse-user] Appfuse/DWR

2007-07-09 Thread Ding, Qin
adding xalan and xerces to Tomcat's common/endorsed directory will fix this. Or upgrading to Tomcat 5.x. http://xml.apache.org/xalan-j/faq.html#faq-N10109 Matt On 7/5/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > > > > > I am using appfuse 1.9.4, JSF and DB2. > > &g

[appfuse-user] Appfuse/DWR

2007-07-05 Thread Ding, Qin
I am using appfuse 1.9.4, JSF and DB2. After I follow the tutorial to expose service bean via DWR, and key in http://localhost:8080/appfuse/dwr I got an error: javax.servlet.ServletException: Servlet.init() for servlet dwr-invoker threw exception at org.apache.catalina.core.StandardWrappe

RE: [appfuse-user] Integrated Facelets

2007-06-25 Thread Ding, Qin
lets What version of AppFuse are you using? If you're using 1.9.4, you shouldn't need to do anything. The reason you don't see the view-handler below is because it's registered in web.xml for Ajax4JSF. http://raibledesigns.com/rd/entry/integrating_facelets_and_ajax4jsf_with Matt

[appfuse-user] Integrated Facelets

2007-06-25 Thread Ding, Qin
Appfuse 1.9.4/JSF I see that facelet is already integrated to the Appfuse 1.9.4. I'd like to use facelet templating feature. According to a tutorial, I need to add to faces_conf.xml the following line: com.sun.facelets.FaceletviewHandler After I did add this line, I got the error that

[appfuse-user] DEBUG in RAD

2007-06-21 Thread Ding, Qin
I use appfuse 1.9.4/JSF I imported the appfuse into IBM Rational Software Development Platform (RAD). I can run ant tasks within it. However, the ant task native2ascii task does not run successfully for the two Chinese property files with "conversion failed" error message. Does anyone know how

RE: [appfuse-user] Logout.jsp

2007-06-19 Thread Ding, Qin
lf Of Matt Raible Sent: Tuesday, June 19, 2007 3:26 PM To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] Logout.jsp It's merged in from AppFuse WARs as part of the war overlay process: http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.ht ml Matt On 6/19/07,

[appfuse-user] Logout.jsp

2007-06-19 Thread Ding, Qin
Appfuse 1.9.4/JSF Where is the Logout.jsp file? It was referenced but I seem not be able to find it. Qin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[appfuse-user] acegijsf Question - please help

2007-06-14 Thread Ding, Qin
I use appfuse/JSF, to which the acegijsf tag is integrated. It works when I do this in my jsf page: Login as username is the property of the user. In the User object, a method getFullName() is defined to return user's first_name + " " + last_name. When I do , I do not get anything out. User

RE: [appfuse-user] Failed unit test in Appfuse Hibernate tutorial

2007-06-14 Thread Ding, Qin
Matt and Trent: Thank you for the help. After I replace the three jars as suggested, the application works in websphere 6. So we will develop our new application using appfuse, which I love very much. Qin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

[appfuse-user] Appfuse and Websphere 6

2007-06-13 Thread Ding, Qin
I use Appfuse 1.9.4, JSF and DB2. It works fine after deploying to the Tomcat. Now, after I deploy it to websphere, I tried to login to the appfuse. After I key in the id/password, I got the following error. Does anyone successfully deploy the appfuse 1.9.4 with JSF and DB2 into websphere 5 o

[appfuse-user] acegijsf question

2007-06-12 Thread Ding, Qin
I found authz tag not working in my jsf page. After search for help, I found that instead of using authz, I should use acegijsf tag, which is already integrated into appfuse 1.9.4. To use it, here is what I did: In jsf page: http://www.w3.org/1999/xhtml"; xmlns:c="http://java.sun.com/jstl/

[appfuse-user] How to use DateConverter

2007-06-12 Thread Ding, Qin
Appfuse 1.9.4 and JSF. I have a pojo with a java.util.Calendar field. When I display it on the dataTable, it displays it as a string of calendar. When I use Spring MVC, I know I need to register the DateConverter with the controller. How do I do the same thing with JSF? Or what's the JSF way o

RE: [appfuse-user] appfuse-JSF two questions

2007-06-11 Thread Ding, Qin
Thank you, Matt. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Raible Sent: Monday, June 11, 2007 10:35 AM To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] appfuse-JSF two questions On 6/11/07, Ding, Qin <[EMAIL PROTECTED]>

[appfuse-user] appfuse-JSF two questions

2007-06-11 Thread Ding, Qin
May I repost this requestion again? I use Appfuse 1.9.4 and JSF. 1). In users.xhtml, I see ; In mainMenu.xhtml, I see Where is xxx.bundleName is defined? I created a mypage.xhtml and put . I got an error: Can't find bundle for base name locale en. 2. In the tutorial, I read the f

RE: [appfuse-user] User/Role Query

2007-06-08 Thread Ding, Qin
Hi guys: I tried many ways of hql. It did not work. Yesterday, I tried using example and criteria api and it finally works the way I wanted. Thank you for your ideas. Qin -Original Message- From: Dale Newfield [mailto:[EMAIL PROTECTED] Sent: Friday, June 08, 2007 10:16 AM To: users@ap

[appfuse-user] appfuse JSF --

2007-06-08 Thread Ding, Qin
Appfuse 1.9.4 and JSF is used here. 1). In some xhtml file, I see , others Where is xxx.bundleName is defined? When should I use basePage.bundleName or specific page bundleName? And where and how is this defined? 2. In the tutorial: "If you want to customize the CSS for a particul

[appfuse-user] User/Role Query

2007-06-05 Thread Ding, Qin
If I have users with different roles in the set, how can I query user object to get a list of users with a particular role? Role role = new Role("team lead"); getHibernateTemplate().find("from User u where u.roles = ? ", role); Thanks. QD -

[appfuse-user] import appfuse 1.9.4 to eclipse

2007-06-04 Thread Ding, Qin
I tried to import appfuse 1.9.4 project to eclipse. After import, I check the project by clicking the project property, it is shown as "Type: project". How can I import the project as a "web project"? Right now I can't use "IBM Websphere studio Application developer (WSAD)" to debug the applicati

RE: [appfuse-user] test failed

2007-05-30 Thread Ding, Qin
essException - does it pass then? Matt On 5/30/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > > > > > Matt: > > > > I am running appfuse 1.9.4 with JSF and DB2. I found an article you posted > regarding appfuse with DB2 issue and how to fix them. I came cross

[appfuse-user] test failed

2007-05-30 Thread Ding, Qin
Matt: I am running appfuse 1.9.4 with JSF and DB2. I found an article you posted regarding appfuse with DB2 issue and how to fix them. I came cross the same error but not with the "testAddUserRole()". It is the "testUpdateUser()" method throwing the following error. [junit] Caused by: CO

RE: [appfuse-user] Test-all failed

2007-05-25 Thread Ding, Qin
What should be done to correct the following? Please help. Appfuse version: 1.9.4 Web framework: JSF Without testing, application runs but in the MainMenu page after login, the second link "File Upload" does not do anything. When running ant test-all, failed on the following: Signup: BUILD FAIL

RE: [appfuse-user] ASM, CIGLIB

2007-03-12 Thread Ding, Qin
ou need to configure this aspect in action-servlet.xml to apply it to controllers? Matt On 3/12/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > I use spring's MVC. I choose MVC because I understood that it is > seamlessly integrated into spring's framework. > > Qin > > -

RE: [appfuse-user] ASM, CIGLIB

2007-03-12 Thread Ding, Qin
et Subject: Re: [appfuse-user] ASM, CIGLIB Which web framework are you using? The reason you're probably not seeing log messages from your web framework is because those classes are not managed by Spring. Using AspectJ's compile-time-weaving should get you the behavior you desire. Matt O

RE: [appfuse-user] ASM, CIGLIB

2007-03-12 Thread Ding, Qin
tings. Matt On 2/21/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > 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,

RE: [appfuse-user] ASM, CIGLIB

2007-02-21 Thread Ding, Qin
: [appfuse-user] ASM, CIGLIB We use asm 1.5.3 in 2.x. You might try adding asm-attrs-1.5.3.jar and see if that helps? matt On 2/16/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > I use appfuse 1.9.4. I tried to use Spring AOP to do logging and email > exception. > > The aplicatio

[appfuse-user] ASM, CIGLIB

2007-02-16 Thread Ding, Qin
I use appfuse 1.9.4. I tried to use Spring AOP to do logging and email exception. The aplicationContext-logging.xml is like this: --- http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:aop="http://www.sp

RE: [appfuse-user] DisplayTag Question

2007-02-05 Thread Ding, Qin
thing similar. Matt On 2/5/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > > > > > > > I wrote a custom decorator class by extending TableDecorator for the > displaytag. Where should I put this class? In model package? It is not a > model class. In web package? > > &

RE: [appfuse-user] DisplayTag Question

2007-02-05 Thread Ding, Qin
I wrote a custom decorator class by extending TableDecorator for the displaytag. Where should I put this class? In model package? It is not a model class. In web package? Or jar this class by itself and drop into the classpath? What is the best way of organizing classes like this? Q

RE: [appfuse-user] schemaexporter

2007-02-01 Thread Ding, Qin
MySQL5InnoDBDialect may solve this problem. http://www.nabble.com/Hibernate-3.2-and-MySQL-JDBC-Driver-5.0.3-tf247435 6s2369.html#a6899766 Matt On 2/1/07, Ding, Qin <[EMAIL PROTECTED]> wrote: After we upgrade appfuse from 1.9.3 to 1.9.4, we have not run setup-db until yesterday. When I ran t

[appfuse-user] schemaexporter

2007-02-01 Thread Ding, Qin
After we upgrade appfuse from 1.9.3 to 1.9.4, we have not run setup-db until yesterday. When I ran the ant setup-db, I found whole lots of following warnings: [schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQL State: HY000 [schemaexport] (util.JDBCExceptionRep

RE: [appfuse-user] Appfuse 2

2007-02-01 Thread Ding, Qin
I built a class implements hibernate UserType. I put my class into model package. My UserType class uses util.StringUtil's encodeString and decodeString methods. However, It won't be compiled because util package is not visible to model package. It's only visible to service package. Of couse, I

RE: [appfuse-user] Appfuse 2

2007-02-01 Thread Ding, Qin
-user] Appfuse 2 On 1/31/07, Ding, Qin <[EMAIL PROTECTED]> wrote: Currently we use appfuse 1.9.4. I'd love to upgrade to appfuse 2. However, as I understood that appfuse 2 uses java 5 and my company is unable to move to Java 5 yet, because we use websphere 5.1 which supports java 1.4.

[appfuse-user] Appfuse 2

2007-01-31 Thread Ding, Qin
vider: http://www.hibernate.org/hib_docs/v3/api/org/hibernate/cache/EhCacheProv ider.html Matt On 1/31/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > > > > > Rob: Thank you for your reply. > > > > I have tried > > web-inf/ehcache.xml > > /web-inf/ehcache

RE: [appfuse-user] Turn on Ehcache in Appfuse

2007-01-31 Thread Ding, Qin
typo - should be EhCacheProvider instead of EHCacheProvider: http://www.hibernate.org/hib_docs/v3/api/org/hibernate/cache/EhCacheProv ider.html Matt On 1/31/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > > > > > Rob: Thank you for your reply. > > > > I have trie

RE: [appfuse-user] Turn on Ehcache in Appfuse

2007-01-30 Thread Ding, Qin
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFac tory Qin From: Ding, Qin [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 8:45 AM To: users@appfuse.dev.java.net Subject: RE: [appfuse-user] Turn on Ehcache in Appfuse M

RE: [appfuse-user] Turn on Ehcache in Appfuse

2007-01-30 Thread Ding, Qin
ou will need to enable caching on a query by query basis. Mike. On 1/29/07, Ding, Qin <[EMAIL PROTECTED]> wrote: I try to use ehcache in my appfuse 1.9.4 application. In applicatonContext-hibernate.xml, I added following: @H

[appfuse-user] Turn on Ehcache in Appfuse

2007-01-29 Thread Ding, Qin
I try to use ehcache in my appfuse 1.9.4 application. In applicatonContext-hibernate.xml, I added following: @HIBERNATE-DIALECT@ true 'Y', false 'N' org.hibernate.cache.EhCacheProvider true In Status pojo, I added this xdoclet attribute

RE: [appfuse-user] Appfuse and DWR

2007-01-18 Thread Ding, Qin
hav [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 11:42 AM To: users@appfuse.dev.java.net Subject: Re: [appfuse-user] Appfuse and DWR Did you try creating a Wrapper Class for your return value and including it in a tag in dwr.xml (or the annotations) ? Nat On 1/18/07, Ding, Qin

RE: [appfuse-user] Appfuse and DWR

2007-01-18 Thread Ding, Qin
our return value and including it in a tag in dwr.xml (or the annotations) ? Nat On 1/18/07, Ding, Qin <[EMAIL PROTECTED]> wrote: Does anyone have the same experience as I do? If you do, please tell you how you resolve this. I search internet and DWR archive, there is one entry like th

[appfuse-user] Appfuse and DWR

2007-01-18 Thread Ding, Qin
Does anyone have the same experience as I do? If you do, please tell you how you resolve this. I search internet and DWR archive, there is one entry like this but no answers. I use appfuse 1.9.4 and DWR to build two dependent dropdowns. Select from frist dropdown will fill the second with the dat

[appfuse-user] YUI-EXT

2007-01-15 Thread Ding, Qin
Have any one tried to integrate YUI-EXT into appfuse? I like the yui-ext's layout component and would like to use it in my appfuse application, which is built on appfuse 1.9.4. How should I proceed with it? Is it that I need to write a decorator with the YUI-ext component? If some has done it, w

RE: [appfuse-user] Use Resourcebundle in StartupListener

2006-12-18 Thread Ding, Qin
: [appfuse-user] Use Resourcebundle in StartupListener I would do it in the StartupListener - or just do it directly in your JSPs if the data doesn't change very often. Matt On 12/18/06, Ding, Qin <[EMAIL PROTECTED]> wrote: > > > > > My dropdown list requires localized contents.

[appfuse-user] Use Resourcebundle in StartupListener

2006-12-18 Thread Ding, Qin
My dropdown list requires localized contents. I can either look up the ResourceBundle at the lookupManagerImpl or at the Startuplistener. Please advise how I can get the access to the resource bundle from either place. Thank you very much. Qin