Re: JSConfirmPanel vs file download?

2022-08-31 Thread Michael Sharp via Webobjects-dev
Hi, Use ERXJSConfirmPanel. JSConfirmPanel uses a broken invokeAction implementation. Sharpy. > On 31 Aug 2022, at 11:34 pm, ocs--- via Webobjects-dev > wrote: > > Hi there, > > bumped into a weird problem. I allow users to download a file, pretty > standard code > > === > WOActionR

Re: is there a trick to know that a property of EO did change?

2020-05-24 Thread Michael Sharp via Webobjects-dev
ERXGenericRecord.changesFromCommittedSnapshot if (changesFromCommittedSnapshot().containsKey(MY_KEY)) { propertyDidChange(MY_KEY); } As mentioned by Aaron this could be wedged into overridden setters, validate methods or even worked into your eogen template if you wanted this behaviour model

Re: Maven builds and Generate Bundles

2019-03-06 Thread Michael Sharp
rmance (since I remembered bundle-less > being a huge performance boost) but it hasn't been, really (although my > projects are all Maven, not sure if the Ant ones suffer). Perhaps the advent > of SSDs has made bundle generation less of a drag? > > - hugi > >

Maven builds and Generate Bundles

2019-03-05 Thread Michael Sharp
Hi All, As I continue my Maven journey I now find myself with a workspace consisting of both Maven and Ant WO projects. All my legacy builds are bundle-less while my Maven projects require the Generate Bundles WOLips preference checked. I see the same behaviour in both new and migrated Maven pr

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

2019-02-20 Thread Michael Sharp
>> >> <https://jenkins.wocommunity.org/job/WOLips410/lastSuccessfulBuild/artifact/temp/dist/> >> >> It looks good on my machine. >> >> Cheers, >> >> HP >> >>> On Feb 17, 2019, at 7:52 PM, Michael Sharp >> <

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

2019-02-17 Thread Michael Sharp
rack changes and fixes for Eclipse > 2018-12 momentarily. Would you mind to create a pull request? > > Cheers, > > HP > >> On Feb 14, 2019, at 10:00 PM, Michael Sharp > <mailto:getsh...@gmail.com>> wrote: >> >> Hi Samuel, >> >> I’m

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

2019-02-14 Thread Michael Sharp
ith these and start the > automatic builds. What is the next step to put that in place ? > > Regards, > > Samuel > >> Le 13 févr. 2019 à 18:29, Michael Sharp > <mailto:mich...@getsharp.org>> a écrit : >> >> I’m building a WOLips4.10 variatio

Re: The WOCommunity slack channel

2016-09-06 Thread Michael Sharp
Yes please! I’ve been using Slack for Uni, the native Mac app is pretty good. Sharpy.. On 6/09/2016, 10:01 PM, "Hugi Thordarson" wrote: Hi all, just wanted to remind you that Samuel Pelletier created a slack channel for the WOCommunity. It’s a lovely little place for chatting about W

Re: Code completion for a component's binding

2012-11-15 Thread Michael Sharp
quot;); validValues.add("\"%A %d %b %Y\""); validValues.add("\"%x\""); validValues.add("\"%H:%M:%S\""); validValues.add("\"%I:%M:%S %p\""); validValues.add("\"%H:%M\"&q

Re: Code completion for a component's binding

2012-11-15 Thread Michael Sharp
I've wondered myself, so I just had a sniff around some API files. e.g. ERXEditDateJavascript.api contains the following: … and offers the right hand side completion of exactly that in the wod editor - date format strings. Changing this to: has the expected effect - number

Re: Creating an AjaxModalDialog wizard

2012-08-13 Thread Michael Sharp
On 11/08/2012, at 7:16 AM, Roger Perryman wrote: > What is the correct way to create a wizard using AjaxModalDialog? I have a > page that pops up a dialog using AMD. Inside this dialog, I would like to > transition between pages, for example next/previous page. I've tried using > AjaxSubmitButt

Re: Fluffy Bunny question

2012-07-18 Thread Michael Sharp
I use folders for nesting models & eogen files within the Resources directory. I have some frameworks with enough models to make expanding the Resources folder in WO Explorer visually disturbing, so recently tried the nesting approach and haven't had any problems. Running only ERXApplications

Re: Problem wo loop WOHyperlink

2012-07-13 Thread Michael Sharp
Hi Hugo, You could use a Component Action rather than a Direct Action in your WOHyperlink. .wod DeleteLink : WOHyperlink { action = deleteRecord; } The deleteRecord() method in your component class would need to: * call delete on your entryItem enterprise object * call saveChanges on

Getting your git chops on

2012-03-28 Thread Michael Sharp
After reading the "Most Requested" thread I thought I'd relay my experiences, not about WOnder but about SCM in general. This all occurred within a team environment but I'll refrain from using the term "we" as it's more about my perspective. For my projects, I used svn. Not really used, just so

Re: Fetch and sort based on a given list

2012-03-11 Thread Michael Sharp
ERXS maybe.. Eo.fetchEos(ec, Eo.KEY.in(keys), ERXS.ascs(keys)); Sharpy.. On 12/03/2012, at 9:50 AM, Ted Archibald wrote: > The best I have so far is to loop through the array, but it's not the most > elegant solution in the world... > > @SuppressWarnings({ "rawtypes", "unchecked" }) > p

Re: Weird Crash

2012-02-16 Thread Michael Sharp
What versions of Eclipse/WOLips? There was a hang on save bug affecting the component editor in previous WOLips versions that is resolved in 3.7.x Sharpy.. On 17/02/2012, at 4:00 AM, Jaime Magiera wrote: > Hello folks, > > I've got weird problem that arose after setting up Eclipse + WO on OSX

Re: plural entity name

2011-07-27 Thread Michael Sharp
There's some plural logic in ERXLocalizer from memory.. Sharpy. On 28/07/2011, at 11:27 AM, Lachlan Deck wrote: > Hi there, > > is there a util in wonder (or standard wo) that takes the string of an > entityName and returns the plural? > > I can create a constant in the entity itself via EOGe

Re: How to open a URL in WO

2011-07-13 Thread Michael Sharp
On 14/07/2011, at 11:17 AM, Pascal Robert wrote: > > Le 2011-07-13 à 15:23, Calven Eggert a écrit : > >> Just checked out that link. this looks pretty cool. Anyone else in the WO >> community use it? If so, what are your impressions? >> >>> http://hc.apache.org/httpcomponents-client-ga/ >

Re: WORepetition validation error

2011-06-14 Thread Michael Sharp
WOLips binding validation seems to be a temperamental and mysterious beast. Last week for me it was WOImage with validation telling me I must have a filename value when framework was also bound, which of course was already the case. So that gave me errors in all my projects! A combination of c

Re: update a WOComponentContent from my code?

2011-06-05 Thread Michael Sharp
Hi Ted, I'm not sure that what you're describing as happening is actually the case. AjaxUtils.redirectTo isn't updating an area of your page surrounded by an AjaxUpdateContainer, it's redirecting your browser to a full page component. It sounds like you're interested in updating parts of your a

Re: action binding of an AjaxObserveField to return a WOComponent?

2011-05-31 Thread Michael Sharp
Have a look at AjaxUtils.redirectTo(WOComponent) For the "jump menu" type of thing I use that within the method bound to action of the AjaxObserveField that's observing the WOPopup. Sharpy. On 01/06/2011, at 1:06 AM, Theodore Petrosky wrote: > > I have only used hyperlinks to insert a new WOC

Re: ajaxtabbedpanel ??

2011-01-16 Thread Michael Sharp
s, or in this case a default value of false. If you override validateTakeValueForKeyPath you should see keypaths for non rendered fields showing up with null/false values when you select tabs.. Sharpy. On 14/01/2011, at 9:56 PM, Theodore Petrosky wrote: > > > --- On Fri, 1/14/11,

Re: ajaxtabbedpanel ??

2011-01-13 Thread Michael Sharp
I do use TabbedPanel in an AMD so I'll try. Any errors in eclipse console or javascript errors in the browser? Is it a problem with Tab2 or with any tab after the initial tab is displayed. If you give Tab2 the binding of "isSelected = true;" does it display the correct behaviour? > the tabpane

Re: Search Suggestion Box

2010-12-07 Thread Michael Sharp
Wonder's AjaxAutoComplete is worth a look.. sharpy. On 08/12/2010, at 10:59 AM, vaibhav srivastava wrote: > Hi All, > > Is there a way to implement search suggestion box through webobjects. > Thanks for help in advance. > > Regards > vaibhav > ___ >

Re: Wonder's Monitor

2010-11-25 Thread Michael Sharp
Screenshot for the lazy? Sharpy.. On 24/11/2010, at 1:33 AM, Martin Samm wrote: > ooh - shiny. > > looks great; > > Thanks > > Martin > > On 23 November 2010 15:19, John Huss wrote: > Screenshots: > http://lists.apple.com/archives/Webobjects-dev/2010/Nov/msg00573.html > > On Tue, Nov 23, 2

Re: EOModel and derived column.

2010-11-25 Thread Michael Sharp
Yep, still need to override the derived attribute's getter and mimic/duplicate the concatenation (in this case) to ensure it reflects the uncommitted changes, very noticeable when you have a new object that hasn't been saved to the backing store! The big gains from this type of attribute become

Re: Expand and collapse a row

2010-11-10 Thread Michael Sharp
Tables and individual rows are always tricky as the AUC's div can't be in rendering no mans land, ie outside tr tags but inside the table. If you need to hide/show rows that preserve column structure of the enclosing table you might need to have the entire table in an AUC and determine which ro

Re: ERPPieChart pie piece color

2010-09-19 Thread Michael Sharp
The colours come from JFreeChart's DefaultDrawingSupplier. There's nothing you can supply in the objects that go into the items array that will affect rendering. The items, nameKey and valueKey bindings are all about building the dataset for your chart. If you really wanted to go down the path

Re: insertion on AjaxExpansion

2010-08-27 Thread Michael Sharp
As per http://webobjects.mdimension.com/hudson/job/Wonder53/javadoc/er/ajax/AjaxExpansion.html Mike's example in AjaxExample2 uses the bindings: insertion="Effect.blind"; insertionDuration="0.1"; http://webobjects.mdimension.com/cgi-bin/WebObjects/AjaxExample2.woa/wa/PageAction/ToggleDetails s

Fwd: more datepicker questions

2010-08-19 Thread Michael Sharp
Whoops, forgot the list.. Begin forwarded message: > From: Michael Sharp > Date: 20 August 2010 7:18:30 AM AEST > To: Theodore Petrosky > Subject: Re: more datepicker questions > > What revision of calendar.js are you running? > > There have been some recent changes t

Re: max value using wonder??

2010-05-28 Thread Michael Sharp
Have a look at ERXEOControlUtilities.aggregateFunctionWithQualifier On 29/05/2010, at 10:22 AM, Theodore Petrosky wrote: > if I were writing my own sql, I would: > > SELECT MAX(c_item_index) FROM t_version WHERE c_job_id = 12; > > is there a way to do this without resorting to raw sql? >

Re: JRebel

2010-03-13 Thread Michael Sharp
I'm fond of JRebel too, although if it threw a tantrum at the supermarket I'd probably leave it there ;) I've had memory issues at launch time with some projects that have multiple custom framework dependencies and I can't seem to provide the right JVM args to please it. But as Q keeps telling

Re: Full URL on dev

2010-02-25 Thread Michael Sharp
Hi James, I'm able to build complete URLs in both dev (directconnect & webserverconnect) and deployment environments using the request header value for one of the keys like server_name or host, or on an ERXRequest using the remoteHostName() method. This gives me the appropriate host:port value

Re: from JFreeChart (BufferedImage_) to NSData_

2010-01-06 Thread Michael Sharp
JFreeChart lineChart = createChart( dataSet ); ByteArrayOutputStream stream = new ByteArrayOutputStream(); ChartUtilities.writeChartAsPNG(stream, lineChart, 500, 300); return new NSData(stream.toByteArray()); Alternatively you can use writeChartAsJPEG. Or let ERPlo

Re: JFreeChart/Wonder liftoff success

2009-12-17 Thread Michael Sharp
Pink pie, sounds like trivial pursuit! Cheers, Sharpy -- Michael Sharp ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription:

Re: JFreeChart/Wonder liftoff

2009-12-15 Thread Michael Sharp
rt"; } You can gain a fair bit of flexibility with the "configuration" binding, and also you can use the "chart" binding on it's own if you already have a JFreeChart and just want a nice way to include it in your component. Cheers, Sharpy -- Michael Sharp

Re: WOWODC 2010 : official date and venue

2009-11-19 Thread Michael Sharp
Most definitely in! Sharpy -- Michael Sharp Burleigh Heads Gold Coast, Australia ;) On 20/11/2009, at 10:18 AM, David Avendasora wrote: > > On Nov 19, 2009, at 3:17 PM, Pascal Robert wrote: > >> it would be great for future WOWODC to move it around to see different >

Re: valueForBinding and indirectly referenced types

2009-10-04 Thread Michael Sharp
OK it was just the act of casting Object (from valueForBinding) to my subclass which required access to my class hierarchy and non-exported jars. It's all trivial anyway as everything's exported as it should be.. On 04/10/2009, at 10:41 AM, Michael Sharp wrote: Thanks Mike

Re: valueForBinding and indirectly referenced types

2009-10-03 Thread Michael Sharp
exported. Sent from my iPhone On Oct 3, 2009, at 5:28 AM, "Michael Sharp" wrote: I'm trying to change an existing component to be non-synchronising. The component imports classes from my framework that extend classes from jar files that are included in my frameworks class path

valueForBinding and indirectly referenced types

2009-10-03 Thread Michael Sharp
I'm trying to change an existing component to be non-synchronising. The component imports classes from my framework that extend classes from jar files that are included in my frameworks class path. My component only accesses methods from these subclasses. When I cast the result of valueFor