Generate dynamic content in tld ???
Hi,
Can we generate the tag lib names on the fly (or more generaly everything in the tag) ?
ie instead of directly write <mytaglib:foo name="xxx" .../>, is it possible to do something like that : <% String tldName = "mytaglib";
%>and then call
<<%=tldName%>:foo name="xxx" .../>or something like this ?
Thanks
this is a joke right?
why would you possibly want to do this?
you've just defeated the entire reason for using taglibs
is this Goldie or one of those notorious posters? ;-)
Similar Messages
-
Writing dynamic content using JspWriter
In my jsp I call a java object this java object calls jspWrtiter.print("some string");
this prints string that is fine.Suppose I want to write any taglibrary or include another jsp this way is it possible ?
for example below is my jsp
<%@ taglib uri="/tld/struts-bean" prefix="bean"%>
<% myobject..generate(new MyPageContext(pageContext)); %>
<!-- jsp END -->
<! -- inside myObject -->
JspWriter out = getPageContext().getOut();
out.print("<html></html>");
out.print("<jsp:include page='jsp/include.jsp' />");
the second line where I say jsp:include, prints as it is, it does not include that jsp.Is there any way I can have dynamic content not just html through JspWrite print method ?
miro.out.print("<jsp:include page='jsp/include.jsp' />");this is perfectly iilegal as jsp tags are always executed at the server side but not at the client side.
therefore that would only print something like
<jsp:include page='jsp/include.jsp' /> in the client broswer page.
the other way which i can think of is using iframes if you wanna do it @client side.
something like
out.println("<iframe src='jsp/include.jsp' width='100' height='100' scrollable='no' />");and the other way is making use of AJAX calling the JSP and getting back the content from the JSP and then updating a DIV / SPAN field accordingly.
Hope this might help :)
REGARDS,
RaHuL -
How to fill my collapsible panels with dynamic content from PHP scripts?
Hi people,
I'm trying to generate dynamically generated content in a
Spry collapsible panel. Previously I've generated PHP files that as
an output generates a dynamic table with the data I want to show. I
figured it would be possible to use an php include option to
generate this table in a content section of a Spry collapsible
panel. However, when I do this the collapsible panels appear to
join and when panel1 is clicked all tables close instead of only
panel 1 and all tables are put benath each other without putting it
in each seperate panel. But when i replace the file with only the
text "content" it works fine. Do i maybe have to add some kind of
command at the end of my php file to make it look like the
"content"-text or is this not the problem?
I've been looking for the answer now for a couple of weeks on
various forums and nothing seemed to work for me. Can please
somebody help me out?
Greets,
Damian
The code in its non working form:
<head>
<!--Link the CSS style sheet that styles the Collapsible
Panel-->
<link href="SpryAssets/SpryCollapsiblePanel.css"
rel="stylesheet"
type="text/css" />
<!--Link the Spry Collapsible Panel JavaScript
library-->
<script src="SpryAssets/SpryCollapsiblePanel.js"
type="text/javascript"></script>
</head>
<body>
<!--Create the Collapsible Panel widget and assign
classes to each element-->
<div id="CollapsiblePanel1" class="CollapsiblePanel1">
<div class="CollapsiblePanelTab">Tab</div>
<div class="CollapsiblePanelContent"><?php
include('details_books.php');?></div>
</div>
<div id="CollapsiblePanel2" class="CollapsiblePanel2">
<div class="CollapsiblePanelTab">Tab</div>
<div class="CollapsiblePanelContent"><?php
include('details_authors.php');?></div>
</div>
<!--Initialize the Collapsible Panel widget object-->
<script type="text/javascript">
var CollapsiblePanel1 = new
Spry.Widget.CollapsiblePanel("CollapsiblePanel1");
</script>
<script type="text/javascript">
var CollapsiblePanel2 = new
Spry.Widget.CollapsiblePanel("CollapsiblePanel2");
</script>
</body>you need to save the page as a php page (.php) It works
fine -
Building a report using "PL/SQL Dynamic Content" can I have it output PDF?
Hi,
I build several reports using the "PL/SQL Dynamic Content" region and htp.p().
The output is exactly what the customer wants but they would now like to have it go into PDF document.
Is there a way to do it?
BillBill,
You can integrate APEX with Oracle BI Publisher and have your report generated to PDF.
If you're just interested in saving what is on a web page in PDF, have a look at CuteFTP (Windows), which is a free print driver that allows you to "print" to a PDF file as if it were a printer. On the Mac, you can save to PDF and do not need any additional software.
Thanks,
– Scott –
http://spendolini.blogspot.com/
http://sumnertech.com/ -
After Effects + Flash - Dynamic Content. How to integrate special effects.
Hello World of Adobe.
I am currently working on a project involving data driven dynamic content. This data is being incorporated into the video at runtime.
I have done these types of projects before, with success, and am looking to step up my game.
So the question:
How can I use effects such as - Blur, wiggle, distort, shatter etc. on dynamic content.
For instance:
John Doe puts his information into a text feild. That data is sent to flash environment, where it is "injected" into the video at the proper time and location. His name appears in fancy lettering surrounded by fancy environment factors. The name however, blurs in and out of focus.... maybe distorts a bit, then shatters.
An example:
These guys over at XMPie seem to have this figured out.
http://www.xmpie.com/PEVideo
"Starting with either an original After Effects movie or an existing template from an online library, the user can incorporate variable text, images, and other footage with exciting special effects like animate, wiggle, shatter, blur, warp, distort, and more"
Any help is appreciated.
Thank you!Thank you for your feedback.
So essentially there would be a After Effects project template on a server waiting for certain input data. Then it would be rendered and .flv encoded and sent to the video player.
Do I have that right?
This could be a problem given the render time, as my client wants the video shown soon after user data in inputted. But may be a solution for a more rich experience, not generated at run-time.
Are there any plugins or specific scripts you can point me to?
Also, regarding flash, if I were to export cue point data for these custom feilds, does flash support any additional effects... such as blur, opacity etc. That can be placed within the .flv metadata? -
How to identify the textbox name if they are generated dynamically
hi
i want to know how to identify the textbox name when they are generated dynamically. the text boxes name may vary.
if u know tell me.
thanxTry the following Code :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<SCRIPT language="Javascript">
function fnShowTextBoxNames() {
var count = document.formHeader.elements.length;
for(i=0;i<count;i++) {
var objType = document.formHeader.elements.type;
if(objType=="text") {
alert("Name Of TEXTBOX NO "+(i+1)+" --> "+document.formHeader.elements[i].name);
</SCRIPT>
<BODY>
<FORM name="formHeader">
<CENTER>
<INPUT TYPE="TEXT" name="box1" value="" >
<br>
<INPUT TYPE="TEXT" name="box2" value="" >
<br>
<INPUT TYPE="TEXT" name="box3" value="" >
<br>
<INPUT TYPE="TEXT" name="box4" value="" >
<br>
<INPUT TYPE="TEXT" name="box5" value="" >
<br><br>
<input type="button" name="btn" value="Show TextBox Names" onClick="javascript:fnShowTextBoxNames();">
</CENTER>
<input type="hidden" name="boxCount" value="5"/>
</FORM>
</BODY>
</HTML>
Hope this suffice ur requirement ! -
Problem with "PL/SQL Dynamic Content" and displaying rows
hi,
im new to APEX, and pl/sql [but not web dev or sql].
ive found the bit in APEX that lets you add data from your DB using the 'CREATE' > 'PL/SQL Dynamic Content'.
maybe there's a better option for people who dont know pl/sql? i dont know?
however, i think i can getting working with a little bit of help but im stumbling around in the dark a bit here.
ok so this is the pl/sql ive come up with to show three example values on page 23 of my aplplication:
BEGIN
SELECT ID, NAME, OWNER
FROM COM_MAILSHOTS
INTO :P23_ID, :P23_NAME, :P23_OWNER;
END;
im getting the error:
1 error has occurred
ORA-06550: line 5, column 21: PL/SQL: ORA-00933: SQL command not properly ended ORA-06550: line 4, column 1: PL/SQL: SQL Statement ignored
thanks for reading!Metabaron wrote:
hi,
im new to APEX, and pl/sql [but not web dev or sql].
ive found the bit in APEX that lets you add data from your DB using the 'CREATE' > 'PL/SQL Dynamic Content'.
maybe there's a better option for people who dont know pl/sql? i dont know?
The easiest (and best) way to "display rows" is using a report. Dynamic PL/SQL regions are more complex and are required much less frequently.
The Oracle® Database 2 Day + Application Express Developer's Guide tutorial explains how to create reports and other basic APEX techniques. -
Mixing static and dynamic content in a single outputText value causes NPEs
Hi,
I am having a problem and I'm wondering if it is a result of my error or if this is a bug.
I am mixing dynamic and static content in the value attribute of tags (e.g., outputText). On initial page load, everything works fine. However, if the same view is reloaded (e.g., after a failed validation) I get an NPE from JSF:
[#|2006-10-24T08:49:03.756-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at com.sun.faces.el.MixedELValueParser.getNextToken(MixedELValueParser.java:140)
at com.sun.faces.el.MixedELValueParser.parse(MixedELValueParser.java:123)
at com.sun.faces.el.MixedELValueBinding.getValue(MixedELValueBinding.java:60)
at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:201)
at com.sun.faces.renderkit.html_basic.LabelRenderer.encodeBegin(LabelRenderer.java:128)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:609)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
at org.apache.jsp.registration_jsp._jspx_meth_h_panelGrid_0(registration_jsp.java:324)
at org.apache.jsp.registration_jsp._jspx_meth_h_form_0(registration_jsp.java:223)
at org.apache.jsp.registration_jsp._jspx_meth_f_view_0(registration_jsp.java:157)
at org.apache.jsp.registration_jsp._jspService(registration_jsp.java:118)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)My code looks like this:
<h:outputText escape="false"
value='<link href="#{myBean.styleSheet}" rel="stylesheet" type="text/css" />' />If I replace this with a much more convoluted set of tags, it works:
<h:outputText escape="false"
value='<link href="' /><h:outputText escape="false" value="#{myBean.styleSheet}"
/><h:outputText escape="false" value='" rel="stylesheet" type="text/css" />' />So is the problem that I am mixing dynamic and static content with a single value? If so, why does it work on the first view, and not after?
If it matters, I'm using the reference implementation version 1.1 (as included with NetBeans 5.5RC2) on SuSE 10.0 w/ JDK 1.5_09.
Thanks,
BillYes, that's how I originally had it, but then changed it to the outputText approach since a single tag could do what I wanted, as long as I was allowed to mix static and dynamic content within a single value.
I think this is a bug in JSF 1.1, since if what I am doing is illegal, it should throw an exception on the first page view, not work on first view and throw an exception on subsequent views. I'm guessing that this has something to do with the fact that on first page view it only runs the restore view and render response JSF phases, while on subsequent requests all of the phases will be run, and it's in one of those other phases that the exception is thrown.
For now, multiple tags is the work-around, I guess.
Thanks,
Bill -
File name field not generating dynamic file name for report printing
Hello Folks,
I have a report region on a page and have enabled report printing. I would like to have the file name generated dynamically. So, I add the substitution string, say "&P1_CUSTOMER_NAME." (no quotes). The output file I get is literally named "&P1_CUSTOMER_NAME..pdf" (no quotes).
I have seen several posts suggesting the file name field should accept this syntax but, I cannot get it to work.
We are running Application Express 3.2.0.00.27 and BI Publisher.
Any suggestions?
Thanks for your help.
-Markus B.I was finally able to make it work using a page process and the APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT with a submit button.
-Markus B. -
Generate dynamic hyperlinks in PDF
Hi,
I am using CF8. I want to generate dynamic hyperlinks for each Form field in a PDF template. Could you please suggest a solution to achieve this?
Many Thanks.thread re-created! :(
please see: Dynamic PDF Bookmarks/Hyperlink Generation in RTF template.
Edited by: Mukunthan L on Jan 20, 2010 1:35 AM -
Adding pagination in report build from PL/SQL dynamic content using htp.p
Hi,
I have a requirement for which i used PL/SQL dynamic content to build my report and i displayed my report using a cursor and loop by HTP.P function.
Now problem is I have report with more than 500 rows and I want to add pagination concept for this report.
How can i do that?
Thanks in advance.
Regards,
SmithTo preserve heading on each page for a HTML table you can use the THEADER, TFOOTER and TBODY tags (see example). To force page breaks, try experimenting with these style attributes:
<STYLE TYPE="text/css">
tr.breakhere {page-break-before: always}
</STYLE>
<tr class="breakhere">Table Example:
htp.tableopen;
htp.print('<THEAD style="display:table-header-group">');
... your table headers here
htp.print('</THEAD>');
htp.print('<TFOOT style="display:table-footer-group"><TR><TD></TFOOT>');
htp.print('<TBODY>');
... your rows here
htp.print('</TBODY>');
htp.tableclose;Edited by: crokitta on Apr 8, 2009 2:07 PM -
Print PLSQL Dynamic content region in PDF format in Oracle Apex
Hi All,
I have created a report region by selecting "PLSQL Dynamic Content".This region calls the procedure with some parameters.So i want this plsql dynamic content to be in PDF format.
For an easy understanding, I have created an application in Apex.Oracle.Com where i have created a Plsql Dynamic content which calls procedure do display in region.
Step 1: http://apex.oracle.com/pls/apex/f?p=4550:1:15635986742760:::::
Step 2: Workspace : dev_dilip
Username: [email protected]
Pwd : 123456
Step 3: Open PRINT_PDF application and Run the application.
Step 4: Username: [email protected]
Pwd : 123456
The procedure code can be viewed by object browser.
Once user cliks PDF (button inapplication) a new tab should open and that plsql region should in PDF format.
I kindly request all to check and advice me with your valuable suggestion.
regards,
Doddi Dilip.SO, you want to print the output of the procedure in pdf format? If so, you can try apex Report Query feature. You can find a number of examples for the same in this forum and in the internet:
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/hol08/apexprnt/apexprnt_otn.htm
Or, have a IR based on a collection; the collection based on a function returning query. And then, use the IR's generic download option to print reports.
http://www.oracleapplicationexpress.com/tutorials/71 -
CHART BUILDER ERROR WHEN TRYING TO GENERATE DYNAMIC CHARTS ON A JSP PAGE
I'm working with J Develop 9.03 on Windows 2000 Professional Edition.
I'm using the JSP demo files provided with Oracle Chart Builder to generate
dynamic charts. The user specifies the query parameters, including the date
range and the query results are returned by means of a line chart (with date on
the x axis and values on the y axis).
When trying to compile the project I get the following error messages:
Error(165,2): class FileOutputStream not found in class _graph
Error(170,5): class File not found in class _graph
Error(176,4): exception java.io.IOException is never thrown in the
corresponding try block
I checked to see that the chartbuilder library (chartbuilder.jar) files are
loaded into the project library. It's unusual that the class is not being
found. I don't understand why. I developed my project using the following steps:
1. Unzipped Chart Builder installation files into c:\Oraclechartbuilder
2. Loaded chartbuilder class library
c:\Oraclechartbuilder\chartbuilder\lib\chartbuilder.jar into J Developer class
path (by selecting <Project Settings> <Paths> and browsing to the
chartbuilder.jar file).
3. Created a new JSP page in J Developer (graph.jsp)
4. Copied JSP code syntax from the Word Pad demo file and pasted into graph.jsp
5. Changed the DB connection parameters and static directory location on the
JSP page.
6. Compiled the project and received the above errors.
I would like to know why the classes are not being found and how to fix the problem. Thanks, JaafarHi mshah101,
This can happen if the applet is compiled using an higher version of java and the browser is pointing to an older version (even if minor version number is higher) -
Unable to generate Dynamic PDF
Hi,
I created a xdp file from xml and xsl files and then used Form Server to generate dynamic pdf file. The xdp file has lot of javascript. The pdf file generated by form server does not change colors of labels of the fields, when incorrect values are entered into the fields (accomplished using javascript). But the xdp file used to generate this pdf when run within Adobe Form Designer shows changes of colors of labels. I observed few differences between the two approaches. One being dynamicRenderer tag. How can I accomplish the changes of colors in the pdf generated using form server?
Thanks a lot in advanceTo force the generated PDF to be a dynamic PDF add the following option to the option string passed into the renderForm() method:
RenderAtClient=true
Chris
Adobe Enterprise Developer Support -
Adding PHP pages, not showing dynamic content?
Hi all,
I'm new and hoping I don't get ripped apart for a question that seems simple. I've looked a lot though and can't seem to find an exact scenario like this. I recently took over a PHP site for a friend that was built in Dreamweaver CS3.
There's a master page (main.php) that includes a header and footer and middle area of dynamic content. Thus, all of the pages appear like: http://www.SITENAME.com/main.php?mod=about (for the 'about' page) or www.SITENAME.com/main.php?mod=welcome (for the landing/home page), etc.
In main.php, there's a section of: // Include Multiple Static Pages that looks like this:
$mxiObj->IncludeStatic("about", "about.php");
for every static page.
All of this makes sense to me. Here's my problem:
When adding a new page now, I can't get it to show any of the dynamic content on the live site. I just get the static header and footer to show.
In the main.php file, there's this section:
</div>
<div id="mainContent">
<p>
<?php
$incFileName = $mxiObj->getCurrentInclude();
if ($incFileName !== null) {
mxi_includes_start($incFileName);
require(basename($incFileName)); // require the page content
mxi_includes_end();
?></p>
</div>
that's supposed to pull in the dynamic content. It's doing this just fine on the older pages, but not on the ones I'm trying to build now.
I guess I'm asking if there's some type of file in an 'includes' folder that I'm missing where I need to make sure the FileName is also listed (not just in the static section on main.php)? What's the mising link that will get this dynamic content to show up?
Thanks for any help in advance and for reading this!The quickest way to add new pages is to
copy the template (index.php) to a new document (newdoc.php or similar)
remove the PHP stuff - stuff that is not required for the new content
if there are inludes for the menu, header, footer or similar, then you can link those back into the document using standard includes
add the new content to the newly created document
This will give you a stand-alone document. At a later stage you can convert these documents into a DW-template system.
Maybe you are looking for
-
is it possible to stop the system time out on my imac? i have tried 5 times in the last 24 hrs.it will run for approx.3hrs,and then times out and i have to start from the beggining again
-
Why is my connection timing out on a reinstall of OS X on new SSD?
Hello, I'm hoping someone can help me with a fresh reinstall of OS X on a MacBook Pro. My HDD died, so I installed a new SSD. The physical installation went fine. I booted into Internet Recovery by holding Option to get to the boot menu. From there,
-
LINUX wls 6.0 sp2 & jdk 131 - Unable to start the Server - Segmentation fault
Facing problems in starting a weblogic 6.0 server with service pack 2 for Linux. OS: RedHat7.0 BEA WLS version : 6.0 Service pack : SP2 JDK version : jdk1.3.1 When starting the startWebLogic.sh, it fails to start up completely and ends in a "startWeb
-
Safari repeatedly crashes, This is a crash log
Process: Safari [152] Path: /Applications/Safari.app/Contents/MacOS/Safari Identifier: com.apple.Safari Version: 3.2.3 (5525.28.3) Build Info: WebBrowser-55252803~5 Code Type: X86 (Native) Parent Process: launchd [75] Interval Since Last Report: 534
-
Banking BADi - Cleaning up data related to 'failed' migration groups
We have a requirement to clean up all appropriate custom tables after a migration group is marked as failed. i.e when a migration group is marked as failed all non-sap tables we have which refer to GUIDs belonging to the group should be deleted or ma