Announcement Announcement Module
Collapse
No announcement yet.
JSF2 commandLink not allway sending an event Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JSF2 commandLink not allway sending an event

    Hi

    My problem is based on commandLinks created in an ui:repeat iteration. The first link created in the iteration is working and sends an event to webflow, the second and following not.
    When i use h:outputLink instead of h:commandLink, all links created in the iteration are working.

    Are there any configuration problems which could explain this? I know it's hard to tell anything without the full project, but maybe someone has an idea where to search...

    Used code in iteration: (outputlink works allways)
    Code:
    <h:commandLink value="Go to person" action="person"/><br/>
    <h:outputLink value="person" >
                <h:outputText value="Go to person 2" />
    </h:outputLink>
    Log of not working commandLink (returns on itselfe because of missing event)
    Code:
    2011.04.08-10:11:24.138 - D - http-8080- - rk.webflow.engine.impl.FlowExecutionImpl -                 | Resuming in [email protected]
    2011.04.08-10:11:24.138 - D - http-8080- - org.springframework.webflow.engine.Flow  -                 | Restoring [FlowVariable@6f8860 name = 'loginForm', valueFactory = [BeanFactoryVariableValueFactory@627bc7 type = LoginForm]]
    2011.04.08-10:11:24.138 - D - http-8080- - org.springframework.webflow.engine.Flow  -                 | Restoring [FlowVariable@1ac4f3e name = 'companyDetailsForm', valueFactory = [BeanFactoryVariableValueFactory@186b0ee type = CompanyDetailsForm]]
    2011.04.08-10:11:24.138 - D - http-8080- - org.springframework.webflow.engine.Flow  -                 | Restoring [FlowVariable@16091de name = 'searchCompanyForm', valueFactory = [BeanFactoryVariableValueFactory@108b095 type = SearchCompanyForm]]
    2011.04.08-10:11:24.279 - D - http-8080- - rk.webflow.engine.impl.FlowExecutionImpl -                 | Resuming in org.springframework.webflow.mvc.servlet.MvcExternalContext@81f8f
    2011.04.08-10:11:24.279 - D - http-8080- - org.springframework.webflow.engine.Flow  -                 | Restoring [FlowVariable@6f8860 name = 'loginForm', valueFactory = [BeanFactoryVariableValueFactory@627bc7 type = LoginForm]]
    2011.04.08-10:11:24.279 - D - http-8080- - org.springframework.webflow.engine.Flow  -                 | Restoring [FlowVariable@1ac4f3e name = 'companyDetailsForm', valueFactory = [BeanFactoryVariableValueFactory@186b0ee type = CompanyDetailsForm]]
    2011.04.08-10:11:24.279 - D - http-8080- - org.springframework.webflow.engine.Flow  -                 | Restoring [FlowVariable@16091de name = 'searchCompanyForm', valueFactory = [BeanFactoryVariableValueFactory@108b095 type = SearchCompanyForm]]
    2011.04.08-10:11:24.310 - D - http-8080- - springframework.webflow.engine.ViewState -                 | Rendering + [JSFView = '/WEB-INF/flows/identification/company/details.xhtml']
    2011.04.08-10:11:24.310 - D - http-8080- - springframework.webflow.engine.ViewState -                 |   Flash scope = map['viewUserEventState' -> [null]]
    2011.04.08-10:11:24.310 - D - http-8080- - springframework.webflow.engine.ViewState -                 |   Messages = [DefaultMessageContext@19f7a91 sourceMessages = map[[null] -> list[[empty]]]]

    Log of working commandLink (allway and only the first from the iteration)
    Code:
    2011.04.08-10:12:16.823 - D - http-8080- - rk.webflow.engine.impl.FlowExecutionImpl -                 | Resuming in [email protected]1
    2011.04.08-10:12:16.823 - D - http-8080- - org.springframework.webflow.engine.Flow  -                 | Restoring [FlowVariable@6f8860 name = 'loginForm', valueFactory = [BeanFactoryVariableValueFactory@627bc7 type = LoginForm]]
    2011.04.08-10:12:16.823 - D - http-8080- - org.springframework.webflow.engine.Flow  -                 | Restoring [FlowVariable@1ac4f3e name = 'companyDetailsForm', valueFactory = [BeanFactoryVariableValueFactory@186b0ee type = CompanyDetailsForm]]
    2011.04.08-10:12:16.823 - D - http-8080- - org.springframework.webflow.engine.Flow  -                 | Restoring [FlowVariable@16091de name = 'searchCompanyForm', valueFactory = [BeanFactoryVariableValueFactory@108b095 type = SearchCompanyForm]]
    2011.04.08-10:12:16.963 - D - http-8080- - springframework.webflow.engine.ViewState -                 | Event 'person' returned from view [JSFView = '/WEB-INF/flows/identification/company/details.xhtml']
    2011.04.08-10:12:16.963 - D - http-8080- - pringframework.webflow.engine.Transition -                 | Executing [Transition@1590b70 on = person, to = personmenu]
    Thanks for your support,
    Adrian
Working...
X