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
.
--- 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
; }
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
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
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:
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
.
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
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
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
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
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
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
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 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
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,
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
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
(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
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
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
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
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
;
}
--- 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
,
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
(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
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
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
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
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
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
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
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
.
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
() {
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
);
for ( int i = 0; i len; i++ )
{
dataFile.add( newDataFile[i] );
}
}
public UISelectMany getDataFileItems()
{
return dataFileItems;
}
}
[/code]
--- Caroline Jen [EMAIL PROTECTED
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
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
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:
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
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?
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
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.
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
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
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
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;
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
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
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
49 matches
Mail list logo