Win a copy of Rust Web Development this week in the Other Languages forum!

Fernando Dominguez

Ranch Hand
+ Follow
since Sep 01, 2006
Fernando likes ...
Eclipse IDE Firefox Browser Debian
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
6
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fernando Dominguez

It makes total sense.
Thanks a lot.
3 years ago
Hi there,

I'm having  memory issues  trying to deploy an application using a WAR with a lot of libraries in it.

My question is, does the server load each library when it needs it or are all libraries  loaded by default at the time of deployment?

btw, I'm using Jboss.

Thanks in advance.
3 years ago
Hi there,

I'm new to JSF and I'm trying to make my first example to work.
I'm using JSF 2.2. I'm deploying it on a wildfly 11 server using eclipse
It's just a simple bean but I get this error:

javax.servlet.ServletException: /index.xhtml @13,59 value="#{userBean.password}": Target Unreachable, identifier 'userBean' resolved to null
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:67)
at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction$$Lambda$311/510072597.call(Unknown Source)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction$$Lambda$312/1485449847.call(Unknown Source)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1526)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction$$Lambda$312/1485449847.call(Unknown Source)
at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:830)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.el.PropertyNotFoundException: /index.xhtml @13,59 value="#{userBean.password}": Target Unreachable, identifier 'userBean' resolved to null
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:100)
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:95)
at javax.faces.component.UIInput.getConvertedValue(UIInput.java:1046)
at javax.faces.component.UIInput.validate(UIInput.java:976)
at javax.faces.component.UIInput.executeValidate(UIInput.java:1249)
at javax.faces.component.UIInput.processValidators(UIInput.java:712)
at javax.faces.component.UIForm.processValidators(UIForm.java:253)
at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1261)
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1195)
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
... 42 more
Caused by: javax.el.PropertyNotFoundException: Target Unreachable, identifier 'userBean' resolved to null
at com.sun.el.parser.AstValue.getTarget(AstValue.java:173)
at com.sun.el.parser.AstValue.getType(AstValue.java:85)
at com.sun.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:201)
at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:98)
... 54 more


Here is the code



faces-config.xml



web.xml




I have tryed to configure the proyect in several ways.

1- With the libraries provided by the run time
2 -Disabling library configuration and then adding theMojarra libs
3- As a user library
And I always get the same error mensage.

Any suggestions?
Thanks.
3 years ago
JSF
Yes, There is a typo there but that is not the problem.

Thanks.
5 years ago
JSF
Hello,

I'm writing this lines because I'm having problems trying to make a custom validator  work.

When I refer to the validator in the  line  


I get an error message saying that the expression employeeTitleValidor has not been found.

This is the code, everything is locate in the same package:



I'm using wildFly 10 and its libraries.

thanks in advance.
5 years ago
JSF
Thanks a lot to both of you for the quick reply.
5 years ago
Hi there,
My reason for writing here is to find out if there is a way to tell a JComboBox to display one property of the bean it is holding.

My JComboBox holds a List of the Bean <Producto> . It is currently displaying the whole properties of the Bean on the screen

This way

codigo=1;descripcion=A;categoria=y;
codigo=2;descripción=B;categoria=z

and so on
is there any any way to tell the JComboBox to display one property only.
I mean, for example description



Thanks in advance
5 years ago
Thank you for your quick reply!

For whatever reason there were any problems creating any pdf I would have to delete all of them.

So, I think is better to make sure that everything goes well before writting to disk.

Thanks.
Hi there,
I’m having a little issue creating PDFS using the itext lib.


This code creates pdfs in the file system one by one.

Everytime I create one I need to get an instance of new FileOutputStream(archivo).

I would like to create PDFs in memory (object), and after having created all of them, write to disk

Is it possible using this lib without making too many changes?

Thanks
I am really grateful for your interest but have dediced to get rid of that code, I'm going to usue jquery instead.

Thank you.
I tried to run that code in IE 11.
Hello.

I would like to know why IE takes takes such amount of time when there are a lot options to populate the select but firefox do it very fast.

Thanks in advanced.

Hello Rakesh.
I few words, window.name is a property of the window object that I used to manage using javascript, but now I'd like manage it using java if it was possible.
I thank you for the attention you paid, but I'm afraid there's not way of getting that property using java.
Thanks.
8 years ago
I'll take your advice, I'll try to find an easier way.

Thanks.
8 years ago
Hello.

I'd like to retrieve window.name in a servlet.

Is it possible?

Thanks.
8 years ago