I don't think you're going to find a plethora of components to - display- a list using a WOBrowser. Being a form control, it implies submitting a value. Using it outside of a form is completely non standard and counter intuitive to end users. The only standard components that use it which I'm aware of are query and edit components. Perhaps you might like a table or scrollable ul? [Sorry, I live to validate ;-)]

That said, if you have to use a WOBrowser, I would suggest watching David LeBer's podcast from WOWODC 09 demonstrating the use of the D2WCustomComponent. You can use that to insert a component that has a WOBrowser in the HTML, 'object' and 'key' bindings, and a method to fetch your to-many list using kvc addtions... Something like

----HTML
<webobject name="Browser"/>

---WOD
Browser: WOBrowser {
        list = list;
        item = item;
        displayString = item.userPresentableDescription;
}

----Java
public Object object;
public String key;
public Object item;

public NSArray list() {
return (NSArray)NSKeyValueCodingAddtions.Utility.valueForKeyPath(object, key);
}

Ramsey

On Aug 13, 2009, at 12:46 AM, Daniel Beatty wrote:

Greetings all,
This may be a David (LeBer or Holt question). How does one active the WO Browser effect in the inspect task for to-many relations? My first guess would be the Rule Modeler, but I get stuck after establishing a LHS of
(task = "inspect" and entity.name = "MyEntity" and propertyType = "r")

I am pretty sure there was a fourth option about (smartRelationship.isToMany = 1) , but I still get stuck as to what to put on the RHS.

I tried componentName = WOBrowser but this fails since it is needing the keys for list and item assigned, and I am not sure where to stick that. The other thought was to use pageName to identify a custom inspection component. At which, point I get stuck on the nextPageDelegate method.

Would some folks from the audience shed some light and help lead to a better understanding of this great D2W mystery?

Thank you,



Dan Beatty, M.S. CS (B.S. EECS)
Ph.D. Student
Texas Tech University
[email protected]
http://venus.cs.ttu.edu/~dabeatty
http://web.me.com/danielbeatty/My_Home_Page/Welcome.html
_______________________________________________
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]

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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]

Reply via email to