Results 1 to 2 of 2

Thread: Facelet taglib & webflow issue (caching?)

  1. #1
    Join Date
    Sep 2009
    Posts
    13

    Default Facelet taglib & webflow issue (caching?)

    I struggling with odd issue. I have a simple TestComponent, pseudocode:

    Code:
    public class TestComponent extends UIOutput {
      public String propertyA .... setter .. getter
    
    @Override
    public void encodeBegin {
      responsewriter.write (propertyA);
    This component is declared in <facelet-taglib> and placed in webflow view test.xhtml as

    <t:test propertyA="test1" />

    The problem is that when I open page for the first time, this component renders OK, but then I hit on refresh button (or go forward - back), setter of propertyA is not called at all and propertyA is null, so component does not work as it should.

    Is this an expected behaviour? If yes, than that is good practice to walk around this issue?

  2. #2
    Join Date
    Sep 2009
    Posts
    13

    Default

    I think I've diged some facts that help to understand an issue. My xhtml included <h:form> tag, and when this tag is in xhtml, I'm having "caching" issues - not only describen above, but also do not switching language strings like #{msg['string1']}. It seems that when there are h: tags in xhtml, control tree is built only once.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •