RE: Localization for table component

2008-07-13 Thread Jeremy Thomerson
In your properties file for the page, try:

id-of-table-in-modal-window.datagrid.no-records-found

Jeremy Thomerson
http://www.wickettraining.com
-- sent from a wireless device


-Original Message-
From: Cristi Manole [EMAIL PROTECTED]
Sent: Saturday, July 12, 2008 5:20 PM
To: users@wicket.apache.org
Subject: Localization for table component

Hello,

I have a page with a table component on it. I use the following keys to
localize it and it works great
datagrid.no-records-found
NavigatorLabel

On the same page I define a div which is a modal window. On the modal window
I have another table component which I want to localize (with different text
messages).

My problem is that although I define another properties file with the name
of the (modal window) panel, the properties are still read from the page
properties file.

How can I do what I'm looking for?

Tks,
Cristi Manole


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



Re: Localization for table component

2008-07-13 Thread Cristi Manole
nope. it does not work. i changed both properties files to have the
component ids and  now i get the default value in both, meaning it's not
localizing at all.

i think the keys are hard coded. I will extend the classes...

did it work for you? maybe i;m doing smth wrong

On Sun, Jul 13, 2008 at 3:28 PM, Jeremy Thomerson [EMAIL PROTECTED]
wrote:

 In your properties file for the page, try:

 id-of-table-in-modal-window.datagrid.no-records-found

 Jeremy Thomerson
 http://www.wickettraining.com
 -- sent from a wireless device


 -Original Message-
 From: Cristi Manole [EMAIL PROTECTED]
 Sent: Saturday, July 12, 2008 5:20 PM
 To: users@wicket.apache.org
 Subject: Localization for table component

 Hello,

 I have a page with a table component on it. I use the following keys to
 localize it and it works great
 datagrid.no-records-found
 NavigatorLabel

 On the same page I define a div which is a modal window. On the modal
 window
 I have another table component which I want to localize (with different
 text
 messages).

 My problem is that although I define another properties file with the name
 of the (modal window) panel, the properties are still read from the page
 properties file.

 How can I do what I'm looking for?

 Tks,
 Cristi Manole


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




Re: ByteArrayResource's getCacheDuration( )

2008-07-13 Thread greeklinux

Hello,

reading the docs of ByteArrayResource I do not think it is dynamic.
The generated resource is in memory.

greetings



Ricky-22 wrote:
 
 Hi,
 
 I want to be able to generate the byteArray (for MS - Excel report being
 passed to a byteArrayResource every time the resource link is clicked. I
 was
 trying to use getCacheDuration( ) for the same to allow for it to create
 ByteArray every time the resource link is clicked on the page.
 
 I have something like :
 
 final ByteArrayResource modelReportByteArrayResource = new
 ByteArrayResource(CONTENT_TYPE, createByteArray() ,FILE_NAME) {
 
 // java docs removed for clarity
 protected final int getCacheDuration() {
 return -1;  // -1 or 0 doesn't work. =(
 }
 };
 
 // add the resource.
 add(new ResourceLink(modelReportResource ));
 
 I tried to override :
 // java docs removed for clarity
 protected final void setHeaders(final WebResponse response) {
 response.setHeader(Cache-Control, no-cache,
 must-revalidate);
 }
 
 But I still get the same excel report over and over no matter how many
 times
 i click the link, despite me changing some data or the stream.
 
 Any suggestions / thoughts???
 
 Regards
 Vyas, Anirudh
 
 

-- 
View this message in context: 
http://www.nabble.com/ByteArrayResource%27s-getCacheDuration%28-%29-tp18406048p18431593.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: modalWindow disable drag drop

2008-07-13 Thread Maurice Marrink
Not at the moment AFAIK.

You could file an RFE.

Maurice

On Sat, Jul 12, 2008 at 9:38 PM, Beyonder Unknown [EMAIL PROTECTED] wrote:

 Hi Users,


 Is there a way to make the modalWindow unmovable? (disable the drag and 
 drop?).

 Thanks,
 Allan

  --
 The only constant in life is change.





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



Migrating From Struts to Wicket

2008-07-13 Thread deepeshmathur

Hi,
We have an existing Struts based application and I need to add another
functionality (actually a page with full of ajax thingi) to it. I wish to to
do that in Wicket without disturbing (much) the other parts of the
appilcation. Can some one tell me a way to do that?

Thanks and Regards

-- 
View this message in context: 
http://www.nabble.com/Migrating-From-Struts-to-Wicket-tp18436889p18436889.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: Component self updating when Ajax call changed a commun model ?

2008-07-13 Thread Timo Rantalaiho
On Thu, 10 Jul 2008, ZedroS wrote:
 Were you thinking of this discussion :
 http://www.nabble.com/AJAX-validation-and-multiple-requests-td15546309.html

Maybe this one

  http://www.nabble.com/generics-td18083910i60.html#a18347087

but it's a good idea to browse other messages on the list
about the ajax updates, there are several different ways
that people have come up with.

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: Migrating From Struts to Wicket

2008-07-13 Thread Igor Vaynberg
where are you hitting a problem exactly? this should simply work since
struts and wicket apps wont share url space

-igor

On Sun, Jul 13, 2008 at 8:32 PM, deepeshmathur [EMAIL PROTECTED] wrote:

 Hi,
 We have an existing Struts based application and I need to add another
 functionality (actually a page with full of ajax thingi) to it. I wish to to
 do that in Wicket without disturbing (much) the other parts of the
 appilcation. Can some one tell me a way to do that?

 Thanks and Regards

 --
 View this message in context: 
 http://www.nabble.com/Migrating-From-Struts-to-Wicket-tp18436889p18436889.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: Component self updating when Ajax call changed a commun model ?

2008-07-13 Thread freak182

Hello,
You can try this one, maybe i can help you... Timo suggested it to me and it
work great..

http://www.nabble.com/How-to-update-parent-component-from-a-panel--td17748294.html

Cheers...


ZedroS wrote:
 
 Hi
 
 I've the following issue : in a panel a checkbox needs to be disabled
 depending on a ajax updated list in a sub panel (if there is something
 in the list the checkbox is disabled).
 
 Currently I give the checkbox reference to the other panel and then use it
 in the sub panel add AjaxLink.  
 
 However, I will have soon more components on which this checkbox will
 depend for its state (lists in other sub panels). 
 
 As such, I wonder if there is a way for this checkbox to be updated each
 time one of the sub panels list is changed, knowing that they all share
 the same model.
 
 What do you think of it ?
 
 NB : I saw this discussion
 http://www.nabble.com/Updating-distant-(unrelated)-components-via-Ajax-when-a-shared-model-changes-to13165777.html#a13165777
 but I'm not sure it's the only way...
 
 Let's see if Wicket surprises me one more time ;)
 
 ++
 zedros
 

-- 
View this message in context: 
http://www.nabble.com/Component-self-updating-when-Ajax-call-changed-a-commun-model---tp18355808p18437336.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: Migrating From Struts to Wicket

2008-07-13 Thread deepeshmathur

Igor,
1. So you mean, they both can coexist and navigation from and to each other
should work?
2. I have not started as yet, doing my design at the moment and wants to
know if there might be some hiccups later on?

Thanks and Regards


igor.vaynberg wrote:
 
 where are you hitting a problem exactly? this should simply work since
 struts and wicket apps wont share url space
 
 -igor
 
 On Sun, Jul 13, 2008 at 8:32 PM, deepeshmathur [EMAIL PROTECTED]
 wrote:

 Hi,
 We have an existing Struts based application and I need to add another
 functionality (actually a page with full of ajax thingi) to it. I wish to
 to
 do that in Wicket without disturbing (much) the other parts of the
 appilcation. Can some one tell me a way to do that?

 Thanks and Regards

 --
 View this message in context:
 http://www.nabble.com/Migrating-From-Struts-to-Wicket-tp18436889p18436889.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/Migrating-From-Struts-to-Wicket-tp18436889p18437408.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: Migrating From Struts to Wicket

2008-07-13 Thread Igor Vaynberg
indeed, they can coexist quiet easily

-igor

On Sun, Jul 13, 2008 at 9:46 PM, deepeshmathur [EMAIL PROTECTED] wrote:

 Igor,
 1. So you mean, they both can coexist and navigation from and to each other
 should work?
 2. I have not started as yet, doing my design at the moment and wants to
 know if there might be some hiccups later on?

 Thanks and Regards


 igor.vaynberg wrote:

 where are you hitting a problem exactly? this should simply work since
 struts and wicket apps wont share url space

 -igor

 On Sun, Jul 13, 2008 at 8:32 PM, deepeshmathur [EMAIL PROTECTED]
 wrote:

 Hi,
 We have an existing Struts based application and I need to add another
 functionality (actually a page with full of ajax thingi) to it. I wish to
 to
 do that in Wicket without disturbing (much) the other parts of the
 appilcation. Can some one tell me a way to do that?

 Thanks and Regards

 --
 View this message in context:
 http://www.nabble.com/Migrating-From-Struts-to-Wicket-tp18436889p18436889.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/Migrating-From-Struts-to-Wicket-tp18436889p18437408.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: Migrating From Struts to Wicket

2008-07-13 Thread deepeshmathur

Can we also mix and match ..for example breadcrumbs, we already have
breadcrumb in jsp based app and can we use that on the wicket page?

Thanks and Regards


igor.vaynberg wrote:
 
 indeed, they can coexist quiet easily
 
 -igor
 
 On Sun, Jul 13, 2008 at 9:46 PM, deepeshmathur [EMAIL PROTECTED]
 wrote:

 Igor,
 1. So you mean, they both can coexist and navigation from and to each
 other
 should work?
 2. I have not started as yet, doing my design at the moment and wants to
 know if there might be some hiccups later on?

 Thanks and Regards


 igor.vaynberg wrote:

 where are you hitting a problem exactly? this should simply work since
 struts and wicket apps wont share url space

 -igor

 On Sun, Jul 13, 2008 at 8:32 PM, deepeshmathur
 [EMAIL PROTECTED]
 wrote:

 Hi,
 We have an existing Struts based application and I need to add another
 functionality (actually a page with full of ajax thingi) to it. I wish
 to
 to
 do that in Wicket without disturbing (much) the other parts of the
 appilcation. Can some one tell me a way to do that?

 Thanks and Regards

 --
 View this message in context:
 http://www.nabble.com/Migrating-From-Struts-to-Wicket-tp18436889p18436889.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/Migrating-From-Struts-to-Wicket-tp18436889p18437408.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/Migrating-From-Struts-to-Wicket-tp18436889p18437662.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]