How to Hide Columns of a Table

2007-08-06 Thread Caroline Jen
I am coding in JSF and I rendered a table using the h:dataTable ... tag. Because once a row is selected, I need the cell value in some columns (poeColumn, distanceColumn, and directionColumn). But those columns have to be hidden in the web page according to client's requirement. For I need the

Re: Want to Stop Text Wrap Around in Table Cells

2007-07-12 Thread Caroline Jen
. --- Andrew Robinson [EMAIL PROTECTED] wrote: Do you have children elements of the DIV? (I've seen problems with that) Just to check, does white-space: pre; work? On 7/11/07, Caroline Jen [EMAIL PROTECTED] wrote: I followed your suggestion to put div inside the column. But, the text

Re: Want to Stop Text Wrap Around in Table Cells

2007-07-11 Thread Caroline Jen
; } h:dataTable h:column div class=nowrap.../div /h:column /h:dataTable On 7/10/07, Caroline Jen [EMAIL PROTECTED] wrote: I display a table inside a div because I want to show scrollbars. However, I have wrapped around text inside table cells although I provide enough width

Re: Want to Stop Text Wrap Around in Table Cells

2007-07-11 Thread Caroline Jen
I followed your suggestion to put div inside the column. But, the text still wraps around. Is it because I use IE6? --- Andrew Robinson [EMAIL PROTECTED] wrote: I has to be inside the columns, not outside the table, I did that on purpose On 7/11/07, Caroline Jen [EMAIL PROTECTED] wrote

Want to Stop Text Wrap Around in Table Cells

2007-07-10 Thread Caroline Jen
I display a table inside a div because I want to show scrollbars. However, I have wrapped around text inside table cells although I provide enough width to each column and used white-space:nowrap; overflow-x:scroll. How do I make all text in each table cell displayed in one single line? code:

Re: Use Up/Down Arrow Key to Move Up/Down of h:dataTable with Scrollbars

2007-07-05 Thread Caroline Jen
Thanks for the link. I think I can struggle through the problems. -Caroline --- Andrew Robinson [EMAIL PROTECTED] wrote: http://tinyurl.com/3374pw On 7/3/07, Caroline Jen [EMAIL PROTECTED] wrote: But, I am using IE 6. I tried to hold the focus on the highlighted first row

Re: Use Up/Down Arrow Key to Move Up/Down of h:dataTable with Scrollbars

2007-07-03 Thread Caroline Jen
. In your example, you could move the control around, putting it in each table row and using the javascript scroll commands (I remember those being different on IE and firefox too). On 6/28/07, Caroline Jen [EMAIL PROTECTED] wrote: My web pages are coded in JSF. My question is JavaScript

Re: Use Up/Down Arrow Key to Move Up/Down of h:dataTable with Scrollbars

2007-07-03 Thread Caroline Jen
focus and cannot receive key events. On 7/3/07, Caroline Jen [EMAIL PROTECTED] wrote: Hi, I have made something work - I am able to use the keyboard down arrow key to highlight the next row in the table or use the keyboard up arrow key to highlight the previous row in the table

Use Up/Down Arrow Key to Move Up/Down of h:dataTable with Scrollbars

2007-06-28 Thread Caroline Jen
My web pages are coded in JSF. My question is JavaScript related. I know maybe it is a wrong forum to post this question but I simply want to take a chance. I put a h:datatable inside the div tag. And I have created a scrollbar for the div ... tag. The height of the div ... is set to

Re-display Table Based on Filter Criterion Provided

2007-06-18 Thread Caroline Jen
I have a table displayed using the h:dataTable and the data are of the ArrayDataModel type. Now, I have to re-display the table again and again based on a filter criterion provided in a h:inputText field. I believe there is re-usable code that I can apply. Nevertheless, I searched on

[ADF]Having Difficult Time to Figure Out Using the af:selectInputText Tag

2007-06-12 Thread Caroline Jen
This is my first time using the ADF tags. The af:selectInputText is an input component that can launch a dialog and automatically accept its return value. My pop-up is a data table that provides code and description. And the selection made will be return to the parent page and the code will be

To Use Trinidad in JSF

2007-06-11 Thread Caroline Jen
I have JSF all set up and working. There is a tag provided by the Trinidad, inputListOfValues, particularly suit the need of the project on which I am working. How do I import the Trinidad into JSF? I found the howtos

To Use Trinidad in JSF

2007-06-11 Thread Caroline Jen
I have JSF all set up and working. There is a tag provided by the Trinidad, inputListOfValues, particularly suit the need of the project on which I am working. How do I import the Trinidad into JSF? I found the howtos

What Would the Transfer Object Look Like If I Have a List of Objects

2007-06-08 Thread Caroline Jen
What would the transfer object look like If I have a List of objects and each object has its properties? Do I have a HashSet in my transfer object? To clarify my question, let me give an example. Say, I have a store and I sell music CDs. Each CD has composer, title, and price as its

Transfer Object in JSF, Spring, and Hibernate

2007-06-07 Thread Caroline Jen
The application on which I am working deploys the JavaServer Faces, Spring and Hibernate frameworks. We are going to use the transfer object to move data between J2EE tiers from the front end to the back end and vice versa. In addition, data types may need to be converted -- At the front end,

Re: More Than One Forms in JSF Page Lead To Problems

2007-06-01 Thread Caroline Jen
Caroline Jen wrote: Thanks a lot for saving me from banging my head against the wall. --- Mike Kienenberger [EMAIL PROTECTED] wrote: Exactly. This is a known limitation of using h:form. Submitting an h:form will cause all submitted values to be lost in the other forms on the page

Need More Than One Forms in JSF Page

2007-05-30 Thread Caroline Jen
I am building a JSF page. There is a QUERY functionality on top of the page. Therefore, I provide some input fields for users to enter search criteria. Those input fields in this QUERY form (form A) need validation. Below the QUERY, I have another form (form B). The form B has several buttons

Re: More Than One Forms in JSF Page Lead To Problems

2007-05-30 Thread Caroline Jen
(or Tobago subform or Trinidad subform). On 5/30/07, Caroline Jen [EMAIL PROTECTED] wrote: I am using JSF only; therefore, I cannot follow the best practice. The two h:form/h:form approach give me some problem, which does not occur if JSF has only one form -- My form B

JSF Table - How to Clean-up Previous Selections

2007-05-25 Thread Caroline Jen
I am doing something very basic. First, I display my 1stTable with a checkbox for each row (no problem). My DepartureManagementBean.java read the user selected rows and prepare for displaying my 2ndTable without checkbox for each row. My 2ndTable displays only the rows that are selected from the

Re: JSF Table - How to Clean-up Previous Selections

2007-05-25 Thread Caroline Jen
PROTECTED] wrote: or just a 2007/5/25, Mike Kienenberger [EMAIL PROTECTED]: On 5/25/07, Caroline Jen [EMAIL PROTECTED] wrote: public String updateDeparturePersonnel() { departurePersonnel.clear(); at this point? // iterate through

text-align in h:dataTable

2005-10-26 Thread Caroline Jen
I created a data table with four columns. By default, the text of each column of the table is left aligned. I am trying to make the text of certain columns of the table to be 'centered'. And I tried to use the columnClasses in the dataTable tag to do it but failed (i.e. all text is still left

Re: UISelectMany. Millions of Thanks for Your Guidance, Mr. Weber.

2005-10-13 Thread Caroline Jen
multiple selections right away. By the way, where do I find documentations that illustrate how to use UIs? -Caroline --- Volker Weber [EMAIL PROTECTED] wrote: Hi Caroline, Caroline Jen wrote: ... Meanwhile, would you mind advising: You want to clear the selected Items? just

Re: UISelectMany. Mr. Weber, Question Regarding Cleaning Multiple Selections

2005-10-13 Thread Caroline Jen
; } --- Volker Weber [EMAIL PROTECTED] wrote: Hi Caroline, Caroline Jen wrote: ... Meanwhile, would you mind advising: You want to clear the selected Items? just clear or null the field in the bean. public void clear(ActionEvent e) { FacesContext facesContext

Re: UISelectMany. Mr. Weber, Regarding Cleaning Multiple Selections

2005-10-13 Thread Caroline Jen
, Caroline Jen wrote: ... Meanwhile, would you mind advising: You want to clear the selected Items? just clear or null the field in the bean. public void clear(ActionEvent e) { FacesContext facesContext = FacesContext.getCurrentInstance(); ValueBinding vb

Re: UISelectMany (Problem Resolved). Mr. Weber, Regarding Cleaning Multiple Selections

2005-10-13 Thread Caroline Jen
(not be highlighted) on the screen when I re-run the application. Thanks again. Have a nice day. Warm Regards, Caroline --- Caroline Jen [EMAIL PROTECTED] wrote: Hi Volker, I asked a wrong question in my previous post. Sorry. Your code works fine. It cleans the multiple

I Created a UISelectMany, But, It Was Not Acceptable to the f:selectItems

2005-10-12 Thread Caroline Jen
Please help me. I have been struggling for days. If anybody has the experience. I got a runtime error: java.lang.IllegalArgumentException: Conversion Error setting value ''{0}'' for ''{1}''. com.sun.faces.util.Util.getSelectItems(Util.java:628) Usually when we encounter this error using

RE: I Created a UISelectMany, But, It Was Not Acceptable to the f:selectItems

2005-10-12 Thread Caroline Jen
Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Miércoles, 12 de Octubre de 2005 11:05 a.m. To: users@myfaces.apache.org Subject: I Created a UISelectMany, But, It Was Not Acceptable to the f:selectItems Please help me. I have been struggling for days. If anybody has

RE: I Created a UISelectMany, But, It Was Not Acceptable to the f:selectItems

2005-10-12 Thread Caroline Jen
expression that points to a SelectItem, an array or Collection of SelectItem objects, or a Map mapping labels to values. Saludos. Guillermo. -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Miércoles, 12 de Octubre de 2005 12:35 p.m. To: MyFaces Discussion

Re: I Created a UISelectMany, But, It Was Not Acceptable to the f:selectItems

2005-10-12 Thread Caroline Jen
clearer what you want. Regards Volker Weber Caroline Jen wrote: I understand what you are talking about. I created select one and select many long time ago without any problem. I think the conclusion is that it is NOT POSSIBLE to supply a UISelectMany to render a list

UISelectMany and Argument Type Mismatch

2005-10-11 Thread Caroline Jen
I used the UISelectItem to set its value to the SelectItem (I have many SelectItme). Then, I added each UISelectItem to the UISelectMany . When I displayed a list box, I got the runtime error: IllegalArgumentException: argument type mismatch In my JSP, I create a list box for multiple

How to Access Another Class's Property Value That is Defined in the faces-config.xml?

2005-10-11 Thread Caroline Jen
I have a private property dataTransferType with public getter and setter in the DataFile class. The initial value of the dataTransferType is defined in the faces-config.xml file. I want to get the initial value of the dataTransferType in another class and the compiler does not like the way I

Re: UISelectMany and Argument Type Mismatch

2005-10-11 Thread Caroline Jen
to use the @value attribute. Regards, Bruno 2005/10/11, Caroline Jen [EMAIL PROTECTED]: I used the UISelectItem to set its value to the SelectItem (I have many SelectItme). Then, I added each UISelectItem to the UISelectMany . When I displayed a list box, I got the runtime error

Re: UISelectMany and Argument Type Mismatch

2005-10-11 Thread Caroline Jen
. Regards, Bruno 2005/10/11, Caroline Jen [EMAIL PROTECTED]: I used the UISelectItem to set its value to the SelectItem (I have many SelectItme). Then, I added each UISelectItem to the UISelectMany . When I displayed a list box, I got the runtime error: IllegalArgumentException

Re: UISelectMany and Argument Type Mismatch

2005-10-11 Thread Caroline Jen
() { return dataFileItems; } public void setPreSelection(String[] preSelection) { this.preSelection = preSelection; } } } [/code] Hope that helps :-) Bruno 2005/10/11, Caroline Jen [EMAIL PROTECTED]: Sorry, I am completely

[Topic Changed] UISelectMany and EvaluationException

2005-10-11 Thread Caroline Jen
); for ( int i = 0; i len; i++ ) { dataFile.add( newDataFile[i] ); } } public UISelectMany getDataFileItems() { return dataFileItems; } } [/code] --- Caroline Jen [EMAIL PROTECTED

Re: [Topic Changed] UISelectMany and EvaluationException

2005-10-11 Thread Caroline Jen
the code incompletly. but from your exception it looks like return dataFile.toArray(); throws a java.lang.NullPointerException. Bye Caroline Jen wrote: I have gotten rid of the Argument Type Mismatch problem. I found that if I use UISelectMany, user selections from a list box

Want a Default Selected Radio Button. What to Do?

2005-10-07 Thread Caroline Jen
I want to show a default selected radio button when the web page is loaded for the first time. Normally, I create a set of radio buttons this way: [code] h:selectOneRadio value=#{dataManagementBean.dataTransferType} layout=pageDirection f:selectItems

The Navigation Did Not Happen! The Original Web Page is Redisplayed.

2005-10-06 Thread Caroline Jen
I do not understand why my web page does not navigate to the next web page. My web page screen1 has a command button and it has an action attribute. [code] action=#{fileManagementBean.displaySelectedFiles} [/code] The action invokes a method in the backing bean and the method returns a String:

Problem with Clear the Submitted Value of Multiple Selections from selectManyListbox

2005-10-06 Thread Caroline Jen
I have a selectManyListbox where users can make multiple selections. The listbox is coded this way: [code] h:selectManyListbox value=#{fileManagementBean.dataFile} f:selectItems value=#{fileManagementBean.dataFileItems}/ /h:selectManyListbox [/code] The dataFileItems is a List of SelectItem

How to Clear the Multiple Selections That a User Has Made in the selectManyListbox?

2005-10-04 Thread Caroline Jen
What are the ways to clear the multiple selections that a user has made in a h:selectManyListbox before the user submits the form? Do I have to provide a button in the web page called CLEAR to invoke an action to clear those multiple selections?

How to Pass a Value from h:inputText to JavaScript?

2005-09-29 Thread Caroline Jen
I have to use JSF to pop up a window from the parent window. In the popup window, I have to pass the value that is entered in a h:inputText back to a text field in the parent window. In order to make sure that I know the way to communicate between the parent window and the popup window, I have

Re: selectOneRadio in myfaces 1.1

2005-09-28 Thread Caroline Jen
Hi Paul, Thanks for the information regarding that the bug with the ValueChangeListener in the selectOneRadio tag has been fixed in the nightly build. Please advise me which jar files that I have to replace because I am using an IDE, which has its own built-in JSF version.

Re: AW: selectOneRadio in myfaces 1.1

2005-09-28 Thread Caroline Jen
something like that h:selectOneRadio value=#{bean.id} f:selectItem itemValue=#{person.id}/ /h:selectOneRadio regards -Ursprüngliche Nachricht- Von: Caroline Jen [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 28. September 2005 15:56 An: MyFaces Discussion; stefanom Betreff: Re

Re: selectOneRadio Problem - Conversion Error setting value ''{0}'' for ''{1}''.

2005-09-28 Thread Caroline Jen
as checked because of a comparison of the variable which is not converted into String so the result of the equals method returns false each time. On Wed, 28 Sep 2005 15:55:56 +0200, Caroline Jen [EMAIL PROTECTED] wrote: Hi Stefano, Is this the error message you are getting when

Display a Different List Box Depending on the Radio Button Selected

2005-09-27 Thread Caroline Jen
I have put a ValueChangeListener for my radio button. I have two radio buttons. And I have two list boxes. List box A will be displayed if the first radio button is clicked by users. List box B will be displayed if the second radio button is clicked by users. To have something displayed in

Prompt Different selectOneListbox Depending on the Radio Button Clicked

2005-09-21 Thread Caroline Jen
How to prompt a specific selectOneListbox depending on the radio button that the user clicks? I have created a set of radio buttons: [CODE] import javax.faces.model.SelectItem; public class DataManagementBean { private String defaultSelectedRecord; private SelectItem[] records;

Problem Retrieving Data from a Submitted h:dataTable ...

2005-09-02 Thread Caroline Jen
I ran into a runtime ClassCastException to retrieve data from a h:dataTable ... after clicking on the button of that web page. Here is that web page xxx.jsp: h:dataTable value=#{arrival.personnel} var=pInfo .. .. h:commandButton id=Depart value=DEPART

Re: Problem Retrieving Data from a Submitted h:dataTable ...

2005-09-02 Thread Caroline Jen
Galligan [EMAIL PROTECTED] wrote: I replied on java ranch. Basically, you're returning a List but should be returning a String. Check out the java ranch post for details. Caroline Jen wrote: I ran into a runtime ClassCastException to retrieve data from a h:dataTable ... after

Process the Submitted Data Table and Create Another List

2005-08-31 Thread Caroline Jen
I have create a data table A based on a List. To create this data table A with a checkbox in each row of the table, I specify the following: a. managed-bean-class: packageName.ListAction b. managed-bean-name: listAction c. The List is called personnel. d. The properties of the PersonnelBean