Problem with Input Text Field
I am trying to use the binding tag for a inputText field... The value of the text Field is a hashmap, in which the key is equal to the binding variable i have used
<h:inputText id="ug" binding="#{userBean.ugclassCode}" rendered="true" value="#{userBean.finalUghm}" styleClass="numericalignRight" />
This is the first time i m trying binding to an inputText so please let me know if this method is correct... and please let me know if there is any other method to accomplish the same.
Thanks in advance
Maybe you misunderstand the binding attribute ..
Two ways to get it work:
Way 1:
JSF 1<h:form id="form">
<h:inputText binding="#{MyBean.inputText}" />
</h:form>MyBean 1 private HtmlInputText inputText = new HtmlInputText();
private Map inputValues = new HashMap();
public HtmlInputText getInputText() {
inputValues.put("key1", "testvalue1"); // test
inputText.setValue(inputValues.get("key1"));
return inputText;
public void setInputText(HtmlInputText inputText) {
this.inputText = inputText;
}Way 2:
JSF 2<h:form id="form">
<h:inputText value="#{MyBean.inputValue}" />
</h:form>MyBean 2 private Map inputValues = new HashMap();
private String inputValue;
public String getInputValue() {
inputValues.put("key2", "testvalue2"); // test
inputValue = (String) inputValues.get("key2");
return inputValue;
public void setInputValue(String inputValue) {
this.inputValue = inputValue;
}
Similar Messages
-
Paging a data table with input text fields
I've created a datatable with input text fields so that contents can be edited. I have 'save' and 'cancel' buttons on the page so that changes can be saved or abandoned. That seems to work fine.
However, I have a problem with paging. If I modify an input text field, page to the next page in the datatable and then page back, the modified input text field reverts to the original entry in the database. Does anyone know how I can preserve this change (without issuing a commit) until the user clicks on the save button?
Here is a snippet of jsp with datatable.
<h:dataTable binding="#{DocTypeDetail.doctypeMetadataTable}" headerClass="list-header" id="doctypeMetadataTable"
rowClasses="list-row-even,list-row-odd" rows="5" style="left: 240px; top: 312px; position: absolute"
value="#{DocTypeDetail.doctypeMetadataTableModel}" var="currentRow">
<h:column binding="#{DocTypeDetail.column2}" id="column2">
<h:inputText binding="#{DocTypeDetail.textField1}" id="textField1" value="#{currentRow['name']}"/>
<f:facet name="header">
<h:outputText binding="#{DocTypeDetail.outputText5}" id="outputText5" value="Name"/>
</f:facet>
</h:column>
<h:column binding="#{DocTypeDetail.column3}" id="column3">
<h:inputText binding="#{DocTypeDetail.textField2}" id="textField2" value="#{currentRow['value']}"/>
<f:facet name="header">
<h:outputText binding="#{DocTypeDetail.outputText8}" id="outputText8" value="Value"/>
</f:facet>
</h:column>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header"/>
<f:facet name="header">
<h:panelGroup binding="#{DocTypeDetail.groupPanel1}" id="groupPanel1" style="display: block; text-align: center" styleClass="list-paging-header">
<h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_firstPageAction}"
binding="#{DocTypeDetail.doctypeMetadataTableHeaderFirstButton}" id="doctypeMetadataTableHeaderFirstButton"
image="resources/paging_first.gif" immediate="true"/>
<h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_previousPageAction}"
binding="#{DocTypeDetail.doctypeMetadataTableHeaderPreviousButton}" id="doctypeMetadataTableHeaderPreviousButton"
image="resources/paging_previous.gif" immediate="true"/>
<h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_nextPageAction}"
binding="#{DocTypeDetail.doctypeMetadataTableHeaderNextButton}" id="doctypeMetadataTableHeaderNextButton"
image="resources/paging_next.gif" immediate="true"/>
<h:commandButton action="#{DocTypeDetail.doctypeMetadataTable_lastPageAction}"
binding="#{DocTypeDetail.doctypeMetadataTableHeaderLastButton}" id="doctypeMetadataTableHeaderLastButton"
image="resources/paging_last.gif" immediate="true"/>
</h:panelGroup>
</f:facet>
</h:dataTable>I know by now you must have figured it out. If not you might want to try keeping the backing bean in session instead of request scope.
Hope that helps,
HeMan -
Problem with a text field check
When there is nothing placed inside the text field it will return a message dialog box saying that there is nothing located inside the text field. However if there is something inside the text field it will perform a
doSpellingSuggestion and write the results to a .txt file.
This works as the search term can be found within the .txt file.
However when I try to display a message dialog box to display the contents of the .txt file that contains the spelling suggestion it will come out with an error from the catch statement
catch(Exception spelling_error)
JOptionPane.showMessageDialog(null , "Spelling error = " +
spelling_error.getMessage());
It keeps showing an error message box saying "Spelling error = null"
It wont go past this line and thats the problem that i have. I tryed putting
I tried substituting this in place of the error message above but it wouldnt go down to it
//Display a message with a spelling suggestion
JOptionPane.showMessageDialog(null , "Did you mean to spell " +
search_term + " like this " + buffer.toString());
but this didnt work
class spellcheck_button_listener implements ActionListener
public void actionPerformed(ActionEvent spelling_check)
try
String myKey = "0RK+HoNQFHJlcbNPfxgBpcjESUWV96aO";
String wsdl = "http://api.google.com/GoogleSearch.wsdl";
String url = "http://api.google.com/search/beta2";
String ns1 = "urn:GoogleSearch";
String ns2 = "urn:GoogleSearch";
if((search_field.getText() == null) || (search_field.getText().equals("")))
JOptionPane.showMessageDialog(null , "No search term entered in text field"
+ " please enter another search term");
else
search_term = search_field.getText();
//Create the connection
SOAPConnectionFactory soapConnFactory = SOAPConnectionFactory.newInstance();
SOAPConnection connection = soapConnFactory.createConnection();
//Create the actual message
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage message = messageFactory.createMessage();
//Create objects for the message parts
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody bodyName = envelope.getBody();
SOAPElement bodyElement;
//Populate the message by adding SOAP body elements to form a semantically meaning
//SOAP request
bodyElement = bodyName.addBodyElement(envelope.createName("doSpellingSuggestion" , "ns1" , ns1));
//Adding content to the message
//addTextNode used when entering strings , addAttribute used for integers
bodyElement.addChildElement(envelope.createName("key")).addTextNode(myKey);
bodyElement.addChildElement(envelope.createName("q")).addTextNode(search_term);
//Send the message and get a reply
URLEndpoint endpoint = new URLEndpoint(url);
//Send the message
SOAPMessage reply = connection.call(message , endpoint);
//Getting the content of a Message
SOAPPart sp = reply.getSOAPPart();
SOAPEnvelope env = sp.getEnvelope();
SOAPBody replyBody = reply.getSOAPPart().getEnvelope().getBody();
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Source styleSheet = new StreamSource(translate_file);
Transformer transformer = transformerFactory.newTransformer(styleSheet);
Source sourceContent = reply.getSOAPPart().getContent();
StreamResult result = new StreamResult(spell_check_file);
transformer.transform(sourceContent, result);
java.util.Iterator iterator = replyBody.getChildElements();
while (iterator.hasNext())
bodyElement = (SOAPBodyElement)iterator.next();
String url_results = bodyElement.getValue();
//Close the connection
connection.close();
FileReader inputFile = new FileReader(spell_check_file);
buffer = new StringBuffer();
// write new list to standard out
BufferedReader in = new BufferedReader(inputFile);
String input;
while ((input = in.readLine()) != null)
if(!input.startsWith("<?xml version"))
// Skip XML header
buffer.append(input + "\n");
in.close();
//Display a message with a spelling suggestion
JOptionPane.showMessageDialog(null , "Did you mean to spell " + search_term +
" like this " + buffer.toString());
} //End of else statement
} //End of try method for search action performed
catch(Exception spelling_error)
JOptionPane.showMessageDialog(null , "Spelling error = " +
spelling_error.getMessage());
} //End of method actionPerformed for search button
} //End of class spellcheck_button_listener implements ActionListenerI don't use SOAP, so I can't test your code.
If you really want people to read your code then it should be [url http://forum.java.sun.com/features.jsp#Formatting]formatted so it is readable with correct indentation of lines and highlighting of the source code. -
Problem with Update Text fields in Infoset
Hi experts,
Here i would like to rephrase the question. Normaly while working with Infosets, when press "update text fields" button, those fields having text is updated. But one of my field is not updated. I need some help from you for that.
One more question i've that my field is having check table so i would like to know how exactly the text field is updated.
scenario.
Customized IT9320 has field prt_pos added. This field is having check table T528B. But i want text field to be attached is IT1000-STEXT.
How this can be done, because i suspect that just using check table field IT1000-STEXT is not attached to IT9320-prt_pos.
Please help. I'm really got stuck here.
Thanks a lot,
Toral.
Hi,
I'm working on customised Infotype. I need to add one new customised field ie Present Position. This field has number as well as text associated with it. There is a check table attached with this field so that text can be displayed alongwith number.
I need this field in SAP/Adhoc query. But when i go to SQ02 this fields shows only value. Text is disabled for this field. I'm not sure why is it so.
I looked into other infotype which as one field using same data element, and that field shows both value as well as text. Please help me to rectify this issue for present position field.
Thanks,
Toral.
Edited by: Toral Sheth on Jul 4, 2008 2:01 PMYou would be much better off with one multi-line form field.
There are many problems with trying to determine when one is at the end of the display field with text entry. -
Problem with long text field.
Hi all,
I have a problem when I try to concatenate two fields.
It seems the new field only is 254 characters long?
Here is my syntax:
data: w_long_text(1000).
clear w_long_text.
loop at iline.
concatenate w_long_text iline-tdline into w_long_text separated by space.
endloop.
I'm sure the text is longer then 254 becuase I can see the text in an Activity in the Sap Crm system.
Best Regards
FrodeHi thomas
wat i would suggest you is better take an internal table with long_text(255) field .
data : begin of it_text occurs 0,
long_text(255),
end of it_text.
clear : w_long_text,it_text.
loop at iline.
concatenate w_long_text iline-tdline into w_long_text separated by space.
<b>it_text-long_text = iline-tdline.</b>
append it_text.
clear it_text.
endloop.
and when displaying the text keep that in a loop and print it.
This way u can display the whole text irrespective of the char length.
Reward points if helpful
Regards
Zarina -
Hi,
I want to load a string of characters to a text field of a table. I'm using SQL Loader.
I've tried to declare the field in several types: varchar2(4000), clob, raw, etc, but when I run sql loader to load the text I get the same error: The data file exceeds maximum lenght. I've tried with a shorter text and it works.
My question is, why I can't load long characters in that field?
Thanks in advance.
Regards.Although you have made your table column up to size 4000, SQLLoader have not got a clue about that. You still need to tell SQLLoader that the text coming in is more than the default 255 in your control file. Strange isn't it?
Here is my table named testlog. Note that I changed the column names LOG, DAY, TIME and TYPE because they are reserved Words
SQL> CREATE TABLE TESTLOG
2 (LOG_1 CHAR(3) NOT NULL,
3 DAY_1 DATE,
4 TIME_1 CHAR(8),
5 SOURCE VARCHAR2(100),
6 EVENTID NUMBER(22),
7 TYPE_1 VARCHAR2(64),
8 CATEGORY VARCHAR2(64),
9 USER0 VARCHAR2(64),
10 COMPUTER VARCHAR2(64),
11 MESSAGE VARCHAR2(4000) NOT NULL)
12 /
Table created.
SQL> desc testlog
Name Null? Type
LOG_1 NOT NULL CHAR(3)
DAY_1 DATE
TIME_1 CHAR(8)
SOURCE VARCHAR2(100)
EVENTID NUMBER(22)
TYPE_1 VARCHAR2(64)
CATEGORY VARCHAR2(64)
USER0 VARCHAR2(64)
COMPUTER VARCHAR2(64)
MESSAGE NOT NULL VARCHAR2(4000)
SQL> select * from testlog;
no rows selected
SQL>
I saved the same data you have abvoe in a file named testlog.txt Here is my test controlfile named testlog.ctl
LOAD DATA
INFILE 'testlog.txt'
INTO TABLE testlog
FIELDS TERMINATED BY ','
TRAILING NULLCOLS
LOG_1 CHAR NULLIF (LOG_1=BLANKS)
, DAY_1 DATE "DD/MM/YYYY" NULLIF (DAY_1=BLANKS)
, TIME_1 CHAR NULLIF (TIME_1=BLANKS)
, SOURCE CHAR NULLIF (SOURCE=BLANKS)
, EVENTID INTEGER EXTERNAL NULLIF (EVENTID=BLANKS)
, TYPE_1 CHAR NULLIF (TYPE_1=BLANKS)
, CATEGORY CHAR NULLIF (CATEGORY=BLANKS)
, USER0 CHAR NULLIF (USER0=BLANKS)
, COMPUTER CHAR NULLIF (COMPUTER=BLANKS)
, MESSAGE CHAR(4000) NULLIF (MESSAGE=BLANKS)
Here is the Result of my test run
D:\DBMSDIRECT\DBA\Test>sqlldr userid=test control=testlog.ctl
Password:
SQL*Loader: Release 11.1.0.6.0 - Production on Fri Nov 5 15:36:05 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Commit point reached - logical record count 1
D:\DBMSDIRECT\DBA\Test>
Here is the Result in the table
SQL> col message format a50
SQL> col source format a50
SQL> col category format a10
SQL> col source format a10
SQL> col user0 format a10
SQL> col type_1 format a10
SQL> col computer format a10
SQL> set pasge 20
SQL> select * from testlog;
LOG DAY_1 TIME_1 SOURCE EVENTID TYPE_1 CATEGORY USER0 COMPUTER MESSAGE
SEC 04-NOV-10 12:26:02 Microsoft- 4656 Success 12800 server1.it A handle to an object was requested.^`^`Subject:^`
Windows-Se acasa-sa.c Security ID: S-1-5-21-3830471607-3036766313-42914
curity-Aud om 15205-2156^` Account Name: mbelles^` Account Domai
iting n: ITACASA-SA^` Logon ID: 0x38988bbc^`^`Object:^`
Object Server: Security^` Object Type: File^` Obje
ct Name: K:\AMBIENTE^` Handle ID: 0x1e18^`^`Proces
s Information:^` Process ID: 0x4^` Process Name: ^
`^`Access Request Information:^` Transaction ID: {
00000000-0000-0000-0000-000000000000}^` Accesses:
%%4416^` ^` Access Mask: 0x1^` Privileges Used for
Access Check: -^` Restricted SID Count: 0
1 row selected.
SQL> -
Problem with validating text field
Hi All
i want to validate the text fields present in jsp page for a sturts application..
i have a jsp page for input then struts form for validation as struts machinism provides and if error occurs it add error to error object.
i want to display error message in text field when it occurs..
plz help me to do it
thanx in advacneI'm not getting your requirement clearly, by my understanding ... you need to retrieve database whenever a <select> field trigger "onchange" - am I right?
If that is your requirement, it depends on what kind of solution you are looking into?
1. AJAX+Servlet (dojo/jMaki/write your own)
2. Java Server Faces (MyFaces/JSF)
3. write yourself a custom TAG (JSTL) to do the purpose (AJAX+Servlet/purely Servlet)
4. purely JSTL
5 purely Servlet
(please "Google" them by appending "<select> <option>"/ "populate combobox")
Personally I would recommend 1st or 3rd approach, even 2nd approach (MyFaces/JSF) is cool, but if your whole application is not written in JSF, no point to mixed the solutions.
If you want to try Ajax+TAG approach, refer following:
http://ajaxtags.sourceforge.net/
If you wish to use MyFaces approach, please refer following:
http://avatar21.superihost.com/index.php?entry=entry051020-163838
A forth/fifth approach will be much browser-portable, but the amount of coding will be more.
Regards,
Avatar Ng
Message was edited by:
Avatar_Ng
Message was edited by:
Avatar_Ng -
Problem with "Input text with List of Value"
Hi,
I have a table where i am storing country code using "Input text with List of Value". I want a another non base table item where i would like to show the "Country Name" of the select LOV. Kindly let know a way to implement the LOV where it returns the "Country code" to base table item and "Country name" to the non base table item.
thanks
SanjayHi,
I am getting lazy in chasing down the JDeveloper release by the ADF Faces component mentioned.. So I ask: Which verson of JDeveloper are you on ?
Frank -
Problem with long text field in PLD
Hi all.
I´m doing a layout for A/R invoices. I have a user field of text type. When I try to display this field and the text is too long the PLD make a new line. but in the first line cut me some characters. How can I fix this issue?
Can you help me?
ThanksThe Aligment properties are:
*Horizontal: Left
*Vertical: Top
*Line break: Divide into rows
*Length:
*Filler:
*Field haight adjustment: checked
*Sum in words: Not checked
*Suppress zeros: Not checked -
Problem with JButtons Text field not updating
Im working on a program (which has its full code included below incase its part of the problem) which wants to change a Jbutton's name during a program. The way I'm trying to make it change is by having a string, "test", be called "before update". then have the jbuttons text equal test. then, in an actionlistener, it changes string test to equal "after update". This doesn't update the Jbuttons text.
I don't get any errors when I press the button, but the buttons name is not updating. Whats causing the buttons name not to be updated?
Thanks for help in advance.
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class TicTac extends JFrame {
public int Teamplaying = 0;
public int CrossA, CrossB, CrossC, CrossD, CrossF, CrossG, CrossH, CrossI, CircleA, CircleB, CircleC, CircleD, CircleE, CircleF, CircleG, CircleH, CirclI, TLB, TMB, TRB, MLB, MMB, MRB, LLB, LMB, LRB = 0;
String test = "Before Update";
public TicTac() {
JPanel TicTac = new JPanel();
TicTac.setLayout(new GridLayout(3,4));
TicTac.add(new JButton(test));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
TicTac.add(new JLabel("a"));
setContentPane(TicTac);
pack();
setTitle("Add Numbers Together TicTac");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
class TopLeftBox implements ActionListener {
public void actionPerformed(ActionEvent e) {
String test = "After update";
if (Teamplaying == 0) {
CrossA = CrossA + 1;
CrossD = CrossD + 1;
CrossG = CrossG + 1;
else {
CircleA = CircleA + 1;
CircleB = CircleB + 1;
public static void main(String[]args) {
TicTac Toe = new TicTac();
Toe.setVisible(true);
}1) Strings are immutable meaning you can't change them.
2) Even if you could, the two test strings are completely different variables.
3) To change JButton text, you should call its setText method.
4) For a JButton to perform an action on button press, it needs to have an actionlistener added to it via the addActionListener(...) method.
5) Please read, study, and review the Sun Swing tutorials. You will benefit greatly from having a solid foundation in Swing basics before you try coding in Swing.
Good luck.
Edit: a small example code (SSCCE, if you will):
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class Frame extends JFrame
public Frame()
JPanel panel = new JPanel();
JButton button = new JButton("Before Update");
button.addActionListener(new ButtonListener()); // add actionlistener here
panel.add(button);
setContentPane(panel);
pack();
setTitle("Frame");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
private class ButtonListener implements ActionListener
public void actionPerformed(ActionEvent e)
// get the button that called this action
JButton button = (JButton)e.getSource();
// update the button's text
button.setText("After update");
public static void main(String[] args)
SwingUtilities.invokeLater(new Runnable()
@Override
public void run()
new Frame().setVisible(true);
}Edited by: Encephalopathic on Apr 28, 2008 9:26 PM -
Problem with append += text in Text Field
Hi guys
i have a problem with append text.
I have one array which contain some city names, like CityArea=["NAME 1", "NAME2" ...etc];
Then i have one String and one Text Field.
Using for loop im getting right results. But when im running script again then im getting same text again.
F.ex.
First time:
City name: Name 1
City name: Name 2
Second time:
City name: Name 1
City name: Name 2
City name: Name 1
City name: Name 2
I have tried to make TextField to and String to Null and delete it, but it's appearing again.. :/
How to avoid this?
Here is script:
for (var i1:int = 0; i1 < CityArea.length; i1++)
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'> "+CityArea[i1]+"</FONT></P>";
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
_CityAreaTF1 = new TextField();
_CityAreaTF1.border = true;
_CityAreaTF1.wordWrap = true;
_CityAreaTF1.multiline = true;
_CityAreaTF1.selectable = false;
_CityAreaTF1.antiAliasType = AntiAliasType.ADVANCED;
_CityAreaTF1.name = "CityAreaTF1";
_CityAreaTF1.embedFonts = true;
_CityAreaTF1.htmlText = _CityAreaString1.toUpperCase();I think i found why.
There was no problem with TextField.
There was a problem with Array. "CityArea"
So each time I executed script it added new string in Array. And that is because i got like:
TextField
City 1
City 2
City 1
City 2
Running this script is Ok:
for (var i1:int = 0; i1 < CityArea.length; i1++)
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'> "+CityArea[i1]+"</FONT></P>";
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
But outside of this for loop there is another for loop for adding Cities in CityArray.
I fixed it by adding empty array at the start of function
function myFunc():void
CityArea = [ ]; // Empty array fixed this issue
// LOOP FOR ADDING SHOPS IN CITY AREA
for (var j:int = 0; j < _Shops; j++)
CityArea.push(_Shop);
// FOR LOOP TO ADDING SHOPS IN STRING
for (var i1:int = 0; i1 < CityArea.length; i1++)
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='32' COLOR='#ffffff'> "+CityArea[i1]+"</FONT></P>";
_CityAreaString1 += "<P ALIGN='LEFT'><FONT FACE='Verdana' SIZE='5' COLOR='#ffffff'><BR></FONT></P>";
Thank you for your help kglad -
I am VERY new at this...I'm following directions in "Hands On
Training Flash 8 book...
When creating an input text field the book instructs me to
embed the font using the embed button that is in the Property
Inspector...When I do this and test the movie there is no cursor in
the text box and I am not allowed to type in it..
If I do not embed the font then when I test the movie the
input field works. I click on it and get a cursor and am able to
enter information.
Is the book I'm using wrong here or is there something I'm
missing? Thank you.Hi Nirnalatha,
I have newly joined this forum and while going through the
posts I came across your post which I thought I could help out. But
I think I am too late for the reply.
I am also into Flashlite development couple of months from
now. Coming to your questions:
1. Textbox problem: I am surprised to know that E70 mobiles
(Device central list has E70-1 only) does not show input text box
when cursor is in input box. Anyways its a good thing that you dont
get an additonal input box. Like all J2ME applications you will be
able to type the text inline. Infact we had reverse problem where I
was told to create inline edit input box instead of flashlite input
box. I think this is the mobile setting. Check the device features
in the Adobe Device Central under Flash - Standalone player - Text
and Fonts features. It will be mentioned whether inline text is
allowed or not.
2. Soft keys issues: You need to use
fscommand2("SetSoftKeys", "Previous", "Next");
and use a key listener in order to override the Mobile
Softkey commands. Check out the flashlite help which clearly
explains this.
Hope I have given youa way to solve ur problem. -
Generate input text fields dynamically on clicking a image with adf??
Is it possible to generate input text fields dynamically on clicking a image with adf??
The functionality to add and remove text field from UI with ADF??Yes, you can dynamically add components to a page.
[url http://www.nearinfinity.com/blogs/michael_bevels/dynamic_forms_using_jsf.html]Here is an example - it demonstrates with ICE Faces components, but the concept is the same for any type of component, including ADF
John -
How Can i send the data entered in Input text fields to e-mail?
Iam Jennifer, Iam having a doubt in Flash, I hope that you
are going to solve my problem, Iam taking 3 Static text fields as
Name, Age and Country and besides each and every static text fields
i have taken 3 input text fields with different instance names,
when i enter my Name, Age and Country details in the input text
fields and after entering those details if user clicks the submit
button the data should be send to some mail address, is it possible
Im not so good at action script, but i hope that any one can
help me...
Iam attaching the action script code also, please find the
attachment below, the actions are given to button.
Attach Code
Btn.onPress = function ()
mail_lv = new LoadVars();
mail_lv.dummy1 = "";
mail_lv.subject = "Details";
mail_lv.message = "hi";
mail_lv.username = "name_txt".text;
mail_lv.age = "age_txt".text;
mail_lv.country = "country_txt".text;
mail_lv.onLoad = function ()
trace("Sent successfully...");
trace("mail_lv.subject = " + mail_lv.subject);
trace("mail_lv.message = " + mail_lv.message);
mail_lv.send("mailto:[email protected]", "_blank");The names of your variables, "name_txt", for instance, should
NOT have quotes around them. Use:
mail_lv.username = name_txt.text;
mail_lv.age = age_txt.text;
mail_lv.country = country_txt.text; -
Instance name and Var for Input Text fields
I have several Input Text fields, as a form, linked to a PHP
script for which I require Var's for each field.
But I also need Instance names for each field, so I can fix
the tabIndex.
Yet, everytime I test my movie, the text fields have their
Paths (_level0.fName) written in them.
They are normally blank, and I've tried putting in some text
of my own, but the Var name is still displayed in the text fields.
Is there any way I can stop that from happening, and keep
both the Instance names and Var's in-place.
As far as I know, I need both the Instance name (for the
tabIndex) and the Var (for the PHP script) or is there a way that
the tabIndex and PHP script will work with either of the two?
Thanks
Chaz.Can you use a different name for ‘instance name’
and ‘var’? That seems to solve the problem but I
don’t know if that helps you in your situation.
For an example;
Instance name: test_txt
Var: test
Maybe you are looking for
-
HT4623 Why can I not get the iPhoto and iMovie apps for free on my new iPad air
I have an iPhone 5 but just got an iPad air for Christmas. I didn't realize I set my iPad up under another Apple ID until my phone was not syncing with my iPad so I erased all content and reset the device to put them both on the same Apple ID. The pr
-
Where can I get driver for network scanning on my Laserjet Multifunction M1120n for Windows 7?
Where can I get driver for network scanning on my Laserjet Multifunction M1120n for Windows 7 64bit? It must be the Windows 7 driver of Scanto.msi. Thank you for your support. This question was solved. View Solution.
-
Can I enlarge the size of the templates in iWeb
I use the templates in iWeb 1.1.2. Is there a possibility to enlarge the size of the standard templates sothat a template can be full screen if you publish it on the Web? Greetings, Volkert.
-
Getting absolute position of component
hi i want to take a screenshot of the content of a specific JFrame in my ui what the code below does is take a screenshot of my screen starting at its (0, 0) coordinates but not starting at the so called (0, 0) of the JFrame Robot robot = new Ro
-
[solved] changed owner of /usr /etc /var folders ..
Hello There ! I messed up, as being the root user, did a chown -R root /usr /var /etc I'm using KDE 4.2, and I bet I messed up with the system. How can I recover this ? I cannot start up kde from KDM, just dont know how can I make it work. I reinstal