JSF:adding dynamic components on update.

Well I am using a same form for two purposes. One if for creating a new service and one for editing it. In this I have a button on clicking it I get two new input text boxes.
<h:panelGrid binding="#{provisioning.localPanelGrid}" />
          <h:panelGrid columns="2" columnClasses="localhost_list_heading">
               <h:commandButton value="Add LocalHost" type="submit"
                    action="#{provisioning.addNewLocalHost}" />
               <h:commandButton value="Delete LocalHost" type="submit"
                    action="#{provisioning.deleteLocalHost}" />
          </h:panelGrid>In which on clicking Add LocalHost I perfom the function addNewLocalHost which adds two input boxes.
public static int localid = 0;
public String addNewLocalHost() {
          log.debug("In addNewLocalHost");
          try{          
               /*------------------ Creating Local Host Name Input Text Component --------------------*/
               log.debug("creating local host name Input Text");
               log.debug("Local Host Input Box no is " + localid);
               //Setting the value of host name to empty string
               localhostName.setValue("");
               //Setting id of the HtmlInputText.
               localhostName.setId("localhost" + Integer.toString(localid));
               log.debug("Input Text for host name created");
               String val="#{provisioning.localhostname[" + Integer.toString(localid) + "]" + "}";
               //Creating value binding for HtmlInput Text for localhost name.
               ValueBinding value= app.createValueBinding(val);
               //Setting value binding.
               localhostName.setValueBinding("value",value);
               /*------------------ Creating Local Host Port Input Text Component --------------------*/
               log.debug("creating local host port Input Text");
               //Setting the value of host port to empty string
               localportNumber.setValue("");
               //Settig id for port number
               localportNumber.setId("localport" + Integer.toString(localid));
               String portValue="#{provisioning.localport[" + Integer.toString(localid) + "]" + "}";
               log.debug("Input Text for port created");
               ValueBinding portvalue= app.createValueBinding(portValue);
               log.debug(portvalue);
               //setting value binding for port number.
               localportNumber.setValueBinding("value",portvalue);
               //Setting Converter Message.
               log.debug("Setting Converter Message.");
               localportNumber.setConverterMessage("Please Enter a numerical value.");
               /*------------------------- Getting Local Panel Grid --------------------------*/
               log.debug("Getting existing Local Host Name Grid");
               localPanelGrid = getLocalPanelGrid();
               /*------------ Add components to the Local Panel Grid --------------------------*/
               log.debug("Grid:" + localPanelGrid);
               localPanelGrid.setColumns(2);
               localPanelGrid.getChildren().add(localhostName);
               localPanelGrid.getChildren().add(localportNumber);
               log.debug("Children Size of Local Panel Grid is " + localPanelGrid.getChildren().size());
               log.debug("Children added");     
               //incrementing the value of localid.
               localid++;
               log.debug("added new Local Host Component successfully");
               return "success";
          catch(Exception e){
               log.error("addNewComponent " + e.getMessage(),e);
               return "failure";
     }Now I am facing the problem in case of update where I have the same form and after getting the values from database I want to add initially the no. of input boxes according to the size of data retrived. What should I do?
I tried using a inputHidden field to do the same. I mentioned a input Hidden field in jsf page just above the panelGrid
<h:inputHidden value="#{provisioning.createInputTextBoxes}" />and in its getter I included
public String getCreateInputTextBoxes() {
          log.debug("Checking if update or not for host list input text boxes to be created");
          if(isModify()){
               log.debug("Creating pages for input boxes");
               for(int i=0;i<localHostListSize;i++){ //localHostListSize is the size retrived from database.
                    addNewLocalHost();
          return createInputTextBoxes;
     }Now the problem is that the function is getting called the same number of times as the localHostListSize but I am seeing only one inputbox and I am seeing no data in it whereas I have explicitly set the value of localhostname[] to the data retrieved and I am getting the data in logs (except for the last one).
Logs for my page execution were :
11:57:20,161 DEBUG ProvisioningManagedBean:85 - Checking if update or not for host list input text boxes to be created
11:57:20,161 DEBUG ProvisioningManagedBean:87 - Creating pages for input boxes
11:57:20,161 DEBUG ProvisioningDynamicComponents:84 - In addNewLocalHost
11:57:20,161 DEBUG ProvisioningDynamicComponents:88 - creating local host name Input Text
11:57:20,161 DEBUG ProvisioningDynamicComponents:89 - Local Host Input Box no is 0
11:57:20,161 DEBUG ProvisioningDynamicComponents:94 - Input Text for host name created
11:57:20,177 DEBUG ProvisioningDynamicComponents:104 - creating local host port Input Text
11:57:20,177 DEBUG ProvisioningDynamicComponents:110 - Input Text for port created
11:57:20,177 DEBUG ProvisioningDynamicComponents:112 - [email protected]cb98
11:57:20,177 DEBUG ProvisioningDynamicComponents:116 - Setting Converter Message.
11:57:20,177 DEBUG ProvisioningDynamicComponents:121 - Getting existing Local Host Name Grid
11:57:20,177 DEBUG ProvisioningDynamicComponents:47 - Getting local panel grid
11:57:20,177 DEBUG ProvisioningDynamicComponents:125 - Grid:javax.faces.component.html.HtmlPanelGrid@14c8822
11:57:20,177 DEBUG ProvisioningDynamicComponents:129 - Children Size of Local Panel Grid is 2
11:57:20,177 DEBUG ProvisioningDynamicComponents:130 - Children added
11:57:20,177 DEBUG ProvisioningDynamicComponents:134 - added new Local Host Component successfully
11:57:20,177 DEBUG ProvisioningDynamicComponents:84 - In addNewLocalHost
11:57:20,177 DEBUG ProvisioningDynamicComponents:88 - creating local host name Input Text
11:57:20,177 DEBUG ProvisioningDynamicComponents:89 - Local Host Input Box no is 1
11:57:20,177 DEBUG ProvisioningDynamicComponents:94 - Input Text for host name created
11:57:20,177 DEBUG ProvisioningDynamicComponents:104 - creating local host port Input Text
11:57:20,177 DEBUG ProvisioningDynamicComponents:110 - Input Text for port created
11:57:20,177 DEBUG ProvisioningDynamicComponents:112 - [email protected]cf59
11:57:20,192 DEBUG ProvisioningDynamicComponents:116 - Setting Converter Message.
11:57:20,192 DEBUG ProvisioningDynamicComponents:121 - Getting existing Local Host Name Grid
11:57:20,192 DEBUG ProvisioningDynamicComponents:47 - Getting local panel grid
11:57:20,192 DEBUG ProvisioningDynamicComponents:125 - Grid:javax.faces.component.html.HtmlPanelGrid@14c8822
11:57:20,192 DEBUG ProvisioningDynamicComponents:129 - Children Size of Local Panel Grid is 2and the data was back as in the logs
12:31:00,817 DEBUG ProvisioningManagedBean:890 - Local Host List
12:31:00,817 DEBUG ProvisioningManagedBean:894 - Host = h6
12:31:00,817 DEBUG ProvisioningManagedBean:895 - Port = 6
12:31:00,817 DEBUG ProvisioningManagedBean:894 - Host = 123.12.0.15
12:31:00,817 DEBUG ProvisioningManagedBean:895 - Port = 123
12:31:00,817 DEBUG ProvisioningManagedBean:894 - Host =
12:31:00,817 DEBUG ProvisioningManagedBean:895 - Port = 0What should i try?

Why don't you make use of a h:dataTable? Just adding a new SomeObject to a List<SomeObject> would be enough then.

Similar Messages

  • Adding dynamic components

    i have a frame cannot be resized. i have used box layout as the top level layout and on that i have used five panels with components having gridbag layout. Out of five panel one panel has set visible false, which is suppsed to get visible on the trigger of a Button.
    Problem : When i m clicking the button i m setting the visibility of the panel as true... but the panel is not showing on the screen(ideally should automatically get adjusted in the screen). i have done validate(). the problem which i could fig out was that its not getting adjusted in the given size as the resizable option of the frame is set to false. Now if i increase the size of the window dynamically i m able to see the component but i m get a flicking effect in the frame. Please ... suggest me some solution that enable me to add a panel in a frame that has a rezibale switched off.
    or some way by which i can setsize the frame , add the component without a flickering effect.

    example code:
    import java.awt.event.*;
    import java.awt.*;
    import java.util.Vector;
    public class AvoidFlicker extends Panel
    implements MouseMotionListener, MouseListener
       Vector lines = new Vector();
       int x, y;
       public AvoidFlicker()
          addMouseMotionListener (this);
          addMouseListener(this);
       public void mouseClicked  (MouseEvent e) { }
       public void mouseEntered  (MouseEvent e) { }
       public void mouseExited   (MouseEvent e) { }
       public void mouseMoved    (MouseEvent e) { }
       public void mouseReleased (MouseEvent e) { }
       public void mousePressed  (MouseEvent e)
          x = e.getX();
          y = e.getY();
       public void mouseDragged (MouseEvent e)
          lines.addElement (new Rectangle (x, y, e.getX(), e.getY()));
          x = e.getX();
          y = e.getY();
          repaint();
       protected void paintBackground (Graphics g)
          Dimension size = getSize();
          for (int y = 0; y < size.height; y += 2)
             int blue = 255 - (y % 256);
             Color color = new Color (255, 255, blue);
             g.setColor (color);
             g.fillRect (0, y, size.width, 2);
       public void paintForeground (Graphics g)
          g.setColor (Color.black);
          int numberOfPoints = lines.size();
          for (int i = 0; i < numberOfPoints; i++)
             Rectangle p = (Rectangle) lines.elementAt (i);
             g.drawLine (p.x, p.y, p.width, p.height);
       public void paint (Graphics g)
          paintBackground (g);
          paintForeground (g);
       public void update (Graphics g)
          // override to not clear the background first
          // paint (g);
          paintForeground (g);
       public static void main (String[] args)
          AvoidFlicker panel = new AvoidFlicker();
          Frame f = new Frame ("Avoiding Flicker");
          f.add ("Center", panel);
          f.setSize (300, 300);
          f.show();
    }

  • Dynamic Components 1.2 not available in JSF 2.0 ?

    Hi,
    I would like to use Dynamic:form from "Dynamic Components 1.2" in 11g R2 (11.1.2.3.0) on a JSF. It seems that it is not possible to add a dynamic:form on a JSF. It does not appear when I drag and drop a data control. However, it appears when I drag and drop on a JSPX on the same project.
    Does it exist another way to have a dynamic:form on a JSF ? Is it going to be add ?
    All the tutorials I read always use JSPX, even in 11g R2, like this one:
    http://technology.amis.nl/2011/06/07/adf-11g-r2-adf-business-components-ui-categories-and-dynamic-forms-and-some-new-ide-features/
    Thanks,
    Alain

    The dynamic components are not part of the JSF2.0 part in 11.1.2.x.0. At the moment they only work for jspx files. If you use jspx files in 11.1.2.x.0 you can use the dynamic components.
    Timo

  • How can we split the image when its added dynamically ?

    Hi Experts,
    I have an image where i'm calling a DAL in Entry tab Data section under section level properties.As you know that will execute during Entry process.In that DAL i'm Adding an image based on the user choice during entry.
    When image added that should be accomedate the spaces availale in the form.First half of the section can accomedate in the first page and secound half will go to next page.
    I have used CANSPLITIMAGE rule,but that is not get executed during entry process.
    Can someone help me How to split the image during entry process when its added dynamically ?
    Thanks,
    RAMAN C.

    Aside from what you might think of as the origin placement, Gendata rules are not run during Entry operations. As such, you are not able to do what you describe in versions before 12.2. Starting in 12.2, you still can't execute Gendata rules, however there is a newly supported feature when DAL adds a section that will look for the existence of the CanSplitImage rule and assigns an internal attribute that will allow the section to split during entry. This isn't the same as running the rule, but the net effect should be acceptable. (At some point in the future, perhaps this internal attribute will become something you can just set when adding the section on the form and you won't have to specify the CanSplitImage rule at all - for Batch or Entry. That would be great.) In the meantime, if you are not using 12.2, your only option is to break your section up into smaller section components and add them separately. That should help minimize unused space on the page when something doesn't fit.

  • Dynamic List to Update Field in  Record

    Hello,
    I have created an Update page in CS5.5 and have added a dynamic list to update a field in the record. Now I am stuck. How do I modify the code in the menu to have it update the field? 
    <select name="cemeteryID">
    <?php do {  ?>
    <option value="<?php echo $row_cemeteryList['cemeteryID']?>"<?php if (!(strcmp($row_cemeteryList['cemeteryID'], $row_cemeteryList['']))) {echo "selected=\"selected\"";} ?>><?php echo $row_cemeteryList['cemetery']?></option>
                  <?php
                  } while ($row_cemeteryList = mysql_fetch_assoc($cemeteryList));
                  $rows = mysql_num_rows($cemeteryList);
                  if($rows > 0) {
                  mysql_data_seek($cemeteryList, 0);
                  $row_cemeteryList = mysql_fetch_assoc($cemeteryList);
    ?>
    </select>
    Thanks!

    I figured it out.  Suprised that no one responded - oh well.

  • Consuming JSF & ADF Faces Components in Portal Page

    I am totally new to Oracle Portal environment and doing some analysis of using Portal in our application.
    I was reading that we can create JSP Portlets like adding scriptlets, expression and other JSP & HTML elements.
    Is it possible to consume JSF & ADF Faces components in Portal page? I mean, is it possible to create JSF Portlets?

    The WSRP provider, which is shipped with Portal 10.1.4, would provide this functionality through the JSF bridge. You need to install Webcenter to get the bridge. This makes me think whether you should use Oracle Portal or rather decide to go for Webcenter as development platform, especially if you have a J2EE background already.

  • Dynamic sql and updating cursors

    hi to anyone,
    we use few temporary global tables which will be created on the fly if not present ( the reason is - they are not created by power designer ).
    addressing theses tables is only possible by using dynamic sql via "execute immediate" because they may not be known to the compiler as they are not created yet.
    Now I defined a cursor to walk through the table - using cursor reference "ref cursor". Using this cursor works, but i found no way using this cursor for update. i.e. declaring as .. for update of and later putting it into an execute immediate like " execute immediate 'update ' || w_temp_table || ' set f1 = :1, f2 = :2 where current of ' || w_cursor using w_1, w_2;" It doesnt work if I block this command using "begin / end".
    Does naybody know a solution ?
    thanks in advance
    wilko

    Thanks todd,
    my main purpose has been just using the dynamic cursor for update as I know that this is quite easy and also fast. I didnt concern about locking all rows I walk through. But you are right - at end you will use the most easy way. So what I did because of another cursor problem ( with analytical functions ) - I defined the temporary table before compiling and everything is much more convenient.
    thanks for help
    wilko

  • In outlook 2013 Add-In, Adding dynamic menu to splitButton idMso="DialMenu" is working and the same code is not working in outlook 2010 Add-In.

    In outlook 2013 Add-In, Adding dynamic menu to <splitButton idMso="DialMenu"> is working and the same code is not working in outlook
    2010 Add-In. please let me know, if i am missing something. Below is the xml and screen shot
    <contextMenu idMso="ContextMenuFlaggedContactItem">
     <splitButton idMso="DialMenu">
              <menu>
                <dynamicMenu id="CallContactwithFreedomvoice
    " label="CallContactwithFreedomvoice" 
                            getContent="OnGetContenttest"                           insertAfterMso="Call"/> 
            </menu>       </splitButton>    </contextMenu> 

    Hi Narasimha prasad2,
    Based on the description, the context menu for the flagged contact doen't work in Outlook. I am tring to rerpoduce this issue however failed.
    I suggest that you check the state of the add-in first to see wether the add-in was loaded successfully.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to hide columns that are getting added dynamically to UI Element 'Table

    In SRM 7.0 while displaying a RFx, click on "responses and awards" button.
    In the response comparision tab once the user selects response number and clicks on "compare all responses".
    Item details table is displayed with fields item number,internal number,item description,........,Price etc.
    Requirement is  to hide the price column from the table.
    The UI element type is 'Table'.
    But the catch is there is no column price visible at layout design level.
    This field is getting added dynamically at run time.
    When i right click and see the 'more field help' at the front end i get the field id as 'GRP_1_COL_3_TXTV'.
    lo_table ?= view->get_element( id = 'ITEMS_TABLE' ).
    lo_column = lo_table->get_column( id = 'GRP_1_COL_3_TXTV').
    ASSERT lo_column IS NOT INITIAL.
    lo_column->set_visible( EXPORTING value = '01' ).
    I had written the above code in the pre-exit of WDDOMODIFYVIEW.
    But i am getting dump as assertion failed.it says no column by name 'GRP_1_COL_3_TXTV'.
    Please help me inhow to hide fields or buttons getting generated dynmically.
    Regards,
    Venkat Raghavan.

    Hi Anitha,
    What i understood from your question is,you want to control the table from your inputs.I have a one question for you what do you want to show defaultly i.e when you run the application what you want to show,either no table or table with some values.
    Any how i am giving solution in this way.
    If both inputs are given proper table output is displayed
    Write your below logic in the WDDOMODIFYVIEW )
    Here i am assuming that you already have a table element in the view.
    Get the values entered in the input fields and compare those 2 values ,if the condition is satisfied then bind the values which you want to show in the table to the context node.
    but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs
    You are telling that you know the empty column.If so get the view element reference and use the REMOVE_COLUMN to remove the column.
    data:lr_table type ref to cl_wd_table,
           lr_column type ref to L_WD_TABLE_COLUMN.
    lr_table ?= view->get_element( 'TABLE1' ).
    CALL METHOD LR_TABLE->REMOVE_COLUMN
        EXPORTING
          ID          = 'TABLE1_color'
         INDEX      =
        RECEIVING
          THE_COLUMN = lr_column.
    i want to hide some empty rows also at runtime based on inputs.
    Removing the rows is very simple.if you know the key fields data of internal table from your input fields then do in this way.
    delete itab from wa where key1= "12" and key2="abd".
    Now bind the internal table to context node.
    LO_ND_hcm->BIND_TABLE(
          NEW_ITEMS            = it_final
          SET_INITIAL_ELEMENTS = ABAP_TRUE ).

  • Adding dynamic attributes to static context node

    Hi All,
    I have defined a context node LINES with several attributes. This is done staticly during developmenttime.
    During run-time node LINES is extended with several attributes dynamicly. See below:
    10     HEADER_GUID               ->
    11     DETAIL_GUID               ->
    12     EXTERNAL_ID               ->
    13     OBJECT_TYPE               ->
    14     IN_OUT_PLAN               ->
    15     TRAFFIC_LIGHT_1               ->
    16     TRAFFIC_LIGHT_2               ->
    17     TRAFFIC_LIGHT_3               ->
    18     TRAFFIC_LIGHT_4               ->
    19     _LOCATION          \TYPE=STRING     ->
    20     _ZZTOPGROUPING     \TYPE=STRING     ->
    21     _STATUS          \TYPE=STRING     ->
    22     _100000200          \TYPE=STRING     ->
    19..22 are added dynamicly.
    I have an internal table that matches de new context. This <fs_tb_tree_new> I want to bind like:
    *&- bind table
      lr_node->bind_table( new_items =  <fs_tb_tree_new>
                           set_initial_elements = abap_true ).
    In <fs_tb_tree_new> the dynamicly added attrbutes contains values e.g. (the static attributes also have values via <fs_tb_tree_new>):
                         _LOCATION   _ZZTOPGROUPING  _STATUS              _100000200                   
    5     Africa     0002     Reporting Entity     0.000
    6     Russia, CIS     0003     Identify                          0.000
    An ALV presents the values of the attribute. But.... only the values of the static part are presented, not the dynamic attributes added during runtime.
    Please advise what I forget or do wrong .
    Thanks in advance.
    John

    I solved the issue:
    If you use a combination of static attributes added with dynanic attributes (during runtime) for dynamic ALV, I advise to create a new node and bind the values to this new created node:
    Cheers, John
    wd_this->extend_context( EXPORTING im_struc_descr =  lr_cl_abap_structdescr
                               IMPORTING ex_node = lr_node_alv ).
    Method:
    *&- Create new dynamic context LINES_DYN
    Node for alv-table
      lr_node_info = wd_context->get_node_info( ).
      CALL METHOD lr_node_info->add_new_child_node
        EXPORTING
          name                  = 'LINES_NEW'
          static_element_rtti   = im_struc_descr
          is_static             = abap_true
          is_multiple           = abap_true
          is_multiple_selection = abap_false
        RECEIVING
          child_node_info       = lr_subnode_info.
    lr_node = lr_subnode_info->get_parent( ).
      lr_node = wd_context->get_child_node( 'LINES_NEW' ).
      ex_node = lr_node.
    *&- bind table for alv
      lr_node_alv->bind_table( new_items =  <fs_tb_tree_new>
                               set_initial_elements = abap_true ).

  • AdvancedDataGrid headerrenderer children added dynamically do not display

    The AdvancedDataGrid in Flex 3.x does not correctly render children of a custom headerrenderer when the children are added dynamically. This works correctly with the DataGrid.
    An AdvancedDataGrid has a custom headerrenderer with one field to display the column header text.
    A show button below the grid adds a text input field in the header below the column text in the header.
    When the show button is selected, the AdvancedDataGrid header sizes correctly to leave space for the field but does not display the field.
    If I drag the column, the text input field displays as I am dragging. See the 3 images below.
    I have included the 3 source files. What is the correct way to dynamically add children to an AdvancedDataGrid header?
    Thanks.
    1. AdvancedDataGrid with only the column header text:
    2. After Show is selected, the header is sized for the text field below:
    3. Only dragging the column header temporarily shows the text field:
    1. TestGrid.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="onInit(event)" width="100%" height="100%">
    <mx:Script>
    <![CDATA[
         protected function onInit(event:Event):void {
              var cols:Array = grid.columns;
              var colWidth:int = grid.width;
              var col:AdvancedHeaderColumn = new AdvancedHeaderColumn();
              col.wordWrap = true;
              col.show = false;
              var headerRenderer:ClassFactory = new ClassFactory(AdvancedHeaderLabel);
              // Add any custom properties
              headerRenderer.properties = {text: "Column1 header that wraps", dataGridColumn: col};
              col.headerRenderer = headerRenderer;
              col.headerWordWrap = true;
              cols.push(col);
              grid.columns = cols;
              grid.measuredWidth = colWidth;
         protected function showText(event:Event):void {
              var cols:Array = grid.columns;
              for each (var col:AdvancedHeaderColumn in grid.columns) {
                   col.show = show.selected;
              grid.columns = cols;
    ]]>
    </mx:Script>
         <mx:AdvancedDataGrid id="grid" height="100%" width="100%" variableRowHeight="true" editable="true" lockedColumnCount="1"/>
         <mx:Button label="Show" id="show" click="showText(event)" selected="false" toggle="true"/>
    </mx:Application>
    2. AdvancedHeaderLabel.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%" verticalScrollPolicy="off">
    <mx:Script>
    <![CDATA[
         import mx.controls.TextInput;
         import mx.core.UITextField;
         // properties
         public var text:String;
         public var dataGridColumn:AdvancedHeaderColumn;
         // Column header
         public var textField:UITextField;
         // Optional text input field
         public var textInput:TextInput;
         override protected function createChildren():void {
              super.createChildren();
              // Always add the header text
              textField = new UITextField();
              textField.text = text;
              textField.multiline = true;
              textField.wordWrap = true;
              textField.percentWidth = 100;
              addChildAt(textField, 0);
         override protected function commitProperties():void {
              super.commitProperties();
              // Add the text input field?
              if (dataGridColumn && dataGridColumn.show && !textInput) {
                   textInput = new TextInput();
                   box.addChild(textInput);
         override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
              super.updateDisplayList(unscaledWidth, unscaledHeight);
              // Position and size the textInput field
              if (dataGridColumn.show && textInput) {
                   textInput.y = textField.getExplicitOrMeasuredHeight();
                   textInput.setActualSize(unscaledWidth, textInput.getExplicitOrMeasuredHeight());
         override protected function measure():void {
              super.measure();
              measuredWidth = textField.getExplicitOrMeasuredWidth();
              measuredHeight = textField.getExplicitOrMeasuredHeight();
              // Make room for the text input field
              if (textInput) {
                   measuredHeight += textInput.getExplicitOrMeasuredHeight();
    ]]>
    </mx:Script>
         <mx:VBox height="100%" width="100%" id="box" verticalAlign="bottom"/>
    </mx:VBox>
    3. AdvancedHeaderColumn.as
    package {
         import mx.controls.advancedDataGridClasses.AdvancedDataGridColumn;
         public class AdvancedHeaderColumn extends AdvancedDataGridColumn {
              public var show:Boolean = false;
              public function AdvancedHeaderColumn(columnName:String=null) {
                   super(columnName);

    Thanks Hackintosh.
    It prints as it views, as a corrupt jpeg. I also dug into console and it confirmed there was an error about a corrupt jpg. The most interesting thing is if I open the bad pdf in Photoshop the whole image is there with no signs of corruption. This leads me to believe it's something with how OSx and/or Safari are rendering the jpgs. Another curious sidenote, Safari on Windows works fine but if you save the pdf, move it to a mac and open it, you get the corrupted jpg again.
    I think I'm going to try and stop swimming upstream now. At the end of the day I don't care if the images are pngs, tiffs, or eps. I'm going to try feeding a few different formats and see if that doesn't fix the problem.

  • Adding dynamic images to your website using Dreamweaver

    Hi
    I've been working on a website which has been in use by public for some months now.
    I recently wanted to add a simple product catelogue.   I can do this just by creating my database connection and using the recordsets.
    However I wanted to add an image thumbnail to each product record.
    I found the above topic in the Adobe Help 'Adding dynamic images to your website using Dreamweaver'
    What I really would like to know is what exactly is put in the image_location field of the table, how is this field populated and then how to view the picture.
    I have tried, as per instructions, but the picture is not showing.
    I use php as I dont know coldfusion, but I'm sure the process must be pretty similar.
    If anyone can shed some light then that would be really appreciated.
    Many thanks liz

    komrad78 wrote:
    > I'd like to know how do you add background music to a
    website using
    > dreamweaver CS3?
    > I'm using dreamweaver CS3 to create a website for my
    church (they
    > already have a domain) and I'm trying to figure out how
    to add
    > background music.
    >
    > Also, is there a way for me to add a music player or
    something to the
    > page that starts playing when they enter the site and
    let's you pick
    > different songs from it?
    >
    > And lastly, if I just embed a song or whatever it is as
    the
    > background music, can I make it loop or play a different
    song
    > afterwards?
    As most anyone else will say, so I will say; *please don't
    start it
    automatically!*
    Playing music on a site is fine, but making it play
    automatically when you
    go to the site will alienate lots of people; especially those
    having a quick
    web surf at work or who have other music on whilst they're
    working.
    But back to your question; have a look at the XSPF music
    player
    http://musicplayer.sourceforge.net/).
    It comes in different visual versions
    (can modify it with a bit of Flash knowledge), allows you to
    select
    different songs or just leave it looping, or you can just
    loop one song. And
    yes, you can make it start automatically.
    See
    http://www.blastoffmusic.org
    for an example of a christian site where it
    is used (on the inside pages)
    HTH,
    Pete.
    Peter Connolly
    http://www.kpdirection.com
    Utah

  • Which "a4j:components" are updated (partially)

    hello
    How can I know which "a4j:components" are updated (partially) or not updated in java-bean?
    regards

    Welcome to the forum.
    Please post a SSCCE that shows your problem.
    bye
    TPD

  • Timeline for adding N90 to software update page?

    Do we have a date/approximate date for the N90 being added to the software update? I notice the E Series has been added, but I'm still waiting for the N90.
    Any information you could give me would be MUCH appreciated.
    thanks in advance.

    Even "Soon", "It'll be after Christmas" or "N90? Nope, take it to a centre for that, there weren't enough sold to justify the dev work on that model" would be enough.

  • Row action event on data table does not occur when rows added dynamically

    Row action event on data table does not occur (only refreshes the page) when the rows in the data table are added dynamically at run time using button click and java bean.
    please tell me a way to catch the row click event when adding rows dynamically to data table. i m using RAD 6.0 to develop Faces jsp pages.
    thanks
    amit

    i got the answer

Maybe you are looking for