Re: Error using DefaultDataTable in version 1.4-m3 WicketTester

2008-10-03 Thread zaheers

I am using a DefaultDatatable in the SearchPanel. The actual component works
fine and the table is displayed correctly in the GUI. 
The error is only when I execute the Testcase. I have attached the generated
mark-up in my previous message. Attaching the test case and the panel java /
mark up here. http://www.nabble.com/file/p19804396/SearchPanel.html
SearchPanel.html  http://www.nabble.com/file/p19804396/SearchPanel.java
SearchPanel.java  http://www.nabble.com/file/p19804396/SearchPanelTest.java
SearchPanelTest.java 


igor.vaynberg wrote:
 
 apparently you are missing /dd somewhere. it would be infinitely
 more helpful if you showed the markup from profilepanel or wheverer
 you are using the dl/dd
 
 -igor
 
 On Fri, Oct 3, 2008 at 12:33 PM, zaheers [EMAIL PROTECTED]
 wrote:

 Getting the following exception when testing a Panel that uses a
 DefaultDatatable. Detailed error file is attached.

 Thanks for your input.

 Caused by: java.text.ParseException: Tag 'DD' (line 103, column 32) has
 a
 mismatched close tag at '/DL' (line 103, column 74)


 //start and render the test page
tester.startPanel(new TestPanelSource(){
public Panel getTestPanel(String pPanelId){
return new ProfilePanel(pPanelId);
}
});

 http://www.nabble.com/file/p19804181/com.compuware.petstore.application.search.SearchPanelTest.txt
 com.compuware.petstore.application.search.SearchPanelTest.txt
 --
 View this message in context:
 http://www.nabble.com/Error-using-DefaultDataTable-in-version-1.4-m3-WicketTester-tp19804181p19804181.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]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-using-DefaultDataTable-in-version-1.4-m3-WicketTester-tp19804181p19804396.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]



Re: Error using DefaultDataTable in version 1.4-m3 WicketTester

2008-10-03 Thread zaheers

Igor,

I don't use them in the application. it is something that is getting
generated in the mark-up.  Guess wicket generates this mark-up. Following
line is where the error is occuring. 

DTDTType Parameters:DDCODET/CODE - The model object type/DL

Do you believe the root cause for this is in the application ?. Re-sending
the mark-up file. pl. look at line 110
http://www.nabble.com/file/p19804688/com.compuware.petstore.application.search.SearchPanelTest.txt
com.compuware.petstore.application.search.SearchPanelTest.txt 

Thanks,



igor.vaynberg wrote:
 
 still dont see anything that uses dd/dl tags
 
 -igor
 
 On Fri, Oct 3, 2008 at 12:46 PM, zaheers [EMAIL PROTECTED]
 wrote:

 I am using a DefaultDatatable in the SearchPanel. The actual component
 works
 fine and the table is displayed correctly in the GUI.
 The error is only when I execute the Testcase. I have attached the
 generated
 mark-up in my previous message. Attaching the test case and the panel
 java /
 mark up here. http://www.nabble.com/file/p19804396/SearchPanel.html
 SearchPanel.html  http://www.nabble.com/file/p19804396/SearchPanel.java
 SearchPanel.java 
 http://www.nabble.com/file/p19804396/SearchPanelTest.java
 SearchPanelTest.java


 igor.vaynberg wrote:

 apparently you are missing /dd somewhere. it would be infinitely
 more helpful if you showed the markup from profilepanel or wheverer
 you are using the dl/dd

 -igor

 On Fri, Oct 3, 2008 at 12:33 PM, zaheers [EMAIL PROTECTED]
 wrote:

 Getting the following exception when testing a Panel that uses a
 DefaultDatatable. Detailed error file is attached.

 Thanks for your input.

 Caused by: java.text.ParseException: Tag 'DD' (line 103, column 32)
 has
 a
 mismatched close tag at '/DL' (line 103, column 74)


 //start and render the test page
tester.startPanel(new TestPanelSource(){
public Panel getTestPanel(String pPanelId){
return new ProfilePanel(pPanelId);
}
});

 http://www.nabble.com/file/p19804181/com.compuware.petstore.application.search.SearchPanelTest.txt
 com.compuware.petstore.application.search.SearchPanelTest.txt
 --
 View this message in context:
 http://www.nabble.com/Error-using-DefaultDataTable-in-version-1.4-m3-WicketTester-tp19804181p19804181.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]



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 View this message in context:
 http://www.nabble.com/Error-using-DefaultDataTable-in-version-1.4-m3-WicketTester-tp19804181p19804396.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]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-using-DefaultDataTable-in-version-1.4-m3-WicketTester-tp19804181p19804688.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]



retrieving item model object in a form using datatable

2008-09-25 Thread zaheers

I am using a Datatable and DataProvider classes in a search form for paging
and sorting. I need to add a link column to display the item detail panel
upon clicking of the link. I am not sure how to obtain the model of an
individual item when using the datatable. Would you pl. provide some
pointers. Code and screenshot attached.
http://www.nabble.com/file/p19670783/screen-shot.doc screen-shot.doc 
http://www.nabble.com/file/p19670783/SearchPanel.txt SearchPanel.txt 
-- 
View this message in context: 
http://www.nabble.com/retrieving-item-model-object-in-a-form-using-datatable-tp19670783p19670783.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]



Refreshing a Panel on Form onSubmit()

2008-09-23 Thread zaheers

I have a Panel  that has the search criteria as well as the search results.
The results are to be refreshed every time user clicks on the search button.
I am doing this by storing a List as an instance variable and passing the
list to the PageableListView. But I see that the panel is not refreshed with
results when the search button is clicked. How to refresh the Panel. Thanks
for your help.

http://www.nabble.com/file/p19629724/SearchPanel.java SearchPanel.java 
-- 
View this message in context: 
http://www.nabble.com/Refreshing-a-Panel-on-Form-onSubmit%28%29-tp19629724p19629724.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]



Form Constructor is not invoked

2008-09-11 Thread zaheers

Appreciate your help with this issue. 

Our application has a HomePage called PetStorepage which adds different
Panels as links. When the Profile Panel link is clicked the ProfileForm
constructor should be invoked. But I see that the ProfileForm constructor is
invoked only the first time the PetStorePage is called. Subsequent clicks on
the ProfilePanel link from within the PetStorePage do not invoke the
ProfileForm constructor although the page gets rendered. 

Due to this the logic to enable or disable a component if some variable is
set in session is not getting executed. How to resolve this ?.


http://www.nabble.com/file/p19441401/ProfilePanel.txt ProfilePanel.txt 
http://www.nabble.com/file/p19441401/PetStorePage.txt PetStorePage.txt 
http://www.nabble.com/file/p19441401/SwitchingLink.txt SwitchingLink.txt 
-- 
View this message in context: 
http://www.nabble.com/Form-Constructor-is-not-invoked-tp19441401p19441401.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]



Re: Form Constructor is not invoked

2008-09-11 Thread zaheers

No, because we're trying to make the form automatically refresh when the
panel's page is refreshed, by using a dynamic model.  Is this something that
would not be possible with forms?


igor.vaynberg wrote:
 
 when the link is clicked are you calling new ProfileForm() ?
 

-- 
View this message in context: 
http://www.nabble.com/Form-Constructor-is-not-invoked-tp19441401p19441811.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]