ID attribute in JSF components

Hello,
I have a question about the id attribute on JSF 2 components.
The document says, that it should be a String. Does that mean
String constant or could it also be a el-expression resulting to a String.
Actually I can use el-expression for id, but am not sure because of the documentation.
Any infos about that would be great!

Well, I stick with documentation. This is a specification. That means other iplementations like Apache myFaces
will also stick to the documentation not for current mojorra implementation or others.
That means, an implementation must not evaluate an el-expression. We ar here talking about evaluationg an
el-expression and the documentation says, that id must not evaluate el-expressions. At least thats what i understand.
So when i use mojorra and use el-expressions fpr id and change to apache implementation of jsf, i might be
not working.
Also i would get same result, if mojorra implementation someday does not evaluate el-expressions.
So it is very important for me and i guess for JSF to clear this point cause it is important for development.
One of the posters above mentioned it, is it possible to set dynamic ids for components or not.
I always read that it is not wanted. Ids will be generated. But you can give a component an constant id.
Like you can easy read in the documentation.
You are interpreting the documentation. But JSF is a specification and should not let room for interpretations.
If el-expressions are allowed it should be it should be documented.
By the way, I think in apache implementation of JSF, el-expressions for id is not allowed.
See here:
http://www.mail-archive.com/[email protected]/msg20800.html
So this implementation does exactly what documentation is saying so for me, mojorra implementation has here a bug!
Edited by: 859302 on 18.05.2011 05:23

Similar Messages

  • About passing the values attributes of UI components

    Hi,
    I have a question related to passing the values attributes of UI components from JSF to a baking bean.
    Assume I have inputText and I need to pass its value to the data model via an application module. So, this will be done as follows:
    <h:inputText value= "#{bindings.MyValue.inputValue}";
    I need also to pass this value to a managed bean. Therefore I used EL class prepared by Steve Muench available at:
    http://radio.weblogs.com/0118231/stories/2006/12/18/sourceForMyFavoriteElHelperClass.html
    So, in the JSF page will be as follows:
    <h:inputText value="#{myBean.myValue}";
    In managed bean:
    String myValue;
    public String get MyValue () {
    return EL.getAsString("#{bindings.MyValue.inputValue }");
    public void set MyValue t(String value) {
    EL.set("#{bindings.MyValue.inputValue }",value);
    Then when I want to use myVlaue in the managed bean just I use this line:
    myVlaue = get MyValue ();
    I tried to use the same steps to pass the value of selectOneMenu but I always get errors such as cannot be cast to java.lang.String.
    But I achived this by binding the value of selectOneMenu to a HtmlSelectOneMenu attribute in the managed bean as follows:
    In JSF page:
    <h:selectOneMenu value="#{bindings.TaskView1TaskName.inputValue}"
    binding= "#{projectBean.selectOneChoice1}">
    In managed bean:
    private HtmlSelectOneMenu selectOneChoice1;
    public void setSelectOneChoice1(HtmlSelectOneMenu selectOneChoice1) {
    this.selectOneChoice1 = selectOneChoice1;
    public HtmlSelectOneMenu getSelectOneChoice1() {
    return selectOneChoice1;
    Then I can used the selectOneChoice1 value as follows :
    somenu= getSelectOneChoice1();
    somenuValue = (Integer)somenu.getValue();
    task= taskName(somenuValue);
    this works with me. Now what is the different between this way and using EL class
    And how can I use EL class to pass the value of selectOneMenu to the managed bean
    Thank you
    Waheed

    they are look like:
    <list id="TaskView1TaskName" IterBinding="TaskView1Iterator"
    ListOperMode="0" StaticList="true">
    <AttrNames>
    <Item Value="TaskName"/>
    </AttrNames>
    <ValueList>
    <Item Value="value1"/>
    <Item Value="value2"/>
    <Item Value="value3"/>
    </ValueList>
    </list>
    and TaskName is String

  • JSP 2.0 tag files for rendering JSF components

    Over the weekend I read up on new JSP 2.0 features (dunno why I waited this long??) ... I really liked the tag file feature ...
    I was wondering if it were a good idea to use these tag files as renderers for JSF components - ok, this ties us to a JSP only solution but how many in here would be using a non-JSP solution anyway?
    I was thinking along the foll. lines:
    <myComponent id="myComponent1" attr1="value1" attr2=value2">
        <myComponentRenderer var="myComponent1" />
    </myComponent>
    myComponentRenderer can be implemented as a tag file in myComponentRenderer.tag ... The myComponent tag delegates the business logic processing to its associated UIComponent and then sets this component as a pageContext attribute with the id "myComponent1" ... myComponentRenderer in turn gets a reference to this UIComponent and renders it ...
    Again, if one wants a different way of rendering, make another tag file myComponentRenderer2.tag or change myComponentRenderer.tag itself ...
    Indeed, this may not work for components with complicated rendering logic but I believe that's only the 20% case ...
    Comments?
    P.S.:
    I've picked this up from http://forums.java.sun.com/thread.jsp?forum=427&thread=381052&tstart=0&trange=15
    This also compliments another topic: http://forums.java.sun.com/thread.jsp?forum=427&thread=413515&tstart=0&trange=15

    You are right in saying that decoding has nothing to
    do with rendering per se.I will go even further than Erik did, and dispute this statement.
    Consider that you are generating an <input> tag for a text field. Among other things, you have to generate a "name" attribute. Who decides what to put there? The renderer that actually created the markup.
    The "renderer" really does
    two completely different things. But both should
    nevertheless be separate from the component
    implementation itself. You could still have the
    renderer doing the decoding part, which arguably would
    rarely change, and somehow delegate the actual
    rendering to an implementation in a tag file.Whether you implement decoding in a separate class or inside the component, what request parameter name do you look for? It is not reasonable to assume that ALL possible renderers will choose the same parameter name ... hence, decoding and encoding are inextricably linked (the code doing the decoding has to know what kind of markup the code doing the encoding actually created). In JavaServer Faces, the current APIs create that linkage by requiring that the decode and encode be done by the same class (either the component, if you are not delegating, or the renderer if you are).
    Craig

  • NotSerializable exception from JSF components

    Hi All
    I have a JSF application deployed in WAS in a clustered environment,
    The problem is , in clustered environment the session manager tries to write the session object , so that if one machine goes down the other can pick it up, now i get an Exception that the JSF components are not serializable. i dont know why is this happening.
    below is the Stack trace
    6/7/07 11:07:10:721 EDT] 000000ee SessionContex E Exception is: java.io.NotSerializableException: javax.faces.component.html.HtmlSelectManyListbox
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code))
    at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java(Inlined Compiled Code))
    at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java(Compiled Code))
    at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java(Compiled Code))
    at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java(Compiled Code))
    at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java(Compiled Code))
    at com.ibm.ws.webcontainer.httpsession.BackedHashtableMR.handlePropertyHits(BackedHashtableMR.java(Compiled Code))
    at com.ibm.ws.webcontainer.httpsession.BackedHashtable.persistSession(BackedHashtable.java:2307)
    at com.ibm.ws.webcontainer.httpsession.BackedHashtable.ejbStore(BackedHashtable.java:2501)
    at com.ibm.ws.webcontainer.httpsession.BackedHashtable.storeSession(BackedHashtable.java:2143)
    at com.ibm.ws.webcontainer.httpsession.BackedHashtable.put(BackedHashtable.java:2776)
    at com.ibm.ws.webcontainer.httpsession.DatabaseSessionContext.sync(DatabaseSessionContext.java:164)
    at com.ibm.ws.webcontainer.httpsession.SessionData.releaseSession(SessionData.java:289)
    at com.ibm.ws.webcontainer.httpsession.SessionContext.sessionPostInvoke(SessionContext.java:2860)
    at com.ibm.ws.webcontainer.srt.SRTRequestContext.finish(SRTRequestContext.java(Compiled Code))
    at com.ibm.ws.webcontainer.srt.SRTServletRequest.finish(SRTServletRequest.java:1359)
    at com.ibm.ws.webcontainer.srt.SRTConnectionContext.finishConnection(SRTConnectionContext.java:75)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:2041)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:89)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Any help is appreciated a lot...
    Thanks in advance

    I'm guessing that you have a session level backing bean that has a property that is bound to an HtmlSelectManyListbox instance via the binding attribute.
    You can address this in the following ways: 1) make the bean request scope; 2) make the property transient in the bean or 3) remove the binding. My first instinct would be 1), while 2) sounds quick and easy I suspect it will cause problems. 3) obviously requires some rewriting.

  • [svn] 4143: Fixed problem with metadata in SelectionFormatTextStyles. as so that named colors work for selectionColor, unfocusedSelectionColor, and inactiveSelectionColor attributes on Gumbo components.

    Revision: 4143
    Author: [email protected]
    Date: 2008-11-19 14:53:40 -0800 (Wed, 19 Nov 2008)
    Log Message:
    Fixed problem with metadata in SelectionFormatTextStyles.as so that named colors work for selectionColor, unfocusedSelectionColor, and inactiveSelectionColor attributes on Gumbo components.
    Thanks, Glenn!
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-18070
    Reviewer: Glenn
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18070
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/SelectionFormatTextStyles .as
    flex/sdk/trunk/frameworks/projects/wireframe/bundles.properties

    Revision: 4143
    Author: [email protected]
    Date: 2008-11-19 14:53:40 -0800 (Wed, 19 Nov 2008)
    Log Message:
    Fixed problem with metadata in SelectionFormatTextStyles.as so that named colors work for selectionColor, unfocusedSelectionColor, and inactiveSelectionColor attributes on Gumbo components.
    Thanks, Glenn!
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-18070
    Reviewer: Glenn
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18070
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/styles/metadata/SelectionFormatTextStyles .as
    flex/sdk/trunk/frameworks/projects/wireframe/bundles.properties

  • Can I write Design-time for JSP custom tag(not JSF components)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
    Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
    How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
    the Exception is shown as follow:
    java.lang.ClassCastException
         at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
    [catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
         at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
         at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
         at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
         at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
         at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
         at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
         at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
         at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
         at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
         at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
         at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
         at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
         at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
         at com.sun.rave.text.Document$5.run(Document.java:631)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    I have some old JSP custom tags(not JSF components), and I want to use them in the IDE through the toolbox.
    Now I have already written the BeanInfos for these tags, and they can be drag from the toolbox; but it will throw a Exception when render the tags, and the properties in the Property Editor are not which I describe in the BeanInfos.
    How can I write Design-time for these tags? or whether it is possible to write the Design-time for these tags?
    the Exception is shown as follow:
    java.lang.ClassCastException
         at com.sun.rave.insync.faces.FacesPageUnit.renderNode(FacesPageUnit.java:1347)
    [catch] at com.sun.rave.insync.faces.FacesPageUnit.renderBean(FacesPageUnit.java:1086)
         at com.sun.rave.insync.faces.FacesPageUnit.getFacesRenderTree(FacesPageUnit.java:993)
         at com.sun.rave.css2.FacesSupport.getFacesHtml(FacesSupport.java:152)
         at com.sun.rave.css2.CssContainerBox.addNode(CssContainerBox.java:373)
         at com.sun.rave.css2.CssContainerBox.createChildren(CssContainerBox.java:354)
         at com.sun.rave.css2.DocumentBox.createChildren(DocumentBox.java:90)
         at com.sun.rave.css2.DocumentBox.relayout(DocumentBox.java:160)
         at com.sun.rave.css2.PageBox.layout(PageBox.java:392)
         at com.sun.rave.css2.PageBox.relayout(PageBox.java:454)
         at com.sun.rave.css2.DocumentBox.redoLayout(DocumentBox.java:313)
         at com.sun.rave.css2.PageBox.redoLayout(PageBox.java:460)
         at com.sun.rave.css2.DocumentBox.changed(DocumentBox.java:634)
         at com.sun.rave.designer.DesignerPaneUI$UpdateHandler.changedUpdate(DesignerPaneUI.java:1012)
         at com.sun.rave.text.Document.fireChangedUpdate(Document.java:851)
         at com.sun.rave.text.Document$5.run(Document.java:631)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • How to standardize the look & feel of different vendor JSF components?

    Hi,
    There are various JSF components created by different parties. For example, Tomahawk from Myfaces, ADF faces from Oracle, SUN components that provided in Java Studio creator. They look different.
    Can we standard the look and feel for these various components when we use them in a same project? so that it wouldn't look that different when the page is displayed to the end user.
    Please advise.
    Thank you.

    Hi,
    Can you be more specific how to achieve that using css? You mean the look and fee that we see is not an image?
    Have you seen how Oracle ADF face look & feel is like?
    How to change its look to what we have SUN offered in its Java studio creator 2?
    Please advise.
    Thank you.

  • Problem Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Prev

    I'm having a problem on Adding Custom JSF Components to Oracle JDeveloper 10g (10.1.3) Preview (http://www.oracle.com/technology/products/jdev/101/collateral/101/adffaces/howto_customcomponents.html)
    The step 1 of 5 isn't visible for me and I don't see the "Install from local file" option to select the adf-faces-bundle.zip from my file system. The OTN check for updates don't prove the ADF Faces...
    What may I do?

    And...
    If "Check for Updates Wizard" is not launched, you can try to set LANG.
    see: 10.1.3 Can't not launch Update Wizard in Japanese environment.
    10.1.3 Can't not launch Update Wizard in Japanese environment.
    Thanks.
    Takuya Ono

  • Is JSF components changed in RAD 7.0?

    Hi,
    I see that some of the components like h:commandLink are missing in the RAD 7.0. Is that so?
    Also is there any documents which shows the usage of all the JSF components?
    Thanks,
    Elango

    Depends on the JSF implementation used in RAD. Consult the RAD manfacturer and its documentation.

  • JSF Components in HTML Components

    Hi,
    I'm trying to use JSF components as children of HTML components but the UI isn't being rendered properly.
    Basically, here's my scenario:
    <ul>
         <li>
              <h:commandLink id="newQuoteLink" styleClass="topNav" action="#{pc_HeaderFragment.newQuote}">
                   <h:outputText value="Add New Quote"/>                              
              </h:commandLink>               
         </li>
    </ul>All I want rendered is a text link ("Add New Quote") that will execute a backing bean method
    When I run the server, the <a> tag is generated before my original <ul> list.
    How come it can't simply return to the outputtext to the location that I called it?
    Am I missing something here?
    Thanks in advance!
    Matt

    Looks like you're using JSF 1.1. At this version of the spec, there were issues with content interweaving that necessitated the need
    of f:verbatim tags to wrap template text (i.e. non jsf-markup).
    This isn't necessary for 1.2, but if you must stick with 1.1, your markup should look something like:
    <f:verbatim>
    <ul>
        <li>
    </f:verbatim>
    <h:commandLink id="newQuoteLink" styleClass="topNav" action="#{pc_HeaderFragment.newQuote}">
        <h:outputText value="Add New Quote"/>                              
    </h:commandLink>            
    <f:verbatim>
         </li>
    </ul>
    </f:verbatim>Given the ugliness if this, if you have to use JSP for your views, migrate to JSF 1.2.
    If you must stay with 1.1, look into Facelets [1], Clay [2], or JSFTemplating [3]
    as a substitute for JSP as you won't have these issues.
    [1] https://facelets.dev.java.net
    [2] http://shale.apache.org
    [3] https://jsftemplating.dev.java.net

  • Binding JSF components and servlets to eachother

    Hi, I have some JSF components in my jsp page like this one:
    <h:form rendered="true" id="myForm">
                   <h:selectOneListbox>
                        <f:selectItem itemdisabled="false" itemlabel="item1" itemvalue="1"></f:selectItem>
                        <f:selectItem itemdisabled="false" itemlabel="item2" itemvalue="2"></f:selectItem>
                        <f:selectItem itemdisabled="false" itemlabel="item3" itemvalue="3"></f:selectItem>
                   </h:selectOneListbox>
              </h:form>and I have this servlet:
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class myServlet extends HttpServlet {
         public myServlet() {
              super();
         public void destroy() {
              super.destroy(); // Just puts "destroy" string in log
         public void doGet(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
         public void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
         public void init() throws ServletException {
    }Could you please help me:
    *1.* How to populate my listbox using my servlet?
    and also
    *2.* How to get the selected item in my servlet every time that user change the selected option of list box?

    Please don't crosspost topics over all places. Stick to one topic.
    Continue here: [http://forum.java.sun.com/thread.jspa?threadID=5299291]

  • Af:forEach statement causing other jsf components to be repeated

    Hi,
    I am experiencing the same problems as recorded in the following log:
    JSF af:forEach is looping also tags outside of af:forEach
    I have replaced my af:forEach tag with af:iterator which works with the number of items coming back changing dynamically (and therefore does not cause the display issues), however I can't display the iterator results in the same way as for the forEach loop.
    I am trying to get the iterator output displayed in a 3 by 3 grid, but the panel grid does not seem to recognise the iterator output as separate cells but just one continual line.
    Does anyone have any ideas as to how I can achieve the above?
    Thanks,
    Dave

    Hi Frank,
    Thanks so much for replying.
    The code that is causing me problems is as follows:
    <h:panelGrid width="335" columns="3">
    <af:forEach var="row" items="#{bindings.WsWanalItemsView1.rangeSet}">
    <af:panelGroup layout="vertical">
    <af:commandLink action="#{backing_catalogue.selectProduct_action}">
    <af:objectImage
    source="http://#{res[\'filehandling.ip_address\']}/FileHandling/imageScale
    ?entity=STY&type=THUMB&image=#{row.Stycode}&pic=thumb&X=100&Y=100
    &subtype=NONE&subentity=NONE"
    height="137" width="104"/>
    <af:setActionListener from="#{row.Stycode}"
    to="#{processScope.ParamStyCode}"/>
    <af:setActionListener from='#{\"NONE\"}'
    to="#{processScope.ParamSubEntityType}"/>
    <af:setActionListener from='#{\"NONE\"}'
    to="#{processScope.ParamSubEntity}"/>
    </af:commandLink>
    <af:panelHorizontal>
    <af:commandLink text="#{row.Thumbcomment}"
    inlineStyle="font-size:9.0pt;"
    action="#{backing_catalogue.selectProduct_action}">
    <af:setActionListener from="#{row.Stycode}"
    to="#{processScope.ParamStyCode}"/>
    <af:setActionListener from='#{\"NONE\"}'
    to="#{processScope.ParamSubEntityType}"/>
    <af:setActionListener from='#{\"NONE\"}'
    to="#{processScope.ParamSubEntity}"/>
    </af:commandLink>
    <af:objectSpacer width="1" height="16"/>
    </af:panelHorizontal>
    </af:panelGroup>
    </af:forEach>
    </h:panelGrid>
    The forEach statement is bound to a table that brings back product Id's (9 at a time), which are then put into the source url for an object image to display the relevant image. There is also a caption hyperlink displayed underneath the image.
    The forEach statement is placed in a panelGrid so that the images are displayed as a 3x3 grid.
    The image itself is a link that when selected runs code that executes a query, displaying information related to the selected image.
    This all works really well, however if I select an image and display its details, then change another parameter on the page that means different product ids are returned, then select to see details for another image then multiple JSF components on the screen (they all seem to come after the forEach statement) are displayed twice.
    After much digging I found the following statements:
    "changes from one request to the next. It may be possible to work around this in some scenarios by manually deleting all the children of the parent component (e.g., af:selectOneListbox in the code sample below), but this has not yet been tested. "
    and
    "Unlike the af:forEach tag, the af:iterator tag implements an iteration that works with a JSF DataModel or CollectionModel, and can be bound to EL expressions that use EL variables created by components."
    Therefore I have tried to use an af:iterator instead. By changing my af:forEach for an af:iterator I no longer get the duplication issues mentioned above, but I'm having trouble displaying the output of the iterator in a panel grid. I.e. 3x3 images each with a label underneath. It's as if it treats the output of the iterator as a single component.
    This is causing me serious problems so your help on this issue would be greatly appreciated.
    Thanks,
    Dave

  • JSF components within jsf components programatic

    I am using the java sun pane_tabbed component on a jsf page and I want another jsf page to be the tab body. I tried to include another jsp page but that doesn't work. The include in the example something like
    <h:panelGroup>
    <h:outputText value="here is some info to display on tab "/>
    </h:panelGroup>
    It seems I just can't say
    <h:panelGroup>
    here is some info to display on tab
    </h:panelGroup>
    This remind me of servlet days where everything was out.println and why we came up with jsp in the first place and I figure there's got to be a better way.
    So what's the way? I understand I could make the inner html another jsf tag but thats overkill for what I am trying to do. Also I need the inner html to be treated itself like an entirely different page (like a component) so just to put outputText around everything just wouldn't work.
    So what's the way

    In addition.... I understand that part of the JSF concept is that the client can be many different devices and depending on which client different widgets get displayed. A way that that could still be true is that I register a components in faces-config.xml by specifying that it is a jsp page (with jsf components). Then a jsf tree is built with the widgets I have included on the jsp page. Then I specify that the renderer is a jsp page renderer which would mean for my application it would display the jsf page like I wanted with the components where I wanted them. Then if I want to render on for instance a swing application I then need to program a renderer which says how to display these widgets there.
    I'm pretty new to JSF but I'm hoping that I am on the right track here. There should be some way for non java developers to help with the creation of components I would think.

  • Oracle ADF JSF components - do I need license

    Are Oracle ADF JSF components free? I know that Oracle contributed source to Apache. Does it mean I can use ADF or do I need to pay for it? Thanks
    Tomas

    ADF Faces now known as Trinidad is open source library.

  • Create reusable jsf components as jsf components

    Hi
    I'm new to JSF (and J2EE in general, I used to use WebObjects a decade ago). I'm using JSF 1.2
    so, I'd like to know if it is possible to create reusable jsf components designing some jsp page ?
    I'm particularly interressed in reusable components that, when used, are not leafs in the html trees (but so support that the reusing page provide some piece of html to be put "inside")
    Is there any way to do that ? (WebObjects, a decade or so ago, allowed to do that...)
    Thanks for your help
    cd

    Use Facelets instead of JSP. Then you can make use of ui:composition for this.
    By the way, J2EE is dead, it's called Java EE now. This keyword must give you more r|decent Google results.

Maybe you are looking for

  • How many iphone devices can be on one itunes account

    I already have an iphone and ipod touch on my one laptop and have the one itunes on the laptop. I am wondering if I can put another iphone onto the laptop and sync it to the itunes without whipping anything off the computer or the iphone and ipod tou

  • Backing up with Time Machine via "Personal File Sharing" and Airport Disk

    I've been using Time Machine on my own Mac at home and want to use it to backup other Macs in my house as well. Right now I'm just backing up over FireWire, but plugging my disk into each of the other Macs one at a time doesn't seem to make much sens

  • Qosmio F30-127: How to use SD card - no SD card drive icon

    Could some one tell how to use SD in F30-127. I was trying to get picture from my SD card. I inserted into slot but no Drive ICON was displayed

  • Message: "Confirm your in-app purchase" locks screen on iPod

    Pop up communication window with message "Confirm your in-app purchase" appears at start up. Option is to buy or cancel.  Either one results in another com window with message "You have already purchased this but it hasn't been downloaded" and return

  • Re:upgrading from 10.4.6 questions 7.2 to 8

    HI..i am a logic pro user 7.2 on a G5 with 2.5 memory..os 10.4.6....i want to upgrade to lp8...first question will 10.4.6 work with lp8, second. will i always need my dongle in when using lp8?..3.the 3rd party plugins i got..real guyitar, korg, etc..