Harini nataraj

Greenhorn
+ Follow
since Jan 10, 2012
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 Harini nataraj

Hi Tim,

Thank You for your explanation, I am using unique ID for each of my input Text from my Bean Class and again i need this id back to my bean i mean the user selected id to perform some operation and also to identify which component user selected, but my main main problem is i cant use any command button in UI, if i have used that i would have got these id easily in my bean on some action. only thing what i can do is on selection of any values within my SelectManyListBox i have to get this id in my bean so that i can display the user selection in my inputtext, no problem where i keep the dialog that is may be within c:foreach or outside the loop. I am really struck here and am planning to use Javascript now, but i havent succeed still. Any idea or suggestion is really appreciated.



10 years ago
JSF

i have tried this also but same problem
10 years ago
JSF
have some thing like this, it would be great if i got some help.

<c:forEach items="${gapMatch.text}" var="fill" >
<ice:outputText value="${fill.outputText}" />
<ice:inputText onclick="popup.show();"
rendered="${fill.textflag}" />
<ace:dialog header="Select" widgetVar="popup" closable="true"
modal="true" draggable="false" position="center">
<ice:panelGroup styleClass="selectionListBoxGroup">
<ice:selectManyListbox id="${fill.inputText}" value="${fillupresponse.userSelected}"
valueChangeListener="${gapMatch.valueChanged}"
partialSubmit="true">
<f:selectItems value="${gapMatch.answertext}" />
</ice:selectManyListbox>
</ice:panelGroup>
</ace:dialog>
</c:forEach>



the ids for my selectmanylist are unique, i am getting this ids in managed bean but any change made i am getting the same id, that is last id which i assigned using c:foreach.. please help me out in getting each time new id based on user selection. onclick of my text box popup opens and for each text box i have each select many list based on which i can know which text box user selected.
10 years ago
JSF

I have an scenario where i have to call different JSF page based on some criteria, but each time when I make a call the page should not be refreshed. Keeping everything in one page seems to have huge code. I m really wondering if it is possible or not!!! some help or suggestion appreciated.
10 years ago
JSF
In the beginning even i was getting null value. Make sure that your Bean class should look like this.

public String getConversiontostring()
{

str = "some text whatever you need in you java script";
System.out.println("My Html :" + str);
return str;
}
for the above function you have to make the call as below, ques is my bean name.

#{ques.conversiontostring}

it must work
10 years ago
JSF
<h:commandButton value="display_alert" onclick="onCall()" />

and call that function onclick of command button or use it as per your requirement
10 years ago
JSF
<h:inputHidden id="html" value="#{ques.conversiontostring}" />

function onCall()
{
var htmlstring = document.getElementById("form:html").value;
alert(htmlstring);


}

actually the above code worked for me. try to do this.
10 years ago
JSF
Thank you guys, i got it.
10 years ago
JSF

trying to do the same but i am getting null value

<h:inputHidden id="html" value="#{ques.str}" />

function onCall()
{
var htmlstring = document.getElementById('form:html').value;
alert(htmlstring);


}

tried something like this, i m new to jsf, that would be great if someone helps
10 years ago
JSF

Hi,

can anyone please help me out in getting my bean value in javascript.


10 years ago
JSF