Re: [appfuse-user] Localization using unicode fonts problem font not displaying

2007-07-10 Thread Matt Raible
What version of AppFuse are you using? Which web framework are you using? Are you only concerned with rendered text on the UI, or are you also having issues with data not being properly encoded? Matt On 7/10/07, Sanath <[EMAIL PROTECTED]> wrote: Hi all, I am from Sri Lanka and these days am tr

Re: [appfuse-user] Set up local mirror of AppFuse 2 (http://www.appfuse.org/)

2007-07-10 Thread Matt Raible
I could make a snapshot of the MySQL database available for Confluence, but that's the only thing I can think of. You can export the site to HTML or PDF, but currently the PDF doesn't render the code blocks properly. I'm working on a fix this week. Matt On 7/10/07, Keralduk <[EMAIL PROTECTED]> wr

[appfuse-user] Localization using unicode fonts problem font not displaying

2007-07-10 Thread Sanath
Hi all, I am from Sri Lanka and these days am trying to configure appfuse (Localization to support sinhala language) . I used the sinhala unicode font and since utf-8 was used as the db encoding I was able to save the sinhala words in the db and was able to successfully retrieve it and display. Th

[appfuse-user] Fwd: [ANN] Maven Eclipse Plugin 2.4 Released

2007-07-10 Thread Matt Raible
FYI... If you're using Eclipse with AppFuse 2.0, you might want to try changing the maven-eclipse-plugin in your pom.xml to be 2.4. Matt -- Forwarded message -- From: Brian Fox <[EMAIL PROTECTED]> Date: Jul 10, 2007 8:26 PM Subject: [ANN] Maven Eclipse Plugin 2.4 Released To: [EM

Re: [appfuse-user] Triggering a page refresh from the server side

2007-07-10 Thread Matt Raible
There's no DWR functionality in place, but it is installed and ready to use. Matt On 7/10/07, cdtm <[EMAIL PROTECTED]> wrote: Thanks for the reponse, I did some research on Ajax frameworks but could not find any hint that AjaxTags support anything like Ajax Push. However a framework called D

Re: [appfuse-user] Triggering a page refresh from the server side

2007-07-10 Thread cdtm
Thanks for the reponse, I did some research on Ajax frameworks but could not find any hint that AjaxTags support anything like Ajax Push. However a framework called DWR seems to provide this functionality. An example is given here: http://java-x.blogspot.com/2007/03/reverse-ajax-with-direct-web-

Re: [appfuse-user] Conditional Validation

2007-07-10 Thread Matt Raible
From https://springmodules.dev.java.net/docs/reference/0.8/html_single/#commons-validator : 17.1.2. Use a dedicated validation-rules.xml The file *validation-rules.xml* must contain Commons Validator elements based on classes provided by the support of this framework in Spring Modules. For examp

Re: [appfuse-user] Conditional Validation

2007-07-10 Thread Msarda
When i am using validwhen,getting error as [TryEngagementForm1] ERROR [main] AbstractBeanValidator.validate(66) | Exception while validating object null org.apache.commons.validator.ValidatorException: No ValidatorAction named validwhen found for field typeOfReqSupportNo at org.apache.com

Re: [appfuse-user] Conditional Validation

2007-07-10 Thread Msarda
Thank you very much :) mraible wrote: > > You may be able to use Commons Validator's ValidWhen: > > http://struts.apache.org/1.3.8/faqs/validator.html > > If that doesn't work, you can change your Controller's "validator" > property to a "validators" property and pass in a list of properties

Re: [appfuse-user] Conditional Validation

2007-07-10 Thread Matt Raible
You may be able to use Commons Validator's ValidWhen: http://struts.apache.org/1.3.8/faqs/validator.html If that doesn't work, you can change your Controller's "validator" property to a "validators" property and pass in a list of properties (one for beanValidator and one for your custom Spring V

Re: [appfuse-user] Conditional Validation

2007-07-10 Thread Msarda
I am using spring framework (basic) with appfuse 2.0-m5 and maven 2.0.6 mraible wrote: > > Which web framework (and version of AppFuse) are you using? > > On 7/10/07, Msarda <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> I want to do validation for a field depending on the value of other field

Re: [appfuse-user] Conditional Validation

2007-07-10 Thread Matt Raible
Which web framework (and version of AppFuse) are you using? On 7/10/07, Msarda <[EMAIL PROTECTED]> wrote: Hi all, I want to do validation for a field depending on the value of other field in validation.xml. I have two radio buttons,each one having a text box in front of them to fill value if

[appfuse-user] Conditional Validation

2007-07-10 Thread Msarda
Hi all, I want to do validation for a field depending on the value of other field in validation.xml. I have two radio buttons,each one having a text box in front of them to fill value if that particular radio button is selected. I just want to check that if the radio button is selected,there sho

Re: [appfuse-user] Problem with date validation

2007-07-10 Thread Msarda
Thanks a lot Matt. It's working now,but the thing is it will take 42/42/ also. I have more problem,i have a jsp engagementforms.jsp which displays all the request submitted by user. When the user enters date it takes in dd/mm/ format,but when showing in engagementforms.jsp ,it shows in

[appfuse-user] AppFuse with NO Database

2007-07-10 Thread Kane Dijkman
Hello Everyone, I am new to the list and to AppFuse and I have a question I am hoping I can get some answers to. I should say also that while I have been developing large web apps for years I am new to doing this in a Java project with things like Spring and hibernate and all this cool st

[appfuse-user] The state pattern with JPA

2007-07-10 Thread Leo Barrientos C
Hello, does anybody know how to implement the State Pattern with JPA using only em.find and @tags? I need to get a Object with a concrete state object only doing em.find , The entity table has a id name and id_state fields; so if the id_state is 0 i need the ConcreteStateA loaded in actualState a

Re: [appfuse-user] Drop down list population

2007-07-10 Thread Michael Horwitz
Aled, You need to change back to . The error is most likely in your property editor - you must put in all the checks for null/empty values, particularly if you allow a null value for country on a website. Mike. On 7/10/07, Aled Rhys Jones <[EMAIL PROTECTED]> wrote: Success - sort of. I change

[appfuse-user] Set up local mirror of AppFuse 2 (http://www.appfuse.org/)

2007-07-10 Thread Keralduk
Is it possible to set up local mirror of AppFuse 2 home page (http://www.appfuse.org/)? -- View this message in context: http://www.nabble.com/Set-up-local-mirror-of-AppFuse-2-%28http%3A--www.appfuse.org-%29-tf4058507s2369.html#a11529503 Sent from the AppFuse - User mailing list archive at Nabbl

Re: [appfuse-user] Drop down list population

2007-07-10 Thread Aled Rhys Jones
Success - sort of. I changed the jsp tags to: The page now loads and the correct country is shown. If I try to save however, I get the following error: Data Access Failure identifier of an instance of com.myapp.model.Country was altered from 1 to 3; nested exception is org.hibernate

Re: [appfuse-user] Drop down list population

2007-07-10 Thread Aled Rhys Jones
The plot thickens... As suggested I put in a checker for null in getAsText of the CountryEditor and to return "" if that was the case. I also put a debug point in my Country model in the equals() method. The object being passed in is "", so I presume that the models being used to populate the l

Re: [appfuse-user] Drop down list population

2007-07-10 Thread Aled Rhys Jones
Every time I try to use the below jsp tags I always get a jasper exception. Contained within I think is a NullPointerException. Anything obviously wrong with the below please? I'm really struggling with this and this drop down issue is stalling me quite a bit. All the beans are setup ok. I

Re: [appfuse-user] HTTP 404 problem in Acegi

2007-07-10 Thread Haotian Sun
Thanks, Matt. However, it is not the solution for my case. My trouble seems to be something wrong with indentification of the correct url after authentication by Acegi. And the response is the Http 404 rather than 403, which is obvious wrong. Haotian Matt Raible wrote: web.xml has a mapping

Re: [appfuse-user] HTTP 404 problem in Acegi

2007-07-10 Thread Matt Raible
web.xml has a mapping from the 403 error code to 403.jsp. We're not doing anything special to make this work. Matt On 7/10/07, Haotian Sun <[EMAIL PROTECTED]> wrote: Hi Matt, In the security.xml of Appfuse, I do not see you injection of accessDefinedHandler for exceptionTranslationFilter. Can

Re: [appfuse-user] HTTP 404 problem in Acegi

2007-07-10 Thread Haotian Sun
Hi Matt, In the security.xml of Appfuse, I do not see you injection of accessDefinedHandler for exceptionTranslationFilter. Can you please tell me how you made to redirect to the 403.jsp? Thanks, Haotian Matt Raible wrote: Can you provide steps to reproduce this in a new AppFuse applicat

Re: [appfuse-user] HTTP 404 problem in Acegi

2007-07-10 Thread Haotian Sun
Hi Matt, I do not work in Appfuse framework for this case. Just wonder if you have any chance to meet such a problem before. Cheers Haotian Matt Raible wrote: Can you provide steps to reproduce this in a new AppFuse application? Matt On 7/10/07, Haotian Sun <[EMAIL PROTECTED]> wrote: Hi

Re: [appfuse-user] HTTP 404 problem in Acegi

2007-07-10 Thread Matt Raible
Can you provide steps to reproduce this in a new AppFuse application? Matt On 7/10/07, Haotian Sun <[EMAIL PROTECTED]> wrote: Hi guys, Maybe it's the wrong place to raise the Acegi question here, but I still wonder if any of you have the experience to deal with the HTTP 404 problem caused by A

[appfuse-user] HTTP 404 problem in Acegi

2007-07-10 Thread Haotian Sun
Hi guys, Maybe it's the wrong place to raise the Acegi question here, but I still wonder if any of you have the experience to deal with the HTTP 404 problem caused by AccessDeniedHandlerImpl in Acegi. The case is like this: I tried to log into a secured page with the wrong role and I should b

Re: Re: [appfuse-user] about appfuse:gen

2007-07-10 Thread chinofish
in my sample-data.xml 1 ... but it should be 32bite string ... and in my ActionTest class, there is line: action.setId(1L); but in my action, id is a String, so there will be compile error. === 2007-07-

Re: [appfuse-user] Struts 2 mapping issue

2007-07-10 Thread Eric Fitzsimmons
Mike, Great. Thanks for the help. That worked great. On 7/6/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: On 7/6/07, Eric Fitzsimmons <[EMAIL PROTECTED]> wrote: > I am currently using Appfuse 2.0-m5 and am having some issues trying > to map my actions in a RESTful manner. > EX: I wou

Re: [appfuse-user] about appfuse:gen

2007-07-10 Thread Matt Raible
What's the error your're seeing? On 7/10/07, chinofish <[EMAIL PROTECTED]> wrote: In my entity. id is 32bit uuid. and appfuse:gen seems can not deal with the situation now ? === 2007-07-09 23:02:50 chinofish wrote:=== >hi, > >With appfuse:gen , i can gen code for the single entity.

Re: [appfuse-user] about appfuse:gen

2007-07-10 Thread chinofish
In my entity. id is 32bit uuid. and appfuse:gen seems can not deal with the situation now ? === 2007-07-09 23:02:50 chinofish wrote:=== >hi, > >With appfuse:gen , i can gen code for the single entity. > >but if i have 2 entity as follows: > >Product (many2one) ProductType > >may i g

Re: [appfuse-user] Why the first field is always focused ?

2007-07-10 Thread Matt Raible
Yes, but you'll have to modify prototype.js to change the logic. To figure out where to change it, following the function calls from Form.focusFirstElement(). Matt On 7/10/07, Fan <[EMAIL PROTECTED]> wrote: Is there a way to only set the first field to be focused only if the field is not reado

[appfuse-user] Why the first field is always focused ?

2007-07-10 Thread Fan
Is there a way to only set the first field to be focused only if the field is not readonly ? -- View this message in context: http://www.nabble.com/Why-the-first-field-is-always-focused---tf4056694s2369.html#a11523718 Sent from the AppFuse - User mailing list archive at Nabble.com.

Re: Re: [appfuse-user] Appfuse with Sysdeo

2007-07-10 Thread climbingrose
Here you go: http://mojo.codehaus.org/sysdeo-tomcat-plugin/ Works like charm for me. Must better than Jetty plugin because I don't have to reload the webapp after every little code change. On 7/11/07, chinofish <[EMAIL PROTECTED]> wrote: with the command: mvn package you can get expanded war

RE: [appfuse-user] appgen failed

2007-07-10 Thread Ding, Qin
Matt: On line 21: 3 < /value> 1 I'll take the work-around you suggested for now. Thank you. Qin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt Raible Sent: Tuesday, July 10, 2007 10:34 AM To: users@appfuse.dev.java.n

Re: Re: [appfuse-user] Appfuse with Sysdeo

2007-07-10 Thread chinofish
with the command: mvn package you can get expanded war directory. you can write a context file for tomcat with docbase pointing to the war directory. and everything will almost be the same as before. with just one exception: every time you changed your code, you need to mvn package =

Re: [appfuse-user] appgen failed

2007-07-10 Thread Matt Raible
What's on line 21 of sample-data.xdt? AppGen doesn't support generating code for associations (in the UI), but it also shouldn't be bombing when you have them defined. As a workaround, you could try removing them, generating the code, and then adding them back in. Matt On 7/10/07, Ding, Qin <[EM

[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

Re: [appfuse-user] textfield cssClass

2007-07-10 Thread Matt Raible
Yes, look for forms.css. Matt On 7/10/07, Fan <[EMAIL PROTECTED]> wrote: I want to overwrite the cssClass defined above as "text large". Is it defined in a css file ? -- View this message in context: http://www.nabble.com/textfield-cssClass-tf4056310s2369.html#a11522446 Sent from the AppF

Re: [appfuse-user] Locale Filter problem

2007-07-10 Thread Matt Raible
You might try changing your to include *.html and *.jsp. We should probably make this change in AppFuse as well. As far as why the preferredLocale is not being set - you might want to debug the filter and see if its logic is correct. You could also use LocaleFilterTest to verify the proper funct

[appfuse-user] textfield cssClass

2007-07-10 Thread Fan
I want to overwrite the cssClass defined above as "text large". Is it defined in a css file ? -- View this message in context: http://www.nabble.com/textfield-cssClass-tf4056310s2369.html#a11522446 Sent from the AppFuse - User mailing list archive at Nabble.com.

Re: [appfuse-user] Locale Filter problem

2007-07-10 Thread VJ22
Hi Matt, These are my SOPs within the filterInternal method of the LocaleFilter System.out.println("The default locale is **"+locale.getCountry()); System.out.println("This locale is*"+locale); System.out.println("preferred locale is *"+preferredLocale); I access the login page and

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-07-10 Thread Fan
In fact, the association is the one club can have many users I have a main problem in club POJO, is the following correct ? : @OneToMany(targetEntity=org.appfuse.model.User.class, mappedBy="club") public Set getUsers() { return users; } fadhlirahim wrote: > > Hello there, >

Re: [appfuse-user] ${appConfig["theme"]} not being resolved in jsp page

2007-07-10 Thread Matt Raible
Are you versions of Tomcat the same on both machines? Are you sure your linux system is using Sun's Java? On 7/10/07, Jon Loken <[EMAIL PROTECTED]> wrote: Hi all, I use AppFuse version 1.9.3, Spring MVC. Recently I have come across a jsp problem not seen before. When doing an 'ant setup' on a

Re: [appfuse-user] Locale Filter problem

2007-07-10 Thread Matt Raible
Can you post your log messages that make you think it's getting executed twice? Matt On 7/10/07, VJ22 <[EMAIL PROTECTED]> wrote: Hi All, I had commented out the usage of the LocaleFilter initially from the web.xml as I did not have a need for itWe did have a requirement to have a user def

Re: [appfuse-user] Problem with date validation

2007-07-10 Thread Matt Raible
This may help: http://jroller.com/page/raible?anchor=validating_dates_with_commons_validator Matt On 7/10/07, Msarda <[EMAIL PROTECTED]> wrote: Hi All, I am trying to validate date field in validation.xml file but getting error message that the date entered is not a date. I have priorityDate

[appfuse-user] ${appConfig["theme"]} not being resolved in jsp page

2007-07-10 Thread Jon Loken
Hi all, I use AppFuse version 1.9.3, Spring MVC. Recently I have come across a jsp problem not seen before. When doing an 'ant setup' on a LINUX machine, and deploying the war file (to the same Linux machine, OR to a windows machine) , the rendered html pages do not pick up the style sheets. On

Re: [appfuse-user] Can't find bundle for base name (newbie)

2007-07-10 Thread Matt Raible
Does PersonList extend BasePage? That's where bundleName is defined. Matt On 7/9/07, Vishal S <[EMAIL PROTECTED]> wrote: Hello friends, /persons.xhtml @6,63 Can't find bundle for base name , locale en I am getting the above error when I tried to display persons.xhtml. What does th

[appfuse-user] using ajax to render a chart in appfuse 2 m5

2007-07-10 Thread Travers Snyman
Hi, I created a simple action class to generate a chart. I use the struts-jfreechart plugin to get the chart result type. I now want to render the chart by doing something like this in a jsp: My struts.xml is configured as follows:

Re: [appfuse-user] Appfuse with Sysdeo

2007-07-10 Thread Emam Hossain
Maven is cool but doesn't it complicated things a little bit? Eclipse with sysdeo is perfect for me...why cant appfuse makes me a project, with that project i could simply import to eclipse run with sysdeo and start my Starter project. Appfuse is Great no doubt about that...it could be more simpl

[appfuse-user] Locale Filter problem

2007-07-10 Thread VJ22
Hi All, I had commented out the usage of the LocaleFilter initially from the web.xml as I did not have a need for itWe did have a requirement to have a user defined locale so I uncommented out the filter settingsI am using Struts 2 + Spring + JPA...While the filter does get executed, in m

Re: [appfuse-user] Appfuse with Sysdeo

2007-07-10 Thread syg6
Yea, I'm already using it, it's the plug-in that comes with Appfuse. I wouldn't say I am 'happy' about using it. I've always been partial to using the myEclipse plug-in to first deploy my app and then start Tomcat. Now if I use the Tomcat Maven plug-in, together with Candy, I can simply right-cli

Re: [appfuse-user] Appfuse with Sysdeo

2007-07-10 Thread Michael Horwitz
If you are happy using Maven to manipulate the Tomcat container then you can use the Tomcat plugin to deploy/start/stop etc: http://mojo.codehaus.org/tomcat-maven-plugin/ Mike. On 7/10/07, syg6 <[EMAIL PROTECTED]> wrote: Would you mind expanding on 'it went well' ? I am just getting started

Re: [appfuse-user] Appfuse with Sysdeo

2007-07-10 Thread syg6
Would you mind expanding on 'it went well' ? I am just getting started with M5 and don't know much about Maven. I have no problem using it if it's necessary but would prefer to use an Eclipse plug-in (I was using myEclipse but now am trying to use Sysdeo because ... well, it's free!) to deploy my

Re: [appfuse-user] Problem with ManyToMany Mapping

2007-07-10 Thread Michael Horwitz
java.sql.Timestamp is a subclass of java.util.Date so it should be accepted by your method. It is probably used as it adds a nanoseconds field to the data and is database friendly. Spring should give you a binding error with more detail in it, more than likely related to validation. Could you pos

RE: [appfuse-user] RE: RE: many-to-many with attribute ... again

2007-07-10 Thread Aled Rhys Jones
Yeh you probably want a DAO and Manager (service) for the PersonRequest. You'll only want CRUD so you can just use the generic hibernate crud stuff. You need the CRUD to be able to save new relationships between Person and Request, and to get a list of all PersonRequests associated with a Person or

[appfuse-user] RE: RE: many-to-many with attribute ... again

2007-07-10 Thread syg6
'morning gents, Ok, no worries, I'll use an auto-gen'd id. Everything seems to be working a-ok. Mind you, I haven't really 'sunk my teeth' into the app yet, I just wanted to confirm that what I wanted to do was a) possible and b) not a headache. Now that I see that it's feasible, it's onwards a

[appfuse-user] Problem with date validation

2007-07-10 Thread Msarda
Hi All, I am trying to validate date field in validation.xml file but getting error message that the date entered is not a date. I have priorityDate field in model object with type java.util.Date. I have used customDateBinder in my controller as.. public void initBinder(HttpServletRequest requ

Re: [appfuse-user] appfuse and SOAP

2007-07-10 Thread Martin Homik
Hi, I am new to AppFuse myself, so I apologize for an not too detailed answer. Matt has pointed to a possible solution in former thread which is here: http://www.nabble.com/Appfuse-2.0-%2B-Xfire-tf3141583s2369.html#a8711233 The Xfire homepage at Codehaus is really a good start. At least it was