- 
        1. Re: Page restrict tag, Ajax call and POST parameterjagin Apr 22, 2009 12:03 PM (in response to jagin)It would be nice to have something like: <restrict on-postback="false"> 
- 
        2. Re: Page restrict tag, Ajax call and POST parameterjagin Apr 23, 2009 8:10 AM (in response to jagin)I have added a JIRA issue: https://jira.jboss.org/jira/browse/JBSEAM-4141 I hope that it will be solved somehow. It's a big blockage in my project. restrich tag with some request parameter dependent objects is useless on page with ajax-POST action. Regards Jarek 
- 
        3. Re: Page restrict tag, Ajax call and POST parameteraccless Apr 23, 2009 9:22 AM (in response to jagin)Hi Jarek, in your case i would suggest a work around First Option <h:inputText id="projectId" value="#{projectHome.instance.id}" /> <h:commandButton value="OK"> <a:actionparam name="projectId" value="$('projectId').value" noEscape="true" assignTo="#{projectHome.instance.id}/> </h:commandButton>the value of the actionparam should be assigned during the apply-request-value phase of the jsf-life-cyble and right before the restriction is evaluated Second option Just make a dummy method and place the restriction as an annotation on that method and remove it from the page.xml. 
 This will ensure the same order as described in the first option<h:form > <h:inputText id="projectId" value="#{projectHome.instance.id}" /> <h:commandButton value="OK" action="myDummyRestrictionMethod"/> </h:form >greetings 
- 
        4. Re: Page restrict tag, Ajax call and POST parameterjagin Apr 23, 2009 9:47 AM (in response to jagin)That's ok with some form on the page. Thanx But on my IssueView.xhtml i show some issue details and i have <rich:simpleTogglePanel id="auditTogglePanel" opened="false" switchType="ajax" label="#{messages['revisionHistory']}" action="#{revisionManager.loadRevisionEntries(instance)}"> . . . </rich:simpleTogglePanel>for the issue change history. This panel is closed by default and is opened by ajax call. 
 So going to IssueView.xhtml by by GET request like http://localhost:8080/myapp/issue/view/4449
 is OK for restriction. But after ajax opening the toggle panel i got permission exception because
 issueHome is not initialized properly before restriction check.
- 
        5. Re: Page restrict tag, Ajax call and POST parameteraccless Apr 23, 2009 10:07 AM (in response to jagin)u are using converstions, right? are u sending the conversationId as well? u should put the <s:conversationId/> to all ajax-components. 
- 
        6. Re: Page restrict tag, Ajax call and POST parameterjagin Apr 23, 2009 11:09 AM (in response to jagin)No, i am not using long term conversation. It is a simple view page with object id param. Where shoud I put <s:conversationId/> for <rich:simpleTogglePanel> I tried to put it inside the tag and also to wrap it with h:form and put s:conversationId inside h:form. It's not working. 
 
    