Uix: including multiple templates
Hello,
I have a common template - which defines the tabs, branding and other common features. For every tab I have three sub-tabs (page headers). Each page header will have its own side nav items. This is what I am trying to do and I do not know if it is even posible:
1. Define common.uit ( done ) - it has three tabs: View, Admin, Reports
2. Define viewtemplate.uit - which will be the page headers ( sub tab ) for the "View" tab
3. Define viewsidenav_1.uit - which will hold the definition for the side nav for View: page header_1
I am not too sure how to get this together in the view_tasks.uix
These are my definitions:
common.uit
<?xml version = '1.0' encoding = 'windows-1252'?>
<templateDefinition xmlns="http://xmlns.oracle.com/uix/ui"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:data="http://xmlns.oracle.com/uix/ui"
targetNamespace="commonTemplateTargetNamespace"
localName="Common" expressionLanguage="el">
<type base="ui:pageLayout">
<attribute name="selectedTab" javaType="int"/>
<attribute name="selectedPH" javaType="int"/>
</type>
<content>
<pageLayout>
<attributeMap>
<rootAttributeMap/>
</attributeMap>
<childMap>
<rootChildMap/>
</childMap>
<!-- now, the content of the pageLayout -->
<corporateBranding>
<image source="http://www.oracle.com/admin/images/ocom/oralogo_small.gif"
destination="http://www.oracle.com"/>
</corporateBranding>
<tabs>
<tabBar selectedIndex="${uix.rootAttr.selectedTab}">
<contents>
<link text="View" destination="../view/view_tasks.uix"/>
<link text="Admin" destination="admin.uix"/>
<link text="Report" destination="report.uix"/>
</contents>
</tabBar>
</tabs>
<globalButtons>
<globalButtonBar>
<contents>
<globalButton text="Login" destination="login.uix"/>
<globalButton text="help" destination="help.uix"/>
</contents>
</globalButtonBar>
</globalButtons>
<copyright>
<styledText text="Copyright Oracle 2006" styleClass="OraCopyright"/>
</copyright>
<privacy>
<link text="Privacy Statement" destination=""/>
</privacy>
<contents>
<rootChild name="contents"/>
</contents>
</pageLayout>
</content>
</templateDefinition>
viewtemplate.uit - which defines the page headers
<?xml version="1.0" encoding="windows-1252"?>
<!-- Template definition file. Add any needed namespaces,
and specify the required "targetNamespace" and "localName" attributes -->
<templateDefinition xmlns="http://xmlns.oracle.com/uix/ui"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:data="http://xmlns.oracle.com/uix/ui"
targetNamespace=""
localName="ViewTemplate"
expressionLanguage="el">
<templates xmlns="http://xmlns.oracle.com/uix/ui">
<templateImport source="common.uit"/>
</templates>
<!-- Type section: Define a "base" attribute if needed -->
<type>
<!-- Add any needed named children -->
<!-- Add any needed attributes -->
</type>
<!-- Content section: define the content of the template -->
<content>
<!-- Add UINode content here to make your template valid -->
<pageHeaderLayout>
<pageHeader>
<globalHeader selectedIndex="0">
<contents >
<link text="pageHeader1"
destination="http://www.oracle.com"/>
</contents>
</globalHeader>
</pageHeader>
</pageHeaderLayout>
</content>
</templateDefinition>
<Haven't done the side nav as yet ... > but this is the overall page that needs to include the two templates:
<?xml version = '1.0' encoding = 'windows-1252'?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:data="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40" expressionLanguage="el"
xmlns:myTemplate="commonTemplateTargetNamespace">
<templates xmlns="http://xmlns.oracle.com/uix/ui">
<templateImport source="../templates/common.uit"/>
<templateImport source="../templates/viewtemplate.uit"/>
</templates>
<content>
<dataScope xmlns="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add DataProviders (<data> elements) here -->
</provider>
<contents>
<document>
<metaContainer>
<!-- Set the page title -->
<head title="View Tasks"/>
</metaContainer>
<contents>
<body>
<contents>
<form name="form0">
<contents>
<myTemplate:Common title="View Tasks" selectedTab="0">
<contents/>
<tabs/>
<pageButtons/>
<globalButtons/>
<pageHeader/>
<start/>
<end/>
<about/>
<copyright/>
<privacy/>
<corporateBranding/>
<productBranding/>
</myTemplate:Common>
</contents>
</form>
</contents>
</body>
</contents>
</document>
</contents>
</dataScope>
</content>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
</handlers>
</page>
Thanks !
I think the BC4J UIExtensions are correctly registered.
This is the servlet element of my web.xml file (that has never been touched):
<servlet>
<servlet-name>uix</servlet-name>
<servlet-class>oracle.cabo.servlet.BajaServlet</servlet-class>
<init-param>
<param-name>oracle.cabo.servlet.loggedInKey</param-name>
<param-value>LoginHandler.isLoggedIn</param-value>
</init-param>
<init-param>
<param-name>oracle.cabo.servlet.loginPage</param-name>
<param-value>Login</param-value>
</init-param>
<init-param>
<param-name>oracle.cabo.servlet.pageBroker</param-name>
<param-value>oracle.cabo.servlet.xml.UIXPageBroker</param-value>
</init-param>
<init-param>
<param-name>oracle.cabo.ui.UIExtensions</param-name>
<param-value>oracle.cabo.data.jbo.ui.JboUIExtension</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
Similar Messages
-
How to include multiple attachment control's in single info-path form
Hello Everyone,
I am using SharePoint online with info-path form 2013. for one sharepoint list form i would like to include multiple attachment control's. please suggest a possible solution.Hi Venkat,
Per my knowledge, when we edit the list form in InfoPath, the attachment control cannot be accessed.
And InfoPath form templates of types (compatibility) "SharePoint List Form" and "Workflow Form" are by Microsoft design (or under-mis-design) locked, non-modifiable and do not permit client custom code (from InfoPath
Designer in VSTA, Visual Studio for Applications).
So we cannot add more attachment control in InfoPath form for SharePoint list.
As a workaround, I recommend to use Multiple line of text field to store the attachments instead.
Best regards,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How to include multiple tabs in my show form
Hi
As per my requirement I want to include multiple tabs in my show form using xmlform builder , different tabs are required to display the news under different categories which will help the user to choose the required tab.
Thanks in advance.Hi,
According to my understanding,
You are trying to create an xml template using xml form builder in such a way that once we publish the news using this template, it should be shown to the end user in the form of different tabs. Each tab will display some part of the news that we published.
Correct me if I am wrong.
The above functinality is not possible using xml form builder as far as I know. You should think of other ways to achieve it.
Raghu -
Hi
What is the use of multiple template in BIP Report. Can we print multiple template at a time. If no, then why they have given this facility of multiple template.
MashHi,
with multiple Templates you have the chance to use the same data for different requirements. Assume you want to have a nice layout for your customer add a rtf-template which returns a pdf. A second layout may be required for another country (for example in an right-to-left language). Than add a excel-template to get the same data as a excel-sheet to "play" with the data. Or you want to display the same data in a website, then you like to have html as output. This can be reached with the first rtf-template, but with another template you can fullfill special requirements for the different output types (as html for example has no page numbering compared to pdf). Perhaps next time you need the data as CSV ....
And if there's than a change in your data set you had to maintain this only once.
Regards
Rainer -
I would like to include multiple indices in my ID document. How do I do that? I only managed to create a single index. And how do I let an index refer to a different word than the one in the text (e.g. "car" and "plane" are in the text but their index entry is "vehicle")? And how do I turn all index entries into hyperlinks?
I would like to include multiple indices in my ID document. How do I do that? I only managed to create a single index. And how do I let an index refer to a different word than the one in the text (e.g. "car" and "plane" are in the text but their index entry is "vehicle")? And how do I turn all index entries into hyperlinks?
-
1. How to create an explain plan with rowsource statistics for a complex query that include multiple table joins ?
When multiple tables are involved , and the actual number of rows returned is more than what the explain plan tells. How can I find out what change is needed in the stat plan ?
2. Does rowsource statistics gives some kind of understanding of Extended stats ?You can get Row Source Statistics only *after* the SQL has been executed. An Explain Plan midway cannot give you row source statistics.
To get row source statistics either set STATISTICS_LEVEL='ALL' in the session that executes theSQL OR use the Hint "gather_plan_statistics" in the SQL being executed.
Then use dbms_xplan.display_cursor
Hemant K Chitale -
Creating multi-page document with multiple templates
Hi,
I am new to Pages and am attempting to create a photo book that I can export as a PDF and have printed through an online service. I have successfully created multiple templates in Pages that I want to use in my book, but cannot figure out how to create a new page based on an existing template. If I select "New" or "New from Template Chooser" I end up with a brand new document, not a new page in my existing document. If I select Insert --> Pages, I am only given the choice to insert a Text or a Blank page. How do I insert a new page based on a template? Or, how do I apply a template to a blank page?
Thanks very much,
EricOkay, I have figured out a way to accomplish my goal. I have my master Pages document that I am adding pages to by:
1. File --> "New from Template Chooser"
2. Selecting my template
3. A new document is opened
4. I add my photo and custom text
5. Copy the new page from the Pages area in the left nav
6. Paste the new page back into my master document
This works, although is a bit cumbersome. Would much prefer to be able to simply add a page in my master based on an existing template, but I still don't see how to do that... -
XML publisher multiple templates in a single report
Hello
We are currently implementing PeopleSoft benefits where the user will have an option to select a benefit template from multiple selections and create a report form based from the combination of template he selected.
My question would be based from the multiple templates, is it possible if the templates be printed out into just one report using xml publisher?
thank you!Yes. This is possible by using sub templates.
You can declare sub templates in the beginning and then call the sub template.
You will need to register the sub templates in "Content Library" (Reporting Tools > XML Publisher> Content Library) to be able to call thses from another template. -
Which is better server side include or templates
Hi
which is better server side include or templates? i mean which will be faster in development? and also more robust?
thanks in advance.Hello,
I think server side include.
since you will only need to run the database.
Templates still have the pains of pages
cheers -
OBIEE 11g How to Exclude/Include Multiple columns on BI Report at Run Time
OBIEE 11g How to Exclude/Include Multiple columns on BI Report at Run Time
Exclude:
you Can exclude columns in either Table view or pivot table view by placing those columns in Excluded section but you will notice that it will appear in bi server parsed sql query.
Not sure you were asking about runtime??
would you please explain your question!!
Thanks
NK
Edited by: DNK on May 8, 2013 9:48 PM -
I know how to apply changes to child pages of "a" Template
after updating that Template. However, when I make changes to
multiple Templates of my site, is there a way to apply those
changes to child pages of all those (updated/modified) Templates at
once (using a single command or something) without having to work
on one Template at a time?
Here is a specific situation: We have nearly 50 Templates in
our Web site. We have to update a domain name of a link in all
these Templates. That is -- from "www.OLDname.com" to
"www.NEWname.com". It's easy to do a find and replace to make the
above change in all these Templates. (Note: I am referring to only
the changes in the NON-editable region of these Templates). Once
the above change is done, how do I apply those changes to all the
child pages of these Templates in a few easy steps ;-) Is opening
each Template and doing "Modify > Templates > Update
Pages..." the only way to achieve this?Alan, thanks for the response.
I have one more question. When I run this command
"dw menu-->Modify-->Templates-->Update Pages", I
get lots of errors like the ones below. I had to press numerous
"OK" buttons to clear them away. Since they were so many, I usually
kill the process to get rid of them.
Error Message - Sample #1
Error accessing file "C:\sth\Templates\general.dwt:" file not
found (error code 2)
Error Message - Sample #2
There is an error at line 7 of
"C:\sth\sth\Templates\some.dwt": Unbalanced body tag.
Error Message - Sample #3
There is an error at line 218, column 8 (absolute position
28866) of "C:\sth\sth\sth.htm": Duplicate editable regions of name
"Document body".
I don't get this problem when I work on the Templates one by
one. Is there a way to suppress these errors, or at least cancel
the operation after this command has been issued ("dw
menu-->Modify-->Templates-->Update Pages").
Thanks again for your help. -
Multiple templates one document
How do I insert multiple templates in a single document?
What the printer has asked for is called "bleeds".
Bleeds run images off the edge of the paper so the excess is cut away when the printed job is guillotined to final size.
*1. Create an over-size page*
+Menu > File Page Setup… > Paper Size: > Manage Custom Sizes: > Create a page with 10mm or 0.375" extra on all sizes ie 20mm or 0.75" extra width and height+
For an A4 brochure this would be 317mm wide by 230mm high.
For US letter brochure this would be 11.75 x 9.25"
*2. Construct the brochure* with the final trimmed boundaries in 10mm or 0.375" from the outside of the page.
Use guides to mark the trimmed outline and line for image bleeds 3mm or 1/8" outside the trimmed page boundary..
Add crop marks (0.5 pt 100% cmyk lines) in the corners pointing in to just 1mm or 0.1" short of the trimmed corners.
*3. Layout images to run to the bleed guides.*
If you want to avoid all this extra manual work, try:
http://www.macupdate.com/info.php/id/18896/swift-publisher
Which has all of this plus imposition, true master pages and many other features.
Peter -
Include a template in a WAD tab component
Hi all,
we are on WAD7
We inserted a tab component with three tabs in our template
On the first tab is a 'costs' graph
On the second tab is an 'income' graph.
Everything works perfect.
We can switch between the two graphs
Now we want to include another template on the third tab.
This does not work.
Is it a known problem?
Is it possible to include templates in the tab component?
Thanks for any help,
Hanshi
include a template ?????
wat r u trying to inlcude, r u trying to run another query in same template in different tabs
then u need to bring in analysis item
assign data provider, create dataprovider2 and assign technical name of query2 to this data provider
assign this data provider to ur analysis item 2
is this wat u wanted to include in template.
let me know
assign points if this helps,
Edited by: kartikey on Jan 4, 2008 4:44 PM -
Can a netui:template include another template?
I have a case where I want to have 2 different templates (myTemplate.jsp and myTemplate2.jsp). Both use almost all of the exact same code, with a minor exception. I didn't want to have to just copy one and modify the one section that is different, b/c if I have to update the common code in the template, then I will have to do it in both places.
Basically, my JSPs will reference the template named "myTemplate" or "myTemplate2", and each of these references the template named "baseTemplate". Can this be done?
I have tried, but I get an error saying "No Sections defined, 'xxx' not included in template.", but I have no idea why this is happening, because I thought I was defining a section.
This is the code I have:
baseTemplate.jsp
<pre>
<netui-template:includeSection name="baseBodySection" />
</pre>
myTemplate.jsp
<pre>
<netui-template:template templatePage="baseTemplate.jsp">
<netui-template:section name="baseBodySection">
<netui-template:includeSection name="bodySection" />
<%-- template specific code --%>
</netui-template:section>
</netui-template:template>
</pre>
myTemplate2.jsp
<pre>
<netui-template:template templatePage="baseTemplate.jsp">
<netui-template:section name="baseBodySection">
<netui-template:includeSection name="bodySection" />
<%-- template specific code --%>
</netui-template:section>
</netui-template:template>
</pre>
myPage.jsp
<pre>
<netui-template:template templatePage="myTemplate.jsp">
<netui-template:section name="bodySection">
<%-- page specific code --%>
</netui-template:section>
</netui-template:template>
</pre>
myPage2.jsp
<pre>
<netui-template:template templatePage="myTemplate2.jsp">
<netui-template:section name="bodySection">
<%-- page specific code --%>
</netui-template:section>
</netui-template:template>
</pre>
When I either myPage.jsp or myPage2.jsp is rendered, I don't see any of the content from myPage.jsp or myPage2.jsp. In its place I see the error in the netui error table with the following message: "No Sections defined, 'bodySection' not included in template", and below it I see the template specific code I added in myTemplate or myTemplate2 rendered without errors.
Is there something else I have to do in baseTemplate to tell it that the baseBodySection will have template code in it?
Any help on this issue will be greatly appreciated.I can sympathize with you as far as the readability goes.
I know that Tomcat 4 provides a GUI that's intended to make editing server and container level XML files a lot easier, but I'm not certain if it handles application level XMLs too. I think it's safe to say that version 5 will probably either support modifying web.xml files through the GUI or someone will make that feature available through an add-on module.
In the meantime, the length of the XML doesn't affect Tomcat. I would just put up with it until the tool comes along. -
Hi guys,
There seem to be a fair bit of discussion on subviews in this forum. However, I couldn't find anyone bring up an issue that I came across.
We are assembling JSPs dynamically using jsp:include. We have a number of JSP fragments, and I try to make each one of them a JSF subview. Only our business logic knows which fragments need to be included for the next screen.
This all works fine as long as I don't have to include the same fragment multiple times into the same screen. Our business logic knows how to provide a unique ID for each JSP fragment that is included multiple times, but there seem to be no way to dynamically update the ID of the <f:subview> tag. This obviously causes a problem of two subview components having the same ID and JSF doesn't like it.
I even tried to bind subview to a UINamingContainer component and change ID of that component in my backing bean. However, since ID is a mandatory attribute for the <f:sbuview>, ID value that I specify in the tag, overwrites the ID set for the UINamingContainer component.
Any thoughts on how to solve/resolve this issue would be greatly appreciated.
Thanks,
Vadim.I am hoping it was just bad timing for my original post and someone on the list can tell me whether what I am trying to do is possible with the current <f:subview> tag.
I am considering implmenting my own subview construct, but would like to avoid this if at all possible.
Thanks a lot,
Vadim.
Maybe you are looking for
-
The data object "FP_FORMOUTPUT" does not have a component called "XML"
Hello All, When i tried to run a simple report with ADOBE form i got this message: The data object "FP_FORMOUTPUT" does not have a component called "XML" I saw that the field XML is really missing in structure fpformoutput! Also in structure sfpoutpu
-
Why are photoshop icons showing up as color bars in AE6 even though the files are not missing?
I have imported the file numerous times, they actually show up in After Effects. If I render it renders fine, however the icons next to the photoshop files show up as color bars. Can anyone hep me figure this out?
-
Id3 tags are all messed up now
ok when i first installed itunes it updated all of my id3 tags for me but now its not showing the update it used anymore how can i get it to do this again for me
-
What is it like to edit HD with FCE4 and multiple video tracks
I would like to get an idea of what it's like to edit HD on final cut express on an Intel based Power MAC (let's say 2.8GHZ with a large hard drive and 4mb of memory) If one was to have 4 video tracks and a track of green screen with various transiti
-
keychain wants me to login every time i use email or safari at startup everytime. i must have changed something, because it never use to do this.