Re: Setting: er.extensions.ERXDatabaseContextDelegate.tolerantEntityPattern Property

2021-09-13 Thread Johann Werner via Webobjects-dev
Hi Kwasi, your value of that property is wrong. The description of it says it should be a regular expression. So for your example the property should be: er.extensions.ERXDatabaseContextDelegate.tolerantEntityPattern=^ER(Database)?Attachment$ jw > Am 14.09.2021 um 01:11 schrieb Kwasi O-Ahoofe

Re: How often do you bounce your apps?

2020-08-08 Thread Johann Werner via Webobjects-dev
Hi Aaron, as you mentioned WODynamicElements and documentation about them is very sparse as well being a special beast, let me say some words about them: WOComponent components being the easiest to grasp (and probably most used) represent a WO tag within your HTML templates i.e. every time a pa

Re: Postgress double connections

2020-04-25 Thread Johann Werner via Webobjects-dev
Hi Michael, as far as I remember that is the adapter creating an additional connection to retrieve the list of available data types that (often?) is not closed due to a bug. You can alter your connection string by adding the param useBundledJdbcInfo: dbConnectURLGLOBAL=jdbc:postgresql://your-d

Re: Null / @NotNull Annotations

2019-12-11 Thread Johann Werner via Webobjects-dev
Hi Michael, you could create your own EOGenerator templates to include that annotation. The templates can be found within WOLips sources https://github.com/wocommunity/wolips/tree/master/wolips/core/plugins/org.objectstyle.wolips.eogenerator.core/templates

Re: Load Balancing and Caching

2019-04-20 Thread Johann Werner
Hi Jérémy, you could achieve that by Wonder means with ERJGroupsSynchronizer that has a postRemoteNotification method. If you receive that notification you would then clear your Map objects. jw > Am 18.04.2019 um 08:35 schrieb Jérémy DE ROYER : > > Hi all, > > After the presentation of Denn

Re: ERRest and apache Commons Lang

2019-03-27 Thread Johann Werner
Hi Samuel, as it is a direct dependency of json-lib-2.4-jdk15.jar used by ERRest it would probably be the best to add it to ERRest instead of Wonder-wide ERJars. Usage of commons-lang3 instead of the old commons-lang should be encouraged. jw > Am 27.03.2019 um 00:02 schrieb Samuel Pelletier :

Re: ERProfiling and Java 8

2019-03-01 Thread Johann Werner
Hi Paul, has been some time I used ERProfiling to hunt down bottlenecks. I just fired up one project with it and it seems to work well. Only the activated heat map seems to break some layout and marker elements show up that I can’t remember of having seen in the past. But this is with Java 8 +

Re: WebObjects and prototype.js

2019-01-20 Thread Johann Werner
> Am 19.01.2019 um 20:46 schrieb Michael Schmiedgen : > > Hi Mark, > >> if upgrading will conflict with Wonder and WebObjects. Has anyone used >> prototype.js 1.7.3 along side with Wonder and WebObjects? Thank you and > > We are using 1.7.3 for years with no known problems. Where is a pull r

Re: WebObjects and prototype.js

2019-01-18 Thread Johann Werner
Hi Mark, the current Wonder uses version 1.7.2 of prototypejs. I am not sure but I think updating to 1.7.3 revealed some problems with parts of Wonder javascript code but this has been long ago so I can’t remember what these problems were. You could first try if 1.7.2 already resolves your issu

Re: To-one relationship with propagating primary key

2019-01-13 Thread Johann Werner
> Am 13.01.2019 um 18:37 schrieb Ricardo Parada : > > When I create A will it have a B set in the to-one? I think so. It is a lng time ago I used key propagation though. > > Ricardo > >> On Jan 13, 2019, at 12:35 PM, Johann Werner wrote: >> >> Hi Ri

Re: To-one relationship with propagating primary key

2019-01-13 Thread Johann Werner
ing your own B. jw > Am 13.01.2019 um 13:07 schrieb Ricardo Parada : > > Hi Johann, > > My workaround is to model the relationship as a to-many propagating the > primary key. It’s less elegant but at least it works. > > Thanks > Ricardo > >> On Jan 13,

Re: To-one relationship with propagating primary key

2019-01-13 Thread Johann Werner
Hi Ricardo, when using pk propagation I vaguely remember that EOF is automatically creating an instance of the dependent entity. Thus when you create a second object B and set the relationship to A the auto created object is left without connection. jw > Am 13.01.2019 um 12:44 schrieb Ricardo

Re: EOEnterpriseObjectClazz with interface

2018-11-20 Thread Johann Werner
m is > saying it makes that possible, but I’m just not understanding how that works. > > Thanks again. Tschüß! > Mark > > From: Johann Werner > Date: Monday, November 19, 2018 at 1:37 AM > To: "Morris, Mark" > Cc: "Webobjects-dev@lists.apple.com"

Re: EOEnterpriseObjectClazz with interface

2018-11-18 Thread Johann Werner
Hi Mark, have a look at BugTracker and its dependent framework BTBusinessLogic. That should you give some ideas. There are some more apps/frameworks in Wonder using that pattern, just have a look at the type hierarchy of the EOEnterpriseObjectClazz class (in Eclipse right click on the class nam

Re: Java compatibility

2018-10-01 Thread Johann Werner
The compatibilities are listed in the github Wiki: https://github.com/wocommunity/wonder/wiki For Java 6 you would have to use Wonder 6 as Wonder 7 uses a lot of libs that are not compatible with Java 6 anymore. jw > Am 01.10.2018 um 05:59 schrieb ocs@ocs : > > Hi there, > > is is possible

Re: Bug in NSArray et. al. ?

2018-05-14 Thread Johann Werner
Hi Markus, aligning isEmpty to mimic count in KVC context is a logic step but I would advise against it as changing that behavior could silently break code of many projects. A far better implementation could have been to route all KVC calls to the NSArray object itself and introduce something

Re: New JS stuff in Wonder 7 ?

2018-02-27 Thread Johann Werner
Hi Ken, did you look at the release notes? https://github.com/wocommunity/wonder/releases That should give you a rough overview of most changes. Afterwards you can have a look at the migrations page if you need some assistance to bring your proj

Re: EOGenerator problem

2018-02-11 Thread Johann Werner
Hi Jeff, the (very) old EO templates used to use log4j for logging but this was replaced by slf4j in the current ones some time ago. Perhaps you have a lib problem there? Passing a null value to e.g. the debug method of slf4j should be no problem as it converts that to the string „null“ before

Re: Small issue when building Wonder7 javadoc -> ${wonder-version.version} not properly used

2017-11-30 Thread Johann Werner
ok.pages > [javadoc] writing for key: er.mootools.directtoweb.components > [javadoc] writing for key: er.neutral > [javadoc] 32 warnings > [echo] d2wkeys javadoc page generation finished > > BUILD SUCCESSFUL > Total time: 1 minute 21 seconds > ruggiero@gugus_$ &g

Re: Small issue when building Wonder7 javadoc -> ${wonder-version.version} not properly used

2017-11-28 Thread Johann Werner
Hi Markus, how do you build the docs? Looking at the ant files this is how it is supposed to be done: $ cd […]/Wonder $ ant docs The target „docs“ is defined within the build.xml in the root directory of Wonder. From there it points to the file Build/build/build-doc.xml and its target „api“.

Re: Google maps

2017-11-07 Thread Johann Werner
Hi Stavros, have a look at CCGoogleMap. You will find it in framework ERCoolComponents. jw > Am 07.11.2017 um 16:23 schrieb Stavros Panidis : > > Hi list, > > I worked with AjaxGMap so far but after installing Wonder 7 I see that is > missing. > > Is there another solution to work with Goog

Wonder 7 is out!

2017-11-04 Thread Johann Werner
Hi everyone, for a long time the next big Wonder iteration has been worked on and probably used or tested by many of us already. Today the waiting is over and Wonder 7.0 has got its official status. That release focuses on removal of deprecated elements, clean up of lot of things. But most imp

Re: Development on 1.8 vs Target system 1.7

2017-10-27 Thread Johann Werner
Hi André, if you are using Wonder7 the prerequisite is Java 8. So if you are bound to an older Java version you would have to go with Wonder6. jw > Am 27.10.2017 um 17:56 schrieb André Rothe : > > Hi, > > I have a development environment, which runs on Java 1.8. But my target > environment

Re: ERXFileUtilities rendering file name's type extension unusable

2017-07-24 Thread Johann Werner
If the two dots are meant to prevent switching to a parent directory you could change the regex to something like fileName.replaceAll("(/|^)\\.\\.(/|$)", "$1$2“); So this would only match two dots if they entirely describe a directory name and would match e.g. /var/../etc/foo /abc/.. ../foo b

Re: uploading with ERAttachment ???

2017-06-14 Thread Johann Werner
Hi Ted, you can easily serve the HTML file back to the client by creating a ERXResponse object and setting the content to the content of the file. The problem comes with the referenced images as your /clientFiles/attachments/e/f/e/4 directory is (probably) not within your webserver’s htdocs but

Re: Ant Build error

2017-06-06 Thread Johann Werner
Never saw this error before. What is on line 83 in your build.xml? Do you use a custom / old one or do you have the most recent from the Wonder templates? jw > Am 02.06.2017 um 16:49 schrieb ece : > > Hello all > > macOS: > When I tried to build application from within eclipse I get the follo

Re: DirectActions only (local and private network)

2017-06-01 Thread Johann Werner
You can check for request().remoteHostAddress() in your direct action and return a 403 code if it does not match 127.0.0.1 or a given set of IP adresses. > Am 01.06.2017 um 11:03 schrieb ece : > > We have a publicly reachable app with some direct actions that are needed for > maintenance tasks

Re: java 8 date

2017-05-27 Thread Johann Werner
> Am 27.05.2017 um 10:01 schrieb Paul Hoadley : > >> On 27 May 2017, at 4:21 pm, Theodore Petrosky wrote: >> >> If I select JavaLocalDate as the prototype then when I bring in a edit page >> with this propertyKey it shows only as a String in a ERD2WDisplayString >> component. I tried to crea

Re: ERJasperReports.Framework needs to be Updated

2017-05-09 Thread Johann Werner
The complete source code (with some exceptions) can be found at https://github.com/wocommunity/wonder/ > Am 09.05.2017 um 09:04 schrieb Kwasi O-Ahoofe : > > Where can I find the source for ERJasperReports.Framework to update to > latest version [ver. 6.3.1] of JasperReports? The current frame

Re: Compiling ERExtensions in Sierra no worky

2017-05-08 Thread Johann Werner
> Am 08.05.2017 um 14:30 schrieb Calven Eggert : > > Hmmm, do you mean ERExtensions? I don’t have ERXExtensions in my build path. yes > > >> On May 8, 2017, at 8:24 AM, Johann Werner wrote: >> >> The reported constructor method signature >> >>

Re: Compiling ERExtensions in Sierra no worky

2017-05-08 Thread Johann Werner
The reported constructor method signature (String, String, String, String, int, boolean, boolean) does only exist in Wonder’s variant of WOCookie and not in the original WOCookie class. Thus you probably have some sort of class ordering problem in your project. Check if ERXExtensions comes befo

Re: Is Wonder's javadoc down?

2017-05-02 Thread Johann Werner
ly the same as on >> the old Jenkins. (I hope this attachment makes it through the mailing list >> server.) >> >> Maik >> > >> >> >> >>> Am 28.03.2017 um 15:07 schrieb Johann Werner : >>> >>> Hi Maik, >>> >

Re: Is Wonder's javadoc down?

2017-03-28 Thread Johann Werner
Hi Maik, can you tell us what Jenkins config you did? Perhaps screenshots of the job configuration page? You should not need any special plugins to create the Javadocs, just the existing Wonder build.xml, ant and the correct job setup ;-) jw > Am 22.03.2017 um 01:16 schrieb Maik Musall : > >

Re: ERXWOConditional - where does it get installed?

2017-03-21 Thread Johann Werner
in a ThreadLocal or in the >> context.userInfo(). But don’t ever add state to a WODynamicElement subclass. >> >> Chuck >> >> From: on behalf >> of Johann Werner >> Date: Tuesday, March 21, 2017 at 2:19 PM >> To: Ricardo Parada >> Cc: WebObjectsDev

Re: ERXWOConditional - where does it get installed?

2017-03-21 Thread Johann Werner
Hi Ricardo, you are ignoring one very important aspect of dynamic components: they must be thread-safe! As soon as you are holding local values you will head to a serious mess. In your „manual“ tests of course you probably won’t ever encounter concurrency problems as long as you are not doing

Re: jenkins.wocommunity.org has moved

2017-03-03 Thread Johann Werner
Cool :-) Thanks Maik! > Am 03.03.2017 um 12:05 schrieb Musall, Maik : > > All right, Jenkins is at a new location. I checked with WOLips 4.4 and 4.6 > updating from Eclipse and it seems to work fine. Please contact me directly > if you see anything wrong. > > Site is https only, by the way (

Re: EO awake ??

2016-09-12 Thread Johann Werner
ated automatically by EOF. I am >> pretty sure that is what is happening and then you are creating and >> assigning a second one. >> >> Chuck >> >> >> From: on behalf >> of Theodore Petrosky >> Date: Tuesday, September 6, 2016 at 10:08 A

Re: EO awake ??

2016-09-06 Thread Johann Werner
Hi Ted, why not just check if there is already a value in your awakeFromInsertion? public void awakeFromInsertion(EOEditingContext editingContext) { super.awakeFromInsertion(editingContext); if (security() == null) { setSecurity(Security.createSecurity(editingConte

Re: UUID question

2016-06-30 Thread Johann Werner
> Am 30.06.2016 um 13:06 schrieb Musall Maik : > > By the way, there is a bad NPE in the new UUID code that prevents object > insertion completely for tables that don't use a prototype for primary key. > Could please anyone merge the fix quickly? Done :-) > > https://github.com/wocommunity/w

Wonder 6.1.5

2016-06-20 Thread Johann Werner
Hi list, short note that the WOCommunity Jenkins server just gave birth to the new Wonder 6.1.5 version which can be inspected at https://github.com/wocommunity/wonder/releases where you will find changelogs and artifacts. Big thanks to Paul and Henrique for their help in preparing the release

Re: SLF4J primer?

2016-04-20 Thread Johann Werner
Hi Paul, I think the wiki page https://wiki.wocommunity.org/display/documentation/Wonder+Logging explains it pretty well. If there are any questions left feel free to ask / modify the wiki. jw > Am 21.04.2016 um 07:28 schrieb Paul Hoadley : > > Hey Johann, > > Can you tell me how Wonder 7’s

Re: Issues with ERXArrayUtilities.arrayMinusArray() and arrayMinusObject()

2016-04-15 Thread Johann Werner
Hi Paul, > Am 16.04.2016 um 00:55 schrieb Paul Hoadley : > > Hi Johann, > > On 15 Apr 2016, at 11:53 pm, Johann Werner wrote: > >> do you have an example where ERXEOControlUtilities.validateUniquenessOf() >> does not work because of ERXArrayUtilities.arrayMinusO

Re: Issues with ERXArrayUtilities.arrayMinusArray() and arrayMinusObject()

2016-04-15 Thread Johann Werner
Hi Paul, do you have an example where ERXEOControlUtilities.validateUniquenessOf() does not work because of ERXArrayUtilities.arrayMinusObject()? What is the exact error? I did a quick test in my code and could not see wrong outcome. Looking at the code change before that commit: public stati

Re: UUID data type

2016-03-22 Thread Johann Werner
Hi Samuel, what about using the UUID class [1]? jw [1] https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html > Am 22.03.2016 um 15:03 schrieb Samuel Pelletier : > > Hi, > > I'm working on adding uuid support as primary key with a prototype and ERRest > support. Actually, my impleme

Re: very old app (no wonder) crashes with _EOGlobalModelLock:java.lang.NoSuchFieldError

2016-02-10 Thread Johann Werner
Hi Markus, perhaps a mix of different WO versions? That old app using WO 5.3, 5.2, … and installed on the OS X machine 5.4? The field _EOGlobalModelLock comes from the WO jars or should be as it is not found apparently. jw > Am 10.02.2016 um 16:24 schrieb Markus Ruggiero : > > A customer of

Re: Wonder 7: NoClassDefFoundError: com/webobjects/jdbcadaptor/FrontbasePlugIn

2016-01-06 Thread Johann Werner
Hi Samuel, seems that the principalClass value for the FrontBasePlugIn was wrong. A fix has been committed to master. jw > Am 07.01.2016 um 01:14 schrieb Samuel Pelletier : > > Hi, > > I moved to the master branch of Wonder and upgraded to Java 1.8. When I try > my app, they stop at startup

Re: Help with a Wonder_7 change to NSArray

2016-01-03 Thread Johann Werner
Hi Gavin, > Am 03.01.2016 um 23:54 schrieb Gavin Eadie : > > I’ve been away from my WebObjects project for nearly a year and returned to > it to move it from SourceForge to GitHub. In the process I upped to the > latest Wonder, Eclipse and Java 8. I got surprising few places that I needed >

Re: ERRest response header and encoding

2015-12-23 Thread Johann Werner
Hi Matteo, I created a pull request for that. You could give it a try and report back if it suits you: https://github.com/wocommunity/wonder/pull/718 jw > Am 22.12.2015 um 19:05 schrieb Altera WO Team : > > Hello list, > > i'm accessing a WOnder application that exposes some stuff via ERRes

Re: Vector graphics in Flying Saucer / ERPDFWrapper

2015-11-30 Thread Johann Werner
Hi Ricardo, you should create a branch off from the official master branch and make your changes on that one. How to do that depends on the way you interact with git (e.g. git command line, Tower, SourceTree, …). Then you can create your pull request against the master branch. If the flying sa

Re: Wrong url generation for frameworks

2015-11-26 Thread Johann Werner
Hi Frank, you probably have an outdated build.xml file in your project. Within the ant target build.woapp the woapplication task takes an attribute „frameworksBaseURL“ that is either not set or set incorrectly in your setup. From one of my build.xml I have: signature.asc Description: Message

Re: WOLips 4.4 Installation Question - how do you do it?

2015-09-29 Thread Johann Werner
Hi Barry, that page in the wiki should hold all needed info: https://wiki.wocommunity.org/display/WOL/Install+WOLips+with+Eclipse+Update+Manager?src=search jw > Am 29.09.2015 um 19:50 schrieb Barry Starrfield : > > A basic question - how do I install the 4.4 version of WOLips in Eclipse > Ma

Re: Preferred way for fetching with given SQL select statement?

2015-09-24 Thread Johann Werner
Hi Markus, I did not clearly understand what you are exactly trying to achieve. If you just need to run the vendor specific SQL to get a list of primary keys that you can then use to fetch the EOs you want you could do something like EOEditingContext ec = ERXEC.newEditingContext(); EOEntity en

Re: Building a qualifier with ERXKey.between(startDate, endDate)

2015-06-24 Thread Johann Werner
> Am 24.06.2015 um 20:28 schrieb Ruggentaler, JR : > > Yes and no. We use EOGenerate (gap pattern) and ERXKey in our apps to take > advantage of the nice Wonder features and eclipse code completion. The > ERXKey.between() method calls ERXQ.between() which builds and returns a > ERXAndQualifier

Re: Components binding with custom object

2015-05-29 Thread Johann Werner
What is your HTML? You need to wire up your binding with the actual method/ivar of your component A: … … and in A.java: public MyAccountClass account = …; > Am 29.05.2015 um 13:25 schrieb HOUNKPONOU Ronald > : > > I forgot the image. > > 2015-05-29 12:23 GMT+01:00 HOUNKPONOU Ronald : >

Re: Wonder job stale on jenkins.wocommunity.org?

2015-05-28 Thread Johann Werner
Hi Paul, the Wonder build used to be triggered every half hour. But that has been switched off. Unfortunately the current setup on the Jenkins server does not allow to trigger a build if there has been new commits found. Perhaps David can help out? I think the Jenkins job uses his WOJenkins. j

Re: App Security Problems

2015-05-28 Thread Johann Werner
Hi Vineetha, a form will always send the input values either in the URL for GET requests or as body request for POST. By that you will always be able to see your data in Firebug, that’s how form submission works in the end. To prevent others to intercept your credentials the way to go is to use

Re: Java 8 optionals

2015-05-25 Thread Johann Werner
Hi Mark, NSKeyValueCoding.DefaultImplementation is a static class which renders it quite difficult to modify or replace some functionality. One way to do so would be to reimplement the class with your modifications and put that prior to the original class on your build path so that it is loaded

Open D2W pull requests seeking help

2015-05-19 Thread Johann Werner
Hi all, we currently have a couple of open pull requests for Wonder regarding D2W topics. In the course of getting pull requests merged or closed without endless waiting we need D2W skilled people who could take a look at those pull requests and leave some comments about usefulness/corrections/

Wonder 6.1.3 is out

2015-04-24 Thread Johann Werner
Hi list, in time for WOWODC Wonder 6.1.3 has been released. Point your browser to the release page on github https://github.com/wocommunity/wonder/releases to get everything you need: a changelog (thanks Paul) and all artifacts you would get from the wocommunity jenkins server. Thanks for all

Re: Wonder 6.1.1 is out

2015-04-20 Thread Johann Werner
. Is there a planned Wonder release that > includes the fix to issue #615 > (https://github.com/wocommunity/wonder/issues/615)? And is the master branch > generally considered stable? > > Thanks in advance. > > Regards, > Bogdan Zlatanov > > If not, we'll h

Re: mystery deaths with deployed app

2015-04-07 Thread Johann Werner
> Am 08.04.2015 um 03:49 schrieb Timothy Worman : > > The JVM is /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk on Snow Leopard. > I have these two beauties waiting in the system.log. Java 8 is not officially supported on Snow Leopard. The system requirements page from Oracle states 10.8.3+

Re: joy - requested application not found

2015-04-07 Thread Johann Werner
Hi Tim, first thought: are all file permissions correct? Is your WO application running as the correct user (and then reevaluate the first question)? jw > Am 07.04.2015 um 19:20 schrieb Timothy Worman : > > I restarted our app server this morning - not a good choice it seems. I was > diagnos

Re: joda LocalDateTime

2015-01-09 Thread Johann Werner
Hi Jeff, I can remember that there was a fix for FrontBase prototypes some time ago. A search within the commit messages reveals a commit from Samuel dating back to 21.11.2013 where the prototype was changed from TIMESTAMP to TIMESTAMP WITH TIME ZONE. What type are your table columns in FrontBa

Re: Qualifier clause with concatenated fields

2014-12-04 Thread Johann Werner
derived attributes (see page 39 of https://developer.apple.com/legacy/library/documentation/WebObjects/UsingEOModeler/UsingEOModeler.pdf) jw > Am 04.12.2014 um 11:22 schrieb Raymond NANEON : > > Hi List, > > I would like to know if it is possible in EO qualifier to do something like > that E

Re: potential cross site scripting issue

2014-12-03 Thread Johann Werner
Hi René, > Am 03.12.2014 um 16:39 schrieb René Bock : > > Hi, > > during penetration test of his WebObjects servlet installation, one of our > customers found a potential XSS issue: > > Deployment environment: tomcat application server + apache mod-proxy > > Consider the following request: >

Re: limiting a textfield to numbers

2014-11-11 Thread Johann Werner
Hi Ted, if your „problem“ is related to a specific textfield then you can add a numberformat binding to that WOTextField. This should give you a validation exception if your user entered a non-number value. jw > Am 08.11.2014 um 06:04 schrieb Theodore Petrosky : > > I’ve never written a vali

Re: Component caching?

2014-11-07 Thread Johann Werner
Hi Mark, do you cache the binding values within your component? When using stateless components you need to clean any local variables yourself within the reset method. jw > Am 07.11.2014 um 10:33 schrieb Mark Wardle : > > Hi. I’m generating a PDF report : > > WOCompon

Re: slow response of pdf

2014-11-02 Thread Johann Werner
Hi Frank, you really shouldn’t deliver your PDF file that way because by this you will load the file completely into memory. Currently your PDF file is only 10MB but can you be sure that it will have that size all the time? What if your PDF file will be 100MB and 10 users concurrently click you

Re: mod_proxy as mod_WebObjects alternative [Was: Re: Yosemite]

2014-10-26 Thread Johann Werner
Without wotaskd you will have to start your instances with all necessary program arguments yourself, i.e. on OS X you have to write some launchd scripts. Does that solve your problem? jw Am 26.10.2014 um 17:13 schrieb Tom Woteki : > All: > > Contrary to Chuck’s remark, I was not able to unlo

Re: Best way to use raw SQL

2014-10-23 Thread Johann Werner
Hi Thomas, look at ERXJDBCUtilities and ERXEOAccessUtilities for plenty of methods like: ERXJDBCUtilities.executeUpdate(EOAdaptorChannel channel, String sql) ERXEOAccessUtilities.evaluateSQLWithEntity(EOEditingContext ec, EOEntity entity, String sql) There should be something suiting your needs

Re: Static resources in CSS file while using Linux as dev platform

2014-10-02 Thread Johann Werner
Hi Christoph, as Ralf said "use a path relative to the css file“ so you should try: body { background: url("../gfx/background.jpg") repeat; } jw Am 02.10.2014 um 10:58 schrieb Christoph Wick : > Hi Ralf, hi list, > > thanks for your answer. > > Of course, I'm using wonder. > > But it do

Wonder 6.1.2 is out

2014-08-01 Thread Johann Werner
Hi list, it has been some time since the last release but finally Wonder 6.1.2 is officially out. Point your browser to the release page on github https://github.com/wocommunity/wonder/releases to get everything you need: a changelog (thanks Paul) and all artifacts you would get from the wocomm

Re: New Wonder release?

2014-07-27 Thread Johann Werner
Hi Paul, I can have a look at it in the next couple of days. Most work is to look through all commits since 6.1.1 and write down the changelog. jw Am 28.07.2014 um 03:09 schrieb Paul Hoadley : > Hello, > > Wonder 6.1.1 was released on 10 February. I'd be keen to see a 6.1.2—there > are som

Re: ERXDisplaygroup setSelectedObject problem

2014-03-04 Thread Johann Werner
Hi Frank, the jar files on jenkins were not up to date with the tip of master where a bug with ERXDisplayGroup has been fixed. I just triggered a new build on the jenkins server so you should be able to get updated jars in a couple of minutes. Alternatively the 6.1.1 release from the github rel

Re: "ERRest Application" project--still available?

2014-02-21 Thread Johann Werner
Hi Scott, welcome back. You need to use the WOLips37Community edition or just use the shortcut http://wocommunity.org/wolips/3.7/current as update site. Then you should see the ERRest Application template. jw Am 21.02.2014 um 18:52 schrieb Scott M. Neal : > > Hello everyone, > > I'm

Re: Wonder 6.1.1 is out

2014-02-20 Thread Johann Werner
. jw Am 20.02.2014 um 14:24 schrieb Raymond NANEON : > Hi Johann, > > thanks but why didn't add '/' in your code by default to show server files > automatically? There was a constraint? > Envoyé depuis iCloud > > Le 20 févr. 2014 à 12:48, Johann Werner a écrit

Re: Wonder JavaMonitor file browser

2014-02-20 Thread Johann Werner
Am 20.02.2014 um 14:03 schrieb David Avendasora : > > On Feb 20, 2014, at 6:48 AM, Johann Werner wrote: > >> Hi Raymond, >> >> the file browser in JavaMonitor still works. When the listing is displayed >> the first time the directory to show is undefined t

Re: Wonder 6.1.1 is out

2014-02-20 Thread Johann Werner
n server HDD to select app path like old > JavaMonitor? > If not, can You add it in the next version of Wonder JavaMonitor? > i.e : > Wonder JavaMonitor > > Old WO JavaMonitor > > > Thanks for your help > > Envoyé depuis iCloud > > Le 10 févr. 2014 à 16:24, Joh

Re: in server exception strings

2014-02-18 Thread Johann Werner
Am 04.02.2014 um 15:04 schrieb John Pollard : > Hi List, > > For deny delete rules, exception messages contain embedded html formatting, > for example: > > Cannot delete this Organisation. You should first delete items in its > Blah Blahs Related Objects > > As I present these in a Java Clie

Wonder 6.1.1 is out

2014-02-10 Thread Johann Werner
Hi list, it has been a long time but finally Wonder 6.1.1 is officially out. Point your browser to the release page on github https://github.com/wocommunity/wonder/releases to get everything you need: a changelog and all artifacts you would get from the wocommunity jenkins server. Beginning wi

Re: Weird PK generation failure

2014-02-07 Thread Johann Werner
Hi Maik, as this table seems to be a join-table chances are high that on the relationships to that table in your EOModel you still have „Propagate primary key“ active if Entity Modeler did create that table. jw Am 07.02.2014 um 11:37 schrieb Musall Maik : > Hi, > > I have a weird case where

Re: WOLips for Eclipse 4.3.1

2014-02-05 Thread Johann Werner
Am 04.02.2014 um 16:37 schrieb Frank Cobia : > I will give this a try and see if that fixes things for me. I am not sure > what sashWeights does, but I am not sure that is the problem. I have tried > doing similar things to this in the past and it would work for a while and > then go back to t

Re: Including Fonts into PDF using ERPDFGeneration

2014-01-30 Thread Johann Werner
Hi Christoph, that’s how I create a PDF using ERPDFGeneration with custom fonts: PDFTemplate pdfPage = pageWithName(PDFTemplate.class); NSMutableDictionary config = new NSMutableDictionary(); config.takeValueForKey(new NSArray("Fonts/MyFont.ttf“, "Fonts/MyOtherFont.ttf"), "fonts"); NSData pdf =

Re: JMS in webobjects

2014-01-20 Thread Johann Werner
Hi Butchi, in Wonder there is the ERChangeNotificationJMS framework using JMS to synchronize instances. I would recommend using the ERJGroupsSynchronizer framework though that uses JGroups (http://www.jgroups.org). It performs better at higher loads and is more widely used in the community I th

Re: WO 5.3 vs WO 5.4 Schema Synchronization in Wonder

2014-01-14 Thread Johann Werner
Am 14.01.2014 um 15:37 schrieb David Avendasora : > I see that the various Wonder JDBC plugins still use the older, deprecated > EOSynchronization API instead of the new EOSchemaSyncronization stuff in > WO5.4. > > I know we used to maintain WOnder compatibility with WO 5.3, but now that > tha

Wonder(ful) logging

2014-01-14 Thread Johann Werner
Hi all, some time back there was a discussion on github [1] and during last WOWODC about how logging could and should be done in Wonder and dependent applications/frameworks. So for those interested there is now a new wiki page [2] about that topic. For those not interested: nothing will subst

Re: processRecentChanges makes me sad

2013-12-04 Thread Johann Werner
Hi Hugi, a simple – though perhaps not as elegant as you want – solution would be to create your own EO superclass and override init() (from ERXGenericRecord) where you put your logic: @Override protected voit init(EOEditingContext ec) { super.init(ec); if (this instanceof TimeS

Re: How to increase Session Time interval?

2013-10-31 Thread Johann Werner
Hi Butchi, you could set the timeout interval directly on the session object like in your login method [1]. This enables you to decide per session how long that time interval should be based on user rights or other circumstances. Or if you want to change it generally you could change the defaul

Re: jgroups synchronizer still used?

2013-08-25 Thread Johann Werner
The code needs only some very simple changes to work with jgroups >3.0 Am 26.08.2013 um 03:20 schrieb Dov Rosenberg : > The last version we updated to was 2.11.0 > > > I guess it really isn't the latest anymore > > > Dov Rosenberg > 407-310-8316 > d...@cfl.rr.com > > > On Aug 25, 2013, at

Re: java docs?

2013-08-22 Thread Johann Werner
It's a bug in the latest version of Jenkins. Am 22.08.2013 um 21:33 schrieb Theodore Petrosky : > I clicked the link in Ken's Wonderbar. are we down? > > http://jenkins.wocommunity.org/job/WonderIntegration/lastBuild/javadoc/? > > Status Code: 404 > > Exception: > Stacktrace: > (none) > >

Re: [Ajax] - Returning a file after ajaxlongresponse

2013-08-05 Thread Johann Werner
You could return an ERXRedirect pointing to a DirectAction or WOComponent that initiates your download. Am 05.08.2013 um 09:44 schrieb Dev WO : > Hello, > > I'm having some trouble trying to return a file after an ajaxlongresponse. > > I'm currently have my callable task used through ajaxlong

Re: Handling of "value" binding on ERXSubmitButton changed

2013-06-26 Thread Johann Werner
Where is the pull request :-) Am 26.06.2013 um 22:49 schrieb Fabian Peters : > I got lucky and found the change that caused my problem: > > > Adding back the (empty) takeValuesFromRequest method to

Re: Background image in css for email from component

2013-06-26 Thread Johann Werner
Don't hardcode the hostname! As always there's a method for that in Wonder: String relativeUrl = … String absoluteUrl = ERXResourceManager._completeURLForResource(relativeUrl, null, context); jw Am 26.06.2013 um 22:18 schrieb Johnny Miller : > I would have a property like: > > myhost=http://

Re: WOWODC working groups and open labs -

2013-06-16 Thread Johann Werner
Am 15.06.2013 um 21:18 schrieb Pascal Robert : > For the working groups: > > - Documentation > - WOCommunity Web site and « marketing » > - Mobile with WO > - jQuery framework > - Cayenne and Wonder - Wonder / WOLips code organization (github, releases, …) - Roadmap for unit tests in Wond

Re: malformed bundle version number in deployment with Java 1.6

2013-06-06 Thread Johann Werner
Hi David, I vaguely remember that that warning does not necessarily mean the Java version number of your jars is wrong but the cfBundleVersion of the framework is not parseable (I think its in the Info.plist file of the framework). jw Am 06.06.2013 um 21:04 schrieb David Holt : > Hi all, >

Re: patch for wonders NSArray implementation

2013-06-06 Thread Johann Werner
Hi Oliver, you are right that the behavior is a little different in Wonder. I looked into that method that had been changed to the current form in April 2009: NSArray._findObjectInArray(…) is a private method so it cannot be called outside of NSArray which makes it easier to assess the implicat

Re: Sending 304 reponses

2013-06-06 Thread Johann Werner
Hi Tarun, the entry point for requests is ERXApplication.createRequest(…) that you could override in you application class. There you can access header values and decide to end the request without further computation by returning null. Another place would be ERXApplication.dispatchRequest(…) wh

Re: Size of fetched array

2013-05-27 Thread Johann Werner
Hi Thomas, you would use a fetch spec for that where you can set a limit. EOFetchSpecification fs = … fs.setFetchLimit(10); NSArray doubleJobs = ec.objectsWithFetchSpecification(fs); jw Am 27.05.2013 um 11:59 schrieb Thomas Grass (01SoftwareSolutions) : > Hello WO-Coders, > > I fetch objec

Re: checking device or platform

2013-05-22 Thread Johann Werner
the values in ERXBrowserFactory.parsePlatform what your iPhone sends as user-agent string and why the browser object is initialized with a different platform. If there is a bug, patches for wonder are welcome :-) jw > Envoyé depuis iCloud > > Le 22 mai 2013 à 04:40, Johann Werner a écrit : > >> Inst

Re: checking device or platform

2013-05-22 Thread Johann Werner
Instead of mySession().browser() you should preferably use browser() that ERXComponent provides. That's a little bit shorter and works also for sessionless pages. jw Am 22.05.2013 um 12:35 schrieb Raymond NANEON : > Hi List, > > I want to check the device or platform on which my app running,

  1   2   3   4   >