Re: enumerating sessions?

2024-04-26 Thread Samuel Pelletier via Webobjects-dev
Hi, As Hugi wrote, you can access the list via the session store. Be careful with access to objects inside those sessions, especially EOs since you are outside their normal RR loop request. I have a standard way to list active users and keep track of last access inside session by adding those

Debug frameworks with maven project

2024-04-10 Thread Samuel Pelletier via Webobjects-dev
Hi, I created a new workspace with the latest Eclipse to migrate my project to maven. My projects run and I can debug the application code (set breakpoint, click on exception stack trace to open project source) but all debug functions are not working for frameworks. I set breakpoint in code

wolifecycle-maven-plugin configuration options

2024-04-06 Thread Samuel Pelletier via Webobjects-dev
Hi, My journey to Maven is going well, I ported 2 shared frameworks I use on every projects and my first app. There is many subtle details to go pass a "Hello world !" app. My last discovery is a problem with component template in sub directory that are not found when deployed. I always use

Using Git Hub as private CI/CD and Maven repository

2024-04-02 Thread Samuel Pelletier via Webobjects-dev
Hi, With the maven switch, I understand it is now easier to setup CI/CD and it is also much nicer to have a Maven private repository for internal frameworks and apps. I see that Git Hub now have Actions and Packages that could provide those services even for private repo in free tier. Are

Re: Maven follow up

2024-04-01 Thread Samuel Pelletier via Webobjects-dev
ut eclipse plugin development to program > this. > > I don't use search in maven pom editor myself but does this option help > "Download repository index updates on startup"? > > > > > > I haven't used maven with my own frameworks so can't help you there

Maven follow up

2024-04-01 Thread Samuel Pelletier via Webobjects-dev
Hi all, Sorry for long time since last message, my maven switch had to be postponed. I manages to set up the basic and create a frameworks and an app. I have few questions with my current setup. Why Eclipse always complain about missing nature, the maven stuff is already there and working,

Re: Meetup maybe? Or call me maybe?

2023-12-21 Thread Samuel Pelletier via Webobjects-dev
Hi, If you managed to create a new project, you where able to go far beyond my achievements ! I tried to switch to maven few times in the last years and just gave up each time after few hours and never managed to create a new project without error that build ever after reading and trying to

Re: AjaxAutoComplete

2023-11-11 Thread Samuel Pelletier via Webobjects-dev
Hi, I managed to achieve your goal in my apps using this pattern : - Create a submit js function using an AjaxSubmitButton - Use the created function in afterUpdateElement on AjaxAutoComplete. Regards, Samuel > Le 10 nov. 2023 à 05:55, Stavros Panidis via Webobjects-dev >

Re: Weird apache crash in Ubuntu

2022-02-28 Thread Samuel Pelletier via Webobjects-dev
Hi Patrick, Your apache mp3 is probably set to something other than prefork. The WOAdaptor does not support threaded mpm. Regards, Samuel > Le 28 févr. 2022 à 14:22, Patrick Abuzeni via Webobjects-dev > a écrit : > > > Hello everyone > > Have a Ubuntu 20.04.3 LTS (GNU/Linux

Re: Wrong SQL when joining in an OR-part of the qualifier

2022-02-15 Thread Samuel Pelletier via Webobjects-dev
a WODisplayGroup). > > Thanks a lot again, > OC > >> On 15. 2. 2022, at 0:29, Samuel Pelletier > <mailto:sam...@samkar.com>> wrote: >> >> Hi, >> >> As Aaron wrote, ERExisitsQualifier will generate an SQL for your needs. You >> may also

Re: Wrong SQL when joining in an OR-part of the qualifier

2022-02-14 Thread Samuel Pelletier via Webobjects-dev
Hi, As Aaron wrote, ERExisitsQualifier will generate an SQL for your needs. You may also change the JOIN type to change it's behaviour in SQL. EOF apply table joins before qualifier, I suspect other ORM does the same too. For that kind of quarry, you will probably have better performance doing

Re: FrontBase driver for Java 11+ - was Mac OS Monterey

2021-12-21 Thread Samuel Pelletier via Webobjects-dev
Hi Jérémy, The fronbtbasejdbc driver on FrontBase site was updated with a new binary compiled for java 1.8+. Same version number but run on Java 8+ instead of the previous release limited to Java 16+. Best regards, Samuel > Le 20 déc. 2021 à 03:11, Jérémy DE ROYER via Webobjects-dev > a

Re: Mac OS Monterey

2021-12-19 Thread Samuel Pelletier via Webobjects-dev
Merci Samuel for the help. > > What version of wolips are you using with eclipse 2021-09 ? > > Jérémy > >> Le 18 déc. 2021 à 22:37, Samuel Pelletier > <mailto:sam...@samkar.com>> a écrit : >> >> Bonjour Jérémy, >> >> I was about to send you a fi

Re: Mac OS Monterey

2021-12-18 Thread Samuel Pelletier via Webobjects-dev
Bonjour Jérémy, I was about to send you a fix for the FrontBase sql generation problem when I decided to look at their site and there is a new jdbc 2.5.10 driver released few days ago that fixes the problem with newer Eclipse. I confirmed the fix with Eclipse 2021-09. Regards, Samuel > Le

Re: AjaxAutoComplete in AjaxModalDialog

2021-12-05 Thread Samuel Pelletier via Webobjects-dev
was seeing. > > Hope that helps. > > Sent from my iPhone > >> On Dec 3, 2021, at 3:27 PM, Samuel Pelletier via Webobjects-dev >> wrote: >> >> Hi, >> >> I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works >

AjaxAutoComplete in AjaxModalDialog

2021-12-03 Thread Samuel Pelletier via Webobjects-dev
Hi, I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works OK. A very strange problem occur when the main page is scrolled though, the selection choices are displayed with a vertical distance from the textfield that correspond to the vertical scroll of the main page

Re: Single thread creation queue?

2021-11-24 Thread Samuel Pelletier via Webobjects-dev
ates and I’d > catch that exception during creation and handle it > >> On Nov 24, 2021, at 12:19 AM, Samuel Pelletier > <mailto:sam...@samkar.com>> wrote: >> >> If your usernames (or keyString) are case insensitive, store them in a >> normalized case (in lowercase

Re: Single thread creation queue?

2021-11-23 Thread Samuel Pelletier via Webobjects-dev
If your usernames (or keyString) are case insensitive, store them in a normalized case (in lowercase for exemple). You can add an overridden public void setKeyString(String value) { if (value != null) { value = value.toLowerCase(); }

Re: Single thread creation queue?

2021-11-22 Thread Samuel Pelletier via Webobjects-dev
, but I don’t think > I’ve implemented constraints quite like that before so I’d need to write some > sort of Migrations for it if it’s to be reliable in all those situations > where it might encounter duplicate data…hmmm… > > > > >> On Nov 22, 2021, at 8:59 AM, Samuel Pelleti

Re: Single thread creation queue?

2021-11-22 Thread Samuel Pelletier via Webobjects-dev
Hi Jesse, Your question may have multiple answers, can you describe the contexts and duplicate sources you fear ? Is the primary key generated by the WO app or it is external (like a GUID) ? Do you have a secondary identifier that should be unique ? Anyway, you should add constraint in to the

Re: again, merge on unlock did not happen :/

2021-10-11 Thread Samuel Pelletier via Webobjects-dev
Hi OC, This is probably a bug in the change propagation. Do you use EOEditingContext with long life span (in Session for example) or short life one (in component and task) ? My experience is short life is much better. At least, you are sure your EOs will reflect the latest snapshot when

Re: Headers and AJAX?

2020-10-05 Thread Samuel Pelletier via Webobjects-dev
ize I’m just using those javascript fiddle editor things like postman > or whatever which I suppose isn’t entirely the same as a node.js request from > a server since I guess the request is coming out of the web page/browser in > those cases. > > hmm… > > >> On O

Re: Headers and AJAX?

2020-10-03 Thread Samuel Pelletier via Webobjects-dev
Hi Jesee, If your queries are crossing origins, you need to add CORS headers in your responses or on your server configuration. Those includes rules for allowed cookies and headers. I do not think they are required for same origin requests but this may be something added lately. Regards,

Re: Multiple timezones

2020-02-26 Thread Samuel Pelletier via Webobjects-dev
Hi Michael, There is no easy or universal answer to this question. The best solution also depends on the meaning of the timestamp data. If your system is used on multiple timezones, ... - you may have situation where you want to always display the time in the event location time zone like

Re: Custom Ajax Component parent page re rendereing

2020-02-01 Thread Samuel Pelletier via Webobjects-dev
Hi Michael, If processing an AjaxRequest, you should not see the entire page rerendered. You may verify by adding a break point on the main page appendToResponse method. If you wonder why getters on your main component are called like list for a repetition, this is required to find out the

Re: Catalina and Frontbase

2020-01-03 Thread Samuel Pelletier via Webobjects-dev
Hi Jeffrey, Have you tried to enable SQL logging to identify if the problem is always on the same statement and is repeatable ? to enable SQL logging, set this in Property: log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=DEBUG I did some tests with a fresh Catalina with database

Re: Safari ignores autocomplete="off" in AjaxAutoComplete component

2019-08-29 Thread Samuel Pelletier via Webobjects-dev
Hi Markus, I do not experience this problem on my side. I do not remember experienced it either. I'm currently using Safari 12.1.2 on Mojave and on iOS 12.4 devices with latest Wonder. The only problem I experience with AutoComplete is on iOS, the popup does not appears at the field location.

Re: DirectConnect and Security

2019-08-14 Thread Samuel Pelletier via Webobjects-dev
RL, String anHTTPVersion, Map> someHeaders, NSData aContent, Map someInfo) { Regards, Samuel > Le 12 août 2019 à 09:01, Samuel Pelletier via Webobjects-dev > a écrit : > > Hi Mark, > > If you want to simulate a WOAdaotor environment and have the app generate > static file

Re: DirectConnect and Security

2019-08-12 Thread Samuel Pelletier via Webobjects-dev
Hi Mark, If you want to simulate a WOAdaotor environment and have the app generate static file URL, configure your load balancer to add "x-webobjects-adaptor-version" header like I do using apache reverse proxy: RequestHeader set x-webobjects-adaptor-version "1" Regards, Samuel > Le 12

Re: Can WOPopupButton's selectedValue binding set a value in a component?

2019-03-29 Thread Samuel Pelletier
Hi Hugi, I think most WOComponents (and elements) only push selectedValue or selection if the value change. For your case, I think you should use javascript code with a AjaxProxy to communicate with your component controller or use some form of serialization using a hidden field. I never

ERRest and apache Commons Lang

2019-03-26 Thread Samuel Pelletier
Hi, The current Wonder ERRest fail to produce json data with a NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException referenced by JsonConfig, an old json library. I suspect this problem is limited to ant users like me. This class was part of common-lang.jar which

Re: WOInstaller.jar needs update

2019-03-12 Thread Samuel Pelletier
Hi, I concluded the same thing installing a new workstation and documented the procedure in the wiki. I initially suspected a java11 problem in the installer. Samuel > Le 12 mars 2019 à 08:10, Wolfgang Hartmann a écrit : > > Hy, > > Apple changed the URL to the WebObjects-Installation: A

Re: Best deployment style for Mojave ?

2019-02-16 Thread Samuel Pelletier
I suggest to update the current deployment or create a new page on the wiki.wocommunity.org. You can attach files to a page and it is easier to find the latest version of the documentation than search a mailing list archive. Samuel > Le 15 févr. 2019 à 13:09, Jeffrey Schmitz a > écrit : >

Re: WOLips, Eclipse 2018-12 with openjdk11 and dcevm-hotswap

2019-02-14 Thread Samuel Pelletier
s build. > > Sharpy. > > >> On 14 Feb 2019, at 7:37 am, Samuel Pelletier > <mailto:sam...@samkar.com>> wrote: >> >> Hi all, >> >> I experience Eclipse 2018-12 with WOLips and DCEVM and the latest WOLips and >> it works quite well

WOLips, Eclipse 2018-12 with openjdk11 and dcevm-hotswap

2019-02-13 Thread Samuel Pelletier
Hi all, I experience Eclipse 2018-12 with WOLips and DCEVM and the latest WOLips and it works quite well to date. I use the openjdk11 with DCEVM and Hotswap integrated found at this location, it is important to use the latest (+8 at this time) version if you use Groovy.

Re: WebObjects and prototype.js

2019-02-13 Thread Samuel Pelletier
crub what is partially typed and >> then come back with suggestions. Note the “isLocal = false” >> >> I have not tried the AjaxExample project. Literally our apps stopped >> working, people started screaming that the sky is falling, and to put out >> the fire I replaced the v

Re: WebObjects and prototype.js

2019-02-13 Thread Samuel Pelletier
Hi Aaron, I have the latest wonder and my AjaxAutoCompletes are working as expected. Have you tried the AjaxExample project ? Maybe we have a different usage. I use it like this: Samuel > Le 12 févr. 2019 à 16:26, Aaron Rosenzweig a écrit : > > Hi Everyone, > > We

Re: EOModel of sub-entity not added to EODatabase

2019-02-12 Thread Samuel Pelletier
Hi Fabian, I'm not familiar with this low level part of EOF but after surfing the doc I may have something. Have you try to register the CooperatingObjectStoreWasAddedNotification ? If the new object store is passed, you may have an opportunity to force load the model there. Regards, Samuel

Re: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5

2019-02-11 Thread Samuel Pelletier
You can try the latest JDK with the latest DCEVM, it usually works even if version does not matches. As anyone tried OpenJDK on Mac with Eclipse ? There are now Mac binaries version of adopt OpenJDK end even a version with Hotswap included

Re: Advice on whether to upgrade Eclipse / WOLips from Eclipse Mars 4.5

2019-02-08 Thread Samuel Pelletier
Hi, I just installed 2018-12 and it seems faster than 4.7. I have only one problem to date, the "Add Key" function in the component editor no longer works for me. I see the dialog, specify the type and click "Add" as usual. The source editor come to front but the key is not added. Adding an

Re: ERRest should return own content type

2019-01-31 Thread Samuel Pelletier
Hi André, The mime is hard coded in the ERXXmlRestWriter. Officially, text/xml and application/xml are valid, do you really need to change it ? You can probably write a subclass of ERXXmlRestWriter and override only the public String contentType() method to return your desired mime and

Re: Enterprise objects stored in JSON or byte

2018-12-19 Thread Samuel Pelletier
Hi Mark, I've done dynamic forms in the past (in PHP and WO) and never tried to map them to an ORM entity. I think it is better to model your a Form entity and another one for answers (FilledForm or CompletedForm). The Form entity is the Meta model with the questions and the other contains

Re: jrebel ???

2018-10-31 Thread Samuel Pelletier
DCEVM for Java 10 is into the OpenJdk Project. The problem I see is the support for open jdk on Mac. A rapid search seems to indicate that Homebrew Oracle seems to move Java into paid services, it is maybe the time to try Open jdk... Is there any known problems with Open JDK and WO ?

Re: Migrations and Prototypes Question

2018-10-21 Thread Samuel Pelletier
Hi Tim, I have the same problem with FrontBase and found where the code is but never tried to fix it. If I remember correctly, the code you are looking for is in the WOLips eclipse plugin in the EOModeler module. I do not think it would be really hard to fix but I do not have a working setup

Re: javascript popup menu for a grid

2018-10-06 Thread Samuel Pelletier
ate it. Works > much better for high volume / lots of interactivity because you aren’t asking > WO to make the UI… only vend data. > AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/> > e: aa...@chatnbike.com <mailto:aa...@chatnbike.com> t: (301) 956-2319 &g

javascript popup menu for a grid

2018-10-04 Thread Samuel Pelletier
Hi all, I want to build a grid of resource availability with a coloured status for each cell and allow fast editing of each cell status. I would like to display a popup with the status choices when the user click on a cell and get the selection back. This grid will contains few hundred cells

Re: in which EO behalf a ValueFactory works?

2018-08-23 Thread Samuel Pelletier
Hi OC, The ValueFactory methods are not well suited for you need. You want to create a child relationship serialized in the parent object, not a simple storage for basic container. I suggest you try something like this with the model attribute for the serialized content named attributeBlob

Re: EOF bug?

2018-08-13 Thread Samuel Pelletier
issue in NSMutableArray’s implementation. -- Mark From: Webobjects-dev <webobjects-dev-bounces+mark.morris=experian@lists.apple.com> on behalf of "Morris, Mark" <mark.mor...@experian.com>Date: Monday, August 13, 2018 at 12:30 PMTo: Samuel Pelletier <sam...@samkar.com>C

Re: EOF bug?

2018-08-13 Thread Samuel Pelletier
in EOAttribute is actually > addObjectsFromArray(), which calls objectsNoCopy() in its implementation. > > Regards, > Mark > > From: Samuel Pelletier > Date: Monday, August 13, 2018 at 6:31 AM > To: "Morris, Mark" > Cc: "webobjects-dev@lists.apple.com

Re: EOF bug?

2018-08-13 Thread Samuel Pelletier
Hi Mark, I checked my version of EOAttribute and was unable find call to objectsNoCopy() in the code. I checked the WO and ERAttributeExtension versions of the class. Are you on an older version of WO ? Samuel > Le 13 août 2018 à 05:32, Morris, Mark a écrit : > > Hi all, > > After much

Re: Long responses, without a session?

2018-05-29 Thread Samuel Pelletier
cket to a WO DA when I know credentials are > correct. > > Mark > > On Thu, 24 May 2018 at 22:39 Samuel Pelletier <mailto:sam...@samkar.com>> wrote: > Hi Mark, > > I've never done that with WO but it is possible to return partial data to the > browser and

Re: Long responses, without a session?

2018-05-24 Thread Samuel Pelletier
Hi Mark, I've never done that with WO but it is possible to return partial data to the browser and have it rendered bi using chunked response. I do not know if it is possible to force WO to flush the response content to the client and keep adding content after... If you can validate that the

Re: Bug in NSArray et. al. ?

2018-05-14 Thread Samuel Pelletier
Hi Markus, There is already an array operator defined in Wonder for isEmpty: @isEmpty With the current NSArray key value coding handling, there is only a single exception to the rule that pass the key to array values, it is for the "count" key. There is already 2 way to get the if

Re: Looking towards JDK 9, 10

2018-04-30 Thread Samuel Pelletier
Hi Paul, The actual situation of Java is not clear. Java 9 is already end of life and 10 will be before Java 8. Java 8 that will be supported at least until next January and also until December 2020 but we do not know the details about the later date... See this page full of "more details

Re: AjaxObserveField does not trigger action

2018-04-25 Thread Samuel Pelletier
Hi, You should take a look into AjaxExample and AjaxExample2 project. The Dependent Lists in AjaxExample demonstrate how to build dependant popups. I noticed few missing things in your html : - Your need a woform around your popup. (That may be the cause of your javascript error. - You need

Re: downloading large files still not work

2018-04-13 Thread Samuel Pelletier
Hello Andrea, I searched the adaptor source and the C struct representing a response use unsigned variables for the length values. unsigned content_length; unsigned content_buffer_size; unsigned content_read; /* total amount of data read from the instance */

Re: UBUNTU 16.04 MySQL performance

2018-03-13 Thread Samuel Pelletier
Hi Stavros, I would not expect MySQL to be slower on any Linux, usually, it is the reverse situation. Very long query like this one is probably very io intensive, even 3 second is quite long for a query (except for large data set reporting). So I suggest you look at these: - The cpu and io

Re: certficate on wocommunity.org

2018-02-23 Thread Samuel Pelletier
gt; > Can you please check if you can access without problems now? > > Thanks > Maik > > >> Am 23.02.2018 um 01:38 schrieb Samuel Pelletier <sam...@samkar.com >> <mailto:sam...@samkar.com>>: >> >> Hi Maik, >> >> I think there is a miss

Re: certficate on wocommunity.org

2018-02-22 Thread Samuel Pelletier
Hi Maik, I think there is a missing chain cert on the server. At least Eclipse update refuse to connect to the update site with this error: Unable to read repository at https://jenkins.wocommunity.org/job/WOLips47/lastSuccessfulBuild/artifact/temp/dist/content.xml. Unable to read repository at

Property to set the public host of an application

2018-02-20 Thread Samuel Pelletier
Hi list, Yesterday, I created a pull request to finally fix the problem of creating email and url to the app in background tasks where the WOContext does not have an URL from the server to know the server name and the WOHost is not a suitable server to use in an URL. It is now merged in the

Re: Any ideas for movable/draggable AjaxModalDialog?

2018-02-20 Thread Samuel Pelletier
Hi Markus, I was curious about this and it is easy and cool. I just sent a pull request for this change. You can see the changes here: https://github.com/wocommunity/wonder/pull/852/files BTW, I alway use a custom modal box.js file with default slideDownDuration and slideUpDuration set to 0

Re: ER.Rest - 405 Status on preflight

2018-01-22 Thread Samuel Pelletier
Hi Raymond, 405 is not a CORS problem, those are displayed as error in the browser as not authorized (or something similar) and the real GET, POST or PUT request is never issued to the app. The preflight usually issue a OPTION request to get the headers. You should begin by identifying the

Re: Fighting with Ajax Modal Dialogs et.al.

2017-12-12 Thread Samuel Pelletier
en more as > the examples just show how some components are being used but there is no > explanation of the underlying concepts and how to solve a problem with these > things. > > Thanks a lot > ---markus--- > > >> On 12 Dec 2017, at 13:32, Samuel Pelletier <sam

Re: Fighting with Ajax Modal Dialogs et.al.

2017-12-12 Thread Samuel Pelletier
rVertically = true; > locked = true; > width = 630; > height = 320; > overlayOpacity = "0.5"; > overlayDuration = "0.1"; > slideDownDuration = "0.1"; > slideUpDuration = "0.1"; > close

Re: Fighting with Ajax Modal Dialogs et.al.

2017-12-11 Thread Samuel Pelletier
Hi Markus, If I understand your requirement correctly, you want a modal that allows selecting some value(s) for a form field and want the selection be visible in the displayed form after the modal close. The trick is to define an AjaxUpdateContainer around the zone to be updated after the

Re: Database connection

2017-11-08 Thread Samuel Pelletier
Hi André, You can even remove some code. Wonder try to load some specific properties files is a specific order. This ordered loading allows to override a setting in a file loaded after another with the same setting. Here are the one I use in load order: 1 - the main file named "Properties"

Re: Access control

2017-11-03 Thread Samuel Pelletier
Hi, There is nothing in Wonder but I built a framework I use on all my app that support a large set of cases of user access control. There is a service and annotations to specify the component access that are easy to integrate withe the Wonder checkAccess method in ERXComponent. You can find

Re: Webobjects POS

2017-07-18 Thread Samuel Pelletier
Hi, Interfacing peripherals with web app is always a challenge. Is is even more with serial devices like POS printers and EMV terminals. There is basically 2 options I see: 1- Using some sort of plugin on the web browser that would allows your code to access the physical world outside the

Re: Tip request: How to avoid coercing twice in NSValidation

2017-05-24 Thread Samuel Pelletier
Hi, I never bind the password field directly to the attribute. If the password is entered by the user, I put 2 field and compare them before saving so I uses 2 variables inside the component. Some notes about password... - If you need strong passwords, never allow the user to enter their

ERXFetchSpecificationBatchIterator for efficient batch fetches

2017-05-17 Thread Samuel Pelletier
Hi all, I want to share my discovery of the day as this is probably useful to others. In an app that need to process records sometime in huge batches I had some trouble getting my loop working correctly using some manual batching code du to some rules that may postpone some record processing.

Re: Creating working wocontext()

2017-04-19 Thread Samuel Pelletier
Hi Klaus, I never managed to get the url generation works as expected outside the RR loop. For these case, I add a property with the base public url, construct the required url manually and uses the src and href bindings. If there is a bette way, I would like to know it too. Samuel > Le 14

Re: Set case insensitive unique index with ERXMigrations

2017-04-19 Thread Samuel Pelletier
Jeff, With FrontBase, I usually create the table with the migration and execute this SQL to alter the column collation: "ALTER COLUMN \"TableName\".\"columnName\" TO COLLATE \"CaseInsensitive\";" Same logic to initialize unique sequence to lower value: "SET UNIQUE = 10 FOR

Re: Opinion on ERXKey type parameterization

2017-03-30 Thread Samuel Pelletier
Paul, I never used and didi not even known the existence of ERXGenericRecord.valueForKey(). The problem with these powerful ERXKey is that some operator will reduce a collection and some will create a collection. There is no way to infer these results with the current way they are done (using

Re: Opinion on ERXKey type parameterization

2017-03-28 Thread Samuel Pelletier
Hi, After paying a lot with ERXKey, I came to the conclusion that the current templates are correct. Using the collection as the type seems good at first but if you use aggregation functions they no longer works. ERXKey have 2 typed methods to get the value: public T valueInObject(Object obj)

Re: Set case insensitive unique index with ERXMigrations

2017-03-27 Thread Samuel Pelletier
Hi Maik, Works great for english but usually not enough for french or other languages with accents. For example french Canadians expect case insensitive search and ordering to consider all the variants of e (eEéÉèÈêÊëË) equals same for c and ç, etc. This varie with language and I think even

Re: Set case insensitive unique index with ERXMigrations

2017-03-26 Thread Samuel Pelletier
Hi Jeff, The case insensitivity of the index should not impact the performance. The number of indexes and their size will as the server need to insert the new value in all of them during an insert. As there is no standard way for specifying case insensitivity (not even to define case

Re: ERXWOConditional - where does it get installed?

2017-03-14 Thread Samuel Pelletier
nditionInComponent(WOComponent wocomponent) { >return conditionValue; > } > } > > > > >> On Mar 14, 2017, at 9:39 AM, Samuel Pelletier <sam...@samkar.com >> <mailto:sam...@samkar.com>> wrote: >> >> Hi, >> >>

Re: ERXWOConditional - where does it get installed?

2017-03-14 Thread Samuel Pelletier
Hi, If you use inline bindings with ONGL, the class WOHelperFunctionTagRegistry registers classes mapped to tag WOHelperFunctionTagRegistry.registerTagShortcut("ERXElse", "else"); WOHelperFunctionTagRegistry.registerTagShortcut("ERXWOConditional", "if");

Re: WOWODC17?? a little OT

2017-01-19 Thread Samuel Pelletier
Nobody wants to organize it in Europe? I'm not sure Pascal want to engage in this project and I have a divorce to complete... You now know why the WO Community project stalled last fall. I know the Montréal event manager can help someone to organize it in Europe. Samuel > Le 19 janv. 2017 à

Re: Slow partial ajax requests (and perhaps a solution)

2017-01-19 Thread Samuel Pelletier
Hi René, My guest is the InputFieldComponents is doing redundant computations in getter methods used in the HTML parsing. If you move all the validation logic and save the results in variables in the appendToResponse and make sure the entire component is refreshed by the Ajax container, you

Re: Storing Session ID in Cookie And Multiple Browser Windows

2017-01-12 Thread Samuel Pelletier
Hi, Cookies are shared per browser instance so it is not possible to have distinct sessions inside a single browser. You can uses different browser and they will have their own sessions so if you need 2 simultaneous sessions, you can use a window in FireFox and Chrome for example. WOComponent

Re: ERAttachment "db" storageType....Problem

2017-01-10 Thread Samuel Pelletier
Hi, If you use the component provided to upload attachments, everything is linked automatically. An exemple using an AjaxUpload in a user edit page: If you create then programmatically, you will get an ERAttachement EO that you need to assign to your "Master" object attachement relationship.

Re: dcevm

2016-12-13 Thread Samuel Pelletier
Ted, This official release includes the fix to reset the validation cache found last august. Remaining changes are to support other frameworks. Samuel > Le 12 déc. 2016 à 13:06, Theodore Petrosky a écrit : > > is anyone using hotswap-agent-0.4.0-SNAPSHOT > > it looks

Re: excel dates

2016-11-29 Thread Samuel Pelletier
Hi, The Apache POI library will convert your java Date values directly if you use the setValue(java.util.Date value) or setCellValue(java.util.Calendar value). You can also specify a formatter for the cell to control how Excell will display the date. POI is very easy to use to create XLS or

Re: Multi-tenant Postgres support with EOF ?

2016-11-25 Thread Samuel Pelletier
Josef, Personally, I use a single schema and connection to the database with the object representing the current tenant in the session and put all the fetch logic in that class that will add the required filtering qualifier. This way of doing things allow a single instance to easily serve

Re: macOS Sierra Occasionally Very Slow

2016-11-21 Thread Samuel Pelletier
Hi, This limit and many others are adjustable with the sysctl command and the /etc/sysctl.conf file read at boot time. On my 10.11 workstation, kern.ipc.somaxconn (number of connection allowed) is 128 but I read that the freebsd kernel allows 1.5X before refusing the connections, darwin may

Re: problem is maintain checkbox status while doing pagination

2016-11-08 Thread Samuel Pelletier
You can also use an AjaxObserveField around the list to update async. Also, I think you need ERXDisplayGroup, I thing WODisplayGroup clear the selection on page change. Samuel > Le 8 nov. 2016 à 11:51, Chuck Hill a écrit : > > You need to use a form submission to change

Re: AIX adaptor errors

2016-11-04 Thread Samuel Pelletier
Michael, I do not think there is without a major code refactoring. Anyway, I do not think this make a big difference for an app server. You can also skip the WO Adaptor and use mod proxy, there was some presentations in the last WOWODCs about this. Samuel > Le 4 nov. 2016 à 00:08, Michael

Re: id uuid type

2016-10-25 Thread Samuel Pelletier
Hi Theodore, Can you be more specific about the problem you experience ? Any errors or description of wrong behaviour can help a lot here. Samuel > Le 23 oct. 2016 à 21:33, Theodore Petrosky a écrit : > > I spent the day chasing my tail. If I use the new uuid type for

Re: Best charting?

2016-10-19 Thread Samuel Pelletier
Ken, You may want to look at d3, a javascript library for data visualisation with many widgets. It is like jQueryUI but specialized for data display. Search d3 yourGraphType in google or explore the d3 sample page. There are few very sharp commercial libraries I looked into but never used. I

Re: quick followup: ERXExistsQualifier blocks *all coordinators* even before a SELECT?!?

2016-10-15 Thread Samuel Pelletier
Hi OC, You may also try to fetch without the exists qualifier and apply it in memory on the fetched objects to see if the locking will append too. I looked a bit into the code and there is at least a global lock involved in the execution, EOModel._EOGlobalModelLock. These are in methods to get

Re: WORedirect with a known MIME type?

2016-10-10 Thread Samuel Pelletier
Hi OC, The mime type of the final file is sent by the final web server. The redirect simply tell the browser to get the content elsewhere and does not define it's type. In Apache, the mime type sent is defined in a mime.types file in the conf directory. The matching is based on the file

Re: slack question

2016-10-05 Thread Samuel Pelletier
Hi, I think the list is better for questions and slack for discussion. Discussions about the future, others subjects than WO pertinent to the community, beer, etc are better suited in Slack I think and have no interest for long term indexing and search. Slack group the message in discussions

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread Samuel Pelletier
OC, Did you created the M:N relationship using the modeler or you created it manually ? These are tricky to correctly configure. Your situation may be caused by an improper flattened relationship settings. The flattened relationships should have nothing checked in the Advanced pane of the

Re: Invisible and invalid char in textfield

2016-09-13 Thread Samuel Pelletier
quot;, "”); > > … and one example of stripping every control character, except for CR, LF and > TAB: > > String.replaceAll("[\\p{Cntrl}^\r\n\t]+", ""); > > I am sure NSString has methods for that... > > > Cheers, > Flavio > &g

Invisible and invalid char in textfield

2016-09-13 Thread Samuel Pelletier
Hi, I just encountered a strange error where a user managed to put a DEL char inside a text field. This char raise an SQL Exception in the server. First, I really would like to know how they manage to do this ! I do not even know how to put a DEL (code 127) inside text with the keyboard. I had

Re: EO awake ??

2016-09-12 Thread Samuel Pelletier
Hi all, I think there is another condition to met for the automatic creation. The primary key of the source should also be the foreign key to the destination entity. Own destination means that the destination object is owned by the source and should be deleted when removed from the

Re: EO awake ??

2016-09-06 Thread Samuel Pelletier
Hi Ted, The current execution of the code you posted is this: 1- The object is created and inserted 2- Awake from Insertion is called and a Security is created (it was probably null) 3- SetSecurity is called by Person.createPerson method with the provided Security. So, it the Security

Re: Deadlocks, editing context locking and network tasks

2016-09-05 Thread Samuel Pelletier
Mark, I discover some useful classes in the er.extensions.concurrency package inside ERExtensions. Bases on these my current pattern for background tasks is this: ERXApplication._startRequest(); ec = ERXEC.newEditingContext(parentObjectStore); try { do the job without worrying about

Adding allowed attribute to built in element validation

2016-08-23 Thread Samuel Pelletier
Hi, Anyone knows how to add binding to the validation and auto complete in the WO editor for built in element like the textfield ? I use the placeholder binding to add this attribute to the element but this confuse the editor that no longer auto complete after an element like this:

  1   2   3   >