Dynamic code not rendering

I am working on my first dynamic website in DW CS5.5.  I have already set up the back end successfully, and am working on the presentation.
The database, recordset and dynamic text are in place, and they test properly, but in neither Live View nor Browser View do the dynamic items appear.  I am also using a Tom Muck extension, Horizontal Looper, but I don't think this is the problem.
When I was creating the back end, I remember having some similar problems as well, but I seemed to work through them, but I don't remember the "trick".
I have restarted Apache and MYSQL on xampp, without results.  If anyone can offer advice, thanks much!
Regards, Ned
<?php require_once('Connections/sowcs_test.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
$colname_getProducts = "-1";
if (isset($_GET['prodCategory'])) {
  $colname_getProducts = $_GET['prodCategory'];
mysql_select_db($database_sowcs_test, $sowcs_test);
$query_getProducts = sprintf("SELECT prodID, prodCode, prodCategory, prodName, imgThumb FROM products WHERE prodCategory = %s ORDER BY prodCode ASC", GetSQLValueString($colname_getProducts, "int"));
$getProducts = mysql_query($query_getProducts, $sowcs_test) or die(mysql_error());
$row_getProducts = mysql_fetch_assoc($getProducts);
$colname_getProducts = "-1";
if (isset($_GET['1'])) {
  $colname_getProducts = $_GET['1'];
mysql_select_db($database_sowcs_test, $sowcs_test);
$query_getProducts = sprintf("SELECT prodID, prodCode, prodCategory, prodName, imgThumb FROM products WHERE prodCategory = %s ORDER BY prodCode ASC", GetSQLValueString($colname_getProducts, "int"));
$getProducts = mysql_query($query_getProducts, $sowcs_test) or die(mysql_error());
$row_getProducts = mysql_fetch_assoc($getProducts);
$totalRows_getProducts = mysql_num_rows($getProducts);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/sowcsmain.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>SONOMA OLD WORLD CAST STONE | Elegant decorative stonework accessories components for your home, estate, office building or place of business</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="stylesheets/sowcsmain.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="p7pmm/p7PMMscripts.js"></script>
<link href="p7pmm/p7PMMh07.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body>
<div class="container">
  <div class="header"><img src="images/header_img.jpg" width="960" height="200" alt="Sonoma Old World Cast Stone" />
    <!-- end .header --></div>
    <div class="navbar">
    <div class="navmenu">
      <div id="p7PMM_1" class="p7PMMh07 p7PMMnoscript">
        <?php require('includes/main_menu.php'); ?>
        <div class="p7pmmclearfloat"> </div>
        <!--[if lte IE 6]>
<style>.p7PMMh07 .current_mark {font-weight: normal; text-transform: uppercase;} .p7PMMh07 ul ul .current_mark {font-weight: bold;} .p7PMMh07 li {filter: alpha(opacity=80);} .p7PMMh07 ul ul li {float:left; clear: both; width: 100%;}.p7PMMh07 {text-align: left;}.p7PMMh07 ul ul a {zoom: 1;}</style>
<![endif]-->
        <!--[if IE 5]>
<style>.p7PMMh07, .p7PMMh07 ul ul a {height: 1%; overflow: visible !important;} .p7PMMh07 {width: 100%;}</style>
<![endif]-->
        <!--[if IE 7]>
<style>.p7PMMh07, .p7PMMh07 a{zoom:1;}.p7PMMh07 ul ul li{float:left;clear:both;width:100%;}</style>
<![endif]-->
        <script type="text/javascript">
<!--
P7_PMMop('p7PMM_1',1,2,-5,-5,0,1,0,1,0,3,1,1,0,0,0);
//-->
        </script>
      </div>
      </div>
      <!-- end .menubar -->
    </div>
  <div class="sidebar1"> 
  <div align="center">
  <p><strong>PRODUCT<br />CATEGORIES</strong></p>
    <img src="images/024 Pedestal_ with_girls_sidebar.jpg" width="125" height="250" alt="Pedestal category image" class="sidebar" />
    <p class="sidebarcaption"><a href="#">PEDESTALS</a></p>
    <img src="images/066_Barrel_with_grapes_sidebar.jpg" width="125" height="234" alt="Barrel with Grapes Plaque" class="sidebar" />
    <p class="sidebarcaption"><a href="#">PLAQUES</a></p>
          <img src="images/sowcslogo.jpg" width="150" height="150" alt="Sonoma Old World Cast stone logo" class="sidebar" />
     </div><!-- InstanceBeginEditable name="sidebar1" -->   
    <!-- InstanceEndEditable -->   
  <!-- end .sidebar1 --></div>
  <div class="content"><!-- InstanceBeginEditable name="content" -->
  <h1>PEDESTALS</h1>
  <table >
    <tr>
      <?php
$getProducts_endRow = 0;
$getProducts_columns = 3; // number of columns
$getProducts_hloopRow1 = 0; // first row flag
do {
    if($getProducts_endRow == 0  && $getProducts_hloopRow1++ != 0) echo "<tr>";
   ?>
      <td><p><?php echo $row_getProducts['imgThumb']; ?></p>
        <p>Item #<?php echo $row_getProducts['prodCode']; ?></p>
        <p><?php echo $row_getProducts['prodName']; ?></p>        <p>VIEW</p></td>
      <?php  $getProducts_endRow++;
if($getProducts_endRow >= $getProducts_columns) {
  ?>
    </tr>
    <?php
$getProducts_endRow = 0;
} while ($row_getProducts = mysql_fetch_assoc($getProducts));
if($getProducts_endRow != 0) {
while ($getProducts_endRow < $getProducts_columns) {
    echo("<td> </td>");
    $getProducts_endRow++;
echo("</tr>");
}?>
  </table>
  <!-- InstanceEndEditable -->
    <!-- end .content --></div>
  <div class="footer">
      <!-- InstanceBeginEditable name="footer" --><!-- InstanceEndEditable -->
    <div class="bottommenu"><?php include('includes/bottom_menu.php'); ?></div>
    <p><strong>SONOMA OLD WORLD CAST STONE</strong><br />
    2995 Wiljan Court #A, Santa Rosa CA 95407 | p. 707-874-2709</p>
    <p>&copy;<?php
    ini_set('date.timezone', 'America/Los_Angeles');
    $startYear = 2013;
    $thisYear = date('Y');
    if ($startYear == $thisYear) {
        echo $startYear;
    else {
        echo "{$startYear}-{$thisYear}";
    ?> Sonoma Old World Cast Stone | All Rights Reserved</p>
  </div>
    <!-- end .footer --></div>
  <!-- end .container --><!-- InstanceBeginEditable name="CurlyTag" --><!-- InstanceEndEditable -->
</body>
<!-- InstanceEnd --></html>
<?php
mysql_free_result($getProducts);
?>

I apologize for time wasted, as I discovered the errors were basic things regarding image files:
Embarrassed to say that my image files were not uploaded to the server
Paths to the images were not correct, although I just realized that I have some additional relativity issues to deal with
I realized that I have to wrap the php link to the image with an <img src> tag
Appreciate your help!
Rgds, Ned

Similar Messages

  • PHP Code Not Rendering

    Hi, I'm running Mac OS X 10.6.6 (Snow Leopard).
    I have tried for a couple hours now to install (or activate?) PHP on my Macbook Pro.
    I've done the following: Installed mySQL and got the server running, uncommented the LoadModule line in httpd.conf, restarted/started apachectl a bajillion times, made sure websharing is on, and even tried downloading the entropy php package and installing it.
    I've done all of these steps. This is what happens:
    WHen i go to http://localhost/phpinfo.php on safari, it renders the php info like it should.
    However, when I make a file like test.php with just the code <?php phpinfo(); ?> in it, it only displays the code and no information. Likewise, if i make any file ending in .php and open it in safari, there is only raw code shown and no rendering.
    Could someone please tell me what I'm doing wrong?
    Thanks so much in advance!

    On 13 Feb 2007 in macromedia.dreamweaver, crash wrote:
    >> That can't happen, unless there's some really broken
    browser
    >> sniffing going on on the server.
    >
    > Agreed.
    >
    >> I get some XHTML source code, because the content is
    delivered as
    >> text/plain. Is that what I'm supposed to see?
    >
    > That's what I'm seeing - take a look at the same file
    through IE.
    > Then, try to view this file through IE.
    >
    http://cooksfab.com/jobs.php
    - in IE, it tried to make me download
    > the file. I don't think PHP is correctly installed,
    perhaps?
    It may not be installed at all. Did you try the phpinfo()
    method? Put
    this in a plain text file named, say, phpinfo.php:
    <?php
    phpinfo();
    ?>
    If all you get back is that same code, check with your
    hosting provider
    whether PHP is available at all. (Or yell that it should
    be...)
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/email.php

  • Help with Dynamic Code not displaying only ASP Shields???

    Started working with some .asp pages today and it is not showing me the record set in the brackets. Like this {Recordset.Field} Only giving me the little ASP shield. Looks like this. I have search on google and in dreamweave in the pref's thinking something was not turned on. Can any one help this is driving me nuts.
    theDogger

    I have been working with DW since UltraDev days and I have never had this issue. I did a fresh install of Win7 Pro and now I get this instead of the dynamic info in the window. I really do not think that it matters what view you are in. I do not want to se what is generated by the DB I just want to see what is supposed to be re-ferenced by the DB in the WYSIWYG.It should not matter if I am working in the Designer or classic or what I usually work in the Dual Mode
    It is killing me becasue I can't apply style to the shields it won't let me.
    If I run live view I get the proper info. displayed but I should get something like this in the WYSISYG window {rs_innentory.inv-LG-Image} not the damn ASP shield.
    I know that I am missing something simple that a tick box or something....it is driving me crazy!
    theDogger

  • CQ page is not rendering properly. It is not rendering HTML. It is showing HTML source code as is.

    On some of the pages, I am getting this weird behavior wherein page is not rendering properly. It is showing HTML source code as is. Could you please help me out? What could be the issue? And how can we get rid of the same?

    Check your component jsp page. it is possible that it is just plan file without directives <@ or you might have miss to close tag which is creating source as text to render
    Paste your jsp code in case you need further help
    Thanks,
    Ajit

  • Page is not rendering as per requirement request

    Hi All,
    Basically Here is the scenario.
    Based on selectoin of particular service item from combo box(dropdown list), We are creating the JSF controls dynamically on new page for further process.
    We are maintaining the controls information in database that need to be created dynamically and rendered for each service.
    And I am able to create the controls dynamically and able to place them on page perfectly.
    Until here everything looks ok for me.
    But main problem I have identified is when I go for new request, I am getting the same old page when I select the other service.
    Initially I though this could be a problem of caching and I have placed meta info in order to expire the page. But that was no use.
    So I logged all the data that is coming from database and logged the information where I have created the controls dynamically..
    What I have identified is I am getting the right data on paricular service selection and even I am able to see that methods execution is correct. I was stunned and not able to understand why the JSF is not able to show the controls.
    So I searched the JavaDoc for solution. I though I could use FacesContext.release() method. But that does not help me. Even I tried to clear the parent objects using gridpanel1.getChildren().clear(). Even that does not supported me :(
    In order to understand my problem, here I am pating the code.
    Please help me why the hell my page is not rendering
    Below is code in constructor
    javax.faces.context.ExternalContext ec = context.getExternalContext();
                javax.servlet.http.HttpServletRequest request=(javax.servlet.http.HttpServletRequest)ec.getRequest();
                String service=request.getParameter("form1:cmbServices");
                int serviceid=-1;
                if(service!=null) {
                    serviceid=Integer.parseInt(service);
                gridPanel1.getChildren().clear();
                controls =getControls(serviceid);
                HtmlControl[] controlArray =controls.getHtmlControls();
                //log(controlArray.length+" Length");
                for (int i =0;i<controlArray.length;i++) {
                    HtmlControl control =controlArray;
    //log(control+" Control");
    //log(controlArray.length+" Length");
    if (control.isRadio()) {
    addRadio(control);
    //log("Entered here in adding radio");
    else if (control.isCheckBox()) {
    addCheckBox(control);
    //log("Entered here in adding checkbox");
    else if (control.isTextBox()) {
    addTextBox(control);
    //log("Entered here in adding textbox");
    here is the code for dynamic creation of controls
    private void addRadio(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            outputText.setStyleClass("bodyText");
            HtmlSelectOneRadio radio = new HtmlSelectOneRadio();
            radio.setBorder(0);
            radio.setLayout("pageDirection");
            //radio.setId("Radio_"+control.getId());
            radio.setId(control.getName()+"__"+control.getId());
            UISelectItems items = new UISelectItems();
            Radio objRadio =(Radio)control;
            //  vectDefaultSelectItemsArray
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            //log("vectDefaultSelectItemsArray :"+vectDefaultSelectItemsArray.size());
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            for (int i =0;i<objRadio.getValues().size();i++) {
                arrays[size - 1].add(new SelectItem(objRadio.getValues().get(i)+"",""+objRadio.getTexts().get(i)));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{consumer$jobInfo.arrays["+(size-1)+"]}"));
            radio.setStyleClass("bodyText");
            radio.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(radio);
            parent.getChildren().add(gridPanel);
        private void addCheckBox(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            outputText.setStyleClass("bodyText");
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            HtmlSelectManyCheckbox checkBox = new HtmlSelectManyCheckbox();
            checkBox.setBorder(0);
            checkBox.setLayout("pageDirection");
            //checkBox.setId("CheckBox_"+control.getId());
            checkBox.setId(control.getName()+"__"+control.getId());
            UISelectItems items = new UISelectItems();
            CheckBox objcheckBox =(CheckBox)control;
            //  arrays[0]=new DefaultSelectItemsArray();
            //arrays[0].clear();
            DefaultSelectItemsArray objArray =new DefaultSelectItemsArray();
            vectDefaultSelectItemsArray.add(objArray);
            //log("vectDefaultSelectItemsArray :"+vectDefaultSelectItemsArray.size());
            arrays=(DefaultSelectItemsArray[])vectDefaultSelectItemsArray.toArray(new DefaultSelectItemsArray[vectDefaultSelectItemsArray.size()]);
            int size =arrays.length;
            arrays[size - 1].clear();
            //  array.clear();
            for (int i =0;i<objcheckBox.getValues().size();i++) {
                arrays[size - 1].add(new SelectItem(objcheckBox.getValues().get(i)+"",""+objcheckBox.getTexts().get(i)));
                //     array.add(new SelectItem(objcheckBox.getValues().get(i)+"",""+objcheckBox.getTexts().get(i)));
            // array.setItems(new String[] {"Yes","No" });
            items.setValueBinding("value",getValueBinding("#{consumer$jobInfo.arrays["+(size-1)+"]}"));
            checkBox.setStyleClass("bodyText");
            checkBox.getChildren().add(items);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(checkBox);
            parent.getChildren().add(gridPanel);
        private void addTextBox(HtmlControl control) {
            HtmlPanelGrid gridPanel = new HtmlPanelGrid();
            UIComponent parent = gridPanel1;
            HtmlOutputText outputText = new HtmlOutputText();
            outputText.setValue(control.getDescription());
            String desc =control.getDescription();
            desc=desc.replaceAll(" ", "_");
            outputText.setId(desc);
            outputText.setStyleClass("bodyText");
            HtmlInputText textField = new HtmlInputText();
            //  textField.setId("textField_"+control.getId());
            textField.setId(control.getName()+"__"+control.getId());
            HtmlOutputText outputText1 = new HtmlOutputText();
            outputText1.setValue(" ");
            outputText1.setStyleClass("bodyText");
            textField.setStyleClass("frmObjects");
            gridPanel.setColumns(3);
            gridPanel.getChildren().add(outputText);
            gridPanel.getChildren().add(outputText1);
            gridPanel.getChildren().add(textField);
            parent.getChildren().add(gridPanel);
    here is my after render response method
    protected void afterRenderResponse() {
            //job_selection_templateRowSet.close();
            jiya_html_controlRowSet.close();
            FacesContext.getCurrentInstance().release();
    here is my getValueBinding method
    private ValueBinding getValueBinding(String expression) {
            return     FacesContext.getCurrentInstance().getApplication().createValueBinding(expression);
        }Thanks
    Sudhakar.

    Hi,
    You can try the following to debug and provide us more details.
    1. I am assuming you are trying to navigate by using a commandLink/Command Button ? If so, is the action handler for the command getting called ?
    2. Do you have input components in the page with Validators/converters attached to them ? If so, you may not watch for validation/conversion errors. If there are errors, the same page will be redisplayed. In that case you would need to associate message component to get more details on what went wrong.
    3. Have you set up the necessary navigation rules to navigate to the right page ?
    4. When you are adding components programatically, its better to assign explicit id's to your components, to avoid any unexpected behavior.
    Hope this helps.
    Regards
    -Jayashri

  • PanelGrid with binding attribute not rendering when event on page fires

    I am having a similar issue with my components not being rendered from a dynamic binding attribute as described by this post:http://forum.java.sun.com/thread.jspa?threadID=671672 but for different reason. I have combed the forum and other sources for a week now, tried numerous variations of this based on suggestions I've read for rendering dynamic components and am unable to find the problem. I would appreciate guidance as I don't know what else to do and I imagine there is something basic about the JSF flow layout or component classes I am not doing correctly.
    From a high level, I have a page with two panel groups. The first contains a list of command links (like a menu) that have an actionlistener that populates a list of QueryVariable objects called filterCriteria in the backing bean based on the selection made and then calls a function to update components in the second panel. The second panelGroup contains a panelGrid with a binding attribute that constructs a dynamic set of input fields based on the content of the filterCriteria list. When I first naviagate to this page from another page, the fields are rendered properly. However, if I then select a commandLink from the menu, the panelGrid disappears and is not rendered.
    I've stepped through the code in a debugger and my actionlistener is called when I select a command link. However, the binding attribute method is not called at this time, so I added a direct call to it from the action listener. I know the actionlistener is working because I've verified it in the debugger and if I navigate away and come back to the page, then the binding method is called and the new selection is reflected in a rendered panelGrid. Why is it not rendering though when I first select the commandLink and the page is updated. Also, fyi, there is an action method for the commandlinks but it returns null;
    FWIW, I'm using MyFaces and Facelets in my application.
    Below is my code. This is inside a managed session bean:
    JSF Snippet:
    <h:panelGrid id="inputVarsTable" columns="3" binding="#{query.table}"/>
         public HtmlPanelGrid getTable() {
              if(table == null)
                   table = new HtmlPanelGrid();
              return constructSearchInputTable();               
         public void setTable(HtmlPanelGrid table) {
              this.table = table;
      // Updates table component to reflect filterCriteria
         public HtmlPanelGrid constructSearchInputTable()
              HtmlOutputLabel outLabel;
              HtmlOutputText outText;
              HtmlInputText  inText;
              HtmlMessage message;
              List<UIComponent> children;
              ValueBinding vb;
              FacesContext facesContext = FacesContext.getCurrentInstance();
              UIViewRoot uIViewRoot = facesContext.getViewRoot();
            Application application = facesContext.getApplication();
              children = table.getChildren();
        children.clear();
              try {
                   for (int i = 0; i < getFilterCriteria().size(); i++) {
                        QueryVariable var = getFilterCriteria().get(i);
                        String id = "var" + i;
                        //<h:outputLabel for="#{var.name}" styleClass="label">
                        outLabel = new HtmlOutputLabel();               
                        outLabel.setFor(id);
                        outLabel.setStyleClass("label");
                        //  <h:outputText value="#{var.name}" />
                        outText = new HtmlOutputText();
                        outText.setValue(var.getName());
                        outText.setParent(outLabel);
                        outLabel.getChildren().add(outText);
                        outLabel.setParent(table);
                        children.add(outLabel);
                        //<h:inputText id="#{var.name}" value="#{var.value}" required="true" />
                        inText = new HtmlInputText();
                        inText.setId(id);
                        String bind = "#{query.filterValues['" + var.getName() + "']}";
                        inText.setValueBinding("value", application.createValueBinding(bind));
                        if(var.getDefaultValue() == null)
                             inText.setRequired(true);
                        inText.setParent(table);
                        children.add(inText);
                        //<h:message for="#{var.name}" styleClass="errorText"/>
                        message = new HtmlMessage();
                        message.setFor(id);
                        message.setStyleClass("errorText");
                        message.setParent(table);
                        children.add(message);     
              } catch (Exception e) {
                   log.error(e);
              return table;
      // Command Link Menu ActionListener
         public void structuredQuerySelection(ActionEvent e) {
              queryType = QueryType.StructuredQuery;
              UICommand cmd = (UICommand) e.getSource();
              filterSelection = (String) cmd.getValue();
              Map<String, SearchRequestCtx> queries = pdp.getGenericMetadata().savedQueries;
              SearchRequestCtx ctx = queries.get(filterSelection);
              filterCriteria = new ArrayList<QueryVariable>();
              filterCriteria.addAll(ctx.getVariables());
              constructSearchInputTable();
         // Command Link Menu Action
         public String selectStructuredQuery()
              return null;
         }BTW, this is my first post and I don't really know how that Duke Dollar thing works but I'm happy to offer some to anyone that can solve this issue for me.
    Thanks,
    Ken

    Glad to hear I am not the only one struggling with this type of issue.
    I tried your suggestion but it caused a NoSuchElementException when the page tried to render. Stepping through the code, the init function is always called after my panelGrid is constructed. I even commented out the logic to clear the children and confirmed that in the constructed page, the outputText component that binds to init is the first element on the page - right after the opening body tag. Maybe, JSF doesn't necessarily construct the page in top to bottom order? Also, the exception makes me think that this gets called too late in the lifecycle to work. Were you able to get this to work?
    java.util.NoSuchElementException
         at java.util.AbstractList$Itr.next(AbstractList.java:427)
         at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:515)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:445)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)Ken

  • Command links are not rendering properly in panel collection toolbar facet

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • Command links are not rendering properly in the toolbar facet of panel collection

    Hi
    I am using jdev 11.1.2.3.0
    I added toolbar component to the toolbar Facet of panel collection component .
    Under the tool bar I added two command link components with name create and delete,
    the problem is at run time the buttons are not rendering properly,they are hiding,instead of links
    this symbol(>>) is displaying.
    On clicking the symbol,I am able to see the links,I used <af:spacer> after the links but not worked.
    what I have to do to render the links properly in the panel collection toolbar facet

    Hi Timo
    This is the code and I am using 11.1.2.3.0
         <f:facet name="toolbar">
                    <af:toolbar id="t1">
                            <af:commandImageLink icon="#{resource['images:create.png']}" text="Create" id="cbInsert">
                            <af:showPopupBehavior popupId="p1"/>
                        </af:commandImageLink>
              </af:toolbar>

  • Customization - Additional column inserted in Inbox - value not rendered

    Hello,
       I have a requirement for customizing the inbox and populating the new inbox column with additional value. I made coding updates and everything looks good but the inbox does not render the new value at all. I made these updates and overrides.
    Added the column name and value in \apps\cq\workflow\components\inbox\list\json.jsp . When I go to http://localhost:4502/libs/cq/workflow/content/inbox/list.json?_dc=1358787785033&start=0&l imit=40, I am able to see the addition variable and value added and displayed in list.json. For e.g. view of list.json
               "payloadPath": "/content/dam/geometrixx-outdoors/articles/a-simple-plan.jpg",
               "payloadPath_xss": "/content/dam/geometrixx-outdoors/articles/a-simple-plan.jpg",
               "payloadSummary": {
            "lifestage": "Authored",
               "payloadTitle": "a-simple-plan.jpg",
               "payloadType": "dam:Asset",
       2.  Override and updated \apps\cq\workflow\extensions\inbox\cols. Added a new column, lifestage.js. Code in that js file is
        "header":CQ.I18n.getMessage("LifecycleStage"),
        dataIndex:"lifestage",
        ranking:30
        3. The inbox/list.json shows the value lifestage correctly. But still it doesnot populate 'lifestage' value in the inbox column. If I replace the dataIndex:"lifestage" with dataIndex:"currentassignee" or any other thing, the Lifestage column in Inbox is populated with the "CurrentAssignee".
    Why is the lifestage value though visible through list.json not visible in Lifestage column? What else needs to be additionally done?
    Thanks,

    Sham,
         I  followed exactly all steps like you mentioned. The value was not rendered. I put the alert messages. Please see the code below.
    As lifestage is not subpart of payloadSummary, tried both record.get("lifestage") and (record.get("payloadSummary").lifestage but still both alerts shows undefined.I see alerts for 'Inside renderlifestage' but the next alert shows 'undefined'.
      renderLifestage: function(value, p, record) {
                alert('Inside renderlifestage');
                alert(record.get("payloadSummary").lifestage);
                alert(record.get("lifestage"));
                return lifestageTpl.apply({
                   "lifestage": record.get("payloadSummary").lifestage
    Here is the output from inbox/list.json
          "item": "/etc/workflow/instances/2013-01-22/model_360104180212070/workItems/node4_etc_workflow_in stances_2013-01-22_model_360104180212070",
          "title": "Authorship Workflow",
          "description": "Select author for the authorship workflow.",
          "dialog": "/apps/lexmark/dialog/authorshipDueDateDialog",
          "participant": "",
          "currentAssignee": "Administrator",
          "startTime": 1358880950665,
          "metaData": {
            "workItem": {
              "historyEntryPath": "/etc/workflow/instances/2013-01-22/model_360104180212070/history/1358880950664"
            "instance": {
              "currentJobs": "",
              "currentJobs_xss": "",
              "workflowTitle": "authorship_workflow_test",
              "workflowTitle_xss": "authorship_workflow_test",
              "startComment": "authorship_workflow_test",
              "startComment_xss": "authorship_workflow_test"
          "payload": "/damadmin.html#/content/dam/geometrixx-outdoors/articles/downhill-ski-conditioning.jpg",
          "payload_xss": "/damadmin.html#/content/dam/geometrixx-outdoors/articles/downhill-ski-conditioning.jpg",
          "payloadPath": "/content/dam/geometrixx-outdoors/articles/downhill-ski-conditioning.jpg",
          "payloadPath_xss": "/content/dam/geometrixx-outdoors/articles/downhill-ski-conditioning.jpg",
          "payloadSummary": {
            "icon": "/content/dam/geometrixx-outdoors/articles/downhill-ski-conditioning.jpg/jcr:content/rend itions/cq5dam.thumbnail.48.48.png"
          "lifestage": "Authored",
          "payloadTitle": "downhill-ski-conditioning.jpg",
          "payloadType": "dam:Asset",
          "lastModifiedBy": "admin",
          "lastModified": 1323947520464,
          "lockedBy": "",
          "lockedBy": "",
          "timeUntilValid": 0,
          "onTime": 0,
          "offTime": 0,
          "monthlyHits": 0,
          "replication": {
            "numQueued": 0,
            "publishedBy": null
          "scheduledTasks": [
          "inWorkflow": true,
          "workflows": [{
              "model": "Authorship_Workflow",
              "started": 1358880950439,
              "startedBy": "admin",
              "suspended": false,
              "workItems": [{
                  "item": "Authorship Workflow",
                  "assignee": "admin"
          "scheduledTasks": [
          "comment": "authorship_workflow_test",
          "workflowTitle": "authorship_workflow_test",

  • Crystal reports not rendering properly and toolbar is also not visible in firefox 21.0

    my application works fine in chrome and internet explorer when it comes to crystal reports but Firefox is not rendering them properly. they are disturbed and toolbar is also not visible. i am using visual studio 2008 for development and the crystal reports that come with it. it works fine on local system but have issues when deployed on online server. all my clients are facing the same problem. they have to use alternate browser for printing reports. But i would be happy if Firefox renders them correctly. Anyone can help?

    i made this change in my code using Visual studio 2005 VB
    rpt.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response,
    False, "Title you want")
    it make me a PDF and i dont need the cristal report bar to print it
    i hope you help you

  • PDF not rendering correctly

    Hi
    Can anyone help? I am using an iMac and have had a pdf emailed to me. When I login on to the site and select the PDF to view, it is not rendering correctly.
    I am not a technical person but to me it appears to open as a series of code, letters, numbers and symbols.
    Any ideas how to rectify this?
    Is it Adobe related or can I update the settings for the browser? I am using Safari.
    Thanks

    what OS & Safari version ?
    Often, removing any 'pdf' plugins in
    /Library/Internet Plug-Ins/
    and
    ~/Library/Internet Plug-Ins/
    then restarting the browser will solve pdf display issues, although in this case, it sounds as if the site is telling Safari that these are text type files & it's attempting to display them accordingly.
    Disabling plug-ins via Safari - Preferences - Security should also eliminate pdf plug-ins as a cause.

  • KM, HTML file, Not rendering correctly

    Hi Everyone
    I have an html file that is stored in knowledge management.  The html file references few folders/images that are also stored in KM. When I create a KM Document iView, the HTML file shows; however, the various images/style sheet that is stored along with the html file KM do not appear.  Thus the html file is not rendering properly. 
    With this being said, I can create an URL iview and everything works as it should (the html file appears correctly with the necessary images).  The problem is that I am developing a solution for an external and internal facing portal, thus the URL iView option is not going to work for me.  I need to have a way for this KM html iView to display properly...perhaps with the KM Document iView template.
    Has anyone encountered an issue such as this and can offer assistance.  Again, the KM Document iView template will work, if the html file it is calling in KM can correctly reference other folders in KM that contain various images/style sheets that are a part of the html file.
    Any help is greatly appreciated.
    Best Regards,
    Scott

    Hi Scott.
    In order to solve your problem with relative links to image and css files inside KM I suggest two variants:
    1. Replace relative links as I mentioned in this message Re: JavaScript and CSS info in WPC.
    2.The second solution is:
    a. Create an blank html file inside KM folder where the base.html file is stored.
    b. Download the newly created file for local editing.
    c. Place an iframe that points to your base html file between <BODY></BODY> tags. Use a following code as an example:
    <iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="base.html"></iframe>
    d. Upload this file back to KM.
    e. Point your KM Document  iView to the created html file.
    Best regards,
    Aliaksandr Zhukau
    Edited by: Aliaksandr Zhukau on Dec 3, 2009 11:04 AM

  • Excel attachment not rendering correctly in Mail but fine on iPod touch

    Some attachments (most notably Excel files) that I've been receiving lately (last month or so) have not showed up correctly as attachments in Mail (currently using v. 4.4). In the list view it shows the paperclip icon but when I click on the message the preview pane shows what I assume is mime code or something. If I check the same message on my iPod touch, the attachment shows up at the bottom of the message as an attached file icon (correctly identified as an Excel spreadsheet). Suggestions?

    Hello,
    In the USBC CSS , delete this:
    TD {
    font-family : Arial, sans-serif;
    float: right;
    Take care,
    Tim
    "bhanson" <[email protected]> wrote in
    message
    news:gp3ups$l6j$[email protected]..
    >I recently switched from Dreamweaver 8 to CS4. I also
    recently updated my
    > Firefox to 3.06. I have had this website for years, and
    it just started
    > not
    > rendering tables correctly in Firefox. This is happening
    on multiple pages
    > It
    > works fine in IE.
    http://www.wiw.uscourts.gov/bankruptcy/
    >
    > Let me say up front, I know the page is antiquated
    (created in Front Page)
    > It
    > uses tables for the layout instead of CSS. I hope to be
    updating it soon,
    > but
    > for now I need a fix to get the pages to work correctly.
    >
    > Any help would be greatly appreciated!
    >
    > Thanks,
    > Becky
    >
    >

  • List items not rendering on page

    I have code that I'm querying a list and I am trying to get them into an accordion. I'm able to see the items when I do an alert to validate its connecting, however, the accordion and data items are not rendering. Am I missing something?
    <script type="text/javascript" language="javascript">
    $(document).ready(GetAllItems());
    function GetAllItems() {
    $().SPServices({
    operation: "GetListItems",
    async: false,
    listName: "Discussions",
    CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>",
    completefunc: function (xData, Status) {
    $(xData.responseXML).SPFilterNode("z:row").each(function() {
    var liHtml = "<div class='Accordion'><div class='MenuTab'>" + $(this).attr("ows_Title") + "</div></div>";
    // var liHtml = "<li>" + $(this).attr("ows_Title") + "</li>";
    $("#Discussions").html(liHtml);
    alert(liHtml);
    </script>
    <div id="Discussions"></div>

    Hi,
    you have to append each new element instead of assign it to the "Discussions" div, try somethis like that:
    $("#Discussions").append(liHtml);
    Regards.
    If a post answers your question, please click Mark As Answer on that post and
    Vote as Helpful

  • JSF tags are not rendered in error page

    I have configured error page for HTTP 404 error in web.xml like this
    <error-page>
    <error-code>404</error-code>
    <location>/Common/error.jspx</location>
    </error-page>
    Faces Servlet is configured as follows
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    My error page (error.jspx) looks like this
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:trh="http://myfaces.apache.org/trinidad/html"
    xmlns:tr="http://myfaces.apache.org/trinidad" xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <html>
    <head>
    <title>Error Page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    </head>
    <body id="b1">
    <h4 style="color:red">An Error Occured. Please click Back button or Signout.</h4>
    <input type="button" value="Back" onclick="history.back()"/>
    <tr:commandButton id="cb1" text="SIGN OUT" action="exit" actionListener="#{Login.LogOut}"/>
    </body>
    </html>
    </jsp:root>
    When I deploy application and run into 404 error, page displays error message with only Back button. I don't see SingOut button. I have checked url and it follows /faces/* pattern. Still to double check, I made a change and configured servlet mapping in web.xml as
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    <url-pattern>*.jspx</url-pattern>
    </servlet-mapping>
    Still commandButton is not rendered. I understand that my error page don't have access to FacesContext or not going through Faces Servlet. I know this is a small issue, but couldn't figure out what can be done. I have also tried using .xhtml and .jsf as per googled suggestion. But no luck
    I have tried different solutions to my problem and googled for solutions. But I couldn't get it resolved.
    So can you please provide any suggestions...
    Edited by: user1818355 on May 22, 2013 2:29 PM

    I think my faces servlet is configured to handle URLs having /faces/* pattern. I don't have any folder named with faces but I can access all my web pages which have /faces/ in their url. All jspx pages in application are configured in task flows. So I think they have access in FacesContext. But error page is configured in only web.xml and some how it is missing access to FacesContext and not rendering JSF tags. Any help?

Maybe you are looking for

  • Word macros are disabled after converting to a PDF document.

    We work with Word templates that contain macros. After you convert a Word document into a PDF document, the macros of the attached template are disabled. The conversion takes place via the Adobe Acrobat icons. Used Products: - Windows7 - With Office

  • Using Save_Text in eCATT

    Hi All, I want to use Function Module SAVE_TEXT in eCATT. Hence I had used command FUN. This FM SAVE_TEXT has an interface TABLES with type "LINES". In this I pass my values to be saved. I have defined an Import Parameter of TYPE TLINE[] against LINE

  • Connecting via both Airport & Ethernet?

    I have a Mini (10.6.2) and a MBP (10.6.2) which are connected to a Airport Extreme for Internet connectivity. However, file transfers and screen share is slow (the Mini only has 802.11G, no N). So I was thinking I could connect these 2 machines via E

  • Extremely high fan speeds while using Skype

    I have a MAc book pro intel based, the fan goes on whirling at the hihgest possible speed even when there is about 30% of cpu usage i tried the SMC and the PRAM reset but it hasn't helped me at all. Does any one ave any idea how to fix this problem?

  • Update command in MSQL

    Hi Gurus I want to update one row with the m-sql command, but when run the command getting with the error as , can anyone tell me what is the exact command then Server: Msg 208, Level 16, State 1, Line 1 Invalid object name 's903'. UPDATE  WG3.S903 S