Include a .jsff in another .jsff
Hi,
I am trying to include a .jsff within another .jsff page in jdev 11.1.1.2 as a simple region.
The jdev allows me to include the same as a region/dynamic region when I drag and drop the second .jsff file in the first .jsff file.
But when i try to select the drop as a "region", I get the following error.
Nov 2, 2010 1:49:00 PM oracle.adfdtinternal.view.rich.region.transform.RegionDocFragInfo constructRegionDocumentFragment
SEVERE: oracle.bali.xml.model.XmlReadOnlyException: read-only on commit
java.lang.RuntimeException: oracle.bali.xml.model.XmlReadOnlyException: read-only on commit
at oracle.adfdt.jdev.transaction.JDevTransactionManager.runTaskUnderTransaction(JDevTransactionManager.java:84)
at oracle.adfdt.view.rich.region.util.RegionCreationUtil._createRegion(RegionCreationUtil.java:220)
at oracle.adfdt.view.rich.region.util.RegionCreationUtil.createRegion(RegionCreationUtil.java:93)
at oracle.adfdtinternal.view.rich.region.transform.RegionDocFragInfo.constructRegionDocumentFragment(RegionDocFragInfo.java:119)
at oracle.adfdtinternal.view.rich.region.transform.RegionDocFragInfo.getData(RegionDocFragInfo.java:85)
at oracle.bali.xml.model.datatransfer.operation.CreateFromFragmentOperation$1.performTask(CreateFromFragmentOperation.java:52)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:172)
at oracle.bali.xml.model.datatransfer.operation.CreateFromFragmentOperation.apply(CreateFromFragmentOperation.java:42)
at oracle.bali.xml.model.AbstractModel.performOperationAction(AbstractModel.java:274)
at oracle.bali.xml.model.datatransfer.operation.PerformOperationAction.actionPerformed(PerformOperationAction.java:36)
at oracle.bali.xml.share.ActionProxy.actionPerformed(ActionProxy.java:47)
at oracle.bali.xml.gui.swing.dnd.DropMenuInvoker$CleanupProxy.access$201(DropMenuInvoker.java:234)
at oracle.bali.xml.gui.swing.dnd.DropMenuInvoker$CleanupProxy$1.run(DropMenuInvoker.java:254)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: oracle.bali.xml.model.XmlReadOnlyException: read-only on commit
at oracle.bali.xml.model.XmlModel.__precommitTransaction(XmlModel.java:2715)
at oracle.bali.xml.model.XmlContext.precommitTransaction(XmlContext.java:1172)
at oracle.bali.xml.model.XmlContext.__precommitTransaction(XmlContext.java:1665)
at oracle.bali.xml.model.XmlContext.__commitTransaction(XmlContext.java:1696)
at oracle.bali.xml.model.XmlModel.__requestCommitTransaction(XmlModel.java:2796)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:445)
at oracle.bali.xml.model.XmlModel.commitTransaction(XmlModel.java:415)
Can anybody tell me what's the problem here ? Any thing wrong that I am doing ?
I also tried to inlcude a subView (and even a subform within the subView) and drop the second jsff in this subview but to no avail. I still am getting the above issue.
Thanks,
Pawan.
In response to your questions,
The two fragments are part of two different taskflows. The first fragment is a view within its taskflow as is the second within its own taskflow.
The second taskflow i am dragging and dropping as a static region which is when i am getting the above error.
Not sure of what is causing the same. Any pointers please ?
Thanks,
pawan.
Similar Messages
-
How to include one view into another view
Hi SDN's,
Could any please tell me,How to include one view into another view.
In my requirment.I want to create a 'Z' view for an interface .In that view i have to take,
1) Ship-to-email adrr by
LIKP-KUNNR -> KNA1-ADRNR
KNA1-ADRNR -> ADR6-ADDRESNUMBER.
2) E-mail addr of person who created the document.i.e
LIKP-ERNAM -> USR21-BNAME.
USR21-ADDRESNUMBER -> ADR6-ADDRESNUMBER
USR21-PERSNUMBER -> ADR6-PERSNUMBER.
In both the case we have to pass ADDRESSNUMBER to ADR6 table.
If we pass these condition it fails,B'Coz at a time it passes Two ADDRESSNUMBER and a PERSNUMBER.
So i created two which fetches only the email addr of person who created the document.and another view fetches Ship-to-email addr.
Now i want to include the second view into first view . Is it possible?or please
tell me someother way to get these email addresses in a single view.hi
as per my knowledge, nested views are not possible. However, while creating a new view, selection method will not giv u option to select the already created view(S) except the tables..i think so.
regards,
shamim -
I wanr to include a jsp into another, but dinamically. I have a file named Inicio.jsp. This file has a link that calls the servlet "ServletMenu". This servlet decides which jsp page to load. But I want to load "inside" the Inicio.jsp.
Here a send some code
Inicio.jsp: shows a menu
<tr>
<td>Menu 1</td>
</tr>
ServletMenu
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType(CONTENT_TYPE);
String operacion = (String)request.getParameter("operacion");
if(operacion.equalsIgnoreCase("menu1")) {
RequestDispatcher dispatcher = this.getServletContext().getRequestDispatcher("/WebModulo1/Menu1");
dispatcher.forward(request, response);
Menu1 contains a form
The page given by the servlet should show everything that is shown in Inicio.jsp and in the middle of the page should be the content of the Menu1.jsp.
Am I clear? The idea is mantain a fix menu and load only dynamic content in the middle of the page.
hope you can helpI have the code working but ServletMenu only loads the Menu1.jsp and that is not what I want.
I' m developing an Intranet site. Depending on the user that is logged, the menu that is shown, because not all users have access to all the system tasks.
I thought of having the pages containing the menu shown to the user done statically and in the middle of that statical page load the content of a dynamic page.
For example, suppose I have in the server the pages Inicio.jsp, that shows the menu, and Menu1.jsp that shows the same things that Inicio.jsp (but the link to menu1should not exit) and whatever is loaded when the user clicks in the link menu1 of the Inicio.jsp page. The "whatever is loadded" will be another .jsp page, that should be inside Menu1.jsp.
Hope I'm clearer this time
Thanks -
I need to include one workflow into another
I need to include one workflow into another
IAM try to include one workflow into another workflow, whether it is possible or not.
if it is possible means, give the step to perform this action and some sample logicHi,
You can achive this in a very simple way.
Create a activuty step. ( In general we need to create a task here )
Add/ paste the workflow template number insead of creating the Task.
Make the required binding.
Thanks and regards,
SNJY -
Include a JSP inside another JSP
Hi SDN,
I am stuck with a problem. There is a JSP file available. In this JSP I have to add some more fields. But when I try to ad new fields I am getting a Portal Runtime Error stating that "Code Too Large". So now I thought of putting the new code in another JSP and include that JSP inside my main JSP. Here I cannot use <@include file="..."> because this finally compiles both the JSPs as one.
So I tried to use <JSP:include>. Some one please help me with how to include a JSP inside another using <JSP:include>. Here both the JSPs are having HBJ content inside.
I know that <jsp:include page="relPathOfChild.jsp"/> will include the child.jsp into my main jsp. Problem is both the JSPs are having HBJ content, so If I dont declare <hbj:content> tag inside the child jsp, it is throwing an error. But If I declare a <hbj:content> tag inside my child jsp, only child content is coming and main jsp content is not coming.
Please help me..
Regards,
SrinivaSHi,
This Problem is solved. Now I am able to include a child JSP inside the parent JSP. But now the problem is,
This Parent JSP will have 8 tabs. Now my chils JSP should come inside 7th tab. but it is coming above the parent JSP.
Below is how I am including my child JSP.
<% try{ if(isCAR){
%>
<tr>
<jsp:include page="/pagelet/CAREligibility.txt" />
</tr>
<%} } catch(Exception e) {}%>
Please help.
Regards,
SrinivaS -
How to Include one iView into another iView
Hi All,
My requirement is to have 3 input fields across many iviews. on entering the values in those fields, i will invoke a Web Service Model.
I dont want to keep these 3 fields in all iviews, rather i am planning to create one iview with 3 fields integrated with model and call this iview in many other iviews.
How do i achieve this in wed dynpro coding. In JSP, there is a concept called "Include Jsp Page" . Is there any similar kind of functionality in WD.
Kindly guide me .
Reg/VenkatHi,
In the portal, create a page and place the iView having the three input fields on top. Place the second iView below. Keep differing the second iView for every page. In this way you can make the iView with 3 input fields only in the desired pages. You can use EPCF to invoke / navigate to another iView.
Regards
Srinivasan T -
Reg:how to include a report in another report.
Hi,
Can anyone please tell me how to call a report from another report.
My requirement is for example please see the below requirement :
In report1 I write the logic.
Zreport1.
select kunnr name1 from kna1 into table itab.
loop at itab.
write: / itab-kunnr,itab-name.
endloop.
In report 2 i write the declaration.
Zreport2.
Tables:kna1.
data:begin of itab occurs 0,
kunnr like kna1-kunnr,
name1 like kna1-name1,
end of itab.
Now I want to include or call the report1 in report2 .Can anyone please tell me how it can be done??Hi,
write the submit statement as SUBMIT ZREPORT1 AND RETURN in ZREPORT2 program..
If you dont execute the ZREPORT1 independently then its better you write that in a ZINCLUDE... and
include that in your second program where ever necessary..
for that check this...
+ZINCLUDE+
select kunnr name1 from kna1 into table itab.
loop at itab.
write: / itab-kunnr,itab-name.
endloop.
*ZINCLUDE ends here...
*Use the above ZINCLUDE as below...
Report Zreport2.
Tables:kna1.
data:begin of itab occurs 0,
kunnr like kna1-kunnr,
name1 like kna1-name1,
end of itab.
INCLUDE ZINCLUDE. " this will do the task mentioned in the include above...
I would rather suggest to go for the second method that is _ Specifying ZINCLUDE_ coz for the first one.. you need to
have data declarations and which is not necessary for just a simple select query.. if you are processing
any further in the first program then go for the first method_( SUBMIT STATEMENT)_ by declaring the necessary variables..
This would solve your issue...
Good luck
Narin
Edited by: Narin Nandivada on Sep 9, 2008 4:37 PM -
How to include a CSS from another project
Hi all,
I'm developing an AbstractPortalComponent which uses some of my own defined stylesheets. I can include the stylesheet defined in my own project by this:
com.sapportals.portal.prt.resource.IResource myStyle =
request.getResource("css", "css/my_nav.css");
response.include(request, myStyle);
Now I need to include another CSS but from another project.
I tried also to get the response and write the HTML code but it writes it into the <BODY></BODY> tag and the CSS is not used when rendering the document:
...</head>
<body class="prtlBody urFontBaseFam urScrl">
<LINK REL=stylesheet HREF="/irj/portalapps/myProject/css/zglobal.css" TYPE="text/css">
Does anybody know the solution?
Thanks in advance,
RomanoThere are document hooks that you can use to insert things into the response of a page being written to the client.
Therefore, if you create a service which implements the IDocumentHookListener, you will then need to implement the
String doDocumentHook(int documentPosition, IPortalComponentRequest request, IPortalComponentResponse response)
and
void doDocumentHook(int documentPosition, IPortalComponentRequest request, IPortalComponentResponse response)
The first method, that returns a String, you can basically check where in the document you would like to write code, something like
switch (documentPosition) {
case IDocumentHookListener.HEAD_SECTION_BEGIN :
return "some string";
break;
case IDocumentHookListener.HEAD_SECTION_END :
return "some other string";
break;
The second method, simply writes out the String returned from the first method to the response, i.e.
response.write(doDocumentHook(documentPosition, request));
I hope this helps
Darrell -
How to include html files in another html files?
Hello,
I am wondering if there is any way of including content (html code) inside another html page..
I've tried:
- iframe - it's working fine but IE7 doesn;t like it.
I am looking for something similar with:
- Server Site Include <!--#include virtual="/directory/included.html" -->
but without to have to change the portal settings.
Any idea?
Thank you
AncaHI did u try using the omniportlet? on Portlet builders
-
Include servlet-out in another servlet
Hi,
is there a way to include the output of one servlet in another one? The only possibility I have found is to call the other servlet via http ( i am using org.apache.httpclient) but the problem with this technique is, that I couldn�t find a way to get the same sessions in both servlets.
Is there anyone who know how to do that?
Thanks,
farallaI think a method which also uses the RequestDispatcher.include could work. But I haven't tested it, so I am not sure.
Give it a HttpServletResponseWrapper in which you overwrite the getWriter() and getOutputStream()
Extend ServletOutputStream
make an instance variable of java.io.ByteArrayOutputStream (later used to get the string with toString())
overwrite the abstract write(int b) method to call the same method
on the ByteArrayOutputStream.
make a public method to get the ByteArrayOutputStream
Extend HttpServletResponseWrapper
make an instance of your ServletOutputStream
make an instance variable of java.io.PrintWriter where you overgive the constructor the ByteArrayOutput of your ServletOutputStream
overwrite the getOutputStream() to return you ServletOutputStream
overwrite the getWriter() method to return java.io.PrintWriter
make a public method to get your ServletOutputStream
now get the RequestDispatcher and call insert(noramlReq,instanceof your
HttpServletResponseWrapper)
afterwards get the your ServletOutputStream and from it get the ByteArrayOutputStream
call on the ByteArrayOutputStream toString() -
Include a report in another report - URGENT!
Hi all
I generated 5 reports with Oracle Reports 9i and now I want to manage it as I wish in order to generate a single file (one single big report) as an output.
Can I include one or more reports (.rdf, .rep, .....) inside another report (a wrapper report) ?
This wrapper report has the business logic in order to show one or more little reports inside it.
Note that the output of my business process is one single file.
I hope you can help me!
Thank in advance
RegardsSee my reply in:
Nested Report -
Including one program into another
I have a big java program and it contains lot of data declarations. I want to have all these declarations in another java program and include that program into my main prorgram. How do i do it??
Please help me out in this.
Thanks in advance...iconabhi wrote:
Well,Can i create another java program and put all the declarations in that program and then include this program in the main program which uses the data declarations?Your usage of the term "java program" is unclear at best. What do you mean? Are you talking about a class?
What kind of declarations are that? Can you give us an example and tell us aproximately how many there are of those?
If you don't provide more details your question can only be answered by guesswork and thus the answers won't be of much use to you.
Also, if you find a few minutes, you might want to read http://www.catb.org/~esr/faqs/smart-questions.html
regards -
Include a page from another context in a facelet
Hi,
I'd like to know how to include a facelet page from another context using JSF. Something similar was done for JSPs in this thread
http://forum.java.sun.com/thread.jspa?threadID=451823&messageID=2053784
I'm using <ui:include > in the facelet and tomcat 5.5, but I'm not sure if I should use the FaceletContext -> ServletContext -> RequestDispatcher, etc. and in what way in the facelet.
thanks!That only appears to work within the same context, i.e., if I have two contexts:
webapps/context1
webapps/context2
and the original facelet is in context1, I cannot ui:include a facelet from context2. Doesn't work. -
Including XML files inside another
I was wondering if the following was possible, and if so, how:
If I have 2 files of the same schema, e.g.
FileA.xml
<person>
<name>Greg</name>
</person>
FileB.xml
<person>
<name>Bob</name>
</person>
Is there a standard way from in a file FileC.xml, of another schema, to include this information e.g.
<people>
<person>
<name>Another</name>
</person>
<person ref="FileA.xml"/>
<person ref="FileB.xml"/>
</people>
I have Googled this sort of question but not found any examples, and I think I am getting confused with entity resolving.
Any help much appreciated.I think xinclude and xpointer are what you're looking for.
xinclude:
http://www.w3.org/TR/xinclude/
xpointer:
http://www.w3.org/TR/WD-xptr
These technologies have been around for quite a while (at least since 2001) and many parsers support these standards out of the box. No need to write your own. -
Apologies if this is a stupid question , but I'm looking at having a library of javascript functions which will be available to other scripts. However I can't find an obvious way of including one javascript file in another.
Has anyone else tried this?Hi there,
another way to execute an external script is the Application.doScript method.
Application.doScript(script:any, language: ScriptLanguage , withArguments:Array of any):any
Executes the script in the specified language.
script: Data Type: any
The script to execute. Can accept: File or String.
language: Data Type: ScriptLanguage , Default Value: UNKNOWN
The language of the script to execute. If not specified, uses the language used to call this method. (Optional)
withArguments: Data Type: Array of any
An array of arguments to pass to the script. (Optional)
Best wishes
Andy
Maybe you are looking for
-
MR11: Maintain GR/IR Clearing Account not showing values of 1.00 or
Hello Gurus- I could not find anything in the network but is it possible to include values of 1.00 or less on the report? We are not able to manage this as they build up over time and without visibility, we cannot manage nor can we properly reconcil
-
HELP!!!! My Hotmail no longer works with Safari v. 5.0.6 and my Imac Leopard operating system 10.5.8. Please help me with any suggestions on what to do. Thank you. I cannot find any new downloads for Safari that work with Leopard. The newest ones
-
Is It Possible To Upgrade The Graphics Card In A Late 2006 MacBook (original)?
I have this Late 2006 Macbook, that still runs great and everything, but the only problem iv been running into, is video. So when i watch a video in QuickTime Player, or QuickView, or even YouTube, the video just randomly starts to flip out. So, is i
-
I have tried to uninstall verion 3.6 and reinstall. Also, I re-imaged the workstation, but it still does not work. The OS is Windows 7 32-bit. This same process works automatically on an XP workstation. In fact, the machine I re-imaged was an XP box,
-
I have an iPhone 4 with iOS 4.1. First off, I have the proximity sensor problem that's driving me crazy. That said, I noticed today that I was driving down the road on the phone (Ford SYNC bluetooth), and the phone had no bars. When I hung up I pulle