Manage bean Request Scope Best Practice
Hi,
I am wondering the following practice which one is better.
I have a listing page and a edit properties page. From the listing page i will click on the record from the data table and click on Edit button to submit the action and navigate to the edit properties page. My BookListingBean and BookPropertyBean have a BookVO variable defined.
public class BookListingBean { BookVO selectedVO; }
public class BookPropertyBean {BookVO bookVO;}
When action submitted, i have a custom navigation handler which eventually will pass the selected row which is an value object, says bookVO to my action method. Then i need to retrieve the book's properties from the database based on the selected bookVO's id and set to book value object for display.
The question is, in BookPropertyBean action method, i can either point the bookVO to the selectedVO directly and use it for display or i wil instantiate a new BookVO and just retrieve the id from the selectedVO and set it to my bookVO.
// selectedVO contains the needed id
public String edit(BookVO selectedVO) {
bookVO = selectedVO;
// invoke API to retrieve the book's properties by passing bookVO
Or
public String edit(BookVO selectedVO) {
bookVO = new BookVO();
bookVO.setId(selectedVO.getId());
// invoke API to retrieve the book's properties by passing bookVO
For me, i would prefer the latter one which is instantiate a new VO as the selectedVO is belongs to previous request and i think i should use new object for the new request but not to own anything from previous request when displaying the edit page.
Am i wrong?
I would use first edit implementation... From description I don' t see reason to duplicate BookVO object... If BookVOs properties is used by API to retrieve and fill page with data for current request without anu modification of BookVOs state there is no need to duplicate... But api changes BookVO and if you need use original member values of BookVO after edit in some other method it's reasonable to use second implementation.
Still I can't exactly be sure in my statements because this is jus a fragment of your application.
Best regards!
Similar Messages
-
Managing Alert log files : Best practices?
DB Version : 10.2.0.4
Several of our DBs' alert logs have become quite large. I know that oracle will create a brand new alert log file if i delete the existing one.
But i just want to know how you guys manage your alert log files. Do you guys archive (move to a different directory) and recreate a brand new alert log. Just want to know if there any best practices i could follow.ScottsTiger wrote:
DB Version : 10.2.0.4
Several of our DBs' alert logs have become quite large. I know that oracle will create a brand new alert log file if i delete the existing one.
But i just want to know how you guys manage your alert log files. Do you guys archive (move to a different directory) and recreate a brand new alert log. Just want to know if there any best practices i could follow.Every end of day (or every periodic time) archive your alert.log and move other directory then remove alert.log.Next time Database instance will automatically create own alert.log -
Could you please share your best practices for setting up a new Windows Server 2012 r2 Hyper-V Virtualized AD DC, that will be running on a new WinSrv 2012 r2 host server. (This
will be for a brand new network setup, new forest, domain, etc.)
Specifically, your best practices regarding:
the sizing of non virtual and virtual volumes/partitions/drives,
the use of sysvol, logs, & data volumes/drives on hosts & guests,
RAID levels for the host and the guest(s),
IDE vs SCSI and drivers both non virtual and virtual and the booting there of,
disk caching settings on both host and guests.
Thanks so much for any information you can share.A bit of non essential additional info:
We are small to midrange school district who, after close to 20 years on Novell networks, have decided to design and create a new Microsoft network and migrate all of our data and services
over to the new infrastructure . We are planning on rolling out 2012 r2 servers with as much Hyper-v virtualization as possible.
During the last few weeks we have been able to find most of the information we need to undergo this project, and most of the information was pretty solid with little ambiguity, except for
information regarding virtualizing the DCs, which as been a bit inconsistent.
Yes, we have read all the documents that most of these posts tend point to, but found some, if not most are still are referring to performing this under Srvr 2008 r2, and haven’t really
seen all that much on Srvr2012 r2.
We have read these and others:
Introduction to Active Directory Domain Services (AD DS) Virtualization (Level 100),
Virtualized Domain Controller Technical Reference (Level 300),
Virtualized Domain Controller Cloning Test Guidance for Application Vendors,
Support for using Hyper-V Replica for virtualized domain controllers.
Again, thanks for any information, best practices, cookie cutter or otherwise that you can share.
Chas. -
Hi,
Want to get your opinion on how to really use bean and dao in jsp pages.
Imagine that you wants to display a news list on the jsp index page for example.
You've got a dao with method getLastNews(int size) which returns a Collection of News beans. Then with jstl or struts you iterate ove the collection to display the news in a formatted way.
Easy to build collection with scriptlets & co but not very clean...
What is the best way to call my dao and its method with a tag whithout using scriplets ?
ThanksYes this is the solution i use when the collection is displayed alone in a jsp page, but how do you do this when you include this collection in a page, and if you have other collections in other parts of the page ? Is there a clean solution of doing this in the jsp page? For example:
<sometag:loadmycollection name="list"/>
<logic:iterate id="myCollectionElement" name="list">
Element Value: <bean:write name="myCollectionElement" />
</logic:iterate>
I know that i can write my own tag by if there is an existing solution... -
Manage Portal data ? best practice type thing
Hello,
I am looking how best do set up a Portal System on Production, in particular a
good process to back-up and re-create an Portal systems.
I list some possibilities below. Does anyone know if this is how it is typically
done ? Does this cover all data which should be backed up / migrated ?
thanks!
1- 'Entitlements' data. As far as I know, this is stored in the embedded LDAP.
Can this be extracted ?
2- DataSynch data.
DataSynch web application.
extract with ftp-like command
upload as jar file
3- Users and Groups.
Export to a dat file. (Suddenly I forget how to do this, though think I saw it
somewhere).Okey, and then using a RFC call from the webdynpro application to fetch data from the sap database?
This answered my question:
Best regards
Øyvind Isaksen -
VM Manager on virtual machine - best practice
I am setting up a server using Oracle VM to limit the number of cpus available to a virtual machine which will be running an Oracle database.
I have set up a test environment, one Oracle VM Server, and the Oracle VM Manager running on a separate server.
I have read in this forum that I could create a linux virtual machine on the VM Server, and then install the Oracle VM Manager on that.
Re: Oracle VM Manager installation
To create the linux virtual machine, I used the Oracle VM Manager that I have running on a separate server.
Once I created the linux virtual machine, I installed Oracle VM Manager on it.
From this point, I hoped to create the virtual machine upon which I will run the Oracle database, but I get the following message:
OVM-2008 The Server Pool Master (10.36.64.225) has been registered with some other pool, and can not register it again.
So if running the Oracle VM Manager on a virtual machine on the Oracle VM Server is a good idea, how do I do it?
Many thanks.
PaulHi Tommy,
Thanks for taking the time to reply to my query.
Unfortunately, things didn't go so well.
I ran the commands you listed, checking on the status of each VM manager (the original one, running on separate physical linux server, and the one I want to use, running as a VM guest) between each command:
/opt/ovs-agent-latest/db/db_del.py master
- this provided no response, and logout/login from both VM managers showed no changes.
/opt/ovs-agent-latest/db/db_del.py srv
10.36.64.225 removed.
- the oraVMmanager now listed as powered off in the original VM manager.
/opt/ovs-agent-latest/db/db_del.py srvp
10.36.64.225 removed.
- no change in VM Managers
/opt/ovs-agent-latest/db/db_del.py vm
/OVS/running_pool/28_oraVMmanager removed.
- no change to both VM Managers and the guest VM is still running.
/sbin/service ovs-agent restart
option 2 - guest VM shutdown (28_oraVMmanager)
I couldn't get the guest VM to restart
service xendomains start failed saying there is a lockfile:
/var/lock/subsys/xendomains
I haven't been able to get past this point other than to re-install and start again.
Maybe there is another way to do this...
If I install the VM Server, can I create a linux VM Guest using command line rather than from the VM Manager?
Once I have a VM guest, I can logon to that, and install the VM Manager.
Cheers
paul -
One Managed Bean for a set of pages
Can I have one Managed Bean (request scope) for a set of pages using Creator? Or should I have one Managed Bean for each page?
Thanks in advance,
JuanHi,
Please take a look at the following threads:
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=51481
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=54165
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=51912
Hope this hepls
Regards,
Rk. -
Passing bean as attribute to servlet in request scope
Hello,
I want to pass a bean from a jsp to my controller servlet. As I understood, as long as I can give the bean 'request' scope, then I should be abble to access the bean, as an attribute in the doPost / doGet method of my servlet. However, when I try to get the bean in the servlet, its always null.
I am aware that request scope beans don't loose their values when passing to other JSP's , but what about passing to servlets?
I dont want to use a session scoped bean as I believe this should be possible with a request scoped variable.
<%-- vwLogon.jsp --%>
<jsp:useBean id="viewBean" class="com.alto.common.ViewBean" scope="request">
<jsp:setProperty name="viewBean" property="viewName" value="/vwLogon"/>
</jsp:useBean>
<html>
<body>
<h2>Enter Name</h2>
<form method="GET" action="controller">
Enter your name:<input type="text" name="vwLogon_User_txt" value=""/>
Enter your password:<input type="secret" name="vwLogon_Password_txt" value=""/>
<input type="submit" name="vwLogon_Logon_Btn" value="Logon"/>
</form>
</body>
</html>
------------------------------- controller servlet
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
ViewBean viewBean = (ViewBean)req.getAttribute("viewBean");
String strURL = new String("");
if (!(viewBean==null)) {
strURL = viewBean.getViewName();A request/response pair is one communication between the client browser and the web server. A submit form action generates a new request.
In this instance you have two requests:
1 - load login page
2 - submit login page
The point of being able to give a bean request scope, is so that you can use jsp:forward, or jsp:include to pass on the request, and the bean as well.
In your case, a session bean is probably called for, as you have 2 request/responses in your session.
Hope this clears things up a little.
Cheers,
evnafets -
BI Best Practice for Chemical Industry
Hello,
I would like to know if anyone is aware of SAP BI Best Practice for Chemicals.And if so can anyone please post a link aswell.
ThanksHi Naser,
Below information will helps you in detail explanation regarding Chemical industry....
SAP Best Practices packages support best business practices that quickly turn your SAP ERP application into a valuable tool used by the entire business. You can evaluate and implement specific business processes quickly u2013 without extensive Customization of your SAP software. As a result, you realize the benefits with less Effort and at a lower cost than ever before. This helps you improve operational efficiency while providing the flexibility you need to be successful in highly demanding markets. SAP Best Practices packages can benefit companies of all sizes, including global enterprises creating a corporate template for their subsidiaries.
Extending beyond the boundaries of conventional corporate divisions and functions, the SAP Best Practices for Chemicals package is based on SAP ERP; the SAP Environment, Health & Safety (SAP EH&S) application; and the SAP Recipe Management application. The business processes supported by SAP Best Practices for Chemicals encompass a wide range of activities typically found in a chemical industry
Practice:
u2022 Sales and marketing
u2013 Sales order processing
u2013 Presales and contracts
u2013 Sales and distribution (including returns, returnables, and rebates, with quality management)
u2013 Inter- and intracompany processes
u2013 Cross-company sales
u2013 Third-party processing
u2013 Samples processing
u2013 Foreign trade
u2013 Active-ingredient processing
u2013 Totes handling
u2013 Tank-trailer processing
u2013 Vendor-managed inventory
u2013 Consignment processing
u2013 Outbound logistics
u2022 Supply chain planning and execution Supply and demand planning
u2022 Manufacturing planning and execution
u2013 Manufacturing execution (including quality management)
u2013 Subcontracting
u2013 Blending
u2013 Repackaging
u2013 Relabeling
u2013 Samples processing
u2022 Quality management and compliance
u2013 EH&S dangerous goods management
u2013 EH&S product safety
u2013 EH&S business compliance services
u2013 EH&S industrial hygiene and safety
u2013 EH&S waste management
u2022 Research and development Transformation of general recipes
u2022 Supplier collaboration
u2013 Procurement of materials and services (Including quality management)
u2013 Storage tank management
u2013 E-commerce (Chemical Industry Data Exchange)
u2022 Enterprise management and support
u2013 Plant maintenance
u2013 Investment management
u2013 Integration of the SAP NetWeaver Portal component
u2022 Profitability analysis
More Details
This section details the most common business scenarios u2013 those that benefit most from the application of best practices.
Sales and Marketing
SAP Best Practices for Chemicals supports the following sales and marketingu2013related business processes:
Sales order processing u2013 In this scenario, SAP Best Practices for Chemicals supports order entry, delivery, and billing. Chemical industry functions include the following:
u2022 Triggering an available-to-promise (ATP) inventory check on bulk orders after sales order entry and automatically creating a filling order (Note: an ATP check is triggered for packaged material.)
u2022 Selecting batches according to customer requirements:
u2022 Processing internal sales activities that involve different organizational units
Third-party and additional internal processing u2013 In this area, the SAP Best Practices for Chemicals package provides an additional batch production step that can be applied to products previously produced by either continuous or batch processing. The following example is based on further internal processing of plastic granules:
u2022 Purchase order creation, staging, execution, and completion
u2022 In-process and post process control
u2022 Batch assignment from bulk to finished materials
u2022 Repackaging of bulk material
SAP Best Practices for Chemicals features several tools that help you take advantage of chemical industry best practices. For example, it provides a fully documented and reusable prototype that you can turn into a productive solution quickly. It also provides a variety of tools, descriptions of business scenarios, and proven configuration of SAP software based on more than 35 years of working with the
Chemical industry.
SAP Functions in Detail u2013 SAP Best Practices for Chemicals
The package can also be used to support external toll processing such as that required for additional treatment or repackaging.
Tank-trailer processing u2013 In this scenario, SAP Best Practices for Chemicals helps handle the selling of bulk material, liquid or granular. It covers the process that automatically adjusts the differences between the original order quantities and the actual quantities filled in the truck. To determine the quantity actually filled, the tank trailer is weighed before and after loading. The delta weight u2013 or quantity filled u2013 is transmitted to the SAP software via an order confirmation. When the delivery for the sales order is created, the software automatically adjusts the order quantity with the confirmed filling quantity.The customer is invoiced for the precise quantity filled and delivered.
Supply Chain Planning and Execution
SAP Best Practices for Chemicals supports supply chain planning as well as supply chain execution processes:
Supply and demand planning u2013 Via the SAP Best Practices for Chemicals package, SAP enables complete support for commercial and supply-chain processes in the chemical industry, including support for integrated sales and operations planning, planning strategies for bulk material, and a variety of filling processes with corresponding packaging units. The package maps the entire supply chain u2013 from sales planning to material requirements planning to transportation procurement.
Supplier Collaboration
In the procurement arena, best practices are most important in the following
Scenario:
Procurement of materials and services:
In this scenario, SAP Best Practices for Chemicals describes a range of purchasing processes, including the following:
u2022 Selection of delivery schedules by vendor
u2022 Interplant stock transfer orders
u2022 Quality inspections for raw materials, including sampling requests triggered
by goods receipt
Manufacturing Scenarios
SAP Best Practices for Chemicals supports the following sales and
Manufacturingu2013related business processes:
Continuous production u2013 In a continuous production scenario, SAP Best Practices for Chemicals typifies the practice used by basic or commodity chemical producers. For example, in the continuous production of plastic granules, production order processing is based on run-schedule headers. This best-practice package also describes batch and quality management in continuous production. Other processes it supports include handling of byproducts,co-products, and the blending process.
Batch production u2013 For batch production,
SAP Best Practices for Chemicals typifies the best practice used by specialty
chemical producers. The following example demonstrates batch production
of paint, which includes the following business processes:
u2022 Process order creation, execution, and completion
u2022 In-process and post process control
u2022 Paperless manufacturing using XMLbased Process integration sheets
u2022 Alerts and events
u2022 Batch derivation from bulk to finished materials
Enterprise Management and Support
SAP Best Practices for Chemicals also supports a range of scenarios in this
area:
Plant maintenance u2013 SAP Best Practices for Chemicals allows for management
of your technical systems. Once the assets are set up in the system, it focuses on preventive and emergency maintenance. Tools and information support the setup of a production plant with assets and buildings.Revenue and cost controlling u2013 The package supports the functions that help you meet product-costing requirements in the industry. It describes how cost centers can be defined, attached
to activity types, and then linked to logistics. It also supports costing and settlement of production orders for batch and continuous production. And it includes information and tools that help you analyze sales and actual costs in a margin contribution report.
The SAP Best Practices for Chemicals package supports numerous integrated
business processes typical of the chemical industry, including the following:
u2022 Quality management u2013 Supports integration of quality management concepts across the entire supplychain (procurement, production, and sales), including batch recall and complaint handling
u2022 Batch management u2013 Helps generate batches based on deliveries from vendors or because of company production or filling, with information and tools for total management of batch production and associated processes including batch derivation, batch information cockpit, and a batchwhere- used list
u2022 Warehouse management u2013 Enables you to identify locations where materials
or batch lots are stored, recording details such as bin location and other storage information on dangerous goods to help capture all information needed to show compliance with legal requirements
Regards
Sudheer -
Ok �. This is driving me nuts. I�m relatively new to JSF (2 week profession  ), and I may not have grasped the concept of Managed Beans. The problem is detailed below:
Development Environment:
WebSphere Studio 1.5.2 � This creates a backing bean for each respective JSP page that is created, including setters and getters for each managed bean. The two backing beans I�ll talk about whilst specifying the problem are stored in session scope.
The Problem:
I can�t share data between two pages. On the first page I create managed bean in session scope and make this reusable (let�s say person). On the second page I add the reusable Person bean. The resulting entry in the faces.config file is:
<managed-bean>
<managed-bean-name>person</managed-bean-name>
<managed-bean-class>ibm.wlrs.model.PersonVO</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
Both pages however maintain an independent copy of the managed bean instead of JSF maintaining a shared one. I�ve looked at several documents, and too me it seems as though this bean should be shared between the two pages�� HELP!
On the first page I create a new Person object with the relevant details. This person is created upon a button click added to the backing beans managed bean.
//Page 1 add person from button click
public String doLnkInsertEntryAction() {
System.out.println("Insert");
Person p1 = new Person();
p1.setName("Duncan");
setPerson(p1);
System.out.println(getPerson().getName());
//This prints the person�s name
return "insert";
I have also setup a page load event to test that the person object stays in the session
//Page 1 page load
public void onPageLoadBegin(FacesContext facescontext) {
System.out.println(getPerson().getName());
//Prints the person name that was added during the button click event� on Postback or even after going from page1 � page2 and back again.
On Page two if I try and access the managedBean contained within the session, the �name� will always print out as null.
//Page 2 page load
public void onPageLoadBegin(FacesContext facescontext) {
System.out.println(getPerson().getName());
If I add an any information to the managed bean on page two i.e. person.setName(�Another�), this data stays in the session, only for page two though.
Is this how JSF is supposed to work? I though if a managed bean was stored in the session, the object (and it�s data) should be reusable between pages.
Sorry for the long post�. I though it would be worth while to try and be as specific as possible.
Thanks
DuncanAnd� I still don�t understand why two independent
copies are kept by the pages�Because YOU create the copy.
JSF (exactly speaking the default VariableResolver) at first searches for an attribute in
request scope, then session scope, then application scope with the matching name.
Only when no attribute is found, it examines faces-config.xml, creates an instance of
the specified class, and stores the instance in the specified scope.
It never creates two instances with a same name.
I.E� On Page 1�. Several Person objects are stored in
a DataTable. The Vector containing the Person objects
is a managed bean bound to this data table. Upon a
button click I require to extract a person from the
data table and place it into the managed bean session
scope for person. Humm, I guess you misunderstand what the managed bean is.
h:dataTable has the "var" attribute which is used to refer each Person object.
JSF implements the "var" variable as a request scope attribute and re-binds it
to each Person object in the iteration. So, it is not a managed bean but is simply an attribute.
The entry of faces-config.xml is not required.
To know how to pass the selected row data to the next page, please see some
example using h:dataTable and javax.faces.model.DataModel. -
Setting bind variable for a view object from the Managed Bean
Hi,
i am using JDeveloper 11g, i have to create LOV in the JSF. To show the LOV, it has to populate data using View object and its query parameter need to be sent from the Managed Bean.
For the View object i want to set the bind variable parameter from the managed bean value. bename is stored in a managed bean (session scope)
#{beantest.bename}
But it gives the following exception.
JBO-29000: Unexpected exception caught:
org.codehaus.groovy.control.MultipleCompilationErrorsException,msg=startup failed, Script1.groovy: 1: expecting '!',found '{'@ line1, column 2.
I have followed the link http://kr.forums.oracle.com/forums/thread.jspa?threadID=615474 like Frank wrote on 8.2.2008:
But steps are not clear.
How to input the VO bind parameter with Managed bean variable?
Any Help
Regards
Raj
Edited by: user9928180 on Dec 17, 2008 9:51 AMHi,
a bind variable in a VO needs to be exposed as an executeWithParams operation in the pageDef file. Just add a new action binding to the pageDef file (context menu) and select the executeWithParams operation on teh VO. Then in the argument field, reference the managed bean property for the value
Frank -
Best Practice Re-install Process? (Xcelsius 2008 Engage)
The main impetus of this post is now to request a best practice reinstall process. E.g., what files/directories or registry keys to delete after uninstalling under Windows XP? Running Xcelsius 2008 5.1.1.0 Build 12,1,1,344 (Windows XP SP2)? I want to clean it up and reinstall completely, ideally without also reinstalling Office 2007.
Earlier today, I had loaded up an otherwise healthy project and all of a sudden my edits were not taking. I could perform the change in the Component Properties window but the change did not translate in the project display area.
I had closed and reopened this project several times, killed both "Xcelsius" and "EXCEL" processes, rebooted the machine a couple of times, all to no avail. I was totally stuck, it seems. Then, it randomly corrected itself after the Xth close/reboot/reload. I'm past the issue now it seems, but please consider this an official bug report. These issues are no longer a mere minor nuisance, and I am looking forward to a nice big update in the next Fix Pack release, which I assume is right around the corner (hint, hint).
Thanks.
Edited by: f l on Nov 17, 2008 9:20 PMf l,
I'm not sure deleting keys from the registry is ever a best practice, however Xcelsius has listings in:
HKEY_CURRENT_USER > Software > Business Objects > Xcelsius
HKEY_LOCAL_MACHINE > SOFTWARE > Business Objects > Suite 12.0 > Xcelsius
The current user folder holds temporary settings, such as how you've modified your interface.
The local machine folder holds more important information.
As always, it's recommended that you backup the registry and/or create a restore point before modifying or deleting any keys.
As for directories, the only directory Xcelsius uses is the one you install to. It also places some install logs in the temp directory, but they have no effect on the application. -
Best Practices for FSCM Multiple systems scenario
Hi guys,
We have a scenario to implement FSCM credit, collections and dispute management solution for our landscape comprising the following:
a 4.6c system
a 4.7 system
an ECC 5 system
2 ECC6 systems
I have documented my design, but would like to double check and rob minds with colleagues regarding the following areas/questions.
Business partner replication and synchronization: what is the best practice for the initial replication of customers in each of the different systems to business partners in the FSCM system? (a) for the initial creation, and (b) for on-going synchronization of new customers and changes to existing customers?
Credit Management: what is the best practice for update of exposures from SD and FI-AR from each of the different systems? Should this be real-time for each transaction from SD and AR (synchronous) or periodic, say once a day? (assuming we can control this in the BADI)
Is there any particular point to note in dispute management?
Any other general note regarding this scenario?
Thanks in advance. Comments appreciated.Hi,
I guess when you've the informations that the SAP can read and take some action, has to be asynchronous (from non-SAP to FSCM);
But when the credit analysis is done by non-SAP and like an 'Experian', SAP send the informations with invoices paid and not paid and this non-SAP group give a rate for this customer. All banks and big companies in the world does the same. And for this, you've the synchronous interface. This interface will updated the FSCM-CR (Credit), blocking or not the vendor, decreasing or increasing them limit amount to buy.
So, for these 1.000 sales orders, you'll have to think with PI in how to create an interface for this volume? What parameters SAP does has to check? There's an time interval to receive and send back? Will be a synchronous or asynchronous?
Contact your PI to help think in this information exchange.
Am I clear in your question?
JPA -
How do you install Best Practices Install Assistant (BPIA)?
Hi
I've been looking into setting up Yard Management in our SAP system and have found documentation / software for ECC5 - fore this version it looks like I would need to install the Best Practices Wholesale Distribution Package with the necessary BC sets / eCatts from W70 Yard Management, and can use Best Practices Install Assistant (BPIA) which I think is installed via SAINT???
HOWEVER - I've just realised that the version of SAP to be installed on is only 6.20/4.7. I think Yard Management is still available for this release but doesn't look like Best Practices / BPIA is used - how is this installed and where can I find the documentation / software?
Cheers
Ross
Edited by: Ross Armstrong on Jun 18, 2008 9:00 AMThere are two option for downloading games or any application in BlackBerry device.
One
is using the OTA (Over the Air) link, provided by the application
owner, from where you can directely install games/application.
Another
is using Desktop Manager's Application Loader. In that case save the
game/application files in a folder of your PC/laptop. Use Application
Loader and find the location of the folder and click Open.
tanzim
If your query is resolved then please click on “Accept as Solution”
Click on the LIKE on the bottom right if the post deserves credit -
JSF - Best Practice For Using Managed Bean
I want to discuss what is the best practice for managed bean usage, especially using session scope or request scope to build database driven pages
---- Session Bean ----
- In the book Core Java Server Faces, the author mentioned that most of the cases session bean should be used, unless the processing is passed on to other handler. Since JSF can store the state on client side, i think storing everything in session is not a big memory concern. (can some expert confirm this is true?) Session objects are easy to manage and states can be shared across the pages. It can make programming easy.
In the case of a page binded to a resultset, the bean usually helds a java.util.List object for the result, which is intialized in the constructor by query the database first. However, this approach has a problem: when user navigates to other page and comes back, the data is not refreshed. You can of course solve the problem by issuing query everytime in your getXXX method. But you need to be very careful that you don't bind this XXX property too many times. In the case of querying in getXXX, setXXX is also tricky as you don't have a member to set. You usually don't want to persist the resultset changes in the setXXX as the changes may not be final, in stead, you want to handle in the actionlistener (like a save(actionevent)).
I would glad to see your thought on this.
--- Request Bean ---
request bean is initialized everytime a reuqest is made. It sometimes drove me nuts because JSF seems not to be every consistent in updating model values. Suppose you have a page showing parent-children a list of records from database, and you also allow user to change directly on the children. if I hbind the parent to a bean called #{Parent} and you bind the children to ADF table (value="#{Parent.children}" var="rowValue". If I set Parent as a request scope, the setChildren method is never called when I submit the form. Not sure if this is just for ADF or it is JSF problem. But if you change the bean to session scope, everything works fine.
I believe JSF doesn't update the bindings for all component attributes. It only update the input component value binding. Some one please verify this is true.
In many cases, i found request bean is very hard to work with if there are lots of updates. (I have lots of trouble with update the binding value for rendered attributes).
However, request bean is working fine for read only pages and simple binded forms. It definitely frees up memory quicker than session bean.
----- any comments or opinions are welcome!!! ------I think it should be either Option 2 or Option 3.
Option 2 would be necessary if the bean data depends on some request parameters.
(Example: Getting customer bean for a particular customer id)
Otherwise Option 3 seems the reasonable approach.
But, I am also pondering on this issue. The above are just my initial thoughts.
Maybe you are looking for
-
Error while publishing service definition in Services Registry
I created a service interface in ESR and published the WSDL to my Services Registry. Now when I go to the "Publish" tab in the Services Registry to provide a definition for this service, after entering the WSDL and clicking on "Next" I get a pop-up f
-
Random freezes with kernel 2.6.34 and xorg 1.8
The other day I upgraded the kernel to version 2.6.34 and at the same time xorg-server to 1.8 (along with input drivers and video drivers). From that moment, I suffer from random freezes, the system is completely locked up; the screen doesn't blank,
-
I just got a new macbook pro. I was in launchpad and there were two imovie icons so I clicked on one and deleted it. It seems as though imovie is missing from my computer completely now. I have not emptied the trash, but it is not in there. Where has
-
How to get a connection which does not participate in the main usertransaction
Hi All I am on WLS 6.1 sp2 on win2k. I have a requirement which is like this: I use connection pools/txdatasources/JTA in my application. Now when a JTA transaction (UserTransaction) is active - I want to take a connecti
-
To hide a button in a column field depending on the condition in ALV
Hai, I have a column in ALV with buttons.I need to make that button Visible or invisible based on a condition. i have fiels with value x and blank. if the value is x i need to make the button visible and viceversa. Cheers, Madhu.