Display specific tags by name (dynamic (dynamic form) generator)

Hi guys,
got a problem and I didn't find a way to cope with it, yet. Hope you could help me or give me some hints.
Context:
I would like to create a webform according to a template.
The template could have different components of different types, respectively the input components are more complex and not just input fields.
For instance there could be a select list followed by an input box followed by some other kind maybe a drag'n' drop component.
The template is a backing-bean with a list of Components which carry additional information like the type, name, description etc.
Problem:
I like to generate a form depending on the types of the component, if I would do it in plain java I would write something like this
if (component.type  == "draganddrop") {
<a:draganddropcomponent binding="#{component.bind}">
} else if (if (component.type  == "list") {
<a:list binding="#{component.bind}">
} etc. ppHowever this is not how a JSF should look like. I could do it with JSTL if but I don't like to couple logic with presentation..
Any ideas?

Use the 'rendered' attribute.

Similar Messages

  • Re-display repeating XML data in dynamic form

    I have a dynamic form with repeating data in my XML that populates it. I need to display the repeating data in one of 2 different ways, depending on which business segment the user viewing it is associated with. I have tried 2 ways to accomplish this, neither has worked for me.
    Attempt 1: Create 2 separate subforms and hide the one that should not be shown. The first subform in the layout displays just fine and is populated with records, but the second subform never displays any records. This appears to be an issue with the XML node already having been parsed and displayed and does not get displayed again. Is there a way to move the cursor, or pointer, or whatever you call it in XML-speak back to the top of a repeating node to re-display data?
    Attempt 2: Create a single subform that contains 2 other subforms - one for each view, which lay atop each other. A script command hides the view the shouldn't be displayed. The problem I ran into here is that the records don't display properly. In my example, there are 3 records in the repeating section, the first displays fine, the second is missing some fields and is pulling some data from the first record. The third record displays no data at all. I deleted the one of the 2 subforms and previewed the form again, now all of the records displayed just as they should.
    Any ideas or suggestions would be appreciated.
    Thanks,
    Chad

    That code also produces text in the textfield.  What "specific parts" are you trying to display?
    textfield.text = (xml.bar[0].text());
    textfield.text = (xml.bar[1].text());

  • How to Display the SAVE  file name dialogue in Forms 6i

    Dear All,
    Just like we use Get_file_Name to display the MS Open file dialogue..
    how do we display the SAVE file dialogue in forms..??
    whats the function name???
    regards,
    Sidhant

    hello friend,
    u can use webutill lib to open/save dialog box
    also must refer this link,
    Re: How To Call Save As Dialog?
    Regards
    Chandan

  • Not specify servlet tag role-name - web.xml

              Hi all,
              I would like to know the servlet configuration in web.xml file. What is the difference
              between specification tag <role-name> and do not have tag <role-name> in web.xml
              file.
              Please advise me.
              Thanks and Best Regards,
              Kwanjai
              

    difference          > between specification tag <role-name> and do not have
              > tag <role-name> in web.xml
              > file.
              <role-name> is usually used for security of a resource in a web application. This is generally used in conjunction with <security-role-ref> and <security-constraint> tag in the deployment descriptor.
              There are some docs on the BEA web-site on the same : http://e-docs.bea.com/wls/docs81/security/thin_client.html#1037337
              http://e-docs.bea.com/wls/docs81/webapp/weblogic_xml.html#1040908
              -Pankaj

  • Dynamic form... field names and values...

    Boy-Howdy. I wish I had the opportunity to stop by this forum and hang out at a time when I am not having issue, but, alas... I appreciate the brain power of the great minds that populate this forum.
    I have an issue: I think I am close on this but cannot identify where my syntax is going awry. Here is a simplified edition of my situation.
    I have a form with a set of dropdown menus that filter a recordset. The group of drop downs are dynamic from a database and will vary depending on what category of products a visitor is viewing.
    If I browse to FRUIT: I get three options that let me filter for:
    Fruit Type
    - Apples
    - Bananas
    - Pears
    Fruit Grown By:
    - Organic
    - Any
    Fruit From:
    - Domestic
    - South America
    - European
    However, if I browse to LUMBER I get:
    Wood Type:
    - Pine
    - Walnut
    - Oak
    Wood Prep:
    - Pre Cut
    - RAW Timber
    Wood Origin:
    - North America
    - South America
    - Europe
    I have the variable naming and database values worked out. My only issue is when I browse to friuit and select apples I want apples to remain selected as I page through results.
    So, the dropdown field names are dynamic. Currently set to zgen1, zgen2, zgen3. I set a variable named sr and increment it to build the progressive 1,2,3 after the field name zgen.
    <cfparam name="sr" default="1">
    <cfoutput group="ft_id" query="oompa2">
    <strong>#f_ftrname#:</strong><br>
    <select name="zgen#variables.sr#">
    <OPTION value="">select...</OPTION>
    <cfoutput>
    <OPTION value="#ft_id#_#fs_id#">#ft_options#</OPTION>
    </cfoutput>
    </select>
    <br><br>
    <cfset sr=#sr# + 1>
    </cfoutput>
    But when zgen1 has a value (in this case "Apples") I can't figure out how to dynamically test for the presence of a value for each dropdown. I have dynamically created the field names (cfset xvalue="FORM.zgen#variables.sr#") to test against. However this creates a value of FORM.zgen1, FORM.zgen2, FORM.zgen3 as it loops when I want it to be Apples, Organic, Domestic.
    Example:
    The code:
    <OPTION value="#ft_id#_#fs_id#"<cfif xvalue IS "#ft_id#_#fs_id#"> SELECTED</cfif>>#ft_options#</OPTION>
    which is translating to:
    <OPTION value="15_5"<cfif FORM.zgen1 IS "15_5"> SELECTED</cfif>>Apples</OPTION>
    When I want it to be:
    <OPTION value="15_5"<cfif 15_5 IS "15_5"> SELECTED</cfif>>Apples</OPTION>
    I hope I am making sense. I would greatly appreciate it if someone could help me noodle this. I have a feeling it is not as complicated as my mind is trying to make it. Thoughts?

    Three selects related type code was not the way to go - because I need each filter to be independent. I created a custom tag that argues the state for each separately up to ten filters.

  • Finding adobe form name dynamically

    Hi Guys,
    I am working on Adobe forms.
    I am using the same interface to multiple forms.
    I want to find the currently executing form name dynamically in the form interface.
    Based on the form i need to display the different data for some fields.
    Regards,
    Ramesh

    Hi Larissa,
    You can use the below code to resolve the naming issue:
    Download_File is node mapped to the download link for PDF.
                             //Get the Attribute Info of Attribute for PDF
                              IWDAttributeInfo attrinfo = wdContext.nodeDownload_File().getNodeInfo().getAttribute(IPrivateViewName.IDownload_FileElement.DATA);
                              ISimpleTypeModifiable simpletype = attrinfo.getModifiableSimpleType();
                             //Get modifiable Binary Type
                             IWDModifiableBinaryType binarytype = (IWDModifiableBinaryType)simpletype;
                             //Set the File Name
                             binarytype.setFileName("FileName");
                             //Set the Mime Type to PDF
                             binarytype.setMimeType(WDWebResourceType.PDF);
    Hope this resolves the issue...
    Regards,
    Arafat

  • Dynamic forms using dynamic column names

    I have a table with columns such as level_1, level_2, etc.
    until level_11 and I have another table with level_id and
    description, i.e. for level with id = 1 the description could be
    'Crawl.' Id 2 could be 'Walk' etc.
    I'm trying to make a checklist so people can mark when
    they've done things on the checklist, and then upload those values
    to the appropriate tables to store the information so it's all
    still there when they go back to check off a new skill.
    I can't figure out how to make the column names in the form
    dynamic.
    I've played around with the formatting and still can't quite
    get it. I've tried evaluate(queryname.level_#level_id#),
    queryname.label, a bunch of other ones, and I can't seem to get it
    to work.
    Thanks for the help!

    Get to know CF's structure / array notation. This comes in
    very handy when dealing with queries and form fields.
    - Form.myFieldName can also be referenced by
    Form["myFieldName"]
    - MyQuery.myField can also be referenced by
    MyQuery["myField"][rowNumber]
    Anything in the above example surrounded by quotation makes
    can be made dynamic by just adding in a cf variable surrounded by
    pound signs:
    get_dealer_completion["level_#level_id#"][1]

  • Tags in dynamic forms

    Has anybody create dynamic forms with tags?
    For me it is not possible to do this, only static forms can hold tags (Designer 8.o and 8.1 ES).
    So it is impossible to create accessible, dynamic PDF-Forms with Designer technology - is this the reality?
    regards
    Jan Hillmer

    Thanks Mike. I've been banging my head against the wall all day trying to figure out why my Livecycle Designer 8 forms aren't tagged. I couldn't find any info searching the Adobe site (I REALLY suck at google-like searches). Is there a known issues document that you can point us to that might have more info about current problems with tagging dynamic forms?

  • Dynamic form input name

    Hi,
    My brain is frozen or something because I couldn't think out this issue.  Basically my form input radio name and value are dynamically pulled from a database.  The name of the form is concat with a name and id is from a database.  On the form processing side, how would I get all the dynamic input radio name.  The value of the input will be attach to the name.  Hope that make sense. 
    form.cfm
    <cfquery name="get_form_name" datasource="#ds#">
         SELECT id, name
         FROM records
    </cfquery>
    <cfoutput>
    <form action="form_process.cfm">
    <cfloop query="get_form_name">
    <p>name: <input type="radio" name="test_#get_form_name.id#" value="#get_form_name.name#" /></p>
    </cfloop>
    <input type="submit" value="submit">
    </form>
    </cfoutput>
    form_process.cfm
    somehow get all the input name from the FORM to set cfparam and value.  Once I have this, i have the form values that are passing over.

    Your requirement is that you want the application to remember the name of a query variable across multiple page requests. That is a typical case where you would use the session scope.
    Following your example,
    form.cfm
    <cfquery name="get_form_name" datasource="#ds#">
         SELECT id, name
         FROM records
    </cfquery>
    <cfset session.formRecords = structNew()>
    <form action="form_process.cfm" method="post">
    <cfoutput query="get_form_name">
    <p>name: <input type="radio" name="test_#id#" value="#name#" /></p>
    <cfset session.formRecords["test_#id#"] = name>
    </cfoutput>
    <input type="submit" name="sbmt" value="submit">
    </form>
    form_process.cfm
    <!--- The names and values of the form fields are stored, respectively, as key-value pairs in the structure session.formRecords--->
    <cfdump var="#session.formRecords#">
    Remarks
    1) I simplified the code somewhat. I also added post method to the form, as I assume that is what you are aiming for. Otherwise the form fields will be submitted via the URL.
    2) It seems to me the database table holds rows having distinct values of ID . Therefore, my guess is that the functionality you should be going for is <input type="checkbox"> instead of <input type="radio">.

  • Dynamic Form - Barcode on master page, only contents on specific page to be populated on barcode

    We have a dynamic form that grows as required. We have one barcode on the master page. As form grows to next page only the contents on that page (ie page 2) must be on the barcode on page 2 and page 1 content only on page 1. But if the form goes back to normal then the contents must not be on the barcode anymore.
    Could anyone assist on this problem please?

    Hi Brad ,
    For your issue, you can view the Upgrade Status page in Site Settings to verify that upgrade has succeeded for a site collection.
    To view upgrade status in Site Settings 
    1.Verify that the user account that performs this procedure is a site collection administrator.
    2.On the Site Settings page for the site collection, in the Site Collection Administration section, click Site collection upgrade.
    3.On the Site Collection Upgrade page, click Review Site Collection Upgrade Status.
    4.The Upgrade Status page for the site collection is displayed.
    For more information, see
    Manage site collection upgrades to SharePoint 2013
    Also you can  go to _layouts/15/reghost.aspx (Site Settings -> Site Actions -> Reset to site definition) and reset the master page gallery to site definition version.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Specific script not workig in dynamic forms

    Dear all,
    I have three check boxes.Third one is N/A.So when user select third one the value of first two check boxes should be null and acess should be read only.
    So i have added the following script to click and change events of the third check box.
    if(this.rawValue == 1 )
    first.rawValue = 0 ;
    second.rawValue = 0 ;
    first.access = "readOnly" ;
    second.access = "readOnly" ;
    else
    first.access = "open" ;
    second.access = "open" ;
    This is working fine if the form is save as static pdf but i need it in dynamic form.
    In dynamic form if i select first two check boxes then i select third one it's only making the first two check boxes read only.But the values are not refreshed i.e. value should be 0.it should be deselected.
    Can any one please help me to solve this problem.
    Thanks a lot in advance
    Regards
    Rakesh

    Rakesh,
    I have tested this in both Designer 7.0 and Designer 7.1, saved both times as a dynamic form and it works for me with the following javascript code on the change event in the 3rd CheckBox:
    if(CheckBox3.rawValue == 1 )
    CheckBox1.rawValue = 0 ;
    CheckBox2.rawValue = 0 ;
    CheckBox1.access = "readOnly" ;
    CheckBox2.access = "readOnly" ;
    else
    CheckBox1.access = "open" ;
    CheckBox2.access = "open" ;
    If you still don't get it to work I can send you the file that I have working.
    Catherine
    Adobe Systems

  • How to create a dynamic form with bind variables :schema & :table_name

    My application has two LOV's, one to select a schema, and the next to select a table within that schema. I then have a button which passes me to a report which displays the data in that table.schema.
    I now want to create a link to a form where I can edit the record based on the rowid of that table.schema, but it doesn't appear that I can create a dynamic form where I pass the schema.table_name and rowid. Is this possible? Can anyone advise how I can do this? The form builder only wants a fixed schema/table name.
    Thanks in advance.
    Stuart.

    Hi Stuart,
    In this sort of situation, you will need to be a bit creative.
    I would suggest a pipeline function called as if it was a report.
    Then you can pipe out the required fields.
    Since you will have a variable number of fields, you could use two of the multi row field names for your field names and values.
    Then after submit, you can create your own procedure to loop through the fields (stored for you in the Apex package) and update the table as required.
    Not very specific I'm afraid, but it should work.
    Regards
    Michael

  • Dynamic forms in struts

    Hi,
    I have a pretty difficult problem that I don't know how to solve using struts. I need to generate dynamic surveys from a database. The structure of the survey can be different for every different user. I really want to use the struts Form classes but I'm not sure how to do this. The only way I can think of is messy...
    For every new type of survey generated from the database...
    1. Generate a new class definition for the struts Form object and compile that.
    2. Every struts Action class that interacts with the new dynamic Form classes will need to use reflection on the dynamic Form object to be able to pull all of the data from that form.
    I'm sure there are many web sites where forms are dynamically generated and I would think this problem has already been solved. Does anyone out there have any ideas?

    Try to follow this way:
    1 provide actions chain in your configuration file like this:
             <form-bean
                  name="addFlatForm"
                  type="app.owner.forms.AddFlatForm">
                </form-bean>
            <action
                 path="/InitAddFlatForm"
                 type="app.owner.actions.InitAddFlatFormAction"
                 attribute="addFlatForm"
                 validate="false"
                 parameter="owner.extendedplace;place;/pages/AddFlat.jsp">             
            </action>
            <!-- "/pages/AddFlat.jsp" - jsp page with html:form on it-->     
            <action
                 path="/AddFlatForm"
                 type="app.owner.actions.AddFlatAction"
                 name="addFlatForm"
                 validate="true"
                 input="/pages/AddFlat.jsp">
                 <forward
                      name="success"
                      path="/shortinfo/Welcome.do"></forward>
            </action>2 first action(InitAddFlatFormAction) will be "prepare" action, where you must create new instance of the ActionForm descendant with Map, List, array etc definition. where your dynamic fields will be located , and fill the keys value from your database.
    public class InitAddFlatFormAction extends Action{
         public ActionForward execute(ActionMapping mapping, ActionForm form,
                HttpServletRequest request, HttpServletResponse response){
              //obtain parameters
              String[] params = ActionHelper.parseParameter(mapping, 3, Constants.PARAMETER_SEPARATOR);
              //get extended place from session attribute
              ExtendedPlace currPlace = (ExtendedPlace)ServletUtils.getAttribute(
                        request, params[0], ServletUtils.SESSION_SCOPE);
              //create form if form == null
             if (form == null) {
                  System.out.println("InitAddFlatFormAction::execute method: create new instance of action form.");
                  //create new form instance
                  form = new AddFlatForm(new HashMap<String, Object>());
                  //set form to selected scope attribute
                if ("request".equals(mapping.getScope()))
                     ServletUtils.setAttribute(request,
                               form, mapping.getAttribute(), ServletUtils.REQUEST_SCOPE);   //just set the value to selected scope
                else
                     ServletUtils.setAttribute(request,
                               form, mapping.getAttribute(), ServletUtils.SESSION_SCOPE);   //just set the value to selected scope
             //fill the form
             AddFlatForm flatForm = (AddFlatForm) form;
             flatForm.setValue(params[1], currPlace);
             return URIUtils.forwardAction(params[2]);
         }3 second action(AddFlatAction) will be "process" action. This action can be used when your data are successful validated.
    //any your actions4 form bean(ActionForm desctndant)
    public class AddFlatForm extends ActionForm{
         public AddFlatForm(Map<String, Object> map){
              super();
              //check input arguments
              AssertHelper.notNullIllArg(map);
              setMap(map);
         private Map<String, Object> map = null;
         public void setMap(Map<String, Object> map) {
              this.map = map;
         public Map<String, Object> getMap() {
              return this.map;
         public void setValue(String key, Object value){
              getMap().put(key,value);
         public Object getValue(String key){
              return getMap().get(key);
        public ActionErrors validate(ActionMapping mapping,
                HttpServletRequest request) {
            return (null);
    }And than in your jsp page you can use something like this:
    <%@ taglib uri="/tags/struts-html" prefix="html" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
                                            <c:set var="placeId">
                                                 <bean:write name="extPlace" property="placeInfo.id"/>
                                            </c:set>
                                            <c:set var="groupId">
                                                 <bean:write name="groups" property="filterGroupInfo.id"/>
                                            </c:set>
                                            <c:set var="filterId">
                                                 <bean:write name="filters" property="filter.id"/>
                                            </c:set>
                                            <bean:message name="filters" property="filter.filterDescription"/>
                                            <html:text property="value(${placeId};${groupId};${filterId})"/>                                                                 Something like this are displayed in struts-example.war (example application for struts1.1)
    pay attention for classes
    EditRegistrationAction.java and SaveRegistrationAction.java
    sorry for bad english... :)

  • Dynamic Form Data Duplication

    I'm working on my first dynamic form, and I'm having an issue where my dynamic subforms share the same data, so editing one subform updates all other subforms of the same type. The form is a tshirt order sheet, so, for example, there'll be a line for a specific brand of shirt, plus sizes. When another line is added, it'll duplicate all the info from the first line, and any changes made to the second line will be immediately mirrored in the first line. I have the fields bound to an XML schema I wrote, so I'm not sure if that may be causing the problem.

    Hi,
    You have not included the XML schema. However the issue is that the objects in the repeating row are bound to the schema, if this is absent or if the schema only contains one node, then I am sure that all repeated instances of the row will display the same data.
    The issue is where is the data coming from? Is it from a database or is the user entering it. If the user is entering it then I would not bind those fields to a schema. Set the binding to Name/Normal.
    Niall

  • Dynamic Forms and WF

    Hello,
    I have designed a dynamic form, where user can add rows dynamically by clicking a button on the form, the form is working fine in preview in designer.
    this form is initiating a LC WF process, but, if I deploy this form to form manager as an XDP and choose to render it to PDF, adding rows function does not work, however if I save this as dynamic PDF from LC designer and deploy it again to form manager, it works !!
    However, I can not use PDF generated from LC Designer since I found that commenting and annotations are not working ( I am using acrobat ) which is an important feature, also, web services calls are not working even, again from Acrobat!
    How can I set the form server installed with workflow server to render XDP templates into dynamic PDF forms ?
    Or alternatively how to enable commenting and fix web service calls in PDF rendered form ?
    Thank you for help,
    Greetings,

    By default Forms and Form Manager are configured to render a PDF as either static or dynamic based on some values in the XDP. By default those values will tell it to render a static PDF. What you can do, in Designer save as a dynamic PDF, then open the dynamic PDF in Designer and save as an XDP. Upload that XDP to Form Manager, the tags will be present to tell it to be rendered as a dynamic PDF. There's a better way if you are using Designer 7.1 and Forms 7.1, but since I don't know your environment this is a way that will work regardless of versions.
    Annotations will not work in dynamic PDF's though. Currently annotations make no sense in dyanmic PDF's since the template of the PDF can dynamically change while annotations are bound to a specific location. IE: You have a dynamic PDF that is initial 4 pages and add an annotation to page 4. Later the template of the PDF changes based on data and user interaction and it is now a 2 page PDF, but the annotation is still on page 4 which no longer exists...
    Chris
    Adobe Enterprise Developer Support

Maybe you are looking for

  • K7N2 DELTA-ILSR AND DDR-RAM

    I got K7N2 Delta-ILSR, the last bios version, and 2x256 twinmos pc3200 ram. The 50% of the times the computer startes without problems, but the other 50% it gets hang up when I start the computer and the "d-Leds" indicate:" the memory module is damag

  • Can you connect Wii to Mac?

    Can you connect Wii to Mac?

  • Find the container name of a component

    hi how does one get the container name of a component on the component's actionListener event. i have a ' N ' number of JInternalFrames in which there are multiple JToggleButtons. On the actionListener event of the togglebutton i would like to know t

  • Converting RGB to Gray, why does PS ask about flattening image?

    When I have a layered RGB image and change the mode to Gray, PS asks whether I want to flatten the image (thus losing layer information). Why is this, I don't see why this is desirable or common?

  • How can I change the ipad2 backup location

    How can I change the local computer backup location for an iPad2 (iOS 5.0.1) to a folder I designate so it doesn't go through a specific user account (i.e.- If I create a folder directly on c: then point the backup there)?