Good day. Faced the following problem. For some reason, the button in the application does not work. I ask you to explain what could be the "stunts"
Form fragment (Preceded by <_h: form>)
<p:panel> <p:commandButton value="Проверить" actionListener="#{newObject.updatePreview()}" update="screenshotCamera" type="button"/> <br/> <p:graphicImage id="screenshotCamera" cache="false" url="#{newObject.JPGLink}" width="120px" height="120px" alt="Не удается подключиться к камере. Проверьте настройки" /> <br/> <h:outputText value="Если изображения нет, то что-то не так в настройках. Перепроверьте, или обратитесь в службу поддержки." /> <h:panelGrid columns="1"> <h:panelGrid columns="2"> <h:outputText value="Отображать на карте?"/> <p:inputSwitch value="#{newObject.createdCamera.showInTheMap}" onLabel="Да" offLabel="Нет" /> <h:outputText value="Выберете объект :" /> <p:selectOneMenu value="#{newObject.selectedFacility}" effect="fold" > <c:forEach var="facility" items="#{newObject.facilitysForSelect}" > <f:selectItem itemLabel="#{facility.title}" itemValue="#{facility}" /> </c:forEach> </p:selectOneMenu> </h:panelGrid> <p:commandButton value="Все верно!" action="#{newObject.createCamera}" actionListener="#{viewController.setCurrentContent('cameras')}" /> </h:panelGrid> Bean Fragment:
public void updatePreview(){ createdCamera.setJPGLink("http://"+cameraLogin+":"+cameraPassword+"@"+cameraWanIP+":"+cameraPort+"/Streaming/channels/1/picture?snapShotImageType=JPEG"); System.out.println("Link updated"); } So the console is silent. No errors, no messages. Both in the console and in
p:messages autoupdate="true" How or what to debug?