2011-12-27 3 views
0

내 사이트에서 grail 's webflow를 사용하여 다단계 등록 프로세스를 관리하고 있습니다. 링크는 시작 상태에 대한 이벤트를 트리거하며 해당보기를 fancybox iframe에로드합니다. 뷰의 URL을 확인하기 위해 grail의 링크 태그를 사용했지만 iframe에 '404'가 표시됩니다.grails webflow 트리거 이벤트를 사용하여 fancybox iframe 콘텐츠로드

트리거 :

<g:link controller="registration" action="register" 
         event="enterStandardDetails" class="register" /> 

URL은/내 사이트/등록/등록 _eventId = enterStandardDetails에 해결합니다.

webflow :

def registerFlow = { 
    enterStandardDetails = { 
     on("next") { 
      // capture mandatory user details 
     }.to("enterOtherDetails") 
    } 

    enterOtherDetails = { 
     on("next") { 
      // capture optional user details 
     }.to("categories") 
     on("previous").to("enterStandardDetails") 
    } 

    registrationComplete = { 
     // display finished state 
    } 
} 

스크립트 :

$("a.register").fancybox({ 
    'width' : '65%', 
    'height' : '90%', 
    'type' : 'iframe' 
}); 

그것을 렌더링 전에 Grails의 뷰 상태에 대응하는 URL을 인터셉트 할 수 있는가? 아니면, 내가 이것을 엔지니어링 할 것인가? 시작 상태에 해당하는보기의 URL을 전달하기 만하면 사용자가 "다음"을 클릭 할 때 흐름이 시작됩니다.

어떤 아이디어 나 생각을 많이 부탁드립니다.

감사, 톰

답변

-1

문제는 내가 fancybox 스크립트를 가져 오는 것을 잊었다이었다.

관련 문제