Dynamically binding CachedRowSet and page navigation exception
I create one page and drop a table, then create one xxxDataProvider and two rowsets from one database table, rowSet1 is set to have a criteria with the key (xxx) and default to bind with the table, rowSet2 doesn't.
In the prerender(), get the session variable for the criteria (xxx), if the value of xxx == null, xxxDataProvider bind to rowSet2. else xxxDataProvider.setObject(1, value of xxx).
execute the page, both work well.
now add a link, if set the link's URL property to another page, both situations work fine, but if I create an action handle method for the link and from there navigate to another gage, if the value of xxx exists, it goes well, or it throws exception like this:
Exception Handler
Description: An unhandled exception occurred during the execution of the web application. Please review the following stack trace for more information regarding the error.
Exception Details: org.apache.derby.client.am.SqlException
At least one parameter to the current statement is uninitialized.
Possible Source of Error:
Class Name: org.apache.derby.client.am.PreparedStatement
File Name: null
Method Name: checkThatAllParametersAreSet
Line Number: -1
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack Trace:
org.apache.derby.client.am.PreparedStatement.checkThatAllParametersAreSet( Unknown Source )
org.apache.derby.client.am.PreparedStatement.flowExecute( Unknown Source )
org.apache.derby.client.am.PreparedStatement.executeQueryX( Unknown Source )
org.apache.derby.client.am.PreparedStatement.executeQuery( Unknown Source )
com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:193)
com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:950)
com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1410)
com.sun.data.provider.impl.CachedRowSetDataProvider.checkExecute(CachedRowSetDataProvider.java:1219)
com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:329)
com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(CachedRowSetDataProvider.java:300)
com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount(CachedRowSetDataProvider.java:624)
com.sun.rave.web.ui.component.TableRowGroup.getRowKeys(TableRowGroup.java:806)
com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys(TableRowGroup.java:429)
com.sun.rave.web.ui.component.TableRowGroup.getSortedRowKeys(TableRowGroup.java:1385)
com.sun.rave.web.ui.component.TableRowGroup.getRenderedRowKeys(TableRowGroup.java:876)
com.sun.rave.web.ui.component.TableRowGroup.iterate(TableRowGroup.java:1956)
com.sun.rave.web.ui.component.TableRowGroup.processDecodes(TableRowGroup.java:1679)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
com.sun.rave.web.ui.component.Form.processDecodes(Form.java:78)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)
Exception Details: java.lang.RuntimeException
org.apache.derby.client.am.SqlException: At least one parameter to the current statement is uninitialized.
Possible Source of Error:
Class Name: com.sun.data.provider.impl.CachedRowSetDataProvider
File Name: CachedRowSetDataProvider.java
Method Name: setCursorRow
Line Number: 343
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack Trace:
com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:343)
com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(CachedRowSetDataProvider.java:300)
com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount(CachedRowSetDataProvider.java:624)
com.sun.rave.web.ui.component.TableRowGroup.getRowKeys(TableRowGroup.java:806)
com.sun.rave.web.ui.component.TableRowGroup.getFilteredRowKeys(TableRowGroup.java:429)
com.sun.rave.web.ui.component.TableRowGroup.getSortedRowKeys(TableRowGroup.java:1385)
com.sun.rave.web.ui.component.TableRowGroup.getRenderedRowKeys(TableRowGroup.java:876)
com.sun.rave.web.ui.component.TableRowGroup.iterate(TableRowGroup.java:1956)
com.sun.rave.web.ui.component.TableRowGroup.processDecodes(TableRowGroup.java:1679)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
com.sun.rave.web.ui.component.Form.processDecodes(Form.java:78)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:880)
javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:306)
com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:79)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:185)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:653)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:534)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doTask(ProcessorTask.java:403)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:55)Is my way the right one?
Thank you very much!
Replacing the link with a button, the problem remains.
I guess it has something to do deep inside the life cycle.
Similar Messages
-
Print, Export and Page Navigation Buttons in the Report
When I view a report through CR4E, the generated report has 3 buttons namely Print, Export and Page Navigation buttons. But when I click on either of the buttons I get a 'null pointer exception'. This is a critical error as I am unable to navigate past the first page. Do I have to add code to these buttons? If not, why am I getting an error? Kindly solve my problem as soon as possible.
<p>Looking at your code it appears that you are storing the ReportSource in session prior to passing in the ResultSet. This will create a problem when a postback is made on the viewer page (which all of the viewer actions do). If you look at the sample code which is generated when you use the JSP Page Wizard you will notice that the ResultSet is passed to the ReportClientDocument object prior to it being stored in session. Then, when the page is called again this object is retrieved and the ReportSource is used by the viewer. You can quickly run the test using one of our sample reports to see what I am talking about. The code below was generated using the Consolidated Balance Sheet.rpt and did not experience any problems doing any of the viewer actions.</p><%@page import="com.businessobjects.samples.JRCHelperSample,<br />com.crystaldecisions.report.web.viewer.CrystalReportViewer,<br />com.crystaldecisions.reports.sdk.ReportClientDocument,<br />com.crystaldecisions.sdk.occa.report.application.OpenReportOptions,<br />com.crystaldecisions.sdk.occa.report.lib.ReportSDKExceptionBase,<br />com.crystaldecisions.sdk.occa.report.reportsource.IReportSource,<br />java.sql.Connection,<br />java.sql.DriverManager,<br />java.sql.ResultSet,<br />java.sql.SQLException,<br />java.sql.Statement"%><%<br /><br /><br /> try {<br /><br /> String reportName = "Sample Reports/Consolidated Balance Sheet.rpt";<br /> ReportClientDocument clientDoc = (ReportClientDocument) session.getAttribute(reportName);<br /><br /> if (clientDoc == null) {<br /><br /> clientDoc = new ReportClientDocument();<br /> <br /> // Open report<br /> clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);<br /><br /> <br /> {<br /> // **** POPULATE MAIN REPORT ****<br /> {<br /> // Connection Info for fetching the resultSet<br /> String connectStr = "jdbc:derby:classpath:/Xtreme";<br /> String driverName = "org.apache.derby.jdbc.EmbeddedDriver";<br /> String userName = "dbuser"; // TODO: Fill in database user<br /> String password = "dbpassword"; // TODO: Fill in valid password<br /><br /> String query = "SELECT CUSTOMER_NAME FROM APP.CUSTOMER WHERE COUNTRY = 'Australia'";<br /><br /> <br /> String tableAlias = "FINANCIALS"; // TODO: Change to correct table alias<br /><br /> <br /> JRCHelperSample.passResultSet(clientDoc, fetchResultSet(driverName, connectStr, userName, password, query),<br /> tableAlias, "");<br /> }<br /><br /><br /> }<br /> <br /> // Store the report document in session<br /> session.setAttribute(reportName, clientDoc);<br /><br /> }<br /><br /><br /> {<br /> // Create the CrystalReportViewer object<br /> CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();<br /><br /> // set the reportsource property of the viewer<br /> IReportSource reportSource = clientDoc.getReportSource(); <br /> crystalReportPageViewer.setReportSource(reportSource);<br /><br /> // set viewer attributes<br /> crystalReportPageViewer.setOwnPage(true);<br /> crystalReportPageViewer.setOwnForm(true);<br /><br /> // Process the report<br /> crystalReportPageViewer.processHttpRequest(request, response, application, null); <br /><br /> }<br /> <br /><br /> } catch (ReportSDKExceptionBase e) {<br /> out.println(e);<br /> } <br /> <br />%><%!<br />// Simple utility function for obtaining result sets that will be pushed into the report. <br />// This is just standard querying of a Java result set and does NOT involve any <br />// Crystal JRC SDK functions. <br /><br /> private static ResultSet fetchResultSet(String driverName,<br /> String connectStr, String userName, String password, String query) throws SQLException, ClassNotFoundException {<br /><br /> //Load JDBC driver for the database that will be queried <br /> Class.forName(driverName);<br /><br /> Connection connection = DriverManager.getConnection(connectStr, userName, password);<br /> Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);<br /><br /> //Execute query and return result sets<br /> return statement.executeQuery(query);<br /><br />}%><p>Try using the code generated from the wizard to see if it works for you as well. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>
-
Output_link and Page Navigation
Is it possible to use output_link with JSP Page Navigation Model? At first sight, the answer is no. The value attribute is mandatory and rendered into href attribute. So, I have to point to the next page directly, bypassing the Page Navigation Definition in faces-config.xml . It is not good, because it broken the concept of JSP Navigation mechanism. In other works, the Page Flow created based on faces-config.xml navigation rules will be uncompleted potentially. In turn, it reduces the value of modeling (in GUI tools) drastically.
If I am right, JSF misses the substitute for <h:command_link action="foo" immediate="false"> that works outside the form. I.e. something, that allows to involve Page Navigation, instead of avoiding it. (Something like <h:output_link action="foo">)I guess, redefining nested place for command_link may be a critical changes in the current JSF RI implementation. Probably, it might be easier to do the following:
1. Add action attribute to the output_link
2. Make both value and action attributes optional
3. In case developer defines only value, the tag works as it works now (href=value)
4. In case developer defines only action, href = current_page_url + '?actionId='+action
in this way, the link works similar to command_link action="foo" immediate="true"
5. If developer defines both attributes then href=value + '?actionId=' + action
In this case, Navigation Model finds the defined page by URL and than makes a transfer according the defined action. BTW, such feature makes it possible to organize common starting points for Website menus which will be clearly presented in the application faces-config. -
Polymorphism , Dynamic Binding, Widening and I'm totally confused
class Fruit
private String name;
public String getName()
return this.name;
class Apple extends Fruit
private String typeOfApple;
public void setTypeOfApple(String type)
this.typeOfApple=type;
public String getTypeOfApple()
return this.typeOfApple;
class Banana extends Fruit
private String typeOfBanana;
public void setTypeOfBanana(String type)
this.typeOfBanana=type;
public String getTypeOfBanana()
return this.typeOfBanana;
public class ExceptionTesting
public static void main(String args[])
Fruit obj=new Apple();
obj.setTypeOfApple(); // ??? Why can't I do this ???
}how can I achieve something like underneath by modifying above code ???
Fruit whateverFruit=new Apple();
whateverFruit.setTypeOfApple();
whateverFruit=new Banana();
whateverFruit.setTypeOfBanana();
whateverFruit=new Orange();
whateverFruit.setTypeOfOrange();
...Harry_lynn_17 wrote:
I do apologize if it's become sound like stupid or something . I know somehow it's not very suitable to think in that way but I was just thinking of the object reference variable as a pointer becauseA reference is like a "filtered" pointer to an object: it will only show that part of the object that corresponds with the type of the reference. So after "Fruit whatever = new Banana();", the "whatever" reference only shows the "Fruit" part of the "Banana" object. This means you can only call methods that are defined in Fruit, not those defined in Banana.
Dynamic binding means the JVM will decide at runtime which method implementation to invoke based on the class of the object. So, I thought
Fruit whateverFruit=new Banana(); and then if i tried to invoke whateverFruit.yellowBanana(); then the compiler will try to find the method out and executed automatically.That's not what it means. It means when you have "Fruit whatever = new Banana()" and you call "whatever.getName()", it will call the getName() method from Banana, if Banana overrides the implementation of Fruit. You can still only use methods that are defined in Fruit through a reference of type Fruit. In this case, it doesn't seem that the behaviour of setTypeOfApple() is different from setTypeOfBanana(), so ejp's recommendation to just create a setType() method in Fruit is correct.
Polymorphism means a variable of a superclass type to hold a reference to an object whose class is the superclass or any of its subclasses. So, I thought Fruit whateverFruit is somehow capable to hold the reference of its subclasses and can be used to reference of its subclasses. That's basically correct. However, the variable will only expose the superclass part of the subclass object.
I got confused with all those stuff and kinda lost. There's one more thing. What's the point of doing something like this Fruit apple=new Apple() if I can't reference to an instance of apple object ?? I mean I could just simply write like this Fruit aFruit=new Fruit(). Sorry, if i've become sound like a fool but i'm really confused. Please help me out of this and thanks in advance.The point of having any superclass/subclass combo is that your problem domain demands that you make the distinction: sometimes you need to be able to treat an object as Fruit, sometimes you need to be specific and treat it like an Apple. For example, if you sell fruit and need to calculate the total price of a fruit basket, all you need to know is that each piece of Fruit has a getPrice(), you don't need to know that one piece is an Apple and another piece is a Banana. However, if a customer demands a kilogram of apples, you need to make sure you give him only Apples and not Banana's.List<Fruit> fruitBasket = new ArrayList<Fruit>();
fruitBasket.add(new Apple("Granny Smith"));
fruitBasket.add(new Banana("Chiquita"));
fruitBasket.add(new Apple("Golden Delicious"));
int priceOfBasket = 0;
for(Fruit pieceOfFruit:fruitBasket) {
priceOfBasket += pieceOfFruit.getPrice();
Set<Apple> appleScale = new HashSet<Apple>();
appleScale.add(new Apple("Granny Smith"));
appleScale.add(new Apple("Golden Delicious"));
appleScale.add(new Banana("Chiquita")); // ERROR -
"Edit Page" Causes Image and Page Navigation to Change
I am a client and have no idea what I am doing. My site was developed in Dreamweaver and I edit simple text and photos using Adobe Contribute. On one specific page, when I hit "EDIT PAGE," the main image on the page changes - basically the photo shifts an inch to the right, the last 1/4 of the photo separates from the main photo and you can see the background. Plus the navigation goes haywire. My graphic artist cannot help...I don't know what to do. The changes that it makes are unacceptable to publish. The image is static so it's not in the flash coding, I tried to see if I could find the style assigned to the photo but there is none. I am lost
Does the file need to be created in Illustrator? I have some content elements that basically contain some text and boxes. So I am wondering is this still the best way? Sounds like I cannot create the library element in InDesign.
Also, I was told that another possibility is to create a page for that element, then place it in the InDesign file. Would that work as well? I basically have about 20 different design elements that I want to use in various documents. Since they would likely change it makes sense for me to have the capibility to edit the document once. -
Selected Text and Page Navigation
Okay.
Have a document that has several artboards in it. (kinda like a multipage document). Each page is similar, but some of the text boxes has variations from page to page. So if I am zoomed in on page 1 to one text box and I select some text, using the type tool, and then hit SHIFT-page down (or page up) to go to the next page, it won't. Switch to a different tool, and it works.
WHY? Why can't I use a keyboard short cut to jump to another page while in the type tool mode? I don't want to take my hand off the keyboard or move the mouse.
Suggestions?
Thanks.The Shift Page shortcuts are not coming from the keyboard shortcuts panel. When I try to enter them says ai cannot use that, searching with artboard was no help either. Tried making an action, btu unfortuantley that did nto work either. I also chcked the system Preference for Keybaord, and could nto find the keyboard shorcut coming fomr there either.
In summary uopu can use home and end while inside text and the I beam is flashing, btu not page up or page down. That seems to be a hidden comand for goingf to next and previous artboard, so that will lwork without any text on the page. -
Dynamic Actions & Cascading List of Values (Exception thrown and not caught
I am having a really strange issue within my Apex 4.0 environment where I am trying to build dynamic actions and cascading list of values.
I am trying to develop new functionality in an existing application, (original application developed using HTMLdb 1.6 and gradually updated to Apex 4.0.1), to add a dynamic action that sets a value of another field, using SQL. The dynamic action is failing with 'Exception thrown and not caught - jquery-1.4.2.min.js Line: 28 Char: 162'. However, when I create a new application within the same workspace and develop the same functionality is works without a problem.
I have ensured the templates for each page/region are an exact copy of each other.
<b>When I run the application in Firebug I get the following information:</b>
Date Fri, 31 Dec 2010 14:20:03 GMT
Server Oracle-Application-Server-11g
X-DB-Content-length 87
Set-Cookie HTMLDB_IDLE_SESSION=31-DEC-2010 23:20:03;path=/
Content-Length 87
Keep-Alive timeout=5, max=99
Connection Keep-Alive
Content-Type text/html; charset=UTF-8
Content-Language en
<b>For the application that is working I get slightly different response headers.</b>
Date Fri, 31 Dec 2010 14:20:37 GMT
Server Oracle-Application-Server-11g
Cache-Control no-cache
Pragma no-cache
X-DB-Content-length 14
Content-Length 14
Keep-Alive timeout=5, max=94
Connection Keep-Alive
Content-Type application/json
Content-Language en
<b>Notice the Content-Type for the version that doesn't work is using "text/html", while the working version uses "application/json"
Firebug also provides the following error:</b>
uncaught exception: Invalid JSON: Content-type: application/json Cache-Control: no-cache Pragma: no-cache {"value":"1"}
<b>Does anyone have any idea what is going on??
Thanks.
Jon</b>Patrick,
Thanks my session verify function was causing the problem and I have removed it temporarily from my authentication scheme.
I am using the "check_timeout" function that was developed a number of years ago as part of a "How To" section in the old HTMLdb days. I knew there was an issue with this routine as the newer versions of the browsers handle cookies differently and I was going to redevelop it at some point. Do you know which part of the function causes the issue?
Many Thanks,
Jon
FUNCTION check_timeout
RETURN BOOLEAN
AS
l_session_expire VARCHAR2(256) := NULL;
l_cookie_exists BOOLEAN := TRUE;
BEGIN
IF htmldb_custom_auth.get_user IS NULL THEN
RETURN TRUE;
END IF;
BEGIN
l_session_expire := owa_cookie.get('HTMLDB_IDLE_SESSION').vals(1);
EXCEPTION WHEN NO_DATA_FOUND THEN
l_cookie_exists := FALSE; -- no cookie set, assume first page visit after login
END;
IF l_cookie_exists
AND TO_DATE(l_session_expire,'DD-MON-YYYY HH24:MI:SS') < SYSDATE
THEN
wwv_flow.g_unrecoverable_error := TRUE;
owa_util.redirect_url('f?p='||'500:101'); -- Note hard-coded login application and page ID 500:101
RETURN FALSE;
ELSIF NOT g_cookie_already_sent THEN
owa_util.mime_header('text/html', FALSE);
owa_cookie.send ( NAME => 'HTMLDB_IDLE_SESSION',
VALUE => TO_CHAR(SYSDATE+(c_max_idle_minutes/1440),'DD-MON-YYYY HH24:MI:SS'),
expires => NULL,
path => '/',
domain => NULL );
owa_util.http_header_close;
g_cookie_already_sent := TRUE;
END IF;
RETURN TRUE;
END check_timeout; -
Parent (Global) and Current (Navigation) on the Same Page
Hello,
I am using the managed metadata feature in a SharePoint 2013 publishing site. I am trying to layout my navigation as shown in the diagram below. I can not find a publishing master page that implements this parent child relationship. My
top navigation is use the markup:
<PublishingNavigation:PortalSiteMapDataSource ID="topSiteMap" runat="server" EnableViewState="false" SiteMapProvider="GlobalNavigationSwitchableProvider" StartFromCurrentNode="false" StartingNodeOffset="0"
ShowStartingNode="false" TrimNonCurrentTypes="Heading"/>
<SharePoint:AspMenu ID="TopNavigationMenu" runat="server" EnableViewState="false" DataSourceID="topSiteMap" AccessKey="<%$Resources:wss,navigation_accesskey%>"
UseSimpleRendering="true" UseSeparateCss="false" Orientation="Horizontal" StaticDisplayLevels="1" AdjustForShowStartingNode="true" MaximumDynamicDisplayLevels="1" SkipLinkText=""/>
I have tried using the same markup, using a different StartingNodeOffset and SiteMapProviders, for the side menu with no success.
Thanks,
BobHi,
According to your post, my understanding is that you wanted to create Parent (Global) and Current (Navigation) on the Same Page.
You can make quicklaunch work contextually like structural nav quicklaunch using Managed Metadata navigation. Please refer to:
Managed Metadata Navigation - How do you make quicklaunch work contextually like structural nav quicklaunch?
In addition, you can used JQuery and CSS to achieve staticlevel left navigation in SharePoint 2013.
Here is a similar thread for your reference:
http://social.technet.microsoft.com/forums/sharepoint/en-US/54edc501-0594-49e3-86b2-40ecf72bc68e/show-2-level-hierarchy-in-managed-navigation-menucurrent-navigation-in-sharepoint-2013
More information:
Overview of managed navigation in SharePoint Server 2013
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
JSF Page Navigation from Tab to another page and back to tab
I have a Page with tabs and a button in each of those presenting a Table and "Create Button"
I would like to go to a new page and come back to the same active tab.
How do I set the page navigation properties?
Right now I am in
Page1(Tab3) Button click-> page2(Create)->Page1 is showing a wrong active tab.
Can we tell page navigation to go activate a tab it came from?
Message was edited by:
spattabiramanHello, maybe if u declare a sessionbean variable as string, in the page u want to open thew tab, in init() you must call the session bean withh the name of the tab u are calling, for example:
getSessionBean1().setSeltab("tab1");
i hope it can help
Beltazor -
I can reduce the width by some CSS inside the page CEWP or Master Page that's fine.
BUT
I need a SharePoint theme - which simply reduces the width of the page content to 960px. (Without affecting the top ribbon and top navigation which should stay as they are).
Any clue how to do that please? Any sample theme?
Thanks.Not sure what you are asking here exactly. By theme, do you mean a design package (masterpage + css)?
Nikolas Charlebois-Laprade Microsoft Certified Professional & Software Engineer http://nikcharlebois.com -
How to set the bind variable on page load and execute query ?
Hi All,
I am using Jdeveloper 11.1.1.5
I have a table called "Employee"
Columns :- id , name , location
Data :- 1, ,james , chicago
2 ,Raj ,capetown
Now i have another webservice(created as a webservice dataControl) which sends me the "id" on each time my page loads.Now the id which has been returned by webservice should be incorporated in my VO Query as in where clause to fetch the data for the respective "id" in that "Employee" table and should be rendered on form.
Eg :- Id "2" has been sent by the webservice then the record should be fetched from database should be "2","raj","capetown".
I know that there would be necessity of bind variable , but how do i set the bind variable on page load ?
How can i use the bind variable appropriately ??
Please suggest !!!!
Thanks.Hi,
Check
http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/web_services.htm#CJADCDBG
http://thepeninsulasedge.com/frank_nimphius/2011/02/18/adf-code-corner-sample-73-released-hands-on-creating-a-search-form-using-a-pojo-ws-and-the-web-service-data-control/
-Suresh -
Navigation structure with books and pages
We are setting up a navigation system in Portal 8.1. When setting this up, we have
run into some issues with the fact that books appear in the navigation structure,
but contain no content. As a result, we have had to create a homepage for each
book. This creates a repeat of the section name in the navigation structure, one
for the book and one for the page. For example, we have our Home book. Then we
have our Home page (since books cannot directly contain portlets). In our navigation
"Home" is repeated twice, but the book link just goes to the default page (either
the last visited page within that session or the top page in that book if the
no page has been visited).
The navigation we are trying to get is very similar to the one here on bea's website.
For example, when you click on Partners, it takes you to the Partners home page.
This section has many other pages located inside of it as well. Does anyone have
any suggestions on how to set this up?
Thanks!!!
ErinI've opened a support case for this item. When I get this resolved I will post
the solution. But, to clarify the issue, the standard way that portal navigation
works is that when a user clicks on a book the user is directed to a default page.
This default page is either the last page visited during the session or the first
page in the book if no page has been visited. The problem is that the book itself
does not contain content. So if you wanted the "Partners" book to have a homepage
titled "Partners" (just like here on BEA's site) then the word "Partners" would
appear twice in the left nav (once as a book and once as a page). But only the
page would actually contain content. Plus when a user clicked on the "Partners"
book it would not always take them to the "Partners" homepage.
"Chris Jolley" <[email protected]> wrote:
>
Not sure i understand your problem:
However:
Books can contain 1 or more Books and Pages, and can have an optional
menu.
Pages can contain Portlets and Books.
What is it that you want on the 'Partners' Book?
"Erin Powell" <[email protected]> wrote:
We are setting up a navigation system in Portal 8.1. When setting this
up, we have
run into some issues with the fact that books appear in the navigation
structure,
but contain no content. As a result, we have had to create a homepage
for each
book. This creates a repeat of the section name in the navigation structure,
one
for the book and one for the page. For example, we have our Home book.
Then we
have our Home page (since books cannot directly contain portlets). In
our navigation
"Home" is repeated twice, but the book link just goes to the default
page (either
the last visited page within that session or the top page in that book
if the
no page has been visited).
The navigation we are trying to get is very similar to the one hereon
bea's website.
For example, when you click on Partners, it takes you to the Partners
home page.
This section has many other pages located inside of it as well. Does
anyone have
any suggestions on how to set this up?
Thanks!!!
Erin -
Since I use a couple of page fragments with menu's, I'm using wildcards for the navigation between pages. However, I'm trying to do things like
<from-view-id>foo</from-view-id>
Somehow JSC doesn't understand this. Is there any detailed information available somewhere about page navigation wildcards? I really don't feel like inserting 32 rules instead of 2 wildcards...The navigation file is a faces config file (as shown by the DTD at the top of the file), and the DTD (http://java.sun.com/dtd/web-facesconfig_1_0.dtd) has this to say about wildcards:
<!--
A "ViewIdPattern" is a pattern for matching view identifiers in
order to determine whether a particular navigation rule should be
fired. It must contain one of the following values:
- The exact match for a view identifier that is recognized
by the the ViewHandler implementation being used (such as
"/index.jsp" if you are using the default ViewHandler).
- A proper prefix of a view identifier, plus a trailing "*"
character. This pattern indicates that all view identifiers that
match the portion of the pattern up to the asterisk will match the
surrounding rule. When more than one match exists, the match with
the longest pattern is selected.
- An "*" character, which means that this pattern applies to all
view identifiers.
-->
<!--ENTITY % ViewIdPattern "CDATA"-->
Thus, as you can see you're a bit limited in where you can put the *, and you can only use one.
-- Tor
http://blogs.sun.com/tor -
What is the sharable SQL except bind varables and shared cursors?
What is sharable SQL except bind varables and shared cursors?
Specification: The value of CURSOR_SHARING parameter must be EXACTYou haven't given much of the elaboration but whatever you have given, based on that shareable sql is that one which won't change. So if you have ran select * from emp for the first time and than would run it again, for you its a shareable sql.
HTH
Aman.... -
Dynamic Binding and Interactions
Hi,
When we invoke a BPEL say "MyBPEL2" from another BPEL say "MYBPEL1" we can see the instance id of "MyBPEL2" in "Interactions" tab of "MyBPEL1" from the BPEL console GUI, seems there is some kind of parent-child relationship maintained in dehydration database. But i dont see the same relation if MyBPEL2 is dynamically binded and invoked?
any ideas please?
thanks,
-Ng.Are you saying the classes have package access, or their methods (e.g. toString)?
If the latter (methods) it won't compile.
If the former (classes) then polymorphism works as usual--whatever you have an instance of at runtime, that's whose method is called.
You can't refer to one of those package-protected classes by name, but if you get your hands on one (say from a public factory) with a reference of some public superclass or interface, then you can call any public methods specified by that public superclass/interface, and the appropriate method wil get called on the concrete object.
If you look at the source code for the Collections classes, you'll find that the Iterator implementations are either package scoped or private, I think.
Maybe you are looking for
-
ITunes won't open, QuickTime error message
By accident, I deleted QuickTime, and can now not open iTunes, so I downloaded QuickTime again, recieved a message that QuickTime has been successfully downloaded, but when I try to open/run it, I get this error message: "C:\Documents and Settings\Ow
-
Looking for lightweight Spreadsheet app
As the title says, has anyone any suggestions as to a lightweight, simple spreadsheet application, that is not Openoffice, Gnumeric, etc. I did try a couple curses based ones, namely sc http://www.boutell.com/lsm/lsmbyid.cgi/000293 and teapot http://
-
Hi, I need to convert SAP generated ALF Printlists to XML format. For that I need to understand the structure of ALF (rather the grammar) so that I can parse it for XML conversion. May I know where I can get information on this? I will be using Java
-
How to subscribe to podcasts? App stopped working
Hello! I had to replace my BB Bold because of damage (same model), and the podcast app didn't work on my replacement phone. I have tried downloading the podcast app from the app store, but that just succeeded in getting me a useless search function
-
Has the performance of the iTunes store taken a dive?
Since the update to iTunes 6, the performance of the iTunes store seems very, very slow. It can take over a minute for the store to come up and a download of a single music track is many minutes. Is this just my setup (on both a mac and pc with iTune