Netui-data:getData no populating pageContext attribute in portlet

I am attempting to create several pageContext attributes in a page flow and I'm having issues. When I test the page flow itself it works like a charm. But when I generate a portlet based on the same page flow netui-data does not populate the pageContext attribute.
My code is pasted below. Any help would be greatly appreciated, pulling my hair out.
<%@ page language="java" contentType="image/gif"%>
<%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
<%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
<%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
<netui-data:getData resultId="imageByteArray" value="{pageFlow.img.TnImage}"/>
<netui-data:getData resultId="mimeType" value="{pageFlow.img.TnMimeType}"/>
<%
Enumeration e1 = pageContext.getAttributeNamesInScope(1);
while (e1.hasMoreElements())
System.out.println("pageContext attributtes: " + e1.nextElement().toString());
request.setAttribute("byArr", pageContext.getAttribute("imageByteArray"));
request.setAttribute("mimeType", pageContext.getAttribute("mimeType"));
request.setAttribute("tiny", "tim");
Enumeration e = request.getAttributeNames();
while (e.hasMoreElements())
System.out.println("request attributtes: " + e.nextElement().toString());
%>
<jsp:forward page="/showImage" />

Personally, I have had a hard time doing what you are asking for using netui tags. I have had the same case, and asked the person in my team to just return a collection of value objects and then iterate through it without the repeater tag. To use the checkbox, I have had to use a String[].
          Kunal

Similar Messages

  • netui-data:getData tag related query

    Hi
    I need to be able to compare the values returned by <netui-data:getData> tag against
    another variable (which is also implemented as <netui-data:getData>) .
    I have something as below :-
    <netui-data:getData resultId="variableA" value="{container.item.value}"/>          
    <netui-data:getData resultId="variableB" value="{request.variableB}"/>     
    <logic:equal value="variableB" name="variableA" >                         A equals B               
    </logic:equal>                                             
    I am trying to the use the struts <logic:equal> tag but I am not sure as to how
    to compare the two variables . I can easily compare variableA with a constant
    like "apples" as mentioned below :-
    <logic:equal value="apples" name="variableA" >                         A equals apples          
    </logic:equal>                                   
    But my requirements are I need to compare the two variables . How do I do that
    using the NetUI tags or struts tags ??
    Thanks
    Kar                    

    It worked like a charm John !! Still the good old scriplets to the rescue . Looks
    like when things get way too comlicated in the jsp pages , we can flip back to
    sciplets .
    - Kar
    "John Rohrlich" <[email protected]> wrote:
    Kar,
    If using scriptlet is okay you could do something like this
    <netui-data:getData resultId="foo1" value="{pageFlow.foo1}"/>
    <netui-data:getData resultId="foo2" value="{pageFlow.foo2}"/>
    <%
    if (pageContext.getAttribute("foo1") ==
    pageContext.getAttribute("foo2"))
    %>
    <netui:label value="foo1 == foo2"/>
    <%
    %>
    - john
    "kar piyush" <[email protected]> wrote in message
    news:4086b0f6$[email protected]..
    Hi
    I need to be able to compare the values returned by <netui-data:getData>tag against
    another variable (which is also implemented as <netui-data:getData>).
    I have something as below :-
    <netui-data:getData resultId="variableA" value="{container.item.value}"/>
    <netui-data:getData resultId="variableB" value="{request.variableB}"/>
    <logic:equal value="variableB" name="variableA" > A equals B
    </logic:equal>
    I am trying to the use the struts <logic:equal> tag but I am not sureas
    to how
    to compare the two variables . I can easily compare variableA witha
    constant
    like "apples" as mentioned below :-
    <logic:equal value="apples" name="variableA" > A equals apples
    </logic:equal>
    But my requirements are I need to compare the two variables . How doI do
    that
    using the NetUI tags or struts tags ??
    Thanks
    Kar

  • Info-Object Master Data is not populated using Attribute View

    Hi Colleagues,
    I have one info-Object 'Resource', compounded with client, resource type and scenario.
    I want to fill its master data using an attribute view.  In Master data tab, i have mentioned the package and attibute view (SAP HANA MODEL).
    Assigned all the attributes to respective fields in attribute view.
    I can see data using the 'Data Preview' in my attribute view.
    Two issues --
    1. Maintain master data option is disabled in the context menu of 'Resource' Info-Object.
    2. Also the data available in attribute view is not populating in master data of info-Object ( I tried seeing by creating a report).
    Please suggest what is wrong here.
    Thanks in advance.
    Regards,
    Rohit

    Hi,
    When you are loading data from DSO to IO, seems like some filtering is happening. Just check the active table of DSO and make sure that you have all the 59 records available.
    Another important thing is check the primary key of your master data i.e. if there is any compounding attribute if not then records from DSO might be getting overwritten in the master data. i.e. only 6 unique records.
    Regards,
    Durgesh.

  • Prob in accessing DataSourece value from netui-data:repeater after submit

    HI all,
              I am new to this WLWS. PLease guide me in the following scenario:
              I am retrieving an array of records (activityDetails[]) from a Db control and setting this to the datasource property of a netui-data:repeater. Basically I am populating a list of records in my jsp page which works fine.
              But When a submit the page, I am not able to access that array of records from the action method difined in my controller.jpf file, even though I have declared the array in the Form bean.
              And I am not sure if have set the proper datasource for the checkBox defined within the records. The purpose of this checkbox is to select the records form the list to be saved in the database. Is there any better way of achieving the same.
              It's throwing Null pointer exception in the method called
              doProcess.
              Here is the related code:
              activities.jsp
              <netui:button type="submit" tagId="btnSave" value="Save" styleClass="btn" action="doProcess"/>
              <netui:button tagId="btnPrint" value="Print" styleClass="btn" onClick="doPrint()"/>
                                       </td>
                                  </tr>
              <netui-data:repeater dataSource="{actionForm.activityDetails}" >
              <netui-data:getData resultId="pkg" value="{container.item.pkg_header_id}" />
              <tr bordercolor="#A8A8A8" >
              <%
              if (pageContext.getAttribute("pkg") == null)
              %>
              <td><netui:content value=" "/></td>
              <%
              else
              %>
              <td><netui:checkBox dataSource="{container.item.activity_id}"/>
              <%
              %>
              <td><netui:content value="{container.item.prt_no}"/> </td>
              <td><netui:content value="{container.item.activity_num}"/> </td>
              <td><netui:content value="{container.item.frc_acct_code}"/> </td>
              <td><netui:content value="{container.item.frc_acct_code}"/> </td>
              <td><netui:content value="{container.item.status_code}"/> </td>
              <td><netui:content value="{container.item.location_code}"/> </td>
              <td><netui:content value="{container.item.task_code}"/> </td>
              <td><netui:content value=" "/> </td>
              <td><netui:content value="{container.item.wpid}"/> </td>
              <td><netui:content value="{container.item.original_qty}"/> </td>
              <td><netui:content value="{container.item.act_obj_hrs}"/> </td>
              <td><netui:content value="{container.item.act_actual_hrs}"/> </td>
              <td><netui:content value="{container.item.act_rmng_hrs}"/> </td>
              <td><netui:content value="{container.item.act_rmrk}"/> </td>
              </tr>
              </netui-data:repeater>
              </table>
              </netui:form>
              </netui-template:section>
              </netui-template:template>
              Here is the .jpf file
              public class VSchedController extends PageFlowController
              * @common:control
              private custom.ConstSched constSched;
              private ActivityDetails[] activityDetails;
              * @jpf:action
              * @jpf:forward name="index" path="index.jsp"
              * @jpf:forward name = "success" path = "packageActivities.jsp"
              protected Forward begin(PackageSchedForm form) throws SQLException
              HttpSession s = getRequest().getSession(false);
              int jobID = (s.getAttribute("JOB_ID") != null) ? Integer.parseInt(s.getAttribute("JOB_ID").toString()) : 0;
              if (jobID == 0) jobID = 6;
              setActivityDetails(constSched.getAllActivities(jobID));
              form.setActivityDetails(activityDetails);
              return new Forward("success");
              * @jpf:action
              * @jpf:forward name="success" path="packageActivities.jsp"
              protected Forward doProcess(PackageSchedForm form) throws SQLException
              System.out.println("----------------------------------------");
              System.out.println("ActivityDetails is null ? " + (form.activityDetails == null));
              for(int i=0; i < 6; i++)
              try
              System.out.println("Checked -> " + form.activityDetails.activity_id);
              catch(Exception e)
              System.out.println(i);
              System.out.println("----------------------------------------");
              return new Forward("success");
              public ActivityDetails[] getActivityDetails()
              return this.activityDetails;
              public void setActivityDetails(ActivityDetails[] activityDetails)
              this.activityDetails = activityDetails;
              * FormData get and set methods may be overwritten by the Form Bean editor.
              public static class PackageSchedForm extends FormData
              private ActivityDetails[] activityDetails;
              public ActivityDetails[] getActivityDetails()
              return this.activityDetails;
              public void setActivityDetails(ActivityDetails[] activityDetails)
              this.activityDetails = activityDetails;

    Personally, I have had a hard time doing what you are asking for using netui tags. I have had the same case, and asked the person in my team to just return a collection of value objects and then iterate through it without the repeater tag. To use the checkbox, I have had to use a String[].
              Kunal

  • Netui-data:callMethod in Workshop 9.2b

    Hi!
    I try to convert my Workshop 8.1 application to Workshop 9.2b.
    In my application there is an EJB-Project and a Web-Project.
    In my JSPs, i used the following code, to call a Method of a SessionBean without implementing some Code in my PageFlow:
    <!-- Control Declaration -->
    <netui-data:declareControl type="EJBController.TextControl" controlId="textControl" />
    <!-- Control Declaration -->
    <netui-data:callControl controlId="textControl" method="getText" resultId="$$lngbez$InfotextDp$$" >
    <netui-data:methodParameter value='$$lngbez$InfotextDp$$'/>
    <netui-data:methodParameter value="{pageFlow.h}"/>
    </netui-data:callControl>
    In 9.2b, I think I should use the netui-data:callMethod.
    But all the samples I found about netui-data:callMethod are using object="${pageFlow}".
    How can I call Methods of other Java-Classes like a SessionBean-Control as shown in the code above?
    What's the right way to provide the object-parameter?
    Thanks,
    Josef

    Josef,
    In 8.1 you were declaring the attribute textControl in the JSP using the
    declareControl tag.
    Because of the changes to the Controls container, the declareControl tag is
    no longer available in 9.2
    There is a 8.1 compatibility declareControl tag but we do not recommend
    running your application in compitibility mode unless absolutely necessary.
    The recommended approach to accessing controls directly from a JSP is as
    follows:
    <%
    ControlBean bean = Controls.instantiate(ControlBean.class, null,
    ControlThreadContext.getContext(), null);
    pageContext.setAttribute("customControlBean", bean);
    %>
    <netui-data:callMethod object="${pageScope.customControlBean}"
    method="getData" resultId="myData"></netui-data:callMethod>
    <netui:content value="${myData}" />
    Hope this helps!
    Scott L'Hommedieu
    WLW CCE
    <Josef Feiertag> wrote in message news:[email protected]..
    Hi!
    I try to convert my Workshop 8.1 application to Workshop 9.2b.
    In my application there is an EJB-Project and a Web-Project.
    In my JSPs, i used the following code, to call a Method of a SessionBean
    without implementing some Code in my PageFlow:
    <!-- Control Declaration -->
    <netui-data:declareControl type="EJBController.TextControl"
    controlId="textControl" />
    <!-- Control Declaration -->
    <netui-data:callControl controlId="textControl" method="getText"
    resultId="$$lngbez$InfotextDp$$" >
    <netui-data:methodParameter value='$$lngbez$InfotextDp$$'/>
    <netui-data:methodParameter value="{pageFlow.h}"/>
    </netui-data:callControl>
    In 9.2b, I think I should use the netui-data:callMethod.
    But all the samples I found about netui-data:callMethod are using
    object="${pageFlow}".
    How can I call Methods of other Java-Classes like a SessionBean-Control as
    shown in the code above?
    What's the right way to provide the object-parameter?
    Thanks,
    Josef

  • CheckBoxGroup, checkBoxOption and netui-data:repeater

    Greetings,
    How can I have multiple options (<netui:checkBoxOption>) inside a checkbox group (<netui:checkBoxGroup>) dinamycally, using netui tags?
    CheckBoxOption doesn't allow using another tag like <netui-data:repeater> as it's parent.
    I really appreciate any help.
    Mariano

    Tim,
    I had a similar issue and I could not find a way via the start index and end index
    as you would expect.
    However, what you can do is write a method in your JPF and access it via <netui-data:choiceMethod...>
    tag.Disdavntage being the repeater tag would still loop through rthe entire set,
    but would display only what you want.
    <netui-data:repeaterItem>
    <netui-data:choiceMethod object="{pageFlow}" method="isLineCounterMaxed">
    <netui-data:methodParameter value="{container.index}"/>
    <netui-data:methodParameter value="{pageContext.lastLineNumber}"/>
    </netui-data:choiceMethod>
    <netui-data:choice value="true">
    ........DIsplay Your Data Here.......
    </netui-data:choice >
    </netui-data:repeaterItem>
    Thanks
    Rishi
    "Tim" <[email protected]> wrote:
    >
    Hi,
    I am using <netui-data:repeater> tag to display array of object.
    This array has 20 elements and I am displaying only 5 elements at one
    time and
    providing next and previous button to the user.
    Can I specify the starting index and the end index in repeater tag so
    that I
    display
    the processing array object values in my repeater tag.

  • netui-data:repeater tag

    Hi,
    I am using <netui-data:repeater> tag to display array of object.
    This array has 20 elements and I am displaying only 5 elements at one time and
    providing next and previous button to the user.
    Can I specify the starting index and the end index in repeater tag so that I
    display
    the processing array object values in my repeater tag.

    Tim,
    I had a similar issue and I could not find a way via the start index and end index
    as you would expect.
    However, what you can do is write a method in your JPF and access it via <netui-data:choiceMethod...>
    tag.Disdavntage being the repeater tag would still loop through rthe entire set,
    but would display only what you want.
    <netui-data:repeaterItem>
    <netui-data:choiceMethod object="{pageFlow}" method="isLineCounterMaxed">
    <netui-data:methodParameter value="{container.index}"/>
    <netui-data:methodParameter value="{pageContext.lastLineNumber}"/>
    </netui-data:choiceMethod>
    <netui-data:choice value="true">
    ........DIsplay Your Data Here.......
    </netui-data:choice >
    </netui-data:repeaterItem>
    Thanks
    Rishi
    "Tim" <[email protected]> wrote:
    >
    Hi,
    I am using <netui-data:repeater> tag to display array of object.
    This array has 20 elements and I am displaying only 5 elements at one
    time and
    providing next and previous button to the user.
    Can I specify the starting index and the end index in repeater tag so
    that I
    display
    the processing array object values in my repeater tag.

  • netui-data:pager action to dynamically fetch rows

    Hi,
    How can I configure a data grid pager to dynamically fetch new rows when a user swap pages through the pager?
    I know I can fetch all my rows to a collection / array before rendering the datagrid and set the pager to iterate over it like this:
    [Controller]
    private List<Ride> rides;
    public List<Ride> getRides() {
         return rides;
    [Action]
    rides = rideDBControl.getAllRides(); // huge amount of data
    return forward;
    [JSP]
         <div style="border-width:2px;"><netui-data:dataGrid name="currentRidesGrid" dataSource="pageFlow.rides">
              <netui-data:configurePager pagerFormat="prevNext" pageSize="${pageSize}" />
              <netui-data:header>
                   <netui-data:headerCell headerText="Name" />
                   <netui-data:headerCell headerText="Description" />
              </netui-data:header>
              <netui-data:rows>
                   <netui-data:spanCell value="${container.item.name}" style="background-color: #f0f0f0;font-size:14pt;">
                   </netui-data:spanCell>
                   <netui-data:spanCell value="${container.item.description}">
                   </netui-data:spanCell>
              </netui-data:rows>
         </netui-data:dataGrid></div>
    But how can I make the pager call a method to update the contents of the collection "rides" according to the current selected page and page size? And how can I obtain the current page and page size inside that method?
    I want to paginate queries that may return a huge amount of data (1m + rows), so, fetching all rows at once is impracticable. What I want to do is propagate the current page and page size from the pager to a method that will update the current collection according to a query such as:
    Select X, Y, Z
    From Table
    Where ...
    And ROWNUM BETWEEN page * pageSize AND (page + 1) * pageSize
    Can anyone help a noob?

    For further reference I've found the answer by myself.
    To dynamically fetch rows you need to modify the <netui-data:configurePager> tag and include both a pageAction and partialDataSet attributes, e.g.:
    <netui-data:configurePager pagerFormat="prevNext" pageSize="${pageSize}" pageAction="pagination" partialDataSet="true" />
    Within the pagination action you can obtain the current row and page size from a PagerModel object. You can then update the dataSource (just remember to call the setDataSetSize providing the length of the full dataset so that the pager displays the correct amount of pages), e.g.:
    @Jpf.Action(forwards = { @Jpf.Forward(name = "success", navigateTo = Jpf.NavigateTo.currentPage) })
         public Forward pagination() {
              DataGridStateFactory dataGridStateFactory = DataGridStateFactory
                        .getInstance(getRequest());
    // Gets the pagerModel object for the grid
              PagerModel pagerModel = dataGridStateFactory.getDataGridState(
                        "currentRidesGrid").getPagerModel();
    // => Code to get the entire dataSource size <=
              pagerModel.setDataSetSize(dataSourceSize);
              // Obtain the first row and page size from the model
              int firstRow = pagerModel.getRow();
              int pageSize = pagerModel.getPageSize();
              // => Code to fetch the rows to be displayed <=
              rides = pageRides;
              Forward forward = new Forward("success");
              return forward;
    I hope this helps.
    Cheers

  • What is the reference infoobject,how to data will be populated inthat objec

    Hi All....
    i don't no difference b/w primary infoobect and reference infoobject.
    tell me how to dat will be populated b/w objects.
    i have lot of confussion.
    thanks,
    pathi

    Reference InfoObjects:
    If an InfoObject has a reference InfoObject, it has its technical properties:
    ·        For characteristics these are the data type and length as well as the master data (attributes, texts and hierarchies). The characteristic itself also has the operational semantics.
    ·        For key figures these are the key figure type, data type and the definition of the currency and unit of measure. The referencing key figure can have another aggregation.
    These properties can only be maintained with the reference InfoObject.
    Several InfoObjects can use the same reference InfoObject. InfoObjects of this type automatically have the same technical properties and master data.
    Plz chk out http://help.sap.com/saphelp_nw04/helpdata/en/80/1a637fe07211d2acb80000e829fbfe/frameset.htm for more info

  • In VA01  In Schedule line Delivery date not getting populated

    Hello,
    We have developed enhancement for VA01 tcode.
    Depending upon the quatity entered for a material it should show one more item as free good.
    If quatity is 10 for a line item 10 then it should show item 20 by default same mateerial and quatilty as 1.We have done this it is working fine.
    But if we select free good item in our case it is 20 and click on schedule line item buttom all quaitity fields getting populated.but delivery date not getting populated for only free good.for line item 10 it showing properly.
    Can any one please suggest what i need to do in order to display delivery date for free good.
    Thanks in advance.
    Regards.

    Thanks for your response.
    Actually i have seen technical settings for that field.it is rv45a-etdat.this field has value till MV45AFZZ.seen in debugger.
    Looks like it is clearing some where after the above include.Any suggisitions welcome.Thanks again.

  • Data not getting populated in Payslip in ESS Portal

    Hi All
    I am tryig to display Payslip in Portal. Have done all the necessary configuration in Benefits and payments->Salary statement->HRFOR/ EDTIN features.
    Correct Payslip form is visible but data is not getting populated in the payslip.
    Have tested the Payslip in PC00_M40_CEDT transaction with the variant i have set for HRFOR/EDTIN features and Payslip data is displayed correctly.
    Have checked for PZ11_PDF transaction but i get a message saying it cannot be accessed through Easy access.
    Can anyone pls let me know what might be the reason for data not getting populated in Payslip in Portal?
    what is role of PZ11_PDF transaction in Payslip display in Portal?
    Regards
    Asha

    Hello,
    Do one thing for executing the PZ11_PDF trsaction please follow following steps.
    1. Once you log in SAP system with same User - Id which you r using on Portal .
    Once log in PUT "/N" in the command box . Then put the trasaction "PZ11_PDF" and execute it will
    Call the salary statement .
    Or
    Once you log in SAP system put the trasction "/nsbwp" then give the trasaction "PZ11_PDF" it will
    call the salary statement ..
    give inputs once you done
    .....The issue with  Authorisations please check it ...
         Add this object in ESS role "S_SERVICE' ...
        and this object in ESS role "P_PERNR" ---infotype 0008
    Edited by: Vivek D Jadhav on Jun 15, 2009 11:49 AM

  • Data not getting populated in ESS Payslip in portal

    Hi All
    I am tryig to display Payslip in Portal. Have done all the necessary configuration in Benefits and payments->Salary statement->HRFOR/ EDTIN features.
    Correct Payslip form is visible but data is not getting populated in the payslip.
    Have tested the Payslip in PC00_M40_CEDT transaction with the variant i have set for HRFOR/EDTIN features and Payslip data is displayed correctly.
    Have checked for PZ11_PDF transaction but i get a message saying it cannot be accessed through Easy access.
    Can anyone pls let me know what might be the reason for data not getting populated in Payslip in Portal?
    what is role of PZ11_PDF transaction in Payslip display in Portal?
    Regards
    Asha

    Asha,
    Maintain Feature EDPDF which determines the SMARTFORM being used to make the payslip available for employees. This is more of a HR related issue and I believe if you post this in the ESS or HR Forum you would be able to resolve this issue.
    Good Luck!
    Sandeep Tudumu

  • Data type of the base attribute or the base value does not match...

    ...the assigned expression.
    Hello all,
    I always get the Error
    +<ERROR+
    TEXT="'DWH.CUB_REGISTRATIONS_AW.REGISTRATIONS': XOQ-02517: Der Datentyp des Basisattributs oder der Basisgröße stimmt nicht mit dem zugeordneten Ausdruck überein.
    XOQ-01400: Ungültige Metadatenobjekte"/>
    The English message must be something like this:
    The data type of the base attribute or the base value does not match the assigned expression.
    when I run my mapping. The attribute REGISTRATIONS is NUMERIC (12,2) in the Cube and I map a NUMERIC(12,2) constant in it.
    I use a simple OWB-Mapping for loading, but I don't understand why it doesn't function. Other mappings where the attributes are out of a
    table I put in a cube are running well.
    I tried different things, but nothing fixed my problem. Any idea ?
    Thanks a lot for help
    Michael

    Technically this is a 'warning' from the server, not an 'error'. This means that the change you made should have been submitted, but you get an warning message on the client. AWM would suppress this warning, but evidently OWB does not. Can you switch to use AWM?
    Here is the definition of the warning along with 'cause' and 'action' sections. (Unfortunately these sections are not translated into German for some reason.)
    >
    02517, 0, "The data type \"%(1)s\" of the base attribute or base measure is different from the mapped expression \"%(2)s\"."
    // *Cause: Either the base attribute or base measure with the mapped expression was set to an inconsistent data type, or it was mapped to an expression of a different data type from its fixed data type.
    // *Action: When changing a mapped expression for a base attribute or base measure, ensure that the expression has the same data type; otherwise, set the data type of the base attribute or base measure to NULL first. When a base attribute or a base measure has an existing mapped expression, do not set it to a different data type.
    >
    It is probably safe to ignore this warning, but if you can post the relevant XML for the cube, then will probably be able to spot the problem. I assume that REGISTRATIONS is a measure in the cube CUB_REGISTRATIONS_AW, so this is what you can look for in the XML:
    (1) The definition of the base measure along with the datatype. It should be something like this
    <Measure>
      <BaseMeasure
        SQLDataType="NUMBER(12,2)"
        ETMeasureColumnName="REGISTRATIONS"
        Name="REGISTRATIONS">(2) The mapping info for the measure, which should looks something like this:
    <MeasureMap
      Name="REGISTRATIONS"
      Expression="...">
      <Measure Name="REGISTRATIONS"/>
    </MeasureMap>I don't know if you can get the XML directly from OWB. If not, then DBMS_CUBE.EXPORT_XML should work (assuming you are in 11.2). You could also attach AWM and save the cube to an XML template.

  • Formatting a date field auto populated with Javascript

    I have a date field, which I auto-populate to be the current days date with the following code:
    var date=new Date();
    var month=date.getMonth()+1;
    this.rawValue=month+"/"+date.getDate()+"/"+(date.getYear()-100);
    This works fine, but it comes out as 7/20/12 instead of 07/20/2012 like my pattern defines.
    Whether or not I write my code to be the correct format, I always get an "Invalid format" error. How can I fix this?

    The solutions is to format the date in YYYY-MM-DD when setting the raw value.
    var date=new Date();
    var month=date.getMonth()+1;
    var day=date.getDate();
    if(month<10){ month="0"+month; }
    if(day<10) {day="0"+day; }
    this.rawValue=date.getFullYear()+"-"+month+"-"+day;

  • Problem with netui:data repeater tag

    Hi,
    I have 10 checkboxes in a form. It is represented as array of boolean in the form.
    The form and the checkbox values are initialised in the JPF class. Using repeater
    tag to display the checkboxes.
    When the user clicks on first check box, all other check boxes should be selected.
    Need to do this with client side validation.
    Can someone tell me how to do this?

    Hi kunal,
    Thanks for your immediate response.
    But, if I use , I am getting an saying that the file does not exist.
    I have included your code, can you check it. Also, I just want the link to be displayed, not the values that I am getting through the netui-data:repeaterItem tag. Can you please help me.
    I am attaching my code here:
    <netui-data:repeater dataSource="{pageFlow.results2}">
    <netui-data:repeaterHeader></netui-data:repeaterHeader>
    <netui-data:repeaterItem >
    <netui:label value="{container.item.title}" defaultValue=" " ></netui:label>
    </netui-data:repeaterItem>
    <netui-data:repeaterItem>
    <netui:label value="{container.item.link}" defaultValue=" " ></netui:label>
    </netui-data:repeaterItem>
    <netui-data:repeaterItem>
    <netui:label value="{container.item.title}" defaultValue=" "></netui:label>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></ol></netui-data:repeaterFooter>
    </netui-data:repeater>
    Thanks,
    Latha

Maybe you are looking for