Getting WARN [Parameters] Parameters: Invalid chunk ignored.

UI Components for JSF
Post Reply
shekhar.kotekar
Posts: 4
Joined: 28 Aug 2011, 08:39

02 Sep 2011, 19:18

Hi,

I am trying to build sample JSF 2 based autocomplete form. I am using primefaces 3.0.M2, JSF 2.1.2 libraries and JBoss 6.

I am using autoComplete component of primefaces but its not working. I am not getting any autocomplete text when I type in input text box.

I can see only following warning in JBoss console window :

Code: Select all

19:40:56,874 WARN  [Parameters] Parameters: Invalid chunk ignored.
My xhtml file looks like following :

Code: Select all

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:head>
       <title>sample auto completer</title> 
    </h:head>
    <h:body>
        <p:messages id="messages" />
        <p:autoComplete id="AutoCompleter" 
              value="#{myBean.text}" 
              completeMethod="#{myBean.complete}" 
              onSelectUpdate="messages"/>
    </h:body>
</html>
and java bean code is as follows :

Code: Select all

package com.shekhar.jsf;

import java.util.ArrayList;
import java.util.List;

public class Bean {

    private String text;

    public List<String> complete(String val) {
        List<String> lst = new ArrayList<String>();

        for (int i = 0; i < 10; i++) {
            lst.add(val + i);
        }
        return lst;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }
}
and my faces-config file contains following code :

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
    version="2.0">
    <managed-bean>
        <managed-bean-name>myBean</managed-bean-name>
        <managed-bean-class>com.shekhar.jsf.Bean</managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
</faces-config>
I tried changing bean scope to 'view' from 'request' but it didnt helped.

I dont understand which thing I am missing. Please help !!!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 41 guests