Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Gizzmo Zeuzere

Ranch Hand
+ Follow
since May 11, 2001
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 Gizzmo Zeuzere

Hello
I'm working on a project with the technology jsf. And i want to do a process like :
<h:command_button commandName="add" label="valider" actionRef="promoForm.promoAc" action="add">
<f:action_listener type="promo.PromoAction"/>
</h:command_button>
the actionRef refers to an action in my form. But when i have an action listener the methode invoke() of this action doesn't work. But if i have not my actionlistener, it works but i can't do my process because i use the same actionlistener for many jsp. How can i manage the navigation since the actionlistener ? if you have an other idea, i 'm very interested.
Thanks
Stephane
18 years ago
Hello !
I dont understand the parameter var and items of this library.
In fact, I don't finf any tutorial about c:foreach
I don't know too if the tag core is in struts or not.
I've tried to do this (with the c.tld in the WEB-INF directory):
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
but there is an error. Have i missed a file ?
Thanks !
[ February 18, 2004: Message edited by: Gizzmo Zeuzere ]
18 years ago
Hello.
I have a problem with <html:form> tag that is inside <logic:iterate> tag.
Here is code :
<html:form action="Note.do?action=addNote" name="noteForm" type="note.NoteForm">
<Table>
<logic:iterate id="Note" name="noteForm" property="notes">
<TR>
<TD>
<html:hidden name="Note" property="net" indexed="true"/>
<bean:write name="Note" property="net"/>
</TD>
<TD>
<html:hidden name="Note" property="nc" indexed="true"/>
<bean:write name="Note" property="nc"/>
</TD>
<TD>
<html:text name="Note" property="note" size="16" maxlength="16" indexed="true"/><br>
</TD>
</TR>
</logic:iterate>
</Table>
<html:submit property="submit" value="MAJ"/>
</html:form>
I have a form NoteForm with a property notes (Collection).
When I initialise the page, all the information are present. But when i submit nothing have changed. It 's always the same values in the collection. Is it possible to use the same collection for getting eand setting a collection ?
What could be the problem?
Please, help.
Gizzmo
18 years ago
In fact, the question is : is it possible to have twice the same argument (property), or not ?
18 years ago
Hello !
I want to have a html:select and a html:text using the same property and i would know if i must create two property in my form bean or if it is possible to reuse the same.
I give you my code.
<html:form action="/Promotion.do?action=modifier">
<html:select property="promo">
<html: options collection="listePromotion" property="label" labelProperty="value"/>
</html:select>
<html:text property="promo" size="16" maxlength="16"/>
<html:submit property="submit" value="Modifier"/>
</html:form>
Thank u !
[ February 11, 2004: Message edited by: Gizzmo Zeuzere ]
18 years ago
Re hello !
My real problem is not the realisation of the collection.
I've the collection with all my students.
My problem is how to access to an attribute of the collection in the jsp
<html:select .... ?
But Thank for your responses
18 years ago
Yes sorry.I 've not noticed that i 've my collection. It's a collection of student beans. And i want to extract only their names and fornames in the select. How can i do that ?
Thanks
18 years ago
Hello!
I have a bean called Student (with name, forname...)
All the students are stored in a database.
But when i return the collection of my students, i dont know how getting the names in my jsp page in order to do a optionscollection.
Can anyone help ?
Thanks !
18 years ago
Thank u ! I test it !
18 years ago
Hello !
I must make a tree but not a binary tree. I want that a node could have many nodes (more than 2)
Does anyone have an idea ? (with a javabean)
Stephane
[ November 17, 2003: Message edited by: Gizzmo Zeuzere ]
18 years ago
Hello!
i dont'succeed in doing the command "cd" then doing the command "java".
Indeed this code doesn't work (it makes nothing):
try{
Process p1 = Runtime.getRuntime().exec("cd "+rep);

try{
p1.waitFor();
}
}
catch(InterruptedException ire){}

Process p2 = Runtime.getRuntime().exec("java "+nameOfProg);
try{
p2.waitFor();
}
catch(InterruptedException ire){}
catch(IOException ioe){}
I have vefified tyhe command of cd and the command of java and they work when i'm in the console
Help please !!!
19 years ago
Hello!
When i iconified a Jinternalframe, i want to change the title of the icon. But after when i maximized it i want to keep the old title. For exemple my first title is :
c:\....\....\topic.java
then i want that the title of the icon be :
topic.java
then when i will maximize the frma i want
c:\....\....\topic.java
How can i do that ?
(sorry for the english)
19 years ago
Hello
How can i have the number of chars of a Jtextarea, plese ?
Does someone know it ?
19 years ago
Hello!
In a jtextarea, i must find the word "public"
This code works only once but i don't how to cover all the jtextarea:
int index=-1;
int finIndex;
String fin="";
index=agl.document.getText().indexOf("public");
while(index!=-1)
{
for(finIndex=index+1;fin.hashCode()!=KeyEvent.VK_ENTER;finIndex++)
{
agl.document.setSelectionStart(finIndex-1);
agl.document.setSelectionEnd(finIndex);
agl.document.select(agl.document.getSelectionStart(),agl.document.getSelectionEnd());
fin=agl.document.getSelectedText();
}
agl.document.setSelectionStart(index);
agl.document.setSelectionEnd(finIndex);
agl.document.select(agl.document.getSelectionStart(),agl.document.getSelectionEnd()-2);

index=-1;
index=agl.document.getText().indexOf(statut);
/*document is my jtextarea
19 years ago
when i find a "{" i want to know the line where it appears. But i don't know how to do. Help please !!!
19 years ago