Mahendra Chowdary

Greenhorn
+ Follow
since Aug 26, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Mahendra Chowdary

I tried to follow this link given in the hammurapi site

http://www.hammurapi.biz/hammurapi-biz/ef/xmenu/system/analysis.analysisactions/viewanalysisdocumentro/152/hammurapi+5+quick+start+guide.html

but no success

i am trying to review my java code using hammurapi

Eclipse 3.4 is my IDE

Thanks
Mahi
Could Some one throw light on this topic

i tried through the hammurapi site but of no results

Can some tell me how can i review my java source code using hammurapi
Hi ,

i have an entity class which has the fields firstname and lastname in the string format.

I am writing an hibernate query to select the first name and last name from the particular table .

I am printing the result list returned by the query

My particular selection for the table fetches four row in the table so the result list is printing hashcodes of the four objects

Now , how can i retrieve the first name and last name which i want from each object in the result list ?

Thanks
Mahendra
Hi ,

I am having two radio buttons. On click of any single radio button i am opening ajax panel for each radio button . this thing is working fine , but the problem is when i click second radio button , the first panel closes and second panel opens up . Now in this panel i am unable to perform any actions.

Can someone tell me how to solve this problem

Thanks
Mahendra
11 years ago
JSF
To answer your first question the getFirstRadioChecked is called because of this
rendered="#{addContact.firstRadioChecked}"

The getter will naturally have to be called to determine the value.

Thanks for this Info But my intention is to get the true or false value after performing an action

So how can i achieve it now , i cant give rendered = "true/false" i need to determine whether it is true or false based on whether the button is selected or not


The other getters are not being called since you do not define the properties anywhere and you do not use them in rendered attributes either. For example you do not call the getter for secondRadioChecked anywhere in your code.

I do not know the syntax for a:support but are you sure that the action should look like this
action="#{addContact.firstRadioChecked}"

Yes it is in the same syntax

Normally (everywhere else where the action attribute is present) the action points to a method not a property. But I guess you have read the documentation and know what you are doing. I am (still) not familiar with richfaces taglibrary but I am beginning to think that it is a good thing

But maybe someone who has more experience with richfaces can help you more. At least you should add the term richfaces to your subject line since JSF does not equal richfaces

Will do that for sure

Mostly here we are not using much of the rich faces tag libs here
So i think the problem is not with the rich faces
11 years ago
JSF
Hi , I am facing a error while trying to implement ajax functionality in my JSF page .

Please look into my code and help me out

My Jsf Page :



My Java Code Looks like this :



When i try to launch my application ,

before performing any action

one of the methods getFirstRadioChecked is being executed .

Why is it so ..

Why other methods are not executed .

But when i perform any action like selecting the first radio button , the method is not being called .

Please suggest how i can fix this .

Thanks
11 years ago
JSF
So ,

How should i modify my code so as to satisfy the following requirement.

I need to display different panels when i select different radio buttons in the page .
11 years ago
JSF
I will call this function only when i select a particular radio button

Now , i am having another problem ,,

All the methods in my bean are getting executed without performing an action
11 years ago
JSF
When i try to run the page

the methods in the bean class are getting executed even before i perform an action like selecting a button on the page .

Can somebody please look into this .

Thanks
11 years ago
JSF
Please see my code ,

In the page i have,

<h:selectOneRadio id="Internalradioselect">
<f:selectItem id="InternalPerson" itemLabel="Person" itemValue="11">
<a:support event="onselect" reRender="panel1" action="#{addcontact.firstRadioChecked}" ></a:support>
</f:selectItem>
<f:selectItem id="InternalDistributionList" itemLabel="DistributionList" itemValue="22">
<a:support event="onselect" reRender="panel2" action="#{addcontact.secondRadioChecked}" ></a:support>
</f:selectItem>
</h:selectOneRadio>

<rich:panel id="panel1" rendered="#{addcontact.firstRadioChecked}">
Welcome to Panel 1
</rich:panel>

<rich:panel id="panel2" rendered="#{addcontact.secondRadioChecked}">
Welcome to Panel 2
</rich:panel>


In the java file i have

private Boolean firstRadioChecked = false;
private Boolean secondRadioChecked = false;

public Boolean getFirstRadioChecked() {
firstRadioChecked = true;
return firstRadioChecked;
}

public void setFirstRadioChecked(Boolean firstRadioChecked) {
this.firstRadioChecked = firstRadioChecked;
}

public Boolean getSecondRadioChecked() {
secondRadioChecked = true;
return secondRadioChecked;
}

public void setSecondRadioChecked(Boolean secondRadioChecked) {
this.secondRadioChecked = secondRadioChecked;
}





But while viewing on the page i am getting the following exception ..

javax.el.PropertyNotFoundException: /addcontact.xhtml @101,73 rendered="#{addcontact.firstRadioChecked}": Property 'firstRadioChecked' not found on type org.javassist.tmp.java.lang.Object_$$_javassist_1


Please suggest


Thanks
Baziaz
11 years ago
JSF
Hi ,

Could sombody provide me some sample code so that i can render component on the basis of ajax request

Thanks
Mahi
11 years ago
JSF
But then will it expand if i continue to add more components on the modal panel ?
11 years ago
JSF
Hi ,

I have tried using autosize="true"

Still i am not getting the desired output ,

Basically i have changed the length and width of the modal panel

is this error arising due to so .?

Thanks
Mahendra
11 years ago
JSF
Thanks for the response
11 years ago