Sachin Yewale

Greenhorn
+ Follow
since Feb 02, 2012
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 Sachin Yewale

All naming service operations are performed on some implementation of the Context interface. Therefore, you need a way to obtain a Context for the naming service you are interested in using.

The javax.naming.IntialContext class implements the Context interface, and provides the starting point for interacting with a naming service.

When you create an InitialContext, it is initialized with properties from the environment. JNDI determines each property's value by merging the values from the following two sources, in order such as:
•The first occurrence of the property from the constructor's environment parameter and (for appropriate properties) the applet parameters and system properties.
•All jndi.properties resource files found on the classpath.


Properties required for InitialContext to work with Jboss are
>Context.INITIAL_CONTEXT_FACTORY : The name of environment property InitialContext to use with value "org.jnp.interfaces.NamingContextFactory" (this is for Jboss of not given javax.naming.NoInitialContextException will be thrown)
>Context.PROVIDER_URL : name of environment property for specifying location of JbossNS Service Provider

http://books.google.co.in/books?id=26iZd0RYNqIC&pg=PA127&dq=org.jnp.interfaces.NamingContextFactory&hl=en&sa=X&ei=G-vtT6-GNYblrAfE_bi9DQ&redir_esc=y#v=onepage&q&f=false
sorry shivaji i have not used that functionality. i thought your requirement was something different so asked for more details.
9 years ago
JSF
can you explain a bit what you want to do. Have you tried something , can you post your code ?
9 years ago
JSF
Hi i know the basic difference of start() method and run() method of Thread class.My question is why java has given two method for creating and running thread why not only one method for crating another thread that is run() so that we can call directly run to create new Thread (with new call stack ) rather than take a round trip from start() method
use

in Action class and then in JSp page retrive from request attribute in scriptlets
and then use that varible in anywhere in Jsp page.


9 years ago
use this :

<rich:column style="text-align:center;width:10%;">

its work for me
9 years ago
JSF
Hi friends ,
I want to create a tab like menu in jsf 2.0.
I am using rich:tab for this. but in this component there is attribute label which is used to give name to header,but i want to use both name and icon for the header name. Do any one have idea how to do that?

thanks in advance
Sachin.
9 years ago
JSF
Hi ihsan,
If your other managedBean is in session scope then you can use following code to access that bean in current backing bean as folows:

9 years ago
JSF
Hi,
I want to know how to use JNDI for db connectivity in java. In one my project (done by other) It is used, but i dont understand some code such as what is cotext parameter? code is

i tried to search that but did not understand actual meaning of this ,
Can anyone explain me ?



Hi Tim,
Thanks for reply. My problem is solved now . I called same page directly by using action="mypage" attribute.
Thanks again.
9 years ago
JSF
Hi , friends i want to know how can i reset form values in jsf 2.0 if bean is in viewscoped. i read in one of post that you can remove by using code :


But it is not working . form values remains same.
Please help me.
Thanks in advanced.

9 years ago
JSF
Hi Irakli Bliadze,

You can directely access managed Bean value in Javasript.
9 years ago
JSF
Thanks Tim Holloway,
I have view scope to solve my problem.Thanks.
9 years ago
JSF
How did you remove evt from the line ?
use following code for that:


if still not work ckeck where the component in the h:form or not

else check if there are any errors occurs by attaching h:message for the given component .

10 years ago
JSF
Hi,
I am working on JSF 2.0 Application.I have created a Menu using rich:dropDownMenu. And for some pages i put managedBean in session scope . but when i click on the the one menu item and then after some time other and again come back to prev menu link it keeps its state. i know i need to remove managedBean from session for this . but i dont understand where to put that code.
My menu code is:


Please help me.
Thanks in advanced.
10 years ago
JSF