visural-wicket | Apache Wicket components and utilities
kandi X-RAY | visural-wicket Summary
kandi X-RAY | visural-wicket Summary
The main visural-wicket project page can be found at:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of visural-wicket
visural-wicket Key Features
visural-wicket Examples and Code Snippets
Community Discussions
Trending Discussions on visural-wicket
QUESTION
I have a Panel that has an edit state and a view state. I need a control that swaps between TextField and Label based on the Panel's state. For example, in edit state the Panel would display as a TextField and the same field would display as a Label in view state.
This is very similar to the AjaxEditableLabel
, but it is not the same. I am changing multiple Labels in my Form into TextFields at the same time.
In addition to swapping controls, I would like to continue to take advantage of wicket:for
. Here is a proposed markup example:
ANSWER
Answered 2017-Aug-23 at 22:19You can do this by using Wicket Fragment container. Define two fragments in the markup, for the input
and the span
respectively. In the Java code add Fragment with different second parameter depending on your conditions. The TextField and the Label should share the same model to show the same text.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install visural-wicket
You can use visural-wicket like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the visural-wicket component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page