Multiline textbox appears with a resize handle at runtime.
Hi,
I have a text area in a form, at runtime, i seem to get a resize handle which can be resized by the user. I would like to have
the text area appear without this re-size handle.
Anyone faced these kinds of issues? Any solutions ?
Jdev version
Oracle JDeveloper 11g (11.1.1.6.0)
tks in advance,
hi,
<af:inputText value="#{bindings.CoreReq.inputValue}"
simple="false"
required="#{bindings.CoreReq.hints.mandatory}"
columns="#{bindings.CoreReq.hints.displayWidth}"
maximumLength="#{bindings.YVWCoreReq.hints.precision}"
shortDesc="#{bindings.CoreReq.hints.tooltip}" id="it8" readOnly="true"
rows="3" contentStyle="resize: none;">
<f:validator binding="#{bindings.YVWCoreReq.validator}"/>
i get red cross marks at the top right corner of each of these boxes.
using 11.1.1.6.0. I am not sure if i am doing any thing wrong here.
Thank you,
Similar Messages
-
Missing resize handles fluid grid layout
I have created a fluid grid layout and need to resize for tablet and desktop views but resize handles will not appear. What did I do wrong?
Go to View > Visual Aids > and enable Fluid Grid Layout Guides. However, if you tampered with the temperamental Fluid.css code, you probably broke the layout. Try starting over.
Nancy O. -
Problems with dynamic resize of JTextPane...
Dear Java Gurus,
I am quite new to Java, so I am strill struggling to understand the details about it all...but thanks
to a lot of very helpful people in this forum, the bits and pieces start to come together, even
though it's obvious that I now need guidance again :-)
I posted yesterday regarding how I could implement a JTextPane that dynamically would change
its height. This means that the JTextPane has a fixed width, but when the user types in text, its sets
its own height to fit the enterred text. A very kind person posted some code that more or less looks
like the code below, with a few changes:
package test;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
import java.awt.*;
public class test {
public static void main(String[] argv)
final JFrame frame = new JFrame();
JTextPane pane= new JTextPane("Test ");
pane.getDocument().addDocumentListener(new DocumentListener()
public void insertUpdate(DocumentEvent e) {proccess(e.getDocument());}
public void removeUpdate(DocumentEvent e) {proccess(e.getDocument());}
public void changedUpdate(DocumentEvent e) {proccess(e.getDocument());}
private void proccess(Document doc)
Dimension size = pane.getPreferredSize();
pane.setSize(150, (int)size.getHeight());
frame.validate();
frame.getContentPane().add(new JScrollPane(pane), BorderLayout.SOUTH);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 300);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}The code works just fine, but has a small "feature" in it that I don't understand. It appears
like the resizing has a delay in it. If you enter the JTextPane and press return once, the text
pane will not resize. If you press backspace, the cursor will move back up, but now the
text pane will increase its size, to fit the size of the previos text size. If you now press the
return key again, the text pane shrinks by one line.
In other words...it seems the resizing is always delayed by one, as if the last entered
character is not taken into account when preferredSize() returns the value. As I don't yet
understand in which order events are generated and handled, does anybody see what I
need to change in order to get rid of this slightly disturbing delay? :-)
Any comments would be highly appreciated!
Best regards,
Xxodus.You try to ask size before edition process is complete.
Try to change size after finishing processing of document change event.
Like this.
private void proccess(Document doc)
SwingUtilities.invokeLater(new Runnable() {
public void run() {
Dimension size = pane.getPreferredSize();
pane.setSize(150, (int)size.getHeight());
frame.validate();
}regards,
Stas -
Why do some fluid divs not have resize handles?
In DW 2014.1.1 if I create a new fluid layout the first div which is set up has fluid controls top right and resize handles, that's good. If I then add a nested fluid div in there that does also, no problem. But if I place the cursor outside the original div (but still contained in "gridContainer" div) and then create a fluid div, it doesn't have fluid controls at all and can't be resized. What's going on? How are we supposed to use the fluid grid feature now?
There are also just so many other things broken with the live view and fluid grids even with this current update, it just doesn't work! Even the most basic things like copying in live view. Selecting a block of text and copying does nothing. Even copying using the context menu. If copying is only permitted after double-clicking to enter "edit" mode, why isn't "copy" greyed out in the context menu?
(I could go on and on with all the problems of Live View and Fluid Grid, but I am not a beta tester. In fact I strongly object to having to pay a monthly subscription for the "privilege" of beta-testing Adobe products. The simple fact is Adobe deliberately broke it's fluid grid layout feature by removing Design View, without adequate testing, and cynically gave it to its customers to test. And this not even in a major version upgrade.)The Auto-Join toggle only appears in Computer connections (Computer to Computer), in Router connections it Auto-Join automatically if there is a password saved.
-
[Forum FAQ] How to remove div characters from multiline textbox field in SharePoint 2013
Scenario:
Need to avoid the div tags and get data alone from multiline textbox field using JavaScript Client Object Model in SharePoint 2013.
Solution:
We can use a regular expression to achieve it.
The steps in detail as follows:
1. Insert a Script Editor Web Part into the page.
2. This is the complete code, add it into the Script Editor Web Part and save.
<script type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
function retrieveListItems() {
// Create an instance of the current context to return context information
var clientContext = new SP.ClientContext.get_current();
//Returns the list with the specified title from the collection
var oList = clientContext.get_web().get_lists().getByTitle('CustomListName');
//use CAML to query the top 10 items
var camlQuery = new SP.CamlQuery();
//Sets value that specifies the XML schema that defines the list view
camlQuery.set_viewXml('<View><RowLimit>10</RowLimit></View>');
//Returns a collection of items from the list based on the specified query
this.collListItem = oList.getItems(camlQuery);
clientContext.load(this.collListItem, 'Include(Title,MultipleText)');
clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
function onQuerySucceeded() {
//Returns an enumerator to iterate through the collection
var listItemEnumerator = this.collListItem.getEnumerator();
//Remove div tag use a regular expression
var reg1 = new RegExp("<div class=\"ExternalClass[0-9A-F]+\">[^<]*", "");
var reg2 = new RegExp("</div>$", "");
//Advances the enumerator to the next element of the collection
while (listItemEnumerator.moveNext()) {
//Gets the current element in the collection
var oListItem = listItemEnumerator.get_current();
alert(oListItem.get_item('MultipleText').replace(reg1, "").replace(reg2, ""));
function onQueryFailed(sender, args) {
alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
</script>
Result:<o:p></o:p>
References:
http://www.w3schools.com/jsref/jsref_obj_regexp.asp
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.Nice article :)
If this helped you resolve your issue, please mark it Answered -
I'm trying to make a textbox appear in a PDF made in InDesign when the user rolls the cursor over another textbox, and I want it to disappear when the cursor moves off the first textbox. I've tried the following with various setting, and it's just not working for me.
Display a different button on rollover
You can create a hot spot in which clicking or mousing over an object displays another object. To do this, create two buttons, hide one of the buttons, and use the Show/Hide Button action to show and hide the target button.
Create an object to be used as the source button. In the Buttons panel, click the Convert Object To A Button icon.
Place the image you want to be used as the target button, and convert it to a button.
Select the target image and select Hidden Until Triggered at the bottom of the Buttons panel.
The image needs to be hidden in the exported document so that it can be displayed when the source button is moused over or clicked.
Select the source button and create two different actions, one to show the target image and a second to hide the target image.
If you want the image to appear when the mouse hovers over the source button, use the On Roll Over and On Roll Off events. If you want the image to appear when you click the source button and disappear when you release it, use the On Click and On Release events. In either case, use the Show/Hide Buttons action to display and hide the target button. See Make buttons interactive.
Use the Preview panel to test the buttons.Here's more information about what I'm doing.
1. create text box with a little text
2. turn it into a button (Button 1)
3. create another text box with some text
4. turn this into a button (Button 2)
5. check "Hidden Until Triggered" for Button 2
6. For Button 1, select "On Roll Over" for Event
7. For Button 1, click + to add Action and choose "Show/Hide Buttons and Forms"
8. For Button 1, change icon next to Button 2 into eyeball (which I assume makes Button 2 visible on roll over).
9. For Button 1,, select "On Roll Off" for Event
7. For Button 1, click + to add Action and choose "Show/Hide Buttons and Forms"
8. For Button 1, change icon next to Button 2 into crossed-out eyeball (which I assume makes Button 2 invisible on roll off).
8. Export to PDF with modified smallest file size and include bookmarks and hyperlinks and include appearance for interactive elements.
Both buttons are visible in the PDF, and nothing happens with roll over and off.
What am I doing wrong? -
Error: Statement must appear within on/onClipEvent handler
I'm getting this error Scene=Scene1, Layer=Layer 3, frame=1,
Line1
Statement must appear within on/onClipEvent handler
shape.swapDepths(_root.getNextHighestDepth());
i'm using this code:
shape.swapDepths(_root.getNextHighestDepth());
//shape is a movie clip
stop();
this.attachMovie('bcPlayer','bcPlayerInstance',this.getNextHighestDepth());
//bcPlayerInstance._xscale = 75;
//bcPlayerInstance._yscale = 75;
bcPlayerInstance._y = -50;
bcPlayerInstance._x = -5;
//bcPlayerInstance is a movie clip
please help anyone knows what i'm doing wrong>>Actually swapDepths can take either a moveclip or a
number. That isn't the
>>problem.
So it can! Sorry, just never used it with anything besides a
clip ref, and
even then I really don't use it much as I like to keep track
of things
myself.
Thanks
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Xcode storyboard: no resize handles on text field
Hi,
I'm going through the "Start Developing iOS Apps Today" tutorial (https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapi OS/index.html#//apple_ref/doc/uid/TP4001…. My first time through I didn't have this problem but now I do and can't find any info on why or how to resolve.
When I drag a text field from the object library tot he storyboard, there are no resize handles on it. I created a Jing screencast and uploaded it here: http://screencast.com/t/tmZYug3yx
I have uninstalled/reinstalled xcode and rebooted my machine. I've tried control-click, option-click and cmd-click but I can't get resize handles to appear and can't find any other way to resize the object. Nor can I find any option that might control whether or not resize handles should display.
I would greatly appreciate any suggestions.
Thanks,
Ty HallstedI don't know why you can't resize the text field when you select it, but you can resize the text field from the size inspector. In your screencast if you look at the right side of the window, you'll see a series of buttons at the top. Click the button that looks like a ruler to open the size inspector or choose View > Utilities > Show Size Inspector in Xcode.
-
I d i do not have resize handle or size slider at the bottom of my area showing all files
In the book that I am using it shows the desk top closed at the bottom with slider and resize handle and other information on the bottom line. How do I get it?
In the book that I am using it shows the desk top closed at the bottom with slider and resize handle and other information on the bottom line. How do I get it?
-
Hi,
If I select the values from combobox, how do I sum the multiline value in textbox1 and get the total value in textbox2 ?
Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
If ComboBox1.Text <> "" Then
TextBox1.Text &= ComboBox1.Text & vbCrLf
End If
End Sub
ThanksPrivate Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
If ComboBox1.SelectedIndex <> -1 Then
TextBox1.Text &= ComboBox1.Text & vbCrLf
If TextBox2.Text <> "" Then
TextBox2.Text = CStr(CSng(TextBox2.Text) + CSng(ComboBox1.Text))
Else
TextBox2.Text = ComboBox1.Text
End If
End If
End Sub
If I where you I wouldn't use a multiline textbox but a listbox instead then you can just do
If ComboBox1.SelectedIndex <> -1 Then
ListBox1.Items.Add(CSng(ComboBox1.Text))
TextBox2.Text = ListBox1.Items.Cast(Of Single)().Sum().ToString
End If -
When I add a new layer even in a blank html page resize
handles don’t appear. I cannot move or resize any layers? Did
I turn something off? Another developer can see his but I cant see
mine.Do me a favor, please -
Execute this series of steps on a new page, copy the code for
the page, and
paste it into a reply here.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Little Ronnie" <[email protected]> wrote in
message
news:epd1vo$dea$[email protected]..
> Dw version 8 on Windows XP.
>
> I am adding layers clicking on Insert Layout objects
then selecting
> layer.
> A new layer appears and should allow me to click on it
drag it and re-size
> it
> if needed. But my system does not show the resize
handles so I cant move
> it or
> resize it.
> -
When I attempt to send a text from the new iPad, a dialog box appears with the option to either sign in with Apple ID Password or Create New Account. I try signing in using my Apple ID password but IMessage informs me that email address cannot be verified because it is already in use ??? What am I doing wrong?
settings -> iTunes & App Store
click on apple ID listed there
select Sign Out
sign in with the proper account
from then on, when the store ask for your password it should be with the correct ID -
Items in the shopping cart appear with different price than in the catalog
Hi All,
We are running SRM 5.0 (Classic Scenario) with external catalogues.
After selecting items from the external catalogue and transferring them to the shopping cart, the items appear with different price(the problem exists in the productive system)
The strange thing is that there is no dependence or sequence between the differences. For example, in one shopping cart, one item is with correct price, the price of the other item is not correct (when I click on the icon which is showing item details in the catalogue, the price is different than the one in the shopping cart). Sometimes the difference is significant, sometimes not - if the item price in the catalogue is 22.34 EUR, in the shopping cart is 21.22EUR or if the item is 45.62EUR in the shopping cart is 45.60 EUR. There is no logic.
I tried to create a shopping cart in the support system, with the same items from this catalogue, and they are sent back in SRM with the correct prices.
I traced all OCI parameters, sent from the supplier catalogue, and everything is correct.
At the example given below the price in the shopping cart ordered in the productive system is 69.00CZK, and after that during the test the correct price of 73.870CZK has appeared.
NEW_ITEM-DESCRIPTION==Durable-KeyClip-keytag%2C+black
NEW_ITEM-MATNR==
NEW_ITEM-MATGROUP==
NEW_ITEM-QUANTITY==10
NEW_ITEM-UNIT==EA
NEW_ITEM-PRICE==73.870
NEW_ITEM-PRICEUNIT==1
NEW_ITEM-CURRENCY==CZK
NEW_ITEM-NEW_ITEM-LEADTIME==1
NEW_ITEM-VENDOR==
NEW_ITEM-VENDORMAT==0176%2F1957001
NEW_ITEM-MANUFACTCODE==
NEW_ITEM-MANUFACTMAT==
NEW_ITEM-CONTRACT==
NEW_ITEM-CONTRACT_ITEM==
NEW_ITEM-SERVICE==
NEW_ITEM-EXT_QUOTE_ID==
NEW_ITEM-EXT_QUOTE_ITEM==
NEW_ITEM-EXT_PRODUCT_ID==23109
NEW_ITEM-EXT_SCHEMA_TYPE==UNSPSC
NEW_ITEM-EXT_CATEGORY_ID==55121504
NEW_ITEM-LONGTEXT_1%3A132==Durable-KeyClip%0D%0Akeytag%2Cblack%0D%0A%0D%0A6pc
I checked the error log in SLG1 for BBP_OCI, and no error message exists. In my opinion the problem can be in supplier system, because otherwise all items will be with wrong price. And at the moment, there are shopping carts in which all items are with the correct price!
It is not something in the user profile, because in one shopping cart created by one user some items are correct, some of them not.
I also checked with the supplier, they said that they haven't change the price, recently.
Has somebody of you met this problem?
In the IMG-> Define External Web Services (Catalogs, Vendor Lists etc.) I have set all parameters for the standard call structure: the URL of the supplier, our company ID and password for their catalogue.
In the Detail view for the catalogue, the following parameters are set
u201CAdditional functions in the product catalogueu201D field:
- Display product data again in the catalogue
- Validate product data from SAP Enterprise Buyer
- Find supply sources
u201CTechnical Settingsu201D field
- Use Error Log
Thanks,
DesiThat means that we are not maintaining material numbers in SRM, so there are no predefined price or info records for that materials in R/3 system, or in SRM.
In the set up of external catalogues, validation of the price is set. Which means that, if a new shopping cart is created from already existing one, and meanwhile, a change of the price is done by the supplier in the catalogue, the new item price will be adopted in the shopping cart.
No prices are maintained in the SRM system, everything is from the supplier catalogue.
Desi -
I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click.
How do I get version 4 to do this?
Thanks.The new but not-ready-for-prime-time autocomplete method searches for matches that contain the entered text, not just ones that begin with the string. Your options are:
1) type in longer strings that narrow the search
2) use an add-on to search just the beginnings:
https://support.mozilla.org/en-US/questions/1037469
3) install an older version of TB:
http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/ -
when I choose a photo to share on face book a drop down box appears with the message, Face book didn't recognise the information you entered for the account this is my Face book login information I use to access my face book page how can I overcome this.
Delete abd re-enter your Facebook account information jnder the accounts tab in the iPhoto preferences
You may also want to take a look at the user tip for Facebook problems
LN
Maybe you are looking for
-
HP Photosmart C410a All-in-One: Duplex Printing Problem
I just purchased an HP Photosmart Premium Fax C410a ePrinter. My operating system is Windows 7. All went well until I tried duplex printing of a document. It printed alright, but extra margin space (a good 1/2 inch) was inserted like a border at t
-
Problem with multiple client numbers from a view
Hi Gurus, I have a problem with a view Creates a view with a UNION ALL stmt ===================================== Create view vw_benifits as SELECT Client_num, -- can have multiple values like 200,201,250 PERNR, OBJPS, E
-
Is there a way to implement a breadcrumb turnaround for RoboHelp7 HTML?
Hello everyone, I have a unique situation on my hands. I would like to implement breadcrumb functionality for RoboHelp7 HTML Help. I am aware of the following items (feel free to correct me if I'm wrong about any of this): Breadcrumbs can be automa
-
Designer with 8i release (8.1.6)
I did a upgrade of my database from Oracle 8.1.5 to Oracle 8.1.6, I recover the information of Designer Repository successfully, but now when I try to do a change in a project in designer I found the next error: ORA-04031 Unable to allocate 472 bytes
-
DMEE: Error in conditions for node Invcr: reference ID IDTP is not permitte
Hi Friends , I have problem with nodes in DMEE . When child node is from a Exit funtion moduel , not from the Payment FPAYH/FPAYP/HX structures, is empty . I dont want the parent node to be displayed . EX: <INVCR> - Should not display when node2 is