Well,
I finally found where the problem is... Although I am not sure of who is responsible of it:
After the page is loaded and constructed, the JSP file is called to give default values to each property.
Then I should not set the Text to Label1 in the JSP file as it loads last thing and gets default value and write on the current values given to the Label1.
Thanks for help,
There is no other solution found till...
User Profile
Collapse
-
Well,
I finally reached the reason of it...
in this page, i added 2 links calls css <by mistake while trying something else>...
then these 2 links calls the init() twice to construct the page according to each one's stylesheet.
That's why it is called twice..
Code:<webuijsf:link binding="#{Page2.link1}" id="link1" url="/resources/stylesheet.css"/> <webuijsf:link
Leave a comment:
-
-
anyway, I think we reached nothing till now...
what do we need to reach help if possible ?
thanksLeave a comment:
-
I did not write any code... cause I am developing simple example
This is the created source jsp to the designed page.
Are you familiar to NetBeans ?Leave a comment:
-
I did not get what you mean by kind of interface..
anyway, below is the jsp code for the web page I create..
Code:<?xml version="1.0" encoding="UTF-8"?> <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui"> <jsp:directive.page
Leave a comment:
-
-
Here you are the code.. thanks...
public void init() {
// Perform initializations inherited from our superclass
super.init();
// Perform application initialization that must complete
// *before* managed components are initialized
// TODO - add your own initialiation code here
// <editor-fold defaultstate="c ollapsed"...Leave a comment:
-
Please, do you know how to stop LifeCycleListen er of calling requestDestroye d(..) ?
I created a simple test web application using NetBeans5.5 ..
it has a label and its text is "Old Value"
and in the init() method, I added small code after _init() code:
this.Label1.set Text("New Value");
this new string assigned to Label1.text does affect but then the lifeCycleListen er class does...Leave a comment:
-
init method is called twice !!!
Hi
I've strange thing...
I am developing web application using JSP in NetBeans5.5
and for the child pages, I find the init() method is called twice ?!!
any idea about the reason behind this ?
Thanks -
First, thanks for reply...
But this is not the problem, the problem is in Request Destroy which works like undo my all new work and gets initial values back.
The problem not in the session parameter value...Leave a comment:
-
I am using NetBeans5.5
on Sun Java System Application Server 9
I get new Data from SQL SERVER 2005 DB
ThanksLeave a comment:
-
LifeCycleListener, requestDestroyed(ServletRequestEvent event)
Well,
I've a problem..
I am developing simple sample web site, it is only 2 pages...
when I move to the second page, I want to change some labels' and controls' Text and Style <ex. left = 133 instead of left = 10>.
This depends on some session attribute value from page1, I receive it successfully and work using it.
The problem is that LifeCyclelisten er... destroys all changes and reset the default... -
Well, forget about the above requirement...
In the coming line of code:
Connection c = java.sql.Driver Manager.getConn ection("jdbc:sq lserver://cdwxp-hict8156;Databa seName=Multilin gualTrial01","U sername","Paswo rd");
I receive this error:
the Tcp/IP connection to the host has failed.
When write it like:
Connection c = java.sql.Driver Manager.getCo...Leave a comment:
-
connect sqlserver in netbeans5.5
Hi
I need to know exactly and in details, how can I connect to SQL server 2005 from NetBeans5.5 using sqljdbc_01 package.
thanks in advance -
starting with Java-Tomcat
Hi,
First, I am just starting deal with Java.
I configured Apache Tomcat 5.5 to Eclipse 3.2.
And after running a simple jsp page...
I receive this error:
HTTP Status 404 - /Test03/
--------------------------------------------------------------------------------
type Status report
message /Test03/
description The requested resource (/Test03/) is not available.
--------------------------------------------------------------------------------... -
Well,
I just got it and wanna share it with everybody.
In Label.Text or TextBox.Text u should write the link in html code like the following:
<A href="chapter2. html">Chapter two</A> is very important chapter
will result in:
Chapter two is very important chapter.
Good luck and thanks for helpers:)Leave a comment:
-
Do anyone knows how to solve this problem and thankfully tell me about it?Leave a comment:
-
Well, you are right but all common controls are not active = cannot drag them in Web application.
But when I tried it in windows application, it works well.
Then, still the problem exists !...Leave a comment:
-
Hi,
First, I think u mean HyperLink control as I did not find LinkLabel control ?
Secondly, how can I place a control within another ? I could not do it.
Thanks alot...Leave a comment:
No activity results to display
Show More
Leave a comment: