SEAM #DataModelSelection scope - java

Suppouse I have a dataTable, with one of it's columns being a commandLink, which opens a rich:modalPanel with detailed info about the item. The question is, whether the #DataModelSelection field will still have the row on which I clicked on the commandLink when the modalPanel is open? Currently I try to show one of items' fields with simple outputText and it's not rendered.

Ok, reading the following article helped.

Related

How to select multiple radios inside p:selectOneRadio

I'd like to display a web page that shows the results of a test containing numerous multiple choice type questions. I have the list of options, the candidate's answer and the correct answer to the questions.
For each question I'd like to display a set of disabled radio buttons where you see the correct answer and the candidate's answer. The problem is that when the two differs I have to display two checked radio buttons (background color would indicate the correct one) and it seems to me that primefaces selectOneRadio or the h:selectOneRadio component don't provide a standard way to do that.
Could you suggest something? Should I try to set it somehow from javascript, or is there a way to do this with standard components based on information acquired from the backing JSF bean?

ADF Query Panel with Table is not working

I have two JSF pages search.jsf and details.jsf . In the search.jsf I have an ADF search form. I just drag and drop the View Criteria as ADF Query Panel with Table. The result of user search will be shown in an ADF table. One of the column is a link that will direct the user to the details.jsf to show the details of the selected row.
Every things works fine for the first time in the search.jsf . Problem is when the user go back from details.jsf to search.jsf , The Search form is not working and only showing the previous selected row and after pressing default search button multiple times this error message is coming:
Definition name 1 of type Attribute is invalid.
I search in the internet. Some have similar problem says that there is problem in the attributes naming. I Checked nothing wrong, I even create new view object and still facing the same error. Also, I checked the page definition, DataBindings and DataControl files, no problems there.
I am using Jdeveloper 11.1.2.3 with ADF Technology
That error generally indicates that there was a change in your View Objects attributes (query, names etc). Try creating a new search page, and see if it works. If it is OK, try to figure out what has been changed or in the worst case re-implement the searchPage. Take a look even in the VO used in "details.jsf" just to be sure. Tung

Un-editing / removing focus from a Vaadin TextField

Does anyone know how to cancel the editing state of a Vaadin TextField that's inside a Table? My concrete use case is that I have a table with multiple TextFields in it, that show different values when they are edited as opposed to viewed. The user clicks on a TextField, this makes the field display its editable content. If the user changes his mind and wants to stop editing the field (by pressing ESC) the field should cancel any changes the user might have made to its content and revert to displaying its view value.
So far I've been able to move the focus to another TextField but this is not what I ultimately want to achieve. Moving the focus to the parent Table would be acceptable, but doing so programmatically by calling table.focus() does not produce any visible results.
Thanks for your help,
Radu
To revert the value of any field - including TextField - before it gets committed, AbstractField#discard()

In ADF Page refresh

I have three tables in a page. When I click on a button, I update only one of the tables. But since I use request scope on button event, the page reloads fully and updated value gets lost. Can you suggest a solution, so that my data will be displayed after button event.
Have you tried to set partialSubmit="true" in your button? If you set this attribute, you must set in each table a PartialTriggers to the button.
I hope help you.
Marcos.
The data has to be in the viewScope/pageFlowScope depending on whether its in a bounded taskFlow or not.
And in your button event you need to update the data in the viewScope/pageFlowScope and then bind your tables with those data.
All the event handlers can be in backingBean scope and not necessarily be in requestScope.

JSF(1.2) DataTable edit row with button click [duplicate]

I have list of rows displayed on the screen. These rows are iterated using the JSF datatable component. Now my requirement is to edit any particular row which user clicked.
Is there any way to make the fields editable while user clicking the row. Then user will fill the details and save it.
Any suggestions would be appreciated.
Creating editable data tables is very easy with jsf. Here is a good tutorial on this. But "making it editable when user clicks on it" is not supported out of the box. And this is where JSF shines, you just need to find for a JSF component (open source or commercial) compatible with your JSF (1.x or 2.x) version and start using it.
My first suggestion for you is to check and see if PrimeFaces provides this kind of component. Here is the component you are looking for.

Categories