在2008-08-27,"Ritesh Trivedi" <[EMAIL PROTECTED]> 写道:
>
>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
>
>
>        
>            

>                

>                
[Cart Contents
>here]

>            

>            
>            
>                
Your Shopping Cart

>                

Please review your shopping cart and press checkout to
>proceed with your order


>                
>                    
wicket:id="cartHeaderToolbar">
 <-----Fragment cartActionToolbar
>....
>                
>            
>            
>                value="Checkout <<" class="button floatRight"/>    
>                ....
>            
>
>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