Hi,

I have a Page which contains Fragment (A) and which in turn contains
Fragment (B). Fragment B has a button. In Fragment B class if I do
button.getForm() I get null. I also tried button.getParent().getParent()
which should be a form - but it returns null as well.

Here is the markup

<body>
        <wicket:extend>
            <div class="subColumnHolder">
                <div wicket:id="feedbackPanel"></div>
                <div wicket:id="viewCartContainer">[Cart Contents
here]</div>
            </div>
            
            <wicket:fragment wicket:id="cartContenttsFragment">
                <h2>Your Shopping Cart</h2>
                <p>Please review your shopping cart and press checkout to
proceed with your order</p>
                <form wicket:id="cartForm">
                    <div class="actionButtons"
wicket:id="cartHeaderToolbar"></div> <-----Fragment cartActionToolbar
....
                </form>
            </wicket:fragment>
            <wicket:fragment wicket:id="cartActionToolbar">
                <input wicket:id="checkoutButton" type="submit"
value="Checkout &lt;&lt;" class="button floatRight"/>    
                ....
            </wicket:fragment>

I have corresponding java code to add components properly - can post if
needed.
-- 
View this message in context: 
http://www.nabble.com/getForm%28%29-on-a-component-inside-2nd-level-Fragment-returns-null--tp19166943p19166943.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]

Reply via email to