Using multiple form elements in jspx

Using jdev 11.1.1.2.0 with jsf/adf. We have a link that we display on every jspx page of our application. That link gets included into all jspx pages via a jsp:include. However, for the purposes of this post, I'm going to be showing the code for the included page as actually being in the same file that normally would use the jsp:include to include this code. This link uses the following code in a backing bean to determine if the transaction is dirty. (the bindings property is defined in the class and is 'injected' with the bindings value via the managed bean reference in the faces-config file. I'm just not showing that code to save space here.) Basically, when the user clicks the link the code below will check if the transaction is dirty and if so a popup dialog will show and give the user a chance to save any pending changes.
protected boolean isDirty() {
Boolean b;
if (bindings == null) {
return false;
b = ((Boolean)JSFUtils.resolveExpression("#{bindings.Commit.enabled}"));
// if there is no commit binding, the form is by definition not dirty
if (b == null) {
return false;
return b.booleanValue();
Here's the code in the jspx:
<! The important thing to note here is that this code is within the including/parent page's <form> tag. When i include this same code via the jsp:include it's inside the including/parent page <form> tag
as well -->
<tr:form>
<!-- this is the jsp code that in reality will be in a separate jsp that will be included via jsp:include in this page -->
<tr:panelHorizontalLayout halign="right" inlineStyle="margin-top:-5px;">
<tr:navigationPane hint="buttons" inlineStyle="width:120px; text-align:right;">
<tr:commandLink text="Home" useWindow="true"
actionListener="#{managedBeanName.returnButtonActionListener}"
returnListener="#{managedBeanName.returnButtonReturnListener}"
partialSubmit="true">
</tr:commandLink>
</tr:navigationPane>
</tr:panelHorizontalLayout>
<!-- this is the rest of the page content -->
<tr:commandButton action="someAction" text="My Button"/>
<!-- there are some bindings for a vo in here but for brevity i'm not showing those as they are not pertinent here. -->
</tr:form>
This setup works fine.
Now here's the problem... I now have a requirement that I add another link to the code that is to be included. This link needs to open a new browser window and navigate to another page within the
same application. So, I'm now wrapping the code that will be included in it's own <tr:form> tag so that I can set it's targetFrame="_blank" so that when the link within it is clicked a new browser window opens. Here's what that jsp code looks like now:
<! The important thing to note here is that the code that ultimately will be included into the parent jsp (but is shown here as actually being in the parent jsp for simplicity) is wrapped in it's own <tr:form>
So, I have now will have two <tr:form> tags within the page. They are NOT nested, so this is ok -->
<tr:form targetFrame="_blank">
<tr:panelHorizontalLayout halign="right" inlineStyle="margin-top:-5px;">
<tr:navigationPane hint="buttons" inlineStyle="width:120px; text-align:right;">
<tr:commandLink text="Home" useWindow="true"
actionListener="#{managedBeanName.returnButtonActionListener}"
returnListener="#{managedBeanName.returnButtonReturnListener}"
partialSubmit="true">
</tr:commandLink>
<!-- this is the new link i've added to the code that I need to open a new browser window when clicked -->
<tr:commandLink action="someaction" text="Open New Window"/>
</tr:navigationPane>
</tr:panelHorizontalLayout>
</tr:form>
<!-- this is the content of the rest of the parent jsp in it's own <tr:form> tag
<tr:form>
<tr:commandButton action="someAction" text="My Button"/>
<!-- there are some bindings for a vo in here but for brevity i'm not showing those as they are not pertinent here. -->
</tr:form>
Now when I run the app and click on the Home link (which is in the included jsp code), I'm getting the wrong answer from the isDirty() method above. I know the transaction is dirty, but the code says it's not. This for sure has to do with the fact that I now have two <tr:form> tags within the same .jspx, but I don't understand why. Maybe the isDirty() method is not working with the 'right' bindings object now that there are two <tr:form>tags in the same jsp?? Anyone have an idea as to why this doesn't work and/or how to fix for my requirement? Thanks.
Edited by: kcjim on May 13, 2010 1:50 PM

I wanted to update this thread with my findings. It seems that if there are two form tags in the same jsp, the bindings object that you can reference (as i have in the isDirty() method mentioned above will be for the form which actually gets submitted. Consider this jspx code:
<!-- the first form tag in this jsp has vo bindings contained within it, along with a command button which ultimately calls the isDirty() method to determine if the transaction is dirty -->
<af:form>
<af:panelHorizontal>
<af:inputText value="#{bindings.ApplicationId.inputValue}"
showRequired="true"
columns="20" label="#{res['application.label.text']}"
id="Application" binding="#{managedBeanName.application}">
<af:validator binding="#{bindings.ApplicationId.validator}"/>
</af:inputText>
</af:panelHorizontal>
<af:commandButton text="Submit" useWindow="true" partialSubmit="true"
actionListener="#{managedBeanName.returnButtonActionListener}"
returnListener="#{managedBeanName.returnButtonReturnListener}">
</af:commandButton>
</af:form>
<!-- the second form tag in this jsp has NO vo bindings contained within it, just a command button which ultimately calls the same isDirty() method to determine if the transaction is dirty -->
<af:form>
<af:commandButton text="Submit" useWindow="true" partialSubmit="true"
actionListener="#{managedBeanName.returnButtonActionListener}"
returnListener="#{managedBeanName.returnButtonReturnListener}">
</af:commandButton>
</af:form>
If the user makes a change to the input (application id) in the first form tag and uses the Submit button within that first form tag, isDirty will return the correct answer, which tells me the transaction is dirty. However, if the user changes the input (application id) in the first form tag and clicks the Submit button that is
within the second form tag, the call to isDirty() now gives me the wrong answer. It says transaction is not dirty but i know that it is because i've made a change. I understand why this doesn't work now, but I'm still looking for a good solution if anyone has any ideas. Thanks

Similar Messages

  • Simple calculator in html5 using web form elements

    Hello
    I would like to make an educational miniwebsite with my son who is getting interested in internet programming.
    I was wondering if html5 could be used to do simple math in html5 using the input of web form elements, such as radio button (for the choice of math operation: add/sub/mult/div) and two numbers in input fields.
    Then a submit equivalent would generate the output result, preferrably in a field still on the same page (without going to another page, as it is the case with submit).

    I think that you might be looking for something like this:
    http://www.developerdrive.com/2012/06/creating-a-web-page-calculator-using-the-html5-outpu t-element/

  • HT204266 How to purchase something from the app store using multiple forms of payment at one time?

    I am trying to purchase Final Cut Pro from the AppStore in multiple forms of payment. And I am just a bit confused as to how to accomplish this. I recieved an Apple Gift card of half the cost of the program, and I wanted to use that then pay the difference of the cost with a credit card. How do I set this up? I need to download the program tonight, so if someone in the community could get back to me ASAP, that would be greatly appreciated.

    Settings > General > Restrictions > Installing Apps > OFF
    Settings > General > Restrictions > In-App Purchases > OFF
    Settings > General > Restrictions > Require Password > Immediately

  • Question on multiple form elements with the same name !

    Hi All,
    I have a requirement in which more than one text field with the same name exists on a HTML page. We are using JSF framework (Oracle JDeveloper IDE and OC4J ) . I tried using a String array in my backing bean to handle these text boxes. When I hit the Submit, the action (method) is not invoked. But when I try with unique names everything works fine. Am I going wrong somewhere ?
    Thanks in Advance.

    You cannot have exactly the same name on objects.
    You will have to make an array of them to be able to
    o work with them properly--it will keep the names
    unique.I understand! But JSF creates its own names which are unique. The following JSF code
            <htm:tr>
                <htm:td>
                    <h:inputText value="#{Test.description}" id="description1"/>
                </htm:td>
            </htm:tr>
            <htm:tr>
                <htm:td>
                    <h:inputText value="#{Test.description}"  id="description2"/>
                </htm:td>
        </htm:tr>generates the following HTML code with unique names.
            <tr>
                <td>
                    <input id="Test:description1" type="text" name="Test:description1" />
                </td>
            </tr>
            <tr>
                <td>
                    <input id="Test:description2" type="text" name="Test:description2" />
                </td>
        </tr>
        <tr>Though I have a String Array in the backing bean, this doesn't work (The form does not submit to the method in the Backing Bean).
    Similar situation in Struts works absolutely fine.
    Any help would be appreciated !!!

  • Problem caching EPS files with multiple forms

    I'm attempting to use multiple forms for caching 1 or more EPS Files in a postscript document. I've followed Technical Note #5144 to the letter and use the "array of strings" method since I have to support Postscript level 2 printers. The arrays appear to be loaded with strings representing the EPS as expected.
    If I use only a single form with 1 EPS it works great. I can execute the form anywhere on the page as many times as I want. If I add a 2nd form to the page it causes strange behavior. The 2nd form is drawn regardless of if I execute it or not. Even if I comment out ALL execform calls it still shows the 2nd form (the page should be blank).
    I've boiled down the code to a faily simple example. I took out all the binary EPSF content for each form and instead have each form draw a circle.
    If working write this postscript should be drawing a smiley face using 4 circles.
    Should look something like this:
    0 0
    0
    <> <--- This should show like a stretched out circle.
    However, the mouth is actually drawn very small down in the lower left hand corner of the page. If you change the order of the forms definition then the mouth is drawn correctly but not the eyes and nose.
    The forms as named EPSForm-Circle and EPSForm-Circle2
    Here's the postscript
    %!PS-Adobe-3.0
    %%BoundingBox: 0 612 792 0
    %%LanguageLevel: 2
    %%Pages: 1
    %%BeginProlog
    %%BeginResource: procset forms_ops 1.0 0
    userdict /forms_ops 10 dict dup begin put
    /BeginEPSF { %def
    userdict begin % Push userdict on dict stack
    /b4_Inc_state save def % Save state for cleanup
    /dict_count countdictstack def % Count objects on dict stack
    /op_count count 1 sub def % Count objects on operand stack
    /showpage { } def % Redefine showpage, { } = null proc
    } bind def
    /EndEPSF { %def
    count op_count sub {pop} repeat % Clean up stacks
    countdictstack dict_count sub {end} repeat
    b4_Inc_state restore
    end % userdict
    } bind def
    /buffer 16000 string def
    /inputFile currentfile 0 (% $$EPS_EOD_Marker$$) /SubFileDecode filter def
    /readdata { % array readdata --
    1 { % put counter on stack
    % stack: array counter
    2 copy % stack: array counter array counter
    inputFile buffer readstring % read contents of currentfile into buffer
    % stack: array counter array counter string boolean
    4 1 roll % put boolean indicating EOF lower on stack
    16000 string copy % copy buffer string into new string
    % stack: array counter boolean array counter newstring
    put % put string into array
    not {exit} if % if EOF has been reached, exit loop.
    1 add % increment counter
    } loop
    % increment counter and place empty string in next position
    1 add 2 copy () put pop
    currentglobal true setglobal exch
    0 1 array put % create an array for counter in global VM,
    % so as not to be affected by save/restore calls in EPS file.
    % place as first element of string array.
    setglobal % restore previously set value
    } bind def
    currentdict readonly pop end
    %%EndResource
    %%EndProlog
    %%BeginSetup
    % set MaxFormItem to be equivalent to MaxFormCache
    << /MaxFormItem currentsystemparams /MaxFormCache get >> setuserparams
    % make forms procset available
    forms_ops begin
    userdict begin
    % setup 1st circle form resource
    %%BeginResource: form EPSForm-Circle
    /EPSForm-Circle
    10 dict begin
    /FormType 1 def
    /BBox [0 0 100 100] def
    /Matrix [1 0 0 1 0 0] def
    /EPSArray 3 array def
    /AcquisitionProc {
    EPSArray dup 0 get dup 0 get
    dup 3 1 roll
    1 add 0 exch put
    get
    } bind def
    /PaintProc {

    The postscript was cut off on 1st post. Here is the remainder:
    begin
    BeginEPSF
    EPSArray 0 get 0 1 put
    //AcquisitionProc 0 () /SubFileDecode filter
    cvx exec
    EndEPSF
    end
    } bind def
    currentdict end def % EPSForm-Circle
    EPSForm-Circle /EPSArray get
    readdata
    %%BeginDocument: (Circle.eps)
    50 50 3 0 360 arc closepath stroke
    %%EndDocument
    % $$EPS_EOD_Marker$$
    %%EndResource
    % setup 2nd circle form resource
    %%BeginResource: form EPSForm-Circle2
    /EPSForm-Circle2
    10 dict begin
    /FormType 1 def
    /BBox [0 0 100 100] def
    /Matrix [1 0 0 1 0 0] def
    /EPSArray 3 array def
    /AcquisitionProc {
    EPSArray dup 0 get dup 0 get
    dup 3 1 roll
    1 add 0 exch put
    get
    } bind def
    /PaintProc {
    begin
    BeginEPSF
    EPSArray 0 get 0 1 put
    //AcquisitionProc 0 () /SubFileDecode filter
    cvx exec
    EndEPSF
    end
    } bind def
    currentdict end def % EPSForm-Circle2
    EPSForm-Circle2 /EPSArray get
    readdata
    %%BeginDocument: (Circle2.eps)
    50 50 3 0 360 arc closepath stroke
    %%EndDocument
    % $$EPS_EOD_Marker$$
    %%EndResource
    %%EndSetup
    %%Page: 1 1
    %%BeginPageSetup
    /pgsave save def
    %%EndPageSetup
    % Draw left eyeball using Circle form
    gsave
    -350 100 translate
    10.0 10.0 scale
    EPSForm-Circle execform
    grestore
    % Draw right eyeball using Circle form
    gsave
    -100 100 translate
    10.0 10.0 scale
    EPSForm-Circle execform
    grestore
    % Draw nose using Circle form
    gsave
    -225 -500 translate
    10.0 20.0 scale
    EPSForm-Circle execform
    grestore
    % Draw mouth using Circle 2 form.
    gsave
    -720 -200 translate
    20.0 10.0 scale
    EPSForm-Circle2 execform
    grestore
    showpage
    /pgsave load restore
    %%PageTrailer
    end % userdict
    end % forms_ops
    %%EOF

  • Tables Form element

    Hi Experts,
    Is it possible to create Table using Table Form element - in which I need a repeating text row for every line items (row).
    I can create the same using a repeatable subform - therefore want to know whether the same is possible in Tables Form element using Table assistant.
    Regards,
    Rohit

    I have found an acceptable workaround, where I don't have to update the HTML form.
    Basically, don't use the $_POST superglobal. Instead, access the raw post data with file_get_contents("php://input"); and parse the name/value pairs in a couple steps with explode().
    This way our HTML form which has a couple submit buttons can submit the form to both the PL/SQL action procedure and a PHP script without getting too ugly.
    If you're coding an HTML form which only submits to a PHP script, best to live the constraint that PHP wants multiple value inputs to be named like a PHP array.

  • Multiple Root elements in the XSD Schema

    Hi Dear MDM gurus,
    I have manually created an XSD Schema and I can import it in the Syndicator without any problem.
    I have 3 different Root elements in the schema that I want to use and map to the corresponding table of this type.
    In my Syndicator screen in the Rood dropdown box I can see all three of the Root elements that I have in the schema.
    If I select the first Root element - everything goes fine and I can do my mapping, save the map, etc.
    The problem is that if I select the second or third root element to do the mapping for them, the syndicator does not show the structure in the Item Mapping after that.
    I tried moving the Second root element of the schema and make it first and it works with it, but then the other two are not appearing and I have the same issue.
    Does MDM support only one Root element in the Schema? If that's the case, why does it show all three of them in the dropdown?
    Here is an example:
    1. If I have them in this order in my XSD
              <xs:element name="ManufacturerGroupNumber" type="ManufacturerGroupNumbers"/>
              <xs:element name="SupplierGroupNumber" type="SupplierGroupNumbers"/>
              <xs:element name="SupplierLocationNumber" type="Suppliers"/>
    I can only see the structure when I select the "ManufacturerGroupNumber".
    2. If I have them in the Schema in this order
              <xs:element name="SupplierLocationNumber" type="Suppliers"/>
              <xs:element name="SupplierGroupNumber" type="SupplierGroupNumbers"/>
              <xs:element name="ManufacturerGroupNumber" type="ManufacturerGroupNumbers"/>
    I can only see the structure when I select the first one again "SupplierLocationNumber" and I can only do the mapping for it.
    Any help would be appreciated.
    Thanks in advance,
    Boris

    Hello Satish,
    Thank you for your quick response.
    I read some of the architectural approaches and XML specifications and depending on your design, you may have only one Root element or in rare cases Several Root elements. In my case, I was advised by our PI experts to use Multiple Root elements and this gives me the following:
    Advantages:
    u2022 The reusability of the schema definition is available for all types and all elements defined in the global namespace.
    Disadvantages:
    u2022 Since there are many global elements, there are many valid XML documents.
    I initially had the schema as you suggested, but they didn't like it in PI and advised me to change it with having multiple roots.
    What I'm trying to figure out is if there is a bug in MDM that does not allow to use the rest of the root elements, so I can open an OSS message.
    Thanks,
    Boris

  • Hiding toolbars in Interactive form element

    Hi all,
    I am using interactive form element to embed a purely readonly pdf (but content is dynamic) since Iframes is deprecated (any other way?).
    I wish to hide the toolbars, options of  thumbnails etc. I added the code below to my view controller. However, it does not seem to work. All the toolbars are still showing. Did i do something wrong?
    IWDPDFDocumentInteractiveFormHandler iFormHandler =
    WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(),
                 "InteractiveForm");
    IWDPDFDocumentAppearance appearance =
          iFormHandler.getDocumentContext().getAppearance();
    appearance.hideMenuBar(true); 
    appearance.hideToolBars(true); 
    appearance.hideWindowControl(true); 
    TIA

    Hi,
    As the error suggests that you do not have any certificate configured in your key store which is required to authenticate the client to the ADS. You would require to install a client certificate on your Web Dynpro/Portal server that will be used to authenticate the Web Service call to ADS.
    But the question is whether you need "Https" for a server to server communication (from your portal server to ADS server) ? Normally, these two servers reside in the LAN. And i suppose you are not using any of the secured functionalities of interactive form (for example, digital signature, certification etc.). I assume that you need "https" call from browser to the portal server and then from portal server to the ADS should be on http. Please confirm on that. If that is the case, then you can follow the section below to change the "protocolSchemeForADSCall" to "http" always. This is what you would need to do in the Visual Administrator where your portal/web dynpro is installed:
    In Visual Administrator. Go to ->
    Server -> Services -> Configuration Adapter -> webdynpro -> sap.com ->
    tcwddispwda -> Propertysheet default
    Then goto property sap.protocolSchemeForADSCall
    This property is available after you apply SAP note 849730.
    Possible values are:
    - request: same protocal scheme than the request to Web Dynpro has
    - https: always use https
    - http: always use http
    SET the value as http. This will ensure that web Dynpro to ADS communication always happens on http, rather than on https.
    Should you need to install SSL based communication between the two, you would need to follow the note:
    838111 > How to configure SSL for Adobe Document Services
    Best Regards,
    Krish

  • Hiding toolbars in Interactive form element thru code

    Hi all,
    I am using interactive form element to embed a purely readonly pdf (but content is dynamic) since Iframes is deprecated (any other way?).
    I wish to hide the toolbars, options of thumbnails etc. I added the code below to my view controller. However, it does not seem to work. All the toolbars are still showing. Did i do something wrong?
    IWDPDFDocumentInteractiveFormHandler iFormHandler =
    WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(),
    "InteractiveForm");
    IWDPDFDocumentAppearance appearance =
    iFormHandler.getDocumentContext().getAppearance();
    appearance.hideMenuBar(true);
    appearance.hideToolBars(true);
    appearance.hideWindowControl(true);
    Also, the formating (fonts etc) of the pdf in the portal seems to be different from that seen in R/3 form.
    Anyone?

    Hi,
    As the error suggests that you do not have any certificate configured in your key store which is required to authenticate the client to the ADS. You would require to install a client certificate on your Web Dynpro/Portal server that will be used to authenticate the Web Service call to ADS.
    But the question is whether you need "Https" for a server to server communication (from your portal server to ADS server) ? Normally, these two servers reside in the LAN. And i suppose you are not using any of the secured functionalities of interactive form (for example, digital signature, certification etc.). I assume that you need "https" call from browser to the portal server and then from portal server to the ADS should be on http. Please confirm on that. If that is the case, then you can follow the section below to change the "protocolSchemeForADSCall" to "http" always. This is what you would need to do in the Visual Administrator where your portal/web dynpro is installed:
    In Visual Administrator. Go to ->
    Server -> Services -> Configuration Adapter -> webdynpro -> sap.com ->
    tcwddispwda -> Propertysheet default
    Then goto property sap.protocolSchemeForADSCall
    This property is available after you apply SAP note 849730.
    Possible values are:
    - request: same protocal scheme than the request to Web Dynpro has
    - https: always use https
    - http: always use http
    SET the value as http. This will ensure that web Dynpro to ADS communication always happens on http, rather than on https.
    Should you need to install SSL based communication between the two, you would need to follow the note:
    838111 > How to configure SSL for Adobe Document Services
    Best Regards,
    Krish

  • Multiple forms of payment

    Hi all,
    I was wondering if you can have mulitple forms of payment in a single transaction when making a purchase at in store or online? 
    My case is that I have 2 reward certificats avaible to use as well as 2 bestbuy gifts cards that were given to me. So will I be able to use both certificates and giftcards and then pay the remaining blance with my credit card? 
    Also, is there a limit to how many you can use of the same payment methods? 
    Thanks in advance!

    Hello JJ619-
    Welcome back! I understand you are trying to make a purchasing using multiple forms of payment including two My Best Buy certificates and two Best Buy gift cards.
    When placing an order on BestBuy.com, it accepts a maximum of five (5) gift cards as payment per order. Our retail stores are generally able to accept more gift cards as payment per transaction, for additional information you'll want to refer to our Gift Card FAQ.
    If you have two certificates, you should be able to visit your MyBestBuy.com account and merge them into one.  Please make sure that you present your certificates first to the representative. If you are ordering online and your account linked to your BestBuy.com account, the system will detect your pending available certificates.
    For more information on payment methods, feel free to check out payment method.
    Have a great day,
    Karina|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Multiple form inside one jsp file

    I have to use nested jsp forms in my latest project
    ex:-
    <html>
    <head>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="ex.htm">
    <form id="form2" name="form2" method="post" action="ex2.htm">
    </form>
    <form id="form3" name="form3" method="post" action="ex3.htm">
    </form>
    </form>
    </body>
    </html>
    Can some one tell me, is there a way to submit the each forms seperatly?
    -----------------------------------------------------------------More on problem-----------------------------------------------------------------
    I am developing e-savings application.
    When the customer enter the accountno i need to display details - for this i use "form1"
    When the customer enter the withdrawal amount i need to display the balance - for this i use "form2"
    Finally i use "form3" to submit the data.
    I have done all the things inside one jsp page.
    I think you are now clear in my problem and hope best solution....
    Thank you........

    According to the HTML specification, you may not nest forms.
    You can use multiple forms as long as you don´t nest them.

  • Multiple forms in a page

    Hi
    I am writing a custom component which would behave similar way to showDetail tag in adf, but we need it as header and customized text so we went for a custom component, in showDetail component, ADF uses PPR to render only the section of the page, but if i want to achieve the same way, i am using multiple forms in the page and trying to submit each selected form, but the issue when a submit a form, it's not invoking the encodeBegin method, i am not sure whether it would execute the lifecycle of ADF.
    How can we handle multiple forms in developing a custom component.
    Thanks a lot...

    Thanks for the reply......
    Does this mean that simple forms will not work? Do I need to move to iframe?
    Even if use iframe, i have to use form for submit, as i cann't submit iframe, even then i would face the problem i earlier mentioned, like my encodeBegin(phase of lifecycle) is not invoked..... Plz guide me if you have any other alternative to this.....
    Thanks

  • Spry Elements vs Regular Form Elements

    What is the difference between using Spry Validation form elements as opposed to just using regular form elements?
    Which do you prefer and why?
    Thanks

    What is the difference between using Spry Validation form elements as opposed to just using regular form elements?
    Regular form elements are passive elements that wait for information to be entered to subsequently be processed by another mechanism.
    SpryValidation form elements are the same as above except that they have an active validation module attached. There are standard validation rules that can be used (like e-mail address) or you can supply custom validations.
    Because Spry is a JavaScript library, the Spry widgets will only work with JavaScript enabled. The advantage of JavaScript is that it is processed by the browser (client side) and that, in our case, validation is instantaneous. When JS is turned off or the browser is not JS capable, there is no validation. This means that if you require serious validation, you must, in addition/in lieu of, have server side validation.
    Which do you prefer and why?
    I use both client side (Spry) and server side (PHP) validation, the latter to make sure that if Spry fails there is always the safe and trusted method of validation.
    Why Spry? Spry widgets allow for a better user experience.
    I hope this helps.
    Ben

  • Interactive Form Element 7.1:  How can I set the default file name?

    I am using Interactive Form Element with 7.1 to display a pdf.  When one clicks the save button in Adobe's toolbar, the dialog defaults the file name to "F.pdf".  Is there a way to default this to a different value?

    Making customisation from the default profile is generally considered poor practice and quite often doesn't work out as planned. (If you're interested in some more information on this, [http://mockbox.net/windows-7/227-customise-windows-7-default-profile.html see here] see here)
    This article should help you with developing and deploying your customised Firefox 4 installation (without touching the Windows 7 default user profile):
    http://mockbox.net/configmgr-sccm/174-install-and-configure-firefox-silently.html

  • H:inputtext not working with multiple forms in JSF2.2

    h:inputText is not working in the latest JSF2.2 with multiple forms. I have 2 forms
    form1 have: one command button and one input text
    form2 has: one input text and one output label
    on click of command button in form1, i am rendering the form2(both outputlabel and input text).
    but only output label is rendered properly with correct values (corresponding getter method gets called and value is displaying) but the input text is not calling the corresponding getter method hence showing null.
    Note: we noticed this issue only if we use multiple forms, within single form its working fine. also it worked fine in JSF2.0
    Version used: JSF api - 2.2 (com.sun.faces) JSF impl - 2.2 (com.sun.faces)
    let me know if anyone have solution to handle this.
    the forms are not nested and both the beans are in View scope.  
    <h:form id="form1" prependId="false">
    <a4j:commandLink id="actionEdit" title="Click" action="#{bean.action}" 
    render="paymentInstructionDetail" styleClass="iconLarge edit" />
    </h:form>
    <h:form id="form2" prependId="false">
      <a4j:outputPanel ajaxRendered="true" id="paymentInstructionDetail">
      <h:inputText value="#{bean1.amount}" id="sample"/>
      <h:outputLabel value="#{bean1.amount}" id="sampleLabel"/>
     </a4j:outputPanel>
    </h:form>

    Your link doesn't work. Do you mind reporting it?

Maybe you are looking for