Re: Your HELP PLEASE
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Damar
You can do this at either compile time or runtime using...
Compile-time:
You can use XMLC built-in token replacement of mockup URL's with dynamic
runtime names in options.xmlc or you can use the CopyAndReplace
taskdef. You can see an example by looking at the BConfig mockups under
src_mockups. The contents of options.mappings is...
token="images/" value="xlib/org/enhydra/barracuda/config/images/"
token="styles/" value="xlib/org/enhydra/barracuda/config/styles/"
token="Mockup_Config_Comp_Comp.shtml"
value="GetNextBConfig.event?CurrentTab=CompTab_Comp"
token="Mockup_Config_Comp_Model.shtml"
value="GetNextBConfig.event?CurrentTab=CompTab_Model"
token="Mockup_Config_Comp_View.shtml"
value="GetNextBConfig.event?CurrentTab=CompTab_View"
token="Mockup_Config_Comp_Rend.shtml"
value="GetNextBConfig.event?CurrentTab=CompTab_Renderer"
token="Mockup_Config_Data.shtml"
value="GetNextBConfig.event?CurrentTab=DataTab"
token="Mockup_Config_Dom.shtml" value="GetNextBConfig.event?CurrentTab=DomTab"
token="Mockup_Config_Event.shtml"
value="GetNextBConfig.event?CurrentTab=EventTab"
token="Mockup_Config_Forms.shtml"
value="GetNextBConfig.event?CurrentTab=FormsTab"
token="Mockup_Config_Util.shtml"
value="GetNextBConfig.event?CurrentTab=UtilTab"
token="Mockup_Config_View.shtml"
value="GetNextBConfig.event?CurrentTab=ViewTab"
token="Mockup_Config_About.shtml"
value="GetNextBConfig.event?CurrentTab=AboutTab"
token="javascript:submitLanguageForm();" value="SetLanguage.event"
Run-time:
You can use Barracuda components at runtime to change the link. Make a
btemplate key for the link or just an ID to get a handle on the link and do...
return new BLink("Link Text", new MyLinkEvent());
This results in...
<a href="MyLinkEvent.event">Link Text</a>
Does that answer your question?
Jake
At 03:34 PM 3/26/2003 +0800, you wrote:
>Hi,
>
>After going through the component model tutorial, I created a Header (some
>images on a table), a footer (some externel links in a table), a side menu
>(one button on a table), a main text page, and generated a page, MyPage,
>combining all. In the MyPage, Menu is on the left is supposed to point the
>the main text on its left.
>
>When I want to add a new page, I create a new main text page (that
>goes in the middle), and add a menu button for it on the left. How can I
>do this in Barracuda? In precise, how can I make the menu buttons to point
>to the respective text (page)?
>
>Any pointers would be highly appreciated.
>
>Damar
>
>_______________________________________________
>Barracuda mailing list
>[email protected]
>http://barracudamvc.org/lists/listinfo/barracuda