Victor Hugo M Machado

Greenhorn
+ Follow
since Jan 11, 2011
Victor Hugo likes ...
Eclipse IDE Oracle Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Victor Hugo M Machado

chets patel wrote: Got good knowledge.



that is important! good luck
10 years ago
something happens in your Life Cycle that prevents operation of the button ..
debug all classes at this process envolved .. not business process.. only the JSF LyfeCycle classes

I solved very similar problems ...
on time I had a popup process and that throws a <f:message> for the first page and the message never was show.. then I solved with a Post/Redirect/Get (PRG) design pattern..
take a look
are you brazilian? If yes here too
10 years ago
JSF
what is the scope of the your BackBean "pageBean1" ?

maybe this is a bug.. clean all .class and temp files..
10 years ago
JSF
if you change this..


and try this..
http://localhost:8080/ctWeb/html/TestMe.html

what happen?
10 years ago
really good.. one more lesson
10 years ago
JSF
maybe I misunderstood what you said but let it ..

the colon are caused because you have separeted the formID from the componentID.

for me.. it ´s possible only if you decompile jsf and change naming components..
10 years ago
JSF


This is because these are declarations, and will only be evaluated once when the page is loaded! (Just as if you were creating a class and had variable initialization declared in it.)
Now that you know how to do this -- it is in general not a good idea to use variables as shown here. The JSP usually will run as multiple threads of one single instance. Different threads would interfere with variable access, because it will be the same variable for all of them. If you do have to use variables in JSP, you should use synchronized access, but that hurts the performance. In general, any data you need should go either in the session object or the request object (these are introduced a little later) if passing data between different JSP pages. Variables you declare inside scriptlets are fine, e.g. <% int i = 45; %> because these are declared inside the local scope and are not shared.

10 years ago
JSP
JSF LifeCycle
I think is the same servlet who call every calls of this methods..


my english is really bad and I have some difficult to understand what you saying
sorry
10 years ago
JSF
see the source code of your JSP.. see the HTML generated..
hidden components not are rendered

I hope understood your problem
10 years ago
JSF


JSP Declarations

The JSP you write turns into a class definition. All the scriptlets you write are placed inside a single method of this class.
You can also add variable and method declarations to this class. You can then use these variables and methods from your scriptlets and expressions.

To add a declaration, you must use the <%! and %> sequences to enclose your declarations, as shown below.

<%@ page import="java.util.*" %>
<HTML>
<BODY>
<%!
Date theDate = new Date();
Date getDate()
{
System.out.println( "In getDate() method" );
return theDate;
}
%>
Hello! The time is now <%= getDate() %>
</BODY>
</HTML>
The example has been created a little contrived, to show variable and method declarations.
Here we are declaring a Date variable theDate, and the method getDate. Both of these are available now in our scriptlets and expressions.

But this example no longer works! The date will be the same, no matter how often you reload the page. This is because these are declarations, and will only be evaluated once when the page is loaded! (Just as if you were creating a class and had variable initialization declared in it.)


Declarations
10 years ago
JSP
if you implement something on the client that it is all the time communicating with the server .. you know when the client stops communicating on the same second, so will your "event " to capture and treat ... only that their application can be a drug .. very heavy .. maybe the client 'll be very fat

would be almost as reducing the minimum time session
10 years ago
JSP


you change your web.xml?
10 years ago
using scriplet..
https://coderanch.com/t/281489/JSP/java/dropdown-filter

If you use some others frameworks.. It`ll be more simple
10 years ago
JSP