Re: external width for attribute?

2014-10-27 Thread Klaus Berkling

On Oct 27, 2014, at 10:56 AM, Chuck Hill  wrote:

> It is just eo.entity().attributeNamed(“foo”).width()


I see. Thanks.


kib

"The era of procrastination, of half-measures, of soothing and baffling 
expedients, of delays, is coming to its close. In its place we are entering a 
period of consequences."
Winston Churchill

Klaus Berkling
www.berkling.us | @kiberkli | Photography





smime.p7s
Description: S/MIME cryptographic signature
 ___
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

odd db connection problem appeared

2014-10-27 Thread Larry Mills-Gahl
I have a new and (so far) unexplained db connection failure and I’m hoping 
someone has suggestions about where to look.

I know the usual culprit is bad connection dictionary or db-side connection 
configuration. To rule those out I logged out the connection dictionary just 
before targetAdaptor().assertConnectionDictionaryIsValid() in 
ERXJDBCConnectionAnalyzer. The output of the connection dictionary was what I 
expected to see.

To check the database permissions/configuration, I inserted a raw JDBC 
connection and dummy query in the static method of the framework that I use for 
models.  I used ERXProperties to grab all of the same values used for the 
connection dictionaries (url, user, pass)

The jdbc connection gives me a connection and a result set so I’m pretty 
confident that I can connect from the app.
Since I’m using the properties that make up the connection dictionary to make 
that jdbc connection, I’m pretty confident that those values are right too.

Still when I get to targetAdaptor().assertConnectionDictionaryIsValid(), I get 
“No Connection."

I’m still digging but does anybody have any thoughts on where I might look next?



Larry Mills-Gahl
elem...@gmail.com








signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
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: JQuery Framework

2014-10-27 Thread Jonathan Miller
I think the work that Mike and crew did a ways back in the original AJAX
framework was the perfect integration of WeObjects and AJAX.  The idea with
JQAjax was to make some small improvements and give developers access to a
wider variety of widgets/plugins (through the JQuery ecosystem).

I suppose we could make an AJAX framework that gave you the core
functionality like the update container that just used Vanilla JavaScript.
But I agree with you that the practical solution is to use JQuery.

And if you want a really cool WebObjects inspired single web page
application framework that has all the modern JavaScript capabilities just
use MontageJS.

Aloha,

Johnny.

On Wed, Oct 22, 2014 at 4:57 AM, Fabian Peters 
wrote:

> I'd also like to see this.
>
> In the past there was some discussion about whether we should/could create
> an agnostic Ajax framework in wonder that can be used with different JS
> frameworks (Prototype, JQuery, MooTools…). To me this seems like a very
> elegant idea that will be extremely hard to implement. Simply having a
> JQAjax framework would be good enough, I guess.
>
> Am 22.10.2014 um 12:50 schrieb Michael Schmiedgen :
>
> > Hi List,
> >
> > are there any plans to merge Johnny Miller's JQuery Ajax
> > Framework?
> >
> > http://www.kahalawai.com/JQuery
> > https://github.com/johnnykahalawai/wonder
> >
> > Last time I asked there was no response on the list. Are
> > there no needs anymore to use an active maintained JS frame-
> > work? JQuery is by far the most used JS framework, or am I
> > wrong?
> >
> > As an example, we use a JS UI library built on top of JQuery,
> > but must include another JS framework, MooTools, because of
> > Wonder. It would be nice to streamline everything to JQuery
> > in our Apps.
> >
> > I can offer help with integrating the code. Perhaps some
> > refactoring and cleanup needs to be done, so the JQuery,
> > Prototype and MooTools frameworks can share code as much as
> > possible.
> >
> > 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/lists.fabian%40e-lumo.com
> >
> > This email sent to lists.fab...@e-lumo.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/jlmiller%40kahalawai.com
>
> This email sent to jlmil...@kahalawai.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: external width for attribute?

2014-10-27 Thread Chuck Hill
It is just eo.entity().attributeNamed("foo").width()



On 2014-10-26, 8:51 PM, "Klaus Berkling" wrote:


Is there a way to get the external width of an entity attribute as specified in 
the model?
This might be a useful addition to the entity template/entity class generation 
if it's not otherwise available.


kib

"The essence of training is to allow error without consequence."
Orson Scott Card

Klaus Berkling
www.berkling.us | @kiberkli | 
Photography



 ___
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: Consuming REST services with a WO app

2014-10-27 Thread Ted Archibald
Here’s a quick and dirty wrapper for httpclient that I use.

On Mon, Oct 27, 2014 at 3:50 AM, Christoph Wick  wrote:

> Sorry (it was too late yesterday):
>
> I found it:
> http://wiki.wocommunity.org/display/documentation/Consuming+REST+services
>
> C.U.CW
> --
> What are the three enemies of a programmer? Sunlight, oxygen, and the
> appalling roar of the birds.
>
> On 27.10.2014, at 00:23, CHRISTOPH WICK | i4innovation GmbH, Bonn <
> c...@i4innovation.de> wrote:
>
> > Hi list,
> >
> > is there a webobjects/wonder way to *consume* a REST service in a wonder
> app?
> >
> > All the RESt examples on the wiki show how to produce a REST service
> using Wonder. But I can't find a good way to consume them.
> >
> > (Sidenote: yes, I know, that you can/should/whatever consume them on the
> client side, e.g. using javascript. But in my case I need something to
> consume a REST service in the woa's java code.
> >
> > Thanks for any hints,
> > C.U.CW
> > --
> > What are the three enemies of a programmer? Sunlight, oxygen, and the
> appalling roar of the birds.
> >
> > ___
> > 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/cw%40i4innovation.de
> >
> > This email sent to c...@i4innovation.de
>
>
>  ___
> 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/ted.archibald%40gmail.com
>
> This email sent to ted.archib...@gmail.com
>


ATLHttpClientUtilities.java
Description: Binary data
 ___
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: Consuming REST services with a WO app

2014-10-27 Thread Christoph Wick
Sorry (it was too late yesterday):

I found it: 
http://wiki.wocommunity.org/display/documentation/Consuming+REST+services

C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.

On 27.10.2014, at 00:23, CHRISTOPH WICK | i4innovation GmbH, Bonn 
 wrote:

> Hi list,
> 
> is there a webobjects/wonder way to *consume* a REST service in a wonder app?
> 
> All the RESt examples on the wiki show how to produce a REST service using 
> Wonder. But I can't find a good way to consume them.
> 
> (Sidenote: yes, I know, that you can/should/whatever consume them on the 
> client side, e.g. using javascript. But in my case I need something to 
> consume a REST service in the woa's java code.
> 
> Thanks for any hints,
> C.U.CW
> -- 
> What are the three enemies of a programmer? Sunlight, oxygen, and the 
> appalling roar of the birds.
> 
> ___
> 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/cw%40i4innovation.de
> 
> This email sent to c...@i4innovation.de



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
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

ERRestRouteExample not working

2014-10-27 Thread CHRISTOPH WICK | i4innovation GmbH, Bonn
Hi list,

I try to get the "Client" example of the ERREstRouteExample application 
running. But it doesn't work.

Lines 29/30 of "Client.java" are

> ClientCompany c = client.objectWithPath("Company/1.json");
> System.out.println("Client.main: single company = " + c);

But if you let the example run, the output is:

> Client.main: single company = null

so "client.objectWithPath("Company/1.json")" ALWAYS returns null (although the 
URL works, if you call it manually)

After digging into the code, I found the class "ClientCompanyRestDelegate.java" 
with its method

> public Object objectOfEntityWithID(EOClassDescription entity, Object id, 
> ERXRestContext context) {
>   return null;
> }


that is called. So, obviously I get "null".

My questions are now:
- has anyone make this example running?
- or is this whole example broken?

Thx for your help.
C.U.CW
-- 
What are the three enemies of a programmer? Sunlight, oxygen, and the appalling 
roar of the birds.



signature.asc
Description: Message signed with OpenPGP using GPGMail
 ___
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