Re: D2W: Property level component for truncating a string?

2012-06-07 Thread Mark Wardle
There is one that truncates a string. I'm away from computer so can't give 
exact name. Something like Erxd2wDisplayLargeString ?


-- 
Dr. Mark Wardle
Sent with mobile


On Wednesday, 6 June 2012 at 04:30, Paul Hoadley wrote:

 Hello,
 
 Is there a property-level component that will truncate a string to some 
 specified length?  I'm thinking about attributes with long text values in 
 list views: it would be nice to display, say, the first 20 characters in the 
 table, and then the whole string in the inspect view.
 
 Obviously I can write a cover method to do this, but I was just wondering if 
 such a component already exists.
 
 
 -- 
 Paul Hoadley
 http://logicsquad.net/
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/mark%40wardle.org
 
 This email sent to m...@wardle.org 

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: D2W: Property level component for truncating a string?

2012-06-07 Thread Paul Hoadley
On 07/06/2012, at 6:50 PM, Mark Wardle wrote:

 There is one that truncates a string. I'm away from computer so can't give 
 exact name. Something like Erxd2wDisplayLargeString ?

Thanks Mark: ERDDisplayLargeString.  I actually looked at that, and skipped 
over it because its Javadocs are empty.  I'll look into the source.

In any case, just out of curiosity if nothing else, I'm still interested to 
know how to get the value of a custom key set in the rules down in my custom 
property-level component.  If I've extended ERDCustomComponent, how do I get 
the D2WContext, given all of d2wContext(), localContext() and 
d2wContextFromBindings() are returning null?  Is that not the way to do it?  
(Specifically, I want to read a rule that sets the length at which to truncate 
the string.)


-- 
Paul Hoadley
http://logicsquad.net/



 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


WO HL7

2012-06-07 Thread Calven Eggert
Good morning,

Anyone worked with HL7?  Any advice using it with Webobjects?

Calven


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO HL7

2012-06-07 Thread Paul Yu
What are you trying to do with HL7?  

-- 
Paul Yu
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Thursday, June 7, 2012 at 9:20 AM, Calven Eggert wrote:

 Good morning,
 
 Anyone worked with HL7? Any advice using it with Webobjects?
 
 Calven
 
 
 ___
 Do not post admin requests to the list. They will be ignored.
 Webobjects-dev mailing list (Webobjects-dev@lists.apple.com 
 (mailto:Webobjects-dev@lists.apple.com))
 Help/Unsubscribe/Update your Subscription:
 https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
 
 This email sent to p...@mac.com (mailto:p...@mac.com) 

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO HL7

2012-06-07 Thread Calven Eggert
I will be doing two things:

1) receiving HL7 messages and parsing the data
2) creating and sending HL7 messages


On 2012-06-07, at 9:30 AM, Paul Yu wrote:

 What are you trying to do with HL7? 
 
 -- 
 Paul Yu
 Sent with Sparrow
 
 On Thursday, June 7, 2012 at 9:20 AM, Calven Eggert wrote:
 
 Good morning,
 
 Anyone worked with HL7? Any advice using it with Webobjects?
 
 Calven
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
 
 This email sent to p...@mac.com
 

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO HL7

2012-06-07 Thread Paul Yu
If HL7 is a markup language like HTML, XML, and others, than I would think 
using WO to create HL7 could just be putting the markup in the WO .html file 
and the generating the response as NSData and send it.

Parsing HL7 would be you would take their HL7 java library and link it in and 
parse the HL7 documents that you receive with it. 

-- 
Paul Yu
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Thursday, June 7, 2012 at 9:32 AM, Calven Eggert wrote:

 I will be doing two things:
 
 1) receiving HL7 messages and parsing the data
 2) creating and sending HL7 messages
 
 
 On 2012-06-07, at 9:30 AM, Paul Yu wrote:
  What are you trying to do with HL7?  
  
  -- 
  Paul Yu
  Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
  
  
  On Thursday, June 7, 2012 at 9:20 AM, Calven Eggert wrote:
  
   Good morning,
   
   Anyone worked with HL7? Any advice using it with Webobjects?
   
   Calven
   
   
   ___
   Do not post admin requests to the list. They will be ignored.
   Webobjects-dev mailing list (Webobjects-dev@lists.apple.com 
   (mailto:Webobjects-dev@lists.apple.com))
   Help/Unsubscribe/Update your Subscription:
   https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com
   
   This email sent to p...@mac.com (mailto:p...@mac.com) 
  
 

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO HL7

2012-06-07 Thread JR Ruggentaler
For parsing HL7 in my WO app I use HAPIhttp://hl7api.sourceforge.net/. You 
can send and receive the HL7 messages from a direct action. The MSH segment 
field 5 (MSH-5) is usually used for identifying the source/security. Depending 
on the source of the HL7 data you may need a message router/proxy to forward 
the messages to your WO app if the source system(s) uses a different transport 
like TCP/IP sockets, SFTP,…

JR

From: Paul Yu p...@mac.commailto:p...@mac.com
Date: Thursday, June 7, 2012 8:35 AM
To: Calven Eggert cegg...@uhnresearch.camailto:cegg...@uhnresearch.ca
Cc: webobjects-dev@lists.apple.commailto:webobjects-dev@lists.apple.com 
webobjects-dev@lists.apple.commailto:webobjects-dev@lists.apple.com
Subject: Re: WO  HL7

If HL7 is a markup language like HTML, XML, and others, than I would think 
using WO to create HL7 could just be putting the markup in the WO .html file 
and the generating the response as NSData and send it.

Parsing HL7 would be you would take their HL7 java library and link it in and 
parse the HL7 documents that you receive with it.

--
Paul Yu
Sent with Sparrowhttp://www.sparrowmailapp.com/?sig


On Thursday, June 7, 2012 at 9:32 AM, Calven Eggert wrote:

I will be doing two things:

1) receiving HL7 messages and parsing the data
2) creating and sending HL7 messages


On 2012-06-07, at 9:30 AM, Paul Yu wrote:

What are you trying to do with HL7?

--
Paul Yu
Sent with Sparrowhttp://www.sparrowmailapp.com/?sig


On Thursday, June 7, 2012 at 9:20 AM, Calven Eggert wrote:

Good morning,

Anyone worked with HL7? Any advice using it with Webobjects?

Calven


___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list 
(Webobjects-dev@lists.apple.commailto:Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com

This email sent to p...@mac.commailto:p...@mac.com



 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO HL7

2012-06-07 Thread David Aspinall
I've been doing some HL7 work on iOS and although I have nothing specific for 
WebObjects, here are some comments and resources you might find helpful.

- welcome to ACRONYM HELL   If you thought programmers were bad for their own 
terminology, you have not seen anything.  Health Informatics (HI) is absolutely 
awash in crazy terminology.  You may want to start a personal reference doc to 
stick definitions and notes.

- the HL7 v3 standard is a large rambling mess (IMO) and many node definitions 
can conflict with others within the same document!  For example, it is possible 
to have a node like person defined several times within the same document, 
but with different structure. Or it can have the same concept like person but 
create nodes named person1 person2 ... person12 each can have different 
structures.

- HL7 v2 is NOT XML.  This is important because the majority of existing 
systems are v2.  Even the newer variations like CDA or XDS often have HL7 v2 
content embedded as values.  Here is an example

rim:ExternalIdentifier 
id=urn:uuid:9df60c92-2d25-49dd-a1d0-595bd002e37e 
lid=urn:uuid:9df60c92-2d25-49dd-a1d0-595bd002e37e 
registryObject=urn:uuid:5aa6ac81-cd1f-4725-8cf5-14bb740ef2e3 
identificationScheme=urn:uuid:58a6f841-87b3-4a3e-92fd-a8ffeff98427 
value=10001^^^amp;1.2.8.26224.2012.4.5amp;ISO

rim:Name
rim:LocalizedString value=XDSDocumentEntry.patientId/
/rim:Name
rim:VersionInfo versionName=1.1/
/rim:ExternalIdentifier

- you will also need to understand the code systems and terminology.  For 
example

patient1 classCode=PAT
id root=2.16.840.1.112882.2.122.1.1.5 extension=5298/

this is the patient identifier.  The root attribute identified the 
source and the extension identifies the value.  You need to be able to 
distinguish between a root that represents a Drivers License, vs a Hospital vs 
an Insurance Carrier vs a Provincial Health Service   or this

relatedDocument typeCode=APND
parentDocument
id extension=C7F36C19-64F0-4a8d-859B-2404F07A2434 
root=2.16.840.1.113883.3.933/
code code=34140-4 
codeSystem=2.16.840.1.113883.6.1/

So what is this related document?  Thats easy :)

2.16.840.1.113883.6.1 = LOINC  (Logical Observation Identifier Names 
and Code)
34140-4 = Referral

No problem .. right.  Its the referral request.

My suggestion is to stay VERY tightly focused on only the messages you must 
support, and initially only on the PORTION of the message that you need.

Useful links

HL7.org

You might as well be confused by the vary source of the crazy :)
http://www.hl7.org/index.cfm

Terminology References

SNOMED-CT
http://en.wikipedia.org/wiki/SNOMED_CT
http://www.nlm.nih.gov/research/umls/Snomed/snomed_main.html
http://www.ihtsdo.org/snomed-ct/

Mohawk College

http://www.mohawkcollege.ca/about/research/marc.html
MARC-HI Everest Framework (Java reference framework HL7 v3)

http://te.marc-hi.ca/view.aspx?project=af66d54ed41e4ac18b44d0d3ca6cabf0

The OpenHealth Foundation

http://www.openehealth.org/display/OEHF/Foundation
Java IPF  (Integration Platform Framework)
https://github.com/krasserm/ipf

Learn the RIM (Reference Information Model)

The RIM is the base building block for all the subsequent XML 
structures.  It's nasty :)


http://motorcycleguy.blogspot.ca/2010/04/quick-overview-of-ebxml-rim-objects-in.html
https://tl7.intelliware.ca/public/messages/dataTypes/index.faces

HAPI (v2 HL7 only)

Opensource HL7 parser and Library, but as far as I know it is HL7 v2 
ONLY
http://hl7api.sourceforge.net/


Test Level 7

This is the only test site for HL7 v3 I have found.  It is not cheap 
but the initial client registry search is free.   Sorry, client registry may 
not be correct terminology, the correct name is Find candidates query and the 
HL7 message is PRPA_IN101103CA and the response is PRPA_IN101104CA

https://tl7.intelliware.ca/index.faces
http://i-proving.com/2010/12/13/hl7-message-processing-statistics/

Enjoy
David
---
David Aspinall
Senior IT Consultant
Global Village Consulting Inc.
E: daspin...@global-village.net
P: 1-647-927-7442

Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of 
Canada’s Fastest-Growing Companies by PROFIT Magazine!



On 2012-06-07, at 9:35 AM, Paul Yu wrote:

 If HL7 is a markup language like HTML, XML, and others, than I would think 
 using WO to create HL7 could just be putting the markup in the WO .html file 
 and the generating the response as NSData and send it.
 
 Parsing HL7 would be you would take their HL7 java library and link it in and 
 parse the HL7 documents that you receive with it.
 
 

Re: ERJQueryMobile and Ajax frameworks

2012-06-07 Thread Amedeo Mantica
I don't use the ERJQuerymobile, but I guess you cannot use AjaxUpdateContainer 
and AjaxObserve fields because they rely on Prototype and Scriptaculous

You should not mix ERJQueryMobile with the legacy Ajax stuff

Amedeo


On 05/giu/2012, at 18:15, Stavros Panidis wrote:

 Hello list,
 
 I am trying to test ERJQueryMobile. I had no problem to work with most of my 
 components but seems that AjaxUpdateContainer and AjaxObserveField does not 
 work.
 
 For example
 
 wo:conditional condition = $theVar.ischaracter
wo:conditional condition = $theVar.inputasoptions
  wo:AjaxUpdateContainer id = $theVar.id.toString
 
wo:ERQMPopUpButton id = $theVar.name list = 
 $theVar.optionsArray selection = $theVar.content mini = true /
 
wo:conditional condition = $theVar.shownewoption 
 wo:ERQMInputString value = $theVar.newoption / /wo:conditional
  /wo:AjaxUpdateContainer
 
/wo:conditional
wo:conditional condition = $theVar.inputasoptions negate = 
 yes wo:ERQMInputString value = $theVar.content mini = true / 
 /wo:conditional
  /wo:conditional
 
 
 The above is not working, while if I put out Ajax lines it works. Also, 
 certainly it works fine when not ERQMHtmlTemplate.
 
 I would appreciated to have some help on this.
 
 Many thanks in advance
 
 Stavros
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/amedeomantica%40me.com
 
 This email sent to amedeomant...@me.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERJQueryMobile and Ajax frameworks

2012-06-07 Thread Johan Henselmans

Op 7-jun.-2012, om 17:24 heeft Amedeo Mantica het volgende geschreven:

 I don't use the ERJQuerymobile, but I guess you cannot use 
 AjaxUpdateContainer and AjaxObserve fields because they rely on Prototype and 
 Scriptaculous
 
 You should not mix ERJQueryMobile with the legacy Ajax stuff
 
 Amedeo
 
 

As far as I know it should work, but perhaps something else is into play here: 
the use of the $ as a variable sign instead of the [ ] (squarebrackets). As far 
a OGNL is concerned, you might user either, or something else. 

I do not know if the parsing of the $ stuff interferes with the javascript 
stuff, but I do know that Ken is very much trying to play nice with the 
non-jquery javascript code. 


 On 05/giu/2012, at 18:15, Stavros Panidis wrote:
 
 Hello list,
 
 I am trying to test ERJQueryMobile. I had no problem to work with most of my 
 components but seems that AjaxUpdateContainer and AjaxObserveField does not 
 work.
 
 For example
 
 wo:conditional condition = $theVar.ischaracter
  wo:conditional condition = $theVar.inputasoptions
wo:AjaxUpdateContainer id = $theVar.id.toString
 
  wo:ERQMPopUpButton id = $theVar.name list = 
 $theVar.optionsArray selection = $theVar.content mini = true /
 
  wo:conditional condition = $theVar.shownewoption 
 wo:ERQMInputString value = $theVar.newoption / /wo:conditional
/wo:AjaxUpdateContainer
 
  /wo:conditional
  wo:conditional condition = $theVar.inputasoptions negate = 
 yes wo:ERQMInputString value = $theVar.content mini = true / 
 /wo:conditional
/wo:conditional
 
 
 The above is not working, while if I put out Ajax lines it works. Also, 
 certainly it works fine when not ERQMHtmlTemplate.
 
 I would appreciated to have some help on this.
 
 Many thanks in advance
 
 Stavros
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/amedeomantica%40me.com
 
 This email sent to amedeomant...@me.com
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl
 
 This email sent to jo...@netsense.nl

Johan Henselmans
jo...@netsense.nl




 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERJQueryMobile and Ajax frameworks

2012-06-07 Thread Amedeo Mantica
no, ognl will not interfere

Regards
Amedeo

On 07/giu/2012, at 18:00, Johan Henselmans wrote:

 
 Op 7-jun.-2012, om 17:24 heeft Amedeo Mantica het volgende geschreven:
 
 I don't use the ERJQuerymobile, but I guess you cannot use 
 AjaxUpdateContainer and AjaxObserve fields because they rely on Prototype 
 and Scriptaculous
 
 You should not mix ERJQueryMobile with the legacy Ajax stuff
 
 Amedeo
 
 
 
 As far as I know it should work, but perhaps something else is into play 
 here: the use of the $ as a variable sign instead of the [ ] 
 (squarebrackets). As far a OGNL is concerned, you might user either, or 
 something else. 
 
 I do not know if the parsing of the $ stuff interferes with the javascript 
 stuff, but I do know that Ken is very much trying to play nice with the 
 non-jquery javascript code. 
 
 
 On 05/giu/2012, at 18:15, Stavros Panidis wrote:
 
 Hello list,
 
 I am trying to test ERJQueryMobile. I had no problem to work with most of 
 my components but seems that AjaxUpdateContainer and AjaxObserveField does 
 not work.
 
 For example
 
 wo:conditional condition = $theVar.ischaracter
  wo:conditional condition = $theVar.inputasoptions
wo:AjaxUpdateContainer id = $theVar.id.toString
 
  wo:ERQMPopUpButton id = $theVar.name list = 
 $theVar.optionsArray selection = $theVar.content mini = true /
 
  wo:conditional condition = $theVar.shownewoption 
 wo:ERQMInputString value = $theVar.newoption / /wo:conditional
/wo:AjaxUpdateContainer
 
  /wo:conditional
  wo:conditional condition = $theVar.inputasoptions negate = 
 yes wo:ERQMInputString value = $theVar.content mini = true / 
 /wo:conditional
/wo:conditional
 
 
 The above is not working, while if I put out Ajax lines it works. Also, 
 certainly it works fine when not ERQMHtmlTemplate.
 
 I would appreciated to have some help on this.
 
 Many thanks in advance
 
 Stavros
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/amedeomantica%40me.com
 
 This email sent to amedeomant...@me.com
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/johan%40netsense.nl
 
 This email sent to jo...@netsense.nl
 
 Johan Henselmans
 jo...@netsense.nl
 
 
 

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERJQueryMobile and Ajax frameworks

2012-06-07 Thread ISHIMOTO Ken
Hi,

There is one Problem in the way how JQueryMobile works.

One of the nice but big problems are, that JQueryMobile is calling every Page 
(via Link) via Ajax.

That means, if you have other Pages with other Javascript Code the Javascript 
Libraries never get loaded.

JQueryMobile is very closed and maybe it is better to use JQuery Ajax calls. 

Maybe if the Start page is loading every Javascript then it will do better, I 
haven't test it now. I was only try to
make it a easy Mobile Access Platform and not very fancy. I made already some 
changes for not Ajax Calls
to work better with WO and will pushed very soon I hope.
I am developing ERJQueryMobileDirect2Web now and see some problems that I am 
trying to fix.



On 2012/06/05, at 18:15, Stavros Panidis wrote:

 Hello list,
 
 I am trying to test ERJQueryMobile. I had no problem to work with most of my 
 components but seems that AjaxUpdateContainer and AjaxObserveField does not 
 work.
 
 For example
 
 wo:conditional condition = $theVar.ischaracter
 wo:conditional condition = $theVar.inputasoptions
   wo:AjaxUpdateContainer id = $theVar.id.toString
 
 wo:ERQMPopUpButton id = $theVar.name list = 
 $theVar.optionsArray selection = $theVar.content mini = true /
 
 wo:conditional condition = $theVar.shownewoption 
 wo:ERQMInputString value = $theVar.newoption / /wo:conditional
   /wo:AjaxUpdateContainer
 
 /wo:conditional
 wo:conditional condition = $theVar.inputasoptions negate = 
 yes wo:ERQMInputString value = $theVar.content mini = true / 
 /wo:conditional
   /wo:conditional
 
 
 The above is not working, while if I put out Ajax lines it works. Also, 
 certainly it works fine when not ERQMHtmlTemplate.
 


ERQMHtmlTemplate isn't special, it's only a wrapper. I will try to take a look, 
but it will take a little time, because I have a deadline next week for one 
Project.

Ken



 I would appreciated to have some help on this.
 
 Many thanks in advance
 
 Stavros
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com
 
 This email sent to k...@ksroom.com



 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: ERJQueryMobile and Ajax frameworks

2012-06-07 Thread ISHIMOTO Ken
Hi,

That's true for the most part.

The next ERModernJQuery Library will work nice with Ajax Framework.

We can speak about that at WOWODC maybe.

Ken

On 2012/06/07, at 17:24, Amedeo Mantica wrote:

 I don't use the ERJQuerymobile, but I guess you cannot use 
 AjaxUpdateContainer and AjaxObserve fields because they rely on Prototype and 
 Scriptaculous
 
 You should not mix ERJQueryMobile with the legacy Ajax stuff
 
 Amedeo
 
 
 On 05/giu/2012, at 18:15, Stavros Panidis wrote:
 
 Hello list,
 
 I am trying to test ERJQueryMobile. I had no problem to work with most of my 
 components but seems that AjaxUpdateContainer and AjaxObserveField does not 
 work.
 
 For example
 
 wo:conditional condition = $theVar.ischaracter
   wo:conditional condition = $theVar.inputasoptions
 wo:AjaxUpdateContainer id = $theVar.id.toString
 
   wo:ERQMPopUpButton id = $theVar.name list = 
 $theVar.optionsArray selection = $theVar.content mini = true /
 
   wo:conditional condition = $theVar.shownewoption 
 wo:ERQMInputString value = $theVar.newoption / /wo:conditional
 /wo:AjaxUpdateContainer
 
   /wo:conditional
   wo:conditional condition = $theVar.inputasoptions negate = 
 yes wo:ERQMInputString value = $theVar.content mini = true / 
 /wo:conditional
 /wo:conditional
 
 
 The above is not working, while if I put out Ajax lines it works. Also, 
 certainly it works fine when not ERQMHtmlTemplate.
 
 I would appreciated to have some help on this.
 
 Many thanks in advance
 
 Stavros
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/amedeomantica%40me.com
 
 This email sent to amedeomant...@me.com
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com
 
 This email sent to k...@ksroom.com



 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WO HL7

2012-06-07 Thread Michael Schmiedgen

Hi Calven,


Anyone worked with HL7?  Any advice using it with Webobjects?


I use HAPI, that was mentioned in another post above. I use it
stand alone, without WO. It is a nice API and should integrate
well into other environments.

Cheers,
  Michael

--
___

Michael Schmiedgen, BSc
Senior Software Engineer

Takwa GmbH
Friedrich-List-Str. 36
99096 Erfurt GERMANY

Tel  +49 361 6534096
Fax  +49 361 6534097
Mail schmied...@takwa.de
Web  http://www.takwa.de/
___


Amtsgericht Jena HRB 112964
Geschäftsführung: Ingo Buchholz
___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Re: WO HL7

2012-06-07 Thread Larry Mills-Gahl
Another vote for HAPI. 
I've got some custom code consuming HL7 from the time before HAPI (also known 
as the un-HAPI time ... well, ok, it's only know as that to me ... and really 
only in this message I suppose) but I've been looking at a recent integration 
path with Camel and their (relatively) new HL7 component. 
http://camel.apache.org/hl7.html that wraps the HAPI library in a Camel 
component for use in building integration routes.
This doesn't relieve you of having to interpret the message yourself, but it 
may be a way to proxy the receipt of HL7 messages (through any number of entry 
points) and access services that are not directly coupled with the mechanism 
for consuming or producing HL7 messages.


Larry Mills-Gahl
l...@webfarm.com



On Jun 7, 2012, at 8:20 AM, Calven Eggert wrote:

 Good morning,
 
 Anyone worked with HL7?  Any advice using it with Webobjects?
 
 Calven
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/lmg%40webfarm.com
 
 This email sent to l...@webfarm.com
 

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


D2W: Reading custom rule values in a custom property-level component

2012-06-07 Thread Paul Hoadley
Hello,

This question is languishing at the end of my thread on another topic, so I'll 
just drag it out into its own thread.  Say I have just made a custom 
property-level component by extending ERDCustomComponent.  I want to be able to 
read a value for a custom key that I've set in the rules.  I'm assuming I need 
access to the D2WContext for that, but I may be wrong, as all of d2wContext(), 
localContext() and d2wContextFromBindings() are returning null down in that 
custom component.  What am I doing wrong here?


-- 
Paul Hoadley
http://logicsquad.net/



 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: D2W: Reading custom rule values in a custom property-level component

2012-06-07 Thread David Holt
Hi Paul,

I don't have a lot of time to respond, but some thoughts are:

My understanding of the docs is that you can use these ERDCustomComponents 
WITHOUT a d2wContext. 

This is achieved by pulling values first from the bindings, then from the 
d2wContext and finally from an extraBindings binding.

Have you tried just setting the key in the rules and see if the component can 
pull the value by itself?

Alternatively have you tried subclassing a (ER)D2W(Stateless)Component instead? 
Then access it like so:

@Override
public D2WContext d2wContext() {
return super.d2wContext();
}

and in the .wod something like:

StyleSheetRepetition : WORepetition {
list = d2wContext.stylesheets;
item = stylesheetName;
}


On 2012-06-07, at 3:55 PM, Paul Hoadley wrote:

 Hello,
 
 This question is languishing at the end of my thread on another topic, so 
 I'll just drag it out into its own thread.  Say I have just made a custom 
 property-level component by extending ERDCustomComponent.  I want to be able 
 to read a value for a custom key that I've set in the rules.  I'm assuming I 
 need access to the D2WContext for that, but I may be wrong, as all of 
 d2wContext(), localContext() and d2wContextFromBindings() are returning null 
 down in that custom component.  What am I doing wrong here?
 
 
 -- 
 Paul Hoadley
 http://logicsquad.net/
 
 
 
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com
 
 This email sent to programming...@mac.com

 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: WOInject: harmed twice by classloader manipulation

2012-06-07 Thread Henrique Prange
Hi Joseph,

On 06/06/2012, at 04:04, Joseph Pachod wrote:

 Hi all
 
 We've been using WOInject for a few months and encountered two issues
 due to the classloader manipulation done at startup (the one to enable
 interception through javassist, in the WOInject class).
 

You're not alone. I've faced problems because of the classloader manipulation 
too. Take a look at issue #2 [1]. I've provided a simple fix, but I know it is 
not a definitive solution.

 The first issue is a known Guice 2.0 bug
 (http://code.google.com/p/google-guice/issues/detail?id=343). This one
 pops up when from Guice grabs some class from another classloader that
 the one it was started in. In our case, it meant Guice was grabing
 some class from the default class loader instead of the the javassist
 one. It appeared in a very unexpected way: suddenly one binding was
 causing the whole application to break down. Finally, we had to switch
 to Guice 3.0, which incorporates the bug fix and avoids the issue to
 show up another time somewhere else. Turned out since  that the
 woinject repo on github states Guice 3.0 as a requirement. Was this
 bug the reason for it?
 

In fact, I was not aware of this Guice bug until now. :)

The WOInject code responsible for object instantiation was heavily inspired by 
the AssistedInject module. It requires the bind().toConstructor() method API 
added in Guice 3.0. To support Guice 2.0, WOInject would not be able to take 
advantage of the AOP support, for instance.

 The second issue is a security exception when trying to encrypt some
 file. The issue was boiled down to a classloader one again, the
 required class being on the bootclasspath instead of the current
 classloader (the javassist one). I append the stack trace to the end
 of this mail, if some one wants to have a look at it.
 

This problem seems to be related to the issue #2 mentioned above. Clearly, an 
alternative is required to the Javassist classloader to solve this problem.

 In order to get rid of this bug, we ended removing the classloading
 trick and, instead, using our own _NSUtilities where we do the
 injector.injectMembers(newInstance) ourselves. In order to make it
 possible, we made sure our own version of this class came on top of
 the classpath provided to the application (thanks to Maven). Since it
 works again.
 
 What do you think of that ? Could it be done as well in WOInject ?
 

Yes. It could be done. However, this solution also has some problems:

1) It doesn't scale: that is the same approach employed by Wonder. We can't 
apply this kind of solution every time, for every framework.

2) It is subject to license issues.

3) It makes the user responsible for the solution of the problem. This problem 
is an extension of the first problem. In the beginning, ERExtensions should 
come first in the classpath. Then ERFoundation and ERWebObjects were created 
and took precedence. With this solution, WOInject must come before those 
libraries.

4) I'm not sure this solution works in a JEE environment.

Changing the behavior of core classes of WebObjects is a general problem that 
anyone developing WO apps/frameworks face sooner or later. IMHO, we should 
develop a common solution in Wonder, some kind of ERPatcher framework. This 
would enable us to solve long-standing problems without violating the Apple 
license and in an organized manner. I really would like to know what others 
think about it. I'm really inclined to implement this framework, as soon as I 
figure out how. :)

 Indeed, we were planning to use WOInject once the WOInjectProposal
 on github would have been incorporated.
 

I'm planning to add this feature in the next release. I'm really out of time 
right now, but it is in my TODO list.

 Personally, getting rid of classloader manipulations would be a plus
 IMHO. It removes a whole bunch of potential issues, from memory leaks
 to classes from the wrong classloader.
 

Classloader manipulations are complicated and can have side effects. However, 
it has been widely used in Java frameworks (including Guice). I'll try to 
produce a better solution. I'll ping you as soon as I have a new version for 
testing.

 For sure, I may miss some good points of javassist, so I'm really
 eager to read you back. Alternative solutions are also welcome, but
 the few I could make up (using an agent instead of classloader
 manipulation for example) don't come for cheap neither: overall class
 shadowing and classpath ordering look like the less impacting option.
 

I also would like to avoid using an agent to solve this problem. IMHO, we have 
the following alternatives:

1) A better custom classloader: the Javassist classloader is just an example of 
how to create a Classloader able to load Javassist manipulated classes. We can 
write a better one that loads only the _NSUtilities class from Javassist and 
delegates everything else to the parent classloader.

2) Loading the manipulated classes right on the System classloader: the 

Re: ERJQueryMobile and Ajax frameworks

2012-06-07 Thread Stavros Panidis
Thanks of your reply.

I am just looking for a way to implement dependent WOPopupButton lists or 'New 
option' dialog in a WOPopupButton. Is there any suggestion ?

Stavros


On 7 Ιουν 2012, at 7:19 μ.μ., ISHIMOTO Ken wrote:

 Hi,
 
 There is one Problem in the way how JQueryMobile works.
 
 One of the nice but big problems are, that JQueryMobile is calling every Page 
 (via Link) via Ajax.
 
 That means, if you have other Pages with other Javascript Code the Javascript 
 Libraries never get loaded.
 
 JQueryMobile is very closed and maybe it is better to use JQuery Ajax calls. 
 
 Maybe if the Start page is loading every Javascript then it will do better, I 
 haven't test it now. I was only try to
 make it a easy Mobile Access Platform and not very fancy. I made already some 
 changes for not Ajax Calls
 to work better with WO and will pushed very soon I hope.
 I am developing ERJQueryMobileDirect2Web now and see some problems that I am 
 trying to fix.
 
 
 
 On 2012/06/05, at 18:15, Stavros Panidis wrote:
 
 Hello list,
 
 I am trying to test ERJQueryMobile. I had no problem to work with most of my 
 components but seems that AjaxUpdateContainer and AjaxObserveField does not 
 work.
 
 For example
 
 wo:conditional condition = $theVar.ischaracter
wo:conditional condition = $theVar.inputasoptions
  wo:AjaxUpdateContainer id = $theVar.id.toString
 
wo:ERQMPopUpButton id = $theVar.name list = 
 $theVar.optionsArray selection = $theVar.content mini = true /
 
wo:conditional condition = $theVar.shownewoption 
 wo:ERQMInputString value = $theVar.newoption / /wo:conditional
  /wo:AjaxUpdateContainer
 
/wo:conditional
wo:conditional condition = $theVar.inputasoptions negate = 
 yes wo:ERQMInputString value = $theVar.content mini = true / 
 /wo:conditional
  /wo:conditional
 
 
 The above is not working, while if I put out Ajax lines it works. Also, 
 certainly it works fine when not ERQMHtmlTemplate.
 
 
 
 ERQMHtmlTemplate isn't special, it's only a wrapper. I will try to take a 
 look, but it will take a little time, because I have a deadline next week for 
 one Project.
 
 Ken
 
 
 
 I would appreciated to have some help on this.
 
 Many thanks in advance
 
 Stavros
 ___
 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:
 https://lists.apple.com/mailman/options/webobjects-dev/ken%40ksroom.com
 
 This email sent to k...@ksroom.com
 
 
 


 ___
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com