On Tue, Nov 25, 2008 at 5:19 PM, Charles Mason <[EMAIL PROTECTED]> wrote: > Hi all, > > I am having a few problems with the TabSet component from the > T5Components collection. For those that don't know its a fairly simple > CSS Tab set which uses Java Script to show and hide various Div tags > to give the effect of dynamic tabs. It uses Ajax to silently inform > Tapestry of the current tab so page reloads always maintain the > current visible tab. > > The page loads fine and appears to work, however after a tab is > changed a massive (fullscreen at 1280x1024) message box appears. > Basically its all the HTML from the usual extensive tapestry exception > page. My app like the TabSet demo uses the the blow code to recive the > currently selected tab ID. > > @OnEvent(component = "tabset", value = "action") > public void onChange(String choosenPanelId) > { > activePanel = choosenPanelId; > } > > The problem is Tapestry for whatever reason is expecting a method > without the chossenPanelId parameter which evidently wouldn't be of > any use. > > I am using this TabSet on a page which has an onActive and onPassivate > methods. From what I can tell the Action link used by the AJAX request > is not recognised because of the extra onActivate parameter in the > URL. Below is the first line of the request I found its producing > (according to Wire Shark). > > POST /site/sccbreakdownsection.adviceeditor.tabset?t:ac=107/actionItems > HTTP/1.1 > > The TabSet control generates a new Event Link with no prams then this > is URL is provided the pages Java Script code. It then tacks on a > forward slash and the selected panels ID. In the above example > "actionItems", 107 is the onActivate parameter. > > Can some one tell me what the correct URL for this link would look > like? Where should the Action Links parameter and the onActivate > parameter appear in the URL. > > > Thanks > > Charlie M >
I have worked out a solution to the problem. In case anyone else is experiencing it I have opened and issue on the projects issue tracker. I have also submited my fixed version of the control to the issue tracker. The issue is at the address below. http://code.google.com/p/tapestry5-components/issues/detail?id=99 Hope that helps anyone who has also experienced the same problem. Charlie M --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]