Hello all.
I made a WOComponent called ToolBar. there I put the follwoing:
<wo:ERXStyleSheet filename="ToolBar.css" framework="app"/>
<div id="toolBar" class = "toolBar">
<div class = "toolBarContents">
<span id="buttons">
<wo:AjaxUpdateLink updateContainerID="toolBarTitle"
action="$addBAction" class="label">Address Book</wo:AjaxUpdateLink> 
<wo:AjaxUpdateLink updateContainerID="toolBarTitle"
action="$calBAction" class="label" >Calendar</wo:AjaxUpdateLink>
</span>
<span class="tittle">
<wo:AjaxUpdateContainer id="toolBarTitle">
<wo:if condition = "$title"><wo:WOString value = "$titleValue"/></
wo:if>
</wo:AjaxUpdateContainer>
</span>
<span class = "logo"><wo:WOImage src = "XWSLogo.png" id="logoImage"/
></span>
</div>
</div>
now, the title in the component its changing depending on what the
user clicked. but this ToolBar component is in another WOCompoent that
I called, UsersMainPage., so I have to following.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Main</title>
<wo:ERXStyleSheet filename="ToggleDetails.css" framework="app" />
</head>
<body class = "body">
<wo:XWSWOToolBar/>
After the <wo:XWSToolBar> I will put a div, or element that will
update its data depending on what the user selected on the tool bar..
I know I must use the AjaxUpdateContainer, and inside I will put all
what should be updated, (this is how i understanding,) but ie. if the
user click in the address link in the toolbar, I must go to the
database and fetch some data, and show it in the UserMainPage
component, then where should I put the fetched data to get it from the
userMainPage WOComponent? in the session?, or is there another way to
connect those components?
Thanks
Gustavo
_______________________________________________
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 arch...@mail-archive.com