Re: How to get rid of wicket:id in XML output

2008-10-03 Thread Martin Grigorov

On Thu, 2008-10-02 at 09:35 -0700, Jonathan Locke wrote:
 
 btw, shouldn't we fail init if super isn't called in this case like those
 other protections we built in?
+1
 
 Martijn Dashorst wrote:
  
  Why mocking with that setter. Put wicket in deployment mode. That way
  you can't mess up the order of setting things. Read chapter 14 of
  Wicket in Action on configuring Wicket—it will tell you to call
  super.init() first before doing anything yourself. It also instructs
  you to *NEVER* deploy your web app with development mode to a
  production system.
  
  Martijn
  
  On Wed, Oct 1, 2008 at 2:24 PM, Stefan Lindner [EMAIL PROTECTED]
  wrote:
  I'm trying to build a dynamic site map according to Michael Sparers
  article
  http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
  Instead of an HTML page a XML page is used with XML markup looking like
 
 ?xml version=1.0 encoding=UTF-8?
 urlset xmlns=http://www.sitemaps.org/schemas/sitemap/0.9;
url wicket:id=urlList
 loc wicket:id=locNodehttp://www.example.com//loc
 lastmod wicket:id=lastmodNode2005-01-01/lastmod
 changefreq wicket:id=changefreqNodemonthly/changefreq
 priority wicket:id=priorityNode0.8/priority
 /url
 /urlset
 
  When I use a ListView for urlList and add Labels for locNode etc.
  the wicket:id properties are included in the XML output.
 
  How can I get rid of wicket:id? Setting a global
  getMarkupSettings().setStripWicketTags(true) does not work.
 
  I use Wicket 1.4M3
 
  Stefan
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  
  
  
  -- 
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.3.4 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
  
  -
  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]



Re: using Prototype.js and Scriptaculous with latest version of wicket

2008-10-03 Thread Martin Grigorov
Wicket is (mostly) server-side web framework so it is no problem to mix
it with any client-side JS library.

Get inspired by:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-scriptaculous

On Thu, 2008-10-02 at 08:18 -0700, ilanfox wrote:
 Hello,
 
 I am considering starting a new project (web app) with Wicket.
 This project will be based heavily on JavaScript with Prototype and
 Scriptaculous.
 Most of the UI will be generated via JavaScript and the also the new CANVAS
 tag will be used.
 I really need to know if I'm going the right direction. is it safe to
 combine the Prototype lib with Wicket?
 Do I need to fully understand how Wicket works before trying to combine it?
 my prior expropriate is mostly with struts1.
 
 Thanks in advance. 
 Ilan F
 
 


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



AjaxFallbackDefaultDataTable with ajax lazy loading - sorting and paging throws an IllegalStateException

2008-10-03 Thread Yazeed Isaacs
Hi

I have an AjaxFallbackDefaultDataTable table and I am using an 
AjaxLazyLoadPanel when rendering this table. When I click the AjaxButton the 
table lazy loads.

To summarize (in short) I have a AjaxButton that when clicked the onSubmit() 
method creates the AjaxLazyLoadPanel, the AjaxLazyLoadPanel's 
getLazyLoadComponent() method returns the AjaxFallbackDefaultDataTable table. 
Therefore the AjaxLazyLoadPanel renders as the AjaxFallbackDefaultDataTable 
table.

The table lazy loads correctly, but when I click on a column in order to sort 
it or click on the page navigation links, I get the following error:

java.lang.IllegalStateException: Ajax render cannot be called on component that 
has setRenderBodyOnly enabled.
...
Component id = content, page = 
za.co.transactionjunction.transpector.pages.TransactionQueryPage, path = 
8:transactionQueryForm:transactions:content.AjaxFallbackDefaultDataTable

Where transactions is the AjaxLazyLoadPanel.

Am I missing something? Please help.

Regards,
Yazeed Isaacs




RE: How to update ListChoice after form submission?

2008-10-03 Thread Shelah Horvitz
Thank you, Igor, for getting back to me so quickly.  Actually, thank you for 
answering at all.

I thought of the onclick handler, but the AjaxFallbackButton doesn't have an 
onClick() function.  It does have a getOnClickScript() which I can override, 
but I believe the timing will be off.  I think it will fire before the form is 
submitted.  Hold on, I think I get what you're saying: write some JavaScript 
AJAX for the onclick script that will call whatever routines I need to create 
the user and then update the ListChoice's model.  I don't need to do anything 
with the onSubmit() overload.  Is that what you're saying?  I will try it.  I 
think it's a good idea.

An interesting aspect of this solution is that I don't think I even need a 
form.  I think the validation of control inputs would happen after the onclick 
handler returns.  I think this is a strictly roll-your-own solution.

Have I got it right?


From: Igor Vaynberg [EMAIL PROTECTED]
Sent: Thursday, October 02, 2008 4:42 PM
To: users@wicket.apache.org
Subject: Re: How to update ListChoice after form submission?

inside the onclick of your ajaxfallbackbutton you have to add the
listchoice to the target so wicket rerenders it

-igor

On Thu, Oct 2, 2008 at 12:49 PM, Seven Corners [EMAIL PROTECTED] wrote:

 I have a page with a ListChoice of user names that is populated with a call
 to our server (loadUserNames()).  The page also contains a number of
 TextFields corresponding to the user's other attributes.  When you modify
 those text fields so the user name doesn't correspond to anything in the
 list, the Add AjaxFallbackButton enables.  Click this, and you make a call
 to the server which creates the new user.

 The new user does not show up in the ListChoice.  If you refresh the page,
 it does, so we know it's created, and we know that loadUserNames() will
 return the correct list if it were called and its values were used..  I want
 the new user name to show up in the ListChoice after submission, and I'd
 like to be able to set the selection in the ListChoice to the new user.
 I've tried giving the ListChoice a LoadableDetachableModel, I've tried
 giving it an ArrayList model with a call to loadUserNames() and setChoices()
 on the ListChoice after submission, I've tried a
 AjaxFormComponentUpdatingBehavior( onsubmit ), hoping this might fire
 after submission, I've tried using a call to
 getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER)
 in my application class's init() method, I've tried a ton of things and I
 can't figure this out.

 Any ideas?
 --
 View this message in context: 
 http://www.nabble.com/How-to-update-ListChoice-after-form-submission--tp19786374p19786374.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]


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



which browser is preferrable for Wicket 1.3

2008-10-03 Thread newbie_to_wicket

Hi,
I'm facing some issues with browser ( IE and Mozilla Firefox ) ..

In Internet Explorer everything is working fine but in Firefox some css
issues ( components are not displaying in accurate position  ) are there. 

did any body come across this kind of problem earlier , if you have the
solution please help me 

I want to work the pages correctly in both IE and Firefox, this is my
project requirement.:confused:

thanks
J

-- 
View this message in context: 
http://www.nabble.com/which-browser-is-preferrable-for-Wicket-1.3-tp19797602p19797602.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]



AbstractPageStore memory implementation instead of disk

2008-10-03 Thread Ard Schrijvers
Hello everybody,

Did anybody perhaps ever implement a memory version of the
AbstractPageStore. Currently, I only see a DiskPageStore, which happens
to be quite a large cpu bottleneck for Windows users AFAICS. 

So, before starting to implement one, just wondering whether somebody
has experience on a memory page store version,

Thx for any pointers,

Regards Ard

[EMAIL PROTECTED] - [EMAIL PROTECTED] - www.onehippo.com
-
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
94952-3329 +1 (707) 773-4646
-

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



Adding Adobe Media Player in wicket

2008-10-03 Thread newbie_to_wicket

Hi all,

In our application I've to add Adobe media player to play some video clips.

can any body worked on this, if you worked this kind of situations , please
give me some small examples .

I'm very glad if you help in this regard.

Thanks 
J


-- 
View this message in context: 
http://www.nabble.com/Adding-Adobe-Media-Player-in-wicket-tp19797690p19797690.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: which browser is preferrable for Wicket 1.3

2008-10-03 Thread John Krasnay
Hehe, welcome to Web development my friend!

IE6 is very old, and it contains a large number of rendering quirks that
are not present in modern browsers (FireFox, Safari, Opera). IE7 is
much better, but IE6 still commands a large segment of the browser
market.

I would suggest developing for a modern browser such as FireFox, then
testing on IE6 and IE7 and putting workarounds for the things they mess
up. There are entire web sites dedicated to documenting IE quirks and
their workarounds. http://positioniseverything.net is a good one.

Note that this is almost certainly *not* a Wicket issue, since Wicket
generates the same markup regardless of browsers. If you have questions
about specific rendering issues, you might want to ask on a site that
deals with browser rendering issues.

Hope this helps.

jk


On Fri, Oct 03, 2008 at 06:20:41AM -0700, newbie_to_wicket wrote:
 
 Hi,
 I'm facing some issues with browser ( IE and Mozilla Firefox ) ..
 
 In Internet Explorer everything is working fine but in Firefox some css
 issues ( components are not displaying in accurate position  ) are there. 
 
 did any body come across this kind of problem earlier , if you have the
 solution please help me 
 
 I want to work the pages correctly in both IE and Firefox, this is my
 project requirement.:confused:
 
 thanks
 J
 
 -- 
 View this message in context: 
 http://www.nabble.com/which-browser-is-preferrable-for-Wicket-1.3-tp19797602p19797602.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]



Re: Create Contact Us Page

2008-10-03 Thread newbieabc

Thank you. I was able to successfully use JavaMail API for the Contact page.
I have another question related to the page, I'm not sure if I should ask it
in this thread or not...

I had done the rough page , and now that it works, started adding the
validations, to make sure required data in entered.

Some how the setRequired and EmailAddressValidators keep throwing errors if
I leave those fields blank.
I've put in a feedback panel, but instead of just showing a feedback
message, the page shows the exceptionsI'm not sure why.
If I don't use validators, the page runs fine, whether I enter data or
not...
Any ideas?

Thanks


jwcarman wrote:
 
 Take a look at form processing and perhaps the JavaMail API (or Apache
 Commons Email for a simpler API).
 
 On Wed, Sep 17, 2008 at 2:35 PM, newbieabc [EMAIL PROTECTED] wrote:

 I'd like to create a Contact Us (by email) page, that lets users send
 their
 inquiries directly from the web page to an email address, without using
 outlook.
 Could someone give me some direction on how to go about doing this in
 wicket?

 Thank you.
 --
 View this message in context:
 http://www.nabble.com/Create-%22Contact-Us%22-Page-tp19538477p19538477.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/Create-%22Contact-Us%22-Page-tp19538477p19799961.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: How to get rid of wicket:id in XML output

2008-10-03 Thread Igor Vaynberg
jira issue

-igor

On Thu, Oct 2, 2008 at 11:45 PM, Martin Grigorov [EMAIL PROTECTED] wrote:

 On Thu, 2008-10-02 at 09:35 -0700, Jonathan Locke wrote:

 btw, shouldn't we fail init if super isn't called in this case like those
 other protections we built in?
 +1

 Martijn Dashorst wrote:
 
  Why mocking with that setter. Put wicket in deployment mode. That way
  you can't mess up the order of setting things. Read chapter 14 of
  Wicket in Action on configuring Wicket—it will tell you to call
  super.init() first before doing anything yourself. It also instructs
  you to *NEVER* deploy your web app with development mode to a
  production system.
 
  Martijn
 
  On Wed, Oct 1, 2008 at 2:24 PM, Stefan Lindner [EMAIL PROTECTED]
  wrote:
  I'm trying to build a dynamic site map according to Michael Sparers
  article
  http://cwiki.apache.org/WICKET/seo-search-engine-optimization.html
  Instead of an HTML page a XML page is used with XML markup looking like
 
 ?xml version=1.0 encoding=UTF-8?
 urlset xmlns=http://www.sitemaps.org/schemas/sitemap/0.9;
url wicket:id=urlList
 loc wicket:id=locNodehttp://www.example.com//loc
 lastmod wicket:id=lastmodNode2005-01-01/lastmod
 changefreq wicket:id=changefreqNodemonthly/changefreq
 priority wicket:id=priorityNode0.8/priority
 /url
 /urlset
 
  When I use a ListView for urlList and add Labels for locNode etc.
  the wicket:id properties are included in the XML output.
 
  How can I get rid of wicket:id? Setting a global
  getMarkupSettings().setStripWicketTags(true) does not work.
 
  I use Wicket 1.4M3
 
  Stefan
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  --
  Become a Wicket expert, learn from the best: http://wicketinaction.com
  Apache Wicket 1.3.4 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
 
  -
  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]



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



Re: AbstractPageStore memory implementation instead of disk

2008-10-03 Thread Igor Vaynberg
do you have some statistics for us? or some profiler timing screenshots?

-igor

On Fri, Oct 3, 2008 at 6:21 AM, Ard Schrijvers
[EMAIL PROTECTED] wrote:
 Hello everybody,

 Did anybody perhaps ever implement a memory version of the
 AbstractPageStore. Currently, I only see a DiskPageStore, which happens
 to be quite a large cpu bottleneck for Windows users AFAICS.

 So, before starting to implement one, just wondering whether somebody
 has experience on a memory page store version,

 Thx for any pointers,

 Regards Ard

 [EMAIL PROTECTED] - [EMAIL PROTECTED] - www.onehippo.com
 -
 Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA
 94952-3329 +1 (707) 773-4646
 -

 -
 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]



Re: AbstractPageStore memory implementation instead of disk

2008-10-03 Thread Timo Rantalaiho
On Fri, 03 Oct 2008, Igor Vaynberg wrote:
 do you have some statistics for us? or some profiler timing screenshots?

While waiting for the reply from Ard... I remember hearing
of a case where the pagemaps were stored to a directory that
the virus scanner was monitoring, and the scanner hogged all
cpu during load testing :) I suppose that this kind of 
stuff happens more easily on Windows than on unices.

Best wishes,
Timo

-- 
Timo Rantalaiho   
Reaktor Innovations OyURL: http://www.ri.fi/ 

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



Re: setOutputMarkupId and Ajax

2008-10-03 Thread Igor Vaynberg
wicket only knows that the component needs it when you add it to the
ajax request target. by the time you add it to the ART the component
has already been rendered into the browser during the previous
request, and so its too late at this point - all we can do is warn
you.

-igor

On Fri, Oct 3, 2008 at 11:01 AM, Mathias P.W Nilsson
[EMAIL PROTECTED] wrote:

 Hi!

 I don't know if this has already been answered but here it goes.

 When use Ajax with wicket you have to set the the component to output it's
 markup id or else wicket framework complains about not having it set. Now
 Why isn't the components markup set automatically
 when wicket knows about it? Why not skip this, for ajax anyway. If you want
 to do some other javascript the output it but otherwise wicket could take
 care of it or maybe I'm missing something.

 // Mathias
 --
 View this message in context: 
 http://www.nabble.com/setOutputMarkupId-and-Ajax-tp19802839p19802839.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]



Re: Error using DefaultDataTable in version 1.4-m3 WicketTester

2008-10-03 Thread Igor Vaynberg
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]



Custom Radio component with children?

2008-10-03 Thread dukehoops

I'd like to create a component that consists of:
-radio
-dropdown choice

The component would be part of a RadioGroup, drop down should only be
enabled when radio is selected. The component, radio, and dropdown's
getModelObject() would return same MyBean pojo (Dropdown's is displaying a
list of MyPojos) - because that model would be used by owning RadioGroup

What model class should I use?

Also what should the component type be? Should this component be a:
-panel
-FromComponentPanel
-or subclass of Radio?

Radio is a MarkupContainer which means I should be able to extend Radio and
add DropDownChoice as a child. However, radio's markup is [input/] which
AFAIK does not allow children. So, if the answer to above is subclass
Radio what to do with HTML?

thanks
-nikita

-

Nikita Tovstoles
vside.com


-- 
View this message in context: 
http://www.nabble.com/Custom-Radio-component-with-children--tp19804341p19804341.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: setOutputMarkupId and Ajax

2008-10-03 Thread Rob Sonke
I understand that but why not adding it by default to the constructor of 
all ajax components?


Rob


Igor Vaynberg wrote:

wicket only knows that the component needs it when you add it to the
ajax request target. by the time you add it to the ART the component
has already been rendered into the browser during the previous
request, and so its too late at this point - all we can do is warn
you.

-igor

On Fri, Oct 3, 2008 at 11:01 AM, Mathias P.W Nilsson
[EMAIL PROTECTED] wrote:
  

Hi!

I don't know if this has already been answered but here it goes.

When use Ajax with wicket you have to set the the component to output it's
markup id or else wicket framework complains about not having it set. Now
Why isn't the components markup set automatically
when wicket knows about it? Why not skip this, for ajax anyway. If you want
to do some other javascript the output it but otherwise wicket could take
care of it or maybe I'm missing something.

// Mathias
--
View this message in context: 
http://www.nabble.com/setOutputMarkupId-and-Ajax-tp19802839p19802839.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]

  


-
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

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: Custom Radio component with children?

2008-10-03 Thread Igor Vaynberg
the easiest way to do this would be to make your component a formcomponentpanel

then you have

formcomponentpanel
-radiogroup
--radio1
--radio2
-dropdown

and in your fcp's convertinput() check the convertedinput() of radio
and based on that call setconvertedinput() with either the radio's or
the dropdown's value

-igor

On Fri, Oct 3, 2008 at 12:43 PM, dukehoops [EMAIL PROTECTED] wrote:

 I'd like to create a component that consists of:
 -radio
 -dropdown choice

 The component would be part of a RadioGroup, drop down should only be
 enabled when radio is selected. The component, radio, and dropdown's
 getModelObject() would return same MyBean pojo (Dropdown's is displaying a
 list of MyPojos) - because that model would be used by owning RadioGroup

 What model class should I use?

 Also what should the component type be? Should this component be a:
 -panel
 -FromComponentPanel
 -or subclass of Radio?

 Radio is a MarkupContainer which means I should be able to extend Radio and
 add DropDownChoice as a child. However, radio's markup is [input/] which
 AFAIK does not allow children. So, if the answer to above is subclass
 Radio what to do with HTML?

 thanks
 -nikita

 -
 
 Nikita Tovstoles
 vside.com
 

 --
 View this message in context: 
 http://www.nabble.com/Custom-Radio-component-with-children--tp19804341p19804341.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]



Re: setOutputMarkupId and Ajax

2008-10-03 Thread Igor Vaynberg
like which ones?

-igor

On Fri, Oct 3, 2008 at 12:44 PM, Rob Sonke [EMAIL PROTECTED] wrote:
 I understand that but why not adding it by default to the constructor of all
 ajax components?

 Rob


 Igor Vaynberg wrote:

 wicket only knows that the component needs it when you add it to the
 ajax request target. by the time you add it to the ART the component
 has already been rendered into the browser during the previous
 request, and so its too late at this point - all we can do is warn
 you.

 -igor

 On Fri, Oct 3, 2008 at 11:01 AM, Mathias P.W Nilsson
 [EMAIL PROTECTED] wrote:


 Hi!

 I don't know if this has already been answered but here it goes.

 When use Ajax with wicket you have to set the the component to output
 it's
 markup id or else wicket framework complains about not having it set. Now
 Why isn't the components markup set automatically
 when wicket knows about it? Why not skip this, for ajax anyway. If you
 want
 to do some other javascript the output it but otherwise wicket could take
 care of it or maybe I'm missing something.

 // Mathias
 --
 View this message in context:
 http://www.nabble.com/setOutputMarkupId-and-Ajax-tp19802839p19802839.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]



 -
 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]



Re: Error using DefaultDataTable in version 1.4-m3 WicketTester

2008-10-03 Thread Igor Vaynberg
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]



Re: setOutputMarkupId and Ajax

2008-10-03 Thread Rob Sonke
Oh stupid, you're right. Only the targets needs the setOutputMarkupId 
true...



Igor Vaynberg wrote:

like which ones?

-igor

On Fri, Oct 3, 2008 at 12:44 PM, Rob Sonke [EMAIL PROTECTED] wrote:
  

I understand that but why not adding it by default to the constructor of all
ajax components?

Rob


Igor Vaynberg wrote:


wicket only knows that the component needs it when you add it to the
ajax request target. by the time you add it to the ART the component
has already been rendered into the browser during the previous
request, and so its too late at this point - all we can do is warn
you.

-igor

On Fri, Oct 3, 2008 at 11:01 AM, Mathias P.W Nilsson
[EMAIL PROTECTED] wrote:

  

Hi!

I don't know if this has already been answered but here it goes.

When use Ajax with wicket you have to set the the component to output
it's
markup id or else wicket framework complains about not having it set. Now
Why isn't the components markup set automatically
when wicket knows about it? Why not skip this, for ajax anyway. If you
want
to do some other javascript the output it but otherwise wicket could take
care of it or maybe I'm missing something.

// Mathias
--
View this message in context:
http://www.nabble.com/setOutputMarkupId-and-Ajax-tp19802839p19802839.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]


  

-
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]

  


-
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]



Re: Error using DefaultDataTable in version 1.4-m3 WicketTester

2008-10-03 Thread Igor Vaynberg
why is the javadoc being fed into your panel's markup?

-igor

On Fri, Oct 3, 2008 at 1:06 PM, zaheers [EMAIL PROTECTED] wrote:

 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]



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



Howto .xml instead of .properties

2008-10-03 Thread ulrik

Hello!

I have a question regarding localization/internationalization of my
application.
I have up until now stored some of my properties in .properties files, and
some in .xml files. Now I want to have all the info in .xml files.

The reason I have both is that when I want to localize text in .html files,
xml is very easy to use: 

//HTML
wicket:message key=text{some text}/wicket:message

//XML
..
..
..
entry key=texttranslated text/entry

The reason I also use .properties is because it is easy  to access localized
string from java code..
I do something like this

//MyClass.java
ArrayListString cityList = new ArrayListString();
cityList.add(BundleSupport.getMessage(Gothenburg,locale); 
.. where BundleSUpport.getMessage(String key,Locale locale) returns the
localized city String

//MyClass_sv.properties
Gothenburg=Göteborg

Like I said, now I want to replace all my .properties files with only .xml
files..
But how do I access localized string from the java code as easy as I showed
above?

I hope it is easy to understand what I am asking

//Ulrik
-- 
View this message in context: 
http://www.nabble.com/Howto-.xml-instead-of-.properties-tp19806048p19806048.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: Custom Radio component with children?

2008-10-03 Thread dukehoops

You mean check the convertedinput() of radiogroup not radio, correct?
 

igor.vaynberg wrote:
 
 the easiest way to do this would be to make your component a
 formcomponentpanel
 
 then you have
 
 formcomponentpanel
 -radiogroup
 --radio1
 --radio2
 -dropdown
 
 and in your fcp's convertinput() check the convertedinput() of radio
 and based on that call setconvertedinput() with either the radio's or
 the dropdown's value
 
 -igor
 

-

Nikita Tovstoles
vside.com


-- 
View this message in context: 
http://www.nabble.com/Custom-Radio-component-with-children--tp19804341p19806392.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: Custom Radio component with children?

2008-10-03 Thread Igor Vaynberg
correct

-igor

On Fri, Oct 3, 2008 at 3:00 PM, dukehoops [EMAIL PROTECTED] wrote:

 You mean check the convertedinput() of radiogroup not radio, correct?


 igor.vaynberg wrote:

 the easiest way to do this would be to make your component a
 formcomponentpanel

 then you have

 formcomponentpanel
 -radiogroup
 --radio1
 --radio2
 -dropdown

 and in your fcp's convertinput() check the convertedinput() of radio
 and based on that call setconvertedinput() with either the radio's or
 the dropdown's value

 -igor


 -
 
 Nikita Tovstoles
 vside.com
 

 --
 View this message in context: 
 http://www.nabble.com/Custom-Radio-component-with-children--tp19804341p19806392.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]



Contribute to the body tag (onload)

2008-10-03 Thread Edgar Merino

Hello,

   Is it possible to contribute to the body html tag from within 
children pages? directly in markup, like when using the wicket:head 
tag (without modifying the java WebPage).


Thanks in advance.
Edgar Merino

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



Unable to add a Form to a ModalWindow opened from within another ModalWindow

2008-10-03 Thread Nick Zimmerman

Hello,

I am trying to use ModalWindows to control the workflow of a survey
creation page. I have run into an issue where I am not able to
add a Form to a Panel based ModalWindow that was opened from another
Panel based ModalWindow.

I can add a Form to a Panel based ModalWindow if I open it from a Page 
based ModalWindow, but then the Panel based ModalWindow is contained 
within the borders of the Page based ModalWindow instead of floating 
above the page and the previous ModalWindow.


Is there a way to add the Form using only Panel based ModalWindows? 
Otherwise, is there a way to get the second ModalWindow to be able to 
move beyond the borders of the Page based ModalWindow?


Thank you in advance for any help you can offer.


-Nick

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