pumpii breka

Greenhorn
+ Follow
since May 05, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by pumpii breka

I understand this.

The problem is that we use <f:selectItems ......
And we fill the list dynamically from the database tables.
There is occurrence with required and there is occurrence with not required.
We would like to control this with attribute like a required..
14 years ago
JSF
For example : I have this component on a search form:

<rich:comboBox required="false" value="#{searchController.sessionData.unionSearchCrit}">
<f:selectItem itemValue="Oregon" />
<f:selectItem itemValue="Pennsylvania" />
<f:selectItem itemValue="Rhode Island" />
<f:selectItem itemValue="South Carolina" />
</rich:comboBox>

When the form is shown first time there is no choosen item. This is blank.
And if user chooses an item he will not able to choose the blank ("first") item till then he reload the page.

So I would like to allow for user can cancel his decision.

triki
14 years ago
JSF
The comboBox defaultLabel element is disappeared from the list when a user change value.
required="false"

How can I do that the user can set the first element (which is the default label) again?

triki
14 years ago
JSF