Apex textarea validation

hi :
i have one textarea .in this textare i am typing only sql-select statement.like any sql select statement .when i am clicking the query button .it is showing report related what we typed the query..what is my requirement .in this text area allow only the select statement ..do not allow any other DML AND DDL statement.for this i want to do validation..pls give me solutions.....

Hi Anbarasan,
This might be not a proper solution but just make a try.
create a function
substring the first word
if it is Select return true rest return false.
call the function in the query button .
bye
Srikavi

Similar Messages

  • Textarea validation with max only

    How can I set up my textarea validation so that there is no
    minimum but the IS a maximum number of characters?
    I tried setting min to zero bas below but it doesn't work.
    It gives an error unless I try ONE character.
    var theDescription = new
    Spry.Widget.ValidationTextarea("theDescription",
    {useCharacterMasking:true, minChars:0, maxChars:180,
    counterType:"chars_count", counterId:"Countvalidta1",
    validateOn:["change"]});

    Hi Kate,
    As Dragos suggested you should add the isRequired: false.
    This will tell to the Validation Textarea to simply ignore the fact
    the textarea value is empty.
    Then if you completely remove the the minChars then you
    should obtain the behavior you expected. If any numerical value is
    passed through the minChars then the length of textarea value is
    validated against that value. Instead if you remove the option the
    Validation Widget will simply stop make the check.
    Into the documentation you have detailed examples for the
    different options that could be used for the textarea widget:
    http://labs.adobe.com/technologies/spry/articles/textarea_overview/
    Regards,
    Cristian MARIN

  • Spry Textarea validation extension to prevent spam

    I am using the fairly limited features of the spry framework in Dreamweaver to validate forms.
    When I get to the textarea, validation is limited to:
    required
    min char, char count
    AND NOT MUCH MORE!
    I would like to continue to use the spry framework since it is pervasive inside DW CS4 and seems useful - BUT I need to be able to add functionality.
    Specificly I would like to check the textarea for content matching a regx string. To determin if the form is getting hit by a spam bot.
    I can do this in PHP, like so;
    <?PHP
    // Spam Detection code block
    // The \b in the pattern indicates a word boundary, so only the distinct
    //word "web" is matched, and not a word partial like "webbing" or "cobweb" */
    // Check for html and img tags in string
    function check($comment) {
      // if(ereg('(href=\b|http\b|url=http\b|<a href|<IMG=|<img|img=|scr=|www\b)@i', $comment)) {
      if (preg_match('(href=\b|http\b|url\b|http\b|<a href|<IMG=|<img|img\b|scr\b|www\b)i', "$comment")) {
          // comment looks dirty, lets put up a bogus thankyou.
          echo("<pre> 
         </pre><center> Thanks <p>We have received your comment and hope you enjoyed visiting our site. <p>To continue browsing, use the links above.</center>");
    exit();
    else{ // comment is clean of URLs
    // End of Spam Detection code block 
    ?>
    Is there a way to integrate this code (or similar javascipt) into the Spry library, so I can do this in DW?
    Anti spam technologies are a very important part of forms these days.
    I hope other people value this request and pipe up about it.
    Thanks
    -Daniel Hoviss

    Never mind. After doing some experimenting, it turns out it's
    something in my company's template that is conflicting with
    something.
    Now I just have to figure out what it is.

  • Apex textarea inside jquery accordion

    hello,
    can anyone please help me how to include a apex textarea inside jquery accordion.

    i used jquery accordion i just copy n paste this code into my apex application.
    <!DOCTYPE html>
    <html>
    <head>
    <link type="text/css" href="http://jqueryui.com/latest/themes/base/ui.all.css" rel="stylesheet" />
    <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
    <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.core.js"></script>
    <script type="text/javascript" src="http://jqueryui.com/latest/ui/ui.accordion.js"></script>
    <script type="text/javascript">
    $(document).ready(function(){
    $("#accordion").accordion();
    </script>
    </head>
    <body style="font-size:62.5%;">
    <div id="accordion">
         <h3>Section 1</h3>
         <div>
              <p>
              Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer
              ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit
              amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut
              odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
              </p>
         </div>
         <h3>Section 2</h3>
         <div>
              <p>
              Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet
              purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor
              velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In
              suscipit faucibus urna.
              </p>
         </div>
         <h3>Section 3</h3>
         <div>
              <p>
              Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis.
              Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero
              ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis
              lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui.
              </p>
              <ul>
                   <li>List item one</li>
                   <li>List item two</li>
                   <li>List item three</li>
              </ul>
         </div>
         <h3>Section 4</h3>
         <div>
              <p>
              Cras dictum. Pellentesque habitant morbi tristique senectus et netus
              et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in
              faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia
              mauris vel est.
              </p>
              <p>
              Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus.
              Class aptent taciti sociosqu ad litora torquent per conubia nostra, per
              inceptos himenaeos.
              </p>
         </div>
    </div>
    </body>
    </html>
    i am getting the accordion but i need to put textarea areas in each section.when i create a text area i m not able to see any region in accordion.

  • Pasting text from Word into Apex Textarea

    Hi Folks,
    I have a client that wanted to transform their Word forms (something like customer survey) into Apex screens.. every thing went great but they noticed that when they try to copy text from the Word forms into Apex textareas some characters will show as an up-side-down question mark. Some characters are the apostrophe , consecutive dots (...) and so on. I don't know what is the best way to handle that, I am thinking about writing a function that escapes those characters for a passed text and add up decoding to it every time users encounter a news bad character..but maybe somebody has a better idea...
    Thanks,
    Sam

    We had the same problem. If you can't update the character set, which is usually a big deal, then you can always use javascript to change the textfield or text area before the user clicks save. We have onchange events on all of our items to catch when an item saves and sets a flag to do an autosave when the click somewhere else in the application. You could use a similar function to translate the characters on the browser before they hit the database.
    If you're going to be searching on this data, you probably don't want to store the special characters anyway. They will have to type in the characters to search and some of the MS characters can be misleading and cause them to not find what they're looking for.
    The array configured_values is a string array where the first index is the bad character and the second index is the value to replace it with
    function madeChange(e)
    { document.getElementById('P0_MADE_CHANGE').value='TRUE';
         if(e)
              var string = e.value;
           //If it is a text-area or a text-field
           if(isNaN(string))
           {  var aux;
              for(i=0; i<(configured_values.length)-2;i=i+2)
              aux= eval('/' + String.fromCharCode(configured_values) + '/' + 'g');
    string=string.replace(aux,configured_values[i+1]);
         e.value=string;
    Edited by: YodaHart on Jul 21, 2010 10:18 PM

  • TextArea Validation Widget don't function with Prototype

    I have seen that TextAreaValidationWidget don't function
    properly if is loaded also the Prototype library. To verify, I have
    also simply insert this code in the HEAD section of the
    FormsValidation Demo included in the framework:
    quote:
    <script type='text/javascript'
    src='prototype.js'></script>
    By adding this file, the validation of text field is running
    properly but the validation of textarea doesn't. The Firefox
    console of errors report:
    quote:
    Invalid Quantifier +);} catch (e) {if!=$continue) {throw
    e;}}});} catch(e) {if(e!=$break){thow e; }} return this;}\b
    in SpryValidationTextarea.js line 785
    Do you know how to solve this?
    I use Spry 1.4, prototype 1.5.0 (because I use also lightbox
    2.0)

    Hi,
    Based on a previous report we fixed this bug in the Spry 1.5
    preview release. To fix this bug you should edit the
    SpryValidationTextarea.js. Search for the:
    Spry.Widget.ValidationTextarea.prototype.switchClassName =
    function (className){
    and inside you should see around line 763 the following code:
    for (var k in classes){
    if (classes[k] != className){
    this.removeClassName(classes[k]);
    This code should change to the following:
    for (var k = 0; k < classes.length; k++){
    if (classes[k] != className){
    this.removeClassName(classes[k]);
    Please let me know about your results.
    Regards,
    Cristian MARIN

  • APEX - Textarea with HTML Editor.

    All,
    I am working with Application Express Version 2.2.1.00.04
    I have the following problem:
    I have an item "Textarea with HTML Editor" which I am inserting
    information CLOB in a table.
    This data is consulted by a Region Report of APEX which has a Link that
    will be a popup. Inside the report, I use wwv_flow_utilities.URLENCODE
    (here the column is a CLOB) where it gives me the error "ORA-06502:
    PL/SQL: numeric or value error: character string buffer too small".
    I started to investigate which might be the problem and saw that the
    item "Textarea with HTML Editor" usually inserts special characters.
    I show an example of the special character that inserts and which is the
    error.
    SELECT wwv_flow_utilities.URLENCODE(' ')
    FROM dual;
    This character, which is like a space in target, is bringing problems to
    be able to execute the report.
    A provisional solution to solve this problem is to put a REPLACE into
    the Query.
    Has anyone this problem.???? Do you know why this character can be
    inserted??????
    Thx..

    Thanks Dimitri!
    I'm trying to find this place in the application but I don't have enough privileges. Here, we are working with Application Express 2.2.1 and we have to upgrade to 3.1.1.
    In order to improve the behaviour of HTML Editor Standard, I think we should integrate FCK to our application, do you know about any step by step explanation to achieve this? Because I was searching this information in the forums, but I can't find anything. Please, any information you can share with me will be very helpful
    Thanks again!

  • APEX data validation

    Hi everyone !
    I'm new to APEX and i need to make a data loading page for my app. My app should upload data into a table, and I have to create a data validation. In every table that I upload, I have one column named CATEG. So, if only one row in the CATEG column didn't have the value "B2B" then the table will not pass the validation and it should be generated an error message. Otherwise, if only one row from the CATEG column have the value "B2B", then the data will be loaded without any errors. How to do this ? Please help !!! I tried something like this:
    -PL/SQL function returning boolean : BEGIN
                                                          IF :CATEG = 'B2B' THEN
                                                           RETURN TRUE;
                                                           ELSE
                                                           RETURN FALSE;
                                                           END IF;
                                                           END; 
    and then i have write an error message in the "error message" box
    or
    -PL/SQL function returning error text : BEGIN
                                                           IF :CATEG != 'B2B' THEN
                                                           RETURN 'ERROR_MESSAGE_1';
                                                           ELSE
                                                           RETURN NULL;
                                                           END IF;
                                                           END;
    None of these two didn't work. Could you please help me and tell me what is wrong? I need desperate help!
    Bogdan

    Do you mean
    Maintain session state
    Per session
    Per User
    Source value or expression
    Post Calculation Computation

  • APEX Form Validation

    New to APEX and PL/SQL. Am attempting to create a Page Validation to determine if a value provided by a user on a data entry form is valid. In this case I am attempting to evaluate a date field to determine if the year portion is 2006 or if it is not. I have spent hours on this and tried many variations and combinations of APEX declarations and PL/SQL programming. Have looked through both Linnemeyer & Brown's book and the Cunningham & Crotty book. Nothing I have attempted works and nothing in these two books has helped. See the examples below. In summary, can someone explain how to create an APEX validation that investigates a date data entry field to determine if the YYYY portion is a valid value. I imagine the solution is simple, but it has eluded me.
    For the Validation Type, I chose to use "Function Returning Boolean" since this worked on another validation I created. The Validation Expression 1 is :
    IF to_char(:P4_FEE_EFF_DT,'YYYY') = '2006'
    THEN
    RETURN true ;
    ELSE
    RETURN false ;
    END IF ;
    1. When I click the CREATE button on the data entry form, I receive the following error message:
    ORA-06550: line 1, column 47: PLS-00307: too many declarations of 'TO_CHAR' match this call ORA-06550: line 1, column 44: PL/SQL: Statement ignored
    Error ERR-1021 Unable to run "function body returning boolean" validation.
    2. I have tried this same Validation Expression, but made the Validation Type equal to PL/SQL Expression. It produced the error message below when I clicked the Create button.
    ORA-06550: line 1, column 34: PLS-00103: Encountered the symbol "IF" when expecting one of the following: ( ) - + case mod new not null others table avg count current exists max min prior sql stddev sum variance execute multiset the both leading trailing forall merge year month DAY_ hour minute second timezone_hour timezone_minute timezone_region timezone_abbr time timestamp interval date Error ERR-1025 Error processing PLSQL expression. IF to_char(:P4_FEE_EFF_DT,'YYYY') = '2006' THEN RETURN true ; ELSE RETURN false ; END IF ;
    3. I have tried this same Validation Expression, but made the Validation Type equal to PL/SQL Error. When I click the Create button, this validation does not produce an APEX error message, but every time I click Create it displays the Notification Box with error message text for this validation. In this case it appears to not be running the to_char function.

    Andrew,
    I tried your suggestion. Below is the actual Validation Expression 1 based on what you suggested. The Type value I chose from the APEX pick list is "Function Returning Error Text".
    IF TO_CHAR(TO_DATE(:P4_FEE_EFF_DT),'RRRR') != '2006' THEN
    RETURN 'Invalid year';
    ELSE
    RETURN NULL;
    END IF;
    1. Below is a few lines of output from the Debug after using your suggestion:
    0.07: Perform validations:
    0.07: ...Item Not Null or zero Validation: P4_STN_CD
    0.07: ...Item Not Null or zero Validation: P4_GRIMMS_ACCT_NBR
    0.08: ...Item Not Null Validation: P4_RVNU_SHARING_FEE
    0.08: ...Item Not Null Validation: P4_LAST_UPD_DT
    0.08: ...Item Not Null Validation: P4_LAST_UPD_USER_ID
    0.08: ...PL/SQL "function body returning boolean" Validation: IF to_char(:P4_FEE_EFF_DT) < to_char(:P4_FEE_TERM_DT) THEN RETURN true ; ELSE RETURN false ; END IF ;
    0.09: ...PL/SQL "function body returning error text" Validation: IF TO_CHAR(TO_DATE(:P4_FEE_EFF_DT),'RRRR') != '2006' THEN RETURN 'Invalid year'; ELSE RETURN NULL; END IF;
    0.11: Show ERROR page...
    2. Below is the error message displayed by APEX:
    ORA-01843: not a valid month
    Error ERR-1024 Unable to run "function body returning text" validation.
    3. Below is the Session list for the P4_FEE_EFF_DT field being validated. The 10/19/2006 value is what I clicked on the Calendar date picker icon.
    108 4 P4_FEE_EFF_DT Date Picker (MM/DD/YYYY) 10/19/2006 U
    SUMMARY
    What is odd about all this is that if I copy and paste the TO_CHAR(TO_DATE) function from the validation into SQL, and remove the :P4_ from the field name, the SQL query runs and works. Why would it perform in an SQL statement but not in APEX?
    Notice that the error message displayed by APEX is "not a valid month". Why is APEX thinking the value being examined is a month? The 'RRRR' format mask is a year designation, not a month format mask.
    So the mystery deepens. Sorry I did not reply yesterday. I was out of the office for a business meeting all afternoon and could not get back to this until now.
    Any further ideas or suggestions by anyone?
    Message was edited by:
    user537402

  • Regular expression validates in DB but not with a apex regexp validation?

    Hi all,
    sorry if I overlooked a similar post:
    I have a page with a form and item containing this email address [email protected] that item I've made a validation of type regular expression.
    I've got my item in
    Validation expression 1 P420_EMAIL and in
    Validation expression 2 '^[a-zA-Z0-9\_\.\-]+@[a-zA-Z0-9\_\.\-]+\.[a-zA-Z]{2,4}$'If I do
    select '[email protected]'
    from    dual
    where   regexp_like('[email protected]' , '^[a-zA-Z0-9\_\.\-]+@[a-zA-Z0-9\_\.\-]+\.[a-zA-Z]{2,4}$') on the DB this returns my email address as expected.
    If I submit my form with that same email address I get my error message from my validation.
    What's the difference I'm missing between the Apex way and the DB way of validating with this regular expression?
    Thanks a lot!
    Kind regards,
    Diana

    why not rewrite the validation to the type PL/SQL expression (function returning boolean) and put this in the expression1:
    regexp_like(:P420_EMAIL , '^[a-zA-Z0-9\_\.\-]+@[a-zA-Z0-9\_\.\-]+\.[a-zA-Z]{2,4}$')
    then you're absolutely sure you are doing the right validation. If that doesn't work, try displaying the result of the validation on screen to see what goes wrong.

  • Apex pre-validation of database relational constraints

    I have created an apex form to maintain a code table with insert, update, and delete. The code table is pointed to by a number of foreign keys. As the application grows, other teams may reference this code table with even more foreign keys long after the page has been written.
    Whenever I delete a record that is referenced by a foreign key, I get an error from the database as you would expect.
    The error displays to the good old trusty single error page and mentions table names, oracle error codes, constraint names and all the stuff that us programmers like to see.
    I do not want the user to see any of this.
    How can I test for a constraint violation, gracefully format the error, and display it back to the user?
    I would like to create a page level validation that tests for a database level constraint violation without sending the user to the single error page. Is this possible without checking every single dependent table manually?
    Thank you,
    Jerry.

    I would like to create a page level validation that tests for a database level constraint violation
    Well, you could create a page level validation of type "PL/SQL function body returning error text" where you would duplicate the DML action (update or delete) that is going to take place on the record, trap the error as usual in a WHEN OTHERS exception block and return a user-friendly error message. Since the validation fails, the real DML process will not execute and so users won't see the "ugly" error message.

  • Spry textarea validation?

    I have a form with a Spry textarea that needs to validate
    character count. IE6 is not giving the "Maximum characters
    exceeded" message (although it does work with a textfield).
    Works like a charm in other browsers. Anyone have a
    clue?

    Never mind. After doing some experimenting, it turns out it's
    something in my company's template that is conflicting with
    something.
    Now I just have to figure out what it is.

  • How to how to implement apex-live-validation beginner step by step

    http://apex.oracle.com/pls/apex/f?p=59381:100
    I am trying to use the jquery plugin above. By it doesn't have a clear instruction on how to do it. I am using version apex version 4.0.
    I use looking around the net and some other beginners like me are having this issue. If someone can provide me the answer. It will not only benefit me but alot of other people too.
    Thank you very much.

    apex.oracle.com credentials dont work
    here is the process
    1. upload jquery.alv.js and style.alv.css classes in your application and associate them with either workspace or application.
    2. use substitution strings like #WORKSPACE_IMAGES# or #APP_IMAGES# to import the files. See https://forums.oracle.com/message/9294060#9294060 for example.Note that this use of <script src= etc should be in the header part of header and footer section of your page
    3. similarly import your css file as well. Example is <link rel="stylesheet" href="#APP_IMAGES#sample2.css" type="text/css">
    4. now use the methods defined in these files in your apex regions. examples are at http://apex.oracle.com/pls/apex/f?p=59381:20:0::NO:::
    Regards,
    Vishal
    Oracle APEX 4.2 Reporting | Packt Publishing
    Vishal's blog

  • Pasting a screen shot into an APEX textarea

    Greetings,
    Is it possible to paste a screen shot into APEX? If so, how?
    Regards,
    Bill Chadbourne

    Hi Bill,
    yes it is possible with the FCK Editor.
    Here is a link which describes how to do it: http://www.oracle.com/global/de/community/tipps/images-fckeditor/index.html
    It is unfortunately in German but it describes your problem perfectly.
    Regards,
    Tobias
    http://apex-at-work.blogspot.com/

  • Why i can't access apex on the unix server.

    hi
    I have created an Apex successfully, and
    SQL> SELECT STATUS FROM DBA_REGISTRY WHERE COMP_ID = 'APEX';
    STATUS
    VALID
    I can connect to http://192.168.3.97:7780/ to see the 'Oracle HTTP Server - Welcome ' page,
    however I can't connect http://192.168.3.97:7780/pls/apex/apex_admin, it just show:
    The webpage cannot be found
    HTTP 404
    Most likely causes:
    There might be a typing error in the address.
    If you clicked on a link, it may be out of date.
    And i use HTTP server + mod_plsql method to create Apex.
    Can someone help me and give me a little bit enlighten?
    Thank in advance!

    Apache error logs:
    [Fri Dec 12 21:26:58 2008] [error] [client 192.168.3.46] [ecid: 1229088418:127.0.0.1:12811:0:125,0] File does not exist: /u01/app/oracle/product/10.2.0/companion/Apache/Apache/htdocs/pls/apex/apex_admin
    [Fri Dec 12 21:59:08 2008] [error] [client 192.168.3.46] [ecid: 1229090348:127.0.0.1:12458:0:126,0] File does not exist: /u01/app/oracle/product/10.2.0/companion/Apache/Apache/htdocs/pls/apex/apex_admin
    [Fri Dec 12 21:59:32 2008] [error] [client 192.168.3.46] [ecid: 1229090372:127.0.0.1:12459:0:129,0] File does not exist: /u01/app/oracle/product/10.2.0/companion/Apache/Apache/htdocs/pls/apex/apex_admin
    access log:
    192.168.3.46 - - [12/Dec/2008:21:58:47 +0800] "GET /ohs_images/bisspace.gif HTTP/1.1" 304 -
    192.168.3.46 - - [12/Dec/2008:21:58:47 +0800] "GET /ohs_images/art3.gif HTTP/1.1" 304 -
    192.168.3.46 - - [12/Dec/2008:21:58:47 +0800] "GET /Tab_files/upperbox.gif HTTP/1.1" 304 -
    192.168.3.46 - - [12/Dec/2008:21:58:47 +0800] "GET /Tab_files/asybase.gif HTTP/1.1" 304 -
    192.168.3.46 - - [12/Dec/2008:21:58:47 +0800] "GET /ohs_images/tree_document.gif HTTP/1.1" 304 -
    192.168.3.46 - - [12/Dec/2008:21:58:47 +0800] "GET /Tab_files/lowerbox.gif HTTP/1.1" 304 -
    192.168.3.46 - - [12/Dec/2008:21:58:47 +0800] "GET /ohs_images/relatedapps_cctitle.gif HTTP/1.1" 304 -
    192.168.3.46 - - [12/Dec/2008:21:58:47 +0800] "GET /ohs_images/slieghright.gif HTTP/1.1" 304 -
    192.168.3.46 - - [12/Dec/2008:21:59:08 +0800] "GET /pls/apex/apex_admin HTTP/1.1" 404 351
    192.168.3.46 - - [12/Dec/2008:21:59:32 +0800] "GET /pls/apex/apex_admin HTTP/1.1" 404 351
    Edited by: PPMonkey on Dec 12, 2008 6:13 AM

Maybe you are looking for

  • We are not able to execute below procedure, plz help me ASAP.

    Dear All I am created one procedure with 4 parameter 1 is Ref Cusrsor rest of 3 are Varchar,But we are not able to execute below procedure, plz help me ASAP. CREATE OR REPLACE PROCEDURE GETCHART(RPT_CURSOR OUT RPT_PACKAGE.RPT_RESULTS, V_VITALCHARTING

  • How to connect oracle database using DB connect in SAP BW

    hi all, I have been provided with following parameters Environment DB Server    SID Port DEV xyz.hou.abc.no   U246M 10006      ---> ABC I went in DBCO to create a new database connection DB Connection - ABC_NEW DBMS - ORA User Name - User Name DB pas

  • Embedded flash player is not working... Unable to play the streaming videos... Browser is hanging many times!!

    Hi, Pls help me to fix an issue with my playbook browser. The embedded flash player is not working... Unable to play the streaming videos... Browser is hanging many times. Restart done, cleared history etc.. Still doesn't work. Any help would be appr

  • I have a unique problem

    My daughter gave me her old ipad and had the name switched. I live in France and don't speak the language. I've tried to buy audio books and to make things easier my daughter bought an itunes gift card in Euro's but when I put the # in it doesn't wor

  • Removing listeners?

    Hi team, Is it always best practice to remove every listener that you create in a project? I thought I had this worked out but all of a sudden I am getting errors by trying to use the removed from stage listener. So there are buttons on the stage and