简体   繁体   中英

How to Pop-up/Alert in Seam? (Java)

Thanks for your time!

I'm a Java developer that inherited an existing mostly-done Seam project (viewed with a browser) and am having a hard time tracing through where the errors are because I don't know how to send a message to the user (for debugging) at runtime. Both JOptionPane and System.out.println are not helpful (the former crashes the project). Is there code can I type (either in the Java or the xhtml files) that would send any type of message to the user?* A Pop-up (alert) is preferred but any way of tracing would be great! Thank you!

{*Preferably usable just like a JOptionPane.showMessageDialog}

You can't send a message to the user like you can with JOptionPane, and that's mostly because it's the Web. Pushing data to the browser is possible, using some of the RichFaces components, but it I don't think you want to do that for debugging

When I'm debugging Seam, I use logging (slf4j), and break points in the java code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM