惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

爱范儿
爱范儿
H
Help Net Security
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
博客园 - 叶小钗
Y
Y Combinator Blog
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
C
Check Point Blog
Recent Announcements
Recent Announcements
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
美团技术团队
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
Apple Machine Learning Research
Apple Machine Learning Research
Microsoft Azure Blog
Microsoft Azure Blog
V
Visual Studio Blog
B
Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - think41/extrasuite: Token-efficient pull/edit/push workflow for AI agents editing Google Workspace files (Sheets, Docs, Slides, Forms) GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - basteez/jsf-autoreload: maven plugin to enable h...
basteez · 2026-04-17 · via Hacker News: Show HN

JSF hot-reload plugin — monitors file changes and automatically refreshes the browser via SSE.

Documentation: https://basteez.github.io/jsf-autoreload/

Features

  • XHTML page reload — detects changes to .xhtml Facelets pages and triggers a browser refresh
  • CSS/JS static resource reload — watches static resources under JSF resource directories
  • Class file reload — monitors .class file changes with configurable debounce to avoid partial reloads
  • Auto-compile on Java source changes — optionally runs a compile command when .java files change
  • SSE-based browser refresh — pushes reload events to the browser via Server-Sent Events (no polling)

Compatibility

Component Supported
Java 8+
JSF (javax) 2.3+ (javax.faces-api)
Jakarta Faces 3.0+ (jakarta.faces-api)
Servlet API 3.0+
Tomcat Officially supported
Other containers Servlet 3.0+ containers (e.g., Jetty, WildFly) may work but are untested

Module Structure

Module ArtifactId Description
Core jsf-autoreload-core Core library — SSE handler, file watcher, configuration, JSF bridge
Tomcat Adapter jsf-autoreload-tomcat Tomcat container adapter
Maven Plugin jsf-autoreload-maven-plugin Maven plugin — watch and auto-compile goals
Integration Tests jsf-autoreload-integration-tests End-to-end tests with embedded Tomcat

Quick Start

1. Add dependencies to your pom.xml:

<dependency>
    <groupId>it.bstz</groupId>
    <artifactId>jsf-autoreload-core</artifactId>
    <version>0.1.0-SNAPSHOT</version>
</dependency>
<dependency>
    <groupId>it.bstz</groupId>
    <artifactId>jsf-autoreload-tomcat</artifactId>
    <version>0.1.0-SNAPSHOT</version>
</dependency>

2. Add the Maven plugin to your <build><plugins> section:

<plugin>
    <groupId>it.bstz</groupId>
    <artifactId>jsf-autoreload-maven-plugin</artifactId>
    <version>0.1.0-SNAPSHOT</version>
    <executions>
        <execution>
            <goals>
                <goal>watch</goal>
            </goals>
        </execution>
    </executions>
</plugin>

3. Run the watch goal:

The plugin will monitor your source directory for changes and automatically recompile and refresh the browser.

javax vs jakarta

The plugin supports both the legacy javax.faces and the modern jakarta.faces namespaces:

  • javax.faces 2.3+ — use javax.faces-api and javax.servlet-api dependencies
  • Jakarta Faces 3.0+ — use jakarta.faces-api and jakarta.servlet-api dependencies

The core library auto-detects the active namespace at runtime via BridgeDetector — no manual configuration is required.

Configuration Reference

web.xml Context Parameters

All context parameters use the prefix it.bstz.jsfautoreload. in web.xml and the prefix jsfautoreload. as system properties. System properties take precedence over web.xml values.

Parameter Type Default Description
enabled boolean true Enable/disable the plugin entirely
debounceMs long 500 Debounce interval (ms) for non-class file changes
classDebounceMs long 1000 Debounce interval (ms) for class file changes
sseEndpointPath String /_jsf-autoreload/events SSE endpoint path for browser connection
autoCompileEnabled boolean false Enable automatic compilation on Java source changes
autoCompileCommand String (none) Shell command to execute for auto-compile
sourceDirectory String src/main/java Java source directory to watch for auto-compile
watchDirs String (none) Comma-separated additional directories to watch
excludePatterns String (none) Comma-separated glob patterns to exclude from watching

Example web.xml configuration:

<context-param>
    <param-name>it.bstz.jsfautoreload.debounceMs</param-name>
    <param-value>300</param-value>
</context-param>

Or via system property:

-Djsfautoreload.debounceMs=300

Maven Plugin Parameters

Parameter Property Default Description
sourceDirectory jsf-autoreload.sourceDirectory src/main/java Source directory to monitor
compileCommand jsf-autoreload.compileCommand mvn compile Compile command to execute on change
autoCompile jsf-autoreload.autoCompile true Enable/disable auto-compile goal

Building from Source

  1. Clone the repository:
    git clone https://github.com/basteez/jsf-autoreload.git
  2. Build all modules:
  3. Run unit and integration tests:

Development Workflow

This project uses Speckit for feature planning. The full workflow for new features is:

  1. Specify — define the feature spec (/speckit-specify)
  2. Plan — create the implementation plan (/speckit-plan)
  3. Tasks — generate the task breakdown (/speckit-tasks)
  4. Implement — execute the tasks (/speckit-implement)

The full workflow is expected for new features. For smaller contributions like bug fixes and documentation improvements, you can skip the planning steps and contribute directly.

License

This project is licensed under the Apache License 2.0.