How to display options from List in JSF
Hi ,
How can I display the options in JSF,because jsf wont support the forEach tag.
I'm using Tomcat 5.5 ,Java 5 and Eclipse .
I'm using the tag like this
<h:selectOneMenu id="assignTo" value="#{courseDetails.assignTo}" >
<f:selectItem itemLabel="#{courseControl.processList}" itemValue="#{courseControl.processList}" />
</h:selectOneMenu>how can i assign the values to the selectItem throug List/Array.
Can any help on this please.
Regards,
PB.
Instead of using
<f:selectItem> use
<f:selectItems>.
Pass list to this componenet. is this your question?
Message was edited by:
KrishnaS
Similar Messages
-
Document Display Options from portlet
How do I gain access to the user setting for the "Document Display Options" from a portlet? I want my portlet to honor this setting when creating links for the user to click on such that they open in a new window or in the main browser window as specified by this setting.
This option is set on the Display Options page of the My Account editor.
thanx!Instead of using
<f:selectItem> use
<f:selectItems>.
Pass list to this componenet. is this your question?
Message was edited by:
KrishnaS -
I'm wondering how to display "bullets" from the bottom to the top (last to first) in a slideshow. Can anyone help?
Select the set of bullets. Go to the "Build" panel of the Inspector. Choose "Build In". Choose your effect. Select "By Bullet Group" under delivery.
Be sure to experiment with the various options. -
How to pass data from list to internal table
Sir,
Please tell me how to pass data from list display to internal table. Some fields in the list display are input fields .These are added at run time and these added values should be stored in the internal tableFollow this code sample:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = W_REPID
I_CALLBACK_PF_STATUS_SET = 'PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.
when '<Some user Action>'.
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data
* Your internal table will have the data
endcase.
ENDFORM.
Regards,
Ravi -
How to display data from a recordset based on data from another recordset
How to display data from a recordset based on data from
another recordset.
What I would like to do is as follows:
I have a fantasy hockey league website. For each team I have
a team page (clubhouse) which is generated using PHP/MySQL. The one
area I would like to clean up is the displaying of the divisional
standings on the right side. As of right now, I use a URL variable
(division = id2) to grab the needed data, which works ok. What I
want to do is clean up the url abit.
So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end all
I want is clubhouse.php?team=Wings.
I have a separate table, that has the teams entire
information (full team name, short team, abbreviation, conference,
division, etc. so I was thinking if I could somehow do this:
Recordset Team Info is filtered using URL variable team
(short team). Based on what team equals, it would then insert this
variable into the Divisional Standings recordset.
So example: If I type in clubhouse.php?team=Wings, the Team
Info recordset would bring up the Pacific division. Then 'Pacific'
would be inserted into the Divisional Standings recordset to
display the Pacific Division Standings.
Basically I want this
SELECT *
FROM standings
WHERE division = <teaminfo.division>
ORDER BY pts DESC
Could someone help me, thank you.Assuming two tables- teamtable and standings:
teamtable - which has entire info about the team and has a
field called
"div" which has the division name say "pacific" and you want
to use this
name to get corresponding details from the other table.
standings - which has a field called "division" which you
want to use to
give the standings
SELECT * FROM standings AS st, teamtable AS t
WHERE st.division = t.div
ORDER BY pts DESC
Instead of * you could be specific on what fields you want to
select ..
something like
SELECT st.id AS id, st.position AS position, st.teamname AS
team
You cannot lose until you give up !!!
"Leburn98" <[email protected]> wrote in
message
news:[email protected]...
> How to display data from a recordset based on data from
another recordset.
>
> What I would like to do is as follows:
>
> I have a fantasy hockey league website. For each team I
have a team page
> (clubhouse) which is generated using PHP/MySQL. The one
area I would like
> to
> clean up is the displaying of the divisional standings
on the right side.
> As of
> right now, I use a URL variable (division = id2) to grab
the needed data,
> which
> works ok. What I want to do is clean up the url abit.
>
> So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end
> all
> I want is clubhouse.php?team=Wings.
>
> I have a separate table, that has the teams entire
information (full team
> name, short team, abbreviation, conference, division,
etc. so I was
> thinking if
> I could somehow do this:
>
> Recordset Team Info is filtered using URL variable team
(short team).
> Based on
> what team equals, it would then insert this variable
into the Divisional
> Standings recordset.
>
> So example: If I type in clubhouse.php?team=Wings, the
Team Info recordset
> would bring up the Pacific division. Then 'Pacific'
would be inserted into
> the
> Divisional Standings recordset to display the Pacific
Division Standings.
>
> Basically I want this
>
> SELECT *
> FROM standings
> WHERE division = <teaminfo.division>
> ORDER BY pts DESC
>
> Could someone help me, thank you.
> -
How to get value from list item
Hi all,
How to get value from list item?
I have a problem with the List Item object
in the Oracle forms.
How can I retrieve the selected item from
a list ?
I didn't find any function like 'list.GET_
SELECTED_ITEM()'...
thanks
BalaHello,
You get the value as for any other Forms item:
:value := :block.list_tem ;Francois -
How to display a bulletted list
Hi All,
I'd like to display a list of agreements to the user as a bulleted list. It's all the things that the user is agreeing to when they submit the application.
What would be ideal is if there is a controller that I can bind to an array, and it will display each item in the array as a single bulleted list item. The list of agreements will vary depending on how the user as filled out the application, and if I do it this way I could simply pass in a collection with all the items they are agreeing to.
But I haven't been able to even figure out how to display a bulleted list. I've found some posts online that address how you might do this if you're working on an editor, but I don't need editable text--I just want to display a bulleted list to users. It seems like this is a basic feature that must be in Flex 4 somewhere, and I don't want to go reinventing the wheel.
Thanks!
-JoshOk, here's what I came up with for a bulleted list that you can bind an ArrayCollection of String items to. Thoughts? Any issues with this implementation?
I looked into a custom ItemRenderer, but this seemed much simpler and it's all I need in my case--a bulleted list.
I'm aware that no escaping of the input strings is being done, but that's actually intentionally--I may wish to pass in strings that include additional markup to make certain words/phrases bold.
The reason for the getter and setter on the dataProvider property is to ensure that anytime a new assignment is made to that property the change listeners are setup.
I'm interested in feedback on how I could do this better or differently, to best take advantage of the facilities Flex offers.
Thanks!
-Josh
<?xml version="1.0" encoding="utf-8"?>
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="100%">
<s:layout>
<s:VerticalLayout/>
</s:layout>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.events.CollectionEvent;
import mx.events.FlexEvent;
private var _dataProvider:ArrayCollection;
public function get dataProvider():ArrayCollection{
if(_dataProvider == null){
dataProvider = new ArrayCollection();
return _dataProvider;
public function set dataProvider(value:ArrayCollection):void{
_dataProvider = value;
this.ensureBulletedListTextIsBuilt(dataProvider);
this.dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,handleItemsChange,false,0,true)
protected function handleItemsChange(event:CollectionEvent):void{
var collection:ArrayCollection = event.target as ArrayCollection;
this.ensureBulletedListTextIsBuilt(collection);
protected function ensureBulletedListTextIsBuilt(collection:ArrayCollection):void{
var html:String = "";
for each(var item:String in collection){
html += "<li>" + item + "</li>";
bulletedListText.htmlText = html;
]]>
</fx:Script>
<mx:Text id="bulletedListText" width="100%" />
</s:Group> -
How to display date and time on jsf page
Hi,
how to display date and time on jsf page
we are using 11.2.0.0 jdeveloper on windows.
thanks
Edited by: user12187801 on 26-Jul-2012 01:42Your question is certainly lacking some information.
If you want a constantly updating date/time - then JavaScript is your best bet, and Google would find you examples like [url http://www.webestools.com/scripts_tutorials-code-source-7-display-date-and-time-in-javascript-real-time-clock-javascript-date-time.html]this
If you meant something else, then it's back to you to explain. -
YouTube - How to add videos from youtube on jsf-adf
YouTube - How to add videos from youtube on jsf-adf.
when i using iframe i can't send data from beans.you can use a <f:verbatim> tag in your page and in it just write the HTML code for embedding a video.
and can i send data from beans class in html components?
i wrote this
<af:iterator id="i2" var="row"
value="#{MyBean.src_items}"
varStatus="st">
<af:showDetail disclosed="false" id="sd1"
styleClass="AFStretchWidth"
disclosedText="#{row}">
<f:verbatim>
<iframe id="ifv" src="#{row}"/>
</f:verbatim>
</af:showDetail>
</af:iterator>
but that were not worked .
Edited by: Vakhushti on May 9, 2011 12:40 PM -
How to filter Choose from list object rows?
Hi everyone,
I'd like to show Choose from list window using SBO 2005 PL07, Actually I want to show the Active Account of G/L Account, I set the CFL object to one column as following:
oCFLCreationParams.ObjectType = SAPbouiCOM.BoLinkedObject.lf_GLAccounts
oCFLCreationParams.UniqueID = "CFL"
oCFL = oCFLs.Add(oCFLCreationParams)
Who knows how to set Choose From list object only show Active Account and do not show Title Account.
Thanks for your help!
KathyHi kathy
I have not tried it on the gl accounts. But basicaly you need to add conditions to filter it. The following is an example that you would of used for business partners but only customers.
Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
Dim oCons As SAPbouiCOM.Conditions
Dim oCon As SAPbouiCOM.Condition
oCFLs = oForm.ChooseFromLists
Dim oCFL As SAPbouiCOM.ChooseFromList
Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
' Adding 2 CFL, one for the button and one for the edit text.
oCFLCreationParams.MultiSelection = False
oCFLCreationParams.ObjectType = "2"
oCFLCreationParams.UniqueID = "CFL1"
oCFL = oCFLs.Add(oCFLCreationParams)
' Adding Conditions to CFL1
oCons = oCFL.GetConditions()
oCon = oCons.Add()
oCon.Alias = "CardType"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = "C"
oCFL.SetConditions(oCons)
oCFLCreationParams.UniqueID = "CFL2"
oCFL = oCFLs.Add(oCFLCreationParams)
The above also compensates for the tab.
Hope it helps -
How to display struts form list values?
HI,
How to display struts form list values?
I am having master and child data.
I can set list values master and child in action class.
How to display the master and child data in struts jsp form.
<logic:iterate id="result" name="listofEmployees" >
<td ><bean:write name="result" property="id"/></td>
<td ><bean:write name="result" property="name"/></td>
<td > <bean:write name="result" property="list"/> </td>
</tr>
</logic:iterate>Here I am displaying master data succesfully.
How to iterate values of <td ><bean:write name="result" property="list"/></td>in action class i added bean class to this list.
how to iterate this list with java bean and display my child data
Thanks
saiStruts 1 or 2?
I guess 2 'cause you're just talking about Action, without mentioning the Form.
In STRUTS 1 it goes like this: forward to the page and use logic:iterate tag. Don't know about STRUTS 2, but It shouldn't be too different.
bye. -
How can i remove from list of usernames, when i l...
I have some iuser names. How can i remove from list of usernames, when i log in,, my other user names, so nobody will see my other user name?
please visit the link below to learn how to delete usernames in the login or sign-in window;
How to Delete Usernames in the Sign-in Window
IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
| skypefordummies.blogspot.com | -
How to display items from database using catagorylookupdroplet
Hi everyone,
i want to know how to display items from database using catagorylookup droplet. if anybody have any code snippet please share it.
Thanks in advance,<dsp:droplet name=".................../CategoryLookup">
<dsp:param name="id" param="itemId"/>
<dsp:oparam name="output">
<dsp:valueof param="element.displayName"/>
<%-- This is show the Child Category --%>
<dsp:droplet name="......................./ForEach">
<dsp:param name="array" param="element.childCategories"/>
<dsp:oparam name="outputStart">Child Categories</dsp:oparam>
<dsp:oparam name="output">
<dsp:a href="">//bydefault it will take its own file's name
<dsp:param name="itemId" param="element.repositoryId"/> <dsp:valueof param="element.displayName"/>
</dsp:a>
</dsp:oparam>
</dsp:droplet>
<%-- This is show the Child Product --%>
<dsp:droplet name=".............../ForEach">
<dsp:param name="array" param="element.childProducts"/>
<dsp:oparam name="outputStart">Child Products</dsp:oparam>
<dsp:oparam name="output">
<dsp:droplet name="................/ProductLookup">
<dsp:param name="id" param="itemId"/>
<dsp:param name="elementName" value="Prod"/>
<dsp:oparam name="output">
<dsp:getvalueof id="img102" param="Prod.smallImage.url" idtype="java.lang.String">
<dsp:img height="250" width="250" src="<%=img102%>"/>
</dsp:getvalueof>
</dsp:oparam>
</dsp:droplet>
<dsp:a href="productView.jsp">
<dsp:param name="itemId" param="element.repositoryId"/>
<dsp:valueof param="element.displayName"/>
</dsp:a>
Hope this helps.
-RMishra -
How to hide options from InfoView's "Schedule Report Page"?
Hi,
We are using Business Objects XI R2 InfoView (Java version) to schedule the reports.
Whle schedling the reports, schedule page displays the following option to the users -
1. When
2. Database Logon
3. Filters
4. Destination
5. Format
6. Print Settings
7. Server Group
8. Events
9. Parameters
And I need to display only three options (When, Format and Parameters) to the user and want to hide the rest of the options from the user.
Please let me know how to acheive this using the InfoView (Java version)?
Thanks,
VickyThanks for the reply.
I do not want the user to enter / change the database logon information and other setting of the report. As I set those info using the CMC.
And writing the our own pages using SDK will take lots of efforts and require java professionals for that.
I only need to hide those options please let me know how to hide them.
Thanks.
Vicky -
How To Display JasperReport From JSP ????
Hi All ;
I am new user for JasperReport ;
Please Help ME :::
How Can I Display JasperReport From JSP ????
Regards;BalusC wrote:
Follow those steps to get a listing of useful links how to learn JasperReport:
1) Go to http://www.google.com, you'll see one input field and one button.
2) Enter "jasperreport tutorial" in that input field.
3) Hit the button next to that input field.and don't forget to pose this question @ http://jasperforge.org as that would be a better place where you can get better replies as people their specialize on the solution offered by jasper soft such as Reporting,BI and blah blah blah.
and for the time being hope the below thread might give you a basic start if you have basic understanding of how Jasper Reporting works.
http://forum.java.sun.com/thread.jspa?threadID=5203324&messageID=9811077
http://forum.java.sun.com/thread.jspa?threadID=5212278
Hope there are no hard issues on this,as it is just to point you to the right direction :)
REGARDS,
RaHuL
Maybe you are looking for
-
How do I deselect PDF as the file of choice when opening a file sent to me in an email?
How can I deselect the PDF choice when opening a file sent to me in an email?
-
Cool features in iWeb NO LONGER work in IE8 - PLEASE ADVISE!
There are so many things broken in IE8 now with my iWeb sites I hardly know where to begin...and I am totally freaked out about this error below. It occurs whenever one trys a photo or blog page on the mobileme servers, and then tries to see it using
-
Selection screen (application toolbar)
Hi, Here I have following scenario: Execute Selection screen 1(1000) -> Calls selection screen2(500) -> Calls and execute smart form Flow is like this : in start-of-selection. initial coding for second screen. Call Selection-screen 500. Then call fun
-
Report Builder chrashes when creating a new formula column
Dear all, whenever I try to create a new formula column in the data model, that is placed outside of a query, my report builder crashes completely. The same happens on my colleagues notebook. If anyone has an idea why this could happen, please let me
-
Can't stop spinning wheel in Word document
Can't stop spinning color wheel in Word for Apple on iMac 10.7 Lion computer. Haven't saved document as I can't get access while spinning wheel is contant. How can I get it to stop? I've already tried the suggested double-click on top bar of document