How to Auto Select some RadioButton on page load using ADF/JSF
Hi,
I am learning ADF and need some help. I have multiple radio buttons and couple of text boxes on my page. How can I make some radio button be selected based on some value from a database table and also populate the text boxes with the corrosponding value when a page loads. Any tips on how it can be done using ADF. Any sample tutorial will be helpful.
Thanks
Hi,
when you e.g. use ADF BC then the radio button should be selected automatically based on the value of the attribute. If the row is new then you can have a default value specified in the ADF BC ViewObject attribute.
However, if you just dragged the radio button and checkboxes onto the page - not using any ADF binding - then you will have to create a managed bean with a field variable (incl. setter/getter methods) to link the radio button's value property to it using Expression Language
Frank
Similar Messages
-
How to generate dynamic table in JSPX page?(Use ADF to realize OAF)
Dear all,
My requirment is to realized the a EBS standard OAF page(PDH module) function by ADF technique. The key point is to realize Dynamic Search Layout and Dynamic Result Table Layout by ADF.
If anyone who is skill at OAF and ADF, proficient in PDH module is prefered, your question will be highly appreciated.
Because it is hard to paste image into this thread, so I will appreciate it very much if you can refer the attachment ifile of SR 3-1397372841 for detail information. Sorry for the trouble, I really thanks for your help.
Edited by: user12264776 on 2010/02/22 17:32Hi,
Thanks for the quick reply. I am using JSF for my ADF application.Could u please elaborate how to use the PhaseListener for Auditing user navigation?
Arijit -
How to refresh JSFF page only when page loaded using ADF 11g
Hi
I am facing an issue with prepreModel() usage in the .jsff page fragment. I want to invoke executables only when the specific jsff page get's loaded. I tried using 'prepareModel' as a refresh condition, but I can see always executables are getting executed. Does 'prepareModel' behaves differently for .jsff when compared to .jspx ?
Thanks in AdvanceHi,
ADF Regions have a slightly modified lifecycle. However, prepareModel behaves the same. Its marking a specific time in the ADF request lifecycle when the iterators are refreshed. Try prepareModelIfNeeded
Frank -
How do I "Select All" in a Pages document. I would like to copy and paste more than one paragraph at a time.
I just tab and hold untill the loop shows then let go and I get the menu with select all in it
-
How to manage wait time in between pages loading
Hi,
Could you please help me "How to manage wait time in between pages loading while playback script using etester?
Thanks,
RJ.RJ
You can edit the think time in eTester by:
Expand the tree node and right click on the address bar to select Address Properties, you can then edit the text box called Delay Before PlayBack
If you like to specify think time between actions instead of action groups: right click on the actions ans select properties, there are 2 text boxes in the new window; one for milliseconds and the other for seconds
Hope this helps
Alex -
How can i select some row from multiple row in the same group of data
I want to select some row from multiple row in the same group of data.
ColumnA
Column B
1 OK
1 NG
2 NG
2 NG
3 OK
3 OK
I want the row of group of
ColumnA if ColumnB contain even 'NG'
row , select only one row which Column B = 'NG'
the result i want =
ColumnA Column B
1 NG
2 NG
3 OK
Thank youThat's some awful explanation, but I think this is what you were driving at:
DECLARE @forumTable TABLE (a INT, b CHAR(2))
INSERT INTO @forumTable (a, b)
VALUES
(1, 'OK'),(1, 'NG'),
(2, 'NG'),(2, 'NG'),
(3, 'OK'),(3, 'OK')
SELECT f.a, MIN(COALESCE(f2.b,f.b)) AS b
FROM @forumTable f
LEFT OUTER JOIN @forumTable f2
ON f.a = f2.a
AND f.b <> f2.b
GROUP BY f.a -
APEX dynamic action - How to hide an item after the page loads
Hello
I have a form with item Type, lesson and page. I want to create a dynamic action like "on page load" if Type = x then don't show lesson and page items. .
How do I say if Type=x then don't show lesson and page. otherwise show them.
Please note Dynamic action, Event=Page load
Thankscreate dynamic action like
Event:Change
Selection Type:Item
Item:Type
Condition:Equal To
value:X
Select Action:Hide
Select Items to hide
also create opposite false action
and click on page checkbox below action to yes
Hope this may helps
pars. -
How can I select columns from a table EMP, using Select statement?.
Hi Friends,
How can I select columns from a table EMP?.
I want to select columns of EMP table, using select statement.
Please reply me urgently.
ShahzadSomething like this:
scott@DBA> select empno,ename,job from emp;
EMPNO ENAME JOB
7369 SMITH CLERK
7499 ALLEN SALESMAN
7521 WARD SALESMAN
7566 JONES MANAGER
7654 MARTIN SALESMAN
7698 BLAKE MANAGER
7782 CLARK MANAGER
7788 SCOTT ANALYST
7839 KING PRESIDENT
7844 TURNER SALESMAN
7876 ADAMS CLERK
7900 JAMES CLERK
7902 FORD ANALYST
7934 MILLER CLERK
14 rows selected.Check the documentation:
http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_10002.htm#sthref9697
Message was edited by:
Delfino Nunez -
How to hide business process stage on page load in crm 2013
Please tell me how to hide process stage on page load in crm 2013.
for example: Develop, Propose,Quotation... these are business process stages and I have a custom field named "type"
If type value =1 then hide Propose stageHello,
That is not possible. What I would suggest is to create several processes for same entity and switch between them using plugin. Sample code for it -
https://deepakexploring.wordpress.com/tag/updating-process-id-in-crm-2013/
Dynamics CRM MVP/ Technical Evangelist at
SlickData LLC
My blog -
How to set the bind variable on page load and execute query ?
Hi All,
I am using Jdeveloper 11.1.1.5
I have a table called "Employee"
Columns :- id , name , location
Data :- 1, ,james , chicago
2 ,Raj ,capetown
Now i have another webservice(created as a webservice dataControl) which sends me the "id" on each time my page loads.Now the id which has been returned by webservice should be incorporated in my VO Query as in where clause to fetch the data for the respective "id" in that "Employee" table and should be rendered on form.
Eg :- Id "2" has been sent by the webservice then the record should be fetched from database should be "2","raj","capetown".
I know that there would be necessity of bind variable , but how do i set the bind variable on page load ?
How can i use the bind variable appropriately ??
Please suggest !!!!
Thanks.Hi,
Check
http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/web_services.htm#CJADCDBG
http://thepeninsulasedge.com/frank_nimphius/2011/02/18/adf-code-corner-sample-73-released-hands-on-creating-a-search-form-using-a-pojo-ws-and-the-web-service-data-control/
-Suresh -
How to execute a view object on page load
Hi
I have got two pages, one is login page and the other is search page.
When ever the user who has logged in, navigates to the search page,
following events should occur.
1) a view object should get executed. This view object should check whether there is a default search for the user who has logged in( the check is made based on a boolean variable). This particular view object has got a bind variable.
a) logged in user.
Based on who ever has logged in, the bind variable should be set as the logged in user and all the attributes concerning the default search for the logged in user must be populated in select input text components in the search page. ( there are certain select input text components in the search page).
If there is no default search for the logged in user, then the search page should open up, but without any values populated in the select input text component.
Please let me know if i am not clear with my question.
My ultimate aim is to execute a view object on page load for which the bind variable is set as the logged in user.actually, your requirement isn't exactly to execute a view object on "a" page load, as in ageneric page load, that would be little more intensive , with you requiring an invokeAction in your page bindings etc.
Yours, i presume is a simple case wherein if you link your login command button at the initial screen to a method in your managed bean, should do the trick. Within the managed bean method code ,
get the username ( which you can probably store on the request at time of login) ,
get hold of your view object,
set the bind variable ,
execute the query on the VO ,
return an appropriate string outcome , which is handled by your faces context navigation rules.
Fairly straightforward procedure, unless there's something extra you want to do apart from just that.
K -
How to get selected row values in a table using check box
Hi ADF Experts,
JDEV Version 11.1.1.7.0
My requirement is getting the selected row valuesof a af:table using a checkbox(multi select).
Thanks,
AnimeshHi,
add a transient attribute to the POJO entity and update this through a check box. The ensure you have autosubmit=true set on the check box. In a value change listener set or remove the row's checbox attribute value
Frank -
Store selected days as integer in db using ADF
Hi,
I'm using Jdeveloper 11.1.2.3.0
We're migrating a JSP/Servlet application to ADF.
In one of the pages, we let the user select the days on which he would like an operation to be accomplished.
Basically, we're using bitwise operations to convert the selected fields from a binary string into an integer, and that integer is stored in the db.
You can see the basic idea here
Since we cannot alter the table, we need to find a workaround for ADF.
I thought about creating a transient attribute in the view object that holds the binary string, and in that way the original attribute(integer) will be calculated by converting it from binary to decimal in the code.
Now my problem is how can I get the selected days from the page and store them in the string. What should I use as component? And how should the LOV(which I think is going to be necessary) behave?
Appreciate your help,
MoHi Timo,
Thank you again for your valuable input.
I was able to use <af:selectManyCheckbox> to accomplish my task :)
I think I forgot to mention that I was using it in a table, so I wasn't sure how to use a converter for that.
However, I got on the right track using this blogpost by Umesh Agarwal [http://umeshagarwal24.blogspot.com/2012/06/selectmanycheckbox-component-in-table.html].
I didn't do it the same way he did though. All I needed to do was set the value property of <af:selectManyCheckbox> to a List variable in a bean, and then modified the
getter and setter of that variable to implement my logic. It works great!
Again thank you for pointing me in the right direction
Mo -
JSF Pages are not rendering correctly when loaded using Non JSF actions
Hi All,
This problem is irritating me and I am posting the same query for the third time here.
When I come from non jsf actions such as page submitting using Javascript, clicking anchor link, clicking normal Html submit button and so on my page is not rendering correctlly .
In other words, My first GET method/Post method works perfectly for the first time when the page is loaded.
But when we try to access the page for the second time, although logical work is perfect in bean, I am getting same old page.
How to resolve this issue?
or
Is this Bug of Sun's Implementation of JSF Framework.
Thanks,
SudhakarHi Sudhakar,
There is a discussion about refreshing a page, Take a look at the below thread
http://swforum.sun.com/jive/thread.jspa?threadID=55660
Hope this what you are looking for
MJ -
After upgrading to Mavericks, some websites won't load (using wifi)?
Hey guys,
I upgraded my Macbook Pro to Mavericks last December. I had some problems when loading some websites (such as eBay, Society6, etc) while I was at home using my home wifi in Indonesia. It's like, sometimes these websites won't load, but sometimes they do.
I've tried different browsers and it's still the same. I thought, it was just the wifi at my home in Indonesia that's problematic, because at work (using cable), the internet's just fine. But THEN, I am now here in Australia, I don't usually have problems with my aprtment's wifi at all, but now it's doing that thing. Some websites won't load properly or won't load at all. I realized that this is most likely has something to do with my laptop (ie. upgrading to Mavericks. I've never had this problem before), because the wifi works just fine with my smartphone and my iPod.
Has anyone encountered similar problem? How do you fix this?
Thanks so much,
SHello sharlegit
Try creating a new network location and test to see if the same thing happens of certain websites not working.
OS X Mavericks: Add a network location
http://support.apple.com/kb/PH13788
Regards,
-Norm G.
Maybe you are looking for
-
Best Practices for Removing Shots from BDMV folder
CS6 Production Premium Suite Win7x64 Canon XA10 I would appreciate feedback on the best practices for the following situation: Using Windows Explorer, I copy the BDMV folder from the XA10 to my Talk2 project folder. The BDMV folder has three one hour
-
I need Upgrade WiSM to 7.0.235.3
I have a 6509-E with Sup WS-SUP720-3B IOS (s72033-ipservicesk9_wan-mz.122-18.SXF7) And i need upgrade my Wism to software version 7.0.235.3, and i have a question: I have to update the ios Supervisor? or can i upgrade to 7.0.235.3 with Supervisor I
-
Who to access the broken dvd.
Hello you lot. I have a Presario Sr5129uk Intel version which needs a new dvd buyer. I got the font cover off and the Sie one. Could not find where the front blank bezel screws are. Thanks.
-
Hi Experts, Here my client wants to move their system PRD to a new server that they acquired. The environment is Windows on Oracle 8.1.7 with 4.6 C. So i would like to know that best way of moving the system to the new server. The Homogeneous System
-
Unable to Purchase iPhotoBook due to IPhoto Billing/Account Changes
+I can not purchase a book as well. Computer keeps saying my account has been changed and I need to confirm it before buying. I keep doing what I think is confirming my account, then I order the book all over again and the cycle begins again. Would l