Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

wladimir bandeira

+ Follow
since Aug 12, 2013
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by wladimir bandeira

Through a tutorial able to create a product inclusion using the following html code

this is my project;

I am having great difficulty in performing the codes I made in JSP to do in thymeleaf.

I made the next attempt at the suggestion proposed;

I would like to make it clear as is the method that loads the form;

And before the change made generated this error on the page;

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Sun Apr 10 06:48:06 BRT 2016
There was an unexpected error (type=Internal Server Error, status=500).
Could not parse as expression: "preco[${status.index}].valor" (produtos/form:30)

And that was the error message on the console;

org.thymeleaf.exceptions.TemplateProcessingException: Could not parse as expression: "preco[${status.index}].valor" (produtos/form:30)
at org.thymeleaf.standard.expression.StandardExpressionParser.parseExpression( ~[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.thymeleaf.standard.expression.StandardExpressionParser.parseExpression( ~[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.thymeleaf.standard.expression.StandardExpressionParser.parseExpression( ~[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.thymeleaf.standard.processor.attr.AbstractStandardSingleAttributeModifierAttrProcessor.getTargetAttributeValue( ~[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.thymeleaf.processor.attr.AbstractSingleAttributeModifierAttrProcessor.getModifiedAttributeValues( ~[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.thymeleaf.processor.attr.AbstractAttributeModifierAttrProcessor.processAttribute( ~[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.thymeleaf.processor.attr.AbstractAttrProcessor.doProcess( ~[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.thymeleaf.processor.AbstractProcessor.process( ~[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.thymeleaf.dom.Node.applyNextProcessor( ~[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.thymeleaf.dom.Node.processNode( ~[thymeleaf-2.1.4.RELEASE.jar:2.1.4.RELEASE]

He is saying with this error message that it does not recognize this piece of code as a regular expression thymeleaf.

Perhaps the thymeleaf approach to treat index is different from the JSP JSTL.

I found this link

and I found this example;

and I tried to do so;

And given that error;

org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 6): Property or field 'rows' cannot be found on object of type '[]' - maybe not public?
at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty( ~[spring-expression-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal( ~[spring-expression-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.expression.spel.ast.PropertyOrFieldReference.access$000( ~[spring-expression-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.expression.spel.ast.PropertyOrFieldReference$AccessorLValue.getValue( ~[spring-expression-4.2.5.RELEASE.jar:4.2.5.RELEASE]

4 years ago

Here I am again asking for your help, unfortunately I believe there are many people who have prejudice with JSF, especially in the forums of discussions as JUG.

I am currently on a project and we're having enough trouble mess in visual programming, I am referring you part of JSF, unfortunately I can not spend all my knowledge to them, I'm like Back-End and my two partners are as Frond- End the project, made several attempts to seek sources of information that shows JSF models with CSS, their problem is not to implement the components, because besides there are many good examples of components in PrimeFaces the site, OmniFaces, ICEFaces and RichFaces, the problem is customize the CSS components, power modifies them, this is a most needs them, but if I try to solve all the difficulties in visual programming, ie, Frond-End, not be able to realize the Back- programming problems End, and to create a Java Web project unfortunately will need a team, I can not do it alone.

We are all a team of programmers who can not work in the labor market, and somo inexperienced, and even made several research to help them, but things I found was only explanations of how to implement a page components, and does not actually is what we need, what we need is customize the JSF components with CSS so that the system does not seem like a desktop program but a Web page as any other page, do not know if could understand.

I know it is to apply ManagerBean with JSP and I did not find this research sources.
If anyone know a good site suggestion that shows how to customize the JSF components with CSS or suggestions of websites that show how to combine ManagerBean with JSP.
I am grateful for any help.
5 years ago
Greeting for all,

am new to Java programmer, and created a Maven application that uses JSF2 + CDI + JPA, it is a news registry that implements upload images, the application is running smoothly, the list appears in a table all the data records in the database data, but does not show the images in the table.

This is the method to get the images;

This is my line of code to grab all images

This is my project on GitHub
5 years ago

I'm with the following algorithm.

This code is giving the following result;

Quantidade de dias: 49

Who does the calculation is the method daysBetween

being the daysBetween method takes only DateTime.

I wish I could get a string and convert to DateTime.

How do I do this?
5 years ago
When you add this line of code in my xhtml page

it generates this error

5 years ago
how do I include a picture?
I'm having problem to validate the two entity fields



Is there something wrong setting?

I will start this post telling you what's going on.

The getFile () method this returning null

I'm managing to save the disk image that JSF project

But when I test it on another page I can not succeed, in fact this page is linked to some attributes of an entity.

The pieces I am having difficulty in this page are these;

it's that

And that's the full page

This is my class Bean

this is the error that occurs when I press the save button.

he gives this message because getFile() is NULL

On the page that has successfully getFile () results in this value

So how to fix this problem?

I made some changes before, because before he was giving this error

So with much research I found this post

And include this class

After that started to generate current errors

is it because of this class that is doing getFile stay Null?
5 years ago
I do not want to visit, I want to modify the method gravarImagem to be able to save the image name in the bank.

Now you could understand?
5 years ago
My class bean can already save the image in my specific directory, I know this because I auditioned, but only lack he can save the String that is the filename that do FileUpload in the database

I'll show part of the produto entity

It contains other attributes and also contains the Getts and setts attribute image.

this is the bean class I'm trying to save the image of the string on the bench

This is the piece of code I'm having trouble

I'm trying to change this method to write the image name in the bank, and I'm not getting

I am using a JSF project with a Hibernate DAO model.

5 years ago
I am Brazilian, and I found this forum a good alternative help. If by chance there was an error on my English I would forgive me.

I'm trying to save the disk image but it is generating me this error.

Here is my bean class

Here's the page

here's my Web.xml file

wondered why is giving the error message, and I would like to correct and resolve the issue.

5 years ago

verifies the application down, I can insert the values ​​of true and false for variables and javaSelecionado cSelecionado, but the method Calculate () does not work, can not enter the calculation that the method has to do.

can someone help me!

6 years ago
I am developing an application to sum ​​values ​​of checkbox `s

I found this line of code, but I knew not adapt it to jsf.

he uses javascript.

is to help me?
6 years ago
excuse my short answer.

I thought they would not answer me, so I wrote some.

I'm in northeastern Brazil.

I want to thank you for the attention, and the next time better put my doubts.

6 years ago
create an application to add the checkbox marked.

can anyone help me?
6 years ago