Uix/jsp lovField
I want a <lovField> on the uix/jsp page.
The problem is that the wizard brings up just a controller field on the page, but no LOV dialog into the project (though it is promised to be provided at the documentation).
Now I'm trying to use a 'lovcomp.jsp' provided with the JBO taglib instead.
Can anybody answer if Oracle has a similar .jsp for the UIX look&feel, or may be I should do something on the BC level for the corresponding dataitem would be rendered with the <bc4juix:InputRender> automatically?
Thanks in advance.
I underscore that my case is UIX/JSP, not XML and there's no problem to get a <uix:lovField> on the page. The matter is that the dialog page for choosing an item from the LOV is not provided for the UIX case. But it is provided for the <jbo:InputSelectLOV>.
My temporary solution is a combination of these 2.
So i have the code like following:
<script src="/webapp/jsLibs/LovField.js" language="javascript"></script>
<uix:lovField
id="ClAdr1RegionNameLovField" name="ClAdr1RegionName" text='<%=( ((s = (String)ds_CurrentView.getRowSet().getCurrentRow().getAttribute("ClAdr1RegionName"))!=null)?s:"" )%>'
destination="javascript:launchLov('lovcomp.jsp', 'form1', 'ClAdr1RegionName', 'servo.TechSupportBC.TechSupportBCModule.TechSupportBCModuleLocal', 'RegionsView', 'RegionName', 'RegionName')">
</uix:lovField>
It works fine as the 'lovcomp.jsp' is grabbed by me from the <jbo:InputSelectLOV> analogue.
The one that doesn't suit me is that the 'lovcomp.jsp' has a wrong look&feel for UIX. So I wonder if there is a better one.
PS: By the way Ed, I suppose that the <jbo:InputSelectLOV> is working good, though I haven't tested.
Similar Messages
-
How to use ShowValue within a UIX/JSP page to display an active link?
I am storing URL's in the DB and want to display them as active links on a UIX/JSP page. I thought that I had this working some time ago, but now it no longer works.
Using <bc4juix:RenderValue datasource="ds1" dataitem="myTextField" /> will display "http://www.otn.oracle.com" as an inactive link using UIX/XML which is expected.
Using <jbo:ShowValue datasource="ds1" dataitem="myTextField" /> will display an active link using if using BC4J/JSP, which is expected.
However, I have not been able to do this using a UIX/JSP page.
Is it possible to use ShowValue within a UIX/JSP page to display an active link?
Thanks,
Bill GHi Juan,
I've done the following and it does not work for me;
--- snip ---
<uix:form name="form1" method="GET">
<bc4juix:Table datasource="ds1" >
<uix:columnHeaderStamp>
<uix:styledText textBinding="LABEL"/>
</uix:columnHeaderStamp>
<%--
<jbo:AttributeIterate id="dsAttributes" datasource="ds1" hideattributes="UixShowHide">
<bc4juix:RenderValue datasource="ds1" dataitem="<%=dsAttributes.getName()%>" />
</jbo:AttributeIterate>
--%>
<bc4juix:RenderValue datasource="ds1" dataitem="FacilityDesc" />
<bc4juix:RenderValue datasource="ds1" dataitem="LocationId" />
<bc4juix:RenderValue datasource="ds1" dataitem="LocationDesc" />
<%-- ** THE FOLLOWING DOES NOT DISPLAY ON THE BROWSE_EDIT_PAGE ** --%>
<jbo:ShowValue datasource="ds1" dataitem="Notes" ></jbo:ShowValue>
<%-- ** THE FOLLOWING DOES NOT DISPLAY ON THE BROWSE_EDIT_PAGE ** --%>
<uix:rawText>
<jbo:ShowValue datasource="ds1" dataitem="Notes" ></jbo:ShowValue>
</uix:rawText>
<%-- ** THE FOLLOWING DOES NOT DISPLAY ON THE BROWSE_EDIT_PAGE ** --%>
<uix:contents>
<uix:rawText>
<jbo:ShowValue datasource="ds1" dataitem="Notes" ></jbo:ShowValue>
</uix:rawText>
</uix:contents>
--- snip ---
Bill G... -
How to display a message box in a UIX JSP page?
I've a UIX JSP Application with BC4J developed with JDeveloper RC.
The problem is that when the user mistakes in the insertion/updating, I'd like to help him displaying a message box or a modal dialog window.
In particular, I've the following code:
<%@ page errorPage="errorpage.jsp" contentType="text/html;charset=WINDOWS-1252"%>
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<%@ taglib uri="http://xmlns.oracle.com/uix/ui" prefix="uix" %>
<%@ taglib uri="http://xmlns.oracle.com/uix/ui/bc4j" prefix="bc4juix" %>
<%@ page import="oracle.jbo.JboException" %>
<%@ page import="CdssPackage.*" %>
<%-- Define Application Module and DataSource--%>
<%-- Define Application Module and DataSource--%>
<jbo:ApplicationModule configname="CdssPackage.CdssPackageModule.CdssPackageModuleLocal" id="app1" username="scott" password="tiger" releasemode="Stateful" />
<%
//Check the mandatory fields are not null
if ((cod_comm.compareTo("")==0) || (nome_ruolo.compareTo("")==0)){
throw new JboException(Errors.ERR_REQUIRED_FIELD);
//Now, the errorpage.jsp is displayed, while I'd like to display a message box or a modal dialog window
%>
How can I do it?
Thanks in advance.Michele-
You can use javascript to send a message window in the http protocol.
Hope this helps,
Lynn
Java Tools Team -
How to using the script tag in uix/jsp?
Do i have to write in uix/jsp:
<uix:rawText>
<script type="text/javascript">
function doCheckForm()
</script>
</uix:rawText>
Or exists another tag that handles the javascripts without the "rawText" script?
MarcIf you are declaring a function, you dont need to add it under the rawText tag. It can be added with a simple script tag at the top of the page.
-
Search/Query Form bc4j-uix-jsp
Hi:
Are there any samples of Search/Query jsps using
bc4j -uix jsps?
There are some on OTN using html.
I want to set up a search page that users can select one or more(AND) from about 5 attributes
of a view and then display approx 6-8 different attributes of that same view.
Any input would be appreciated.
Thanks.Once you create the Query-by-Form datawebbean, you can modify the templates in the templates\webapp directory by changing all usages of the FindForm bean to use your new DWB. You can also create a new webapp template by copying the existing file and creating a new directory. You can add you new template by modifying the templates\apptemplates.xml. The current entries are:
<?xml version="1.0"?>
<APPTEMPLATES>
<TEMPLATE NAME="default" DIRECTORY="templates/webapp/" USETHEMESELECTION="YES">
</TEMPLATE>
<TEMPLATE NAME="Oracle" USEFORMSELECTION="NO" DIRECTORY="templates/cabowebapp/" THEMEDIR="/webapp/jsimages" THEMECSS="/webapp/cabo/images/cabo_styles.css" USETHEMESELECTION="NO" TOOLBARCLASS="oracle.jbo.html.databeans.JSNavigatorBar">
</TEMPLATE>
</APPTEMPLATES> -
Change language (uix jsp)
How can I change language in uix jsp application? I want labels like NEXT, PREVIOUS,... in language otjer than US!
Hello, I have a similar problem, but in JSF application and the mine is more frustrating. When I put my language (catalan) in the locate configuration int faces-config like this:
<application>
<locale-config>
<default-locale>ca</default-locale>
</locale-config>
<default-render-kit-id>oracle.adf.core</default-render-kit-id>
<message-bundle>missatgesADF</message-bundle>
</application>
the application appears in english instead of catalan. In spide of exist a class called BLAFBundle_ca wich contains the needed texts in catalan for show the ADF components, I coulden't do work. When I put "es_ES" instead of "ca" the components are showed in spanish correctly, and if I put "de" is showed in deutch correctly.
I decided decompile the class MessageBundle_es_ES from adf-faces-api.jar, put it in my source project without change its package. I modified a validation message and it worked. I decide the same for change the ADF components literals ("expand all", "select all", "next"...) and I found it in BLAFBundle_es_ES, I found it in adf-faces-impl.jar and in uix2.jar (this last not used in my project). I do the same steps with the previous file, but doesn't works !!! -
Hi:
How can i do a master-detail in UIX-JSP similar in functionality BC4J-JSP?. I haven't found an HOW-TO or guide.
Thanks
MarcoYes this is easily done.
If you have a BC4J project with say Emp and Dept View Objects which are linked via
a foreign key (there should be a BC4J FKDeptnoLink created), then all you have to do
is generate a BC4J UIX JSP application.
In a separate empty project, open the New gallery and select UIX-JSP -> Business Components JSP Application.
Generate a default JSP application for your BC4J components. You can then run main.jsp
to see the app.
To see a master detail view of your app which is based on the Bc4J Link (FKDeptno) just click
on link "FkDeptnoLink" on the left side..
-Chris -
Help converting UIX JSP functionality to UIX
I have an older UIX JSP page that I am trying to convert to UIX. That page contained a table with a singleSelection node and a Print button. When the Print button is pressed, a value is taken from the selected row in the table and sent as a parameter to Oracle Reports. The code that did this in UIX JSP is:
<jbo:OnEvent name="Print">
<% if(sSelected != null)
errmsg = null;
errtype = null;
%>
<jbo:Row id="MPORow1"
datasource="MPOOrders"
action="Find"
rowkey="<%= sKey %>" />
<%
Row MPOCurRow1 = MPOOrders.getRowSet().getCurrentRow();
if (MPOCurRow1 != null)
String ordnum = (String) MPOCurRow1.getAttribute("Ordnum").toString();
String mailer = (String)((Integer) session.getAttribute("loginCustomer")).toString();
String printURL = "https://<myserver>/reports/rwservlet?destype=cache+desformat=PDF+userid=webuser/webpwd@pas+report=mlrjobstatus.rdf+p_mailer=" + mailer + "+p_jobnum=" + ordnum;
response.sendRedirect(response.encodeRedirectURL(printURL));
else
errtype = "error";
errmsg = "You must select a row prior to clicking on the 'Print Lists' button";
%>
</jbo:OnEvent>
How can I do this same thing in UIX/Struts? Can it be done as a UIX handler or do I need a custom DataAction?Hi Eric,
Please take a look at the UIX Table chapter. It talks about single-selection in UIX and how you can add buttons which when clicked will submit events to the server. It also talks about how you can handle those events.
Here is a code snippet from the documentation regarding the event handler:
public static EventResult doSelectionEvent(BajaContext bc, Page page,
PageEvent event)
DataObject tableRows = new PageEventFlattenedDataSet(event, "table1");
int index = SelectionUtils.getSelectedIndex(tableRows);
String name = "Nothing Selected";
// make sure that something was selected:
if (index>=0)
DataObject row = _TABLE_DATA.getItem(index);
name = row.selectValue(null, "name").toString();
EventResult result = new EventResult(page);
result.setProperty("action", event.getName());
result.setProperty("name", name);
return result;
}Thanks,
Jeanne -
UIX/JSP: bug of the tag uix:tabBar
Please, can someone comment on the following behavior of the tag <uix:tabBar>:
The UIX/JSP tag <uix:tabBar> is commonly used together with the <uix:link>.
I cannot make the last one work in a more complex way but just using its attribute 'destination'.
For example, the tag <uix:link> has an attribute 'onClick' but it fails to work within the tag <uix:tabBar>. So in this example:
<uix:tabs>
<uix:tabBar >
<uix:link text="alert" onClick="alert('Test alert');" />
<uix:link text="Main" destination="UixEdit1.jsp />
</uix:tabBar>
</uix:tabs>
The link 'alert' is visible but doesn't work.
Maybe this should be solved by wrapping <uix:link> in something...Yes, Juan it works fine outside the TabBar.
But, Adam it's not quite clear to me what you mean by the "javascript URLs".
The one thing I want is to make a row editing form divided into 2 tabs (instead of the one, generated by the wizard). So I have do form updates on the event "moving to other tab". Can you advise, how I can put any javascript inside the <tabBar>?
Thank you. -
UIX-JSP vs. BC4J-JSP wizard based question
In BC4J-UIX wizard based forms there exists a button to Insert new rows. In the UIX-JSP wizard based forms there is not. Is this an option I overlooked somewhere or does this need to be hand coded? Detailed instructions on how to implemnt the Insert row capability in UIX-JSP are appreciated.
Ed.In BC4J-UIX wizard based forms there exists a button to Insert new rows. In the UIX-JSP wizard based forms there is not. Is this an option I overlooked somewhere or does this need to be hand coded? Detailed instructions on how to implemnt the Insert row capability in UIX-JSP are appreciated.
Ed. Ed -
I'm a bit confused by your reference to the BC4J-UIX and UIX-JSP wizards. There is a 'new' link in wizard-generated
BC4J JSPs and a 'Create' button in wizard-generated UIX JSP browse/edit forms. Is this what you mean?
Regards,
Lynn
Java Tools Team -
Hi!!
How can i build a uix/jsp table on Jdev10G without bc4juix:table .
I need a table based on EmpVO with detail disclosure, but examples that i found it's with jbo, and haven't uix design...
TnxHi Eliseu,
In the JDeveloper 10g preview the JSP visual editor does not have any built in support for the UIX/JSP tag library to allow drag and drop from the Data Control palette.
Have you tried to build your page using UIX XML, which is the preferred way?
Thanks,
Jonas
JDeveloper Team -
UIX-JSP: Error in request parameter
Hi:
In my page browse, wheni press the button "Create" and select the new row and late press the button "update" i got and error:
Row was not found using request parameter: 00010000000000000006000000EF42F52F97
The complete error is following:
Exception Details
oracle.jbo.JboException: Row was not found using request parameter: 00010000000000000006000000EF42F52F97.
void oracle.jbo.JboException.(java.lang.String)
void oracle.jbo.html.jsp.datatags.RowTag.handleAction()
int oracle.jbo.html.jsp.datatags.RowTag.doStartTag()
void RhConceptoView_Edit._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.GetParametersRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.EvermindPageContext.forward(java.lang.String)
void RhConceptoView_Browse._jspService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtime.HttpJsp.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void oracle.jsp.runtimev2.JspPageTable.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)
void oracle.jsp.runtimev2.JspServlet.internalService(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void oracle.jsp.runtimev2.JspServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
void com.evermind.util.ThreadPoolThread.run()I'm not an expert in UIX-JSP, can anybody help me, PLEASE?.
-
Hi All,
We are using UIX JSP.
We need to put tooltips to the fields getting displayed in our pages. We put the text we want as the tip in the
'ToolTip Text' box in the 'ContrloHint' tab of the
Edit Attribute window.(Using the Structure Panel)
We did it for both the entity object and view object without success. Then we found in the 'Help' that it is
not supported in UIX JSP. I am quoting the following paragraph from the 'Help' in JDev.
"The following table lists the control hints and whether the various Business Components clients pick them up.
Hint BC4J Data Tags BC4J UIX Tags JClient JavaUI
LabelText yes yes yes
Tooltip yes no yes "
If it is not supported with UIX JSP, is there any workaround?
Thanks in Advance
Indicasee the thread
ToolTips of fields in UIX JSP -
Sortable headers in UIX/JSP
I need to implement sortable headers of a <table> in UIX/JSP as provided by uiXml browse pages.
Does anyone know how to implement this?
thanks,
MarcAhh, i was wrong the only difference between the 9.0.2 and 9.0.3 is that when you click on an unsorted columnHeader, the state parameter is not submitted at all in 9.0.3, while in 9.0.2 it submitted an empty parameter like:
http://...../Lookup.uix?event=sort&source=tbl&value=id_ctxt_typ&state=
That's why in 9.0.3 i got a nullpointer exception in these cases.
Guido -
UIX JSP For Business Components
I am looking for option under Web Tier - UIX JSP For Business Components - Complete UIX JSP Application. I cannot see that option in Jdeveloper 10g which was avaialble in 9i. What is the turnaround for it.
I have an application which I wanted to convert it to jsp, so that I could deploy it on the web.
Thanks in advance.We removed the "complete application" wizard in JDeveloper 9.0.5 since the application it was generating was hard to customize. Check out the tutorials on the JDeveloper home page to see how to build a complete application.
Maybe you are looking for
-
I have 2 iphones using th same itunes account(worked for a years so dont see why I should change this ) now both uprgraded to io 6 one is 4s, the other 4. Since upgraade, If I send a message to hubby on the 4 phone it bounces back to me and says it
-
SPL block at PO in GTS - GR creation is allowing in ECC
Hi All, SPL functionality is working fine for SD cycly but not for MM cycle. SD process: Sales order created, blocked in GTS automatically. When we try to create delivery in ECC before releasing order in GTS, the system showing error. That means deli
-
Endashes and quotes are not converted correctly when copying FM files by reference
I'm using FM7 in the TCS1 in a Windows XP environment. I am copying FM books by reference into my RH project. I'm noticing that endashes (–) and quotation marks (") are not consistently coming across correctly in my RH project. Instead, I am getting
-
I can't turn the Wifi on my iphone 4s.. Please help me in this
im trying to turn on the wifi but i cant .. and sometimes its on but can find no networks although there are many... tried many things,, like network reset settings,, restoring the iphone and this only happened when i upgraded my iphone into IOS 6 ..
-
Urgently: data provided by t.code FBL5N for open items ....
Hi All, Data provided by t.code FBL5N for open items, are different from data provided by t.code S_ALR_87012168 for the same customer ... I can't understand what could it depend on..... Could anyone help me? Thanks Gandalf