When should we prefer to use JSF
we work on web based applications in servlets and jsp .
this is my first message in this forums...
since nowadays i come across hearing JSF..i am interested to clarfiy that weather it is used along with jsp
or it would replace jsp....
say
index.jsp----->index.jsf
In the project I am working on we have adopted the convention of using the .jsf extension for JSPs that contain JSF tags (mainly forms) and .jsp for regular JSPs. This helps to differentiate the pages that are displayed via the Faces servlet and the distinction can be useful when writing build scripts or using other automated tools.
-- Keith
Similar Messages
-
When should we prefer to use LinkedList
when should we prefer to use LinkedList ?
i have read some where related to java performance...stating that
http://www.java-performance-portal.org/modules.php?name=News&file=article&sid=8
The ArrayList is quite fast for accessing the elements in direct or random order, but the pure sequential use the LinkedList might be concerned as the right List for an application. The Vector provides snchronized access to its elements and is a slower than the ArrayList.
what does it means exactly -------
accessing the elements in direct or random order or sequential ?? -
When should a DSO be used?
When should a DSO be used?
Hi surya,
1.Mainly ODS is used to store detailed level of data.
2. Getting teh data overwrtten for key fiedls instead of appending.
3. Delta functionality because of the Change log table.
4.All Datasources in ECC will not support for Delta. In such scenarios will go for DSO before cube, as DSO has Overwrite functionality.
If datasource does not support Delta, we can do full update to DSO and from there we can do Delta Update to Cube. We can maintain change log of each record in DSO,as it has chanege log table.
Here is the detail of Type of DSO in BI,
DataStore object types:
Standard DataStore object
Data provided using a data transfer process
SID values can be generated
Data records with the same key are aggregated during activation
Data is available for reporting after activation
Write-optimized DataStore object
Data provided using a data transfer process
SID values cannot be generated
Records with the same key are not aggregated
Data is available for reporting immediately after it is loaded
DataStore object for direct update
Data provided using APIs
SIDs cannot be generated
Records with the same key are not aggregated
And you can find more information / examples on this topic at:
http://help.sap.com/saphelp_nw04s/helpdata/en/F9/45503C242B4A67E10000000A114084/content.htm -
When should object casting be used?
Hi,
just wondering something. Saw there that returning objects from methods and downcasting the returned object is bad. When should casting be used? I currently have a program that has an object that contains a HashMap as a field. When I try retrieve objects from the HashMap using the relevant key, I have to cast them to what they were originally! Is this bad programming practice or is it the only way to do things?
Thanks.
// example of retrieving object from key
dbDirectory = (String)dbInfo.get("dbDirectory");LeWalrus wrote:
Hi,
just wondering something. Saw there that returning objects from methods and downcasting the returned object is bad. When should casting be used? I currently have a program that has an object that contains a HashMap as a field. When I try retrieve objects from the HashMap using the relevant key, I have to cast them to what they were originally! Is this bad programming practice or is it the only way to do things?
Thanks.
// example of retrieving object from key
dbDirectory = (String)dbInfo.get("dbDirectory");
Before generics, this was a perfectly acceptable practice. Generally speaking, you use type-casting when the compiler is unable to ensure the type validity at compile-time, but you know it is correct, so you supply the extra information to the compiler so it knows everything is correct. Sometimes you need to circumvent the strong type-checking part of the language for flexibility, but this is something that should be used very sparingly.
Now it would be better to use generics so that the compiler will know at compile time that the values in your map are Strings, instead of just Objects. -
When should this file be used?
Hi!
I have left this forum for a long while, but now I am back.
Sorry, may I start with a question?
I don't know when we should we use Context Listeners?
Please help if you could!Do you mean ServletContextListener? Look it up in the J2EE API documentation (javax.servlet.ServletContextListener).
A ServletContextListener is called when the context of the servlet it belongs to is created or destroyed, i.e. when the web application is started up or shut down. If you need to initialise or cleanup things for your web application, you could do it with a ServletContextListener. -
When should mapping.getAttribute() be used in Struts?
and why do we need attribute in Action mapping when we already have form bean?
// you posted in the FCPX-forum intentionally? //
pheewwww - where to start?
'film'is a year long study, very academic.
plus, due to about a 100 years in use, film'language' is part of public concious - there are perhaps 'rules' or common agreements, but an artist will break rules - for a reason.
In MY simple understanding: a cross-dissolve 'combines', a fade-to-black/-white seperates.
but that has to been seen - as in any language - in context.
a dissolve could mean 'meanwhile'.
a fade has, imho, some 'stop'.
or some 'and now to something completely different!"
(Python did NOT dissolve nor fade http://youtu.be/sZa26_esLBE) -
I use Firefox 4.0.1 on a Mac running Os X10.5.8. When I try to run Facebook or other sites that are heavy users of Flash I get a message that the new version of Flash must be loaded. I have loaded the latest version several times, but still get the message and these sites will not run on Firefox. The sites run fine with Safari or Chrome but I prefer to use Firefox if it can be made to run these sites. Thank you for any suggestions you have to help fix this problem.
Apparently it's related to the Firefox plug in.
This isn't exactly a solution but more of a way to avoid opening PDFs with Firefox's plug in.
1. Highlight "Tools" from the Menu Bar in the top left of the screen (or click "Options" if using the Firefox Compact Menu)
2. Select to "Options
3. Select "Applications"
4. Look for "Adobe Acrobat Document" under Content Type and to the right under Action select "Use Adobe Reader (default)" instead of the using Adobe Acrobat in Firefox
5. Open a test PDF. It should open in it's own window now.
Again, not a complete solution but something that'll at least let you scroll with PDFs open.
More info here: http://forums.mozillazine.org/viewtopic.php?f=38&t=2171033 -
When is it appropriate to use a servlet in a JSP/JSF environment?
I have inherited a fairly old JSP-based application. I know that I need to update its technologies, in particular the use of AJAX so that I don't need to keep refreshing the page each time I want more data from the server. The problem is that I don't know a great deal about other technologies. There seem to be so many conflicting opinions about the way to go regarding servlets and JSP and JSF (and possibly JavaBeans). I am probably going to start using JSF and AJAX. I mention this to give you some background info. My real question is: when is best/appropriate to use a servlet? From what I have seen I do not want to use a servlet for generating HTML output - that seem just so last decade! But do they still have a good use over more modern technologies? Also, when is it appropriate to use JavaBeans? Are JavaBeans a thing of the past (or just plain inappropriate) for web applications?
Regards,I suggest going to the bookstore and looking for a book on JSF and reading it cover to cover. It may tell you where servlets come into the picture (if at all). I suggest paying attention to MVC design that it discusses, and working through the examples before working on your project (assuming you have the time). Then creating a simple project and refactor it over and over to meet MVC.
For your project, I suggest just doing ONE JSF page (and its underlying database access) and refactor it over and over again (MVC) before doing the other JSF pages. This way, you dont have to refactor 34 JSF pages to correct the same mistake appearing in all the pages (saves a LOT of time).
I don't know enough about AJAX to really comment on it. However, I would ask myself if refreshing the JSF page is really enough of a concern for your end-users to make it worth while to use AJAX on this project. -
When should I use static variable and when should not? Java essential
When should I use static variable and when should not? Java essential
Static => same value for all instances of the class.
Non-static => each instance can have its own value.
Which you need in which circumstances is completely up to you. -
what is the necessity of the AC power cord (with the Mac book Air)? when should it be used?
Gary, you wouldn't believe some of the questions people ask on this site.
Why are both cords necessary?
They are not.
Other than the two reasons dominic23 sited are there any other reasons to use the AC power cord rather than the power adapter cord alone?
No. -
When i put in a compact flash card iphoto automaticaly comes up to import my photos. I have to exit out of iphoto to use the editing softwear that i prefer to use every time. It is very annoying. How do i prevent this from happening? I have looked in system prefereces....maybe i am over looking something, Thanks
iPhoto Menu -> Preferences -> General -> Connecting Camera opens.... And select your preferred app.
You can also make the same choice in the Image Capture (in your Applications Folder) and Aperture preferences.
Regards
TD -
What is a Transient Variable and when should it be used
Hello everyone,
I just want to know the details regarding the transient variable and when should we use it. what is the significance of this variable?Transient variables are not written out when the class is serialized.
http://java.sun.com/docs/books/tutorial/essential/io/providing.html -
J1INCHLN when should I use error control mode checkbox
Hi Experts,
I am using t-code J1INCHLN for creating remittance Challan.
But in ECC6, EHP 5 there is new functionality added & no documentation available for same.
There is one field with tick option called Error Control Mode.so when should i use this functionality.
Can anyone help on this?
Thanks and Regards,
SameerHI
Please refer the note no : 1567443
Manual Control in J1INCHLN to change currency key/doc type
"After this, if you will run J1INCHLN, you will get a checkbox at the end
with 'Error Control Mode' which will be selected by default. If you want
to change document type, currency or rate during processing, you should
uncheck it else it will take you to the last screen."
I hope note is allready available in your system hence you are getting above cheeck box.
If you want to change the document type and currency or rate during posting then you need use the check box.
Regards
Madhu M -
hi
i don't know when i should use request scope, the example is use session scope always.
Can anyone help me?
thanks!SpiderFromMars wrote:
> What are the best practices for using the variables
scope versus using the
> request scope when assigning variables.
>
> In other words, when should I use <cfset variables.x
= 'barf'> and when
> should I use <cfset request.x = 'barf'>?
>
The variables scope is only accessible in the current
template. The
request scope is accessible in the current template and any
other
template, such as a custom tag or include file, that is used
to build
the current request.
I.E
<!---index.cfm--->
<cfset variable.x = "foo">
<cfset request.x = "bar">
<cfoutput>#variable.x##request.x#</cfoutput>
<cf_myCustomTag>
<!---myCustomTag.cfm--->
<cfset variable.x = "bob">
<cfoutput>#variable.x##request.x#</cfoutput> -
Why or When should we use Execute Immediate in PLSQL??
Hi Frnds,
Long Ago i have received a interview question that ...
How can U create a table in the PLSQL object(Function or procedure)?
But the thing y should we use execute immediate?
In which scenario we should we should use????????????
Why or When should we use Execute Immediate in PLSQL????OR
http://stackoverflow.com/questions/18375990/oracle-what-does-execute-immediate-means
For DML you'd use it when running statements that you don't have available at compile time, e.g. if the column list is based on a selection from the user.
In your case it's being used because DDL cannot be run as static SQL from within PL/SQL. Only certain query, DML and TCL commands are valid. Anything else has to be treated as dynamic.
I'd say it's rare to need to use DDL from a PL/SQL block. TRUNCATE might be reasonable; if you find anything creating or dropping objects on the fly then that might be more of a concern as it can suggest a suboptimal data model.
EXECUTE IMMEDIATE itself does not automatically commit; but if you execute DDL then that will behave the same as if you ran it outside PL/SQL, so it will commit in your case, yes.
Incidentally, I'm not sure why your code is using an intermediate variable to hold the statement; that's useful if you want to display what it's going to run maybe, but you don't seem to be doing that. What you have could be done as:
EXECUTE IMMEDIATE 'TRUNCATE TABLE BD_BIDS_EXT_DET';
Thank you
Maybe you are looking for
-
System lock-ups after upgrading to Tiger
This topic was previously posted in 'Installation & Setup'. After 3 days (and 18 views) I got no replies. Maybe that forum was not appropriate, so I decided to try it in this forum. About 4 months ago I exchanged my 80 GB Hd in favor of an 200 GB Max
-
I need specific directions on how to set up 2 iPads to same iTunes account.
I need specific directions on how to set up 2 iPads to 1 iTune account. I want both iPads to receive some things alike - calendar, contacts, etc. I want same book on both but to open to correct page for each iPad reader. Games on both but levels f
-
Importing a catalog when the images are stored offline
I have cataloged 126 DVDs worth of images, around 7000 in all (lots of big TIFFs) As I have done this over the last year, I have selected "import from current location" option so that the actual images stay on the DVDs and I just have the previews in
-
When opening Itunes, after placing my ID and password, I'm getting a message that indicates "Itunes has stopped working. A problem caused the program to stop working. Windows will close the program and will notify you if a solution is available. Bu
-
I am using the newest release (Version 1.1.0.21 Build MAIN-21.97) and thought that the spreadsheet importing mechanism was now working. It appears that it is now giving errors as soon as I choose a spreadsheet to import. I have tried shutting down th