JDeveloper - How to create a "back button" using JSF
As simple as it sounds, I'm having trouble creating a basic back button on my JSF page. I'm using a af:goButton with the Onclick attribute stating history.back(). I've also tried history.go(-1) to no avail.... is there a trick to this?
Thanks,
Richard
If you are looking for a more advanced case as describe, you will need to reference the last navigation outcome in a managed bean so that you can execute it when the back button is clicked.
--Ric
Similar Messages
-
How can we prevent back button using java script
how can we prevent back button using java script
Would be quicker for you to google for javaScript
javascript:window.history.forward(-1); -
How to Create a Back button in Flash
Hi all,
I need to create a back button for my flash app. It doesn't
need to be connected with Browser. It just need be able to remember
what frame they were viewing, and bring them back.
Is there any event I can use for this? I made an variable
called "visited:Number" and change it on every frame, but this
won't work. Once the user enters a new frame, the original visited
number is replaced by current already. I don't know how to hold
that number, before they leave the current frame.
Can anybody give me little clue/direction please?
Thank you...Hi
I believe that you should look at the Forms functionality for UCM . Under Content Management - Web Form Editor will show up the editor where in you can add buttons and attach functionalities to it . With UCM 11g this is not available thus you might need to use AJAX to build the requirement .
Thanks
Srinath -
How to make a back button using AS3
I'm trying to do my first project using ActionScript in CS4. I need to make a back button that will take the user back to the last "slide" they were on.
I went through the effort of creating a back button that I only realized didn't work after I was finished. I had it set up to just go to the previous slide and totally ignored the fact that there are several branching scenarios.I'm more or less having to teach myself at this point. Where should I go to learn about using an array?
-
How to Create a Radio Buttons using Personlization
Hi friends ,
We have requierment like , Wanted to havev two radio buttons Employee Relative : YES or NO values.
These radio buttons I wanted to add on Oracle Provided page using personlization. But the Values for the radio buttons should be YES and another button is No.
After addin it , we shall have this selected value handled in Custom Controller. How can I the radio Buttons with the above YES/No Values. Any guidelines would be greatly helpful.
Thanks Guys
Regards
RaghuHi,
Using personalization you can create radio button s, the item style as: Message Radio Button
and then extend the controller and use the below code in processrequest of the extended or custom controller:
OAMessageRadioButtonBean appleButton =
(OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonOne"); //First Radio Button
appleButton.setName("Yes");
appleButton.setValue("Yes");
OAMessageRadioButtonBean orangeButton =
(OAMessageRadioButtonBean)webBean.findChildRecursive("GroupButtonTwo"); //Second Radio Button
orangeButton.setName("No");
orangeButton.setValue("No");
May be it will help you.
Regards
Mahesh -
How to create a BRowse button using Swing?
I want to create a browse button with the help og which i want to browse a file..
please can anyone help meBookmark the API (or search the downloads section if you want to get an offline set)
{color:0000ff}http://java.sun.com/javase/6/docs/api/{color}
JFileChooser:
{color:0000ff}http://java.sun.com/javase/6/docs/api/javax/swing/JFileChooser.html{color}
db -
How can block firefox back button {using some language..}
Like This links...
[http://example.com https://careers.infosys.com/sap/bc/webdynpro/sap/hrrcf_a_unreg_job_search?sap-client=400]Would be quicker for you to google for javaScript
javascript:window.history.forward(-1); -
How to create a Watch List using JSF
I'd like to build a HTML UI which includes the toggling of items from a watch list. For example, stocks or system alerts which are important to the user. First of all are there any JSF example which demonstrate this type of application? What is the best approach for building such an interface so that individual lines can be added and removed from the watch list and the view mode can be toggled from watch list only items to all items?
I've looked at the data repeater component example and tried to make that work for this purpose but I'm struggling with some of the details and wondering if the approach taken is good or if there is a better approach. Basically what I have is a List of line items held in a managed bean class. This List is associated to my repeater's value tag. The managed bean also has a UIData element and a UISelectBoolean with the former associated to the repeater's binding and the latter associated to a invisible selectboolean_checkbox (rendered="false").
As the user presses an "Add" watchlist button with an action of toggleWatch the UISelectedBoolean.setSelected (onWatchList) is toggled between true and false for the current UIData.getRowIndex(). However, in tracing the code with a debugger, I see as the component tree is rendered that suddenly all UIData rows appear to have their onWatchList.isSelected() toggled to the new value.
Additionally, when I toggle between the view modes of show watchlist and show all my method to determine what gets rendered doesn't appear to have any effect. This is, when pressing the Show Watch button, the viewType is set to "watch" and then a setRendered method is called to setRendered() for each UIData row as follows. Again, this appears to have no effect.
public void setRendered()
for (int i=0; i< myList.size(); i++)
data.setRowIndex(i);
if ( viewType.equals("watch") && !onWatchList.isSelected() ) <-UISelectBoolean type
data.setRendered(false);
else if ( viewType.equals("raised") && !raised.isSelected() )
data.setRendered(false);
else
data.setRendered(true);
Am I making this too hard or am I just missing something minor???Upon further debugging it looks like the current issues may be caused by only one onWatchList (UISelectBoolean) existing instead of one for each row in the UIData group. So, what builds the association here? In the RepeaterBean example class the checked UISelectBoolean is simply declared as a instance variable but is never associated to the UIData. How are these glued together?
Of course, I'm still wondering if the is a much better / easier way to get the same results... -
Dear Forum
I was using Adobe version XI and the signature feature disappeared from the menu. Now I downloaded Acrobat Reader DC. Using the menu and instructions I created a signature ID and customized the signature; however, when I go to sign a document it only shows the name layout or graphic image? How do I go back to using the certificate that I created?
Any help would be greatly appreciated.
Regards
CarlosFirefox works fine on Windows 2000 SP4 for me.
Any chance you have a dial-up connection that uses a web accelerator to speed the loading of content? -
How to create a radio button on OA Page using Personalization
I am trying to create a radio button on OA Page using Personalization. The item style , I can see is Message Radio Group.
How to create Message Radio Button and bring them under one group.
ThanksYou should use jdev to define a radiogroup and radio buttons under that, wrap that definition inside a stackLayout in jdev, use personalization to add a stackLayout and extend the region which you had created earlier in jdev.
-
How can we create such navigation buttons using Flash CS4?
Hi,
How can we create such navigation buttons using Flash CS4 is in the following website? Please help me with any such tutorial to make my custom navigation bar/buttons.
http://city.reallusion.com/join.html
Thanks.While the Note 4 is a reasonably large device it still falls into the phone layout bucket. We need this layout to function on very small screens some as low as 320 pixels high and 240 pixels wide. These sorts of devices don't have the space for a full toolbar.
-
How to create a modeless dialog using commandlink
i want to create a modelessdialog using commandlink. and my code is
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<f:view>
<script language="Javascript1.2">
function modelesswin(){
window.showModelessDialog();
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<h:form>
<h:commandLink onclick="javascript:modelesswin('popup.html', 300, 300)" value="click"></h:commandLink>
</h:form>
</body>
</f:view>
</html>
when i click the buttonlink the dialog box is not in a stable state that is its will appear and within a second it will disappear .. can any one of them can suggest me how to create a modeless dialoge using commandlink or by jsf option button
regards
subramanianIf I had to guess (and I do :), the onclick is firing, bring up the dialog, but the commandLink causes a form submit, so the page is submitted. There is no action on the commandLink, so it's navigating back to the same page, causing it to refresh and your dialog to disappear. It would appear to me that you need a h:outputLink or simply <a href="# onclick="..." /"></a>
-
Create a back button - need help
Hello JHS Team,
I am using JHeadStart 10.1.2.
I need to create a back button in a specific UIX page on my application.
I'm new to JHeadstart and I really need some help from you. Can anyone help me???
ThanksAtena,
You can add the button to your page post-generation, using the UIX Visual editor. Make sure you uncheck the Generate Pages switch for this group in your application structure file to protect your change upon regeneration.
May be an unsollicited advice:
I understand that you are new to ADF, JDeveloper and UIX. UIX is superseded by ADF Faces in JDeveloper 10.1.3, and based on the JSF standard.
UIX will not be further developed, JSF and ADF Faces are the technologies to use going forward. Therefore, I would recommend to consider to switch for your application development to JDeveloper and JHeadstart 10.1.3. For JDeveloper/ADF 10.1.3, there is an excellent developers guide available, that provides a lot of useful information, in particular when you are new to the ADF Framework.
Note that a JHeadstart 10.1.2 UIX generated application can easily be migrated to 10.1.3, you will only need to redo your post-generayion changes. So may be you can try to stick (close) to 100% generation for now, and migrate to 10.1.3 at your earliest convenience.
Steven Davelaar,
JHeadstart Team. -
How to Restrict/Disable back button in browser
Hi guys,
I am writing a enterprise web application using ADF. I am using JDeveloper 11.1.2.0.0.
I want to restrict/ disable browser back/forward buttons in all my .jspx and .jsf pages.
It was discussed in following thread as well.
how to Restrict/Disable back button in browser
Can somebody give a way to do this please.
Regards !
SameeraHi Sudipto,
This is one of my .jspx pages. I wonder where should I put that javascript code. I have tried in several places and didn't work.
<?xml version='1.0' encoding='windows-1252'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document title="Registration Page" id="d1">
<af:messages id="m1"/>
<af:form id="f1">
<af:pageTemplate viewId="/MyPageTemplate.jspx" id="pt1">
<f:facet name="MainPageRegion">
<af:group id="g1">
<af:panelSplitter splitterPosition="454"
inlineStyle="width:943px; height:200px;"
id="FirstRN">
<f:facet name="first">
<af:panelGroupLayout layout="scroll" id="pgl1">
<af:outputText value="Registration Details"
inlineStyle="font-weight:bold;" id="ot1"/>
<af:separator id="s1"/>
<af:panelFormLayout labelAlignment="start" id="pfl1">
<f:facet name="footer"/>
<af:panelLabelAndMessage label="#{bindings.RegNum.hints.label}" id="plam1">
<af:outputText value="#{bindings.RegNum.inputValue}" id="ot2"/>
</af:panelLabelAndMessage>
<af:selectOneChoice value="#{bindings.ProcType.inputValue}"
label="#{bindings.ProcType.label}"
required="#{bindings.ProcType.hints.mandatory}"
shortDesc="#{bindings.ProcType.hints.tooltip}" id="soc1">
<f:selectItems value="#{bindings.ProcType.items}" id="si1"/>
</af:selectOneChoice>
<af:selectOneChoice value="#{bindings.RegStatus.inputValue}"
label="#{bindings.RegStatus.label}"
required="#{bindings.RegStatus.hints.mandatory}"
shortDesc="#{bindings.RegStatus.hints.tooltip}" id="soc2">
<f:selectItems value="#{bindings.RegStatus.items}" id="si2"/>
</af:selectOneChoice>
<af:panelLabelAndMessage label="#{bindings.TotalUsdAmt.hints.label}" id="plam2">
<af:outputText value="#{bindings.TotalUsdAmt.inputValue}" id="ot3">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.TotalUsdAmt.format}"/>
</af:outputText>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{bindings.TotalPfiAmt.hints.label}" id="plam3">
<af:outputText value="#{bindings.TotalPfiAmt.inputValue}" id="ot4">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.TotalPfiAmt.format}"/>
</af:outputText>
</af:panelLabelAndMessage>
</af:panelFormLayout>
</af:panelGroupLayout>
</f:facet>
<f:facet name="second">
<af:panelGroupLayout layout="scroll"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="pgl2">
<af:outputText value="Creation Details"
inlineStyle="font-weight:bold;" id="ot5"/>
<af:separator id="s2"/>
<af:panelFormLayout labelAlignment="start" id="pfl2">
<f:facet name="footer"/>
<af:panelLabelAndMessage label="#{bindings.CreatedByName.hints.label}" id="plam4">
<af:outputText value="#{bindings.CreatedByName.inputValue}" id="ot6"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{bindings.CreationDate.hints.label}" id="plam5">
<af:outputText value="#{bindings.CreationDate.inputValue}" id="ot7">
<af:convertDateTime pattern="#{bindings.CreationDate.format}"/>
</af:outputText>
</af:panelLabelAndMessage>
<af:selectOneChoice value="#{bindings.RequestedBy.inputValue}"
label="#{bindings.RequestedBy.label}"
required="#{bindings.RequestedBy.hints.mandatory}"
shortDesc="#{bindings.RequestedBy.hints.tooltip}" id="soc3">
<f:selectItems value="#{bindings.RequestedBy.items}" id="si3"/>
</af:selectOneChoice>
<af:panelLabelAndMessage label="#{bindings.DepartmentName.hints.label}" id="plam6">
<af:outputText value="#{bindings.DepartmentName.inputValue}" id="ot8"/>
</af:panelLabelAndMessage>
</af:panelFormLayout>
</af:panelGroupLayout>
</f:facet>
</af:panelSplitter>
<af:panelSplitter inlineStyle="width:944px; height:132px;"
splitterPosition="452" id="SecondRN">
<f:facet name="first">
<af:panelGroupLayout layout="scroll"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="pgl3">
<af:outputText value="Notes to Buyer"
inlineStyle="font-weight:bold;" id="ot9"/>
<af:separator id="s3"/>
<af:inputText value="#{bindings.NotesBuyer.inputValue}"
simple="true"
required="#{bindings.NotesBuyer.hints.mandatory}"
columns="#{bindings.NotesBuyer.hints.displayWidth}"
maximumLength="#{bindings.NotesBuyer.hints.precision}"
shortDesc="#{bindings.NotesBuyer.hints.tooltip}"
rows="5" id="it1">
<f:validator binding="#{bindings.NotesBuyer.validator}"/>
</af:inputText>
</af:panelGroupLayout>
</f:facet>
<f:facet name="second">
<af:panelGroupLayout layout="scroll"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich" id="pgl4">
<af:outputText value="Party Notes"
inlineStyle="font-weight:bold;" id="ot10"/>
<af:separator id="s4"/>
<af:inputText value="#{bindings.PartyNotes.inputValue}"
simple="true"
required="#{bindings.PartyNotes.hints.mandatory}"
columns="#{bindings.PartyNotes.hints.displayWidth}"
maximumLength="#{bindings.PartyNotes.hints.precision}"
shortDesc="#{bindings.PartyNotes.hints.tooltip}"
rows="5" id="it2">
<f:validator binding="#{bindings.PartyNotes.validator}"/>
</af:inputText>
</af:panelGroupLayout>
</f:facet>
</af:panelSplitter>
<af:spacer width="10" height="20" id="s5"/>
<af:outputText value="Registration Lines"
inlineStyle="font-weight:bold;" id="ot11"/>
<af:separator id="s6"/>
<af:commandButton text="Add Item"
disabled="#{RegistrationBean.disableAddItemBtn}"
action="CatalogPage" id="cb1"/>
<af:commandButton text="Search Item"
action="ItemLitsPage"
disabled="#{RegistrationBean.disableSearchCataBtn}" id="cb2"/>
<af:table value="#{bindings.RegLinesRegPageVO.collectionModel}"
var="row" rows="#{bindings.RegLinesRegPageVO.rangeSize}"
emptyText="#{bindings.RegLinesRegPageVO.viewable ? 'No rows yet.' : 'Access Denied.'}"
fetchSize="#{bindings.RegLinesRegPageVO.rangeSize}"
width="900" id="t1">
<af:column sortProperty="ProductCode" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.ProductCode.label}" id="c1">
<af:outputText value="#{row.ProductCode}" id="ot12"/>
</af:column>
<af:column sortProperty="Qty" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.Qty.label}" id="c2">
<af:outputText value="#{row.Qty}" id="ot13">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.RegLinesRegPageVO.hints.Qty.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="UnitPrice" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.UnitPrice.label}" id="c3">
<af:outputText value="#{row.UnitPrice}" id="ot14">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.RegLinesRegPageVO.hints.UnitPrice.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="Currency" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.Currency.label}" id="c4">
<af:outputText value="#{row.Currency}" id="ot15"/>
</af:column>
<af:column sortProperty="UsdAmount" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.UsdAmount.label}" id="c5">
<af:outputText value="#{row.UsdAmount}" id="ot16">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.RegLinesRegPageVO.hints.UsdAmount.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="UsdPfiAmount" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.UsdPfiAmount.label}" id="c6">
<af:outputText value="#{row.UsdPfiAmount}" id="ot17">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.RegLinesRegPageVO.hints.UsdPfiAmount.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="UsdTotalAmount" sortable="false"
headerText="#{bindings.RegLinesRegPageVO.hints.UsdTotalAmount.label}" id="c7">
<af:outputText value="#{row.UsdTotalAmount}" id="ot18">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.RegLinesRegPageVO.hints.UsdTotalAmount.format}"/>
</af:outputText>
</af:column>
</af:table>
</af:group>
</f:facet>
<f:facet name="ActionButtonBarRegion">
<af:group id="g2">
<af:commandButton actionListener="#{bindings.Commit.execute}"
text="Save"
disabled="false" id="cb3">
<af:setActionListener from="#{false}"
to="#{RegistrationBean.disableAddItemBtn}"/>
<af:setActionListener from="#{false}"
to="#{RegistrationBean.disableSearchCataBtn}"/>
<af:setActionListener from="#{bindings.RegistrationId.inputValue}"
to="#{pageFlowScope.regToEdit}"/>
</af:commandButton>
<af:commandButton text="Home" action="HomePage" immediate="true" id="cb4"/>
</af:group>
</f:facet>
<f:attribute name="PageTitle" value="Registration Page"/>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
</jsp:root>
Regards !
Sameera
Edited by: samme4life on May 17, 2012 2:39 AM
Edited by: samme4life on May 17, 2012 2:42 AM -
How to create user defined button in alv report
how to create user defined button in alv report
thnks in advance.Hi,
U can define it the the PF-STATUS ( Menu for ALV ).
For that u have to define it in the EVENTCAT.
form z_eventcat using p_i_eventcat type slis_t_event.
data: i_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = p_i_eventcat
exceptions
list_type_wrong = 1
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.
clear i_event.
read table p_i_eventcat with key name = slis_ev_top_of_page into
i_event.
if sy-subrc = 0.
move 'TOP_OF_PAGE' to i_event-form.
append i_event to p_i_eventcat.
endif.
read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
if sy-subrc = 0.
move 'SET_PF_STATUS' to i_event-form.
append i_event to p_i_eventcat.
endif.
clear i_event.
read table p_i_eventcat into i_event with key name = slis_ev_user_command .
if sy-subrc = 0.
move 'USER_COMMAND' to i_event-form.
append i_event to p_i_eventcat.
endif.
And in the DISPLAY
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = v_progname
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
i_callback_top_of_page = 'TOP_OF_PAGE'
i_grid_title = v_gridtitle
i_save = 'A'
is_layout = i_layout
it_fieldcat = i_fieldcat[]
it_sort = i_sortinfo
it_events = i_eventcat
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = it_final
exceptions
program_error = 1
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.
*MENU SETTINGS.
form set_pf_status using rt_extab type slis_t_extab.
set pf-status 'ALV_MENU'.
endform. "SET_PF_STATUS
endform. " Z_EVENTCAT
Now double click on ALV MENU nad u can create a button in the application bar.
Regards,
Pritha.
Maybe you are looking for
-
Long mode not supported during import Oracle solaris 11 for vritual Box...
Hello buddy, I try to import Oracle solaris 11 into Oracle vritual Box. but it shows ''Long mode not supported,Rebooting ....". Then reboot again and again.. what is going on ? My PC is WinXP 32bit. Thanks
-
My iMac is used for basic desktop stuff (MS Office, iPhoto, Chrome) and not much else. It is, however, unbelievably slow (MS Word takes 5 minutes to open after launching). I have recently upgraded to yosemite and it is no better. Below the output fro
-
OMG Please help with Win XP partition issue FAT32 NTFS
I know that there are other posts about this, but I have not been able to find the answers to my problems I had the issue that others had with not getting the option to format the bootcamp partition during my XP Pro install. I used the FreeDOS soluti
-
HT1212 how do reset to factory setting when i forgot the passcode
Can someone please tell how to factory reset my ipod touch 1st gen as i have forgotten the passcode and want to sell it..
-
Flickering on finder window when uploading or opening.
I got my macbook pro 13in in November so it is brand new.I suffered a fall on the ice with my laptop in my backpack.Back pack first a week ago.I have a shell case for it,but am worried something might have happened internally. It has been fine up unt