Moving Scriptlet Code to backing bean when converting from JSP - Facelets
Hello!
We are converting our application from jsf1.2 to 2.0 and all jsps are being converted to XHTML. Some are trivial while others had very complex scriptlets.
I would like to know what are some of the recommended ways of moving Scriptlet Code to backing bean when converting from JSP -> Facelets.
I have thought about listeners, actionListeners, putting code getXXXX() of the backing bean and then calling #{bean.XXXX} but not sure whats the best way.
I do appreciate the response!
Eg of a jsp page:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/xxx-jsf.tld" prefix="l" %>
<%@ taglib uri="/WEB-INF/yyy-pp.tld" prefix="p" %>
<%@ page import="com.ttyy.search.beans.jsf.AdvancedSearchFormManagedBean" %>
<%@ page import="com.kkee.util.*"%>
<%
AdvancedSearchFormManagedBean advancedSearchFormManagedBean = (AdvancedSearchFormManagedBean) request.getSession().getAttribute("AdvancedSearchFormManagedBean");
if (advancedSearchFormManagedBean == null) {
advancedSearchFormManagedBean = new AdvancedSearchFormManagedBean();
request.getSession().setAttribute("AdvancedSearchFormManagedBean", advancedSearchFormManagedBean);
advancedSearchFormManagedBean.initializeForAdvancedSearchOptions();
advancedSearchFormManagedBean.setQuickSearch();
request.setAttribute("portletHeader", "Hello " + advancedSearchFormManagedBean.getPerson().getFirstname() + ", check out the latest programs in your practice areas and jurisdictions");
%>
<h:form id="MYCenterForm">
<p:portletRenderer portletSetName="test of portlet"
portletContainer="#{PortletContainerManagedBean}"
id="MYCenter"
portletScope = "TEST_SCOPE"
suppressIfNoData="true"
portletSkinName="SOME_SKIN">
<f:facet name="persistenceToolkit">
<h:commandLink id="persistenceToolkitLink"
actionListener="#{PortletContainerManagedBean.persistPortletSetStateListener}">
<h:outputText value="Save State Of Portlet Set" id="persistenceToolkitLinkText"/>
</h:commandLink>
</f:facet>
</p:pagePortletSetRenderer>
</h:form>
<%
String flag = PropertyItems.getInstance().getPropertyItem("response.time.flag");
if("1".equals(flag)){
ResponseTime rt = (ResponseTime) session.getAttribute("responseTime");
if(rt!=null){
rt.setDesc("my cle loaded");
long now = System.currentTimeMillis();
long start = rt.getStart() + rt.getTotal();
rt.setInterval(now-start);
rt.setTotal(rt.getTotal()+rt.getInterval());
LogUtil.log(rt.toString(), LogUtil.DEBUG_LEVEL);
session.setAttribute("responseTime", rt);
%>
That helps.
This could be another topic question but itst kind of related to what i am doing right now. while converting JSP to facelet (in jsf2) I came across another issue.
<h:commandLink id="Save" rendered="#{RegistrationBean.isNOTInOrigionalRegistrationMode}" action="#{RegistrationBean.updateProfile2Submit}" styleClass="#{portalSkinManagedBean.contentPortletSkin.strongTextStyle}">
<l:htmlSkinnedImage id="SaveImage" style="border:0;" url="save.gif" alt="Save Information"/>
</h:commandLink>When I click on the generated link, I get this. And this is happening for all the h:commandLink in the application.
http://localhost:9080/registration/updateProfile2.jsf[request.getQueryString()=null][request.getRequestedSessionId()=F1CCE237DD81D301F1C4DBA6910FFD8A][request.isRequestedSessionIdFromCookie()=true][request.isRequestedSessionIdFromURL()=false][request.isRequestedSessionIdValid()=true]Parameters:[rolePracticeAreasForm:title=rolePracticeAreasForm:primaryPracticeArea=10002javax.faces.ViewState=-2943345291093118815:-4400303399130292206rolePracticeAreasForm:practiceAreasMod2=10148.1rolePracticeAreasForm:practiceAreasMod1=10002.1rolePracticeAreasForm:Save=rolePracticeAreasForm:SaverolePracticeAreasForm=rolePracticeAreasFormrolePracticeAreasForm:otherField=rolePracticeAreasForm:fromMyAccount=1]||
javax.servlet.ServletException: Index: 0, Size: 0
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.legaledcenter.util.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:250)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.jscape.framework.galileo.support.upload.UploadFilter.doFilter(UploadFilter.java:71)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at javax.faces.component.AttachedObjectListHolder.restoreState(AttachedObjectListHolder.java:161)
at javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1427)
at com.sun.faces.application.view.StateHolderSaver.restore(StateHolderSaver.java:121)
at com.sun.faces.application.view.StateManagementStrategyImpl$4.invokeContextCallback(StateManagementStrategyImpl.java:289)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1253)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1262)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1262)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1262)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1262)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:284)
at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:177)
at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:119)
at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:434)
at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:143)
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
... 22 more
********** Message End *************Thanks
Similar Messages
-
How do I get PRO to not include codes when converting from Word?
When converting from word, I get all of the codes printed too.How do I get it to not show in Adobe? I'm on a deadline and right now not happy that I upgraded. Need my old adobe back!
Board of Directors Meeting{ PRINT \p para "[
/EMC pdfmark [ /StPop pdfmark" }
{ PRINT \p para "[ /Subtype /P /Title () /StPNE pdfmark" }{
PRINT \p para "[ /StBMC pdfmark" }{ PRINT \p para "[ /EMC pdfmark [ /StPop pdfmark" }
{ PRINT \p para "[ /Subtype /P /StPNEThanks Bill for your reply.
I am using Acrobat XI, just downloaded it and Word 2003. There are no punctuations on my form, I just hit return to go to the next lines.
I put in a little square check box and that is also causing issues. I checked to make sure the field codes are off on the original word doc.
I did try from the printer to save and adobe and I get the same codes. Other people that I work with are able to get my document to save correctly in acrobat with the same versions of word and XI.
It has to be some small setting on my computer. -
Default PR Type when convert from Planned Order
Hi all,
How can I default my PR Type when convert from Planned Order after MRP run. This can done via MRP Group control but how to go about controlling via Planned Order profile?
Which planned object type and planned order profile to be used? assuming that i need my planned to be output at LA type and convert to NB1 PR type instead of the default NB PR type?
Thanks.
Regards,
AndrewHi,
The system determines the document type from the stettings u are making in "planned order Profile" in Customising for MRP. There u define the order type, the procurement key and the special procurement key and also the account assignment category. So based on the procurement key and the special procurement key maintained in the Marterial master, the document type is selected.
Production > Materials Requirement Planning > Procurement Proposals > Planned Order > Define order profile
Choose the planned order type - NB1 Within this you specify the P req doc type to be used.
Through MRP group and the different PR document type for MRP generated PR is possible only if you assign the document type to MRP group in the MRP configuration.
Please try and come back.
Regards,
R.Brahmankar
Edited by: R Brahmankar on Aug 28, 2008 10:54 AM -
Overflow when converting from "1.64174e+11"
Hi ,
I am working on PS module and facing the above mentioned error.Whenever I am attching any material haveing value more than Rs 100000 the system gives "Overflow when converting from "1.64174e+11""
The detailed error description is given below,
Runtime Errors CONVT_OVERFLOW
Except. CX_SY_CONVERSION_OVERFLOW
Date and Time 24.11.2008 11:19:23
Short dump has not been completely stored (too big)
Short text
Overflow when converting from "1.64174e+11"
What happened?
Error in the ABAP Application Program
The current ABAP program "SAPFV45P" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_CONVERSION_OVERFLOW', was not
caught in
procedure "KALKULATIONSWERT_UEBERNEHMEN" "(FORM)", nor was it propagated by a
RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
When attempting to convert the value "1.64174e+11", an overflow occurred.
Missing RAISING Clause in Interface
Program SAPFV45P
Include FV45PF0K_KALKULATIONSWERT_UEBE
Row 8
Module type (FORM)
Module Name KALKULATIONSWERT_UEBERNEHMEN
Trigger Location of Exception
Program SAPFV45P
Include FV45PF0K_KALKULATIONSWERT_UEBE
Row 140
Module type (FORM)
Module Name KALKULATIONSWERT_UEBERNEHMEN
Source Code Extract
Line SourceCde
110 MTCOM-MATNR = VBAP-MATNR.
111 MTCOM-BWTAR = VBAP-BWTAR.
112 CALL FUNCTION 'MATERIAL_READ'
113 EXPORTING
114 SCHLUESSEL = MTCOM
115 IMPORTING
116 MATDATEN = MBEW
117 EXCEPTIONS
118 ERROR_MESSAGE = 04
119 OTHERS = 04.
120 MOVE SY-SUBRC TO SAV_SUBRC.
121 ENDIF.
122
123 IF T685A-KRECH = 'C'.
124 IF SAV_SUBRC = 0 AND MBEW-PEINH NE 0.
125 KOMV-KPEIN = MBEW-PEINH.
126 ELSE.
127 KOMV-KPEIN = 1.
128 ENDIF.
129 * Falls keine ET da, Zielmenge nehmen (Gut-/Lastschrift, Kontrakt ...)
130 DATA: DA_MENGE LIKE VBAP-KWMENG.
131 IF TVAP-ETERL EQ SPACE AND VBAP-KWMENG = 0.
132 DA_MENGE = VBAP-ZMENG.
133 ELSE.
134 DA_MENGE = VBAP-KWMENG.
135 ENDIF.
136 IF DA_MENGE > 0.
137 DA_WERT = DA_WERT * KOMV-KPEIN * 1000
138 / DA_MENGE * VBAP-UMVKN / VBAP-UMVKZ.
139 ENDIF.
>>>>> KOMV-KBETR = DA_WERT.
141 ELSEIF T685A-KRECH = 'B'.
142 KOMV-KBETR = DA_WERT.
143 ELSE.
144 KOMV-KWERT = DA_WERT.
145 ENDIF.
146
147 KOMV-WAERS = DA_KALKO-FWAER.
148 RV45A-KOEIN = DA_KALKO-FWAER.
149 KOMV-KMEIN = VBAP-MEINS.
150 PERFORM KOMV_PRUEFEN USING SPACE
151 CHANGING SY-SUBRC.
152 * Nur für den ersten Lauf prüfen, ob Status gesetzt werden muß
153 IF SAV_INDEX = 1.
154 DA_SUBRC = SY-SUBRC.
155 ENDIF.
156 IF SY-SUBRC = 0.
157 PERFORM KOMV_BEARBEITEN.
158 ENDIF.
159 ENDDO.
Pl suggest.
RgdsHi,
Try to declare your variable using Packed Number:
DATA: va_num TYPE P DECIMALS 3.
Hope this helps.
Patrick -
Hypertext links are not always preserved from Word to PDF, using Aperçu or Adobe, depending on OS 10 or Lion. Why? This generally works perfectly in Windows. Why are Apple and Adobe unable to correctly handle links when converting from Word to PDF?
Depending on the system version, and Office Word version:
- a pure URL link starting with http or even www sometimes works in PDF, either produced by Aperçu or Adobe, sometimes does not work;
- other kind of links where the text under display is not a URL, never work!
I like everything with Apple computers and software, except PDF generation. Output files are usually bigger in size, and no better quality, than under Windows. Furthermore, it is weird that something as common as hyperlinks does not work correctly!
I related this question with Mac OS X Snow Leopard, but the problem is still there with Mac OS Lion.
This problem seems to have been around for years, without any proper solution from Apple and/or Adobe! To me, this is very embarrassing!Greetings NoNameGiven,
If I understand the problem correctly (I’m not sure I do) you would prefer ‘iii’ to be read as “eye eye eye” rather than “three”? The alt text property is the only way that I know of to make this happen. Hope this helps.
a ‘C’ student -
How do I maintain column formatting when converting from PDF to Excel?
How do I maintain column formatting when converting from PDF to Excel? All info is no longer on the lines or in the columns they started out being in? Any help would be appreciated.
Sara,
Perhaps I am expecting too much from Adobe ExportPDF. The reason I subscribed to this service, for which I pay a yearly fee, was that I need a way to convert scanned and digital documents to Word &/or Excel. I read the link you included but to be candid the more I tried to understand what was written the more confused I got. The process should not be this difficult. Currently I am using a NEAT scanner to create PDF documents of whatever I scan. After I changed the OCR setting on Adobe ExportPDF the output was much better but not to the point it was usable as it was. Information that appears to be lines and columns are sometimes not recognizing two columns and just putting them together in one. Obviously not usable. The other thing it does is bunch numbers that appear in a column that are just a bunch of numbers that I have no way of fixing.
Please let me speak to someone who can help me. Right now I not getting anything of value in my paid subscription. -
When converting from a .wav to a .mov is there a loss of audio quality when using QuickTime?
When converting from a .wav to a .mov is there a loss of audio quality when using QuickTime?
That would depend on your work flow. MOV is the generic QuickTime file container and is not related to any particular data compression format. If you perform a simple "Save" or "Save As..." action that merely copies the data in the WAV file to an MOV file, then the data remains unchanged and maintains its original quality. If, on the other hand, your transcode/re-compress the original data to a different compression format, then there is always the potential for some loss in quality. Depending on the codec and/or settings, the potential loss could be inaudible to severe. -
Overflow when converting from "3.60001e+11"
Hi Guys,
I'm Working with my PO using MIRO, I don't know why the error occurs. I've used the SAP Version 620 but end up with an error, then used Version 710 and successfuly created the transaction, but I'm stacked with version 620. I'm not allowed to transact it using the Version 710 that's why im looking for a patch or upgrade within 620 that i can use so that it can be solve.
I'm in need of your help guys. I know there someone out there that can help me.
THE ERROR
Runtime Errors CONVT_OVERFLOW
Exception CX_SY_CONVERSION_OVERFLOW
Occurred on 03/28/2011 at 01:00:47
Overflow when converting from "3.60001e+11"
What happened?
Error in ABAP application program.
The current ABAP program "SAPLEINS" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_CONVERSION_OVERFLOW',
was neither
caught nor passed along using a RAISING clause, in the procedure
"DISTRIBUTE_ACC_ASSIGN_RE" "(FORM)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
When attempting to convert the value "3.60001e+11",
an overflow occurred.
How to correct the error
The exception must either be prevented, caught within the procedure
"DISTRIBUTE_ACC_ASSIGN_RE"
"(FORM)", or declared in the procedure's RAISING clause.
To prevent the exception, note the following:
If the error occurred in one of your own programs or in an SAP program
that you modified, try to correct it yourself.
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:I won't post here if i already got the answer in SAP notes. I've spent 3 days searching for the answer. The only answer i got is the upgrade but can't be consider. OSS notes didn't provide me any answer. Hope u can help me
Edited by: docgon on Mar 30, 2011 2:38 AM -
Upload maxdb really needed? - Overflow when converting from 32768
hello,
I am facing with a run time error that does not make sense when uploading maxdb database. The error is: "Overflow when converting from 32768".
I am following this configuration tutorial:
http://help.sap.com/saphelp_nwmobile71/helpdata/en/45/17a790d8000064e10000000a1553f7/frameset.htm
Anyway, is there a need to upload this database? We installed netweaver mobile with SQL server database.
Help please.
Thanks.
Edited by: João Carneiro on Feb 8, 2011 2:10 PMHi,
Uploading MAXDB is not mandatory. It is needed only when multiple devices need to be installed with MAXDB through setup or software packages, which helps administrator to roll out multiple devices, so that end users will get all the necessary software to install the device.
Hope this clarifies your query.
Thanks and Regards,
Suma -
Grainy Image when converting from PAL to NTSC...
Hi,
I'm using Compressor 2.0.1 to convert a PAL movie to NTSC. I find that the output is extremely Grainy, the blacs are Muddy and the Highlights are colored.
Any suggestions?
Thanks and Regards,
RajneshThere are many options when converting from PAL to NTSC with Compressor's Frame Controls panel. Have you tried other settings? Note, however, that the highest quality settings are pretty slow so be prepared for a fairly long wait even on your Power Mac G5.
Otherwise, you might want to try the freeware utility JES Deinterlacer (available on VersionTracker.com). JES Deinterlacer is pretty fast at PAL <-> NTSC conversion and the results are better than you will get with the basic settings in Compressor 2. -
How can I keep the formatting when converting from Word to pages?
How can I keep the formatting when converting from Word to pages?
Use only formatting that is supported (in the same manner) in both applications. You'll need to find which that is through trial and error. Beyond those formatting options, you'll need to do some corrections, as Fruhulda suggests.
Regards,
Barry -
Calling a method in a different backing bean when I leave a different JSP
Hi,
I have an existing JPS, JspA, who's backing bean is BeanA.
JspA has an action, ActionA, called when I click "save" on JspA.
I want to include a new JspB which is launched when the user clicks "save" on JspA. I have done this with a new navigation rule. The user now does his stuff on the new JspB page and calls "exit" on this page. This calls an action on JspB's backing bean BeanB and navigation rules send the user back to JspA. Problem is I now want the old code in ActionA to execute as if JspB had never existed but not sure how to do this? I don't want the user to have to do anything else to initiate a fresh call to ActionA, I just want it to execute when navigation returns to JspA
Thanks ...Hi,
what you say is not true. You can execute any code within a selection listener you want. If you can print then it shows the method s called and you can execute whatever you want within this method
Frank -
Calling a method in the backing bean when rendering a table
I'm rendering a table that begins with :
<h:dataTable value="#{showRooms.rooms}" var="rowRoom" ...
There are several properties I'm displaying. Some are just displayed as they appear from the database like:
<h:outputText value="#{rowRoom.roomNumber}"/>
However, some I need to translate so they display a more meaningful message to the users. For example, status is stored 'A', or 'NA', but this should display 'Available' or 'Not Available'. To do this, I'm taking an idea I saw in another forum by providing a method to call and translate the text. For example:
public String getDisplayedStatus(String status) {
if (status.equals("A") {
return "Available";
} else {
My problem is how can I invoke a method and pass in the current value of status for that row in the table. I think I need something like this:
<h:outputText value="#{showRooms.getDisplayedStatus(#{rowRoom.roomStatus})"/>
But that doesn't work. I can invoke the getDisplayedStatus method when passing in a hardcoded parameter, but it won't translate the value of both expressions(the method and the method param). How can I achieve this?
Thanks,
MikeYes. I've done that and it does work....sort of. It works as long as I refer to it as 'displayStatus'. It looks up the getDisplayStatus and returns a value. The problem is getting the current status value from the object in the List. For example, the 3rd row in the table has either 'A;' or 'NA' for status. I need to know this value in order to do my translation. The way I see it, I either need
1.)a way to call a method on the backing bean and pass the value of status from the current row into the method.
-or-
2.)in getDisplayStatus, I need a way to access the current row's value, perhaps through an expression. This appears to be what you can do in the AbstractPageBean class that all backing beans inherit in Studio Creator. I've seen code in a getter like 'getValue(#{currentRow.status}'), but I don't know how that is done. I looked for the source to AbstractPageBean on the web but couldn't find it - maybe its not open-source.
Anyway, please share if anyone has a solution. I'm sure this has been done before.
Thanks,
Mike -
Calling init method on backing bean when JSP loads
Hi All,
My problem seems simple, but I'm not having much luck finding a solution.
I have a JSF page that shows the details of an employee. So I have an employee.jsp with a backing bean EmployeeController which works fine.
The change I need to make is this: pass in an employeeId to the URL and let my controller read it.
I've tried the following in my faces-config.xml:
<managed-bean>
<managed-bean-name>exmployeeBean</managed-bean-name>
<managed-bean-class>
com.acme.EmployeeController
</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>employeeId</property-name>
<value>#{requestScope.employeeId}</value>
</managed-property>
</managed-bean>And the following in my backing bean:
public void setEmployeeId(String employeeId) {
logger.info("METHOD CALLED");
this.refreshValuesForEmployee(employeeId);
}But I'm not having any luck (ie - this method is not being called).it's ok. i found out why it wasn't working.
my scope was set to "session", but had to be "request" so that i could use the params syntax.
thanks anyway. -
How to add a backing bean for an existing jsp
Hi You Experts,
I am fixing an application built by someone else. In the application, some jsps do not have the associated backing beans. Now I want to add a backing bean to go with a particular jsp so that I can write codes there. How can I do this, please?
Thanks in advance,
ZDHi Shay (and Others),
As such a newbie, I cannot seem to find the "little arrow" or "binding property" you mentioned. I am using jdev 10.3.3.0. After I click on a component (an af:inputText), all I see is an "Edit Binding" link at the bottom of the Property Inspector. That link actually takes me to the binding of the component and attribute in the ViewObject.
Also, when I followed your second suggestion (Design menu -> page properties->auto bind), I got a new backing file, but it's empty. i.e., it did not capture any existing components on the jsp.
Please help me more. Thank you very much.
ZD
Maybe you are looking for
-
I am developing a report having a graph in BI Publisher 10.1.3.3.0. When the report o/p is genereated to PDF, the graph is showing up, but the same report doesnt return the chart in HTML output (it shows small icon in the place of graph). I followed
-
HT4890 Can I share a specific event with friends on iCloud via Photostream?
Can I share a specific event with friends on iCloud via Photostream?
-
I have a MacBook pro version 10.6.7 with snow leopard. After an scheduled software upgrade I could not open Quicken (It said it could not open the files). Now I can only open it if I have my external drive on. Can you help? All the information that I
-
Flash Player 10 processor system requirement discrepancy
http://www.ehow.com/info_8526453_flash-player-10-system-requirements.html says that Flash Player 10 on Windows computers requires "a Pentium 4 processor running at 2.33 GHz or an Athalon 64 2800+ processor." However, http://www.downloadatoz.com/essen
-
External Hard Drive Partially Recognized
I looked around the forum, but have not found an answer... I've an external hard drive, which I've been using for a while with no problem until today. The HD was partitioned into 2 sections. Today, when I turned it on, my mac only recognized one of t