Ramsey,
Could you try the following please:
- create a new project, using wonder template not d2w wonder
- add frameworks JavaDirectToWeb, JavaDTWGeneration, JavaEOProject &
ERDirectToWeb
- inlcude a eomodler file and set the default request handler for the
project to direct action
- within the main component, add a erd2wlist and bind an array of
objects fetched from your db
- run the app and see if the inspect buttons within the list on your
main page function as expected?
Thanks,
Mark
Sent from my iPhone
On 18 Aug 2009, at 01:16, Ramsey Lee Gurley <[email protected]> wrote:
Hi Mark,
There is a list binding on ERD2WList, but as best I can tell, there
doesn't appear to be an entity (or entityName) binding. Perhaps I'm
mistaken... Anyway, I think if you have a recent version of
eclipse, the Wonder D2W project template will 'just work'. I just
launched a bare bones Wonder D2W test app and the inspect icons
click okay here. All I did was add a model, a jdbc jar, and the
following to main...
--HTML
<webobject name = "D2WList"></webobject>
--WOD
D2WList: ERD2WList {
list = childList;
}
--Java
public NSArray<Child> childList() {
return EOUtilities.objectsForEntityNamed(ec, Child.ENTITY_NAME);
}
Perhaps you have something invisible floating over your icons in
css? Try right clicking on the icons and using WebKit's web
inspector to see if something is blocking the click perhaps. If you
can see the url, paste it into the address bar and see if that gets
you to the inspect page. If you can see them, perhaps they are
working and something else is blocking you.
Ramsey
On Aug 17, 2009, at 9:05 AM, Mark Ainge wrote:
Ramsey,
I have a wocomponent, in which I have embedded a erd2wlist. I have
bound the erd2wlist's list and entity and the list displays data
just fine from within the component. However, there are some
inspect (magnifying) icons next to each item which when clicked
don't do anything? Application works, does not crash etc, just
doesn't show a d2w inspect page.
However, when i create and return a listpageinterface from the d2w
factory the inspect icon buttons work just fine. Ie the page is a
listinterfacepage not contained within another component.
My project is constructed with the wonder helper in eclipse. I also
have included in the build path the three frameworks per apple docs
to enable d2w integration.
I'm working under the assumption that I'm missing a step.
Thanks,
Mark
Sent from my iPhone
On 17 Aug 2009, at 13:30, Ramsey Lee Gurley <[email protected]> wrote:
The select component would be useful if you are setting up
something like a master detail interface. You would have a select
component followed by an inspect component bound to the selected
object.
Please give more details regarding how the inspect button is not
functioning. Is it not visible, not working, causing a crash, ??
Also, are you using Wonder of just plain vanilla WebObjects?
Ramsey
On Aug 17, 2009, at 2:57 AM, Mark Ainge wrote:
Daniel,
What object from the listpageinterface do you bind to the
selectpage.selectedObject?
Mark
Sent from my iPhone
On 17 Aug 2009, at 04:17, Daniel Mejía <[email protected]>
wrote:
Mark,
May be D2WSelect component could help you, You can specify the
selectedObject binding.
Saludos,
Daniel.
On 16/08/2009, at 04:38 p.m., Mark Ainge wrote:
Daniel,
I did toy with the idea but couldn't see how to obtain a
reference to the object being clicked so could not set the
ListPageInterface.setObject()
?
Thanks,
Mark
Message: 1
Date: Sat, 15 Aug 2009 15:45:28 -0500
From: Daniel Mej?a <[email protected]>
Subject: Re: Webobjects-dev Digest, Vol 6, Issue 754
To: [email protected]
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
Mark,
Have you tried to assign the action binding with a method to do
what
you want to do with the selected EO?
Saludos,
Daniel.
On 15/08/2009, at 02:08 p.m., [email protected]
wrote:
> From: Mark Ainge <[email protected]>
> Date: 15 de agosto de 2009 05:03:56 a.m. GMT-05:00
> To: [email protected]
> Subject: Re: D2W Question, Embedding D2WList in non D2W
Component
>
>
> I have embedded a D2WList within a standard statefull
component, see
> below
>
>
> <webobject name = "PageWrapper">
> <webobject name = "NewsList"></webobject>
> </webobject>
>
> PageWrapper : PageWrapper {
> pageName = "News";
> }
>
> NewsList : D2WList {
> list = allNews2;
> entityName = "News";
> }
>
> allNews2 returns an NSArray containing news objects.
>
> The list displays all data OK within page, BUT the inspect
buttons
> do not function like they would in a stand alone D2WListPage.
>
> I'm clearly missing a step to hookup this option when
embedding pages.
>
> Can anyone point me in the right direction?
>
> Thanks,
>
> Mark
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rgurley%40mac.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]