EL to render a panelgrid

I have two input boxes for getting AreaCode (3 digit) and number (7 digit). I have error messages placed in a panel grid underneath these input boxes. Follolwing is the code that i have.
<h:inputText id="aCode" value="#{student.stu.int_phone_AreaCode}"
maxlength="3" style="width:2em;" required= "true"
requiredMessage="Area Code Required"
validatorMessage="Invalid Area Code"
converterMessage="Invalid code">
<f:validateLength minimum="3"/>
</h:inputText>
<h:inputText id="pNumber" value="#{student.stu.int_phone_Number}"
maxlength="7" style="width: 4em;" required= "true"
requiredMessage="Phone Number Required"
validatorMessage="Invalid Phone Number"
converterMessage="Invalid Phone Number">
<f:validateLength minimum="7"/>
</h:inputText>
<h:panelGrid columns="1" rendered="EL?">
<h:message for="aCode" style="color:red" id="msg_areaCode"></h:message>
<h:message for="pNumber" style="color:red" id="msg_pNumber"></h:message>
</h:panelGrid>The problem with panel grid is even when there are no error messages it creates some padding and the input boxes move a little bit top. I need to put an expression language in the rendered attribute of the panel grid that if there is an error message then only render the panelGrid.
Thanks in advance.
Regards
Sandeep

You can try if this works.
<h:panelGrid columns="1" rendered="#{yourBackingBean.gridRendered}">
<h:message for="aCode" style="color:red" id="msg_areaCode"></h:message>
<h:message for="pNumber" style="color:red" id="msg_pNumber"></h:message>
</h:panelGrid>and in the backing bean
public boolean isGridRendered() {
        FacesContext ctx = FacesContext.getCurrentInstance();
        Iterator i = ctx.getMessages();
        if (i.hasNext()) {
            return true;
        else {
            return false;
}

Similar Messages

  • Problem when render a panelGrid

    When I try to do an panelGrid with a facet as a title it just get striped out...
    The code looks like this
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <h:form id="login">
         <h:panelGrid columns="2" styleClass="loginStyle">
              <f:facet name="login">
                   <h:outputText value="Login"/>
              </f:facet>
              <h:outputText value="Username" />
              <h:inputText id="username" value="" size="10"/>
              <h:outputText value="Password" />
              <h:inputSecret id="password" value="" size="10"/>
              <h:outputLink value="register.jsp">
                   <h:outputText value="Register"/>
              </h:outputLink>
              <h:commandButton value="Login" action="login"/>
         </h:panelGrid>
    </h:form>and it's called from another file (index.jsp, <jsp:include flush="true" page="login.jsp" />)
    thx

    The name of the facet has predefined possible values.
    Replace name="login" with name="header"
    P.S. The other possible value is "footer"
    Sergey : jsfTutorials.net

  • Show /Hide panelGrid

    Hi i am newbie for JSF,
    I am trying to display panelGrid depending on choice selected. Can I use javaScript for displaying panelGrid ??
    <h:selectOneMenu id="list" onchange="selectChoice()" value="#{myBean.SelectType}">
    <f:selectItem itemValue="Ford"/>
    <f:selectItem itemValue="Audi" />
    <f:selectItem itemValue="Bmw" />
    <f:selectItem itemValue="Ferari"/>
    </h:selectOneMenu>
    <h:panelGrid columns="1" rendered="false" id="style1">               <h:outputLabel><strong>My Car</strong></h:outputLabel> </h:panelGrid>
    <h:panelGrid columns="1" rendered="false" id="style2">               <h:outputLabel><strong>My NewCar</strong></h:outputLabel> </h:panelGrid>
    <h:panelGrid columns="1" rendered="false" id="style3">               <h:outputLabel><strong>My Brand New Car</strong></h:outputLabel> </h:panelGrid>I want to display panelGrid dependinding on choice selected
    How can I do that??

    Every JSF HTML component and a few facets (e.g. f:verbatim) supports the 'rendered' attribute. It accepts a boolean expression and if it evaluates to 'true', then the component will be rendered in the response, otherwise not.
    Here are some basic examples:<h:someComponent rendered="#{myBean.booleanValue}" />
    <h:someComponent rendered="#{!myBean.booleanValue}" />
    <h:someComponent rendered="#{myBean.intValue > 10}" />
    <h:someComponent rendered="#{myBean.objectValue == null}" />
    <h:someComponent rendered="#{myBean.stringValue != 'someValue'}" />
    <h:someComponent rendered="#{!empty myBean.collectionValue}" />
    <h:someComponent rendered="#{!myBean.booleanValue && myBean.intValue != 0}" />
    <h:someComponent rendered="#{myBean.stringValue == 'oneValue' || myBean.stringValue == 'anotherValue'}" />In your case, do something like:
    <h:panelGrid rendered="#{myBean.selectType == 'Ford'}">This will render the panelGrid only if the selected item equals to "Ford".

  • How to render h:outputText of fixed length inside h:panelGrid

    Hi,
    I am using h:outputText inside h:panelGrid.
    But while renderring output text, whatever is the text length , the width of the h:outPutText should be same.
    I am getting the results diplayed as below if length varies.
    xxxxx     126612 AAAAAAA
    yyyyy     214 BBBBBB
    zz 1234 CCCC
    Pls help me...

    sorry it's not working...
    Here is my code snippet...
    <h:dataTable id="list1" var="row" value="#{loanAccountDTOList}"
    columnClasses="table-column-left2" width="100%" rendered="#{!empty loanAccountDTOList}" >
         <h:column>
    <h:panelGrid columns="7" columnClasses="bs1,bs2,bs3,bs4,bs5,bs6,bs7" width="100%">
              <h:outputText value="#{row.sortCode}"/>
              <h:outputText value="#{row.accountNumber}" style="bs11" />
              <h:outputText value="CAP"/>
              <h:outputText value="13005678900111D"/>
              <h:outputText value="111111111111300"/>
              <h:outputText value="51,1111111500Normal"/>
              <h:outputText value="30062007"/>
         </h:panelGrid>
         <h:panelGrid columns="1" width="90%">
              <h:outputText value="ForeCastBalance : 10,000D"/>
         </h:panelGrid>                    
         </h:column>
    </h:dataTable>
    here bs1, bs2 are the styles applied for the output text.If i change the widths in the respective style, it's not reflecting...What might be the mistake....
    I am facing lot of problems with formatting ..Pls help me out..
    This is how i am able to display data....
    300006 12345678 CLAIRS .....
    300008 123 CAP.....
    300009 123456789999 CAP...
    I need to format it properly asbelow.
    300006 12345678 CLAIRS
    300008 123 CAP
    300009 123456789999 CAP

  • PanelGrid with binding attribute not rendering when event on page fires

    I am having a similar issue with my components not being rendered from a dynamic binding attribute as described by this post:http://forum.java.sun.com/thread.jspa?threadID=671672 but for different reason. I have combed the forum and other sources for a week now, tried numerous variations of this based on suggestions I've read for rendering dynamic components and am unable to find the problem. I would appreciate guidance as I don't know what else to do and I imagine there is something basic about the JSF flow layout or component classes I am not doing correctly.
    From a high level, I have a page with two panel groups. The first contains a list of command links (like a menu) that have an actionlistener that populates a list of QueryVariable objects called filterCriteria in the backing bean based on the selection made and then calls a function to update components in the second panel. The second panelGroup contains a panelGrid with a binding attribute that constructs a dynamic set of input fields based on the content of the filterCriteria list. When I first naviagate to this page from another page, the fields are rendered properly. However, if I then select a commandLink from the menu, the panelGrid disappears and is not rendered.
    I've stepped through the code in a debugger and my actionlistener is called when I select a command link. However, the binding attribute method is not called at this time, so I added a direct call to it from the action listener. I know the actionlistener is working because I've verified it in the debugger and if I navigate away and come back to the page, then the binding method is called and the new selection is reflected in a rendered panelGrid. Why is it not rendering though when I first select the commandLink and the page is updated. Also, fyi, there is an action method for the commandlinks but it returns null;
    FWIW, I'm using MyFaces and Facelets in my application.
    Below is my code. This is inside a managed session bean:
    JSF Snippet:
    <h:panelGrid id="inputVarsTable" columns="3" binding="#{query.table}"/>
         public HtmlPanelGrid getTable() {
              if(table == null)
                   table = new HtmlPanelGrid();
              return constructSearchInputTable();               
         public void setTable(HtmlPanelGrid table) {
              this.table = table;
      // Updates table component to reflect filterCriteria
         public HtmlPanelGrid constructSearchInputTable()
              HtmlOutputLabel outLabel;
              HtmlOutputText outText;
              HtmlInputText  inText;
              HtmlMessage message;
              List<UIComponent> children;
              ValueBinding vb;
              FacesContext facesContext = FacesContext.getCurrentInstance();
              UIViewRoot uIViewRoot = facesContext.getViewRoot();
            Application application = facesContext.getApplication();
              children = table.getChildren();
        children.clear();
              try {
                   for (int i = 0; i < getFilterCriteria().size(); i++) {
                        QueryVariable var = getFilterCriteria().get(i);
                        String id = "var" + i;
                        //<h:outputLabel for="#{var.name}" styleClass="label">
                        outLabel = new HtmlOutputLabel();               
                        outLabel.setFor(id);
                        outLabel.setStyleClass("label");
                        //  <h:outputText value="#{var.name}" />
                        outText = new HtmlOutputText();
                        outText.setValue(var.getName());
                        outText.setParent(outLabel);
                        outLabel.getChildren().add(outText);
                        outLabel.setParent(table);
                        children.add(outLabel);
                        //<h:inputText id="#{var.name}" value="#{var.value}" required="true" />
                        inText = new HtmlInputText();
                        inText.setId(id);
                        String bind = "#{query.filterValues['" + var.getName() + "']}";
                        inText.setValueBinding("value", application.createValueBinding(bind));
                        if(var.getDefaultValue() == null)
                             inText.setRequired(true);
                        inText.setParent(table);
                        children.add(inText);
                        //<h:message for="#{var.name}" styleClass="errorText"/>
                        message = new HtmlMessage();
                        message.setFor(id);
                        message.setStyleClass("errorText");
                        message.setParent(table);
                        children.add(message);     
              } catch (Exception e) {
                   log.error(e);
              return table;
      // Command Link Menu ActionListener
         public void structuredQuerySelection(ActionEvent e) {
              queryType = QueryType.StructuredQuery;
              UICommand cmd = (UICommand) e.getSource();
              filterSelection = (String) cmd.getValue();
              Map<String, SearchRequestCtx> queries = pdp.getGenericMetadata().savedQueries;
              SearchRequestCtx ctx = queries.get(filterSelection);
              filterCriteria = new ArrayList<QueryVariable>();
              filterCriteria.addAll(ctx.getVariables());
              constructSearchInputTable();
         // Command Link Menu Action
         public String selectStructuredQuery()
              return null;
         }BTW, this is my first post and I don't really know how that Duke Dollar thing works but I'm happy to offer some to anyone that can solve this issue for me.
    Thanks,
    Ken

    Glad to hear I am not the only one struggling with this type of issue.
    I tried your suggestion but it caused a NoSuchElementException when the page tried to render. Stepping through the code, the init function is always called after my panelGrid is constructed. I even commented out the logic to clear the children and confirmed that in the constructed page, the outputText component that binds to init is the first element on the page - right after the opening body tag. Maybe, JSF doesn't necessarily construct the page in top to bottom order? Also, the exception makes me think that this gets called too late in the lifecycle to work. Were you able to get this to work?
    java.util.NoSuchElementException
         at java.util.AbstractList$Itr.next(AbstractList.java:427)
         at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:515)
         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:445)
         at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:595)Ken

  • PanelGrid component binding problem

    I have a panelGrid that is bound to an object in my backing bean. When the page loads the panelGrid is empty. When the user clicks on a button it is suppose to populate the panelGrid. But the panelGrid doesn't render after clicking the button. Here is my code:
    jsp
    <div style="margin-left:30px;">
                 <div>
                     <ice:outputText value="Click 'Run Diagnostics' to begin tests." />
                 </div>
                 <div style="margin-left:20px;padding-bottom:40px;">
                     <ice:commandButton value="Run Diagnostics"
                                         action="#{SystemDiagnostics.runDiagnostics_clicked}"/>
                     <ice:outputText value="#{SystemDiagnostics.resultsText}"/>
                 </div>
                 <div>
                     <ice:outputText style="font-decoration:underline;"
                                     value="Diagnostics" />
                 </div>
                 <div style="margin-left:20px;">
                     <ice:panelGrid binding="#{SystemDiagnostics.diagnosticsPanelGrid}" >
                          <!--Dynamic values go here -->
                     </ice:panelGrid>
                 </div>
             </div> bean
    public void runDiagnostics_clicked() {
             PdlgCommandCollectionResult result = Pdlg.instanceOf().runDiagnostics();
                 if (result.isSuccessful()) {
                     HtmlPanelGrid grid = new HtmlPanelGrid();
                     grid.setColumns(2);
                     HtmlOutputText output = new HtmlOutputText();
                     output.setValue("Boot Disk");
                     grid.getChildren().add(output);
                     output = new HtmlOutputText();
                     output.setValue("Success");
                     grid.getChildren().add(output);
                     setDiagnosticsPanelGrid(grid);
         public HtmlPanelGrid getDiagnosticsPanelGrid() {
             return m_diagnosticsPanelGrid;
         public void setDiagnosticsPanelGrid(HtmlPanelGrid value) {
             m_diagnosticsPanelGrid = value;
         }Does anyone know why this is not rendering?
    Thanks,
    David

    Well, I discovered how to resolve this.
    The component that you bind to can not be recreated in the backing bean. Only the components within the bound component can be recreated. So what i did was added a panelGroup and binded that to my backing bean and then was able to recreate the panelGrid that was a child of the panelGroup.

  • Using f:facet name="header" in h:panelGrid

    I'm battling with it for a week now...
    I'm trying to create a table with 3 columns and to have header for each column.
    This, don't display headers at all :
            <h:panelGrid styleClass="Context" columns="3">
                <h:panelGroup>
                    <f:facet name="header">
                        <h:outputText value="#{prompts.Label_PROPERTYTYPE_ID}"/>
                    </f:facet>
                    <h:outputText value="null"/>
                </h:panelGroup>
                <h:panelGroup>
                    <f:facet name="header">
                        <h:outputText value="#{prompts.Label_PROPERTYTYPE_DESCRIPTION}"/>
                    </f:facet>
                    <h:inputText value="#{PropertyType.typeDescription}" required="true"/>
                </h:panelGroup>
                <h:panelGroup>
                    <f:facet name="header">
                        <h:outputText value=""/>
                    </f:facet>
                    <h:commandButton value="#{prompts.action_CREATE}"  action="#{PropertyType.Create}"/>
                </h:panelGroup>
            </h:panelGrid>While this compress all headers into one <th>
            <h:panelGrid styleClass="Context" columns="3">
                <f:facet name="header">
                    <h:panelGroup>
                        <h:outputText value="#{prompts.Label_PROPERTYTYPE_ID}"/>
                        <h:outputText value="#{prompts.Label_PROPERTYTYPE_DESCRIPTION}"/>
                        <h:outputText value=""/>
                    </h:panelGroup>
                </f:facet>
                <h:outputText value="null"/>
                <h:inputText value="#{PropertyType.typeDescription}" required="true"/>
                <h:commandButton value="#{prompts.action_CREATE}"  action="#{PropertyType.Create}"/>
            </h:panelGrid>Any help ?

    Hello,
    PanelGrid will not render as you want. Please see the documentation as how the rendering will happen for panelGrid.
    http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/h/panelGrid.html
    You can use the following to get the output as you want:
    <h:panelGrid styleClass="Context" columns="3">
    <f:facet name="header">     
    <h:dataTable>
    <h:column id="col1">
    <f:facet name="header">
    <h:outputText value="#{prompts.Label_PROPERTYTYPE_ID}"/>
    </f:facet>
    </h:column>
    <h:column id="col2">
    <f:facet name="header">
    <h:outputText value="# {prompts.Label_PROPERTYTYPE_DESCRIPTION}"/>
    </f:facet>
    </h:column>
    <h:column id="col3">
    <f:facet name="header">
    <h:outputText value=""/>
    </f:facet>
    </h:column>
    </h:dataTable>
    </f:facet>
    <h:outputText value="null"/>
    <h:inputText value="#{PropertyType.typeDescription}" required="true"/>
    <h:commandButton value="#{prompts.action_CREATE}" action="# {PropertyType.Create}"/>
    </h:panelGrid>
    - Kiran

  • How to render core components in custom components?

    Hi,i got a piece of jsf code like this:
    <h:panelGrid columns="1">
                    //show1 part
                      <h:dataTable value="#{temp.nameFile}" var = "myL" rendered="#{temp.show1}">
                      <h:column>
                        <h:commandLink action="#{temp.createBean}" value="#{myL.name}" immediate="true">
                      <f:param name="name" value="#{myL.name}"/>
                      <f:param name="path" value="#{myL.path}"/>
                    </h:commandLink> 
                     </h:column>
                     </h:dataTable>
              </h:panelGrid> and it may generates html code like this:
    <table>
                        <tbody>
                             <tr>
                                  <td><a href="#"
                                       onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id2:0:_id4';
                                                             document.forms['_id0']['name'].value='ISO-3166';
                                                             document.forms['_id0']['path'].value='D:/Tomcat5.0/webapps/test/WEB-INF/iso3166.xml';
                                                             document.forms['_id0'].submit(); return false;">ISO-3166</a></td>
                             </tr>
                             <tr>
                                  <td><a href="#"
                                       onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id2:1:_id4';
                                                              document.forms['_id0']['name'].value='NAICS';
                                                              document.forms['_id0']['path'].value='D:/Tomcat5.0/webapps/test/WEB-INF/naics.xml';
                                                              document.forms['_id0'].submit(); return false;">NAICS</a></td>
                             </tr>
                             <tr>
                                  <td><a href="#"
                                       onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:_id2:2:_id4';
                                                             document.forms['_id0']['name'].value='UNSPSC';
                                                             document.forms['_id0']['path'].value='D:/Tomcat5.0/webapps/test/WEB-INF/unspsc.xml';
                                                             document.forms['_id0'].submit(); return false;">UNSPSC</a></td>
                             </tr>
                        </tbody>
                   </table>now i want to write my own custom component and use a very simple tag to get the same output,and the tag may look like this:
    <robin:category scheme="iso3166"> </robin:category>  It is very easy to render the tables out,and the f:param tags are rendered to hidden field,But you see,there is a command link component,and there is an "action" attribute whose value is bound to an action method.
    I am not sure which part in the html code is rendered for the "action" attribute, and my question is how to directly render the html code for the command link's "action" attribute in the renderer of the component associated with the <robin:category> tag.
    And it is very kind of you to give me some details about how jsf renders the method bindings to html and how to collect the information in the request to know which action method the clicked commandLink corresponds to if the "action" or "actionListener" attribute is specified!
    maybe it is not good to include everything in a single tag, any suggestions are very welcome!
    Best Regards:)
    Robin

    Hi Roosvelt,
    Unfortunately, interactive components can only be created internally, and you cannot modify existing interactive components. We have heard this request before, and I hope to see this in a future release, but we have time frame for when this might be possible.
    Garret
    Senior Software Developer
    National Instruments
    Circuit Design Community and Blog
    If someone helped you, let them know. Mark as solved or give a kudo.

  • H:panelGrid colspan and rowspan

    Hello there,
    I need a grid component that can render also colspan and rowspan.
    Is there anything like this ? panelGrid do not seem to have these attributes.
    Maybe there is a 3rd party package that provide this functionality.
    I am also interested in applying styles to specific <td> elements.
    Any ideas ?
    Thanks,

    h:panelGrid does not support colspan and rowspan attributes.
    There is a third party JSF library that cover the HTML layout tags and can be used along with the standard jsf library.
    URL: http://www.jsftutorials.com/htmLib/

  • Render attribute issue

    Based on user's role, I am trying to make hide/show a series of links using render attribute of jsf component
    sample code snippet is given below. The function isUserInRole is getting executed 4 times. Is there any work around to prevent this behaviour
    appreciate
    <h:panelGrid columns="1" width="70%" rendered="#{userBean.isUserInRole}">
         <f:facet name="header">
              <h:panelGroup>
                   <h:outputText value="Weekending Processing" styleClass="title_text_blue"/>
                   <f:verbatim>
                        <link href="/css/focis.css" rel="stylesheet" type="text/css"/>
                   </f:verbatim>
              </h:panelGroup>
         </f:facet>
         <h:panelGroup>
         <h:outputLink value="/pages/web/standard/contractorSummary.jsf" styleClass="nav_text">
         <h:outputText value="Review & Approve Invoices"/>
         </h:outputLink>
         </h:panelGroup>
         <h:panelGroup>
              <f:verbatim>
                   <h:panelGroup>
                        <h:outputLink value="/pages/web/standard/contractorSummary.jsf" styleClass="nav_text">
         <h:outputText value="Review & Approve Exception Invoices"/>
         </h:outputLink>
                   </h:panelGroup>
              </f:verbatim>
         </h:panelGroup>
         </h:panelGrid>
    thanks
    Jaison

    No because the attribute rendered is called in different phases of the JSF lifecycle.

  • ADF FACES: af:forEach and panelGrids

    Hi,
    I can't get code resembling the following to work:
    <h:panelGrid columns="4">
      <af:forEach items="#{bindings.WebCategoriesIterator.collectionModel}"
        var="current">
        <af:panelGroup>
          <af:outputText value="#{current.CatName}" />
          <af:outputText value="#{current.CatDesc}" />
        </af:panelGroup>
      </af:forEach>
    </h:panelGrid>Am I misunderstanding how one of these components works? I know <af:forEach> "only works with ADF Faces components", but I'd been assuming that means that all the components inside it have to be ADF Faces components, not that all the components on the page do. (That is, I'd assumed that the panelGrid was fine.)
    I get a couple of Log4J "Error null" messages on the console when I run this, and the panel grid doesn't seem to render at all. A table built on the same data model works fine.
    Assuming I can't use a forEach inside a panel grid, does anyone have any suggestions? Eventually, there will be images and links in these cells--the idea is to have a n x m grid of images, each linked to a "product" page, much as you might see in most web stores.
    I suppose I could use a large tableLayout with cellFormats and manually check each row in the range in the form bean, setting rowLayout and cellFormat properties to "false" once there aren't any more rows, but this seems hideously ugly for what should be a fairly simple widget.

    Hi,
    I can't get code resembling the following to work:
    <h:panelGrid columns="4">
      <af:forEach items="#{bindings.WebCategoriesIterator.collectionModel}"
        var="current">
        <af:panelGroup>
          <af:outputText value="#{current.CatName}" />
          <af:outputText value="#{current.CatDesc}" />
        </af:panelGroup>
      </af:forEach>
    </h:panelGrid>Am I misunderstanding how one of these components works? I know <af:forEach> "only works with ADF Faces components", but I'd been assuming that means that all the components inside it have to be ADF Faces components, not that all the components on the page do. (That is, I'd assumed that the panelGrid was fine.)
    I get a couple of Log4J "Error null" messages on the console when I run this, and the panel grid doesn't seem to render at all. A table built on the same data model works fine.
    Assuming I can't use a forEach inside a panel grid, does anyone have any suggestions? Eventually, there will be images and links in these cells--the idea is to have a n x m grid of images, each linked to a "product" page, much as you might see in most web stores.
    I suppose I could use a large tableLayout with cellFormats and manually check each row in the range in the form bean, setting rowLayout and cellFormat properties to "false" once there aren't any more rows, but this seems hideously ugly for what should be a fairly simple widget.

  • PanelGrid renders right-to-left

    The following panelGrid renders right-to-left. In other words:
    message | inputText | outputLabel
    instead of:
    outputLabel | inputText | message
    Why?
    <h:panelGrid binding="#{index.gridPanel1}" border="1" columns="3" id="gridPanel1" style="position: absolute; left: 24px; top: 48px; width: 360px; height: 98px">
    <h:outputLabel binding="#{index.componentLabel1}" for="username" id="componentLabel1">
    <h:outputText binding="#{index.usernameLabel}" id="usernameLabel" value="username:"/>
    </h:outputLabel>
    <h:inputText binding="#{index.username}" id="username" maxlength="100" required="true" validator="#{index.lengthValidator1.validate}"/>
    <h:message binding="#{index.usernameMsg}" for="username" id="usernameMsg" showDetail="false" showSummary="true"/>
    </h:panelGrid>

    I think this is a bug we just discovered on Friday. Does it render the children in the correct order at runtime, and the wrong order at design time?
    If so, the bug is that we're picking up the wrong children order. We're getting the one from the java backing file instead of the JSP source file / tag markup.
    As a workaround, try going to the java file (first item in the context menu), then changing the order of the beans (inputText1, outputLabel1 etc.). Let me know if that works.
    We'll be working on this one. If this is NOT your problem let me know so I can get additional information.

  • How can I render an active link (yrl) within a UIX/XML page

    How can I render an active link (url) within a UIX/XML page.
    How can I get <jbo:ShowValue> to work in UIX/XML, or is there another way?
    Bill G...

    It may seem strange, but the <contents> of <rawText> aren't actually
    raw - it's only the "text" attribute that's raw. (It seems strange because
    it is. Ah well.) This is different from UIX JSP.
    So, try something like the following:
    <bc4j:attrScope name="Notes">
    <contents>
    <rawText text="&lt;a href=&quot;"/>
    <rawText>
    <boundAttribute name="text">
    <bc4j:attrProperty name="value"/>
    </boundAttribute>
    </rawText text="&quot;&gt;"/>
    Some text in the link.
    <rawText text="&lt;/a&gt;"/>
    </contents>
    <bc4j:attrScope>
    Thankfully, this will be much simpler in 9.0.3, when the following
    will work:
    <link text="Whatever you want">
    <boundAttribute name="destination">
    <bc4j:attrValue name="Notes"/>
    </boundAttribute>
    </link>

  • Unable to render video in PSCS4 - Error Messages- QT DLL Issue??

    I started this thread in the Adobe Forums for PhotshopCS4, but the consensus there was that my issue is a QuickTime issue, perhaps with a DLL and iTunes. I have included a few of those suggestions at the end of the post. I have tried uninstalling QT Pro, cleaning and reinstalling with no improvement. I have not removed iTunes and reinstalled.
    `````````````````
    I am unable to render video it seems in Photoshop CS4 Extended. Despite having the latest QuickTime Pro installed and all updates to Vista 32 bit and to CS4 Design Premium, I get the following error message:
    "The procedure entry point CFCreateApplicationRepositoryPath could not be located in the data link library CoreFoundation.dll"
    This happens when, for example, I load 100 medium resolution JPEGs as an image sequence and choose File >Export > Render Video.
    If I OK through the error a couple of times I get a screen with output options, but usually some are greyed out. When I CAN put in QuickTime settings and choose export I get the following error:
    "Could not complete the Render Video Command because of a program error."
    When I have opened a support case with Adobe it has regularly been closed after being told to get QuickTime 7.2 or higher. GGGrrrr. I have QT 7.6.5 Pro installed.
    Any help much appreciated....I do have Premiere Elements 7 installed as well FYI.
    Thanks! System Info below:
    Adobe Photoshop Version: 11.0.1 (11.0.1x20090218 [20090218.r.523 2009/02/18:02:00:00 cutoff; r branch])
    Operating System: Windows Vista 32-bit
    Version: 6.0 Service Pack 2
    System architecture: Intel CPU Family:6, Model:15, Stepping:7 with MMX, SSE Integer, SSE FP, SSE2
    Physical processor count: 4
    Processor speed: 2400 MHz
    Video Card Vendor: NVIDIA Corporation
    Video Card Renderer: GeForce 9500 GT/PCI/SSE2
    OpenGL Drawing: Enabled.
    Video Card: NVIDIA GeForce 9500 GT
    Video Mode: 1920 x 1080 x 4294967296 colors
    Video Card Driver: nvd3dum.dll,nvwgf2um.dll,nvwgf2um.dll
    Driver Version: 8.17.11.9562
    Built-in memory: 3070 MB
    Free memory: 1180 MB
    Memory available to Photoshop: 1632 MB
    Memory used by Photoshop: 80 %
    Image cache levels: 4
    Serial number: removed
    Application folder: C:\Program Files\Adobe\Adobe Photoshop CS4\
    Temporary file path: C:\Users\Phil\AppData\Local\Temp\
    Photoshop scratch has async I/O enabled
    Scratch volume(s):
    C:\, 289.2G, 122.5G free
    E:\, 298.1G, 50.0G free
    Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS4\Plug-ins\
    Additional Plug-ins folder: not set
    Was your QT properly installed with correct privileges? As Mr. Cox said, it seems there is an issue with your QT install. also, in the QT system control panle, enable the Allow Encoding using Legacy CoDecs option. this often fixes the weirdest issues (as it also catches a number of other legacy calls to QT components)...
    Mylenium
    Thanks guys- the QT install SEEMS fine....? I will try allowing legacy CODECs and if that doesnt ehlp I will totally uninstall QT Pro, clean the registry, reboot and install QT from the top. Will let you know how I get on with this.
    Phil
    I have enabled using legacy CODECs and restarted, same error message.
    I have completely uninstalled QuickTime(Pro), run CCleaner to clear files and the registry...I have then rebooted, reinstalled Quicktime(Pro) 7.6.5, rebooted. I get the very same error message at that time.
    Any further suggestions appreciated.
    All the google searches point directly at Apple like Chris pointed out. I noticed that there were a lot of Apple product hits but the most standing out was itunes. Did you happen to install itunes software (or some other Apple product) and maybe itunes over-wrote the .DLL? Other then that thought I don't have any other input.
    I agree this is an issue with an Apple DLL. The error you're getting suggests that the wrong version of the DLL is being used. It means that the thing that is rendering the video is expecting the CoreFoundation DLL to have a particular function called CFCreateRepositoryPath but it's not there.
    What could be happening is that there are multiple instances of this DLL on the computer and the PATH is leading to the wrong one.
    You might search your entire hard-drive and find where the CoreFoundation DLL exists and what version each is. If there is only one version, then perhaps your version of QuickTime is actually too new. Photoshop 11.0.1 came out a long time ago, and the version of QuickTime referred to in the support-ticket-closure response is also pretty old, so maybe the newest QuickTime is using a newer version of the DLL that Photoshop knows how to deal with.
    Searching my system for CoreFoundation. there is one smaller version of the DLL in Apple Application Support dated in November and then several larger ones in directories dealing with mobile phones like the iPhone, which I don't have one of, dated a few months earlier.
    I'm guessing the iPhone stuff came with iTunes, which I do have installed, though I don't really use it.
    Thanks for looking, really hoping for some help here.

    "The procedure entry point CFCreateApplicationRepositoryPath could not be located in the data link library CoreFoundation.dll"
    Thanks for all the detailed information, pw. It's very helpful.
    Okay, the most recent versions of QuickTime require a fully functional Apple Application Support in order to run properly. You're getting a problem with one of the Apple Application Support dlls. So the best thing to do first would be to uninstall both Apple Application Support and QuickTime, and then reinstalling QuickTime (which should reinstall a fresh version of Apple Application Support).
    There's 7/Vista 32-bit instructions for doing that in the following post:
    http://discussions.apple.com/thread.jspa?messageID=10760492&#10760492

  • Media Encoder CC  won't render Magic Bullet Denoiser II

    Hello there,
    i've got the following Problem: I am having Premiere CC and used the Red Giant Plug-In Denoiser II on my last project, when i import this project to the Media Encoder and select Quicktime for output, the Media Encoder won't render the clip with this Plug-In. i always get the original files out, without the denoiser. Original footage from in premiere is 2,5k CinemaDNG RAW from the Black Magic Cinema Camera.
    thx

    I feel like there was a recent update to the RG plugins (inside of the last 30 or so days.) Are they up to date?

Maybe you are looking for