Including multiple subviews
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.
Similar Messages
-
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 -
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 -
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 -
Pass Parameter from main page to include page (subview) and read it ?
Hello All
i have an include header.jsp page in main page.jsp ,and i included it by subview.
i want to pass a parameter ex(screen name) to the subview by using f:param.
Here is the code in main.jsp:
<f:subview id="headerSubView">
<jsp:include page="/commons/header.jsp" flush="true">
<jsp:param name="screenTitleByJspParam" value="screen2007"/>
</jsp:include>
<f:param name="screenTitleByFparam" value="screen2007"/></f:subview>
Code in header.jsp
1- <af:outputFormatted value="#{param.screenTitleByJspParam}"/> -- this dose not work
2- <af:outputFormatted value="#{param.screenTitleByFparam}"/> -- this dose not work (i want this manner)
So how i can send parameter by ]<f:param and read it by subview uesing adf/jsf tags ?
Regards
Mohd.Weshah
weshah79Dear thanassis
Thanks for you help ,your code is working successfully but my case is the following :
same your main jsp page but the subview tag in table :
<%@ page contentType="text/html;charset=windows-1256"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces" prefix="af"%>
<%@ taglib uri="http://xmlns.oracle.com/adf/faces/html" prefix="afh"%>
<f:view>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=windows-1256"/>
<title>main</title>
</head>
<body>
<h:form>
<afh:tableLayout>
<afh:rowLayout>
<afh:cellFormat>
<f:subview id="header">
<jsp:include page="header.jsp" flush="true">
<jsp:param name="pageTitle" value="Modify aa record"/>
</jsp:include>
<f:subview>
</afh:cellFormat>
</afh:rowLayout>
</afh:tableLayout> </h:form>
</body>
</html>
</f:view>
try it the parameter dose not work ,but if you want that code work successfully move the subview out of the table.
Do you know what is the problem ?
i want give you another hint maybe it is realted to the same problem, which is in my original page the body tag is adf tag ie(<afh:body>) your code dose not work with that tag until i changed the afh:body to html body.
Regards
Mohd.Weshah -
Modifying the script to include multiple domains
Hi,
The below script will start the servers by connecting to node manager for a particular domain. How can I modify the below script to include multiple servers which are from multiple domains.
from java.util import Properties
from java.io import FileInputStream
from java.io import File
from string import split
def carryFileProperties(serverName) :
print 'carrying properties of: ' + serverName
#properties file to be loaded
myProps = Properties()
#load properties file
myProps.load(FileInputStream(File(serverName)))
return myProps
def serversList(fileProperties):
print 'selecting servers from the properties'
servers = []
properties = fileProperties.propertyNames()
while properties.hasMoreElements():
key = properties.nextElement()
element = split(key, '_')
if element[0] == 'SERVER':
servers.append(key)
print'LIST OF servers to initialize'
for server in servers:
print 'Server ==>> ' + fileProperties.get(server)
return servers
def startInstance():
user = fileProperties.get('USER_ADM')
passwd = fileProperties.get('USER_ADM_PASSWD')
nmIP = fileProperties.get('NODEMANAGER_IP')
nmPort = fileProperties.get('NODEMANAGER_PORT')
domainName = fileProperties.get('DOMAIN_NAME')
domainDirectory = fileProperties.get('DOMAIN_DIRECTORY')
nmConnect(user,passwd, nmIP, nmPort, domainName, domainDirectory, 'plain', 'true')
for server in servers:
print 'requesting the server startup ' + fileProperties.get(server)
nmStart(fileProperties.get(server), domainDirectory)
fileProperties = carryFileProperties('servers.properties')
servers = serversList(fileProperties)
startInstance()
below is the properties file
NODEMANAGER_IP=localhost
NODEMANAGER_PORT=5559
DOMAIN_NAME=base_domain
DOMAIN_DIRECTORY=/opt/weblogic/base_domain/
USER_ADM=weblogic
USER_ADM_PASSWD=weblogic
SERVER_1=managedServer1
SERVER_2=managedServer2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------I was able to answer myself
-
How to read and write data in to a specified range of cells(it include multiple row & columns) in excel
CVI Comes with a sample project that explains how to read/write to a Excel file: choose "Explore examples..." in CVI welcome page and navigate to <cviSampleDir>\activex\excel folder where you can load excel2000dem.prj.
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos? -
How to include multiple image components into a single custom component???
How to include multiple image components into a single custom component???
Hi Marcel,
an ABAP transaction can only run or at least be started on one single system. A portal transaction can be assigned using a URL. This doesn't need any logical component.
Regards
Andreas -
How to create a custom report and include multiple extended CRM database?
I have created a number of CRM databas extensions and applied all there fields to my contacts and cases.
I might have for example:
- Additional address details
- Business information
- Quote Details
- Trade Referees
I know how to run a custom report and that I can select any one of these extra CRM databases as a filter and included them in the report. Is there a way though to add more than one (preferrably all) of the extra CRM databases to the report?
The onely ways I can see it work is by either include all fields in one extra CRM database (not ideal) or bu running multiple reports and merge them somehow in Excel.
Is there another way that I am not aware off?
Thanks for your help,
JerunHi Jerun,
There's no way to do that. You'll need to run separate reports and merge them in Excel.
-m -
How to include dynamically subview define in separate file?
Hi all,
I am new to JSF and I'm currently using the MyFaces implementation,
I would like to do something like:
<t:dataTable value="#{mgr.rowDataModel}" var="row">
<t:columns value="#{mgr.columnDataModel}" var="column">
// <h:outputText value="#{mgr.file.url}" /> -------> display the url of the subview to be included
<%@include file="xxxxxxx"%> //or else ???
</t:columns>
</t:dataTable>
where the files contain f:subview definition and rowDataModel and columnDataModel are javax.faces.model.DataModel.
Here, I do not know how to set the 'xxxxxxx' value of the include file attribute. #{mgr.file.url} does not work
I try to approach the whole thing from the JAVA side using a binding to a managed bean that return a panel grid something like
<h:panelGrid binding="#{mgr.myPanelGrid}" />
but here, I don't know how to create the subview from the url of the file that contains the subview from JAVA
I may approach the whole thing on a wrong way
Can someone point me to the right direction?
Thank you for your helpAll XML documents should begin with an XML declaration.
If you have your fxml file starting with the following lines :
<?xml version="1.0" encoding="UTF-8"?>
<!-- mylicense here -->
.. it will be loaded in Scene Builder, and saved back as is. -
GR55 reports - How to include multiple selection of Orders in input screen
Dear Experts
We r stuck at the simple step in report writer, by which I could select multiple orders in selection screen.
I am using report liabrary 7KOJ and have used a copy of Std report (7KOJ_001) making a Z one.
I have comipled everything in this report with many formule to get the required output.
Now I want to execute thsi report, but I can execute it "only" for one order in selection.
I tried using another set ( same name) making it repeat at selection scren, but it does not work.
Is it possible to use multiple orders as selection criterion in this report library 7KOJ?
Pls guide me if I can use any other liabrary in which I can get
1. Actual line item costs
2. Actual line item Qty
3. Target costs per line item
4. Target Qty per line iem.
I am using this particular liabrary becuase I want to get following coloums in my report with an additional couple of coloumns which I had make some formulae.
1. Actual cost ( At the time of any line item posting in an order)
2. Variance ( target Qty valued at actual costs) - * I know that is something strange when you calculate variances, but this is how the requirement is , to calculate variance)
Pls help. Thanks in advance, as always..
Regards
DhirajPlease proceed as follows. By the way you were doing the right thing just that you did not create the sets correctly.
1. Create two value variables using transaction code GS11. For example: OR-AUFN and OR-AUF2 and give default value for both as zero. The table to use for both is KKBC and the field name as AUFNR
OR-AUFN - From Order
OR-AUF2 - To Order
2. Create a basic set. For example: OR-S-AUFNR in the basic set, under from value click on variable tab and enter the first variable (OR-AUFN) and then under to value, again click on variable and select the second variable (OR-AUF2) and save.
3. Now change the report in transaction code GR32. Click on General Data Selection and enter the set you've just created above. Make sure no other set for Order exists besides the new one and save your report.
Alternatively, you could also create two value variables for Order Item Number using table KKBC and field POSNR as follows:
7K-POS1 = Item from as description and give default value as 0.
7K-POS2 = Item To as description and give default value as 1000
Next, create a basic set and specify the above two variables. Change your report and include this set under General Data Selection. In this scenario, leave your original order set as well.
That should solve your problem. Refer back for any further clarification. By the way, everything I wrote here was tested fully and is working.
Regards,
Elias
Edited by: Elias Akorli on May 5, 2010 4:03 PM
Edited by: Elias Akorli on May 5, 2010 4:11 PM -
Including multiple databases per connection
I have linked tables accross multiple databases and would
like to include all applicable tables (from multiple databases) in
a single dreamweaver database connection. Is this possible. I can't
put all tables in a single database because one of the databases is
a mirror of a quoting application and gets backed up to regularly
which is why I need to keep intact.>microsoft access, is this what you are asking
Yes, that is what I was asking. But I really don't know the
answer for MS Access as I've never tried. I've worked with linked
tables in Access, but not from ASP. Why don't you just give it a
try. It should take a few minutes to test. -
Including multiple XSU queries in a single XML document
Can anyone set me on the right path to using Oracle's DOM parser to include the XML reulsts of multiple XSU queries into a single document? I can successfully return the queries with "Document doc = xquery1.getXMLDOM();" but cannot figure out how to add all of the children of these Documents to a master XMLDocument object.
Thanks very much,
CristianHi,
Batching is not supported for custom document. You need to enqueue your message one by one into B2B. If you want to batch them together, you will need to write a script to concat them together after the messages have been translated into native EANCOM format.
Eng
Maybe you are looking for
-
Itunes will not show up on the screen
My Itunes is fully installed but after i first used it i couldn't access it again. I have tried to repair it and uninstall and reinstall it. Please Help!!!!
-
My Ipod shuffle NOW thinks it has a 298.1 Gb storage capacity. Help, plz.
Good afternoon, I have a 512 MB Ipod Shuffle, that I have used successsfully for 9 months without a single glitch, until now. I'm using itunes 6.0.4.2, and the ipod shuffle is running software version 2006 03-23. I have a Dell PC running Windows XP P
-
When I click a new tab, I can't get any of the 9 boxes to show my previous browsing history. I have tried changing browsing, privacy and history settings and nothing has worked. The boxes still stay gray, not clickable. Any suggestions?
-
File renaming question plus shortcut keys
I do a lot of work with renaming files for an archiving project. I was wondering if anyone knew: a.) the shortcut keys to skip to the next word when dealing with a file name with underscores without jumping to the beginning or the end. (i.e. somethin
-
Is there major differences between ms 5.0 vs 7.0 version?
Hi all, Is there major differences between microsoft bpc 5.0 version with 7.0 version. Can anyone pls let me know the technical aspects like and the functional aspects of differences too? Thanks Pooja