• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Relating 2 different WOComponents, via AjaxUpdateContainer.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Relating 2 different WOComponents, via AjaxUpdateContainer.


  • Subject: Relating 2 different WOComponents, via AjaxUpdateContainer.
  • From: Gustavo Adolfo Pizano <email@hidden>
  • Date: Mon, 18 May 2009 13:46:36 +0200

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>&nbsp
  <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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Oracle driver...
  • Next by Date: RE: Correct way to pass a localized string [FIXED]
  • Previous by thread: Correct way to pass a localized string
  • Next by thread: RE: Correct way to pass a localized string [FIXED]
  • Index(es):
    • Date
    • Thread