MasterDetail Autocomplete

Community Driven Extensions Project
Post Reply
zener7
Posts: 7
Joined: 31 Mar 2015, 22:10

28 Aug 2015, 21:51

I use primefaces 5.2 end Extention. I have component MasterDetail and in Autocomplete.
When I use Autocomplete with event selectItem I get error:
org.primefaces.application.exceptionhandler.PrimeExceptionHandler handle
SEVERE: Target Unreachable, identifier 'slownikDetail' resolved to null
javax.el.PropertyNotFoundException: Target Unreachable, identifier 'slownikDetail' resolved to null
at com.sun.el.parser.AstValue.getTarget(AstValue.java:131)
at com.sun.el.parser.AstValue.setValue(AstValue.java:185)
at com.sun.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:286)
at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)
at javax.faces.component.UIInput.updateModel(UIInput.java:832)
at javax.faces.component.UIInput.processUpdates(UIInput.java:749)

So far when I had this problem in CommandButton I set attribute process=@this and it was solved. But in this case is problem because Autocomplete have not attribute process?

I don't have any idea. Help me, please
Primefaces 5.2

djmj
Posts: 388
Joined: 16 Dec 2011, 01:23

07 May 2018, 02:16

Even if this thread is old i observed this error very often. In your command component where you jump to the select level, it often helps to update the whole form / masterDetail.

Code: Select all

<p:commandButton process="@this" update="@form">
    <pe:selectDetailLevel level="2"/>
</p:commandButton>
A second workaround you can try to put an empty dummy <pe:selectDetailLevel/> inside your autocomplete.


In PrimeFaces 6.1 autocomplete is also not working inside masterdetail level in case a rendered attribute is used on it or one of its parents.
Primefaces: 6.2
Primefaces-Extension: 6.2.2
OmniFaces: 3.0
Jsf: Mojarra 2.3.2
Server: Glassfish 5.0.0

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest