Search

4.3. Creating a new action

download PDF
To create a simple web page with a stateless action method, select File New Seam Action:
Enter the name of the Seam component. JBoss Developer Studio selects sensible defaults for other fields:
Finally, hit Finish.
Now go to http://localhost:8080/helloworld/ping.seam and click the button. You can see the code behind this action is in the project src directory. Add a breakpoint to the ping() method, and click the button again.
Finally, open the helloworld-test project, locate PingTest class, right click on it, and choose Run As TestNG Test:
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.