How to clear the text < tr:inputText component when you click on

Hello

I have a component inputText in my page with the default "search for" and when I click on it to enter something, it should be cleared.

Please suggest me a way to do this. That am using components of tr I can't use clientListener for that I guess.

Help, please.

Thank you
Hari

You can use trh:script
http://MyFaces.Apache.org/Trinidad/Trinidad-API/tagdoc/trh_script.html

Tags: Java

Similar Questions

  • How to clear the cache and page reset when you click on tab

    Hello
    I use two level model tab and its Apex 40.
    I would like to clear the cache and reset pagination when you click level 2nd tab
    Is anyway to do this?
    Thank you.

    hlthanh wrote:
    Hello
    I use two level model tab and its Apex 40.
    I would like to clear the cache and reset pagination when you click level 2nd tab
    Is anyway to do this?

    Can stick us to the standard terminology of APEX: do you mean Parent (level 2) tab or the tab Standard (level 2)?

    Parent tabs this is done directly using the box Erase the Cache property and reset pagination for this page of the tab target.

    For the Standard tabs, create processes from before header tab target:

  • Session state > clear Cache...

  • Reset the Pagination

  • How to change the image of a line when you click on it from the waterfall cookbook sample application

    Hi, I have a few sql data. And I'm showing them with qlistdatamodel. I used the ListItemProvider and implementing customControl for each line in the sample application cascade cookbook. Which can be found in here. I want to change an image of the line when it is selected. I modified the method 'select' of 'recipeItem.cpp'

    void RecipeItem::select(bool select)
    {
      // When an item is selected, show the colored highlight Container
      if (select)
      {
    
          mHighlighContainer->setOpacity(0.9f);
          mItemImage->setImage(Image(QString("app/native/assets/btn_a.png")));
    
      }
      else
      {
        mHighlighContainer->setOpacity(0.0f);
    
      }
    }
    

    It should have changed the image btn_a.png. But what it does is removes the image and the text remains. Thank you.

    I just found out another of my post that my uri of the image is incorrect. The format of the url I was using was valid only in a Beta SDK. It should be like "asset:///btn_a.png". Now it works perfectly

  • How to make a text field is empty when you click on to.

    I have an input text box, if the user clicks "submit" and the box is empty, it returns "Please enter here response" in the input box. Is there a way to make sure when the user clicks in the box, it will turn back to white and be ready to type rather than having to select existing text, to delete?

    Thanks :)

    Yep, use the onSetFocus method.

    my_text_field_instance_name.OnSetFocus = function() {}
    my_text_field_instance_name. Text = "";
    }

    but be careful here, because if the user fills in that information, then click on the text field and then on again, the text will disappear, you will need to use a combo with onKillFocus or if increased... play with him. its real simple

    Corey

  • How to close the menu that is opened when you click on the menu button?

    Hello

    When the user clicks the menu button, menu appears.

    Now menu is not closed & my screen behind the menu is updated due to a callback function.

    So, I want to update my menu again accordingly.

    How can I update this menu or close the menu which is open?

    Is it possible to dindane who?

    Yes... His work.

    I tried compact as well, but it did not work in multithreading where I wanted to close the menu on the response of one or two wires.

    It was necessary to aquire lock application event to close the menu in this senario.

    Thnx, it is now resolved...

  • I created a form to complete 4 page. I would like to place a button at the bottom of page 4 when you click inserts another copy of the form in the existing file. I have the user to have the ability to easily create muliple copies of the same 4 pages in

    I created a form to complete 4 page in Acrobat. I would like to place a button at the bottom of page 4 when you click inserts another copy of the form in the existing file. I want the user to have the ability to easily create multiple copies of the same 4 pages in a single file. It is possible with Acrobat? I use a PC.

    It is possible using models and JavaScript, but if it is to work with the player, users will need to use the desktop version (Windows/Mac) of 11 Reader or CD player. Here is a link to an older article which explains the basics: Planet PDF - a lesson in the templates for Adobe Acrobat

    Note that this is a bit outdated, but it should help you get started. If you have any other questions, post them in the Acrobat JavaScript here forum: JavaScript

  • How to do an audit in the order page IN. When you click on the button "submit"

    I want to do an audit in order IN. When you click on the "submit" button, it will be checked whether the OP is reserved and will display the message if not.

    I have a CO span from the original, I can know where should I put the logic inside the processFormRequest? and how to write code to control them thanks.

    public void processFormRequest (pageContext, OAPageContext,

    OAWebBean oAWebBean)

    {

    super.processFormRequest (pageContext, oAWebBean);

    }

    OK here is the code below,

    String sql = "START: 1: = XXPO_CHECK_RESERVED_PKG." XXPO_CHECK_RESERVATION(:2); END; « ;

    CallableStatement cs = txn.createCallableStatement (sql, 1);

    String outputval = null;

    try {}

    cs.setString (2, Segment1);

    cs.registerOutParameter (1, OracleTypes.VARCHAR);

    CS. Execute();

    outputval = cs.getString (1);

    TXN.Commit ();

    } catch (Exception sqle) {throw new OAException ("Error in the application of staffing", OAException.ERROR) ;}}

    -Beginning of the code by Hemant

    If ("N".equals (outputval) &! ") ». Equals (outputval))

    {

    throw new OAException ("The PO isn't in reserved State");

    }

  • How to create a form that is displayed when you click on a button?

    I want to create a contact form on my Web site that appears when you click the button 'click here to contact us' floating on the web page. I can't figure out how to make this work. Any help would be appreciated!

    You can really use any widgets of composition. You probably want to use the Widget for Composition of ToolTip and the setting of the trigger button and form as target.

  • Why can I not see the details of my question, when you click on it in my profile?

    I've created a new issue earlier this week, and apparently I have a question, based on my profile. When you click on the link 'Question' I see a result search failed. Why can I not see my question (to check if an update)?

    Thanks for that - now I see my original question, which remains unanswered (except someone telling me to use another browser!). You are also able to help with this one please?

    (I can send screenshots to illustrate the problem, if it helps...)

    Soon, K

  • How to clear the text drafted the Bitmap by graphics.drawtext (...) (try to do a count down on top of the Bitmap)

    Hello, I'm doing a count down on top a Bitmap image. I use graphics.draw (),
    However, this ended up writing the text on text, no matter what I do.
    Example: when the second = 3, the image will be 3 shot
    When the second = 2, the image will be 2 on top 3 drawn on it (in this case 3 does not appear)
    When the second = 1, the image will be 1 of 2 on top 3 drawn on it (in which case 2.3 does not appear)

    Can anyone help please, thanks in advance... Here is the code:

    Timer each who calls every second {...
    {Synchronized (UiApplication.getEventLock ())}
    Bitmap temp = BitmapOriginal;
    Graphics g = Graphics.create (temp);

    Font myFont = Font.getDefault ().derive(Font.BOLD,13);

    StartcountDown.setFont (StartcountDown.getFont () .derive (Font.BOLD, 15, Ui.UNITS_pt));

    int xOffset = (int) ((BitmapOriginal.getWidth () / 2)-(Font.getDefault().getAdvance(Integer.toString(startCountDown))/2)); (temp.getWidth () - Font.getDefault () .getAdvance (Integer.toString (startCountDown)));
    int decalage_y = (int) ((BitmapOriginal.getHeight () / 2)-(Font.getDefault().getHeight()/2)); (temp.getHeight () - Font.getDefault () .getHeight ());

    g.setColor (Color.WHITE);
    g.setFont (myFont);

    g.Clear ();

    g.drawBitmap (0, 0, BitmapOriginal.getWidth (), BitmapOriginal.getHeight (), BitmapOriginal, 0, 0);
    g.drawText (Integer.toString (startCountDown), x_offset, decalage_y);

    PicAndText.setBitmap (temp);
    }
    ... }

    You can't disable text written on Bitmap. However, you don't have to write the text on the original. This:

    Bitmap temp = BitmapOriginal;

    won't. You copy not the original - you get a reference to it.

    Something like that

    Bitmap temp = new Bitmap(BitmapOriginal.getWidth(), BitmapOriginal.getHeight());
    Graphics g = Graphics.create(temp);
    g.drawBitmap(0, 0, temp.getWidth(), temp.getHeight(), BitmapOriginal, 0, 0);
    

    copies BitmapOriginal in temp, leaving intact and ready for the next use. The trick is to create a new bitmap every time to handle.

  • How to clear the text on the image

    Hello

    I have a screen with the background image (bitmap). I draw the text and other images on this background to aid graphics object and all looks ok when I show the screen - but only the first time because the next time background image is one containing all these designs on it.

    I would like to know if it is possible to erase these drawings, so next time I can use background image to draw top again?

    I use something like this:

    String fText = "Text";
    
    fBackground = Bitmap.getBitmapResource("background.png")
    
    fGraphics = new Graphics (fBackground );
    
    fvm1 = new VerticalFieldManager()
    {     
    
    public void paint(Graphics graphics)
    {
       fGraphics.drawText(fText, 0, 0);
    
       graphics.drawBitmap(0, 0, fBackground.getWidth(),  fBackground.getHeight(), fBackground, 0, 0);
    
       super.paint(graphics);
    }
    }
    

    Next time I want to draw text 'Text2' so I change variable fText to "Text2". How can I remove the 'Text' text before doing this?

    Thanks in advance.

    You really want to paint on the bitmap background to show change data.

    One of the most obvious solutions is to have fields for that--both the LabelField and RichTextField are good for displaying text, BitmapField is good to display bitmaps (use setBitmap to change the image), GaugeField is ideal for the indication of the percentage, etc..  Add the fields to your VerticalFieldManager, use the margins and the bits of style such as FIELD_HCENTER to space and position them the way you want and enjoy. When comes a new value to display, change the field matching and nullity. This is the right way to do these things.

    Of course-, since you seem to be attached to the use of the graphics directly - the quick and dirty approach is just to paint directly on the screen using the Graphics object passed in object.  Something like this:

    fBackground = Bitmap.getBitmapResource("background.png")
    
    // fGraphics = new Graphics (fBackground );
    
    fvm1 = new VerticalFieldManager()
    {     
    
    public void paint(Graphics graphics)
    {
       // fGraphics.drawText(fText, 0, 0);
    
       graphics.drawBitmap(0, 0, fBackground.getWidth(),  fBackground.getHeight(), fBackground, 0, 0);
       graphics.drawText(fText, 0, 0); // plus any other draws...
       super.paint(graphics);
    }
    }
    

    Of course, you must also override sublayout() to this VerticalFieldManager to properly define its dimensions.

    However, doing it this way is really strange. You must be something much simpler than a VerticalFieldManager to paint in it (expand, replace its layout() setExtent() correctly and his object to do any painting you need - do not call the super.paint (), it is abstract) or you add fields to it as usual and let the super.paint () do its job.

  • How to clear the text changes in a PDF Document

    Hello

    I work in Adobe Reader DC and had previously entered several changes in a document via the complete Adobe & signature tool/feature. I need to delete some of the text entered earlier in the document, but when I return to the fill & sign tool or function, it allows only hit me on the text changes / existing.

    My question is this: how to erase or delete previously entered text changes / in a pdf document and enter the new text/changes?  Thanks in advance for your support in this matter.

    Bernd,

    Thanks for the quick response. There are several sections in the document as the required signature and I signed electronically these sections. So I'll assume that since I already signed the document, I can't apply alterations to his text entered correct?

    Thanks again.

  • How to clear the drop-down list choice when signing into hotmail etc.

    past when signing errors appear below as possible choices how to clear this list

    Hello

    To clear individual entries: double click inside the box and use the arrow keys to navigate through the entries and the Del on the keyboard to delete the highlighted entry.

    To clear all the entries, including those on other sites: press Ctrl + SHIFT + delete to open the mini clear recent history window, select all in the interval of time to clear, click Details and enable (check) form & Search History.

  • How to keep the correct margins/page size when you convert a Word 2010 PDF document?

    I searched the Internet far and wide in order to understand why, when converting a Word 2010 document in PDF format in Windows 7 (via Adobe Distiller 9.5.5316), the top and bottom of the resulting PDF margins are automatically increased (which reduces the content on the page a bit) despite having consistently and everywhere the value paper A4 in Word 2010 and Adobe default PDF settings. It's almost as if distilling is stubbornly scaling the document to a different page size any of the parameters are specified.

    I solved this problem in previous versions by simply unchecking scaling print in Microsoft Word or distill. "In Word 2010, do you this through: file-> Options-> advanced, and then clear the paper sizes 'Scale content for A4 or 8.5 x 11' setting ' in the Print section.

    Today it is not so simple. I suspect that there is some chipping page or by default will sizing on but where and how to change it?

    I have to say that the years of updates Adobe seems to have two different products Adobe for creating files PDF. the above mentioned distill as long as Adobe Acrobat Pro Extended-(v. 9.5.5). However, they use the same default settings of PDF from Adobe by specifying the format of A4 paper.

    I think I have seen/inspected all of the parameters available to specify page sizes and scale - Adobe used to provide the add-in PDFMaker for Word, which manifested itself in a Word called "Acrobat" tab, and, we could see PDF settings, but this tab disappeared for a long time with a previous update to Acrobat. I tried to make this tab reappear in Word, but nothing helped.

    I also confirmed the size settings for correct page for Brother printers both Adobe in the dialog Windows 7 "devices and printers".

    The stones left to chance? Thank you.

    Print scale is always an option in Acrobat. Adobe continue to change the name. Look closely. Looking for options like "fit to page".

  • How can I keep text left to right when you type around border of a circle?

    Hello Forum

    I was able to determine how to type text around the outer border of a circle using custom shapes and the path tool.  However, what I need, is for ALL of the text from left to right and right to the top.  I'm trying to type three words: the first word is from 09:00 to 11:00.  The next word is from about 01:00 to 03:00.  The last word would be extended from about 04:00 to 08:00.

    Using the method mentioned above that the text will wrap around the shape of the circle, it turns upside and is now from right to left when he reached the bottom of the form.  I tried different things without success.  I have access to Photoshop CS4, CS6 and CC, so if anyone has any suggestions I'd be happy.

    Thank you

    Daryl

    Only way I so drawn to separate paths and then use the path Selection tool to raise text 04:00 - 08:00, then the path to the scale so that the text looks like it follows the other path.

Maybe you are looking for