I copied you on the email I sent to the javascript developer but I want to
post the solution that I found here so that it might help others.
In the accordion-menu-v2.css file I commented out one line of code. Here is
the snippet:
html.accordion-menu-js dd.a-m-d-before-expand {
display:block;
position:relative;
z-index:-1;
opacity:0;
height:auto !important;
/* visibility:hidden;*/
overflow:visible;
}
The “visibility:hidden;” style was somehow causing the form component to not
render. Like maybe its style was not being reset after it is expanded or
something.
I do want to point out that this was only occurring in IE7. When I removed
it, it did not seem to break when viewed in other browsers, namely chrome
and safari(Whole thing never works in Mozilla Firefox 5 but that's another
issue).
Nino, thanks for all your help. You might want to test this out and when you
are convinced commit the changes to svn. I still think converting to a more
stable framework will be good but this should be good bubble gum to plug the
hole until then.
Thanks,
Josh
Nino.Martinez wrote:
>
> Looking at YUI... They do actually link directly to the js I based the
> accordion component on:
>
> http://developer.yahoo.com/yui/animation/
>
> Did you try writing to the guy who did the js script?
>
> Nino Saturnino Martinez Vazquez Wael wrote:
>>
>>
>> jchappelle wrote:
>>> Yea, if it is having the problem in the javascript then it has
>>> nothing to do
>>> with wicket. I was just hoping you might be a javascript guru. :-)
>> I only change stuff, if it's really needed. You could break a dozen
>> things when correcting stuff..
>>> I have
>>> recently found some javascript that works for me and I've almost got a
>>> component in wicket created for it. It will work for now.
>>>
>> Okay great.
>>> However, it would be nice to have a component that is backed by a
>>> javascript
>>> library that is maintained and kept up to date like YUI.
>> Yeah, thats my thought too. What ever 3rd party javascript api wicket
>> changes it ajax to, i'll probably start doing components for..
>>> I don't know if I
>>> would worry about the wicket:container or fieldset stuff. It looks
>>> like the
>>> big problem is with the javascript and until that is fixed there is
>>> no use
>>> in tweaking anything else.
>> Yeah my thought too..:(
>>> Let me know if you update the component to use something like YUI. I
>>> would
>>> definately be interested in using it. I could even help out if you
>>> need.
>> Okay.. I'll ponder over it..
>>> Thanks,
>>>
>>> Josh
>>>
>>>
>>> Nino.Martinez wrote:
>>>
>>>> Great that you have done some extensive diagnostics..
>>>>
>>>> jchappelle wrote:
>>>>
>>>>> Thanks for the quick response. I am using wicket 1.3.4. I have been
>>>>> able
>>>>> to
>>>>> reproduce my problem with a very simplified example that is just an
>>>>> extension of the wicket-contrib-accordion-examples project. I have
>>>>> taken
>>>>> the
>>>>> AccordionPage and added another menu item that has a TextField
>>>>> inside of
>>>>> it.
>>>>> It works fine in Safari and Google Chrome, but not in IE7 or
>>>>> Mozilla 5.
>>>>> In
>>>>> IE7 the input is not rendered at all when the menu item is expanded.
>>>>> However
>>>>> when you close it, it shows up for a split second and then goes away
>>>>> again
>>>>> before the menu item fully closes. Also, the normal menu items seem to
>>>>> show
>>>>> up fine when clicked, but when I close them they reopen again and
>>>>> then go
>>>>> closed really quickly.
>>>>> I have run the code with just the barebones html, css and
>>>>> javascript that
>>>>> is
>>>>> available at http://www.hedgerwow.com/360/mwd/accordion/demo.php
>>>>> and I am
>>>>> getting the same problem with the form components but not with the
>>>>> other
>>>>> I
>>>>> mentioned.
>>>> Hmm if you get the same problem here, it's not so great:( Then it's
>>>> out of my hands. And I'd say that we should pick another js lib that
>>>> does not have these issues. I could be convinced to do some YUI
>>>> equalent..
>>>>
>>>>> Could it be the span tags that are in the wicket code? Is it upset
>>>>> because
>>>>> of form components being inside of a span tag maybe?
>>>> Could be, if this is the problem then it's a really really easy
>>>> fix.. I can go see if I can replace it with wicket:container or
>>>> fieldset? WDYT?
>>>>
>>>>> Thanks for your time,
>>>>>
>>>>> Josh
>>>>>
>>>>>
>>>>> Nino.Martinez wrote:
>>>>>
>>>>>> I forgot to mention, that I do think dojo are being picked up at
>>>>>> wicket 1.4, some guys talked about it on the dev list. I take it
>>>>>> you are using the 1.3?
>>>>>>
>>>>>> Nino Saturnino Martinez Vazquez Wael wrote:
>>>>>>
>>>>>>> jchappelle wrote:
>>>>>>>
>>>>>>>> I am trying to render a form inside a Panel within an
>>>>>>>> AccordionPanel. I have
>>>>>>>> even reduced it to trying to only render a TextArea inside a
>>>>>>>> Panel within
>>>>>>>> it. However, when I click on the title of one of the items it
>>>>>>>> expands with
>>>>>>>> nothing but white space within it.
>>>>>>>>
>>>>>>> Sounds a little wierd. What I would do would be to try to have a
>>>>>>> simple mock html that used the accordion js and see if I could
>>>>>>> replicate it there. Theres also a chance that the author of
>>>>>>> accordion.js has some hints on this.
>>>>>>>
>>>>>>>> The examples for the AccordionPanel only have a Label inside a
>>>>>>>> Panel as the
>>>>>>>> content.
>>>>>>>>
>>>>>>> Yeah that's what I needed at the time.
>>>>>>>
>>>>>>>> Is this not possible? I even tried to use the
>>>>>>>> DojoAccordionContainer but it gave some weird error debug messages
>>>>>>>> that
>>>>>>>> splattered all over my webpage(I'm not even sure how that
>>>>>>>> happened unless it
>>>>>>>> found a FeedbackPanel or something).
>>>>>>> Im not sure what state dojo are in.
>>>>>>>
>>>>>>>> I'm starting to lose faith in many of these wicket-stuff
>>>>>>>> projects. PLEASE
>>>>>>>> HELP!
>>>>>>>>
>>>>>>> Well some of the wicketstuff projects are not being maintained,
>>>>>>> AFAIK. People are always welcome to maintain them. I saw you
>>>>>>> wrote a direct mail to me i'll reply on the questions you had there.
>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Josh
>>>>>>>>
>>>>>> --
>>>>>> -Wicket for love
>>>>>>
>>>>>> Nino Martinez Wael
>>>>>> Java Specialist @ Jayway DK
>>>>>> http://www.jayway.dk
>>>>>> +45 2936 7684
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> http://www.nabble.com/file/p19996411/AccordionPage.html
>>>>> AccordionPage.html
>>>>> http://www.nabble.com/file/p19996411/AccordionPage.java
>>>>> AccordionPage.java
>>>>> http://www.nabble.com/file/p19996411/formcontent.html
>>>>> formcontent.html
>>>>> http://www.nabble.com/file/p19996411/formcontent.java
>>>>> formcontent.java http://www.nabble.com/file/p19996411/content.java
>>>>> content.java http://www.nabble.com/file/p19996411/content.html
>>>>> content.html
>>>> --
>>>> -Wicket for love
>>>>
>>>> Nino Martinez Wael
>>>> Java Specialist @ Jayway DK
>>>> http://www.jayway.dk
>>>> +45 2936 7684
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/form-components-within-an-AccordionPanel-tp19980730p20015792.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]