Prob in displaying the dynamically created ui elements on click of a button
hi all
i created 1 inputfield, 2 buttons & i wrote the following code in wddomodifyview() of view.
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf1");
inf1.bindValue("Student.name");
IWDButton but1=(IWDButton)view.createElement(IWDButton.class,"button1");
but1.setText("Button1");
IWDButton but2=(IWDButton)view.createElement(IWDButton.class,"button2");
but2.setText("Button2");
IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("TransparentContainer");
tc.addChild(inf1);
tc.addChild(but1);
tc.addChild(but2);
IWDButton button1= (IWDButton) view.getElement("button1");
IWDAction theAction=wdThis.wdCreateAction(IPrivateDynCompView.WDActionEventHandler.DISPLAY,"");
but1.setOnAction(theAction);
IWDParameterMapping bm1 = button1.mappingOfOnAction();
bm1.addParameter("id", "b1");
IWDButton button2= (IWDButton) view.getElement("button2");
IWDParameterMapping bm2 = button1.mappingOfOnAction();
bm1.addParameter("id", "b2");
and i wrote the following code in onactiondisplay()
if (id.equals("b1"))
wdContext.currentStudentElement().setName("First Button Clicked");
else
wdContext.currentStudentElement().setName("Second Button Clicked");
when i run the application, the following error is displaying.....
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "inf1" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:481)
at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:43)
at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:188)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.<init>(AbstractInputField.java:143)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField.<init>(InputField.java:71)
... 35 more
com.sap.tc.webdynpro.services.exceptions.WDCreationFailedException: Cannot create view element implementation com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:75)
at com.sap.tc.webdynpro.progmodel.view.View.createElement(View.java:89)
at com.sap.dynactions.DynCompView.wdDoModifyView(DynCompView.java:140)
at com.sap.dynactions.wdp.InternalDynCompView.wdDoModifyView(InternalDynCompView.java:240)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:190)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:398)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.modifyView(ClientApplication.java:679)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:381)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at com.sap.tc.webdynpro.progmodel.view.ViewElementFactory.createElement(ViewElementFactory.java:65)
... 30 more
Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: View: Cannot add element with duplicate ID "inf1" of type com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField
at com.sap.tc.webdynpro.progmodel.view.View.addElement(View.java:481)
at com.sap.tc.webdynpro.progmodel.view.ViewElement.<init>(ViewElement.java:43)
at com.sap.tc.webdynpro.progmodel.view.UIElement.<init>(UIElement.java:188)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.<init>(AbstractInputField.java:143)
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.InputField.<init>(InputField.java:71)
... 35 more
pls tell me how to run this application without errors.....
thanks & regards,
vila.
Hi Vila,
Issue here is you are trying to create Input field with already used id "inf1" in first line of code
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf1");
Please change it to
IWDInputField inf1=(IWDInputField)view.createElement(IWDInputField.class,"inf2");
and correspondingly line
tc.addChild(inf2);
Your code will work.
Please note that you should follow....following code style in wdDoModifyview
if(firstTime)
//dynamic view elements creation
Similar Messages
-
Capturing the values of screen elements on click of execute button
Hello folks,
Is there a way to capture the values entered in the screen on click of the execute button?
What I want to do is, I have a selection screen where-in a user can fill the input fields (parameters and select-options). Now when the user clicks on the execute button, the values of all the screen elements (no matter if they are filled or empty) should be stored in variable, so that I can use these values again when I am calling this program from another program.
I want to do something similar to saving a variant, but this save should happen on click of Execute button and user need not require to explicitly save these values as variant.
Hope I am clear enough to put my query in front of you all.
It would be a great thing if you could help me.
Need your help.
Thanks in advance.Hi,
You need something like this
REPORT A.
TABLES: sflight.
PARAMETERS: pa_scarr TYPE sflight-carrid.
SELECT-OPTIONS so_conn FOR sflight-connid.
DATA: BEGIN OF it_selscr_values OCCURS 0.
INCLUDE STRUCTURE rsparams.
DATA END OF it_selscr_values.
START-OF-SELECTION.
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = sy-repid
TABLES
selection_table = it_selscr_values. "here you have all parameters' values from selection screen
"later in some other program you can use this table to call report A filling its selection screen with these default values like
SUBMIT a WITH SELECTION-TABLE it_selscr_values.
Regards
Marcin -
How to Access the Dynamically created form element
Hi friends,
I have generated a dynamic form in flex using xml and i want to save the all the elements of the form with there label and entered data in the formItem.
so i m getting how to save the data.
anybody have idea about this?????
Thanking you
GajananThanks for your reply.
as u said i have done this
for each(var formItem:FormItem in form.getChildren()){
formItem.label //The FormItem's label's text
formItem.getChildAt(0) //The first child - TextInput, ComboBox or whatever you got
Alert.show(formItem.getChildAt(0).toString());
return;
my first child formitem is TextInput and i entered some value in tat textInput but i m printing this i m getting the "dynamicform.ApplicationSkin3._ApplicationSkin_Group1.contentGroup.grp.Form0.FormItem15.txt studentfname" i m getting this output
i want to access the entered value of in the textInput.
Thanks,
gajanan -
How to display the dynamic region in full size
Hi,
I'm not able to display the dynamic region in full size.
In my page, i attached a dynamic region which refers a page fragment. This dynamic region contents are showing as small (scroll is there but i want to display fully).
How to do this?
Thanks in advance,
SundarMore than likely it has something to do with your parent layout element. I'd suggest putting your region in an af:panelStretchLayout or similar container that stretches its children. Some of the elements can be a little tricky though, such as af:panelTabbed. It has an attribute that must be set to stretch its first child.
-
How to change Id of a dynamically created child element?
Hi,
I would like to change the id of the dynamically created elements in order to work easily with their later. Currently, edge automatically generate an random id like "eid_1376057792551" for each element.
There is my code :
sym.setVariable("labels", {
content2: "Visiteur",
content3: "Exposant",
content4: "Organisateur",
content5: "Contact",
content6: "Connexion"
// Clear initial state
sym.getSymbol("tab").deleteSymbol();
// Find all large symbols in the library
var prefix = "content"; // content1, content2 ... content99
var allTabs = [];
var symbolDefns = sym.getComposition().symbolDefns;
for (var key in symbolDefns) {
if (symbolDefns.hasOwnProperty(key) && key.search(new RegExp(prefix+"[0-9]{1,2}"))!=-1 ) {
var tab = sym.createChildSymbol( "tab", "navigation" );
tab.setVariable("contentId", key);
allTabs.push(tab);
tab.$("btnLabel").html( sym.getVariable("labels")[key] || "" );
$tabEl = tab.getSymbolElement();
$tabEl.data("sym", tab);
$tabEl.css({float: "left", margin: "0 -1px 15px 0"});
$tabEl.click(function(evt){
var tabSym = $(evt.currentTarget).data("sym");
$.each(allTabs, function(index,item) {
if (item != tabSym) { item.stop("normal"); item.setVariable("active", false); }
var $content = sym.$("content").empty();
sym.createChildSymbol(tabSym.getVariable("contentId"), "content");
Thank you .hi - trying to get this to work with no luck.
a simple example as i understand it:
var test = sym.createChildSymbol("rect", "Stage");
test.attr("id","test2");
would that work in changing the id of the newly created symbol to test2?
thanks! -
How to display the dynamic text in the selection screen
Hi All,
I want to display the dynamic text in the selection screen .... ( I searched in forums , didnt get the any answer fot this sort of qustion ).....
EX: If i have the date of today 31st it has to show message like " today date is 31 like some thing " when i execute the report .
Could any one face this sort of requirment, Please let me know.
Thanks in advance.
Reagrds,
BharaniWhere would you like this dynamic text being displayed? As an "message" or in some parameter field?
If first
parameters date type d.
data: text type string.
at selection-screen.
concatenate 'Today is' date into text.
message text type 'I'.
If second
parameters pa_text type c length 50.
at selection-screen on date.
if date is not initial.
concatenate 'Today is' date into pa_text.
enidf.
at selection-screen output.
"show it as read only
loop at screen.
if screen-name = 'PA_TEXT'.
screen-input = abap_false.
modify screen.
endif.
endloop.
Regards
Marcin -
How to display the calender which responds to double click even module pool
Hi Experts,
I got a requirement to display a calender in module pool. when user clicks on any date on the calender i need pick that particular date and i have to display that date with some other information.
I have displayed the calender using
data: my_calendar1 TYPE REF TO cl_gui_calendar,
my_calendar1_style TYPE i,
container1 TYPE REF TO cl_gui_custom_container.
CREATE OBJECT container1
EXPORTING
container_name = 'G_CONTAINER1'.
*---Assing style to calender
my_calendar1_style = cnca_style_v_navigator.
*----Creating calender object
CREATE OBJECT my_calendar1
EXPORTING
parent = container1
view_style = my_calendar1_style.
please help me to display the calender which responds to double click event or single click.
Thanks in advance,
nag.Hi Nag,
You have to use DATE_SELECTED event. Register it (method SET_REGISTERED_EVENTS), assign an handler (SET HANDLER) in which you know which date has been selected.
You have to trigger the PAI/PBO so that you can change the list of possible values in the list boxes, so you should register (via method above) by setting APPL_EVENT = 'X'.
Refer to demo program SAPCALENDAR_NAVIGATOR to see exactly how it works.
BR
Sandra -
How to display the details of particular order when click on button in sapui5
Hi Experts,
How to display the details of particular order when click on button in sapui5?
I Have a requirement that is i want display all the list of orders coming from backend as shown in image below
then in that i have a button when i press the button it need to display the details of particular order as shown in image below
Please help me .
Thanks & Regards
chittiDoes anyone know how to display the index of current desktop?
Brute force - - I have written the number of the Desktop directly onto the wallpaper picture I am using for each Desktop (easy to do with Preview).
All Desktops are using different wallpaper photos, so they are easily recognized by the color scheme, and in the upper left corner is the number.
Regards
Léonie -
How to print the content of a textarea by clicking on a button?
Hello, i'm currently developping a HTML Editor in java but i've got a problem with printing job... Does anyone know a simple code to print the content of a textarea by clicking on a button?
for instance:
JTextarea textarea = new JTextArea();
JButton print = new JButton ();
file_menu.add(print) ;
print.addActionListener(
new ActionListener()
public void actionPerformed(ActionEvent event)
////----> what could i put here to print the content of my textarea named 'textarea' ?
I've searched on the web but i didn't find it...
Thanks very much for your help...
S�bastienI've never tried it, but here's an article that might help:
http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-Printing.html -
I have the latest iTunes but when i click on Sync button or Back up why ?
It should have noted that the backup was complete on the backup page. Try rebooting your computer and try it again.
-
Formatting value in the dynamically created table
Hi,
I have created table dynamically.
In that, if the columns going to be number datatype,
<af:convertNumber pattern="##########"/> , i want to apply this pattern,
if the column going to be date,
<af:convertDateTime pattern="DD/mm/yyyy" /> , i want to apply this pattern.
Code Snippet for dynamically created UI table,
<af:table rows="#{bindings.DynamicVO.rangeSize}"
fetchSize="#{bindings.DynamicVO.rangeSize}"
emptyText="#{bindings.DynamicVO.viewable ? 'No data to display.' : 'Access Denied.'}"
var="row" rowBandingInterval="0"
value="#{bindings.DynamicVO.collectionModel}"
selectedRowKeys="#{bindings.DynamicVO.collectionModel.selectedRow}"
selectionListener="#{bindings.DynamicVO.collectionModel.makeCurrent}"
rowSelection="single" id="t1">
<af:forEach items="#{bindings.DynamicVOIterator.attributeDefs}" var="def">
<af:column headerText="#{def.name}" sortable="true" rendered="#{def.hints.displayHint!='Hide'}"
sortProperty="#{def.name}" id="hisc1">
<af:outputText value="#{row[def.name]}" id="othis1">
</af:outputText>
</af:column>
</af:forEach>
</af:table>
How to apply the pattern for the ouput text dynammically depending on the data type.
My Jdeveloper version is 11.1.1.3.0
Reg,
viniAny help on the above scenario?
-
Displaying the dynamically genrated Xl sheet in the browser
i am creating an excel sheet dynamically by using POI concepts .
but i am not able to display the same in my browser window .
can someone help me in this regards .......
one more thing i m not supposed to save a copy on my server machine .Hi Roshan,
Can you paste the relevant piece of code written by you - so that we can give you some hints..
Cheers -
Dynamically Create Repeater Element in ActionScript
Hi,
I'm trying to dynamically create a repeater control with an
image and a label control. I can do it directly in the MXML file
but when I try and covert it into ActionScript it's not working.
Can anyone see what the problem is with my code?
public function GetPalettes():void{
removeChild(document.FrontPage);
Palettes.method = "GET";
params = {"method": "GetPalettes", "BodyPartNo":
document.PalettesMenu.selectedItem.@partNo};
Palettes.cancel();
Palettes.send(params);
var VerticalBox:VBox = new VBox();
VerticalBox.x = 10;
VerticalBox.y = 10;
VerticalBox.id = "VerticalBox";
var PaletteRepeater:Repeater = new Repeater();
PaletteRepeater.dataProvider =
"{Palettes.lastResult.Palette}";
PaletteRepeater.startingIndex = 0;
PaletteRepeater.id = "PaletteRepeater";
var PaletteImage:Image = new Image();
PaletteImage.setStyle("HorizontalAlign", "left");
PaletteImage.source = "
http://localhost/Flex/Personalised%20Palettes-debug/{PaletteRepeater.currentItem.@PictureS rc}Med.png";
PaletteImage.useHandCursor = true;
PaletteImage.buttonMode = true;
PaletteImage.mouseChildren = false;
PaletteImage.id = "PaletteImage";
var PaletteDescription:Label = new Label();
PaletteDescription.text =
"{PaletteRepeater.currentItem.@Description}";
PaletteDescription.id = "PaletteDescription";
document.MainPage.addChild(VerticalBox);
VerticalBox.addChild(PaletteRepeater);
PaletteRepeater.addChild(PaletteImage);
PaletteRepeater.addChild(PaletteDescription);
Thanks"katychapman85" <[email protected]> wrote in
message
news:[email protected]...
> Hey Amy,
>
> I've put a thread up about this but thought I'd ask you
as well as you've
> been
> a great help to me so far.
>
> I have this function:
> public function GetOptions(Menu:int):void{
> document.MenuOptions.url =
> "
http://localhost/Flex/Personalised%20Palettes-debug/MenuOptions.php?Menu=";
> document.MenuOptions.url += Menu;
> document.MenuOptions.send();
> }
>
> What I'm trying to do is when a user clicks on a Radio
button this
> function is
> called and the number of the Menu required is sent to
the function.
>
> I've added this Event Listener to my Radio Button:
>
>
document.RadioButtons2.addEventListener(MouseEvent.CLICK,
> function():void{GetOptions(2);});
>
> However, it's not working. Everything I've read suggests
using an
> anonymous
> function in the Event Listener to pass the menu
parameter but for some
> reason
> it's not working.
What version of Flex are you using? The Help for Flex 3 has
this to say:
http://www.adobe.com/livedocs/flex/3/html/help.html?content=events_05.html
Defining event listeners inline
The simplest method of defining event handlers in Flex
applications is to
point to a handler function in the component's MXML tag. To
do this, you add
any of the component's events as a tag attribute followed by
an ActionScript
statement or function call.
You add an event handler inline using the following syntax:
<mx:tag_name event_name="handler_function"/>
For example, to listen for a Button control's click event,
you add a
statement in the <mx:Button> tag's click attribute. If
you add a function,
you define that function in an ActionScript block. The
following example
defines the submitForm() function as the handler for the
Button control's
click event:
<mx:Script><![CDATA[
function submitForm():void {
// Do something.
]]></mx:Script>
<mx:Button label="Submit" click="submitForm();"/>
Event handlers can include any valid ActionScript code,
including code that
calls global functions or sets a component property to the
return value. The
following example calls the trace() global function:
<mx:Button label="Get Ver" click="trace('The button was
clicked');"/>
There is one special parameter that you can pass in an inline
event handler
definition: the event parameter. If you add the event keyword
as a
parameter, Flex passes the Event object and inside the
handler function, you
can then access all the properties of the Event object.
The following example passes the Event object to the
submitForm() handler
function and specifies it as type MouseEvent:
<?xml version="1.0"?>
<!-- events/MouseEventHandler.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import mx.controls.Alert;
private function myEventHandler(event:MouseEvent):void {
// Do something with the MouseEvent object.
Alert.show("An event of type '" + event.type + "'
occurred.");
]]></mx:Script>
<mx:Button id="b1" label="Click Me"
click="myEventHandler(event)"/>
</mx:Application>
It is best practice to include the event keyword when you
define all inline
event listeners and to specify the most stringent Event
object type in the
resulting listener function (for example, specify MouseEvent
instead of
Event).
You can use the Event object to access a reference to the
target object (the
object that dispatched the event), the type of event (for
example, click),
or other relevant properties, such as the row number and
value in a
list-based control. You can also use the Event object to
access methods and
properties of the target component, or the component that
dispatched the
event.
Although you will most often pass the entire Event object to
an event
listener, you can just pass individual properties, as the
following example
shows:
<?xml version="1.0"?>
<!-- events/PropertyHandler.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script><![CDATA[
import mx.controls.Alert;
private function myEventHandler(s:String):void {
Alert.show("Current Target: " + s);
]]></mx:Script>
<mx:Button id="b1" label="Click Me"
click="myEventHandler(event.currentTarget.id)"/>
</mx:Application>
Registering an event listener inline provides less
flexibility than using
the addEventListener() method to register event listeners.
The drawbacks are
that you cannot set the useCapture or priority properties on
the Event
object and that you cannot remove the listener once you add
it.
don't see anything in there about anonymous functions...? -
Displaying the successfully created records as messaage after bdc execution
Hi all,
I want to display the number of successfully created records as message(information) after execution of batch session created in sm35.
could anyone suggest me any solution regarding this?
Thanks and Regards,
Ashikfor error log code check this
[click here for error log code|http://wiki.sdn.sap.com/wiki/display/ABAP/BDC-Howtohandleerrorlogfiletouploadthedataincalltransaction+method]
for BDC Session - Automatic Execution from Report
[click here|http://wiki.sdn.sap.com/wiki/display/ABAP/BDCSession-AutomaticExecutionfromReport] -
Invoking the Dynamically Created JNLP
Unfortunately I do not seem to be getting any responses to my questions in this group:( However, I am still hoping that someone may know the answer to this.
I have a portlet that is forwarding the request to a JSP file that creates the dynamic JNLP file.
I see the contents of this JNLP file in the source of the page served, but I was hoping that the forwarding of the request will launch Java Web Start.
The contents of the JSP file are
<%@ page session="false"%>
<%@ page contentType="application/x-java-jnlp-file" info="My JNLP"%>
<%
StringBuffer codebaseBuffer = new StringBuffer();
codebaseBuffer.append(!request.isSecure() ? "http://" : "https://");
codebaseBuffer.append(request.getServerName());
if (request.getServerPort() != (!request.isSecure() ? 80 : 443))
codebaseBuffer.append(':');
codebaseBuffer.append(request.getServerPort());
codebaseBuffer.append('/');
%>
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="<%= codebaseBuffer.toString() %>"
href="<%= request.getRequestURI() %>">
<information>
<title>Sample</title>
<vendor>Sample Web Start Application</vendor>
<offline-allowed/>
<icon href="salpro-icon.gif"/>
</information>
<resources>
<j2se version="1.4+"/>
<jar href="resources/JNLPTime.jar"/>
</resources>
<application-desc main-class="J2.ws.TheTime"/>
</jnlp>
A portion of the source page that is served :
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+"
codebase="http://mharidasa.almaden.ibm.com:8421/"
href="/ibm/PA_1_0_2B4/resources/J2JWS.jsp">
<information>
<title>Sample</title>
<vendor>Sample Web Start Application</vendor>
<offline-allowed/>
<icon href="salpro-icon.gif"/>
</information>
<resources>
<j2se version="1.4+"/>
<jar href="resources/JNLPTime.jar"/>
</resources>
<application-desc main-class="J2.ws.TheTime"/>
</jnlp>
How can I make the server invoke the JNLP as opposed to serving it back?
Your suggestions are very much appreciated.
thank you - MinnieHi! I am doing a similar project where I have a jsp
that calls the jnlp using this url:
http://c37ts014/myserver/server/servlet/WebStartUpload.
nlp?documentid=123&documentname=test
How can I get the values of my parameters namely
documentid and documentname inside my app? Is there a
way where I need not have to create my jnlp
dynamically then? If not, would it be ok to ask how
you did your dynamic loading through jsp?
Hope you can help me. Thanks.I experimented with this heavily yesterday (using oracle app server , but it is the same idea) and could not get it to work with parameters on both the jnlp and jar resource hrefs, however it can work with parameters on the homepage href. Too bad, there seems to be no reason why it shouldn't work with parameters in all situations unless it has some security implication that I'm not aware of.
Maybe you are looking for
-
Issue with WRITE statement from Internal Table
Hi All, I have written the below code in a infoset query, the syntax check is ok & when i run the query in debugging mode, i find the internal table being filled with the values & the write statement outputing the values as well. But the problem is w
-
My netbook says my built in webcam for dv6-1259dx does not exist.
So I tried to use my webcam the otherday but it wouldn't let me, I've been searching for the last two days for a solution but cant find any. It's been fine till the otherday and I haven't done anything nor deleted anything that could have caused it t
-
Media Sync Doesn't Work for Mac
"Whether it's a specific iTunes® playlist or a random mix of tunes, it's easy to sync the music from your Mac computer to your BlackBerry smartphone." That's how Blackberry describes Media Sync. Unfortunately, it doesn't see any of my iTunes playlist
-
[GUIDE] Debrick a completely dead MyCloud
As I have seen many questions about debricking (recovering) the MyCloud, I figured I would write up a guide for the tech savvy users that get stuck. This is a last hope recovery procedure and will erase all data. Please download your appropriate imag
-
Hi Guys! I have a LSMW in which I have to upload 7 files, one per tab (MM01, CREATING MATERIALS), and I decided tu use a direct input, but how can I build the structures of my files? One of the tabs should be header (All the 7 files have 7 fields in