Change skin on button click
Basically I wanted to plant a toggle button to increase and decrease the size of the text my spaces. So, I created a new skin with large font size.
How do I change the skin with a click of a single button?
use something like this:
<af:selectOneChoice label="Choose Skin:" value="#{sessionScope.skinFamily}" autoSubmit="true">
<af:selectItem value="blafplus-rich" label="blafplus-rich"/>
<af:selectItem value="blafplus-medium" label="blafplus-medium"/>
<af:selectItem value="simple" label="simple"/>
</af:selectOneChoice>The value of each selectItem is an existing skin. If you add your own skins, you just add them as selectItem.
In trinidad-confix.xml you will also have to refer to the skin family:
<skin-family>#{sessionScope.skinFamily}</skin-family>This way the skin is dynamicly.
So if you don't want to use a selectOnChoice but a button than you will need to write an actionListener for that button. In that listener, you write the new value into the session variable.
Edited by: Yannick Ongena on May 20, 2011 7:00 AM
Similar Messages
-
Multiple flash files change when a button click using javascript function
hi.. am new in flsh...
i want to multiple flash files change when a button click using a javascript<script>
var count=0;
function mafunct(newSrc){
alert("hi");
var path="a"+count+".swf";
flash+='<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" WIDTH="100%" HEIGHT="100%">';
flash+='<PARAM NAME=movie VALUE="'+path+'">';
flash+='<PARAM NAME="PLAY" VALUE="false">';
flash+='<PARAM NAME="LOOP" VALUE="false">';
flash+='<PARAM NAME="QUALITY" VALUE="high">';
flash+='<PARAM NAME="SCALE" VALUE="SHOWALL">';
flash+='<EMBED NAME="testmovie" SRC="Menu.swf" WIDTH="100%" HEIGHT="100%"PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL"swLiveConnect="true"PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">';
flash+='</EMBED>';
flash+='</OBJECT>';
count++;
alert(path+"aa");
</script>
<button onclick="mafunct()">next</button> -
Changing JPanel with button click.
Hi, I have a class call TOC(Table of Content) which contains all the buttons. One class call MainController. All buttons I add an actionListener which the MainController class will handle. Anothe class which is the main one which contain a JPanel.
When I click on the button in TOC class, it will go through the MainController class and display the respective JPanel associate with the button.
Now the problem is how do I change the JPanel in the main class with a click on the button in TOC class?
Please advise. Thanks in advance.Not sure what you mean exactly. However,
Assuming that your view class is a JPanel, when you create your controller,
ViewPanel view = new ViewPanel();
MainController controller = new MainController(viewPanel);
In MainController track a reference to your viewPanel. Also in viewPanel have a method called setCurrentPanel(JPanel panel). then int he controller's action listener
public void actionPerformed(ActionEvent ev) {
JPanel pnl = (JPanel) panelMap.get(ev.getSource().getName());
viewPanel.setCurrentPanel(pnl);
I am assuming you have a way of mapping each button to the panel it will use, which is what is in the panelMap. The viewPanel can have a CardPanel layout for the panels it displays and its setCurrentPanel, can bring to front/oradd the specified panel.
Good luck, hope this helps :-) -
hi
i want to change skin (Apparance and color) how can i change. anybody help plscome to intial screen of SAP (Easy Access screen). At right most top corner you will see some buttons(below close window button) click them and you get options. here you change your SAP look give colours and other features you want to set.
Regards,
Amit.
Please reward any help
Message was edited by: amit bhadauria -
How can I display a new scene in JavaFX 2.2? For example after button click
how to display new scene after button click in the main window, I want the main window and the new scene are in one stage. thx
You can change the scene by calling stage.setScene(new Scene(newContentParent));
I don't think you are quite asking for a complete scene change though as you "want the main window and the scene in one stage". The main window is a stage (as Stage extends Window). And a given stage can only contain one scene at a time (though you can swap it out by calling setScene as described earlier).
What I think you are really asking for how can you replace some content part of the active Scene on the Stage. To do that you can set a layout manager like a HBox or a BorderPane as the root of your scene, then change out the content of the layout manager. For example:
final BorderPane layout = new BorderPane();
layout.setCenter(new Label("Dogbert");
final Button nav = new Button("Next");
layout.setLeft(nav);
nav.setOnAction(new EventHandler<ActionEvent>() {
@Override public void handle(ActionEvent actionEvent) {
layout.setCenter(new Label("Dilbert"));
});In the above short sample code, if you wanted to change the scene rather than the a pane, then you would call stage.setScene rather than layout.setCenter.
There is a complete executable example with multiple content panes and some styling here:
http://stackoverflow.com/questions/13556637/how-to-have-menus-in-java-desktop-application -
Download the PDF Form as a attachment when button click in BSP application
Hi All,
I have scenario, when button click in the BSP application PDF Form want to download in the IE (like one window open with Open,Save and cancel button).
I have written this code:
data: pdf type fpformoutput-pdf.
< Logic for populate value to pdf field ....
.>
response->set_header_field(
name = 'cache-control'
value = 'max-age=0' ).
response->set_header_field(
name = 'content-disposition'
value = 'attachment; filename=webforms.pdf' ).
response->set_data( data = pdf ).
Once button is clicked pop up is opened and closed automatically because of browser or adobe reader issue.
How can I resolve this problem ?
In the IE i need to change any settings ?
IE version = 7.0
Adobe reader = 9.0
I have tried in the same code with IE = 6.0 and adobe reader 8.1.2 its getting download the pdf form working fine.
The same think i want in IE 7.0 and adobe reader 9.0, what needs to be done ?
Regards,
Boopathi MHello Ravi,
Best would be to bind the dataSource of the InteractiveForm ui element to the parent node containing the table's data. Then specify a name of a template to be created in the templateSource and hit <enter>. Some popups later, the system will have created a template from the structure of the context. All you need to do now is to drag&drop the data structure inside the template designer to the template itself. This will result in a table. Save, activate and return the Web Dynpro view. Don't forget to unbind the pdfSource and enjoy.
Best regards,
Thomas -
Acrobat 9.1 Mac How do you change from Radio buttons to Check boxes?
I have a DMV Form I Downloaded and had to convert to PS then back to PDF (written originally on PC Acrobat was in XML format).
So on new form, I am able to add fields. I used the the Forms manager to automatically create the fields. Fields that were made Radio Buttons should have been Check boxes. How do change the Radio buttons to check boxes. There are a lot of them and I don't wish to have to re-key them in.
Suggestions?Well when I click on the box it shows a Check mark in the box. That exactly what I need because in the instructions it requires a Check mark in each of the check boxes. Normally the Med form is sent as a paper copy from DMV every two years.
Also another Tip. A PDF that has XML Content. (PC Acrobat Version).
If you want a usable PDF on Mac and get rid of the XML do the following:
Open the XML Based PDF on Mac Acrobat 9.X .
Now choose export and save as Postscript File (.ps).
Now locate and drop on Distiller 9.X.
When PDF created will be a Pristine exact replica of the XML file except Mac Acrobat can edit and create forms with it. -
Opening new window on button click from pdf without loosing session
Hi,
In my Java web applicaion on click of a link, we are opening a new window in which we are displaying a pdf. There are 5 buttons on this pdf.
On clicking of this button again we are opening a application link in new window. But in this window we are not gettting our session, which is there in first two window.
For opening new window from pdf button click we are using
var dynamicUrl3 = myappurl;
app.launchURL(dynamicUrl, true);
How can i open new window with the same sesion from the pdf button.
Please help for the same.
Thanks,
Abhijit Mohite.Yes, with target="_blank" in a link or a form.Thanks for ur valuable suggestion. I changed the button to link.
Its working fine now without JavaScript.
Now i got another requirement. When user select some items and press a button in the new popup window, the window must close on button click and the parent window must refresh. This must also be done without using JavaScript.
Is this possible? Please give me an idea to do this.
Thanks. -
How to submit data from multiple Input Ports in single SUBMIT button click
Hi,
I am in SPS8.
What exactly steps I need to perform to submit data from multiple Input Ports.
I couldn't able to submit One input Form and one Input Table to BAPI data service in single SUBMIT button click.
I debugged the VC application in SPS8.
While debugging, I found that when I click the SUBMIT button in the Input Form, Only data in that Input
form are being passed to the BAPI, But not the Table Form data.
If I click on the SUBMIT button in another Input Table, Only data from that table is being passed to the BAPI, but not the Input form data.
Essentially I need to submit both of them in one SUBMIT button.
Thanks,
RamakrishnaRamakrishna,
From the word document that you sent to me the steps you are missing to map the appropriate information into the BAPI is first you are not mapping all data rows into the table input port. To do this double click on the input table view and change your selection mode from single to multiple. Then when you click on your link between the BAPI and your input table you will see a new option appears under data mapping "Mapping Scope" select All Data Rows.
That's the first part of the problem to get the BAPI to recognize both the inputs coming from the form and the table eliminate the submit button from the form. Drag and drop a link from the output port of the table view to the Input port of the BAPI. Double click on the link between the BAPI and the table view and open the expressions editor for the two fields:
1/ Automatic Source
2/ SKIP_ITEMS_WITH_ERROR
On the hierarchical folder structure on the right expand expand the Data Fields node to find the fields from the form and map them accordingly.
Now when you hit the submit button on your table it should pass the BAPI all the parameters from both the form and the table.
Hope this helps,
Cheers,
Scott -
Background changes for every button?
Hello, I am using encore 5.1 and I was wondering if it's possible to have the background change every time I go from one button to the next withtout actually changing menus?
I would like to do something like in the video I'm linking (watch only the first 10 seconds to get an idea of what I'm talking about). Granted, in the video, what's running is a program and not a dvd menu, but is something similar possible in encore?
http://www.youtube.com/watch?v=JKMu-bybpI0
I know I can make it so I go on a button, click enter, this brings me to a new menu with a new background, but I want to cut on the amount of menus. I like the idea of the background changing automatically without having to go to a new menu.
Thanks for your time and help!When using dupe Menus and Auto Activate, I strongly recommend that one sketch out the flowchart first, and also think about using Button and Menu names, that relate directly to where they need to Link. With a bunch of Buttons, it can get involved pretty quickly. With a bit of planning, things will be much easier. I usually will layout my flowchart in Adobe Illustrator, and use the images of my Menus, in that image. It really helps me plan things. However, using AI might be overkill for some Projects, and a pencil and paper would do the job.
Good luck, and remember, if played on a computer, the effect will not be so fluid, as the user must click on the "original" Menu to get to the "dupe" Menu with the different background - just a limitation of Auto Activate on a computer. In a DVD player, it will be pretty seamless, and can look beautiful. I use this general technique to create what appear to be Sub-picture Highlights, that are really graphics.
Hunt -
Change in back button behavior
We are upgrading from ColdFusion 9 to ColdFusion 11. We noticed a change in back button behavior. On pages running CF 9 the back button works, but on pages running CF 11, when clicking the back button, we get a browser "confirm form resubmission" message. Since it is the same browser, it is clearly a change in ColdFusion. Does anyone know when the change was made? Is there a setting that controls the behavior?
Thank you,
DavidWe should ignore the difference in Coldfusion version for a moment. It might just be that the previous behaviour was incorrect and what you now observe, with CF11, is the correct behaviour.
A form-resubmit warning is essential. In fact, it can even be vital in certain circumstances. It is telling you that someone, some process or some thread has attempted to resubmit a form.
In your case, clicking the back button apparently refreshes the action page of the form. This is analogous, in business terms, to repeating an order that has already been placed. The related validation code, queries, etc. will run once again. Obviously an unwelcome situation. -
Hi,
I have a SharePoint 2010 visual WebPart, which has ASP.NET Multiview control. When deployed, this control works fine on my local server and it even works fine in the Development server; however, when deployed on to the production server, it stops working.
I am not able to change Views on the production server, when I try to debug the WebPart in IE Developer Tool (Using IE 11), I get this error that says “Sys.WebForms.PageRequestManagerServerErrorException: An unexpected error has occurred.” in the ScriptResource.axd
file.
Even the Button click is not working, getting the same error in the Button Click.
Can someone help me with this?
Regards, VikramHi Hemendra,
Thanks for your help, but the problem is solved now. turns out the issue was not with the control but the page itself.
I had copy pasted the pages from my local server to the production server instead of exporting and importing it.
Once i created pages in the production server, the issue was solved.
Regards, Vikram -
How to add screen elements at run time on button click in Web Dynpro abap?
Hello All,
I have a requirement wherein the user wants to add the textbox dynamically at runtime on button click action. My questions is, Is it feasible to dynamically add screen elements at runtime? If yes, how?
Please help.
ThanksHi Ajinkya,
This is absolutely possible! Adding view elements at runtime is called "dynamic programming". There are a lot of good resources and tutorials on SCN if you do a search. To start you off, here is an excellent series by Thomas Szücs:
Dynamic Programming in Web Dynpro ABAP - Introduction and Part I: Understanding UI Elements
Dynamic Programming in Web Dynpro ABAP - Part II: Handling ViewElements
Dynamic Programming in Web Dynpro ABAP - Part III: Aggregations and DDIC-Binding of ViewElements
Another option that avoids dynamic programming is to create the view element at design time but bind its visible property to a context attribute of type WDUI_VISIBILITY. You could initially set its visibility to "none" until the user clicks the button, then you could change its visibility to "visible".
Cheers,
Amy -
ALV: Right Button Click and Context Menu
Hi Experts,
I have to implement an ALV which should act on a right button click and show a context menu.
Is this possible? I found only events for "on_double_click" or "on_link_click" and is it possible to show a context menu?
Thanks in advanced.
Best regards,
MarkusHello Markus
The relevant events are:
CONTEXT_MENU_REQUEST
USER_COMMAND
Have a look at my sample report ZUS_SDN_ALV_CONTEXT_MENU_1.
*& Report ZUS_SDN_ALV_CONTEXT_MENU_1
*& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="910750"></a>
*& Thread: ALV: Right Button Click and Context Menu
*& Flow logic of screen 100 (no screen elements; ok_code = GD_OKCODE)
*& PROCESS BEFORE OUTPUT.
*& MODULE STATUS_0100.
*& PROCESS AFTER INPUT.
*& MODULE USER_COMMAND_0100.
REPORT zus_sdn_alv_context_menu_1.
DATA:
gd_okcode TYPE ui_func,
go_docking TYPE REF TO cl_gui_docking_container,
go_splitter TYPE REF TO cl_gui_splitter_container,
go_cell_top TYPE REF TO cl_gui_container,
go_cell_bottom TYPE REF TO cl_gui_container,
go_grid1 TYPE REF TO cl_gui_alv_grid,
go_grid2 TYPE REF TO cl_gui_alv_grid,
gs_layout TYPE lvc_s_layo.
DATA:
gt_knb1 TYPE STANDARD TABLE OF knb1,
gt_knvv TYPE STANDARD TABLE OF knvv.
* CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:
handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING
e_row
e_column
es_row_no
sender,
handle_context_menu_request FOR EVENT context_menu_request
OF cl_gui_alv_grid
IMPORTING
e_object
sender,
handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING
e_ucomm
sender.
ENDCLASS. "lcl_eventhandler DEFINITION
* CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_double_click.
* define local data
DATA:
ls_knb1 TYPE knb1.
CHECK ( sender = go_grid1 ).
READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row-index.
CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
CALL METHOD go_grid1->set_current_cell_via_id
EXPORTING
* IS_ROW_ID =
* IS_COLUMN_ID =
is_row_no = es_row_no.
* Triggers PAI of the dynpro with the specified ok-code
CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ).
ENDMETHOD. "handle_double_click
METHOD handle_context_menu_request.
* define local data
DATA: lt_fcodes TYPE ui_funcattr,
ls_fcode TYPE uiattentry,
ls_func TYPE ui_func,
lt_func TYPE ui_functions.
" Inactivate all standard functions
CALL METHOD e_object->get_functions
IMPORTING
fcodes = lt_fcodes.
LOOP AT lt_fcodes INTO ls_fcode.
ls_func = ls_fcode-fcode.
APPEND ls_func TO lt_func.
ENDLOOP.
e_object->disable_functions( lt_func ).
" Add new functions
e_object->add_separator( ).
CALL METHOD e_object->add_function
EXPORTING
fcode = 'XD03'
text = 'Call Transaction'.
CALL METHOD e_object->add_function
EXPORTING
fcode = 'DETAILS'
text = 'Display Details'.
ENDMETHOD. "handle_context_menu_request
METHOD handle_user_command.
* define local data
DATA:
ls_knb1 TYPE knb1,
ls_row TYPE lvc_s_row,
ls_col TYPE lvc_s_col.
" NOTE: in case of CL_GUI_ALV_GRID the functions of a context menu
" are handled in method USER_COMMAND.
CHECK ( e_ucomm = 'XD03' OR
e_ucomm = 'DETAILS' ).
CALL METHOD sender->get_current_cell
IMPORTING
es_row_id = ls_row
es_col_id = ls_col.
CASE e_ucomm.
WHEN 'XD03'.
READ TABLE gt_knb1 INTO ls_knb1 INDEX ls_row-index.
SET PARAMETER ID 'BUK' FIELD ls_knb1-bukrs.
SET PARAMETER ID 'KUN' FIELD ls_knb1-kunnr.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
WHEN 'DETAILS'.
" NOTE: only for the sake of simplicity the event handler method
" is called
CALL METHOD lcl_eventhandler=>handle_double_click
EXPORTING
e_row = ls_row
sender = go_grid1.
WHEN OTHERS.
ENDCASE.
ENDMETHOD. "handle_user_command
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
START-OF-SELECTION.
SELECT * FROM knb1 INTO TABLE gt_knb1
WHERE bukrs = '1000'.
* Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Create splitter container
CREATE OBJECT go_splitter
EXPORTING
parent = go_docking
rows = 2
columns = 1
* NO_AUTODEF_PROGID_DYNNR =
* NAME =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Get cell container
CALL METHOD go_splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = go_cell_top.
CALL METHOD go_splitter->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = go_cell_bottom.
* Create ALV grids
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_cell_top
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Set event handler
SET HANDLER:
lcl_eventhandler=>handle_double_click FOR go_grid1,
lcl_eventhandler=>handle_context_menu_request FOR go_grid1,
lcl_eventhandler=>handle_user_command FOR go_grid1.
CREATE OBJECT go_grid2
EXPORTING
i_parent = go_cell_bottom
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Display data
gs_layout-grid_title = 'Customers'.
CALL METHOD go_grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'KNB1'
is_layout = gs_layout
CHANGING
it_outtab = gt_knb1
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
gs_layout-grid_title = 'Customers Details (Sales Areas)'.
CALL METHOD go_grid2->set_table_for_first_display
EXPORTING
i_structure_name = 'KNVV'
is_layout = gs_layout
CHANGING
it_outtab = gt_knvv " empty !!!
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Link the docking container to the target dynpro
CALL METHOD go_docking->link
EXPORTING
repid = syst-repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* NOTE: dynpro does not contain any elements
CALL SCREEN '0100'.
* Flow logic of dynpro (does not contain any dynpro elements):
*PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
*PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'. " contains push button "DETAIL"
* SET TITLEBAR 'xxx'.
* Refresh display of detail ALV list
CALL METHOD go_grid2->refresh_table_display
* EXPORTING
* IS_STABLE =
* I_SOFT_REFRESH =
EXCEPTIONS
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE gd_okcode.
WHEN 'BACK' OR
'END' OR
'CANC'.
SET SCREEN 0. LEAVE SCREEN.
* User has pushed button "Display Details"
WHEN 'DETAIL'.
PERFORM entry_show_details.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form ENTRY_SHOW_DETAILS
* text
* --> p1 text
* <-- p2 text
FORM entry_show_details .
* define local data
DATA:
ld_row TYPE i,
ls_knb1 TYPE knb1.
CALL METHOD go_grid1->get_current_cell
IMPORTING
e_row = ld_row.
READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
CHECK ( syst-subrc = 0 ).
SELECT * FROM knvv INTO TABLE gt_knvv
WHERE kunnr = ls_knb1-kunnr.
ENDFORM. " ENTRY_SHOW_DETAILS
Regards
Uwe -
Submitting form via button click
Hi, i have a following code and it doesnt work and i dont know why
<jsp:useBean id="pageinfo" class="zrna.PageInfo" scope="session"/>
<jsp:setProperty name="pageinfo" property="*"/>
<html>
<head>
<script type="text/javascript">
function clickEvent(form,md,wrkOn)
form.mode.value = md;
form.workingOn.value = wrkOn;
form.submit();
function m(form){return true;}
</script>
</head>
<form action="index.jsp" method=get >
<input type="hidden" name="mode" value="">
<input type="hidden" name="workingOn" value="">
<input type="submit" value="Add" onclick="clickEvent(this.form,'add','Student')">
<input type="submit" value="Alter" onclick="clickEvent(this.form,'alter','Student')">
<input type="submit" value="Done" onclick="clickEvent(this.form,'general','')">
</form>
So im trying to change jsp bean properties of pageinfo thru submiting form and it doesnt work. when button is clicked the page goes blank. What am i missing?is this page you posted "index.jsp"?
Not sure offhand, but could the form submit before onclick fires? If so, change them to button types, not submit types.
The bean has those named fields? Public get/set methods?
Does useBean have to be this?
<jsp:useBean id="pageinfo" class="zrna.PageInfo" scope="session">
<jsp:setProperty name="pageinfo" property="*"/>
</jsp:useBean>
Maybe you are looking for
-
Getting to notification center without trackpad
I am using my macbook pro with an external monitor when i am at home. So basically i a have a bluetooth mouse and keyboard with my macbook shut. There are a few things I miss with the trackpad like getting to the notification center and the app expos
-
RAC Installation (Valid IP Error)
Hello Guys, I am installing 2 nodes RAC 10g R2 on windows XP platform. Each node contains 2 network cards for private, public and virtual IPs. Following is the seeting of TCP/IP on each node. Node 1 Netwrok Card 1 Public IP : 192.168.0.140 Virtual IP
-
Hyperion Verion 11.1.1.3 Compatibility with SAML
Hi All , Can anyone let me know whether 11.1.1.3 Version is compatible with SAML . Can how to go about Single sign on implementation ?
-
SD Availability check for item
Hi, during the change of an on order the system not always executes availability check after my changes. So in userexit MV45AFZZ I'm trying to enforce SAP to execute it, but how should I call standard availablity check (CTRL + F5 in VA02) ? Marek
-
Update my Mac to the OS X Lion
I am trying to update my Mac to the OS X Lion and it will not take my Apple ID!! I have checked a million times to make sure it is entered correctly... It keeps posting that "my computer or device cannot be verified." WHY?