Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!

Marcin Majewski

Greenhorn
+ Follow
since Dec 20, 2010
Marcin likes ...
IntelliJ IDE Oracle Java
Merit badge: grant badges
For More
Poland
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
2
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marcin Majewski

Just as Jayr said it is much a matter of taste, but there are other consequences as well. Spring is a lightweight framework requiring just a web container. EJB (with the exception of EJB Lite) on the other hand needs application server to offer whole set of functionalities (eg Message Driven Beans, Java Mail and Java Web Services are not available in EJB Lite profile). In my opinion Spring (just as JBoss Seam) are more initiative and introduce concepts that are incorporated into EJB only after a while. However I'm still a big fan of EJBs (and a whole JEE) and encourage to get to know both technologies. It's then a matter of project specification that would help to choose best technology for particular needs.
Thanks for your post santoshkumar savadatti. As we can see even a simple use case diagram can introduce confusion. It all depends on what we understand under "Perform Search" use case. If it's a bucket that can be divided into several use cases than I would use the <include> relation. If performing search is just a part of other use cases then <extends> relation is justified. However in either scenarion I don't understand how "Modify Search" can be inherited from "Perform Search" use case. I would rather change "Modify Search" into "Provide Search Criteria" or so, which is basically the same as search criteria modification and hereby the "Perform Search" includes "Provide Search Criteria" relation would be reasonable. Please let me know whot do yu think about that.
Builder pattern is a good choice when the construction of a particular object is a complex task, and you want to have a controll over each step of this construction process. The real world example could be ie. a creation of a XML file. You can define severial methods to add new nodes, set its subelements, attributes etc..
I believe that most of designing tools enable that. You can use a nice, simple and free tool - Star UML. I recommend on that.
In my opinion all these use cases are part of "Perform Search" use case. This applies to "Modify Search" use case as well. However be aware that it is rather a theoretical consideration (with no impact on implementation as we're talking on a high abstraction level at this stage) and there are probably many arguments to reason the extends relation.
Try the following:



In some cases this return null as the JSF managed bean and servlet life cycles are different. In this case it might mean that you've called your servlet too early.
13 years ago
JSF
I believe that the best solution would be to use JSF-AJAX(A4J) combination to accomplish desired effect. If you are interested in creating dynamic js and you can abandon the power of JSF managed bean then JSP is probably your choice. On the other hand you can always reference dynamic components value as the following code (provided you have ie. a form named "myForm" with <h:inputText> named "myInput"

13 years ago
JSF
Ok. I assume that you're trying to define a default page that should appear after entering your application URL. There's a better solution than forwarding. You can define the following in your web.xml configuration file:

Hope it solves your problem with not calling the button action as well.

13 years ago
JSF
Can you please attach the source code.
13 years ago
JSF

Christopher Whu wrote:I am going to add JSF to a project i am working on and the existing template is kinda complex. To achieve a seamless look from going from non JSF pages to my JSF applications is it okay to use the html tags?

wondering what your experiences with this have been...



As usualy... it depends. I've been lately working on a project where customer provided the exact application layout. The project's schedule was tight and we're ordered to develop in ADF framework in which it's quite hard to redefine layouts (at least for newbies) so all we did was to incorporate dynamic JSF components into the provided layouts. It's probably not a good programming style, but because of the fact that it is usually the same developer that designs layout and provide the underlying code there are no maintenance problems. My advise would be to use JSF where you need bindings with model and application control. In my opinion this is not of the greatest importance whether you'll use JSF for presentation components (i.e. div instead of <h:panelGroup layout="block"/>
13 years ago
JSF
While in JSF world we use rather the navigation concept. In faces-config.xml you can define the so called navigation rules that are responsible for application page flow. I.e. we have two jsps: index.jsp and about.jsp. Let's assume that inside index.jsp we have defined a <h:commandLink value="Go to about" action="about"/> component. Now in faces-config.xml we define



Now, after clicking this link you'll be directed to about.jsp page. You can read more about this concept at http://www.jsftutorials.net/jsf-navigation-by-examples.html
13 years ago
JSF
Good point. Thanks.
13 years ago
You are not allowed to place assignments (=) in if statements. You are only allowed to make comparisons in if statements (==) and call methods that return boolean. This is a Java build-in security checking mechanism.
13 years ago

Harsha Ka wrote:Hi

I am new to programming. I have a fair amount of knowledge on Java but am clueless on how to get programming experience/use good programming techniques.Can anyone suggest me ideas on how to improve my skills? Thanks.



The best way to improve your programming skills and gain experience is through participating in some project. In my opinion the best way is to learn from the others. If you have no such an opportunity I suggest you to read about the so called "design patterns" to learn the de facto developers natural language (books like Head First Design Paterns and a classic Gang of Four Design Patterns: Elements of Reusable Object-Oriented Software). There are several resources online as well.

Good luck and let me know if I can help you any further.
13 years ago