Apache Wicket 8.x Reference Guide
session-scoped cache is faster then the other memory levels but it contains only the pages used to serve the last request. Wicket allows us to set the maximum amount of memory allowed for the 48 application-scoped stateful pages, but sometimes we might want to use an “old school” stateless page that doesn’t keep memory of its state in the user session. For example consider the public area of a site or a login page: label = new Label("spouseName", new PropertyModel(person, "spouse.name")); PropertyModel is null-safe, which means we don’t have to worry if property expression includes a null value in its path. If0 码力 | 350 页 | 9.95 MB | 1 年前3Apache Wicket 7.x Reference Guide
session-scoped cache is faster then the other memory levels but it contains only the pages used to serve the last request. Wicket allows us to set the maximum amount of memory allowed for the 47 application-scoped stateful pages, but sometimes we might want to use an “old school” stateless page that doesn’t keep memory of its state in the user session. For example consider the public area of a site or a login page: label = new Label("spouseName", new PropertyModel(person, "spouse.name")); PropertyModel is null-safe, which means we don’t have to worry if property expression includes a null value in its path. If0 码力 | 346 页 | 10.00 MB | 1 年前3Apache Wicket 10.x Reference Guide
stateful pages, but sometimes we might want to use an “old school” stateless page that doesn’t keep memory of its state in the user session. For example consider the public area of a site or a login page: = new Label("spouseName", new PropertyModel(person, "spouse.name")); 79 PropertyModel is null-safe, which means we don’t have to worry if property expression includes a null value in its path. If could be a very large instance, hence serialization would become very expensive in terms of time and memory. 2. We simply may not be able to use a serializable object as model object. In paragraphs 1.4 and0 码力 | 336 页 | 7.16 MB | 1 年前3Apache Wicket 9.x Reference Guide
stateful pages, but sometimes we might want to use an “old school” stateless page that doesn’t keep memory of its state in the user session. For example consider the public area of a site or a login page: = new Label("spouseName", new PropertyModel(person, "spouse.name")); 78 PropertyModel is null-safe, which means we don’t have to worry if property expression includes a null value in its path. If could be a very large instance, hence serialization would become very expensive in terms of time and memory. 2. We simply may not be able to use a serializable object as model object. In paragraphs 1.4 and0 码力 | 335 页 | 7.15 MB | 1 年前3
共 4 条
- 1