I think you may need to use different methods in the backing bean to return
the selectitems. Each question should have it's own instance of the
selectItemList. You can use a factory to return the different instances of
the same list.
On Thu, Jun 25, 2009 at 4:14 PM, Scott Carter
(Integer.toString(qWeight - ((qWeight /
5) * 4)) , SD);
this.questionCount++;
return answers;
}
This method does declare a new array each time
On Fri, Jun 26, 2009 at 10:33 AM, Sam sam72w...@gmail.com wrote:
I think you may need to use different methods in the backing bean
if
there is more than one question on a page.
On Fri, Jun 26, 2009 at 11:01 AM, Sam sam72w...@gmail.com wrote:
How about the setter?
On Fri, Jun 26, 2009 at 9:52 AM, Scott Carter
carterdevli...@gmail.comwrote:
So here is the method that returns the selectItem list. Each time it
creates a new array
Just for kicks, could you change your getter to return a ListSelectItem
instead of SelectItem[]?
On Fri, Jun 26, 2009 at 10:10 AM, Sam sam72w...@gmail.com wrote:
Sorry, my mistake. What's the stacktrace on your validation error?
On Fri, Jun 26, 2009 at 10:05 AM, Scott Carter
carterdevli
. Is there a
sample app I can look thru? I'm using Spring to manage the backing bean.
Otherwise, everything else is pretty much by the book. I can provide
config and code but I think I just need a reference app to see a working
sample.
Sam
Do IE browser has it?
From: Shane Petroff [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 17, 2007 1:01 PM
To: MyFaces Discussion
Subject: Re: does anyone use Spell Checker for JSF?
Wong, Emmanuel (Sam) wrote:
Does anyone use any Spell checker
Hi:
Does anyone use any Spell checker for the JSF? I tried to do a
search and nothing much about using JSF with the spell checker. Thanks.
-- Sam Wong
Hi:
Does anyone tell me where I could get spell checker for
implementing Tobago textarea input field? Thanks.
-- Sam Wong
Try to update the Tomahawk to 1.1.5.
luis.roche wrote:
Hi all!
I would like know if someone had problems with JSCookMenu, actionListener
(t:navigationMenuItem) and Facelets. I'm porting an application from
JSP/JSF to Facelets and ran into a problem with the menus' actionListeners
Thanks Volker and Madan. It works great as you suggested.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Volker Weber
Sent: Wednesday, April 25, 2007 3:12 AM
To: MyFaces Discussion
Subject: Re: [Tobago] How to make button disable when user inputing a
f:facet name=confirmation
tc:out value=Are you sure to
submit? /
/f:facet
/tc:button
-- Sam Wong
or docs for your container are probably the best place
to look.
On 4/12/07, Wong, Emmanuel (Sam) [EMAIL PROTECTED] wrote:
Hi:
Do you have an examples file to configure the
container/application to store session information in cookies instead
of
the url? is it on the web.xml file
Hi:
Could we hide the session id on the URL? It seems if I capture
the URL with the session id, I was able to get into the application.
Thanks.
-- Sam Wong
container/application to store
session information in cookies instead of the url.
On 4/12/07, Wong, Emmanuel (Sam) [EMAIL PROTECTED] wrote:
Hi:
Could we hide the session id on the URL? It seems if I
capture the
URL with the session id, I was able to get into the application
Hi:
Could someone tell me how to turn off directory browsing by
configuring the web.xml in Tobago or JSF? Thank you.
-- Sam Wong
-servlet.html
Regards
Bernd
Wong, Emmanuel (Sam) wrote:
Hi:
Could someone tell me how to turn off directory browsing by
configuring the web.xml in Tobago or JSF? Thank you.
-- Sam Wong
for showing or not showing the
tab.. I used Tobago. Don't if this would help.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 28, 2007 12:10 PM
To: Wong, Emmanuel (Sam)
Subject: RE: How to disable a Tab
Hi Wong,
You said you made it render.
Please If you
I made it as render.
-Original Message-
From: Dravid [mailto:[EMAIL PROTECTED]
Sent: Monday, March 26, 2007 12:55 PM
To: users@myfaces.apache.org
Subject: Re: How to disable a Tab
Thanks for your advice Simom Kitching,
Sorry for posting the message repeatedly.
bye!
Simon Kitching-3
String tmp = printFile;
printFile = null;
return tmp;
}
-- Sam Wong
tc:button label=Delete
action=#{yourController.delete}
f:facet name=confirmation
tc:out value=Do you want to delete? /
/f:facet
/tc:button
${storeFront.imageContentBox} is an List object , and content is
an
refernce for that.
So u can iterate as such with JSTL forEach tag.
Regards,
Madan
-- Sam Wong
Have your tried the examples
http://svn.apache.org/viewvc/myfaces/tobago/trunk/example/foreach/src/ma
in/webapp/foreach.jsp?revision=476274view=markup
-Original Message-
From: anoe [mailto:[EMAIL PROTECTED]
Sent: Friday, March 09, 2007 1:17 PM
To: users@myfaces.apache.org
Subject:
Hi:
Is there a for loop or for each examples in Tobago or my faces?
I have for records of information to print, but if I use tc:sheet, I was
not able to put a nice html page format for all the records. Thanks.
-- Sam Wong
Hi:
Do anyone knows how to create and config JSF to have a life
cycle bean that is initial active when JBOSS is started? For Example:
When user login into their Win XP workstation, I would grab his
creditenal username and password from his workstation, then I open a URL
for my
Hi
When a user attempts to exit the browser or when session expired, if the
user has un-submitted a record, the system shall display an alert
message warning the user. Is there a way to do this?
Hi Gerald,
Yes. it's ok now, I found the problem is all of the fields be showing can
not be null.
Many thanks!
Sam
Gerald Müllan wrote:
Hi,
ok, i had thought first that you mean the issue where the highlighting
of a row doesn`t work when moving down with the cursor. Have a look
Yes, I have the same issue. Could it be implement in JBOSS?
From: Thomas Chang [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 06, 2007 3:10 AM
To: MyFaces Discussion
Subject: How to set session-timeout?
Hi all,
I want to set a so-called session
Hi:
Could anyone know how to login into the application without
clicking the login button? I have a login page and would like user
input the password, then user hits the ENTER key will go into the
application. I tried to use valueChangeListener, is this the only way?
Thanks.
Is Jazzy (http://sourceforge.net/projects/jazzy) is good to use in JSF
or other recommendation?
or password text filed as
submittion
Hello Sam,
you can define a default Button per page.
tc:button defaultCommand=true
label=Login/
Regards
Bernd
Wong, Emmanuel (Sam) wrote:
Hi:
Could anyone know how to login into the application
without
clicking the login button
, Emmanuel (Sam) wrote:
Yes, I could add a button, but it would be better to take action when
user hit the return key in the password text field.
-Original Message-
From: Bernd Bohmann [mailto:[EMAIL PROTECTED]
Sent: Monday, January 22, 2007 1:58 PM
To: MyFaces Discussion
Subject: Re
Madhav Bhargava-2 wrote:
Hi All,
I have been desperately trying to make t:inputFileUpload component
work but I am facing a weird problem.
JSP code:
t:inputFileUpload id=fileupload value=#{loginController.upFile}
accept=image/* storage=file maxlength=20/
Hi, I also got this error in IE6 and Firefox2 with myfaces core
1.1.5-SNAPSHOT, tomahawk-1.1.5-SNAPSHOT and facelets 1.1.11.
the effect is no appear suggest table when input words in the text, but when
onblue mouse the IE show 'tableSuggest.inputField.value' is null or not an
object in javascript
Hi:
Could anyone tell me how to display a specified drop down
list value? Let say will would like to display 3:Medium instead of
other drop down value. Please see below. Thanks.
For example:
On the JSP:
tc:selectOneChoice
value= #{
Hi:
Could anyone tell me how to display a specified drop down
list value? Let say will would like to display 3:Medium instead of
other drop down value. Please see below. Thanks.
For example:
On the JSP:
tc:selectOneChoice
value= #{
Subject: Re: [tobago] f:selectItem with tc:selectOneChoice
You want '3' as inital value?
just set it:
Public class MyBean{
private int probability = 3;
...
}
reagards,
Volker
2007/1/18, Wong, Emmanuel (Sam) [EMAIL PROTECTED]:
Hi:
Could anyone tell me how to display
Hi:
Does anyone know how to make the sheet highlight the first row
when loading a page without selecting or clicking the sheet row? I know
you could only highlight the row when you select that row. Thanks.
Try to put the tc:button outside of the tc:selectOneChoice. This should
work.
-Original Message-
From: yazid [mailto:[EMAIL PROTECTED]
Sent: Monday, January 08, 2007 4:38 AM
To: users@myfaces.apache.org
Subject: Re: [Tobago] Problem with selectOneChoice
Hi Volker,With immediate=false;
Hi:
I have an application contains 3 tabs, I am trying to use the
2nd tab contains tc:sheet and able to redisplay what I have selected
on the 2nd tab tc:sheet. I was not able to redisplay the value by
calling actionListener. The reason that I am using the actionListener
on the datasheet
Hi:
When I am on the 2nd tab with link command and click the link,
it will redisplay on the 1st tab. No matter you were working on the
other tab, it will display the 1st tab. Do you know how to redisplay it
back to the current tab that I am working on with the link command? Am
I doing
Hi:
I would like to have a select dropdown box to display what I
selected from the dropdown box value. Do you know what is wrong with my
code not taking the valueChangeListener or what other alternative to
display associate selected value from the dropdown list. My purpose is
doing the
:52 AM
To: MyFaces Discussion
Subject: Re: Display tobago selectable tree
Hi,
just add all nodes which should displayed as selected to the selected
set in the treeState:
selectedTrees.getSelection().add(node);
Regards,
Volker
2006/12/8, Wong, Emmanuel (Sam) [EMAIL PROTECTED]:
Hi
in the action method werd the result is stored.
the way you do this is ok, but you will get the selection before
rendering, not the one after submitting the page.
2006/12/20, Wong, Emmanuel (Sam) [EMAIL PROTECTED]:
Now, it display the checkbox on the tree that was being selected, but
when I
, Emmanuel (Sam) [EMAIL PROTECTED]:
Now, it display the checkbox on the tree that was being selected, but
when I unchecked one of the leafs or event try to resaving it. The
treestate never get never pick up the leafs that was being checked.
Am
I doing something wrong? This is how I tried to capture
.
-Original Message-
From: Wong, Emmanuel (Sam)
Sent: Wednesday, December 20, 2006 9:41 AM
To: 'MyFaces Discussion'
Subject: RE: Display tobago selectable tree
Hi Volker:
I put it in action command or action method and it did pick up
the unchecked leafs. Thank you very much.
-Original
Hi:
Is there a way you could able to display back what you have
saved in the database by indicate a checkmark on the Tobago tree? I
have set the selectable=multiLeafOnly. When user selected the leafs
that would like to save it in the database, then user retrieve back the
selected leafs
46 matches
Mail list logo