Multi-page form

2008-03-19 Thread Daniel Brajkovic
Is storing an object in the Session the best way to handle a multi-page form
where people might use the back button to go back (assuming I set the
pagecache to 1).

The reason I am using a session instead of DirectAction is becuase it's a
really long form and users will likely leave the form and come back later. I
plan to store the sessionID in a cookie if allowed.

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

This email sent to [EMAIL PROTECTED]

ERXCheckboxMatrix question

2008-03-19 Thread Daniel Brajkovic
If I have an ERXCheckbox matrix in a form, what is the best way for me to
get the array of selected items inserted into the EditingContext and also
added to both sides of a relationship? I know iteration is one option, but
is there a method somewhere that I am missing?

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

This email sent to [EMAIL PROTECTED]

Re: Binding question

2008-03-18 Thread Daniel Brajkovic
Using WOLips' new add key method, WoLips automatically generated the  
following code for me and it works fine.


public class NewWindow extends com.webobjects.appserver.WOComponent {
private String firstName;

public NewWindow(WOContext context) {
super(context);
}

/**
 * @return the areLikeItemsTaxable
 */
public String firstName() {
return firstName;
}

/**
 * @param areLikeItemsTaxable the areLikeItemsTaxable to set
 */
public void setfirstName(String firstName) {
this.firstName = firstName;
}
}


On Mar 18, 2008, at 10:40 AM, Gustavo Pizano wrote:

Yes I was thinking that jsut that its not working for me I think Im  
making something worng


Im thinking to have this

Text : WOTexField{
//whats the biding here ..

}

and in the .java

have an accessor public void setXXX(Strng s){
...
}

but it doesnt work if i put value = setXXX; becuase setXX its not a  
key... if I put action = setXXX it doesnt work aswell... so what  
biding should I use?



Gus

On Mar 18, 2008, at 10:27 AM, Daniel Brajkovic wrote:

I like to keep them private/protected. Bind the value to the  
accessor method.



(disclaimer: I am a WONewbie)

On Mar 18, 2008, at 10:22 AM, Gustavo Pizano wrote:


Hello

I want to know if ie. I have XXX.WO there i have some WOtext  
fields inside a WOFrom, in the java the keys should always be  
public? or the can be private with some accessor method, or  
protected variable? if so, then how can i bind them?


Gus


___
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:
http://lists.apple.com/mailman/options/webobjects-dev/daniel%40brajkovic.com

This email sent to [EMAIL PROTECTED]


___
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:
http://lists.apple.com/mailman/options/webobjects-dev/gustavpicora%40gmail.com

This email sent to [EMAIL PROTECTED]




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

This email sent to [EMAIL PROTECTED]

Re: Binding question

2008-03-18 Thread Daniel Brajkovic
I like to keep them private/protected. Bind the value to the accessor  
method.



(disclaimer: I am a WONewbie)

On Mar 18, 2008, at 10:22 AM, Gustavo Pizano wrote:


Hello

I want to know if ie. I have XXX.WO there i have some WOtext fields  
inside a WOFrom, in the java the keys should always be public? or  
the can be private with some accessor method, or protected variable?  
if so, then how can i bind them?


Gus


___
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:
http://lists.apple.com/mailman/options/webobjects-dev/daniel%40brajkovic.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]


Re: Build error in Eclipse [SOLVED]

2008-03-17 Thread Daniel Brajkovic
Oops, dropped in the Wonder 5.4 frameworks instead of 5.3.  That took  
care of everything. Sorry.


On Mar 17, 2008, at 10:49 PM, Daniel Brajkovic wrote:

I just did a brand new install of Eclipse 3.3.2, WOlips nightly  
build and the latest Project wonder. I created a new project, an  
EOModel, EOGenerated Classes and then tried to run the Application,  
just to make sure everything is OK. (BTW, I'm using WO 5.3.3)


Well, lo and behold, I get this old familiar error
No ERX_MARKER field in NSMutableArray found.
This means your class path is incorrect. Adjust it so that  
ERExtensions come before JavaFoundation.


I know this happened in XCode, and it did not happen on my old  
computer in Eclipse?


Can someone help?

Also getting a bunch of errors in my _MYyEntity such as

Severity and DescriptionPathResourceLocation
Creation Time   Id
The type NSArray is not generic; it cannot be parameterized with  
arguments 	BenkoLive/Sources/benkollive/app/eo	 
_MyEntity.java	line 369	1205811551157	257






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

This email sent to [EMAIL PROTECTED]

Build error in Eclipse

2008-03-17 Thread Daniel Brajkovic
I just did a brand new install of Eclipse 3.3.2, WOlips nightly build  
and the latest Project wonder. I created a new project, an EOModel,  
EOGenerated Classes and then tried to run the Application, just to  
make sure everything is OK. (BTW, I'm using WO 5.3.3)


Well, lo and behold, I get this old familiar error
No ERX_MARKER field in NSMutableArray found.
This means your class path is incorrect. Adjust it so that  
ERExtensions come before JavaFoundation.


I know this happened in XCode, and it did not happen on my old  
computer in Eclipse?


Can someone help?

Also getting a bunch of errors in my _MYyEntity such as

Severity and DescriptionPathResourceLocation
Creation Time   Id
The type NSArray is not generic; it cannot be parameterized with  
arguments 	BenkoLive/Sources/benkollive/app/eo	 
_MyEntity.java	line 369	1205811551157	257




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

This email sent to [EMAIL PROTECTED]

Re: WO vs. Ruby on Rails

2008-03-14 Thread Daniel Brajkovic
I think Mike Schrag only knows about some project called Wonder.  So  
obviously, he would be of no help.



On Mar 14, 2008, at 9:08 AM, David Avendasora wrote:


Yeah, but do you know anything useful about WO?

On Mar 14, 2008, at 10:05 AM, Mike Schrag wrote:

I'm actually in Richmond, so I might be up for a little hike up to  
the next meeting ...


ms

On Mar 14, 2008, at 9:51 AM, Andrew R. Kinnie wrote:


Greetings,

I am know this has been covered repeatedly, but I just went to a  
mac developers group meeting last night (in Northern Virginia),  
and there was a demonstration of ruby on rails development on a  
mac, and three of the people were gushing about how great it is,  
and no one (other than me. . . to a limited extent) even mentioned  
WO.  Does anyone have any new insight about why people should  
consider WO instead of Ruby on Rails?


It seems everyone everywhere (outside of this list) thinks that WO  
has been left to "whither on the vine" or "had some really  
advanced technology" before being left to whither on the vine, etc.


Ideally, I'd love to be able to do a demo of WO and WOLips/Wonder,  
etc. at a future meeting, but I am not up to the necessary level  
of expertise to field the questions from these guys.  I have  
worked with webobjects on and off over the years, but I'd like a  
better argument than I can make with my unfortunately limited  
recent involvement.


Any suggestions, insight would be helpful.

Thanks!

Andrew
___
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:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



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

This email sent to [EMAIL PROTECTED]




___
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:
http://lists.apple.com/mailman/options/webobjects-dev/daniel%40brajkovic.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]


OpenLaszo & WebObjects

2008-03-13 Thread Daniel Brajkovic

If anyone can answer the questions on my post, that would be great.

http://blog.benkolive.com/2008/03/openlaszlo-webobjects.html

Well, when I started investigating what tools I was going to use to  
develop my site, I discovered OpenLaszlo. Of the free tools I have  
investigated so far, it is by far the easiest and quickest way to  
develop a very attractive front end. And it's completely object-orient  
which should make WebObjects folks feel right at home. Furthermore, it  
deploys as a JSP. It gets better and better. Well almost...


OpenLaszlo has several ways to get data into its front end. It can  
read XML files and through JSP servlets it can access any JDBC  
database from what I could tell. Now for a WebApp where the user just  
retrieves information (e.g. real estate listings), one could create a  
WO app with DirectAction methods that return XML. Great!


However, I would imagine that's not the best way to make a fully  
interactive app. Well, according to the OpenLaszlo ("OL")docs, they  
have a Java-RPC. From what I can tell, your OL app (since it is a  
servlet itself) can access the objects of other Java classes as long  
as the classes are in the the OL app folder. Unfortunately, I'm not a  
Tomcat, J2EE, JSP (whatever) expert...heck, I'm barely a novice. So I  
have no idea how one would actually accomplish this.


But the thought of it is surely exciting. Instead of worrying about  
SOAP or XML, being able to directly access our WO Objects would be the  
greatest thing since sliced bread. If anyone who has done this or  
might have an dea of how to do it. Please post a step-by-step  
tutorial. You would be my saviour and when I sell my app to Google for  
$832 million, I'll make sure you get a piece of the pie!


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

This email sent to [EMAIL PROTECTED]


a WO Blog redux

2008-03-12 Thread Daniel Brajkovic
OK. I guess I should have given you guys the link.  It's been a long  
week.  http://blog.benkolive.com


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

This email sent to [EMAIL PROTECTED]


New WO Blog

2008-03-12 Thread Daniel Brajkovic
I know I'm a newbie, but I thought I would share my WebObjects-based  
application development experience with the world. Hopefully at least  
one person other than me will read it. :)


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

This email sent to [EMAIL PROTECTED]


Re: Proble with tutorial

2008-03-11 Thread Daniel Brajkovic
Well Gus, after all these emails, I'll throw in my beginner's advice  
that I learned today. Use WO 5.3.3  It seems that 5.4 still has bugs  
that need to be worked out.
I was having problems after I "upgraded" (or should I just say  
changed) today to 5.4.  And had many problems with the SQL in Entity  
Modeler.  Download the WebOjects 5.3.3 update and use a package  
extractor to get all the frameworks. Download the Wonder 5.3  
Frameworks and put those in place. Since I've gone back to 5.3.3 this  
evening. No problems at all!


(Now, I'll give those migration tools a shot.)

On Mar 11, 2008, at 9:41 PM, Gustavo Pizano wrote:


Damn nothing
I read all in the link you say and Im doing all... dunno whats going  
on.. I can't get that  line you told me about


Gus

On Mar 11, 2008, at 9:16 PM, Chuck Hill wrote:



On Mar 11, 2008, at 7:13 PM, Gustavo Pizano wrote:


I dont get that first line when I generate the sql

so the problem is soemwhere else... Im following the instrucciont  
form the manual.. whats the url you have?


At this point, I have no idea what it is that you are doing. :-)


Try following these instructions:

http://wiki.objectstyle.org/confluence/display/WOL/Using+Entity+Modeler

Chuck



On Mar 11, 2008, at 9:00 PM, Chuck Hill wrote:

Are you just copying _part_ of the SQL out of Entity Modeler?   
What you have below gives me the same error that it give you.   
BUT if I add the first line that Entity Modeler generates:


SET TRANSACTION ISOLATION LEVEL SERIALIZABLE, LOCKING PESSIMISTIC;

Then it works:

--
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE, LOCKING PESSIMISTIC;

CREATE TABLE "DisplayBoard" (
"bigImage" BLOB,
	"creationDate" TIMESTAMP CONSTRAINT  
NOT_NULL_DisplayBoard__creationDate NOT NULL,

"description" CLOB,
"eoid" INTEGER CONSTRAINT NOT_NULL_DisplayBoard__eoid NOT NULL,
	"lastModifiedDate" TIMESTAMP CONSTRAINT  
NOT_NULL_DisplayBoard__lastModifiedDate NOT NULL,

"mimeType" VARCHAR(20),
"thumbnail" BLOB,
	"title" VARCHAR(200) CONSTRAINT NOT_NULL_DisplayBoard__title NOT  
NULL

);

SET UNIQUE = 100 FOR "DisplayBoard";

ALTER TABLE "DISPLAYBOARD" ADD CONSTRAINT  
PRIMARY_KEY_DisplayBoard_eoid PRIMARY KEY ("EOID") NOT DEFERRABLE  
INITIALLY IMMEDIATE;

--

That is a bad error message, but what it means is that you have  
the wrong isolation level (I think) for that type of statement.


Chuck



On Mar 11, 2008, at 6:51 PM, Gustavo Pizano wrote:


This is the sql that EM is generation

CREATE TABLE "DisplayBoard" (
"bigImage" BLOB,
	"creationDate" TIMESTAMP CONSTRAINT  
NOT_NULL_DisplayBoard__creationDate NOT NULL,

"description" CLOB,
"eoid" INTEGER CONSTRAINT NOT_NULL_DisplayBoard__eoid NOT NULL,
	"lastModifiedDate" TIMESTAMP CONSTRAINT  
NOT_NULL_DisplayBoard__lastModifiedDate NOT NULL,

"mimeType" VARCHAR(20),
"thumbnail" BLOB,
	"title" VARCHAR(200) CONSTRAINT NOT_NULL_DisplayBoard__title  
NOT NULL

);

SET UNIQUE = 100 FOR "DisplayBoard";

ALTER TABLE "DISPLAYBOARD" ADD CONSTRAINT  
PRIMARY_KEY_DisplayBoard_eoid PRIMARY KEY ("EOID") NOT  
DEFERRABLE INITIALLY IMMEDIATE;


the verification says there are no error


Gus

On Mar 11, 2008, at 8:33 PM, Chuck Hill wrote:

Unzip it and replace the FrontBasePlugIn.framework that is on  
your app's classpath.



On Mar 11, 2008, at 6:27 PM, Gustavo Pizano wrote:


Should I just replace the FrontBase.plugin folder?

Gus

On Mar 11, 2008, at 7:55 PM, Chuck Hill wrote:


Here is mine, try it.



On Mar 11, 2008, at 5:28 PM, Gustavo Pizano wrote:


This is what I have

rw-r--r--  1 GustavPicora  staff  45241 Apr 18  2006  
frontbaseplugin.jar

-rw-r--r--@ 1 root  staff  11907 Mar 10 00:22 src.jar


Gus
On Mar 11, 2008, at 12:10 PM, Chuck Hill wrote:


Does yours look like this (might be in /Library):

ls -l  ~/Library/Frameworks/FrontBasePlugIn.framework/ 
Resources/Java/

total 72
-rw-r--r--  1 chuck  wheel  23392 Feb 28 20:06  
FrontBasePlugIn.jar

-rw-r--r--  1 chuck  wheel  11446 Feb 28 20:06 src.jar

Chuck


On Mar 11, 2008, at 10:02 AM, Gustav P wrote:

Hello, well the problme persist, I keep trying to execute  
the SQL but the IO conection error still is comming out.  
The plugin FrontBase plugin is the one I have checked. is  
there any other?



Regards
Gustavo



On Tue, Mar 11, 2008 at 11:56 AM, Guido Neitzer <[EMAIL PROTECTED] 
> wrote:

On 11.03.2008, at 15:03, Gustavo Pizano wrote:

> Ok so what to do?
> Change the db manager?

I was only saying that the FrontBasePlugIn from Project  
WOnder has no
problem with WO 5.4. If you installed Project WOnder and  
included the
plugin from /Library/Frameworks it should be the one from  
Wonder.


I haven't followed the rest of the discussion, so I don't  
know much

about the rest of the problem.

cug

--
http://www.event-s.net


___
Do not post admin requests to the list. They will be  
ignored.
Webobjects-dev mailing list  (Webobject

Re: Another EO question

2008-03-11 Thread Daniel Brajkovic
Wow, thanks for all of that.  That's way too much for such a newbie  
like me. I'll wait until I get more comfortable with programming WO in  
general.


OK, more important question though asked earlier but never answered,  
why is Entity Modeler putting double quotes ("myColumnName") around my  
column names when generating SQL command? When I try to execute then,  
I get errors.  When I change my frameworks back to 5.3, it stops  
putting the quotes and generates the SQL just fine!  Did I forget to  
do something?


Dan

On Mar 11, 2008, at 4:02 PM, Mike Schrag wrote:


and this (mentioned at the end of the first docs):
http://webobjects.mdimension.com/wonder/api/er/extensions/migration/ERXMigrationDatabase.html


On Mar 11, 2008, at 4:57 PM, David LeBer wrote:



On 11-Mar-08, at 4:50 PM, David LeBer wrote:



On 11-Mar-08, at 4:31 PM, Daniel Brajkovic wrote:


How does one utilitize the migration tools that wonder includes?


The instructions here are pretty comprehensive:

<http://webobjects.mdimension.com/wonder/api/er/extensions/migration/package-summary.html 
>


Also look at this thread: <http://sourceforge.net/mailarchive/message.php?msg_id=81C9D35E-C8FF-4071-B907-B04F28310901%40mac.com 
>


;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.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:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
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:
http://lists.apple.com/mailman/options/webobjects-dev/daniel%40brajkovic.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]


Another EO question

2008-03-11 Thread Daniel Brajkovic

How does one utilitize the migration tools that wonder includes?
___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Entity Modeler

2008-03-11 Thread Daniel Brajkovic

Hi all,

I've been using 5.3 and finally switched to 5.4 and am having a  
problem with the SQL generator in the Entity Modeler in WOLips.  The  
SQL it generates has quotes around the column names and SQL does not  
like this.  Am I doing something wrong?  Did I not update something  
properly?


Dan

p.s. I'll be the first to say, I'm no programming expert.  But I tried  
Rails yesterday for fun, and it was much harder to learn the WO has  
been.  What's all the fuss about?

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

This email sent to [EMAIL PROTECTED]


Re: A little bit of Ajax in a 5.3 app?

2008-02-26 Thread Daniel Brajkovic
OK Mike, I've now spent 1/2 hour looking for documentation on how you  
added the "key" to your .java file in your video from the wod editor.  
I'm a newbie to Eclipse and for the life of me I can't find a command  
or keyboard shortcut that does that.


This question goes back to the thread about devtools. I have always  
tinkered with WO because it was so easy for a non-programmer like me.  
I am trying to learn WOLips and Eclipse.  One way is by going step by  
step through the old Apple Docs and trying to repeat functionality in  
Eclipse. The autocompletion nearly replaces the ability to quickly  
bind objects to EO attributes. But my question above and your use of  
something that's so basic and also so undocumented (unless I am  
completely missing something) is probably one reason that non- 
programmers are attempting to hold on to the old tools.


You experienced WO/Java programmers should take it easy on the rest of  
us hobbyists (as we were called).  And instead of lambasting us and  
telling us to "Just switch already," help us.  I really like WO  
because I have been able to quickly build little databased web apps. I  
tried using Rails, and found that to be a disaster. The arrogant folks  
at 37Signals assumes that everyone who wants to make dynamic websites  
must be experienced programmers.


Unfortunately, since I upgraded to Leopard, I had no choice but to  
learn to use WOLips.  But what so many of you "real programmers" take  
for granted, I haven't a clue.  Lately, I have seen answers to  
questions like, "just look at the Javadocs" with no further  
explanation among the many very helpful posts. That sort of "What an  
idiot you must be when the answer is right in front of you" is  
completely ignorant of the fact that not everyone knows what to do  
with the documentation and that some of us, especially me, learn more  
by example, than by reading the JavaDocs.


Mike's video is clearly an example that using Eclipse/WOLips is fast,  
even faster than the old tools and for the first time I now see how I  
can use Ajax in my WebApp. What a great example. More please.



On Feb 26, 2008, at 2:32 PM, Mike Schrag wrote:

I made a quicky screencast of going from zero (where zero is defined  
as "I have WOLips and WO installed") to a super lame hello-world-ish  
Ajax.framework app.  This is mostly because I wanted to play with  
ScreenFlow (which is one of the coolest apps ever made, btw).   
Caveats: This is completely unscripted, and just recorded straight  
through without any cuts, and to top it off, I didn't actually  
really PLAN what I was going do to beforehand, so the couple  
uncomfortable pauses are me trying to decide what I actually wanted  
to show -- nothing but the highest quality from Team Wonder :) .   
This does, however, show the new Add Key/Add Action in WOLips, whose  
dialogs will look awfully familiar to WOB folks.


http://webobjects.mdimension.com/wonder/screencasts/TinyAjaxApp.mov

On Feb 26, 2008, at 10:50 AM, Mike Schrag wrote:


Using Ajax framework should be relatively painless ...

1) Add Ajax, ERExtensions, and ERJars framework to your app
2) make your app extend ERXAjaxApplication
3) make your session extend ERXAjaxSession
4) if you want partial form submission, in your Application  
setContextClassName(ERXAjaxContext.class.getName());

5) profit

ms

On Feb 26, 2008, at 10:18 AM, Ken Anderson wrote:


Everyone,

I have a 5.3 app using stable WOLips that has hundreds of  
components and does not currently use Wonder.  I have a few sub- 
components that have multiple dependent pop-ups, and I do a  
submit(); onChange on those pop-ups to refresh the page.


Unfortunately, the pages have gotten pretty big, and the constant  
refresh is getting tedious.  I was wondering if anyone has a road- 
map where I can use a tiny bit of Ajax in a single sub-component  
to improve the user experience (it's a maintenance app...so  
User==Me).  I don't have a ton of time, and can't really risk  
moving to 5.4 or reworking the entire app.


Any thoughts?

Thanks,
Ken

___
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:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
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:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com

This email sent to [EMAIL PROTECTED]



___
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:
http://lists.apple.com/mail

Re: Bringing back the dev tools

2008-02-23 Thread Daniel Brajkovic
I am not a programmer so I  have no idea what it would take to do  
this. But what about starting with Kompozer open source project and  
turning it into a WO Builder replacement.


OR has anyone asked Apple to release WOBuilder Source code?

On Feb 23, 2008, at 9:47 PM, Pascal Robert wrote:



Le 08-02-23 à 21:29, Q a écrit :

I am curious. Is it mainly drag and drop binding people miss or  
something more?


According to the surveys, this is the biggest thing that people miss  
from WO Builder. ___

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:
http://lists.apple.com/mailman/options/webobjects-dev/daniel%40brajkovic.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]


Re: looking for relationship examples

2008-02-15 Thread Daniel Brajkovic
I would start by reading an introduction book to WebObjects. Each one  
deals with this topic. In case you can't find one, start with Apple's   
documentation: http://developer.apple.com/documentation/DeveloperTools/WebObjects-date.html#/ 
/apple_ref/doc/uid/TP3440-TP3436-TP3592


Although examples of the mechanics of how to create a relationship  
mostly refer to using WebObjects with  Xcode which of course has been  
deprecated, the theory is the same.


You just need to apply the same ideas in Wolips. In Wolips, it's just  
as easy, right click on one of the tables involved in the relationship  
and select "New Relationship" select your fields and your done!


If you know nothing about relationships and Enterprise Objects though,  
again start with either Apple's Documentation or a book. My favorite  
beginner's book, Josh Marker's WebObjects 5, is out of print though  
you can find it at some libraries. Can't PeachPit print on demand? But  
there are others.


A good project to add to the WebObjects Wiki, a beginner's guide to  
WO. I'll get started on that right away! :)


On Feb 15, 2008, at 10:17 AM, Theodore Petrosky wrote:


I am using WO for a couple of internal job lists and
such. I have limited my app to simple table
manipulations. I want to finally spend some time
understanding creating and using to many and to one
relationships. I would love to see and examine any
(simple) examples of a two table join... I am assuming
that multiple table joins are similar to a two table
join (just more tables).

Any help starting (even pointers to web pages would be
appreciated).


Ted


  


Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

___
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:
http://lists.apple.com/mailman/options/webobjects-dev/daniel%40brajkovic.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]


Re: DirectAction & User login Questions. [Solved]

2008-02-15 Thread Daniel Brajkovic
Well I discovered my problem here.  Very stupid of me. For some  
unknown reason I selected ERXApplication instead of Application when  
WOLips asked me which class containing main. Obviously I selected  
ERXApplication. And then just kept hitting the run button. Finally, I  
did a run as instead and then selected Application. And now the  
initialization code works and is defaulting to DiractActions!



On Feb 14, 2008, at 12:21 AM, Guido Neitzer wrote:


On 13.02.2008, at 22:33, Daniel Brajkovic wrote:

I think people might have misunderstood what I was trying to ask.  
Specifically, I thought that this line:


	setDefaultRequestHandler  
(requestHandlerForKey( directActionRequestHandlerKey() ));


was supposed to set the default handler to "wa" so when I type into  
my browser http://127.0.0.1:5/cgi-bin/WebObjects/Benko.woa the  
console should return a "false" based on the code below.


It does without a problem for me with a VERY similar app - just as  
easy as yours.


cug

--
Real-World WebObjects class at the Big Nerd Ranch
March 2008, Frankfurt, Germany
http://www.bignerdranch.com/classes/webobjects.shtml





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

This email sent to [EMAIL PROTECTED]


Re: mySQL 5

2008-02-14 Thread Daniel Brajkovic
I'm curious as to why you moved from openbase. MySQL seems more  
complicated to administer especially regarding clusters and also seems  
more expensive if you want any support. I am creating a new webapp and  
was planning to use openbase.


Sent from my iPhone

On Feb 14, 2008, at 5:17 AM, Simon McLean <[EMAIL PROTECTED]> wrote:

we use 5 (we didn't upgrade from 4, we moved from openbase). no  
problems at all with webobjects.


simon

On 14 Feb 2008, at 11:11, David Griffith wrote:


Hi All,

I was wondering if anyone that is using mySQL has upgraded from  
mySQL 4 to mySQL 5?  If so, have you noticed any bugs or pitfalls?   
Our hosting service is going to upgrade us soon and I do remember  
that after the last upgrade we had some major problems due to some  
changes to the data types in mySQL.  (i.e. I remember it was  
something to do with the new TEXT data type.


Any pointers or notes would be much appreciated.

Kind regards,
David Griffith.

___
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:
http://lists.apple.com/mailman/options/webobjects-dev/simon_mclean%40mac.com

This email sent to [EMAIL PROTECTED]


___
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:
http://lists.apple.com/mailman/options/webobjects-dev/daniel%40brajkovic.com

This email sent to [EMAIL PROTECTED]

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

This email sent to [EMAIL PROTECTED]


Re: DirectAction & User login Questions.

2008-02-13 Thread Daniel Brajkovic
I think people might have misunderstood what I was trying to ask.  
Specifically, I thought that this line:


	setDefaultRequestHandler  
(requestHandlerForKey( directActionRequestHandlerKey() ));


was supposed to set the default handler to "wa" so when I type into my  
browser http://127.0.0.1:5/cgi-bin/WebObjects/Benko.woa the  
console should return a "false" based on the code below. Instead it  
returns true. It does return false when I go to http://127.0.0.1:5/cgi-bin/WebObjects/Benko.woa/wa 
  though. So it seems to me that the default handler is still "wo"  
and isn't getting set to "wa".


public class Application extends ERXApplication {
public static void main(String[] argv) {
ERXApplication.main(argv, Application.class);
}

public Application() {
NSLog.out.appendln("Welcome to " + name() + " !");
/* ** put your initialization code in here ** */
setDefaultRequestHandler (requestHandlerForKey( "wa" ));
}
}


public class DirectAction extends ERXDirectAction {
public DirectAction(WORequest request) {
super(request);
}

public WOActionResults defaultAction() {
WOComponent page = pageWithName(Main.class.getName());
return page;
}
}


public class Session extends ERXSession {
private static final long serialVersionUID = 1L;

public Session() {
}
}

public class Main extends WOComponent {
private static final long serialVersionUID = 1L;

public Main(WOContext context) {
super(context);

System.out.println(hasSession());
}

}


my Main WO:



Untitled


Hello World



no bindings!

On Feb 13, 2008, at 9:56 PM, Guido Neitzer wrote:


On 13.02.2008, at 19:39, Lachlan Deck wrote:

WOSubmitButton is fine -- just bind it's directActionName rather  
than action to whatever's appropriate.


Right - it's just so easy to get a session with these ... Something  
to be careful about, lots of the dynamic input elements create  
sessions.


cug

--
Real-World WebObjects class at the Big Nerd Ranch
March 2008, Frankfurt, Germany
http://www.bignerdranch.com/classes/webobjects.shtml



___
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:
http://lists.apple.com/mailman/options/webobjects-dev/daniel%40brajkovic.com

This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]

Re: DirectAction & User login Questions.

2008-02-13 Thread Daniel Brajkovic
Thanks. Re: your question: I do MOT want multiple people logging in at  
the same time using a single login. Username sharing.


Sent from my iPhone's

On Feb 13, 2008, at 3:41 PM, Andrew Lindesay <[EMAIL PROTECTED]> wrote:


Hello Daniel;

I want the app to create no session until a user successfully logs  
in. Based upon what I have found this is the right way to do it:


   public Application() {
   NSLog.out.appendln("Welcome to " + name() + " !");
   /* ** put your initialization code in here ** */
   setDefaultRequestHandler (requestHandlerForKey 
( directActionRequestHandlerKey() ));

   }


You need to be careful that nothing you are doing in Main is causing  
a session to be created.  Try putting a breakpoint in the session  
constructor to understand why this is happening.  The default DA  
should look for the authentication details and respond with the  
right component if the authentication was successful; otherwise  
return Main without doing anything that could create a session.


On the WebObjects Wiki/confluence, it is stated that people typing  
in URLs with your components could cause problems. So how do I keep  
people from doing so?


See my framework "LEWOStuff"...

   LEWOApplication.createRequest(..)

This has a javadoc note about it.

If I have a user/passwords login app, how do I keep people from  
using a common username and password simultaneously on different  
computers? There will be multiple application instances, on several  
servers.


Can you define what you want here -- you want people to be able to  
login from only one client host using a web browser?


cheers.

___
Andrew Lindesay
technology : www.lindesay.co.nz
business : www.silvereye.co.nz




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

This email sent to [EMAIL PROTECTED]


DirectAction & User login Questions.

2008-02-13 Thread Daniel Brajkovic

Hi,

I am working on a pretty significant WO App and you will likely see  
lots of questions from me over the next few weeks (months). I've done  
some minor apps, and am no WO genius.



So Question 1,

I want the app to create no session until a user successfully logs in.  
Based upon what I have found this is the right way to do it:


public Application() {
NSLog.out.appendln("Welcome to " + name() + " !");
/* ** put your initialization code in here ** */
		setDefaultRequestHandler  
(requestHandlerForKey( directActionRequestHandlerKey() ));

}

However, after doing so I run my app, and it goes straight to main and  
creates a session. I know this because I have a string bound to  
hasSession().  When I manually add wa to the URL, the same page says  
false to hasSession().


WO 5.4, Latest Project Wonder, WoLips, and Eclipse, OS X 10.5.

Question 2:
On the WebObjects Wiki/confluence, it is stated that people typing in  
URLs with your components could cause problems. So how do I keep  
people from doing so?


Question 3:
If I have a user/passwords login app, how do I keep people from using  
a common username and password simultaneously on different computers?  
There will be multiple application instances, on several servers.


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

This email sent to [EMAIL PROTECTED]

Re: Need help understanding XML handling

2007-08-09 Thread Daniel Brajkovic
Say I have the Authors/Books example from Apple's Docs. I want to be  
able to input search criteria, send that via XML to WOapp it perform  
a fetch based on the criteria and return an XML to the app requesting  
it. Also I want to be able to add/delete/edit authors and add/delete/ 
edit books. I am tgrying this with SOAP too.  I am new to making  
WebObjects work with other apps, but that should be obvious.


On Aug 9, 2007, at 10:09 AM, Daniele Corti wrote:




2007/8/9, Daniel Brajkovic <[EMAIL PROTECTED]>:

According to Apple's website:
XML interchange

 * Allows your applications to easily consume and generate XML
data streams
 * Interoperates with other XML-based applications

I am still trying to figure this out with all the random info out
there but can't seem to put it together. Are there any good tutorials
that anyone knows of that can help me.

I want to be able to grab data from a WebObjects app in XML format.
I've done that. What I can't seem to figure out is how WebObjects
handles an XMLHTTPRequest that wants to post data to the webobjects
app and eventually into your database.

Wait, in WO, do you need to send or receive XML?



I think I figured out how to
do it with a JSP in between. But how does one do it directly?

A step-by-step tutorial would be great.

Dan
___
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:
http://lists.apple.com/mailman/options/webobjects-dev/ildenae% 
40gmail.com


This email sent to [EMAIL PROTECTED]



--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly  
if you open

WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young


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

This email sent to [EMAIL PROTECTED]

Need help understanding XML handling

2007-08-09 Thread Daniel Brajkovic

p.s. I am using XCode. Haven't taken the time to learn Eclipse yet.


According to Apple's website:
XML interchange 

* Allows your applications to easily consume and generate XML  
data streams

* Interoperates with other XML-based applications

I am still trying to figure this out with all the random info out  
there but can't seem to put it together. Are there any good tutorials  
that anyone knows of that can help me.


I want to be able to grab data from a WebObjects app in XML format.  
I've done that. What I can't seem to figure out is how WebObjects  
handles an XMLHTTPRequest that wants to post data to the webobjects  
app and eventually into your database. I think I figured out how to  
do it with a JSP in between. But how does one do it directly?


A step-by-step tutorial would be great.

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

This email sent to [EMAIL PROTECTED]


Need help understanding XML handling

2007-08-09 Thread Daniel Brajkovic


According to Apple's website:
XML interchange 

* Allows your applications to easily consume and generate XML  
data streams

* Interoperates with other XML-based applications

I am still trying to figure this out with all the random info out  
there but can't seem to put it together. Are there any good tutorials  
that anyone knows of that can help me.


I want to be able to grab data from a WebObjects app in XML format.  
I've done that. What I can't seem to figure out is how WebObjects  
handles an XMLHTTPRequest that wants to post data to the webobjects  
app and eventually into your database. I think I figured out how to  
do it with a JSP in between. But how does one do it directly?


A step-by-step tutorial would be great.

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

This email sent to [EMAIL PROTECTED]


Re: Webobjects Applications

2007-08-08 Thread Daniel Brajkovic

XCode is for Mac only, not Windows.


On Aug 8, 2007, at 9:25 AM, Daniele Corti wrote:




2007/8/8, Guido Neitzer <[EMAIL PROTECTED]>:
On 08.08.2007, at 06:48, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]
systems.com> wrote:

> Can anybody tell me that where could I find the Webobjects 5.2 for
> windows for free?
>

WebObjects 5.2 was never free. You have to use 5.3 if you want it for
free.

It seems to me that if you subscrive to the Apple developer site  
you can download XCode with WebObjects 5.2, inside


cug
___
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:
http://lists.apple.com/mailman/options/webobjects-dev/ildenae% 
40gmail.com


This email sent to [EMAIL PROTECTED]



--
Daniele Corti
AIM: S0CR4TE5
Messenger: [EMAIL PROTECTED]

--
Computers are like air conditioners -- they stop working properly  
if you open

WINDOWS

--
What about the four lusers of the apocalypse? I nominate:
"advertising", "can't log in", "power switch" and "what backup?"
--Alistair Young
 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/daniel% 
40brajkovic.com


This email sent to [EMAIL PROTECTED]


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

This email sent to [EMAIL PROTECTED]

Re: No database connection

2007-08-01 Thread Daniel Brajkovic
Sure, sorry about that. After one builds his application and creates  
his .jsp file per Apple's docs, one of the products in the Servlet  
Resources->WEB-INF folder will be a doc called web.xml.  In it you  
will find the following:


  
The data source to be used by EOF. If there are  
multiple data sources,
 then the definition below must be used to configure  
which JDBC URL (Model) should
 use which data source. If EOF should use a JDBC  
driver directly, this section must be commented out

jdbc/DefaultDataSource
javax.sql.DataSource
Container
  

Since I used XCode to create my EOModel and I specified the  
connection in it when i set it up, I just commented this section out  
as it says to do in the description. And Viola! my app works  
beautifully.


Sidebar, I've seen some posts (including my own) about how to use  
WebObjects with OpenLaszlo. While I am sure there are several  
different ways (SOAP, XML-RPC, etc) I am using JSP as a go between.  
So far I got it to populate a window of info from a WebObjects  
component. Next step (no pun intended) will be to invoke direct  
actions (e.g. add, edit, delete). Should have that test done tonight.


If there's an easier way, I could find no tutorial or combination of  
tutorials to show me the way.


On Aug 1, 2007, at 3:47 PM, Chuck Hill wrote:

 Can you post what was wrong so that others can benefit from it in  
the future?


Thanks
Chuck


On Aug 1, 2007, at 1:34 PM, Daniel Brajkovic wrote:

Figured it out. Had to comment out a section in the web.xml file.   
It works now. Thanks.



On Aug 1, 2007, at 1:42 PM, Chuck Hill wrote:

It is probably a classpath problem: lack of JDBC driver or lack  
of EOF plugin.  Try adding the attached class and see if it tells  
you anything useful.


Chuck




On Aug 1, 2007, at 11:28 AM, Daniel Brajkovic wrote:


This is killing me and it's holding up my entire project.

I have written a simple WO app and it works fine when i build  
and run it. But I want it to wo works with JavaServer Pages and  
so I am deploying it in a servlet. A simple Hello World app  
works fine. But as soon as I try to access a db app I get this:


Error: 	java.lang.IllegalStateException: _obtainOpenChannel --  
com.webobjects.eoaccess.EODatabaseContext  
[EMAIL PROTECTED]: failed to open  
database channel. Check your connection dictionary, and ensure  
your database is correctly configured.


Does anyone know how to fix this?

Dan
___
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:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 
40global-village.net


This email sent to [EMAIL PROTECTED]



--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve  
specific problems.

http://www.global-village.net/products/practical_webobjects










--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects








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

This email sent to [EMAIL PROTECTED]


Re: No database connection

2007-08-01 Thread Daniel Brajkovic
Figured it out. Had to comment out a section in the web.xml file.  It  
works now. Thanks.



On Aug 1, 2007, at 1:42 PM, Chuck Hill wrote:

It is probably a classpath problem: lack of JDBC driver or lack of  
EOF plugin.  Try adding the attached class and see if it tells you  
anything useful.


Chuck




On Aug 1, 2007, at 11:28 AM, Daniel Brajkovic wrote:


This is killing me and it's holding up my entire project.

I have written a simple WO app and it works fine when i build and  
run it. But I want it to wo works with JavaServer Pages and so I  
am deploying it in a servlet. A simple Hello World app works fine.  
But as soon as I try to access a db app I get this:


Error: 	java.lang.IllegalStateException: _obtainOpenChannel --  
com.webobjects.eoaccess.EODatabaseContext  
[EMAIL PROTECTED]: failed to open  
database channel. Check your connection dictionary, and ensure  
your database is correctly configured.


Does anyone know how to fix this?

Dan
___
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:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 
40global-village.net


This email sent to [EMAIL PROTECTED]



--

Practical WebObjects - for developers who want to increase their  
overall knowledge of WebObjects or who are trying to solve specific  
problems.

http://www.global-village.net/products/practical_webobjects







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

This email sent to [EMAIL PROTECTED]


No database connection

2007-08-01 Thread Daniel Brajkovic

This is killing me and it's holding up my entire project.

I have written a simple WO app and it works fine when i build and run  
it. But I want it to wo works with JavaServer Pages and so I am  
deploying it in a servlet. A simple Hello World app works fine. But  
as soon as I try to access a db app I get this:


Error: 	java.lang.IllegalStateException: _obtainOpenChannel --  
com.webobjects.eoaccess.EODatabaseContext  
[EMAIL PROTECTED]: failed to open  
database channel. Check your connection dictionary, and ensure your  
database is correctly configured.


Does anyone know how to fix this?

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

This email sent to [EMAIL PROTECTED]


JSP with WebObjects Question

2007-07-31 Thread Daniel Brajkovic
I am trying to figure out if I can use a particular combination of  
JSP and WebObjects. I have read and understood Apple's Docs  
reagarding this but it doesn't give an example of what I want to do.


From within a JSP, can on access a method create in WO without  
returning a WO html page. For example:


I have a WO Component that grabs data from OpenBase, shows the data  
in a WORepitition, and has Update, delete, and Add buttons and  
associated methods.


Now I want to use a JSP the get the data from WO, and the JSP to be  
able to invoke those methods.


I am trying to do this because I have another app that works easily  
with JSP and getting it to work with WO is way beyond my abilities.


Can someone give me a quickie tutorial on how to do this?

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

This email sent to [EMAIL PROTECTED]


Running Totals

2007-07-30 Thread Daniel Brajkovic
Does anyone know of a way I can have a running total in WO  
repetition?  Maybe in Javascript? Because I'd want it to be pretty  
dynamic.  Change a column 2 value and all the column 3 values would  
change appropriately. For the life of me i just can't figure out a way.



For Example

Data1 $12.00
Data2 $14.00
Data3 $20.00

A new 3rd column would read:

Data1 $12.00 $12.00
Data2 $14.00 $26.00
Data3 $20.00 $46.00 ___
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:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Newbie-WebObjects XML

2007-07-27 Thread Daniel Brajkovic

I want to use WebObjects with OpenLaszlo which uses XML.

Can anyone help point me in the right direction of learning 1)how to  
produce and consume XML with WebObjects?

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

This email sent to [EMAIL PROTECTED]