Re: [Rife-users] GIF support in CMF
Thanks Tyler, I will wait for your code. Thanks Regards Naren - Original Message - From: "Tyler Pitchford" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Wednesday, April 19, 2006 13:11 Subject: Re: [Rife-users] GIF support in CMF I'll try to post the code I use for GIF conversion sometime this week. Cheers, Tyler On 4/19/06, Geert Bevin <[EMAIL PROTECTED]> wrote: > Hi Naren, > > Tyler has code that does this (however, without a complete solution > to integrate back into RIFE). He's planning on working on that. More > info here: http://uwyn.com/drone/log/bevinbot/rife/20060414 > > I suppose he'll reply to this thread as soon as he has the time to do > so. > > Best regards, > > Geert > > On 17 Apr 2006, at 12:05, Naren wrote: > > > Hello, > > Has anyone implemented GIF write support in RIFE CMF? I am getting > > folowing > > exception if I use MimeType.IMAGE_GIF. > > > > Regards > > > > SEVERE: Error on host localhost > > com.uwyn.rife.engine.exceptions.EngineException: > > com.uwyn.rife.database.exceptions.DatabaseException: > > com.uwyn.rife.cmf.dam.contentstores.exceptions.StoreContentDataErrorEx > > ceptio > > n: Unexpected error while storing the content with the id '132'. > > at > > com.uwyn.rife.engine.ElementContext.processContext > > (ElementContext.java:607) > > at com.uwyn.rife.engine.RequestState.service > > (RequestState.java:212) > > at > > com.uwyn.rife.engine.ElementContext.processEmbeddedElement > > (ElementContext.ja > > va:4055) > > at > > com.uwyn.rife.engine.ElementContext.processEmbeddedElementsEarly > > (ElementCont > > ext.java:1159) > > at > > com.uwyn.rife.engine.EngineTemplateInitializer.initialize > > (EngineTemplateInit > > ializer.java:37) > > at > > com.uwyn.rife.template.AbstractTemplate.initialize > > (AbstractTemplate.java:101 > > 0) > > at > > com.uwyn.rife.template.TemplateFactory.get(TemplateFactory.java:422) > > at > > com.uwyn.rife.engine.ElementContext.getHtmlTemplate > > (ElementContext.java:1105 > > ) > > at > > com.uwyn.rife.engine.ElementSupport.getHtmlTemplate > > (ElementSupport.java:494) > > at > > com.uwyn.rife.engine.ElementSupport.getHtmlTemplate > > (ElementSupport.java:380) > > at com.portal.elements.MyPages.processElement(MyPages.java:14) > > at > > com.uwyn.rife.engine.ElementContext.processContext > > (ElementContext.java:590) > > at com.uwyn.rife.engine.RequestState.service > > (RequestState.java:212) > > at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:418) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke > > (NativeMethodAccessorImpl.java:39 > > ) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke > > (DelegatingMethodAccessorImpl > > .java:25) > > at java.lang.reflect.Method.invoke(Method.java:585) > > at com.uwyn.rife.servlet.RifeFilter.doFilter > > (RifeFilter.java:127) > > at > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter > > (Application > > FilterChain.java:186) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter > > (ApplicationFilterCh > > ain.java:157) > > at > > org.apache.catalina.core.StandardWrapperValve.invoke > > (StandardWrapperValve.ja > > va:214) > > at > > org.apache.catalina.core.StandardValveContext.invokeNext > > (StandardValveContex > > t.java:104) > > at > > org.apache.catalina.core.StandardPipeline.invoke > > (StandardPipeline.java:520) > > at > > org.apache.catalina.core.StandardContextValve.invokeInternal > > (StandardContext > > Valve.java:198) > > at > > org.apache.catalina.core.StandardContextValve.invoke > > (StandardContextValve.ja > > va:152) > > at > > org.apache.catalina.core.StandardValveContext.invokeNext > > (StandardValveContex > > t.java:104) > > at > > org.apache.catalina.core.StandardPipeline.invoke > > (StandardPipeline.java:520) > > at > > org.apache.catalina.core.StandardHostValve.invoke > > (StandardHostValve.java:137 > > ) > > at > > org.apache.catalina.core.Standar
[Rife-users] GIF support in CMF
Hello, Has anyone implemented GIF write support in RIFE CMF? I am getting folowing exception if I use MimeType.IMAGE_GIF. Regards SEVERE: Error on host localhost com.uwyn.rife.engine.exceptions.EngineException: com.uwyn.rife.database.exceptions.DatabaseException: com.uwyn.rife.cmf.dam.contentstores.exceptions.StoreContentDataErrorExceptio n: Unexpected error while storing the content with the id '132'. at com.uwyn.rife.engine.ElementContext.processContext(ElementContext.java:607) at com.uwyn.rife.engine.RequestState.service(RequestState.java:212) at com.uwyn.rife.engine.ElementContext.processEmbeddedElement(ElementContext.ja va:4055) at com.uwyn.rife.engine.ElementContext.processEmbeddedElementsEarly(ElementCont ext.java:1159) at com.uwyn.rife.engine.EngineTemplateInitializer.initialize(EngineTemplateInit ializer.java:37) at com.uwyn.rife.template.AbstractTemplate.initialize(AbstractTemplate.java:101 0) at com.uwyn.rife.template.TemplateFactory.get(TemplateFactory.java:422) at com.uwyn.rife.engine.ElementContext.getHtmlTemplate(ElementContext.java:1105 ) at com.uwyn.rife.engine.ElementSupport.getHtmlTemplate(ElementSupport.java:494) at com.uwyn.rife.engine.ElementSupport.getHtmlTemplate(ElementSupport.java:380) at com.portal.elements.MyPages.processElement(MyPages.java:14) at com.uwyn.rife.engine.ElementContext.processContext(ElementContext.java:590) at com.uwyn.rife.engine.RequestState.service(RequestState.java:212) at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:418) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) at java.lang.Thread.run(Thread.java:595) Caused by: com.uwyn.rife.database.exceptions.DatabaseException: com.uwyn.rife.cmf.dam.contentstores.exceptions.StoreContentDataErrorExceptio n: Unexpected error while storing the content with the id '132'. at com.uwyn.rife.cmf.dam.ContentQueryManager$1.useTransaction(ContentQueryManag er.java:471) at com.uwyn.rife.cmf.dam.ContentQueryManager$1.useTransaction(ContentQueryManag er.java:363) at com.uwyn.rife.database.DbQueryManager.inTransaction(DbQueryManager.java:2783 ) at com.uwyn.rife.cmf.dam.ContentQueryManager.save(ContentQueryManager.java:362) at com.portal.dam.banner.BannerManager.add(BannerManager.java:47) at com.portal.elements.banner.BannerDisplay.doAddbanner(BannerDisplay.java:51) at sun.re
Re: [Rife-users] Small Example of my problem
Hello, There was not the big problem, You just need to add ResourceBundle to template before generating the form fields. So the following code is working fine. -- //Home.java package com.uwyn.rife.jumpstart.elements.pub; import java.util.ArrayList; import java.util.List; import java.util.ListResourceBundle; import com.uwyn.rife.engine.Element; import com.uwyn.rife.site.ConstrainedProperty; import com.uwyn.rife.template.Template; public class Home extends Element { public void processElement() { Template mTemplate = getHtmlTemplate("pub.home"); List userIds = new ArrayList(); userIds.add(1); userIds.add(2); userIds.add(3); mTemplate.addResourceBundle(new ListResourceBundle() { public Object[][] getContents() { return new Object[][] { { "testuser:1", "username1" }, { "testuser:2", "username2" }, { "testuser:3", "username3" } }; } }); mTemplate.getBeanHandler().getFormBuilder().generateField(mTemplate, new ConstrainedProperty("testuser").inList(userIds), null, null); print(mTemplate); } } ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Select Box ?! Clueless...just a little bit
Hello,Answer to point 1:--You need to add your id in inList constraint here: just get the String[] of all ids and add to inList property.bean.addConstraint( new ConstrainedProperty("colors").inList(new String[] {"id1", "id2", "id3"}));-- Then fetch the username and id both and prepare following ListResoucreBundeletemplate.addResourceBundle(new ListResourceBundle() { public Object[][] getContents() { return new Object[][] { {"colors:id1", "username1"}, {"colors:id2", "username1"}, {"colors:id3", "username1"} }; }});After that with only this line in the template:Your select box will be rendered.Regards ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] RIFE Eclipse Plugin
Hello, Is any pllugin ready to use ? Can we get it to test/use ? Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Friday, March 17, 2006 11:40 Subject: Re: [Rife-users] RIFE Eclipse Plugin > Hi Jeremy, > > apart from the RIFE project and launch types, I think that this page > cover pretty much what we have talked about wrt. IDE support in the > past: > http://rifers.org/wiki/display/RIFE/IdePlugins > > Hope that helps. > > Best regards, > > Geert > > On 17-mrt-06, at 01:29, Jeremy Whitlock wrote: > > > Hey all, > > I have updated the Wiki: > > > > http://rifers.org/wiki/display/RIFE/Eclipse > > > > by removing the rife-jumpstart information and with new rife-ide > > information. Since we never really decided what features we would > > like to get out of this, there isn't much more information we can > > provide. That being said, we need to hear from you guys to get an > > idea of what you would expect out of a RIFE Eclipse plugin. Once > > we have this, the sooner we can put together a feature roadmap and > > put together a plan. > > > > Take care, > > > > Jeremy > > > > P.S. - The more we talk about this, the sooner we can plan it out, > > get it working and prosper. ;) > > > > On 3/15/06, Geert Bevin <[EMAIL PROTECTED]> wrote:Hi Jeremy, > > > > I think that's a correct assessment. When the rife-ide plugin is > > working, I'll adapt RIFE/Jumpstart to use the new project and launch > > types instead. That should be sufficient. > > > > Best regards, > > > > Geert > > > > On 16-mrt-06, at 02:13, Jeremy Whitlock wrote: > > > > > Hey all, > > > I have updated the Wiki for the plans for the rife-ide and > > > rife-jumpstart plugins. Here is the url: > > > > > > http://rifers.org/wiki/display/RIFE/Eclipse > > > > > > In doing so, I realized that I do not think there is any benefit to > > > a rife-jumpstart plugin as it would not really be used by itself. > > > I am trying to think of all use cases but I have not come up with > > > one where this plugin would actually be useful by itself. That > > > being said, I would like to remove it and just have the rife-ide > > > instead unless anyone objects. Here are my thoughts backing this > > > decision: > > > > > > The RIFE Jumpstart, as it is now, is a way for you to experiment > > > with RIFE in a controlled environment. To actually experiment, you > > > add sources and content to the Jumpstart directory structure and > > > view. I do not think that this is a usable scenario for doing this > > > in Eclipse. Since, in the end, we want to have the concept of a > > > RIFE project and RIFE launch types, why not just do this in the > > > rife-ide plugin since you will never use these features standalone? > > > > > > That being said, I await your response. I will then update the > > > Wiki and begin working accordingly. Sorry for the delay but as > > > most open source developers know, the work that pays your job has > > > to come first sometimes. ;) > > > > > > Take care, > > > > > > Jeremy > > > ___ > > > Rife-users mailing list > > > Rife-users@uwyn.com > > > http://lists.uwyn.com/mailman/listinfo/rife-users > > > > -- > > Geert Bevin Uwyn bvba GTalk: > > [EMAIL PROTECTED] > > "Use what you need" Avenue de Scailmont 34 Skype: gbevin > > http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin > > gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599 > > > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > > > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://lists.uwyn.com/mailman/listinfo/rife-users > > > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://lists.uwyn.com/mailman/listinfo/rife-users > > -- > Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED] > "Use what you need" Avenue de Scailmont 34 Skype: gbevin > http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin > gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599 > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://lists.uwyn.com/mailman/listinfo/rife-users > ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Elephant Issue
Hello Bevin, Yes, Now it works. Thanks - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Friday, March 10, 2006 21:28 Subject: Re: [Rife-users] Elephant Issue > Hi Naren, > > please update the repository, it should work now. > > Best regards, > > Geert > > On 10-mrt-06, at 15:38, Naren wrote: > ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Elephant Issue
Hello Yes I created all database structure again, from admin module. I am running using ant, on default Jetty server. Database is PostgreSQL 8.1 OS is Windows 2000 server. Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Friday, March 10, 2006 19:58 Subject: Re: [Rife-users] Elephant Issue > How do you run it? Did you try with a fresh database? > > On 10-mrt-06, at 15:24, Naren wrote: > > > Hello, > > No Bevin, I have not made any changes except defining datasources. > > > > I have deleted my old version and checkedout full repository again > > and still > > getting same exception. > > > > Regards > > > > > > > > - Original Message - > > From: "Geert Bevin" <[EMAIL PROTECTED]> > > To: "RIFE users list : questions,bug reports and suggestions." > > > > Sent: Friday, March 10, 2006 17:11 > > Subject: Re: [Rife-users] Elephant Issue > > > > > >> Naren, I can't reproduce this. Using the elephant SVN repo on a clean > >> DB works perfectly. Did you do something else besides checkin it out? > >> Are you sure you didn't have any personal modifications lying around? > >> > >> On 10-mrt-06, at 12:17, Naren wrote: > >> > > > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://lists.uwyn.com/mailman/listinfo/rife-users > > > > -- > Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED] > "Use what you need" Avenue de Scailmont 34 Skype: gbevin > http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin > gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599 > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://lists.uwyn.com/mailman/listinfo/rife-users > ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Elephant Issue
Hello, No Bevin, I have not made any changes except defining datasources. I have deleted my old version and checkedout full repository again and still getting same exception. Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Friday, March 10, 2006 17:11 Subject: Re: [Rife-users] Elephant Issue > Naren, I can't reproduce this. Using the elephant SVN repo on a clean > DB works perfectly. Did you do something else besides checkin it out? > Are you sure you didn't have any personal modifications lying around? > > On 10-mrt-06, at 12:17, Naren wrote: > ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Elephant Issue
Hello All, I have downloaded latest svn repository and run using ant. Now when I call as http://localhost:8080/ I got exception: java.lang.AssertionError getAccount(name) : name cannot be null at org.rifers.elephant.tools.AccountToolsgetAccount ( AccountTools.java : 28 ) at org.rifers.elephant.elements.pub.ControlleroutputBreadcrumbs ( Controller.java : 325 ) at org.rifers.elephant.elements.pub.ControllerprocessElement ( Controller.java : 201 ) at com.uwyn.rife.engine.ElementContextprocessContext ( ElementContext.java : 587 ) at com.uwyn.rife.engine.RequestStateservice ( RequestState.java : 212 ) at com.uwyn.rife.engine.GatehandleRequest ( Gate.java : 416 ) But when I call as http://localhost:8080/admin , it works and display blog page for admin user. Any fix for this? Regards ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] pathinfo capabilities
Hello Fred, You can see this type of example in Elephant project. There BlogLocationIdentifier.java process the url that may have different pathinfo. Regards Naren - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "RIFE users list : questions,bug reports and suggestions." Sent: Friday, March 03, 2006 17:00 Subject: Re: [Rife-users] pathinfo capabilities Hi Fred, sure this is possible, but if your pathinfo is totally dynamic like this it's probably best to parse it yourself or to setup a generic mapping like: It's then up to you to figure out which part has which purpose. Best regards, Geert On 3-mrt-06, at 11:41, Fred Baube wrote: > Another dumb question (as usual :-) ... > but this is an itch I'd like to scratch ... > > About pathinfo ... > > Is it possible that within a URL, the order of the > several pathinfo elements could be rearranged ? > For example, that these could be equivalent: > > http://mywebsite/geert/file/image/12.jpg > http://mywebsite/file/image/geert/12.jpg > http://mywebsite/image/file/geert/12.jpg > > If so, this would make it RIDICULOULSY easy > to implement a browser for faceted metadata. > That would be cool. > > In any case, it would be (at least in principle) > doable if each pathinfo element were taken from > a list (i.e. if each element were enumerated). > Processing time might go up kind of quickly tho, > as the number of possible orderings jumped. > > > fred > > -- > F.Baube* > Georgetown/MSFS/1988 * Think pangalactically. > fbaube#saunalahti.fi * Act locally. > gsm +358 41 536 8192 * > wmd 60°11'10.8"N 24°57'36.9"E > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://lists.uwyn.com/mailman/listinfo/rife-users > -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] authentication problem
Hello You can set these values in config.xml LOGIN_NAME_MAXIMUM_LENGTH LOGIN_NAME_MINIMUM_LENGTH PASSWORD_MAXIMUM_LENGTH PASSWORD_MINIMUM_LENGTH so if you put a line like 100 in config.xml then you can use email as login name. Regards Naren Quoting David Herbert <[EMAIL PROTECTED]>: Hello, In my RIFE application I need my users to be able to log in with a login name that is their email address. This can understandably be longer than the 20 characters RIFE appears to allocate by default. I have therefore modified the authuser Postgresql table to allow the login name to be much longer (up to 255 chars). However, in my app when I type a user login name of over 20 characters I get a WRONGLENGTH:login message and it doesn't let me in. I have no constraints I have set on this value, apart from "maxlength=255" in the login.html template. It seems the length is being measured against an internal value. Is the limit of 20 characters hard-coded somewhere in RIFE, or am I allowed to change it? If so how do I do this? Thanks, David Herbert. ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users This message was sent using IMP, the Internet Messaging Program. ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Problem with boolean in Beans with MySQL ?
Hello, I have also faced same problem on Mysql 5. http://rifers.org/pipermail/rife-users/2006-January/019250.html My Exact MySQL Version was 5.0.17. While it is working with 4.0.xx and 4.1.xx Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Thursday, February 23, 2006 05:22 Subject: Re: [Rife-users] Problem with boolean in Beans with MySQL ? Hi Christophe, I tried with MySQL 4.0.21, 4.1.13 and 5.0.18 and it works correctly with all those. It would be good to know which exact version you are using. Maybe you need to upgrade to a later minor release. Best regards, Geert On 22-feb-06, at 20:52, alpheccar wrote: > Hi Geert, > > I have just tested with another version (an old one : 4.1.15) and > it is working. > I cannot tell you which version I am using at my office because I > don't remember but it is a more recent one. > > But the difference between both is : in the 4.1.15 the boolean > field is giving a column TINYINT in the database but in the MySQL > version I am using at my office for the web site of my team I get a > BIT column. > > With TINYINT the restore is working. With BIT, it is not. > > BOOLEAN being synonym for TINYINT(1) in the MySQL documentation, I > assume getting a BIT column is not right. > > Christophe. > > Le 22 févr. 06 à 19:44, Geert Bevin a écrit : > >> Hi Christophe, >> >> first, which version of MySQL are you using? >> >> On 22-feb-06, at 19:40, alpheccar wrote: >> >>> Hi All, >>> >>> I have a problem with a boolean field in a bean and so far I have >>> been unable to understand why. I hope you have some clues. >>> >>> When I create a MySQL table based upon the class of the bean, >>> then it is working. I have a column of type BIT for the >>> corresponding boolean field. >>> When I save objects in the table it is working. When the field is >>> true I have a bit to 1 in the corresponding column and a zero >>> otherwise. >>> When I use some queries filtering (with a where clause) on this >>> boolean field then it is working. >>> >>> But, when I am restoring a bean, I always get false for my >>> boolean field. So, I had a look to my getters and setters and it >>> looks like the setter is always called with an argument set to >>> false so I assume the problem is not in my bean ? >>> >>> I have put no constraint on the boolean field. >>> >>> I have another related question : when I look at Elephant where >>> some beans have boolean field, I see that the getter is sometime >>> written isXXX or getXXX. Both are equivalent ? >>> >>> Regards, >>> Christophe. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> ___Nouveau : téléphonez moins cher avec Yahoo! Messenger ! >>> Découvez les tarifs exceptionnels pour appeler la France et >>> l'international. >>> Téléchargez sur http://fr.messenger.yahoo.com >>> ___ >>> Rife-users mailing list >>> Rife-users@uwyn.com >>> http://lists.uwyn.com/mailman/listinfo/rife-users >>> >> >> -- >> Geert Bevin Uwyn bvba >> "Use what you need" Avenue de Scailmont 34 >> http://www.uwyn.com 7170 Manage, Belgium >> gbevin[remove] at uwyn dot comTel +32 64 84 80 03 >> >> PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 >> Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net >> >> >> ___ >> Rife-users mailing list >> Rife-users@uwyn.com >> http://lists.uwyn.com/mailman/listinfo/rife-users > > > > > > > __ > _ > Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez > les tarifs exceptionnels pour appeler la France et l'international. > Téléchargez sur http://fr.messenger.yahoo.com > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://lists.uwyn.com/mailman/listinfo/rife-users > -- Geert Bevin Uwyn bvba "Use what you need" Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Error page
Hello Geert, I have never contributed to Open Source Project. Can you suggest how can I contribute to RIFE development ? If I made some changes/inhancements in RIFE then how can I submit to you ? Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Tuesday, February 14, 2006 13:56 Subject: Re: [Rife-users] Error page > Hi Naren, > > not yet, it is planned though: > http://uwyn.com/issues/browse/RIFE-89 > > Feel free to work on it if you badly need it. > > Best regards, > > Geert > > On 14-feb-06, at 06:24, Naren wrote: > > > Hello, > > Is there any way with RIFE to set a error page. So when any > > exception raised > > o page that error page is get displayed, instead of the default > > stack trace > > generated by rife? > > > > Regards > > Naren > > > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://lists.uwyn.com/mailman/listinfo/rife-users > > > > -- > Geert Bevin Uwyn bvba > "Use what you need" Avenue de Scailmont 34 > http://www.uwyn.com 7170 Manage, Belgium > gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://lists.uwyn.com/mailman/listinfo/rife-users > ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Error page
Hello, Is there any way with RIFE to set a error page. So when any exception raised o page that error page is get displayed, instead of the default stack trace generated by rife? Regards Naren ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Limitation of GenericQueryManagers
Hello GenericQueryManagers require a int type setter and getter in Bean. But in our project we will have lot of users and thousands of record in other user tables. So I want to use long type id. But I could not use long id with GenericQueryManagers. Is this a limitation ? I feel if the type of id field is java long type then it can be used for higher user databases. Is it possible ? Regards ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Multiple submit buttons on a form
Hello Yes I also vote for the Geert suggestion for handling multiple submit button. Regards Naren - Original Message - From: "Tyler Pitchford" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Tuesday, January 31, 2006 19:39 Subject: Re: [Rife-users] Multiple submit buttons on a form ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Few questions
Thanks Geert for your help. > > > 2) When I enable Rife schedular, it giving exception for table > > indexdocument. What does this table contains? Do I need to create this table > > ? I feel this table is used to create Lucene Index, then what entries this > > table should contain? > > You probably used some scheduler participants of RIFE/Search. How did > you 'enable the scheduler'? Where did you get the info from, I suppose > you used something as an example. Yes I copied It from Elephant. and I got that in schedular.xml , a task is this frequency is same format as in linux crontab ? can you suggest me If I want to use this task to create Lucene Index, then what entries this table should contain? Regards Naren ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Few questions
Hello I am studying and working on RIFE for a month. I am feealing that this is a good framework and speedup the development. But still I have a few questions: 1) When user logged in then there is an entry in table "Athentication". Now if user just close his browser window without logout, then this entry is remain in database. How can I clear this table ? 2) When I enable Rife schedular, it giving exception for table indexdocument. What does this table contains? Do I need to create this table ? I feel this table is used to create Lucene Index, then what entries this table should contain? Regards Naren ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
[Rife-users] RoleUserIdentity problem
Hello When I use following statment to get the RoleUserIdentity to check if the user is logged in or not. - RoleUserIdentity identity = (RoleUserIdentity)getRequestAttribute(Identified.IDENTITY_ATTRIBUTE_NAME); Some time it works correctly and we can check if user is logged In or not. But sometime it returns Null, although user is logged in. So for example when I check on an Element Home , it returns null, but if I check an embedded element (embeded in Home) then it returns not null value. What may be the problem ? Regards ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] redirect attribute in
Yes, as such 'WEBAPP:ROOTURL' is enoug, but sometimes we may need context path. Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Thursday, January 12, 2006 17:16 Subject: Re: [Rife-users] redirect attribute in > Is it this method you're talking about in the regular servlet api? > http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletRequest.html#getContextPath() > > Naren wrote: > > Hello Geert, > > Yes 'WEBAPP:ROOTURL' solved my problem. > > > > Is there also some tag or method in RIFE that can tell us Webapp context > > path instead of full URL? > > > > Regards > > > > - Original Message - > > From: "Geert Bevin" <[EMAIL PROTECTED]> > > To: "RIFE users list : questions,bug reports and suggestions." > > > > Sent: Thursday, January 12, 2006 16:55 > > Subject: Re: [Rife-users] redirect attribute in > > > > > >>Naren, this is normal behavior. The authentication element is not part > >>of the subsite, ie. it floats 'above'. The redirection only happens when > >>the actual arrival has been reached. If you have problems with relative > >>resources from without the login form page, I suggest you use the base > >>href approach and make all your resources relative to the root of your > >>web application. By doing this: > >> > >> > >> > >> > >> > >> > >>The WEBAPP:ROOTURL value will automatically be filled in by RIFE > >>according to where your web application runs. It is thus always > >>consistent even when it's on another server or another web application. > >> > >>I hope this helps. > >> > >>Best regards, > >> > >>Geert > >> > >>Naren wrote: > >> > >>>Yes, authentication form is not redirected, but the element after the > >>>authenticated succeeds > >>>Regards > >>> > >>> > >>>- Original Message - > >>>From: "Geert Bevin" <[EMAIL PROTECTED]> > >>>To: "RIFE users list : questions,bug reports and suggestions." > >>> > >>>Sent: Thursday, January 12, 2006 16:16 > >>>Subject: Re: [Rife-users] redirect attribute in > >>> > >>> > >>>>Hang on, do you mean that the authentication form is not redirected, or > >>>>the element that is accessed after the authenticated succeeds? > >>>> > >>>>Naren wrote: > >>>> > >>>> > >>>>>Hello > >>>>>The redirect attribute in tag is not working when the > > > > subsite > > > >>>>>extends AUTH element. AUTH element just implement the Athentication > >>>>>mechanism provided by RIFE. > >>>>>For example: > >>>>>--- > >>>>> > >>>>> > >>>>> > >>>>>... > >>>>> > >>>>>Then the redirection works fine. But in following case it do not work > >>>>> > >>>>> > >>>>> >>> > >>>/> > >>> > >>>>>. > >>>>> > >>>>>and in admin.xml > >>>>>- > >>>>> > >>>>> > >>>>> > >>>>>... > >>>>> > >>>>>--- > >>>>> > >>>>>then if I provide access /admin it does not redirect to > >>>>>/admin/product instead of that it just display login page > > > > and > > > >>>the > >>> > >>> > >>>>>yrl in localtion bar just remains /admin > >>>>> > >>>>>If I remove inherits="AUTH" from admin subsite then it works fine. > >>>>> > >>>>>Is it known behavior or a bug ? > >>>>>Due to this sometimes images and css do not displayed on login page. > >>>>> > >>>>>Any help would be appreciated on this issue. > >>>>> > >>>>>Regards > >>>>> > >>>>> > >>>>>_
Re: [Rife-users] redirect attribute in
Hello Geert, Yes 'WEBAPP:ROOTURL' solved my problem. Is there also some tag or method in RIFE that can tell us Webapp context path instead of full URL? Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Thursday, January 12, 2006 16:55 Subject: Re: [Rife-users] redirect attribute in > Naren, this is normal behavior. The authentication element is not part > of the subsite, ie. it floats 'above'. The redirection only happens when > the actual arrival has been reached. If you have problems with relative > resources from without the login form page, I suggest you use the base > href approach and make all your resources relative to the root of your > web application. By doing this: > > > > > > > The WEBAPP:ROOTURL value will automatically be filled in by RIFE > according to where your web application runs. It is thus always > consistent even when it's on another server or another web application. > > I hope this helps. > > Best regards, > > Geert > > Naren wrote: > > Yes, authentication form is not redirected, but the element after the > > authenticated succeeds > > Regards > > > > > > - Original Message - > > From: "Geert Bevin" <[EMAIL PROTECTED]> > > To: "RIFE users list : questions,bug reports and suggestions." > > > > Sent: Thursday, January 12, 2006 16:16 > > Subject: Re: [Rife-users] redirect attribute in > > > > > >>Hang on, do you mean that the authentication form is not redirected, or > >>the element that is accessed after the authenticated succeeds? > >> > >>Naren wrote: > >> > >>>Hello > >>>The redirect attribute in tag is not working when the subsite > >>>extends AUTH element. AUTH element just implement the Athentication > >>>mechanism provided by RIFE. > >>>For example: > >>>--- > >>> > >>> > >>> > >>>... > >>> > >>>Then the redirection works fine. But in following case it do not work > >>> > >>> > >>> > > > /> > > > >>>. > >>> > >>>and in admin.xml > >>>- > >>> > >>> > >>> > >>>... > >>> > >>>--- > >>> > >>>then if I provide access /admin it does not redirect to > >>>/admin/product instead of that it just display login page and > > > > the > > > >>>yrl in localtion bar just remains /admin > >>> > >>>If I remove inherits="AUTH" from admin subsite then it works fine. > >>> > >>>Is it known behavior or a bug ? > >>>Due to this sometimes images and css do not displayed on login page. > >>> > >>>Any help would be appreciated on this issue. > >>> > >>>Regards > >>> > >>> > >>>___ > >>>Rife-users mailing list > >>>Rife-users@uwyn.com > >>>http://www.uwyn.com/mailman/listinfo/rife-users > >>> > >> > >>-- > >>Geert Bevin Uwyn bvba > >>"Use what you need" Avenue de Scailmont 34 > >>http://www.uwyn.com 7170 Manage, Belgium > >>gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > >> > >>PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > >>Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > >>___ > >>Rife-users mailing list > >>Rife-users@uwyn.com > >>http://www.uwyn.com/mailman/listinfo/rife-users > >> > > > > > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://www.uwyn.com/mailman/listinfo/rife-users > > > > -- > Geert Bevin Uwyn bvba > "Use what you need" Avenue de Scailmont 34 > http://www.uwyn.com 7170 Manage, Belgium > gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://www.uwyn.com/mailman/listinfo/rife-users > ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] redirect attribute in
Yes, authentication form is not redirected, but the element after the authenticated succeeds Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Thursday, January 12, 2006 16:16 Subject: Re: [Rife-users] redirect attribute in > Hang on, do you mean that the authentication form is not redirected, or > the element that is accessed after the authenticated succeeds? > > Naren wrote: > > Hello > > The redirect attribute in tag is not working when the subsite > > extends AUTH element. AUTH element just implement the Athentication > > mechanism provided by RIFE. > > For example: > > --- > > > > > > > > ... > > > > Then the redirection works fine. But in following case it do not work > > > > > > > > . > > > > and in admin.xml > > - > > > > > > > > ... > > > > --- > > > > then if I provide access /admin it does not redirect to > > /admin/product instead of that it just display login page and the > > yrl in localtion bar just remains /admin > > > > If I remove inherits="AUTH" from admin subsite then it works fine. > > > > Is it known behavior or a bug ? > > Due to this sometimes images and css do not displayed on login page. > > > > Any help would be appreciated on this issue. > > > > Regards > > > > > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://www.uwyn.com/mailman/listinfo/rife-users > > > > -- > Geert Bevin Uwyn bvba > "Use what you need" Avenue de Scailmont 34 > http://www.uwyn.com 7170 Manage, Belgium > gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://www.uwyn.com/mailman/listinfo/rife-users > ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] redirect attribute in
Hello The redirect attribute in tag is not working when the subsite extends AUTH element. AUTH element just implement the Athentication mechanism provided by RIFE. For example: --- ... Then the redirection works fine. But in following case it do not work . and in admin.xml - ... --- then if I provide access /admin it does not redirect to /admin/product instead of that it just display login page and the yrl in localtion bar just remains /admin If I remove inherits="AUTH" from admin subsite then it works fine. Is it known behavior or a bug ? Due to this sometimes images and css do not displayed on login page. Any help would be appreciated on this issue. Regards ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Content Management
Hello, This is the code snippet to save the bean: ProductBean pBean =(ProductBean)getSubmissionBean("addproduct",ProductBean.class); Datasource ds = Datasources.getRepInstance().getDatasource("mysql"); ContentQueryManager manager = new ContentQueryManager(ds, ProductBean.class); int id=manager.save(pBean); I have one more question, Is any support for localization in this Content Management ? So that I can use different images for different languages. Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Monday, January 09, 2006 19:53 Subject: Re: [Rife-users] Content Management > Hi Naren, > > You probably don't use the ContentQueryManager to persist the bean. > If you use the GenericQueryManager, the CMF-specific constraints will > not be picked up. > > Best regards, > > Geert > > On 9-jan-06, at 15:19, Naren wrote: > > > Hello > > We have tried to use content management with RIFE. When we tried > > with the > > example http://rifers.org/wiki/display/RIFE/Content+management > > +framework > > > > and it works like a charm. After that I have write own bean with > > same thing, > > but that does not work. It only insert data in bean table but not > > in content > > store. > > > > I used following code in bean > > - > > package app.bean; > > > > > > import com.uwyn.rife.cmf.CmfProperty; > > import com.uwyn.rife.cmf.CmfValidation; > > import com.uwyn.rife.cmf.MimeType; > > > > import java.util.*; > > import java.text.DecimalFormat; > > import java.text.NumberFormat; > > > > > > public class ProductBean extends CmfValidation > > { > > > > private String mProducttitle=null; > > private float mPrice=Float.parseFloat("0.0"); > > private byte[] mAvatar=null; > > private String mDescription=null; > > private Date mAddProductdate=null; > > private int mId=-1; > > > > protected void activateValidation() > > { > > addConstraint(new CmfProperty("producttitle") > >.notNull(true) > >.notEmpty(true) > >.maxLength(50)); > > addConstraint(new CmfProperty("description") > > .notNull(true) > > .notEmpty(true) > > .minLength(10)); > > addConstraint(new CmfProperty("avatar") > > .persistent(false) > > .file(true)); > > addConstraint(new CmfProperty("id") > > .saved(false) > > .editable(false)); > > } > > public void setId(int id) > > { > > mId=id; > > } > > public int getId() > > { > > return mId; > > } > > > > public void setProducttitle(String producttitle) > > { > > mProducttitle=producttitle; > > } > > > > public void setDescription(String description) > > { > > mDescription=description; > > } > > > > public void setPrice(float price) > > { > > mPrice=price; > > } > > public void setAvatar(byte[] avatar) {mAvatar=avatar;} > > public byte[] getAvatar() { return mAvatar; } > > > > public void setAddProductdate(Date addProductdate) { > > mAddProductdate=addProductdate; > > } > > public String getProducttitle() > > { > > return mProducttitle; > > } > > > > public String getDescription() > > { > > return mDescription; > > } > > public float getPrice() > > { > > return mPrice; > > } > > public Date getAddProductdate() > > { > > return mAddProductdate; > > } > > > > } > > > > > > What am I doing wrong ? What are the main Contrainst that need to > > apply to > > store data in Content Store. > > > > Regards > > Naren > > > > > > > > > > > > > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://www.uwyn.com/mailman/listinfo/rife-users > > > > -- > Geert Bevin Uwyn bvba > "Use what you need" Avenue de Scailmont 34 > http://www.uwyn.com 7170 Manage, Belgium > gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://www.uwyn.com/mailman/listinfo/rife-users > ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Content Management
Hello We have tried to use content management with RIFE. When we tried with the example http://rifers.org/wiki/display/RIFE/Content+management+framework and it works like a charm. After that I have write own bean with same thing, but that does not work. It only insert data in bean table but not in content store. I used following code in bean - package app.bean; import com.uwyn.rife.cmf.CmfProperty; import com.uwyn.rife.cmf.CmfValidation; import com.uwyn.rife.cmf.MimeType; import java.util.*; import java.text.DecimalFormat; import java.text.NumberFormat; public class ProductBean extends CmfValidation { private String mProducttitle=null; private float mPrice=Float.parseFloat("0.0"); private byte[] mAvatar=null; private String mDescription=null; private Date mAddProductdate=null; private int mId=-1; protected void activateValidation() { addConstraint(new CmfProperty("producttitle") .notNull(true) .notEmpty(true) .maxLength(50)); addConstraint(new CmfProperty("description") .notNull(true) .notEmpty(true) .minLength(10)); addConstraint(new CmfProperty("avatar") .persistent(false) .file(true)); addConstraint(new CmfProperty("id") .saved(false) .editable(false)); } public void setId(int id) { mId=id; } public int getId() { return mId; } public void setProducttitle(String producttitle) { mProducttitle=producttitle; } public void setDescription(String description) { mDescription=description; } public void setPrice(float price) { mPrice=price; } public void setAvatar(byte[] avatar) {mAvatar=avatar;} public byte[] getAvatar() { return mAvatar; } public void setAddProductdate(Date addProductdate) { mAddProductdate=addProductdate; } public String getProducttitle() { return mProducttitle; } public String getDescription() { return mDescription; } public float getPrice() { return mPrice; } public Date getAddProductdate() { return mAddProductdate; } } What am I doing wrong ? What are the main Contrainst that need to apply to store data in Content Store. Regards Naren ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Reinstalling Bamboo
Hello I could not locate subversion repository for bamboo. Can you tell me? Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Friday, January 06, 2006 19:51 Subject: Re: [Rife-users] Reinstalling Bamboo > Hi Naren, > > Bamboo 1.0rc3 really is not recommended anymore, please use the > Subversion version. I'll check with JR to see if we might not release > 1.0rc4 today, I don't see anything against it. > > Version 1.0rc3 is so old that I can't recall if what you're trying to > do should work. In the latest version, it should just detect the fact > that it can't connect anymore and provide you with the setup screen > again, automatically. > > Best regards, > > Geert > > On 6-jan-06, at 15:16, Naren wrote: > > > Hello, > > - I am using Bamboo 1.0rc3 > > - No, it is not from subversion. > > - Operating System is Windows 2000 Server. > > > > Regards > > > > - Original Message - > > From: "Geert Bevin" <[EMAIL PROTECTED]> > > To: "RIFE users list : questions,bug reports and suggestions." > > > > Sent: Friday, January 06, 2006 19:32 > > Subject: Re: [Rife-users] Reinstalling Bamboo > > > > > >> Hi Naren, > >> > >> which operating system are you running? Also, are you running the old > >> Bamboo release or the code from subversion? > >> > >> Best regards, > >> > >> Geert > >> > >> On 6-jan-06, at 14:56, Naren wrote: > >> > >>> Hello > >>> To understand the working os bamboo forum, I have tried to install > >>> it with > >>> MYSQL server. But due to many problems I want to switch to > >>> PostgreSQL. Now > >>> when I start Jetty server and open the URL, it always display > >>> some SQL > >>> errors that tables do not exist. > >>> > >>> How can I reset the old installation of Bamboo so that it will > >>> again ask to > >>> setup and can create tables in PostgreSQL database? > >>> > >>> Please help. > >>> > >>> Regards > >>> > >>> ___ > >>> Rife-users mailing list > >>> Rife-users@uwyn.com > >>> http://www.uwyn.com/mailman/listinfo/rife-users > >>> > >> > >> -- > >> Geert Bevin Uwyn bvba > >> "Use what you need" Avenue de Scailmont 34 > >> http://www.uwyn.com 7170 Manage, Belgium > >> gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > >> > >> PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > >> Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > >> > >> > >> ___ > >> Rife-users mailing list > >> Rife-users@uwyn.com > >> http://www.uwyn.com/mailman/listinfo/rife-users > >> > > > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://www.uwyn.com/mailman/listinfo/rife-users > > > > -- > Geert Bevin Uwyn bvba > "Use what you need" Avenue de Scailmont 34 > http://www.uwyn.com 7170 Manage, Belgium > gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://www.uwyn.com/mailman/listinfo/rife-users > ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Reinstalling Bamboo
Hello, - I am using Bamboo 1.0rc3 - No, it is not from subversion. - Operating System is Windows 2000 Server. Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Friday, January 06, 2006 19:32 Subject: Re: [Rife-users] Reinstalling Bamboo > Hi Naren, > > which operating system are you running? Also, are you running the old > Bamboo release or the code from subversion? > > Best regards, > > Geert > > On 6-jan-06, at 14:56, Naren wrote: > > > Hello > > To understand the working os bamboo forum, I have tried to install > > it with > > MYSQL server. But due to many problems I want to switch to > > PostgreSQL. Now > > when I start Jetty server and open the URL, it always display some SQL > > errors that tables do not exist. > > > > How can I reset the old installation of Bamboo so that it will > > again ask to > > setup and can create tables in PostgreSQL database? > > > > Please help. > > > > Regards > > > > ___ > > Rife-users mailing list > > Rife-users@uwyn.com > > http://www.uwyn.com/mailman/listinfo/rife-users > > > > -- > Geert Bevin Uwyn bvba > "Use what you need" Avenue de Scailmont 34 > http://www.uwyn.com 7170 Manage, Belgium > gbevin[remove] at uwyn dot comTel +32 64 84 80 03 > > PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 > Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net > > > ___ > Rife-users mailing list > Rife-users@uwyn.com > http://www.uwyn.com/mailman/listinfo/rife-users > ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Reinstalling Bamboo
Hello To understand the working os bamboo forum, I have tried to install it with MYSQL server. But due to many problems I want to switch to PostgreSQL. Now when I start Jetty server and open the URL, it always display some SQL errors that tables do not exist. How can I reset the old installation of Bamboo so that it will again ask to setup and can create tables in PostgreSQL database? Please help. Regards ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Shopping Cart
Hello Geert. Thanks for your quick reply. I got this. Just need to confirm that I dont need to use inputcookie and outputcookie on each element for a globalcookie, right? Thanks Regards - Original Message - From: "Geert Bevin" <[EMAIL PROTECTED]> To: "RIFE users list : questions,bug reports and suggestions." Sent: Wednesday, January 04, 2006 18:16 Subject: Re: [Rife-users] Shopping Cart > Hi Naren, > > using a globalcookie is the most appropriate in this case I think, > just declare it in your site structure. > > You can generate the id with the UUID class under JDK 1.5, or use > RIFE's UniqueIDGenerator class with 1.4 and 1.5. Then use setCookie > and getCookieValue from within your element when appropriate. > > Best regards, > > Geert ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] Shopping Cart
Thanks Geert. I am using your preferred solution. Store the cart content with a unique ID. To get the unique ID can I use globalcookie or globalvar ? If yes, then can you suggest some way to achieve using these ? Thanks Regards * store the cart in your database > > This is my preferred approach, when I visit a store I expect my cart to > be tied to my account or to my browser. The first one is easy since the > account provides the unique id, the latter can be quite easily done by > creating a 'shoppingcart' cookie with a unique id. You can then use our > GenericQueryManager to very easily store, update and retrieve your > shopping cart instance that correspond to the id you're using. > This provides your with a scalable, clusterable and persistable approach > to shopping carts. ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Shopping Cart
Hello I am devloping a Shopping Cart application using RIFE. I have a class Cart that contains the detial of items in Shopping cart. In other Java application I put this in Session. How can I implement this using RIFE as there is not direct Session support. Can any body provide any example to store such a Object for a user session? Thanks a lot. Regards ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] MySQL Compatibility
Hello Can any body tell me if Bamboo and Elephant are compatible with MySQL ? I am getting problems to setup these on MySQL. For example When I setup Bamboo on MySQL 4.1, it gives some nested queries related exception , and when I setup this with MySQL 5, it gives some strange errors. The installer of Bamboo, creates all boolean field in tables as mysql bit type. And when bamboo used to write/update anything on these fields then the result is an exception , that the fields is too low to set the values. Any way to fix these ? Regards Narendra Jain ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users