Reply To: Error while extracting values from backing bean

Splash Forums PrettyFaces Users Error while extracting values from backing bean Reply To: Error while extracting values from backing bean

#24310

Robert
Participant

Well, the NPE does come from node label not being injected.

    // Injected
    public void setNodeLabel(String label) {
        node = nodeCache.get(label);
    }

    public String getNodeLabel() {
        return node.getLabel();
    }

The idea is to inject the node label from the URL, look up that node in a cache, and then load its data in later methods.

Does that make sense?

Robert