How to create adf component dynamically from backing bean
Hi i,am using dev 11g ver2..
my requirement is to create a popup like an lov ,
i need to create adf controls at the run time based on datatype of the table field
Edited by: [email protected] on Jul 9, 2009 3:56 AM
Hi Abhilash,
Following sample could help you:
//creates an instance of popup and set the id, which is equal to the tag <af:popup id="pop"/> in jsf page
oracle.adf.view.rich.component.rich.RichPopup popup = new oracle.adf.view.rich.component.rich.RichPopup();
popup.setId("pop");
//creates an instance of dialog and sets its properties, which is equal to the tag <af:dialog id="dlg" title="Title"/> in jsf page
oracle.adf.view.rich.component.rich.RichDialog dialog = new oracle.adf.view.rich.component.rich.RichDialog();
dialog.setId("dlg");
dialog.setTitle("title");
//creates an instance of dialog and sets its properties, which is equal to the tag <af:outputText id="otindlg" value="Welcome"/>
oracle.adf.view.rich.component.rich.output.RichOutputText opText = new oracle.adf.view.rich.component.rich.output.RichOutputText();
opText.setId("otindlg");
opText.setValue("Welcome");
/*adds ouputText as child to dialog, which is jsf equivalent of
<af:dialog id="dlg" title="Title">
<af:outputText id="otindlg" value="Welcome"/>
</af:dialog>
dialog.getChildren().add(opText);
/*adds dialog as child to popup, which is jsf equivalent of
<af:popup id="pop">
<af:dialog id="dlg" title="Title">
<af:outputText id="otindlg" value="Welcome"/>
</af:dialog>
</af:popup>
popup.getChildren().add(dialog);
//Finally add the popup as child to the parent component could be a form or some other component and give this popup id to showpopupbehavior tag
Sireesha
Similar Messages
-
How to create a pivot table from backing bean
Hi,
I need to create a pivot table from backing without having to create a Data Control.
I searched a lot but all comes to a Data Control, and uses backing bean to manipulate data or to display popup info.
Kindly advice if it can be done.
Links and documentation is appreciated.
sample is highly recommended.
Thank you in advance
Emile BITARHi,
have a look at: http://www.oracle.com/technology/products/adf/adffaces/11/doc/multiproject/dvt/tagdoc/af_pivotTable.html
It should provide all the infromation you need
Frank -
How to call a Javascript function from backing bean without any event
Hi,
Someone knows how to call a Javascript function from backing bean without any event ?
thanksPlease review the following thread:
ADF Faces call javascript
Luis. -
Set label of adf command button from backing bean
How can we set the label of a command button from a backing bean using EL?
Is it : <af: commandButton text="#{bindings.email.label}" action.....hi,
create one string and generate accessor for it.
then in jspx, like this
text="#{PrintData.label}"
you can have the label in this way from backing bean.
private String label;
public void setLabel(String label)
this.label = label;
public String getLabel()
label = "test";
return label;
or else, through binding property of the command button, you can set it in the backing bean.
hope this is useful for you. -
How to create ADF selectManyChoice dynamically using arrayList?
Hi,
I am using JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. I want to dynamically create selectManyChoice through my backing using and populating the same using ArrayList. Can anyone provide me sample code for the same?
Thanks,
VikasDuplicate
-
How to Create adf table from java bean
Hi,
How to Create adf table from java class (Not from ADF BC).
Thanks
Satya@vlsn -- you have to follow what shay said.
Do the following in Model layer ::
create a table property java class with your columns setters and getters like :
*public class gridProps {*
private int sno;
private String orderNum;
*public void setSno(int sno) {*
this.sno = sno;
*public int getSno() {*
return sno;
*public void setOrderNum(String orderNum) {*
this.orderNum = orderNum;
*public String getOrderNum() {*
return orderNum;
Create another table java class which will populate the values to your column values and return the collection :
*public class gridPopulate {*
private List<gridProps> gridValues ;
*public List<gridProps> setToGrid(ArrayList<ArrayList> valuesToSet) {*
*if (valuesToSet == null) {*
return gridValues;
gridValues = new ArrayList<gridProps>();
if(btnValue.equals("completeBtn"))
return gridValues;
for(ArrayList<String> tempArr:valuesToSet)
gridProps gp = new gridProps();
gp.setSno(Integer.valueOf(tempArr.get(0)));
gp.setOrderNum(tempArr.get(1));
return gridValues;
Right click gridPopulate class and create this as data control.This class will be seen in Data control list.Under this data control,Drag the grid property collection(created earlier) to your page.Then execute your binding(gridPopulate) according to your logic.
Thanks.(My jdev version 11.1.1.5.0) -
How can I set the value to a session bean from backing bean
Hi Experts,
How can I set the value to a session bean from backing bean where I have created getter and setter
methods for that variable.
Basically I am using ADFUtils class where I am able to get the value from session bean
using following expression
String claimType =
(String)ADFUtil.invokeEL("#{ClaimValueObj.getClaimType}");
Thanks
GayazGayaz,
Wrong Post !!
Post in JDeveloper and ADF
Thanks
--Anil -
Web services and ADF 11g- get Result from backing bean
I'm executing an action from backing bean (call Web service that returns complex data types)
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("unesiPonudu");
Object result = operationBinding.execute();
result is instance of oracle.adf.model.adapter.dataformat.XMLHandler$DataCollection but DataCollection is not accessible.
How to get results from method?
Tnx,
AndrejaHi,
there should be a result iterator in the Executables section which cotnains the result. If not, create it from the WS result entry in the DC palette. Once this iterator gets updated, you get the data from this iterator as it would be the case of a table accesses the WS
Frank -
How to generate ADF Faces Tree from table ?
Hi,
i want to create menu for my application using ADF Faces af:tree component.i have one table containing : menu_id and parent_id , which use for describing relationship between menu ( parent/child ).
Fact : i've already know how to create adf faces af:tree component from master/detail relationship tables.
The question : how to create adf faces af:tree component from recursive master/detail relationship in one table ?
to clearer understand my question,this is my MENU_DATA table script :
CREATE TABLE MENU_DATA
MENU_ID VARCHAR2(5 BYTE),
DESCRIPTION VARCHAR2(50 BYTE),
OPENLINK VARCHAR2(200 BYTE),
PARENT_ID VARCHAR2(5 BYTE)
this is what i mean recursive master/detail relationship ...
ALTER TABLE MENU_DATA ADD (
CONSTRAINT FK_PARENT_MENU_ID
FOREIGN KEY (PARENT_ID)
REFERENCES MENU_DATA (MENU_ID));
Thanks a lot for help gurus...
Ricky HPI have the same question on my mind...
Without creating n (same number of level depth) VO, how can I build a recursive ADF Faces Tree ??? -
How to exclude music and pictures from backing with USMT in SCCM 2012 SP1?
How to exclude music and pictures from backing with USMT in SCCM 2012 SP1?
I know we can use config.xml but I m not sure what all steps to take.
Below is my understanding
1. Create Custom.xml file using below
<component context="System" type="Documents">
<displayName>Test</displayName>
<role role="Data">
<rules>
<unconditionalExclude>
<objectSet>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
</objectSet>
</unconditionalExclude>
</rules>
</role>
</component>
</migration>
2. Save as Custom.xml.
3. Copy it to USMT source files package in both the x86 and x64 subfolders and update the relevant USMT package distribution points.
I am confused as where in task sequence will we specify the custom.config file.Edit the miguser.xml file. The default list is as follows:
-<objectSet>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.qdf]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.qsd]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.qel]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.qph]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.doc*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.dot*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.rtf]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mcw]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wps]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.scd]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wri]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wpd]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.xl*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.csv]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.iqy]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.dqy]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.oqy]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.rqy]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wk*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wq1]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.slk]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.dif]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ppt*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pps*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pot*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.sh3]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ch3]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pre]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ppa]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.txt]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pst]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.one*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vl*]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vsd]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mpp]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.or6]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.accdb]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mdb]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pub]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.xml]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ini]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.dgn]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.dic]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.dsk]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.gqa]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.gqu]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.id]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mpp]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.ora]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pab]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pdf]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.pps]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.qry]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.r2w]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.rdl]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.rsf]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.url]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vdx]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vss]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vst]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vsx]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vtx]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.zip]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.rar]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.7z]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.iso]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.gif]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.jpg]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.bmp]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp3]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.avi]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.mp4]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.wmv]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.bat]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.vbs]", "Fixed")</script>
<script>MigXmlHelper.GenerateDrivePatterns ("* [*.lnk]", "Fixed")</script>
Gerry Hampson | Blog:
www.gerryhampsoncm.blogspot.ie | LinkedIn:
Gerry Hampson | Twitter:
@gerryhampson -
How to create a .DLL file from a .C file ?
Hi everybody
I'm looking for a method how to create a .DLL file from a .C file .That Dll file will be used to perform a board to measure voice quality accoding to the international standard named PESQ (perceptual evaluation of speech qualty) P.862.
Can anyone help to start dealing with Dlls and give some advices to avoid errors ?
thx
Attachments:
source.zip 37 KBHi sinaps,
You mention that you want to create a DLL from a .C file. Just to clarify, are you using C (.c file) or C++ (.cpp) to write your code?
Also, if you are using C++, are you using Visual Studio? (The reason I ask is because this forum is geared towards Measurement Studio, which is an add on to Microsoft Visual Studio).
That being said,
If you are using C: National Instruments provides an ANSI C Application Development Environment called LabWindows/CVI which makes building dlls a snap. It has templates for DLLs and you can build them either as stdcall or cdecl dlls.
Developer Zone Tutorial: Building a DLL with LabWindows/CVI 8.5 for use with LabVIEW 8.5
If you are using Visual C++: Look at the link that Al provided earlier.
MSDN: Walkthrough: Creating and Using a Dynamic Link Library
If you aren't using CVI or Visual Studio, then really the best bet is to do a google search for "Create C DLL" or post or a forum for the appropriate environment that you are using.
Thanks!
Message Edited by Jervin_J on 03-14-2009 02:02 PM
Jervin Justin
NI TestStand Product Manager -
Urgent!!help me! how to create UIInput component in code?
hello all
how to create UIInput component in code? my code as followed:
UIComponent nComponent = application.getComponent("Input");
if (!(nComponent instanceof UIOutput)) {
throw new ClassCastException("error message...");
nComponent.setParent(parentComponent);
nComponent.setRendererType("Text");
nComponent.setComponentId(getClientId(context,nComponent));
UIOutput newComponent = (UIOutput)nComponent;
newComponent.setValueRef("mymodel.propname");
and input can get value from model,but can not update value to model?why?how can i do?Trying to understand the code snippet you posted. Could you please explain why you are casting your input component to output, then setting the valueRef on it ??
-Jayashri -
How to create alv table dynamically by performing action on the button.
Hi all,
my requirement is to create alv table dynamically.
that is i will create two buttons
1) show alv table
2) close alv table
if user selects show alv table then the alv table should be displayed.
and if user selects clsoe alv table then the alv table should be closed.
to create alv table dynamically i have followed this procedure.
under view properties i have added salv_wd_table component. then under the action of showalvbutton i went to code wizard and i have selected instantiate used component component use salv_wd_table. the following code will be generated
with this code i am unable to display alv table dynamically correct me where i went wrong kindly send me the necessary steps how to create alv table dynamically
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_salv_wd_table( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
to close table i have used the following code. with this code i am able to achieve the functionality to delete the alv table
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_salv_wd_table( ).
if lo_cmp_usage->has_active_component( ) is initial.
else.
lo_cmp_usage->Delete_component( ).
endif.
Thanks & Regards,
Naveen
Edited by: naveen.webhelp on Feb 10, 2011 5:52 AMHi
ALV table will be shown in the viewcontainerUI element.
it is shown there empty if you dont fill the node bound to the data node of the interface controller of the comp usage
SALV_WD_TABLE.
and if you are not getting the table filled in the first place.
then check have you mapped the DATA node to some node in the comp controller
wht basically is your requirment is that you want to show ALV gird on click of one button and delete it on click of other button.
there are many ways to do so.
best way is control the visiblity of the viewcontainer UI element which containes the TABLE view of SALV_WD_table comp.
create an attribute of type WDUI_VISIBILITY name say VIS.
now go to the layout and bound hte visible property of the viewcontainer to this attribute VIS.
then in the showalv grid button's eventhandler write
wd_context->set_attribute(
name = 'VIS'
value = '02'
and in the wddoinit and delete alv grid button's event handler write
wd_context->set_attribute(
name = 'VIS'
value = '01'
thanks
sarbjeet singh -
How To Customize displaying of JSP page From Backing Bean
I would like to customize the displaying of jsp page from backing bean based on user Roles
For example
- if the Role is Admin then backing bean should display Admin.jsp
- if the Role is Guest then backing bean should display Guest.jsp
Any pointers/suggestions will be highly appreciated
Regards
BansiThanks to all for providing thoughts
I wanna make it more Dynamic. In the sense
"Backing Beans should drive the rendering of first jsp page in the application " and not jsp page driving the backing bean or not to put some kind of hard coding in jsp page to see if its admin user then display certain set of UI Components or certain set of other UI components for other users.
As we have atleast 10 different Roles and there can be Composite Roles i.e. combination of two roles. In this case how does the Backing Bean drives the rendering of jsp page?
Regards
Bansi -
How to Create a new column from two different result sets
How to Create a new column from two different result sets, both the result set uses the different date dimensions.
i got solutions for this is apply filters in column formula it self, based on the requirement.
Maybe you are looking for
-
Question about memory expansion on Satellite A80-117
I have a question regarding the memory compatibility. (The A8-117 is a 1.6 GHz Centrino (Pentuin M processor 730) with 533 MHz FSB, and 2 MB of 2nd level cache, Intel® 915GM Express chipset) At the moment i have 1 chip of 512MB (333MHz, CL 2.5) insta
-
Why is my Bounce not working?
I am trying to bounce a project which has a Sibelius file rewired to it. I have successfully done this before, and it seems to be doing a bounce as usual, but I cannot find the file - either in the audio bin or iTunes or the folder to which I have a
-
Hi, Does the CRM Plugin (On Post CREATE) fire when the data is loaded using ETL? Thanks nasayoo
-
Why does iCloud still show an old email address?
When I log in to my apple ID and iCloud, the screen shows an old email address. I have changed the email address long ago under "mange Apple ID". Suggestions welcome.
-
How do you respond to menu events in Swing?