p:sidebar with p:commandButton

UI Components for Angular
Post Reply
asesinno
Posts: 1
Joined: 01 Oct 2018, 20:50

14 Feb 2020, 14:16

Hello,
i want some advice.
I have code:

<p:sidebar widgetVar="sidebar2" id="sidebarID" position="right" style="width: #{runningTournamentBean.playersOrderedCountMedals}">
<p:commandButton style="width:49%; height: 50px;min-width: 150px" value="#{runningTournamentBean.runnSettings}" action="#{runningTournamentBean.settingsTournament()}"/>
</p:sidebar>


public String settingsTournament() {
return "tournamentSettings";
}

This code redirect me to another page after click. But since this action all p:inputNumber, p:inputText etc. are not avalible. There is no change to click (or TAB) inside to change value. When I enforce focus to any component, then I see cursor inside, but there is again no way to write something. When I move commandButton outside sidebar, everything works correctly. So i dont know why, but I think, that sidebar block focus or something like that. Any ideas?

Thanks,
Martin

-----

<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>7.0</version>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${endorsed.dir}</outputDirectory>
<silent>true</silent>
<artifactItems>
<artifactItem>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>7.0</version>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest