just saw the inputStream content (extracted from InputStream content = webResponse.getContentAsStream()) as a string
and it seems perfect!
JBoss, Home of Professional Open Source
Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
as indicated by the @authors tag. All rights reserved.
See the copyright.txt in the distribution for a
full listing of individual contributors.
This copyrighted material is made available to anyone wishing to use,
modify, copy, or redistribute it subject to the terms and conditions
of the GNU Lesser General Public License, v. 2.1.
This program is distributed in the hope that it will be useful, but WITHOUT A
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License,
v.2.1 along with this distribution; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA.
--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<form id="form1" name="form1" method="post" action="/abeaa418-2676-412e-a46f-45c2de6e1b3e/index.faces" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="form1" value="form1" />
<span id="form1:prompt">Enter your name:</span><br /><input id="form1:input_foo_text" type="text" name="form1:input_foo_text" value="" /><span class="errorMessage">form1:input_foo_text: Erro de validação: o comprimento é menor do que o mínimo permitido de "2"</span>
<br /><span id="form1:funchecktext">Uncheck this box just for fun </span><input id="form1:funcheck" type="checkbox" name="form1:funcheck" checked="checked" />
<br /><br /><input id="form1:submit_button" type="submit" name="form1:submit_button" value="Submit" /><input id="form1:goodbye_button" type="submit" name="form1:goodbye_button" value="Goodbye" /><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="-1920097866547278462:-1646168388579943587" autocomplete="off" />
I followed up with the problem this morning and I found out that the problem is the " on the validation message:
<span class="errorMessage">form1:input_foo_text: Erro de validação: o comprimento é menor do que o mínimo permitido de "2"</span>
it breaks when trying to:
int c = HTMLEntities.get(name);
//name is quot
I could not debug further, eclipse couldn't evaluate the expression.
But in one of the files that hold entries loaded to Entities, theres an entry for quot:
so everything seems fine. Any clues on how to proceed? is this a known bug?
1 of 1 people found this helpful
I found the problem, I wasn't adding those property files on the jar built with shrinkwrap.
I had this too. It took me too long to learn the problem using eclipse debugger.
Here is shrinkwrap call to add the resources which 2.0.0.Beta1 doesn't, but should (on the ground that jsfunit bundles the classes that uses these into the test archive):
Hey John, thanks for the post reply, it will help people looking for a solution while a new version is not available, I should had think on that.
for the next version those files and a couple of other ones, will be loaded too.