Re: Migrating From Struts to Wicket

2008-07-13 Thread Igor Vaynberg
that becomes more difficult, but possible

http://herebebeasties.com/2007-03-01/jsp-and-wicket-sitting-in-a-tree/

-igor

On Sun, Jul 13, 2008 at 10:23 PM, deepeshmathur
<[EMAIL PROTECTED]> wrote:
>
> 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]
>
>

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



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

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: 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 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 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 Oyhttp://www.ri.fi/ >

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



Re: Switch tab only if user doesn't want to save changes.

2008-07-13 Thread Maurice Marrink
Override newLink to return an ajaxfallbacklink where you have
overridden the getAjaxCallDecorator method to return a custom
IAjaxCallDecorator.
Use that to insert a javascript confirm dialog.

Maurice

On Fri, Jul 11, 2008 at 7:28 PM, Fabio Fioretti
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> thanks in advance for your precious support.
>
> I have an AjaxTabbedPanel with two tabs. In the first tab there is a
> panel with a form, some input fields and a save button; the content of
> the second tab is irrelevant.
>
> Use-case:
>
> 1 - user selects first tab;
> 2 - user makes some changes in the input fields but doesn't click the
> save button;
> 3 - user selects second tab.
>
> On step 3, users loses all his updates without being warned.
>
> I would like to add a javascript confirm dialog to be triggered only
> when some changes have been performed but not saved (no ModalWindow,
> just javascript). I mean something like: "There are some unsaved
> changes that will be lost, do you really want to switch tab?" 
> . OK brings the user to the second tab, Cancel makes him stay
> in the first tab.
>
> The panel inside the first tab has a handy boolean hasUnsavedChanges()
> method, but I don't know where I could call it and how to inject an
> "if (!confirm('...')) return false;".
>
> Maybe in the onClick(AjaxRequestTarget target) method of the
> AjaxFallbackLink returned by AjaxTabbedPanel's newLink() method?
>
> What's the best way to do it?
>
>
> Thank you very much,
>
> Fabio Fioretti - WindoM
>
> -
> 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: 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: 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: 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]