Re: Primefaces FileUpload and Prettfaces Error

Splash Forums PrettyFaces Users Primefaces FileUpload and Prettfaces Error Re: Primefaces FileUpload and Prettfaces Error

#20329

parindam
Participant

Hi,

I have prettyfaces and primefaces in my application.

I have tried to configure it same as http://ocpsoft.com/wp-content/uploads/2010/11/pretty-prime-test.zip

In my pretty-config.xml, I get the following error message. Am I doing anything wrong ?

cvc-complex-type.2.1: Element ‘view-id’ must have no character or element information item [children], because the type’s content type is

empty.


My pretty-config.xml is as follows.

<pretty-config xmlns=”http://ocpsoft.com/prettyfaces/3.1.1″

xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

xsi:schemaLocation=”http://ocpsoft.com/prettyfaces/3.1.1

http://ocpsoft.com/xml/ns/prettyfaces/ocpsoft-pretty-faces-3.1.1.xsd“>

<!– Begin Example RewriteRules

// These are custom rewrite-rules, and are probably not necessary for your application.

<rewrite match=”^/old-url/(w+)/$” substitute=”/new_url/$1/” redirect=”301″ />

–>

<url-mapping id=”brand”>

<pattern value=”/brand/#{ brandID : buyBacking.selectedBrandID }/” />

<view-id> /faces/brand/buyBrand.xhtml </view-id>

</url-mapping>

Thanks,

Arindam.