Dynamic Creation of Template

Hi, I am creating the survey part using JSF as front end, basically survey has to create dynamic content like radio button,
check box,text area etc., I am able to do this and also sucess in displaying , so what I did for displaying purpose
I used the panel grid for each question, I used Datatable to get the list of survey questions from backend and I have render to check if it is radio button goes to this panel, if it is check box goes to this panel,and so on.,
it displaying good, but when I capture results It came up with last selected value only.,
example If i have three radio button panels , I am getting only one, I know becuase I am selecting only one value, so my quesitons is how can I select all three panel
<h:dataTable var="surveyList" value="#{questionBean.listItems}"
                                   width="100%" styleClass="centerall">
                                   <h:column>
                                        <h:panelGrid columns="1" rendered="#{surveyList.dropType}">
                                             <h:graphicImage url="/images/bar2.gif" />
                                             <h:outputLabel value="#{surveyList.questionDesc}"
                                                  styleClass="TTStableheader" />
                                             <h:selectOneMenu value="#{radioQuestions.selectedType}"
                                                  styleClass="selectOneMenu" tabindex="50">
                                                  <f:selectItems value="#{surveyList.selectedList}" />
                                             </h:selectOneMenu>
                                        </h:panelGrid>
                                        <h:panelGrid columns="1" rendered="#{surveyList.checkType}">
                                             <h:graphicImage styleClass="centerall" url="/images/bar2.gif" />
                                             <h:outputLabel value="#{surveyList.questionDesc}"
                                                  styleClass="TTStableheader" />
                                             <h:selectManyCheckbox styleClass="selectOneMenu"
                                                  value="#{radioQuestions.TYPESTwo}" tabindex="50"
                                                  layout="pageDirection">
                                                  <f:selectItems value="#{surveyList.selectedList}" />
                                             </h:selectManyCheckbox>
                                        </h:panelGrid>
                                        <h:panelGrid columns="1" rendered="#{surveyList.radioType}">
                                             <h:graphicImage styleClass="centerall" url="/images/bar2.gif" />
                                             <h:outputLabel value="#{surveyList.questionDesc}"
                                                  styleClass="TTStableheader" />
                                             <h:selectOneRadio styleClass="selectOneMenu"
                                                  layout="pageDirection" value="#{radioQuestions.selectedType4}"
                                                  tabindex="50">
                                                  <f:selectItems value="#{surveyList.selectedList}" />
                                             </h:selectOneRadio>
                                        </h:panelGrid>
                                   </h:column>
                              </h:dataTable>
Thanks
Srikanth

Hi Heiko,
You have done everything correctly....except for 1 line
in the code...
Replace the following line in your code:
actionAddElement.getActionParameters().addParameter("featureIndex", new Integer(i).toString());
Replace the above line with this code:
button.mappingOfOnAction().addParameter("featureIndex",i);
Actually in your code, you are not associating the parameter with the button...
Note that addParameter(...) comes with two signatures: addParameter(String param, String value) and addParameter(String param, int value). You can use any of them based on yuor need.
Hope it helps,
Thanks and Regards,
Vishnu Prasad Hegde

Similar Messages

  • 2012 R2 guest VM creation from template fails - SVMM 2012 SP1

    Hi,
    I am trying to create a VM from a VM template and I get error 13206 - Virtual Machine Manager cannot locate the boot or system volumen on virtual machine <NewVMName>.
    First, the current setup:
    Host OS: Windows Server 2012
    SCVMM: 2012 SP1
    The VM Template creation process:
    - Create a normal VM from SCVMM: Guest OS is Windows Server 2012 R2
    - Simple configuration of the guest OS (eg: regional settings, ...)
    - Disk within the VM is configured as Dynamic (has one simple partition that is System Reserved and another simple partition for the System (C:))
    - Sysprep the guest VM with Generalize and Shutdown options
    - Import the syspreped VHDX onto the SCVMM Library (making sure that the transfer is "unencrypted")
    - Create the VM Template using imported VHDX (since this is SCVMM 2012 SP1, not R2, the option to select the VHD generation (1 or 2) is not provided)
    The VM creation from template process:
    - Create a VM from the template with the default values and ticking the box for the VM to "start the virtual machine after deploying it on the host"
    The "Job" process:
    - Create virtual machine = Completed
    - Deploy file (using LAN) = Completed
    - Change properties of virtual machine = Completed
    - Fix up differencing disks = Completed
    - Install VM components = Failed <=Error 13206
    Some additional details:
    - Hyper-V integration services are not installed on the guest VM
    - Repeated the same procedure with both Dynamic and Fixed VHDX
    - Original VM was created with only 1 disk for boot drive (no additional disks)
    - Original VM does not have any roles or features configured
    - The VM Template does not make use of answer files nor is it configured to join the domain
    - Enabled SCVMM log tracing using Microsoft kb2913445 and searched the logs using the VHDX ID number - Not found
    Any help/guidance is greatly appreciated...
    Thank you,
    Karim

    SCVMM 2012 SP1 does not know of 2012 R2 (that I recall).
    Also, the VM must be a Generation 1.  Generation 2 creates a UEFI layout on the VHD that SCVMM 2012 has no idea how to handle.
    SCVMM actually mounts the VHD when the VM is deployed and looks for disk volume markers to find the OS in the VHD, then injects some startup files.  This is the portion of the process where you are failing.
    How do I know?  I submitted a bug around this in the SCVMM 2012 timeframe.  That I believe was fixed around the time of UR4.
    I caused the problem to happen by creating my VM with DISM from an image.  This did not create the layout assumptions that SCVMM was looking for and blocked template deployment.
    Brian Ehlert
    http://ITProctology.blogspot.com
    Learn. Apply. Repeat.

  • Dynamic creation of TabStrip

    Hi,
    I want to create a tabstrip dynamically.The tabstrip should have 3 tabs, and in each of the tabs i want to put some UI elements like a label, input field, dropdown, tables.........etc.
    Im able to create the tabstrip and add tabs to it dynamically.
    I've even created the UI elements which i wanted to put in the tabs.............But im not able to proceed as i dont know how to add the UI elements to the tabs.......
    Can anyone tell me how to add UI elements to a tab in a tabstrip?
    Regards,
    Padmalatha.K
    Points will be rewarded.

    Hi,
    Following code will help you to understand the dynamic creation and adding them
    //Tabstrip
           IWDTabStrip tabStrip = view.createElement(IWDTabStrip.class);
           //Tab
           IWDTab tab = view.createElement(IWDTab.class);
           //Input Field
           IWDInputField inputField = view.createElement(IWDInputField.class);
           //Adding inputfield to tab
           tab.setContent(inputField);
           //Adding tab to tabstrip
           tabStrip.addTab(tab);
    //Finally add this tabstip to either your root container or some other container.
    Regards
    Ayyapparaj

  • Dynamic creation of ComponentUsage

    Hi people,
    I want to reuse a view (ViewA) in different views (ViewB, ViewC, ViewD).ViewA has a quite complex logic, so it is necessary to outsource this view.  Not only the logic, but also the count of UIElements and contextelements is quite large, for this I don't want to implement this part redundant in the views A, C and D.
    I have to use ViewA in a table in  the TablePopin UIElement. Every line of the table should have its own instance of ViewA. Is that possible?
    My idea is it, to put the view in an own component. For every tableline I need an instance of the componentUsage. My problem is now, that I'm not able to create at runtime a ComponentUsage and at designtime I don't know how many instances I need. Is it possible in webdynpro to create dynamic instances of ComponentUsage?
    If you know an other way, that prevents me from implementing the view and its logic more times, please tell me!
    Thanks in  advance,
    Thomas Morandell

    Hi Thomas,
    just for clarification. Principally it is possible in Web Dynpro to dynamically create new component usages of the same type like an existing, statically declared one. This means after having defined a component usage of type ISomeComp (component interface definition) you can dynamically create new component usages which all point to the same component interface definition ISomeComp:
    wdThis.wdGetISomeCompUsage().createComponentUsageOfSameType();
    But this dynamic creation approach implies, that you must also embed the component interface view of this component usage to the view composition dynamically; and this is (unfortunately) quite cumbersome and complicated based on the existing Web Dynpro Java API (it is not yet optimized for a simple dynamic view composition modification.
    Additionally, like Valery pointed out, the dynamic creation of new component usages is not compatible with table popins.
    Regards, Bertram

  • Dynamic Creation of UI in adobe forms??

    Hi Experts,
    I need to create a dynamic interactive form and dynamic UI elements in the interactive form.
    As per my requirement I need to display a pdf and I will be getting values from the RFC's. I need to show the form segments and the UI elements only when there's a data from the RFC else not. I am unable to understand whether this requirement needs generation of the UI elements dynamically or I can do it statically as well.
    The form thus generated will be having data from the RFC which based on the data quantity may exceed to n number of pages.
    In case it needs dynamic creation can you suggest me please how to achive it in interactive forms?
    Helpful answers will be appreciated.
    Warm Regards,
    Gaurav

    Hi,
    subForm1:-
    Flow content
    Allow page breaks
    Place: following previous-----> This means when you are repeating the subform the previous one should be followed.
    Say you have a table and have 3 columns in it.
    After 1st column is completed, the next column should come with 1st comun
    After: Continue filling parent--->Continously fill the data with the parent element
    Repeat sub form min count is 1 : Minimum of 1 line item will be printed
    Height: Expand to fit is true.: If the field height is increased it automatically expands.
    For help in Adobe Press F1 or Goto Help--> Adobe Designer Help in Adobe Designer
    After installing Adobe Designer, goto the specific folder
    C:\Program Files\Adobe\Designer 8.0\EN you can get sample documents.
    For help press F1 after opening designer.
    Sub Form1: Content--> Flowed, Flow direction --> Top to bottom
                       Binding --> Check the checkbox Repeat Subform for each data item
    Subform 2: Content --> Positioned, No pagination No binding settings changes needed.
    Hey i forgot to mention the Header Subform where you create all these subforms should be flowed.
    Try it once like this and lte us know
    Edited by: Sankar Narayana on Oct 3, 2008 5:06 PM

  • Dynamic creation of date in selection variant

    Hi All,
    I have a Z program for updating a field in BOM item. One of the input field in the report is "Valid From Date". Actually the current date is automatically fetched through a function module and it is defaulted in that field. 
    Our client is using selection variant for ease of use. The problem here is old date in the selection variant  is replacing the current date. I want current date to be created automatically during insertion of variant also. How can i solve this problem. Is there any selection variable inside the variant for dynamic creation of Date?
    Thanks
    Sankar

    As I know there is no setting for this. For any std or Z report variant function with L should act same way...anyway you discuss with your ADABer.
    See the help for variables
    Selection Variables                                                                               
    The following three types of selection variables are currently          
        supported:                                                                               
    o   Table variables from TVARV                                          
            You should use these variables if you want to store static          
            information. TVARV variables are proposed by default.                                                                               
    o   Dynamic date calculations:                                          
            To use these variables, the corresponding selection field must have 
            type 'D' (date). If the system has to convert from type T to type D 
            when you select the selection variables, the VARIABLE NAME field is 
            no longer ready for input. Instead, you can only set values using   
            the input help.                                                     
            The system currently supports the following dynamic date            
            calculations:                                                       
            Today's date                                                        
           From beginning of the month to today                               
           Today's date +/- x days                                            
           First quarter ????                                                 
           Second quarter ????                                                
           Third quarter ????                                                 
           Fourth quarter ????                                                
           Today's date - xxx, today's date + yyy                             
           Previous month                                                                               
    o   User-specific variables                                            
           Prerequisite: The selection field must have been defined in the    
           program using the MEMORY ID pid addition. User-specific values,    
           which can be created either from the selection screen or from the  
           user maintenance transaction, are placed in the corresponding      
           selection fields when the user runs the program.                                                                               
    The SELECTION OPTIONS button is only supported for date variables that 
       fill select-options fields with single values.                         
    i.e means we can do that with D also.

  • Allow "Signing" and "Creation of Template Pages" in Reader XI

    Hi.
      I have created a form in Adobe Pro XI that allows the (Reader XI) user to insert additional templates pages by clicking "button X".  The form also provides the user a Digital Signature field to sign the document.
      In order for the user to be able to use the Digital Signature field the file must be saved as a "Reader Extended PDF" with the "Enable More Tools" option.  This however, disables the addional templates option.
      Is there a way to allow for both "Signing" and "Creation of Template Pages" in a Reader document?
    Thanks

    Thanks GKaiseril.  While I was hoping for some sort of option choice or Javascript I feared that would be the resonse.

  • Document Assembly and Creation of Template Pages?

    What do “document assembly” and “creation of template pages” mean?
    I am a print graphic designer who usually handles the printing for a particular client who does long reports. I also give them a low resolution PDF for email circulation and posting on their website. They are now want to use the PDF for other purposes such as creating PowerPoint presentations that they will do in house. Therefore they have asked me to unlock all the security options -- that quite frankly I never even dealt with. Specifically they want to “allow document assembly, commenting, signing, and creation of template pages.” Assembly, commenting and signing seem innocuous, but will document assembly and template pages have significance for me as a graphic designer? I'm not sure what these two functions are.

    “document assembly” means the combination of documents.
    “creation of template pages” is for the creation of template pages for forms

  • Difference between dynamic report and template

    I think the subject line covers it, I am trying to find out, that when I save the report, I can save it as static or dynamic report or as a template. but what is the diff between dynamic report and template?
    Thanks.

    Hi Zack,
    SAP provides some standard templates as report templates. The users are provided with the option to save their own versions of reports as 'Report Templates' for future use. As a super user one could create a custom template and save to the template library which the other users could access from the template library.
    For example if you have 'ACCOUNT' drilldown as a standard report template, you could define a new template as for example, 'Entity' drilldown template.
    Hope it is clear now.
    Thanks,
    Sreeni

  • Create Dynamic Document Library Templates

    I have the following scenario within our IT Org
    1. PMO office maintains a "Standards" library, to which they publish all standard templates that need to be used for Project Management.
    2. Each Project Manager would like to create a document library within their "project site" based on all the documents within "Standards" library.
    My question is, would it be possible to create a document library template whose contents are dynamically pulled from another library?
    Thanks.

    Hi ,
    Based on your description, my understanding is that each Project Manager
    creates document library with the same template, but what they need is that their document libraries have different content type with others.
    There isn’t an out of the box method to create document library templates dynamically.
    For your issue, I suggest each Project Manager create one document content type with the document template which they need, and add the content type into their document libraries. 
    Here is a similar case, you can use as a reference:
    http://social.technet.microsoft.com/Forums/en-US/7d238bb5-8af7-4027-97cf-b41f84bcdb5d/dynamically-create-document-templates-for-new-menu?forum=sharepointdevelopmentlegacy
    Best Regards, 
    Lisa Chen

  • JSF Page Fragment based on Oracle Dynamic Tabs Shell Template

    Hi
    JDeveloper 11.1.1.6
    Can we create a JSF Page Fragment (jsff) based on an Oracle Dynamic Tabs Shell Template ?
    I tried to create this jsff page and added in a bounded taskflow.
    In the create jsff wizard, it will allow us to select the Oracle Dynamic Tabs Shell Template, but when trying to use this taskflow in the another page (jspx), it is giving the following exception.
    javax.faces.FacesException: javax.el.PropertyNotFoundException: Target Unreachable, 'tabContext' returned null
    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:261)
    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)
    Basically the reason why I am trying to do like this is that I have to simply drop the taskflow in a page as a region.
    The ViewController project code will only be created as an ADF Library Jar File and be used in other projects
    (it will not be deployed as a web application (war))
    More about the requirement:
    I have a BPM Application in which I have 2 ADF ViewController projects, one for only BPM Human Task related UI and another for only ADF functionality.
    I am writing a custom BPM Workspace kind of ADF Application and want the UI to be based on the Oracle Dynamic Tab Shell Template.
    ADF ViewController project is deployed only as a ADF Library Jar file.
    Another advantage I can have is I can test my ADF code within JDeveloper.
    (If I create a jspx page based Oracle Dynamic Tab Shell Template in the BPM Human Task Related UI project, I will not be able to run it in JDeveloper and test it.
    Otherwise I have to deploy to the SOA environment each time I make a change)
    Thanks for any help.
    Sameer

    Hi,
    the dynamic tab shell template can only be used with top level (JSPX) pages (in 12c also with Facelet pages). There is no configuration for templates that would make the JDeveloper IDE to not show the template of the selected page is a fragment.
    Frank

  • Customize dynamic video playlist template

    Hi,
    I downloaded a dynamic video playlist template for streaming delivery of video from -http://www.adobe.com/devnet/flash/articles/video_playlist.html I have customized the playlist to play and display my own videos and thumbs. I would like to customize the position of the TileList component and the position and size of the thumbs and text contained within, so that it matches the position and size of the thumbs and text on my website. Here is a link to the template folder- http://dl.dropbox.com/u/8730678/video_playlist_sequence.zip and my website (got to movie page) - http://jamanimations.com/
    Thank you!

    thanks for your reply but I have managed to fix it by move=ing the content of the constructor of the class 'VideoPlaylist' into a new  function called activate and then calling that on frame 2

  • Dynamic creation of business graphics.

    Hi,
    i have a piece of code which dynamically create a business graphics. If i use the same node data and create BG in statically.. i am able to view the graph. In case of dynamic creation , i am getting graphical rendering error. Have i missed something here..
    The piece of code i had used is..
         IWDBusinessGraphics bg = (IWDBusinessGraphics)view.createElement(IWDBusinessGraphics.class,null);
              IWDCategory c = (IWDCategory)view.createElement(IWDCategory.class,null);
         //     c.setDescription("tableutility");      
              c.bindDescription(wdContext.getNodeInfo().getAttribute(IPrivateSDNUtilityView.IContextElement.TEST));                                                                               
    bg.setCategory(c);
              bg.setDimension(WDBusinessGraphicsDimension.PSEUDO_THREE);
              IWDSimpleSeries ss = (IWDSimpleSeries)view.createElement(IWDSimpleSeries.class,null);
              ss.bindValue(wdContext.nodeDepartments().getNodeInfo().getAttribute(IPrivateSDNUtilityView.IDepartmentsElement.NO_OF_PEOPLE));
              ss.setLabel("Simple Series");
              ss.setLabel("No of People");
              bg.addSeries(ss);
              bg.setChartType(WDBusinessGraphicsType.COLUMNS);
              bg.bindSeriesSource(wdContext.nodeDepartments().getNodeInfo());
              bg.setIgsUrl("http://<hostname>:40080");
    Please help.
    Regards
    Bharathwaj

    Please got through following link
    <a href="/people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities:///people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities

  • Dynamic Creation of Buttons and Actions HELP

    Hi there,
    I have got a problem (or maybe even two) with the dynamic Creation of buttons. The code below creates the buttons.
    My main problem is, that the parameter created for the button's action isn't propagated to the assigned event handler. I get a null, though the name of the parameter in the event handler and the name of the parameter added to the action are the same.
    Could it also be that I'm always using the same action? I.e. does wdThis.wdGetAddElementAction() always return the same action instance? If yes, how can I create individual actions for each button?
    Any help is appreciated!
    Cheers,
    Heiko
    "    for(int i=rootContainer.getChildren().length; i<wdContext.nodeFeature().size();i++)
                   IPrivateVCT_Feature.IFeatureElement featureElement = wdContext.nodeFeature().getFeatureElementAt(i);
                   IWDTray featureTray = (IWDTray) view.createElement(IWDTray.class, featureElement.getName());
                   IWDCaption header = (IWDCaption) view.createElement(IWDCaption.class, featureElement.getName()+"_Header");
                   header.setText(featureElement.getName());
                   featureTray.setHeader(header);
                   featureTray.setExpanded(false);
                   rootContainer.addChild(featureTray);
                   IWDButton button = (IWDButton) view.createElement(IWDButton.class, featureElement.getName()+"_Button_AddElement");
                   IWDAction actionAddElement = wdThis.wdGetAddElementAction();
                   actionAddElement.getActionParameters().addParameter("featureIndex", new Integer(i).toString());
                   button.setOnAction(actionAddElement);
                   button.setText("Add Element");
                   featureTray.addChild(button);

    Hi Heiko,
    You have done everything correctly....except for 1 line
    in the code...
    Replace the following line in your code:
    actionAddElement.getActionParameters().addParameter("featureIndex", new Integer(i).toString());
    Replace the above line with this code:
    button.mappingOfOnAction().addParameter("featureIndex",i);
    Actually in your code, you are not associating the parameter with the button...
    Note that addParameter(...) comes with two signatures: addParameter(String param, String value) and addParameter(String param, int value). You can use any of them based on yuor need.
    Hope it helps,
    Thanks and Regards,
    Vishnu Prasad Hegde

  • Dynamic Creation Form

    Hi friends,
    Is there a way to create dynamic creation forms in ADF,in jdev 10.3.3?
    By this I mean--I need to populate a table in my DB and on my page I have an add button,
    now at each click of add button,a new creation form should be displayed on the page one below the other.
    finally there would be a Save button that would save all my entries to the table.
    I searched a lot for the same...Please do help if anybody has any ideas..
    Thnks in Advance..c ya
    kavitha
    Edited by: user6403440 on May 5, 2009 2:22 AM

    Hi,
    well, the easiest would be to create an updateable table and add new rows. If you need a form then you can use af:forEach or af:iterator with the table binding to render input form elements (more like a custom table rendering). However, its quite a bit of development that is required for this.
    Frank

Maybe you are looking for

  • Apple TV blinking after update today no picture

    got new update for Apple TV now it is blinking with no picture or sound......september 2013

  • Can We Install Hyperion EPM in 64 bit machine with windows8?

    Hi Gurus, Can We Install Hyperion EPM in 64 bit machine with windows8?

  • Functioal specs

    Hello Experts, Can somebody please guide me with some example senarios for the design of functional specs for the following: Customer statement, Balance confirmation, check deposit slip and for interfacing with Payment Tech, Interest letters I couldn

  • Current directory in a webapp

    Hi, Are there any functions by which i can get the path where my webapps jsps reside or the classes my webapp uses. e.g. in the webapps/mywebapp has my web application. is there a get function which will retrieve the path. I have a file in this path

  • File renaming problem in XP

    Attempting to use a new WD Passport for backup:  renaming the files on the passport through explore also renames the source file on the C: drive.  eg renaming 'Application Data' on J: (the passport) to 'Application Data old' results in a name change