Re: Problem regarding ajax refresh contents of ModalWindow containing inmethod-datagrid

2012-12-19 Thread Martin Grigorov
Hi,

Can you try with WIcket 6.4.0 and latest InMethod-Grid from
WicketStuff-Core master branch ?
There are some bug fixes in the grid related to Select All which may
affect this behavior.

WicketStuff Core 6.4.0 will be released soon so earlier feedback is
appreciated!



On Tue, Dec 18, 2012 at 3:17 PM, pmaks piyu...@live.com wrote:

 Hi All,

 I'm facing a problem, that is related to refresh inmethod-datagrid in
 wicket
 modal window.
 Grid shows well at first time, however on refreshing 2nd time. SelectAll
 checkbox in the header of table just stops working.
 I think the reason for it is improper markup state of modal dialog after
 2nd
 time. see the attachment.

 Affected Browsers: *Firefox  IE*
 OK Browsers: *Chrome*

 I'm attaching the sample code  screenshot of firebug HTML viewer elements
 to show state after initial showing of window and after 2nd refresh of the
 panel.
 Running sample code requires you to wait for 1 mins for initial
 Please help me out.

 http://apache-wicket.1842946.n4.nabble.com/file/n4654883/after1st.png


 http://apache-wicket.1842946.n4.nabble.com/file/n4654883/after2nd.png

 sample app source code.
 testGrid.zip
 http://apache-wicket.1842946.n4.nabble.com/file/n4654883/testGrid.zip
 Thanks




 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Problem-regarding-ajax-refresh-contents-of-ModalWindow-containing-inmethod-datagrid-tp4654883.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Re: Problem regarding ajax refresh contents of ModalWindow containing inmethod-datagrid

2012-12-19 Thread pmaks
Hi,

Thanks for reply. I can not use wicket 6, since the problem is part of
bigger project, where everything else  except this is fine.
Anyway I've solved this by using stop(); on ajax timer and then again
attach it to same component in window close callback, so that future updates
should work properly.
It is working fine for me on every browser.

Thanks




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-regarding-ajax-refresh-contents-of-ModalWindow-containing-inmethod-datagrid-tp4654883p4654914.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Problem regarding ajax refresh contents of ModalWindow containing inmethod-datagrid

2012-12-18 Thread pmaks
Hi All,

I'm facing a problem, that is related to refresh inmethod-datagrid in wicket
modal window.
Grid shows well at first time, however on refreshing 2nd time. SelectAll
checkbox in the header of table just stops working.
I think the reason for it is improper markup state of modal dialog after 2nd
time. see the attachment.

Affected Browsers: *Firefox  IE*
OK Browsers: *Chrome*

I'm attaching the sample code  screenshot of firebug HTML viewer elements
to show state after initial showing of window and after 2nd refresh of the
panel.
Running sample code requires you to wait for 1 mins for initial 
Please help me out.

http://apache-wicket.1842946.n4.nabble.com/file/n4654883/after1st.png 


http://apache-wicket.1842946.n4.nabble.com/file/n4654883/after2nd.png 

sample app source code.
testGrid.zip
http://apache-wicket.1842946.n4.nabble.com/file/n4654883/testGrid.zip  
Thanks




--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Problem-regarding-ajax-refresh-contents-of-ModalWindow-containing-inmethod-datagrid-tp4654883.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Inmethod datagrid and Twitter bootstrap

2012-03-18 Thread Martin Grigorov
Hi,

Few years ago my company needed to customize InMethod Grid to look
like our application and our web designer provided
a custom theme for that. It was quite easy.
Twitter bootstrap requires from you to add some CSS classes in the
produced HTML so you may need to add AttributeModifier here and there
but I think it should be possible to do.

On Sat, Mar 17, 2012 at 5:08 PM, bjolletz daniel.akerl...@pagero.com wrote:
 Hi,

 I've been playing around a bit with the Twitter bootstrap css framework and
 think it looks really nice. Now, it would be very nice if it was possible to
 make the inmethod datagrid (which I use a lot) get the look and feel of the
 twitter bootstrap table. I'm thinking of making the inmethod datagrid look
 something like this:

 http://datatables.net/media/blog/bootstrap/

 This means that I would also like to use the paging look and feel from
 twitter botostrap.

 I know there is a setTheme() method on the DataGrid component, but before I
 start digging too deep into that, it would be nice to hear from someone more
 involved with the inmethod DatGrid project if they think that what I'm
 trying to do is at all possible to achieve. Or maybe someone has already
 done it?

 Any thought on this would be very appreciated. Thanks for reading!

 /Daniel

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Inmethod-datagrid-and-Twitter-bootstrap-tp4480711p4480711.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Inmethod datagrid and Twitter bootstrap

2012-03-18 Thread Chris Colman
 I'm thinking of making the inmethod datagrid look
 something like this:

 http://datatables.net/media/blog/bootstrap/

Ooooh! Yea please, can I have one of them ;) 

That Twitter Bootstrap table looks very Web 2012: nice clear,
uncluttered, easy to read.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Inmethod datagrid and Twitter bootstrap

2012-03-17 Thread bjolletz
Hi,

I've been playing around a bit with the Twitter bootstrap css framework and
think it looks really nice. Now, it would be very nice if it was possible to
make the inmethod datagrid (which I use a lot) get the look and feel of the
twitter bootstrap table. I'm thinking of making the inmethod datagrid look
something like this:

http://datatables.net/media/blog/bootstrap/

This means that I would also like to use the paging look and feel from
twitter botostrap.

I know there is a setTheme() method on the DataGrid component, but before I
start digging too deep into that, it would be nice to hear from someone more
involved with the inmethod DatGrid project if they think that what I'm
trying to do is at all possible to achieve. Or maybe someone has already
done it?

Any thought on this would be very appreciated. Thanks for reading!

/Daniel

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Inmethod-datagrid-and-Twitter-bootstrap-tp4480711p4480711.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: Best way to periodically refresh an inmethod DataGrid?

2011-03-28 Thread Chris Colman
I ended up doing it all server side - overriding onSelectionChanged* and
setting a selectedItem attribute. We then override isSelectedItem and
return true if the given item 'equals' selectedItem - must make sure
your IModel and domain classes all override equals and test for class
match and non null operand.

-Original Message-
From: Martin Grigorov [mailto:mgrigo...@apache.org]
Sent: Friday, 25 March 2011 10:35 PM
To: users@wicket.apache.org
Subject: Re: Best way to periodically refresh an inmethod DataGrid?

If you update the just the selected row then the selection will be
lost.
You may try with some JavaScript gymnastics to save the selection and
restore it later.
Use AjaxRequestTarget.prependJavascript() for the saving code and
.appendJavascript() for the restoring code.

The JavaScript to deal with selection is different for the different
browsers, so better find a JS library that does it for you.

Good luck!

On Thu, Mar 24, 2011 at 11:38 PM, Coleman, Chris 
chris.cole...@thalesgroup.com.au wrote:

 We've got a wicket app with an inmethod DataGrid and it displays fine
and
 we use an AjaxSelfUpdatingTimerBehaviour to update the grid every 5
seconds.
 That part works fine - as data changes in the database the changes
are
 reflected in the table in the browser

 However, if we select an item the selection dissappears when the very
next
 refresh occurs. How do we refresh the DataGrid in such a way that it
 remembers its selected item after a refresh?





DISCLAIMER:-
-
-
 This e-mail transmission and any documents, files and previous e-mail
 messages
 attached to it are private and confidential. They may contain
proprietary
 or copyright
 material or information that is subject to legal professional
privilege.
 They are for
 the use of the intended recipient only.  Any unauthorised viewing,
use,
 disclosure,
 copying, alteration, storage or distribution of, or reliance on, this
 message is
 strictly prohibited. No part may be reproduced, adapted or
transmitted
 without the
 written permission of the owner. If you have received this
transmission
in
 error, or
 are not an authorised recipient, please immediately notify the sender
by
 return email,
 delete this message and all copies from your e-mail system, and
destroy
any
 printed
 copies. Receipt by anyone other than the intended recipient should
not be
 deemed a
 waiver of any privilege or protection. Thales Australia does not
warrant
or
 represent
 that this e-mail or any documents, files and previous e-mail messages
 attached are
 error or virus free.



-
-




--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Best way to periodically refresh an inmethod DataGrid?

2011-03-25 Thread Martin Grigorov
If you update the just the selected row then the selection will be lost.
You may try with some JavaScript gymnastics to save the selection and
restore it later.
Use AjaxRequestTarget.prependJavascript() for the saving code and
.appendJavascript() for the restoring code.

The JavaScript to deal with selection is different for the different
browsers, so better find a JS library that does it for you.

Good luck!

On Thu, Mar 24, 2011 at 11:38 PM, Coleman, Chris 
chris.cole...@thalesgroup.com.au wrote:

 We've got a wicket app with an inmethod DataGrid and it displays fine and
 we use an AjaxSelfUpdatingTimerBehaviour to update the grid every 5 seconds.
 That part works fine - as data changes in the database the changes are
 reflected in the table in the browser

 However, if we select an item the selection dissappears when the very next
 refresh occurs. How do we refresh the DataGrid in such a way that it
 remembers its selected item after a refresh?




 DISCLAIMER:---
 This e-mail transmission and any documents, files and previous e-mail
 messages
 attached to it are private and confidential. They may contain proprietary
 or copyright
 material or information that is subject to legal professional privilege.
 They are for
 the use of the intended recipient only.  Any unauthorised viewing, use,
 disclosure,
 copying, alteration, storage or distribution of, or reliance on, this
 message is
 strictly prohibited. No part may be reproduced, adapted or transmitted
 without the
 written permission of the owner. If you have received this transmission in
 error, or
 are not an authorised recipient, please immediately notify the sender by
 return email,
 delete this message and all copies from your e-mail system, and destroy any
 printed
 copies. Receipt by anyone other than the intended recipient should not be
 deemed a
 waiver of any privilege or protection. Thales Australia does not warrant or
 represent
 that this e-mail or any documents, files and previous e-mail messages
 attached are
 error or virus free.

 --




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com http://jweekend.com/


Best way to periodically refresh an inmethod DataGrid?

2011-03-24 Thread Coleman, Chris
We've got a wicket app with an inmethod DataGrid and it displays fine and we 
use an AjaxSelfUpdatingTimerBehaviour to update the grid every 5 seconds. That 
part works fine - as data changes in the database the changes are reflected in 
the table in the browser

However, if we select an item the selection dissappears when the very next 
refresh occurs. How do we refresh the DataGrid in such a way that it remembers 
its selected item after a refresh?



DISCLAIMER:---
This e-mail transmission and any documents, files and previous e-mail messages
attached to it are private and confidential. They may contain proprietary or 
copyright
material or information that is subject to legal professional privilege. They 
are for
the use of the intended recipient only.  Any unauthorised viewing, use, 
disclosure,
copying, alteration, storage or distribution of, or reliance on, this message is
strictly prohibited. No part may be reproduced, adapted or transmitted without 
the
written permission of the owner. If you have received this transmission in 
error, or
are not an authorised recipient, please immediately notify the sender by return 
email,
delete this message and all copies from your e-mail system, and destroy any 
printed
copies. Receipt by anyone other than the intended recipient should not be 
deemed a
waiver of any privilege or protection. Thales Australia does not warrant or 
represent
that this e-mail or any documents, files and previous e-mail messages attached 
are
error or virus free.
--



Inmethod datagrid adding aggregate rows

2010-09-07 Thread pieter_degraeuwe

Hi,

I'm looking for some hints for doing the following:

I have an Inmethod datagrid, which has the columns 'amount', 'product',
'detail', 'price'.
I would like to have at the bottom of the table (just above the paging
toolbar) an extra row which shows me the sum (total) of all prices in the
list.
How I calculate these values (sum of the showed items, or sum of ALL items),
should not matter, I want to add these cell values by just giving a model.
But, the sum() column should be located under the 'prices' column.

I did try this via a custom Toolbar, where I add a div with it's own table
element. This seems to work, but I do not get the styling right. The columns
of this table should have the same width als the columns of the 'body'
table.

Digging into the code, I saw that some javascript is used for doing the
sizing.

Can anyone give me some hints what is the best approach to get the column's
size correct? (or maybe I'm doing this completely wrong?)

Thanks ! 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Inmethod-datagrid-adding-aggregate-rows-tp2529526p2529526.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Inmethod datagrid adding aggregate rows

2010-09-07 Thread Branislav Kalas

Hi i also tried this.
I ended up by positioning aggregation toolbar right after column 
headers. (as  custom toolbar which extends AbstractHeaderToolbar).
I think it is not easy to have this toolbar at the bottom (specially 
when you have enabled column resizing, because you have to bind somehow 
on resizing js)

Please write here a solution if you will find out how to do it.
On 09/07/2010 01:29 PM, pieter_degraeuwe wrote:

Hi,

I'm looking for some hints for doing the following:

I have an Inmethod datagrid, which has the columns 'amount', 'product',
'detail', 'price'.
I would like to have at the bottom of the table (just above the paging
toolbar) an extra row which shows me the sum (total) of all prices in the
list.
How I calculate these values (sum of the showed items, or sum of ALL items),
should not matter, I want to add these cell values by just giving a model.
But, the sum() column should be located under the 'prices' column.

I did try this via a custom Toolbar, where I add a div with it's owntable
element. This seems to work, but I do not get the styling right. The columns
of this table should have the same width als the columns of the 'body'
table.

Digging into the code, I saw that some javascript is used for doing the
sizing.

Can anyone give me some hints what is the best approach to get the column's
size correct? (or maybe I'm doing this completely wrong?)

Thanks !
   



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Inmethod datagrid adding aggregate rows

2010-09-07 Thread Charles Deal
My team solved the problem the same way, by using a custom Header Toolbar
under the header labels.  Couldn't find a clean way to create a footer
toolbar that matched the columns.

On Tue, Sep 7, 2010 at 9:49 AM, Branislav Kalas bka...@gmail.com wrote:

 Hi i also tried this.
 I ended up by positioning aggregation toolbar right after column headers.
 (as  custom toolbar which extends AbstractHeaderToolbar).
 I think it is not easy to have this toolbar at the bottom (specially when
 you have enabled column resizing, because you have to bind somehow on
 resizing js)
 Please write here a solution if you will find out how to do it.

 On 09/07/2010 01:29 PM, pieter_degraeuwe wrote:

 Hi,

 I'm looking for some hints for doing the following:

 I have an Inmethod datagrid, which has the columns 'amount', 'product',
 'detail', 'price'.
 I would like to have at the bottom of the table (just above the paging
 toolbar) an extra row which shows me the sum (total) of all prices in the
 list.
 How I calculate these values (sum of the showed items, or sum of ALL
 items),
 should not matter, I want to add these cell values by just giving a model.
 But, the sum() column should be located under the 'prices' column.

 I did try this via a custom Toolbar, where I add a div with it's
 owntable
 element. This seems to work, but I do not get the styling right. The
 columns
 of this table should have the same width als the columns of the 'body'
 table.

 Digging into the code, I saw that some javascript is used for doing the
 sizing.

 Can anyone give me some hints what is the best approach to get the
 column's
 size correct? (or maybe I'm doing this completely wrong?)

 Thanks !




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Unit Test InMethod DataGrid

2010-06-04 Thread Ronan O'Connell

Thank you very much Nino and Kent,

I've read about Wicketpagetest before and I've been planning to try it 
out. Looks like now is my chance :-)


Ronan

On 04/06/2010 02:16, Kent Tong wrote:

Hi Ronan,

Looking at the output of WicketTester.debugComponentTrees() I can see 
that the grid row is the deepest level with a wicket id:

...
panel:storyGrid:form:bodyContainer:body:row:2:item 
com.inmethod.grid.common.AbstractGridRow


If you use http://wicketpagetest.sourceforge.net, then you can test
it easily like:

   Selenium s = ...;
   assert 
s.getText(wicket=//storyGrid//body//row[2]//item[3]).equals(foo;


In this example you're checking the the 3rd cell in the 2nd row (both
are 0-based).




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Unit Test InMethod DataGrid

2010-06-03 Thread Ronan O'Connell

Hi,

Does anybody know how to check the values of individual cells of an 
InMethod DataGrid/Treedrid. in a unit test?


Looking at the output of WicketTester.debugComponentTrees() I can see 
that the grid row is the deepest level with a wicket id:


NFO  - BaseWicketTester   - path
panel:storyGrid:form:bodyContainer:body 
com.inmethod.grid.datagrid.DataGridBody
INFO  - BaseWicketTester   - path
panel:storyGrid:form:bodyContainer:body:row 
com.inmethod.grid.common.AbstractPageableView
INFO  - BaseWicketTester   - path
panel:storyGrid:form:bodyContainer:body:row:1 
org.apache.wicket.markup.repeater.Item
INFO  - BaseWicketTester   - path
panel:storyGrid:form:bodyContainer:body:row:1:item 
com.inmethod.grid.common.AbstractGridRow
INFO  - BaseWicketTester   - path
panel:storyGrid:form:bodyContainer:body:row:2 
org.apache.wicket.markup.repeater.Item
INFO  - BaseWicketTester   - path
panel:storyGrid:form:bodyContainer:body:row:2:item 
com.inmethod.grid.common.AbstractGridRow


I've looked at those component classes and can't see anything helpful in 
them.


Hoping I'm not missing the obvious,
Ronan






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Unit Test InMethod DataGrid

2010-06-03 Thread nino martinez wael
what about grabbing the model behind and checking that instead?

2010/6/3 Ronan O'Connell ronanoconnell1...@gmail.com:
 Hi,

 Does anybody know how to check the values of individual cells of an InMethod
 DataGrid/Treedrid. in a unit test?

 Looking at the output of WicketTester.debugComponentTrees() I can see that
 the grid row is the deepest level with a wicket id:

 NFO  - BaseWicketTester           - path
  panel:storyGrid:form:bodyContainer:body
 com.inmethod.grid.datagrid.DataGridBody
 INFO  - BaseWicketTester           - path
  panel:storyGrid:form:bodyContainer:body:row
 com.inmethod.grid.common.AbstractPageableView
 INFO  - BaseWicketTester           - path
  panel:storyGrid:form:bodyContainer:body:row:1
 org.apache.wicket.markup.repeater.Item
 INFO  - BaseWicketTester           - path
  panel:storyGrid:form:bodyContainer:body:row:1:item
 com.inmethod.grid.common.AbstractGridRow
 INFO  - BaseWicketTester           - path
  panel:storyGrid:form:bodyContainer:body:row:2
 org.apache.wicket.markup.repeater.Item
 INFO  - BaseWicketTester           - path
  panel:storyGrid:form:bodyContainer:body:row:2:item
 com.inmethod.grid.common.AbstractGridRow

 I've looked at those component classes and can't see anything helpful in
 them.

 Hoping I'm not missing the obvious,
 Ronan






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Unit Test InMethod DataGrid

2010-06-03 Thread Kent Tong

Hi Ronan,

Looking at the output of WicketTester.debugComponentTrees() I can see 
that the grid row is the deepest level with a wicket id:

...
panel:storyGrid:form:bodyContainer:body:row:2:item 
com.inmethod.grid.common.AbstractGridRow


If you use http://wicketpagetest.sourceforge.net, then you can test
it easily like:

   Selenium s = ...;
   assert 
s.getText(wicket=//storyGrid//body//row[2]//item[3]).equals(foo;


In this example you're checking the the 3rd cell in the 2nd row (both
are 0-based).

--
Kent Tong
Useful news for CIO's at http://www2.cpttm.org.mo/cyberlab/cio-news

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: inmethod DataGrid problem in IE8

2010-03-17 Thread Russell Morrisey
Sorry! It actually does happen in the inmethod grid examples. Marsha found a 
scenario:

Here is the scenario, I used the wicket examples provided online 
(http://wicketstuff.org/grid-examples/data-grid/simple.0;jsessionid=319CDEAD389BDC44FC4D07FE9E0C938B),
 viewed the styles using the IE8 provided developer tools (F12), selected Last 
Name Clark and changed its div tag to include style: text-align:right and the 
last character of 'Clark' is truncated.  After more drilling, it appears that 
each div is the same width of the parent td, but there is a 4px difference 
between the starting position of the td plus the width and the starting 
position of the next width.  So if you aligned the text to the right for home 
phone and cell phone, more and more of the last character will be in-visible.

Also, the column lines between the header and data columns get progressively 
further and further away from each other, probably because of that 4px issue I 
mentioned before.



RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com
304 West Route 38, Moorestown, NJ 08057

-Original Message-
From: Russell Morrisey [mailto:russell.morri...@missionse.com]
Sent: Tuesday, March 16, 2010 11:09 AM
To: users@wicket.apache.org
Subject: RE: inmethod DataGrid problem in IE8

Marsha wasn't able to reproduce the problem in the examples. She is working on 
it now. Thanks for the quick response!


RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com

-Original Message-
From: Matej Knopp [mailto:matej.kn...@gmail.com]
Sent: Friday, March 12, 2010 3:57 PM
To: users@wicket.apache.org
Subject: Re: inmethod DataGrid problem in IE8

If you run grid examples is the problem present?

-Matej

On Fri, Mar 12, 2010 at 9:54 PM, Russell Morrisey
russell.morri...@missionse.com wrote:
 I am having trouble with the layout of my inmethod DataGrid in wicket.  It 
 appears that the header columns and the data columns are not lining up 
 correctly.  There is a thin outer layer surrounding the individual columns on 
 each row that is pushing the data outside of the viewable area.  This only 
 happens in IE 8, it works fine in lower versions of IE and Firefox.  The 
 summary and header rows work properly but the data rows are the problem.

 Marsha


 
 This is a PRIVATE message. If you are not the intended recipient, please 
 delete without copying and kindly advise us by e-mail of the mistake in 
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
 order or other contract unless pursuant to explicit written agreement or 
 government initiative expressly permitting the use of e-mail for such purpose.



This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.


This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: inmethod DataGrid problem in IE8

2010-03-16 Thread Russell Morrisey
Marsha wasn't able to reproduce the problem in the examples. She is working on 
it now. Thanks for the quick response!


RUSSELL E. MORRISEY
Programmer Analyst Professional
Mission Solutions Engineering, LLC

| russell.morri...@missionse.com | www.missionse.com

-Original Message-
From: Matej Knopp [mailto:matej.kn...@gmail.com]
Sent: Friday, March 12, 2010 3:57 PM
To: users@wicket.apache.org
Subject: Re: inmethod DataGrid problem in IE8

If you run grid examples is the problem present?

-Matej

On Fri, Mar 12, 2010 at 9:54 PM, Russell Morrisey
russell.morri...@missionse.com wrote:
 I am having trouble with the layout of my inmethod DataGrid in wicket.  It 
 appears that the header columns and the data columns are not lining up 
 correctly.  There is a thin outer layer surrounding the individual columns on 
 each row that is pushing the data outside of the viewable area.  This only 
 happens in IE 8, it works fine in lower versions of IE and Firefox.  The 
 summary and header rows work properly but the data rows are the problem.

 Marsha


 
 This is a PRIVATE message. If you are not the intended recipient, please 
 delete without copying and kindly advise us by e-mail of the mistake in 
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
 order or other contract unless pursuant to explicit written agreement or 
 government initiative expressly permitting the use of e-mail for such purpose.



This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



inmethod DataGrid problem in IE8

2010-03-12 Thread Russell Morrisey
I am having trouble with the layout of my inmethod DataGrid in wicket.  It 
appears that the header columns and the data columns are not lining up 
correctly.  There is a thin outer layer surrounding the individual columns on 
each row that is pushing the data outside of the viewable area.  This only 
happens in IE 8, it works fine in lower versions of IE and Firefox.  The 
summary and header rows work properly but the data rows are the problem.

Marsha



This is a PRIVATE message. If you are not the intended recipient, please delete 
without copying and kindly advise us by e-mail of the mistake in delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
order or other contract unless pursuant to explicit written agreement or 
government initiative expressly permitting the use of e-mail for such purpose.


Re: inmethod DataGrid problem in IE8

2010-03-12 Thread Matej Knopp
If you run grid examples is the problem present?

-Matej

On Fri, Mar 12, 2010 at 9:54 PM, Russell Morrisey
russell.morri...@missionse.com wrote:
 I am having trouble with the layout of my inmethod DataGrid in wicket.  It 
 appears that the header columns and the data columns are not lining up 
 correctly.  There is a thin outer layer surrounding the individual columns on 
 each row that is pushing the data outside of the viewable area.  This only 
 happens in IE 8, it works fine in lower versions of IE and Firefox.  The 
 summary and header rows work properly but the data rows are the problem.

 Marsha


 
 This is a PRIVATE message. If you are not the intended recipient, please 
 delete without copying and kindly advise us by e-mail of the mistake in 
 delivery.
 NOTE: Regardless of content, this e-mail shall not operate to bind MSE to any 
 order or other contract unless pursuant to explicit written agreement or 
 government initiative expressly permitting the use of e-mail for such purpose.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: InvalidUrlException thrown while clicking row in a InMethod DataGrid

2010-01-03 Thread Marcin Palka

Hi,

Thanks for your reply. I believe these callbacks are not mandatory. Your
workaround works fine but it also causes the grid selection to disappear
which I don't want to happen.  Thanks to your tip I found another
workaround. This is to use the CloseButtonCallback to hide the iframe before
closing the modal window. This prevents the exception from being thrown.
Anyway the core reason of the problem still remains. Further testing shown
that only the row selection causes the exception. Other operations on the
grid like sorting, switching pages work just fine.

br,
Marcin Palka


Juan Kipes wrote:
 
 I think you forgot this method in the modal
 
 modal.setCloseButtonCallback(new ModalWindow.CloseButtonCallback() {
 
 });
 
 
 modal.setWindowClosedCallback(new
 ModalWindow.WindowClosedCallback()
 {
 
 });
 
 I attached the modified quickstar
 

-- 
View this message in context: 
http://old.nabble.com/InvalidUrlException-thrown-while-clicking-row-in-a-InMethod-DataGrid-tp27001559p27004581.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



inmethod DataGrid and selectAllVisibleItems

2009-12-03 Thread Fernando Wermus
Hello all,
 I am using inmethod's DataGrid and when I use selectAllVisibleItems, it
doesn't select all the items. How come?

Thanks in advance.

-- 
Fernando Wermus.

www.linkedin.com/in/fernandowermus


Re: inmethod datagrid and row additions and filtering

2009-11-05 Thread Deren

I ended up making the following changes to the inmethod datagrid in order to
get the correct behavior:

AbstractPageableView.java:

+  public void reset() {
+   realItemCount = UNKOWN_COUNT;
+   maxFirstItemReached = 0;
+   queryResult = null;
+   cachedPageCount = -1;
+   currentPageFirstItem = 0;
+  }

 

DataGridBody.java:

+  void reset() {
+getData().reset();
+  }
 

DataGrid.java:

+ protected void onModelChanged() {
+ super.onModelChanged();
+ getBody().reset();
+}



Deren wrote:
 
 
 What is the best way to handle an IDataSource backed by a list that might
 change in total size or in contents (add/remove items and filter items)? 
 I have seen cases where the most recently added item is missing (corrected
 after a refresh), where only the last item is displayed (e.g., one row
 displayed but 1-8 of 8 in the footer -- also corrected after a refresh),
 and where no items are displayed after a page refresh.
 
  
 
 Thanks.
 
 _
 Hotmail: Trusted email with powerful SPAM protection.
 http://clk.atdmt.com/GBL/go/177141665/direct/01/
 

-- 
View this message in context: 
http://old.nabble.com/inmethod-datagrid-and-row-additions-and-filtering-tp26210072p26227374.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



where download inmethod datagrid

2009-10-23 Thread Roman Ilin
Hi *,

I saw some screen shots  of inmethod datagrid components.
I see some messages in this mailing list as well writing people are using them.
But I can't find it following the link to http://www.inmethod.com/ on
wicket site.

Can someone tell me how can I start using it? Docs, maven repo?

Regards

Roman

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: where download inmethod datagrid

2009-10-23 Thread Linda van der Pal
It's part of wicketstuff now: 
http://wicketstuff.org/confluence/display/STUFFWEB/Home


Regards,
Linda

Roman Ilin wrote:

Hi *,

I saw some screen shots  of inmethod datagrid components.
I see some messages in this mailing list as well writing people are using them.
But I can't find it following the link to http://www.inmethod.com/ on
wicket site.

Can someone tell me how can I start using it? Docs, maven repo?

Regards

Roman

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
  




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.423 / Virus Database: 270.14.27/2453 - Release Date: 10/23/09 06:56:00


  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: where download inmethod datagrid

2009-10-23 Thread Roman Ilin
thank you

On Fri, Oct 23, 2009 at 1:36 PM, Linda van der Pal
lvd...@heritageagenturen.nl wrote:
 It's part of wicketstuff now:
 http://wicketstuff.org/confluence/display/STUFFWEB/Home

 Regards,
 Linda

 Roman Ilin wrote:

 Hi *,

 I saw some screen shots  of inmethod datagrid components.
 I see some messages in this mailing list as well writing people are using
 them.
 But I can't find it following the link to http://www.inmethod.com/ on
 wicket site.

 Can someone tell me how can I start using it? Docs, maven repo?

 Regards

 Roman

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
  


 No virus found in this incoming message.
 Checked by AVG - www.avg.com Version: 8.5.423 / Virus Database:
 270.14.27/2453 - Release Date: 10/23/09 06:56:00




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Small bug in inmethod datagrid

2009-10-22 Thread Linda van der Pal
I've just reported a bug with the inmethod datagrid: 
http://wicketstuff.org/jira/browse/GRID-2

I've added a quickstart as well.

When I try to resize the columns of a datagrid with both columns that 
are lightweight and those that are not, the position of the table 
borders changes, but the text doesn't move position. The text position 
is only refreshed if I resize the first column or if I resize the 
window. This bug only occurs in Firefox and not in IE or Chrome.


Regards,
Linda

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Column filtering on inmethod datagrid

2009-10-20 Thread Linda van der Pal
I've tried to add column filtering to the inmethod datagrid by creating 
a new class ChoiceFilteredPropertyColumn which extends the new class 
FilteredPropertyColumn, which extends the inmethod PropertyColumn and 
implements the new interface IFilteredColumn. In other words, I've 
merged two sets of classes: the column classes of the inmethod datagrid 
package and the filtered columns that come with wicket extensions.


For some reason however, this isn't working yet. At first I thought that 
the classes themselves weren't working properly. But then I saw that the 
filters ARE included in the HTML. They simply don't show up on the 
website itself. And I can't figure out why. I didn't see any 
style=display:none or anything obvious like that. Does anybody have 
any pointers that I could look for? (I'd love to include some code, but 
it's rather bulky and I have no idea what portion to include to be helpful.)


Regards,
Linda

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: inmethod datagrid and wicket 1.4 and generics

2009-10-13 Thread Stefan Lindner
May I create a branch like inmethod-grid-1.0b4? This would help me in 
checking in intermediate steps and revert if I'm on the wrong way. Approx half 
of inmehtod grid is generic now.

Stefan

-Ursprüngliche Nachricht-
Von: Matej Knopp [mailto:matej.kn...@gmail.com] 
Gesendet: Montag, 12. Oktober 2009 17:26
An: users@wicket.apache.org
Cc: e...@shinsetsu.nl
Betreff: Re: inmethod datagrid and wicket 1.4 and generics

I think there is a datagrid project in wicket stuff jira. If you do
any work (against current trunk - not 1.3) patch is always welcome.
You can create a jira issue for it and attach it there.

-Matej

On Mon, Oct 12, 2009 at 5:24 PM, Stefan Lindner lind...@visionet.de wrote:
 Thenk you all for your replies!

 I found a hand full of mailing list entrys with hints for patches to
 make some classes generic. Are there any attempts to integrate them into
 the current trunk? I think a generic IGridColumn would be very handy.
 Should I start doing it?

 Stefan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



One inmethod datagrid question

2009-10-13 Thread François Jeunesse
Hi,

 

First, thanks Matej for you job!

Here is my question: 

I use the editable datagrid example, and I have added one column to permit
deleting functionality.

When one user click on delete a row, I modify my datasource, and call the
‘getGrid().setDefaultModelObject(new DataSource…)’ function.

This work fine, if I click in the paging navigation on page 2 and next, come
back to the 1st, my datagrid is refreshed.

 

How can I force the refresh directly without click in the navigation paging?

PS: Not working with update() function.

 

Thanks for help please.

 

 



Re: inmethod datagrid and wicket 1.4 and generics

2009-10-13 Thread Matej Knopp
Sure. If you have commit access to wicket stuff feel free to branch the trunk.

-Matej

On Tue, Oct 13, 2009 at 10:24 AM, Stefan Lindner lind...@visionet.de wrote:
 May I create a branch like inmethod-grid-1.0b4? This would help me in 
 checking in intermediate steps and revert if I'm on the wrong way. Approx 
 half of inmehtod grid is generic now.

 Stefan

 -Ursprüngliche Nachricht-
 Von: Matej Knopp [mailto:matej.kn...@gmail.com]
 Gesendet: Montag, 12. Oktober 2009 17:26
 An: users@wicket.apache.org
 Cc: e...@shinsetsu.nl
 Betreff: Re: inmethod datagrid and wicket 1.4 and generics

 I think there is a datagrid project in wicket stuff jira. If you do
 any work (against current trunk - not 1.3) patch is always welcome.
 You can create a jira issue for it and attach it there.

 -Matej

 On Mon, Oct 12, 2009 at 5:24 PM, Stefan Lindner lind...@visionet.de wrote:
 Thenk you all for your replies!

 I found a hand full of mailing list entrys with hints for patches to
 make some classes generic. Are there any attempts to integrate them into
 the current trunk? I think a generic IGridColumn would be very handy.
 Should I start doing it?

 Stefan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: One inmethod datagrid question

2009-10-13 Thread Matej Knopp
Why do you call getGrid().setDefaultModelObject() again? You should
keep the same data source just let it output different data.

-Matej

2009/10/13 François Jeunesse francois.jeune...@a-syst.com:
 Hi,



 First, thanks Matej for you job!

 Here is my question:

 I use the editable datagrid example, and I have added one column to permit
 deleting functionality.

 When one user click on delete a row, I modify my datasource, and call the
 ‘getGrid().setDefaultModelObject(new DataSource…)’ function.

 This work fine, if I click in the paging navigation on page 2 and next, come
 back to the 1st, my datagrid is refreshed.



 How can I force the refresh directly without click in the navigation paging?

 PS: Not working with update() function.



 Thanks for help please.







-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: inmethod datagrid and wicket 1.4 and generics

2009-10-13 Thread Stefan Lindner
Hello Matej,

I have created 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/inmethod-grid-generic
 an made most of the public Interfaces and classes generic. I have generified 
most parts of the examples too.
It would be nice to get any feedback from you.

Stefan

-Ursprüngliche Nachricht-
Von: Matej Knopp [mailto:matej.kn...@gmail.com] 
Gesendet: Dienstag, 13. Oktober 2009 12:08
An: users@wicket.apache.org
Betreff: Re: inmethod datagrid and wicket 1.4 and generics

Sure. If you have commit access to wicket stuff feel free to branch the trunk.

-Matej

On Tue, Oct 13, 2009 at 10:24 AM, Stefan Lindner lind...@visionet.de wrote:
 May I create a branch like inmethod-grid-1.0b4? This would help me in 
 checking in intermediate steps and revert if I'm on the wrong way. Approx 
 half of inmehtod grid is generic now.

 Stefan

 -Ursprüngliche Nachricht-
 Von: Matej Knopp [mailto:matej.kn...@gmail.com]
 Gesendet: Montag, 12. Oktober 2009 17:26
 An: users@wicket.apache.org
 Cc: e...@shinsetsu.nl
 Betreff: Re: inmethod datagrid and wicket 1.4 and generics

 I think there is a datagrid project in wicket stuff jira. If you do
 any work (against current trunk - not 1.3) patch is always welcome.
 You can create a jira issue for it and attach it there.

 -Matej

 On Mon, Oct 12, 2009 at 5:24 PM, Stefan Lindner lind...@visionet.de wrote:
 Thenk you all for your replies!

 I found a hand full of mailing list entrys with hints for patches to
 make some classes generic. Are there any attempts to integrate them into
 the current trunk? I think a generic IGridColumn would be very handy.
 Should I start doing it?

 Stefan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: One inmethod datagrid question

2009-10-13 Thread François Jeunesse
I think I'm doing it in the bad way.
Should I get my data source with 
DataSource myDataSource = getGrid().getDefaultModel();

And after delete the deleted row with something like
myDataSource.delete(id);

And what next? Can you give me an example please?

Thanks

-Original Message-
From: Matej Knopp [mailto:matej.kn...@gmail.com] 
Sent: mardi 13 octobre 2009 12:21
To: users@wicket.apache.org
Subject: Re: One inmethod datagrid question

Why do you call getGrid().setDefaultModelObject() again? You should
keep the same data source just let it output different data.

-Matej

2009/10/13 François Jeunesse francois.jeune...@a-syst.com:
 Hi,



 First, thanks Matej for you job!

 Here is my question:

 I use the editable datagrid example, and I have added one column to permit
 deleting functionality.

 When one user click on delete a row, I modify my datasource, and call the
 ‘getGrid().setDefaultModelObject(new DataSource…)’ function.

 This work fine, if I click in the paging navigation on page 2 and next,
come
 back to the 1st, my datagrid is refreshed.



 How can I force the refresh directly without click in the navigation
paging?

 PS: Not working with update() function.



 Thanks for help please.







-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How to avoid an empty row in inmethod datagrid editable example

2009-10-12 Thread François Jeunesse
Hi,

 

I’am using the editable datagrid example from inmethod.

 

When I add my grid to my page, I’am using this line:

DataGrid grid = new DefaultDataGrid(grid, new
infoDataSource(dp.getInfoVintage()), columns);

 

The final result, like on the website example
(http://wicketstuff.org/grid-examples/data-grid/editable-selection.1) is
that one empty row is added at the end of the datagrid.

 

Is there a way to avoid it? (I would like for example having my datagrid
center on the screen with no empty rows) I searched in DefaultDataGrid
source code but found no results.

Thanks for help,

 

François Jeunesse
IT Consultant
A-SYST SA
Route de Holzem, 3
L-8232 Mamer
Luxembourg
Mobile (Lux) : +352 691 945 980
Mobile (Bel) : +32 474 49 83 82

 



inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Stefan Lindner
I found inmethod datagrid at
http://wicketstuff.org/maven/repository/com/inmethod/grid-examples/ but
no hint or link to it on the wiki page
http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki.

The project remained in 1.0 state since the end of last year. Is it
compatible with wicket 1.4? Is it still under development? Does it
support generics now?

Does anybody use it togehter with wicket 1.4?

Stefan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Erik Post
Hi Stefan,

It's compatible, I'm using it myself:

dependency
groupIdorg.wicketstuff/groupId
artifactIdinmethod-grid/artifactId
version1.4-SNAPSHOT/version
/dependency

repositories
repository
idwicket-snaps/id
urlhttp://wicketstuff.org/maven/repository/url
snapshots
enabledtrue/enabled
/snapshots
releases
enabledtrue/enabled
/releases
/repository


Cheers,
Erik

On Mon, Oct 12, 2009 at 3:35 PM, Stefan Lindner lind...@visionet.de wrote:
 I found inmethod datagrid at
 http://wicketstuff.org/maven/repository/com/inmethod/grid-examples/ but
 no hint or link to it on the wiki page
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki.

 The project remained in 1.0 state since the end of last year. Is it
 compatible with wicket 1.4? Is it still under development? Does it
 support generics now?

 Does anybody use it togehter with wicket 1.4?

 Stefan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Linda van der Pal
I'm certain there is a 1.4 version, as I have it downloaded. Try using 
this URL to get it from SVN:


https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/releases/wicketstuff-core-1.4-rc7/inmethod-grid-parent

Regards,
Linda

Stefan Lindner wrote:

I found inmethod datagrid at
http://wicketstuff.org/maven/repository/com/inmethod/grid-examples/ but
no hint or link to it on the wiki page
http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki.

The project remained in 1.0 state since the end of last year. Is it
compatible with wicket 1.4? Is it still under development? Does it
support generics now?

Does anybody use it togehter with wicket 1.4?

Stefan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
  




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.421 / Virus Database: 270.14.11/2430 - Release Date: 10/12/09 04:01:00


  



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Erik Post
I created a draft wiki page, could someone please modify it as needed
and add it to the wicketstuff wiki front page? Btw, Linda, your
company seems to be across the street from me! That's pretty amazing
for a town like this...

Cheers,
Erik

http://wicketstuff.org/confluence/display/STUFFWIKI/Inmethod+Grid

On Mon, Oct 12, 2009 at 3:53 PM, Linda van der Pal
lvd...@heritageagenturen.nl wrote:
 I'm certain there is a 1.4 version, as I have it downloaded. Try using this
 URL to get it from SVN:

 https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/releases/wicketstuff-core-1.4-rc7/inmethod-grid-parent

 Regards,
 Linda

 Stefan Lindner wrote:

 I found inmethod datagrid at
 http://wicketstuff.org/maven/repository/com/inmethod/grid-examples/ but
 no hint or link to it on the wiki page
 http://wicketstuff.org/confluence/display/STUFFWIKI/Wiki.

 The project remained in 1.0 state since the end of last year. Is it
 compatible with wicket 1.4? Is it still under development? Does it
 support generics now?

 Does anybody use it togehter with wicket 1.4?

 Stefan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
  


 No virus found in this incoming message.
 Checked by AVG - www.avg.com Version: 8.5.421 / Virus Database:
 270.14.11/2430 - Release Date: 10/12/09 04:01:00




 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Stefan Lindner
Thenk you all for your replies!

I found a hand full of mailing list entrys with hints for patches to
make some classes generic. Are there any attempts to integrate them into
the current trunk? I think a generic IGridColumn would be very handy.
Should I start doing it?

Stefan

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod datagrid and wicket 1.4 and generics

2009-10-12 Thread Matej Knopp
I think there is a datagrid project in wicket stuff jira. If you do
any work (against current trunk - not 1.3) patch is always welcome.
You can create a jira issue for it and attach it there.

-Matej

On Mon, Oct 12, 2009 at 5:24 PM, Stefan Lindner lind...@visionet.de wrote:
 Thenk you all for your replies!

 I found a hand full of mailing list entrys with hints for patches to
 make some classes generic. Are there any attempts to integrate them into
 the current trunk? I think a generic IGridColumn would be very handy.
 Should I start doing it?

 Stefan

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Two inmethod datagrid questions

2009-10-12 Thread Stefan Lindner
I play around with the DefaultDataGrid component and I have two questions:

1. Is it possible to register for a column resized event? This would give us 
the ability to remember the user's favorite column widths.
2. Is it possible to hide the navigation footer? Yes, I can do it via css but 
if I don't need a footer why should there be an invisible one.

Very nice component!


Re: Two inmethod datagrid questions

2009-10-12 Thread Erik Post
On Mon, Oct 12, 2009 at 10:24 PM, Stefan Lindner lind...@visionet.de wrote:
 I play around with the DefaultDataGrid component and I have two questions:

 1. Is it possible to register for a column resized event? This would give 
 us the ability to remember the user's favorite column widths.
 2. Is it possible to hide the navigation footer? Yes, I can do it via css but 
 if I don't need a footer why should there be an invisible one.

and...

3) Could someone perhaps link the grid wiki page I created this
afternoon [1] on the wicketstuff front page? I don't have the required
permissions. The url is:
http://wicketstuff.org/confluence/display/STUFFWIKI/Inmethod+Grid --
many thanks!

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Two inmethod datagrid questions

2009-10-12 Thread Matej Knopp
On Mon, Oct 12, 2009 at 10:24 PM, Stefan Lindner lind...@visionet.de wrote:
 I play around with the DefaultDataGrid component and I have two questions:

 1. Is it possible to register for a column resized event? This would give 
 us the ability to remember the user's favorite column widths.
Override onColumnStateChanged

 2. Is it possible to hide the navigation footer? Yes, I can do it via css but 
 if I don't need a footer why should there be an invisible one.
Don't used DefaultDataGrid. Make your own subclass and don't add PagingToolbar.

-Matej

 Very nice component!


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



inMethod DataGrid initial selection

2009-10-02 Thread Swanthe Lindgren
Does anybody know how to get a row initially selected when the grid is 
first drawn?


//Swanthe


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inMethod DataGrid initial selection

2009-10-02 Thread Martin Grigorov
grid.selectItem(rowModel);

El vie, 02-10-2009 a las 11:25 +0200, Swanthe Lindgren escribió:
 Does anybody know how to get a row initially selected when the grid is 
 first drawn?
 
 //Swanthe
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inMethod DataGrid initial selection

2009-10-02 Thread Swanthe Lindgren
Yes, I got that part right, thank you. But somehow the item is not 
hi-lighted in my grid.
When the grid instance is constructed and added to the page, the data to 
be shown in the grid has not yet been loaded. I know that the row i want 
selected is going to be there once the data is loaded and the grid is 
displayed, so I tried to create a Model containing the selected object 
and setting it on the grid with DataGrid.selectItem(), and obviously it 
partially works since other components that are depending on the grid 
for model data is displaying the item correct information from the 
preselected item.

But still, the row in the displayed grid remains unselected.

So far I have configured my grid with
datagrid.setRowsPerPage(10);
datagrid.setClickRowToSelect(true);
datagrid.setClickRowToDeselect(false);
datagrid.setAllowSelectMultiple(false);
datagrid.selectItem(preselectedModel, true);


Any other suggestions?

Martin Grigorov wrote:

grid.selectItem(rowModel);

El vie, 02-10-2009 a las 11:25 +0200, Swanthe Lindgren escribió:
  
Does anybody know how to get a row initially selected when the grid is 
first drawn?


//Swanthe


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


  




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inMethod DataGrid initial selection

2009-10-02 Thread Matej Knopp
Make sure that the equals method on your model(s) is properly
implemented. Also check equals on your entities.

-Matej

On Fri, Oct 2, 2009 at 1:37 PM, Swanthe Lindgren
swanthe.lindg...@megasol.se wrote:
 Yes, I got that part right, thank you. But somehow the item is not
 hi-lighted in my grid.
 When the grid instance is constructed and added to the page, the data to be
 shown in the grid has not yet been loaded. I know that the row i want
 selected is going to be there once the data is loaded and the grid is
 displayed, so I tried to create a Model containing the selected object and
 setting it on the grid with DataGrid.selectItem(), and obviously it
 partially works since other components that are depending on the grid for
 model data is displaying the item correct information from the preselected
 item.
 But still, the row in the displayed grid remains unselected.

 So far I have configured my grid with
 datagrid.setRowsPerPage(10);
 datagrid.setClickRowToSelect(true);
 datagrid.setClickRowToDeselect(false);
 datagrid.setAllowSelectMultiple(false);
 datagrid.selectItem(preselectedModel, true);


 Any other suggestions?

 Martin Grigorov wrote:

 grid.selectItem(rowModel);

 El vie, 02-10-2009 a las 11:25 +0200, Swanthe Lindgren escribió:


 Does anybody know how to get a row initially selected when the grid is
 first drawn?

 //Swanthe


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org






 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod DataGrid javascript error (with fix?)

2009-09-25 Thread Matej Knopp
Thanks. Should be fixed in SVN.

-Matej

On Fri, Sep 25, 2009 at 2:05 AM, Russell Morrisey rmorri...@csc.com wrote:
 I'm getting a javascript error using the inmethod DataGrid; it looks to me
 like a bug with the DataGrid's script code. I am hoping that the DataGrid
 script can be patched =)

 When using the inmethod grid (com.inmethod.grid.datagrid.DataGrid), I get
 the error whenever I hover the mouse over a row in the grid. This seems to
 happen:
 -Only in IE6
 -Only when window.update is already defined. In my case, my page has:
 input id=update value=UPDATE type=button /. (This button is just a
 stub, not wicket-enabled yet.) Debugging in Visual Studio, I see that
 there is a reference to the button (update) already defined, which seems
 to be generated automatically by IE.

 When I mouse over the grid I get: Object does not support this property
 or method, in AbstractGrid/res/script.js, in the updatePrelight method,
 on this line:

 update = function(e) {

                                var scrollLeft;

                                if (Wicket.Browser.isOpera()) {
                                        // for some reason opera doesn't
 preserve the scroll offset when changing/removing style
                                        bodyContainer1 = this.getElement(
 div, imxt-body-container1);
                                        scrollLeft =
 bodyContainer1.scrollLeft;
                                        //e.style.visibility = hidden;
                                }

                                if (e.imxtPrelight == true) {
                                        addClass(e, imxt-prelight);
                                } else {
                                        removeClass(e, imxt-prelight);
                                }

                                if (Wicket.Browser.isOpera()) {
                                        //e.style.visibility = ;
                                        bodyContainer1 = this.getElement(
 div, imxt-body-container1);
                                        bodyContainer1.scrollLeft =
 scrollLeft;
                                }

                        }.bind(this);

 We use the DataGrid on another page in our production app and it doesn't
 experience this problem. The other page does not have a DOM element with
 id=update, or a window.update property. I think the script needs to be
 changed to:

 var update = function...

 So that the locally defined function isn't trying to overwrite the
 window.update property.

 I'm using datagrid version: 1.0.0-SNAPSHOT according to our project's POM.

 Thanks!

 Russell E. Morrisey
 Application Designer Associate Professional
 CSC

 NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
 any order or other contract unless pursuant to explicit written agreement
 or government initiative expressly permitting the use of e-mail for such
 purpose.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



inmethod DataGrid javascript error (with fix?)

2009-09-24 Thread Russell Morrisey
I'm getting a javascript error using the inmethod DataGrid; it looks to me 
like a bug with the DataGrid's script code. I am hoping that the DataGrid 
script can be patched =)

When using the inmethod grid (com.inmethod.grid.datagrid.DataGrid), I get 
the error whenever I hover the mouse over a row in the grid. This seems to 
happen:
-Only in IE6
-Only when window.update is already defined. In my case, my page has: 
input id=update value=UPDATE type=button /. (This button is just a 
stub, not wicket-enabled yet.) Debugging in Visual Studio, I see that 
there is a reference to the button (update) already defined, which seems 
to be generated automatically by IE.

When I mouse over the grid I get: Object does not support this property 
or method, in AbstractGrid/res/script.js, in the updatePrelight method, 
on this line:

update = function(e) {
 
var scrollLeft;
 
if (Wicket.Browser.isOpera()) {
// for some reason opera doesn't 
preserve the scroll offset when changing/removing style
bodyContainer1 = this.getElement(
div, imxt-body-container1); 
scrollLeft = 
bodyContainer1.scrollLeft;
//e.style.visibility = hidden;
} 
 
if (e.imxtPrelight == true) {
addClass(e, imxt-prelight);
} else {
removeClass(e, imxt-prelight);
}
 
if (Wicket.Browser.isOpera()) {
//e.style.visibility = ;
bodyContainer1 = this.getElement(
div, imxt-body-container1);
bodyContainer1.scrollLeft = 
scrollLeft;
}
 
}.bind(this);

We use the DataGrid on another page in our production app and it doesn't 
experience this problem. The other page does not have a DOM element with 
id=update, or a window.update property. I think the script needs to be 
changed to:

var update = function... 

So that the locally defined function isn't trying to overwrite the 
window.update property.

I'm using datagrid version: 1.0.0-SNAPSHOT according to our project's POM.

Thanks! 

Russell E. Morrisey
Application Designer Associate Professional
CSC 

NOTE: Regardless of content, this e-mail shall not operate to bind CSC to 
any order or other contract unless pursuant to explicit written agreement 
or government initiative expressly permitting the use of e-mail for such 
purpose.

inMethod DataGrid row values

2009-09-11 Thread Oliver-Sven Fritsch

Hi group!

I want to open a ModalPanel with detailed information when the user 
clicks on a row in my DataGrid. To do so I override the onCellClicked 
method. My problem is that I don't know how to get the rowdata. No 
matter which approach I try all I see is that I can get the information 
for the column which wont help in my use case. I think this is a very 
common task (getting rowdata i.e. primary key or so).


Any ideas would be really appreciated!

Oliver

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inMethod DataGrid row values

2009-09-11 Thread Matej Knopp
onCellClicked gets the row model object as argument. Call
model.getObject() to get the actual object.

-Matej

On Fri, Sep 11, 2009 at 9:32 AM, Oliver-Sven Fritscho...@3blogos.com wrote:
 Hi group!

 I want to open a ModalPanel with detailed information when the user clicks
 on a row in my DataGrid. To do so I override the onCellClicked method. My
 problem is that I don't know how to get the rowdata. No matter which
 approach I try all I see is that I can get the information for the column
 which wont help in my use case. I think this is a very common task (getting
 rowdata i.e. primary key or so).

 Any ideas would be really appreciated!

 Oliver

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: LinkTree and Tabbed Panel + inMethod DataGrid

2009-09-02 Thread Oliver-Sven Fritsch

Thanks Igor,

I found out that some chaching I did was responsible for that behavior. 
The cell data of the datagrid now gets loaded each time I click on my 
LinkTree. What's still not working is the refreshment of the datagrid 
itself although it's put into a WMC.


What I do is override the onNodeLinkClicked method with 
target.addComponent(mygrid);
Is there anything else i have to add to the click behavior? It still 
updates only if I click the tab or refresh the entire page (f5).


My page layout has two div-containers, one for the tree and one for the 
tab panel. Maybe putting a WMC around the entire 'content'-DIV is the 
solution? Can't believe that.


Really apreciate any further hints!

Oliver

Igor Vaynberg wrote:

sounds like you are ginving your datagrid a static model, instead try
to give it a model that always checks the current treenode and pulls
the associated data.

-igor

On Tue, Sep 1, 2009 at 2:35 AM, Oliver-Sven Fritscho...@3blogos.com wrote:
  

Hi everybody,

I have a LinkTree which will work as my navigation and a panel with tabs for
the content.
Right now the tree loads all the neccesary data and displays correctly. On
one of my tabs I have the inMethod datagrid which displays the values for
the selected treenode well.
My problem is that if I choose another node the datagrid does not refresh
except if I use the browsers refresh (f5). I tried to override the
onNodeLinkClicked method but don't seem to get it working. Could someone
please point me to the right direction? Can't get it working with refresh,
replaceWith etc...

here's my code for the LinkTree

tree = new LinkTree(myLinkTree, t) {
  @Override
  protected void onNodeLinkClicked(java.lang.Object node, BaseTree
tree, AjaxRequestTarget target) {
// this is for updating some global variables
  ((WicketApplication)
getApplication()).setViewId(Integer.valueOf(((MyTreeNode)
node).getPraram1()));
// this is my inMethod datagrid
  target.addComponent( ((ExplorerApplication)
getApplication()).getGrid());

//- what comes here?
  }
  };

Thanks in advance!
Oliver



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

  


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: LinkTree and Tabbed Panel + inMethod DataGrid

2009-09-01 Thread Igor Vaynberg
sounds like you are ginving your datagrid a static model, instead try
to give it a model that always checks the current treenode and pulls
the associated data.

-igor

On Tue, Sep 1, 2009 at 2:35 AM, Oliver-Sven Fritscho...@3blogos.com wrote:
 Hi everybody,

 I have a LinkTree which will work as my navigation and a panel with tabs for
 the content.
 Right now the tree loads all the neccesary data and displays correctly. On
 one of my tabs I have the inMethod datagrid which displays the values for
 the selected treenode well.
 My problem is that if I choose another node the datagrid does not refresh
 except if I use the browsers refresh (f5). I tried to override the
 onNodeLinkClicked method but don't seem to get it working. Could someone
 please point me to the right direction? Can't get it working with refresh,
 replaceWith etc...

 here's my code for the LinkTree

 tree = new LinkTree(myLinkTree, t) {
           @Override
           protected void onNodeLinkClicked(java.lang.Object node, BaseTree
 tree, AjaxRequestTarget target) {
 // this is for updating some global variables
               ((WicketApplication)
 getApplication()).setViewId(Integer.valueOf(((MyTreeNode)
 node).getPraram1()));
 // this is my inMethod datagrid
               target.addComponent( ((ExplorerApplication)
 getApplication()).getGrid());

 //- what comes here?
           }
       };

 Thanks in advance!
 Oliver



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod datagrid with a DropDownChoice cell

2009-08-13 Thread suilix


Will Jaynes-4 wrote:
 
 I have come up with a quickstart project that shows my problem with
 creating
 an EditableDropDownPropertyColumn for the inmethod datagrid.  I'm sure I'm
 not understanding something fundamental. The classes in the
 edu.umich.med.irs.column package are my attempts.
 
 If anyone has time to look at this I'd certainly appreciate it. Thanks.
 
 Will
 

The attached updated example fixes the problem: 
http://www.nabble.com/file/p24964981/irs-quickstart2.zip irs-quickstart2.zip
.

-- 
View this message in context: 
http://www.nabble.com/inmethod-datagrid-with-a-DropDownChoice-cell-tp22068863p24964981.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How do I set a selected item outside of an inmethod datagrid?

2009-07-21 Thread satar
 */
if (target != null) {
  /*
   * Reset the history data source to the item id and shift report
date
   * for the item selected. In this case the shift report date will
   * always be the same so we may want to optimize that later.
   */
  checkItemHistoryDataSource.setCheckProfileId(listItemSelected
  .getMatrixCheckProfile().getId());
  checkItemHistoryDataSource.setShiftDate(listItemSelected
  .getMatrixShiftReport().getDay());
  /*
   * We know that we want to change the history item if it currently
   * doesn't match the listItemSelected and that the data model will
   * choose the day of the one selected by the listItemSelected by
   * default; however, unfortunately setting it in the
   * checkItemHistoryDataSource doesn't refresh the selectedItem.
   */
  if ((historyItemSelected.getId() == null)
  ||
!historyItemSelected.getMatrixCheckProfile().getId().equals(
  listItemSelected.getMatrixCheckProfile().getId())) {
itemSelectedHistoryGrid.resetSelectedItems();
selectedItemPanel.setSelectedItem(listItemSelected);
target.addComponent(itemSelectedHistoryGrid);
target.addComponent(selectedItemPanel);
  }
}
  }
};


It took me quite a bit of time to figure this out so maybe it will save
someone else some time or stimulate better ideas on how to solve such a
problem.
-- 
View this message in context: 
http://www.nabble.com/How-do-I-set-a-selected-item-outside-of-an-inmethod-datagrid--tp24565364p24592148.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How do I set a selected item outside of an inmethod datagrid?

2009-07-21 Thread Marcin Palka

If I understand your problem correctly you want to do master and detail
grids. When you select an item in a master table (by means of a mouse click)
you want to repopulate the details(history) table and make a selection on
programmaticaly, right? 

I would say you first need to override onItemSelection changed to intercept
selection events on your master table:

@Override
public void onItemSelectionChanged(IModel item, boolean
newValue) {
super.onItemSelectionChanged(item, newValue);
if (newValue) {
//selection has changed on the master table 
//so you have to update
//the history table's datasource object
updateHistoryTableDatasource(item);//you implementation
goes here
//mark all items in a detail table for update
historyTable.markAllItemsDirty();
//refresh detail table
historyTable.update();
}
}

And for selection of a newest item in a history I would suggest that you
sort history by date that the newest item comes first and then simply select
the first item in the historyTable.

cheers
Marcin
-- 
View this message in context: 
http://www.nabble.com/How-do-I-set-a-selected-item-outside-of-an-inmethod-datagrid--tp24565364p24595335.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



How do I set a selected item outside of an inmethod datagrid?

2009-07-20 Thread Steve Tarlton
I have a table that contains history entries of an item table. Whenever I
change the selection in the item table, I repopulate the history in the
history table. What I would like to do is select the newest history entry in
the history table by default whenever I change the selection on the item
table.


Update separate current select panel from AjaxSelfUpdatingTimerBehavior of inmethod DataGrid

2009-07-16 Thread Steve Tarlton
Stumbling on this one: I am using an AjaxSelfUpdatingTimerBehavior added to
an inmethod DataGrid to have it update its datasource from a database every
15 seconds. This worked well but then I also want to update a corresponding
panel that contains data from the currently selected row of the DataGrid. I
feed to the DataGrid a data source that implements IDataSource so I can
provide my own sortIterator and have my data source pull from the database
automatically itself. Thing is, I want to update an external panel that
contains the currently selected row (I have it set to single select) if the
contents in the database changes. I figured one way to do that is to create
a getObject() method in my data source so that I can override it and get
each item being iterated over whenever the data source is refreshing and
compare it with the id of the one currently selected. This worked fine but
now I am not sure how to tell the panel to refresh itself from an Override
of the getObject() method of the extended IDataSource. Any suggestions?
Maybe I should be going about it differently and Overriding something within
the DataGrid and walking the data source from it? I know if I could do that,
the use of the AjaxRequestTarget.get() method works.

Thanks ahead of time for any help/hints on this one,
-Steve


Re: Update separate current select panel from AjaxSelfUpdatingTimerBehavior of inmethod DataGrid

2009-07-16 Thread satar

Sorry, I should have explored deeper into the user list on this one. It was
basically already answered before in thread:
http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-and-Panels-td24301204.html#a24301204

I simply changed the scope of my timer to be the whole page beings that is
all it has on it and this worked perfectly! Man I LOVE Wicket... I can do
very powerful things already and I am basically a newbie!
-- 
View this message in context: 
http://www.nabble.com/Update-separate-current-select-panel-from-AjaxSelfUpdatingTimerBehavior--of-inmethod-DataGrid-tp24526412p24526740.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Dynamic links in inmethod DataGrid

2009-07-14 Thread James Carman
The wicket:id attributes can be useful during development.  They're
automatically stripped in deployment mode.  You might also want to
turn on the setting that tells Wicket to spit out the component path.

On Mon, Jul 13, 2009 at 5:55 PM, satarstarl...@gmail.com wrote:

 James, is this similar to calling
 getMarkupSettings().setStripWicketTags(boolean), which I am doing in the
 application init for my app? I saw that in some example somewhere during my
 reading and wondered why would you want to ever include wicket id's in the
 generated html? Is there any good reason one my want the tags in the
 rendered HTML?
 --
 View this message in context: 
 http://www.nabble.com/Dynamic-links-in-inmethod-DataGrid-tp24424621p24470121.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Dynamic links in inmethod DataGrid

2009-07-13 Thread satar

James, is this similar to calling
getMarkupSettings().setStripWicketTags(boolean), which I am doing in the
application init for my app? I saw that in some example somewhere during my
reading and wondered why would you want to ever include wicket id's in the
generated html? Is there any good reason one my want the tags in the
rendered HTML?
-- 
View this message in context: 
http://www.nabble.com/Dynamic-links-in-inmethod-DataGrid-tp24424621p24470121.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Dynamic links in inmethod DataGrid

2009-07-10 Thread De Soza, Jean-Pierre
Hello,

I'm facing a very specific issue with Links in a cell of the inmethod DatGrid:

-If I use a link with a static text next to a label with a variable 
text, the link works perfectly:

label wicket:id=labelA variable text/labelnbsp;a href=some url 
wicket:id=linkRead More.../a

-Now if I change the hierarchy (in markup and in java), the same link 
won't work:

a href=some url wicket:id=link label wicket:id=labelA variable 
text/label/a
Curiously enough, if you view the source of the page in the browser, and copy 
the generated href and paste it in a new browser window, the link works as 
expected.
Any experience or idea on this?

Jean-Pierre DE SOZA
Software Engineer




Re: Dynamic links in inmethod DataGrid

2009-07-10 Thread James Carman
Tell the label to render its body only.

On Fri, Jul 10, 2009 at 5:08 AM, De Soza,
Jean-Pierrejean-pierre.des...@hp.com wrote:
 Hello,

 I'm facing a very specific issue with Links in a cell of the inmethod DatGrid:

 -        If I use a link with a static text next to a label with a variable 
 text, the link works perfectly:

 label wicket:id=labelA variable text/labelnbsp;a href=some url 
 wicket:id=linkRead More.../a

 -        Now if I change the hierarchy (in markup and in java), the same link 
 won't work:

 a href=some url wicket:id=link label wicket:id=labelA variable 
 text/label/a
 Curiously enough, if you view the source of the page in the browser, and copy 
 the generated href and paste it in a new browser window, the link works as 
 expected.
 Any experience or idea on this?

 Jean-Pierre DE SOZA
 Software Engineer




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Dynamic links in inmethod DataGrid

2009-07-10 Thread jpds

Can you elaborate a little bit, James, I am not sure about what you exactly
mean.
Override OnRender for the label?

I'd also like to add another variable in the picture... In fact, the link
does work, but only with Firefox, not with IE7, and I unfortunately need to
support both.


James Carman-3 wrote:
 
 Tell the label to render its body only.
 

-- 
View this message in context: 
http://www.nabble.com/Dynamic-links-in-inmethod-DataGrid-tp24424621p24426453.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Dynamic links in inmethod DataGrid

2009-07-10 Thread James Carman
http://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#setRenderBodyOnly(boolean)

On Fri, Jul 10, 2009 at 8:17 AM, jpdsjean-pierre.des...@hp.com wrote:

 Can you elaborate a little bit, James, I am not sure about what you exactly
 mean.
 Override OnRender for the label?

 I'd also like to add another variable in the picture... In fact, the link
 does work, but only with Firefox, not with IE7, and I unfortunately need to
 support both.


 James Carman-3 wrote:

 Tell the label to render its body only.


 --
 View this message in context: 
 http://www.nabble.com/Dynamic-links-in-inmethod-DataGrid-tp24424621p24426453.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod datagrid with a DropDownChoice cell

2009-06-30 Thread jsinger66

Hi 

Have either of you solved this issue?

You need to add the model to the new DropDownChoice

Solution:

public DropDownPanel(String id, final IModel model, IModel rowModel,
AbstractColumn column, final List data, final ChoiceRenderer renderer) {
super(id, column, rowModel);

DropDownChoice ddc = new DropDownChoice(dropdown,model, data, 
renderer)
{


Hope this helps.

Jeff Singer
-- 
View this message in context: 
http://www.nabble.com/inmethod-datagrid-with-a-DropDownChoice-cell-tp22068863p24278038.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod datagrid with a DropDownChoice cell

2009-06-14 Thread zeljko

Hello Will!

Have you solved this problem? I also need to have a data grid component with
dropdown column and can not find any examples. Thanks in advance!

//Zeljko
-- 
View this message in context: 
http://www.nabble.com/inmethod-datagrid-with-a-DropDownChoice-cell-tp22068863p24025546.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Inmethod DataGrid without column headers?

2009-05-29 Thread Marcin Palka
Hi,

Is there any way to render a Inmethod DataGrid without column headers?
For wicket's standard DataTable there's a HeaderlessColumn but I
haven't been able to find an equivalent column type for DataGrid.

cheers
Marcin

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Inmethod DataGrid without column headers?

2009-05-29 Thread Cristi Manole
I might be wrong, but...

Datagrid extends AbstractGrid which has
public void addHeaderToolbar(AbstractHeaderToolbar toolbar) {
addToolbar(toolbar, headerToolbarContainer);
}

simply overriding that in your Datagrid
public void addHeaderToolbar(AbstractHeaderToolbar toolbar) {
//nothing
}
doesn't do what you want?

Cristi Manole


On Fri, May 29, 2009 at 12:37 PM, Marcin Palka marcin.pa...@gmail.comwrote:

 Hi,

 Is there any way to render a Inmethod DataGrid without column headers?
 For wicket's standard DataTable there's a HeaderlessColumn but I
 haven't been able to find an equivalent column type for DataGrid.

 cheers
 Marcin

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Cristi Manole

Nova Creator Software
www.novacreator.com


Re: Inmethod DataGrid without column headers?

2009-05-29 Thread Marcin Palka

Thanks for reply. I already gave this one a try. It does not seem to be
called at all. I searched through inmethod grid sources and it seems that it
really isn't called at all. My search shown only one occurence of
addHeaderToolbar method which is its declaration in AbstractDataGrid class. 

This is my code:
DataGrid grid = new DataGrid(usersGrid, usersDS, columns) {

@Override
public void onItemSelectionChanged(IModel item, boolean
newValue) {
super.onItemSelectionChanged(item, newValue);
selectedUser = (User) item.getObject();
}

@Override
protected void onRowPopulated(WebMarkupContainer rowComponent) {
super.onRowPopulated(rowComponent);
rowComponent.add(new AjaxEventBehavior(ondblclick) {

@Override
protected void onEvent(AjaxRequestTarget target) {
showModalUserEditor(ComponentViewMode.EDIT);
}
});
}

@Override
public void addHeaderToolbar(AbstractHeaderToolbar toolbar) {
logger.info(addHeaderToolbar);
//super.addHeaderToolbar(toolbar);
}

@Override
public void addTopToolbar(AbstractToolbar toolbar) {
logger.info(addTopToolbard);
//super.addTopToolbar(toolbar);
}
};

Marcin
-- 
View this message in context: 
http://www.nabble.com/Inmethod-DataGrid-without-column-headers--tp23782672p23784978.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



inmethod datagrid: how to contribute?

2009-03-20 Thread Will Jaynes
We have been using the inmethod datagrid in our latest project. (1.4
SNAPSHOT from wicketstuff-core) We have some bugs (or issues, at least) to
report and might have some contributions. I don't see a Jira project on the
wicketstuff jira nor is there info on the wicketstuff wiki. Is there a way
to contribute or communicate with the maintainers?

Will


Re: inmethod datagrid: how to contribute?

2009-03-20 Thread Matej Knopp
Hi,

there isn't Jira project on Wicketstuff for it because I'm unable to
connect to Wicket stuff (some firewall issue). Maybe it will help when
Johan (finally) moves Wicketstuff... Johan?

-Matej

On Fri, Mar 20, 2009 at 12:14 PM, Will Jaynes w...@jaynes.org wrote:
 We have been using the inmethod datagrid in our latest project. (1.4
 SNAPSHOT from wicketstuff-core) We have some bugs (or issues, at least) to
 report and might have some contributions. I don't see a Jira project on the
 wicketstuff jira nor is there info on the wicketstuff wiki. Is there a way
 to contribute or communicate with the maintainers?

 Will


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod datagrid, ajax interactions between cells

2009-02-26 Thread jcgarciam

I haven't used inmethod datagrid yet but i guess i wont be different with
another Wicket model component, so just clear the property of your
Underlying model, that should be enough.



Will Jaynes-4 wrote:
 
 I'm working with the inmethod datagrid. I would like to set up some ajax
 interactions between cells within a row. For example, between two
 EditablePropertyColumns, if the user starts typing in one cell, having
 ajax
 blank out the other. There are a lot of methods one can override which
 provide the rowModel as an argument. But I don't see how to get access to
 all the components of a row. And I'm not sure what to do even if I did get
 access to the components in a row.
 
 Has anyone tried to set up such ajax interaction between cells?
 
 Thanks, Will
 
 

-- 
View this message in context: 
http://www.nabble.com/inmethod-datagrid%2C-ajax-interactions-between-cells-tp8762p22231967.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: inmethod datagrid, ajax interactions between cells

2009-02-26 Thread Will Jaynes
Yes. That would addresses the specific example I sited, but not the general
question I have. Suppose I wanted the other cell to turn yellow, or change
it to a dropdown, or anything that affects the component, not necessarily
the model.

On Thu, Feb 26, 2009 at 2:40 PM, jcgarciam jcgarc...@gmail.com wrote:


 I haven't used inmethod datagrid yet but i guess i wont be different with
 another Wicket model component, so just clear the property of your
 Underlying model, that should be enough.



 Will Jaynes-4 wrote:
 
  I'm working with the inmethod datagrid. I would like to set up some ajax
  interactions between cells within a row. For example, between two
  EditablePropertyColumns, if the user starts typing in one cell, having
  ajax
  blank out the other. There are a lot of methods one can override which
  provide the rowModel as an argument. But I don't see how to get access to
  all the components of a row. And I'm not sure what to do even if I did
 get
  access to the components in a row.
 
  Has anyone tried to set up such ajax interaction between cells?
 
  Thanks, Will
 
 

 --
 View this message in context:
 http://www.nabble.com/inmethod-datagrid%2C-ajax-interactions-between-cells-tp8762p22231967.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




inmethod datagrid with a DropDownChoice cell

2009-02-17 Thread Will Jaynes
I'm working with the inmethod datagrid. The grid is editable, and I have it
working just as the examples show, with a couple of cells that contain text.
As in the examples, clicking on a row changes some cells into TextField
components that can be edited.

Now I would like to create a cell that displays text, but when the row is
clicked the cell turns into a DropDownChoice component. I've tried to mimic
the EditablePropertyColumn and the TextFieldPanel with my own
EditableDropDownPropertyColumn and a DropDownPanel. These render fine and
let me select from the dropdown, but things go wrong when I press the submit
icon. I get an exception: Attempt to set model object on null model of
component

If/When I have time I will make a quickstart, but If anyone already has this
kind of thing working I would appreciate very much seeing the code.

Will


Re: inmethod datagrid, validation, and feedback

2009-02-16 Thread Will Jaynes
On Sun, Feb 15, 2009 at 10:40 PM, Timo Rantalaiho timo.rantala...@ri.fiwrote:

 On Sun, 15 Feb 2009, Will Jaynes wrote:
  So, how would one show those error messages? And where would such code
 get
  hooked in?

 I'm not sure about the place but basically you have to add a
 FeedbackPanel and update it in the ajax event that causes
 the error,

  final Component feedback = new FeedbackPanel(feedback)
  .setOutputMarkupPlaceHolder(true);
  add(feedback);
  ...
  @Override protected void onSubmit(AjaxRequestTarget target) {
  target.addComponent(feedback);
  ...
  }

 Best wishes,
 Timo


 AH, yes. Thanks. And the place to do it is in the SubmitCancelColumn :

columns.add(new SubmitCancelColumn(esd, new Model(Edit))
{
@Override
protected void onError(AjaxRequestTarget target, IModel
rowModel, WebMarkupContainer rowComponent)
{
target.addComponent(feedback);
super.onError(target, rowModel, rowComponent);
}
});


inmethod datagrid, validation, and feedback

2009-02-15 Thread Will Jaynes
The examples for an editable inmethod datagrid show how to add validation
when adding a new column.  The firstName and lastName components are
required. (component.setReqired(true)) And, indeed, if one edits a first
name and blanks it out and press the save icon, the row is not updated.
But no feedback is shown.  I can see in the debug messages, when the
WebSession goes to clean up the feedback messages, that there are messages
that haven't been displayed. So we know that the validation works and
produces error messages, but the Ajax nature of the datagrid row edit
doesn't allow for the display of the error messages.

So, how would one show those error messages? And where would such code get
hooked in?

Will


Re: inmethod datagrid, validation, and feedback

2009-02-15 Thread Timo Rantalaiho
On Sun, 15 Feb 2009, Will Jaynes wrote:
 So, how would one show those error messages? And where would such code get
 hooked in?

I'm not sure about the place but basically you have to add a 
FeedbackPanel and update it in the ajax event that causes 
the error,

  final Component feedback = new FeedbackPanel(feedback)
  .setOutputMarkupPlaceHolder(true);
  add(feedback);
  ...
  @Override protected void onSubmit(AjaxRequestTarget target) {
  target.addComponent(feedback);
  ...
  }

Best wishes,
Timo

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

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



InMethod DataGrid Localization

2009-02-09 Thread Michal Hybler

Hi,
is there any support for localization in DataGrid? I need to substitute cell
content of explicit column.

For example:

I have row state and it can reach 3 values (created, updated, deleted) in my
database but I want show substitutes for that values in my dataGrid (in
other language).

Is there any examples?

Thnx for any suggestions.

Michal
-- 
View this message in context: 
http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: InMethod DataGrid Localization

2009-02-09 Thread Ryan McKinley
Yes -- check the examples.  I think all of them use an external  
properties file to declare the header row display.



On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote:



Hi,
is there any support for localization in DataGrid? I need to  
substitute cell

content of explicit column.

For example:

I have row state and it can reach 3 values (created, updated,  
deleted) in my
database but I want show substitutes for that values in my dataGrid  
(in

other language).

Is there any examples?

Thnx for any suggestions.

Michal
--
View this message in context: 
http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: InMethod DataGrid Localization

2009-02-09 Thread Michal Hybler

Thanks for your help but I dont need to substitute header but the content of
rows in explicit collumn.

id  |  color  |  state
--
1   |   red   |  created
2   |   blue  |  updated

In this example page which describes database table I need to substitute the
bold strings. Instead of created i want new for example. Is there way to
do this by using *.properties file like in case of state header?


Thnx for help.
Michal


ryantxu wrote:
 
 Yes -- check the examples.  I think all of them use an external  
 properties file to declare the header row display.
 
 
 On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote:
 

 Hi,
 is there any support for localization in DataGrid? I need to  
 substitute cell
 content of explicit column.

 For example:

 I have row state and it can reach 3 values (created, updated,  
 deleted) in my
 database but I want show substitutes for that values in my dataGrid  
 (in
 other language).

 Is there any examples?

 Thnx for any suggestions.

 Michal
 -- 
 View this message in context:
 http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21914610.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: InMethod DataGrid Localization

2009-02-09 Thread Ryan McKinley
For that you may want to try overriding newCell in  
AbstractLightWeightColumn


public IRenderable newCell(IModel rowModel) {
return new IRenderable() {
public void render(IModel rowModel, Response response) {
return your localized text
}
};
}


On Feb 9, 2009, at 10:02 AM, Michal Hybler wrote:



Thanks for your help but I dont need to substitute header but the  
content of

rows in explicit collumn.

id  |  color  |  state
--
1   |   red   |  created
2   |   blue  |  updated

In this example page which describes database table I need to  
substitute the
bold strings. Instead of created i want new for example. Is  
there way to

do this by using *.properties file like in case of state header?


Thnx for help.
Michal


ryantxu wrote:


Yes -- check the examples.  I think all of them use an external
properties file to declare the header row display.


On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote:



Hi,
is there any support for localization in DataGrid? I need to
substitute cell
content of explicit column.

For example:

I have row state and it can reach 3 values (created, updated,
deleted) in my
database but I want show substitutes for that values in my dataGrid
(in
other language).

Is there any examples?

Thnx for any suggestions.

Michal
--
View this message in context:
http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org





--
View this message in context: 
http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21914610.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: InMethod DataGrid Localization

2009-02-09 Thread Michal Hybler

Thnx for help this should be sufficient.



ryantxu wrote:
 
 For that you may want to try overriding newCell in  
 AbstractLightWeightColumn
 
   public IRenderable newCell(IModel rowModel) {
   return new IRenderable() {
   public void render(IModel rowModel, Response response) {
   return your localized text
   }
   };
   }
 
 
 On Feb 9, 2009, at 10:02 AM, Michal Hybler wrote:
 

 Thanks for your help but I dont need to substitute header but the  
 content of
 rows in explicit collumn.

 id  |  color  |  state
 --
 1   |   red   |  created
 2   |   blue  |  updated

 In this example page which describes database table I need to  
 substitute the
 bold strings. Instead of created i want new for example. Is  
 there way to
 do this by using *.properties file like in case of state header?


 Thnx for help.
 Michal


 ryantxu wrote:

 Yes -- check the examples.  I think all of them use an external
 properties file to declare the header row display.


 On Feb 9, 2009, at 8:50 AM, Michal Hybler wrote:


 Hi,
 is there any support for localization in DataGrid? I need to
 substitute cell
 content of explicit column.

 For example:

 I have row state and it can reach 3 values (created, updated,
 deleted) in my
 database but I want show substitutes for that values in my dataGrid
 (in
 other language).

 Is there any examples?

 Thnx for any suggestions.

 Michal
 -- 
 View this message in context:
 http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21913141.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




 -- 
 View this message in context:
 http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21914610.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org

 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/InMethod-DataGrid-Localization-tp21913141p21915240.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Formatting dates in Inmethod DataGrid

2008-12-20 Thread Jurek Piasek
Many thanks!

On Thu, Dec 18, 2008 at 7:54 PM, TahitianGabriel glan...@piti.pf wrote:


 public class DatePropertyColumn extends PropertyColumn {

/**
 * @see
 com.inmethod.grid.column.PropertyColumn#getConverter(java.lang.Class)
 */
@Override
protected IConverter getConverter(final Class? varType) {
return new IConverter() {
/** serialVersionUID. */
private static final long serialVersionUID = 1L;

public Object convertToObject(final String varValue, final
 Locale varLocale) {
return null;
}

public String convertToString(final Object varValue, final
 Locale varLocale) {
Date date = (Date) varValue;
return new SimpleDateFormat().format(date);
}

};
 }
 }

 Jurek Piasek wrote:
 
  How does one format a date in the inmethod datagrid?
 
  Thanks,
  Jurek.
 
 

 --
 View this message in context:
 http://www.nabble.com/Formatting-dates-in-Inmethod-DataGrid-tp20614026p21084007.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Re: Formatting dates in Inmethod DataGrid

2008-12-18 Thread TahitianGabriel

public class DatePropertyColumn extends PropertyColumn {

/**
 * @see
com.inmethod.grid.column.PropertyColumn#getConverter(java.lang.Class)
 */
@Override
protected IConverter getConverter(final Class? varType) {
return new IConverter() {
/** serialVersionUID. */
private static final long serialVersionUID = 1L;

public Object convertToObject(final String varValue, final
Locale varLocale) {
return null;
}

public String convertToString(final Object varValue, final
Locale varLocale) {
Date date = (Date) varValue;
return new SimpleDateFormat().format(date);
}

};
}
}

Jurek Piasek wrote:
 
 How does one format a date in the inmethod datagrid?
 
 Thanks,
 Jurek.
 
 

-- 
View this message in context: 
http://www.nabble.com/Formatting-dates-in-Inmethod-DataGrid-tp20614026p21084007.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Inmethod DataGrid

2008-12-02 Thread Timo Rantalaiho
On Tue, 02 Dec 2008, ulrik wrote:
 I'm using the Inmethod DataGrid in my application.
 I would like to test it's functionality with WicketTester. I have run into
 some problems though. How do I simulate clicking on a row in the DataGrid
 from the WicketTester?

I'm not familiar with DataGrid, but if it has Wicket Ajax behaviours
bound to onclick javascript event, probably with

  wicketTester.executeAjaxEvent(wicketComponentOfRow, onclick);

See the DataGrid source code to find out to which components
the ajax behaviours are bound.

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]



Inmethod DataGrid

2008-12-02 Thread ulrik

Hello!

I'm using the Inmethod DataGrid in my application.
I would like to test it's functionality with WicketTester. I have run into
some problems though. How do I simulate clicking on a row in the DataGrid
from the WicketTester?

// Ulrik
-- 
View this message in context: 
http://www.nabble.com/Inmethod-DataGrid-tp20792106p20792106.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: Inmethod DataGrid

2008-12-02 Thread ulrik

Yes, you were right!
I looked at the sourcecode for the AbstractGrid and saw that an onclick
event was added to each row item.

So all I had to do was
_tester.executeAjaxEvent(table:form:bodyContainer:body:row:1,onclick);
to simulate a click on row 1


Timo Rantalaiho wrote:
 
 On Tue, 02 Dec 2008, ulrik wrote:
 I'm using the Inmethod DataGrid in my application.
 I would like to test it's functionality with WicketTester. I have run
 into
 some problems though. How do I simulate clicking on a row in the DataGrid
 from the WicketTester?
 
 I'm not familiar with DataGrid, but if it has Wicket Ajax behaviours
 bound to onclick javascript event, probably with
 
   wicketTester.executeAjaxEvent(wicketComponentOfRow, onclick);
 
 See the DataGrid source code to find out to which components
 the ajax behaviours are bound.
 
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Inmethod-DataGrid-tp20792106p20807960.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]



Formatting dates in Inmethod DataGrid

2008-11-20 Thread Jurek Piasek
How does one format a date in the inmethod datagrid?

Thanks,
Jurek.


Re: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-28 Thread Paul Logasa Bogen II
After reading old threads in the board here I saw mention of problems 
with using a Panel inside a ModalWindow. So I tried converting my Panel 
that contained my DataGrid in to a WebPage. And now that DataGrid works 
perfectly. I am also having problems with another DataGrid which I will 
gather more info on that problem and then post it as a separate thread.


Thanks,
plb

Paul Logasa Bogen II wrote:
Ok here is a very stripped down version that I think is about as minimal 
as possible. The problem occurs when you click the open link, close the 
modal window and the click the open link again.

plb

Paul Logasa Bogen II wrote:
I have a version of my code without my DB stuff that exhibits the 
problem still. If anyone else is interested (other than Matej) let me 
know and I can send you a copy or post it to the web.

plb

Paul Logasa Bogen II wrote:
I looks correct in IE6. I also tried disabling my CSS, but that 
didn't help either.

plb

Paul Logasa Bogen II wrote:
I went ahead and created a bare minimal project to illustrate the 
behavior, but It doesn't occur in the minimal project. I've gone 
over everything and I just can't seem to figure out where a 
difference that matters would be. I checked the generated source 
that Firefox renders and the information is in the source. And no 
JavaScript exceptions are thrown. I'm going to go ahead and give it 
a try in IE to see if it is some weird interaction between Firefox 
and the specifics of my code.


plb

Matej Knopp wrote:

Could you create a quickstart project that demonstrates the behavior
and send it to me directly (there's no issue tracker for grid yet)?

-Matej

On Fri, Jul 25, 2008 at 5:34 AM, Paul Logasa Bogen II 
[EMAIL PROTECTED] wrote:
 
These are the primary involved java source files, let me know if 
you'd like

to see any others.
plb

CollectionDataModel.java -- http://pastebin.ca/1082263
CollectionDataSource.java -- http://pastebin.ca/1082264
LoadPanel.java -- http://pastebin.ca/1082266


Paul Logasa Bogen II wrote:
 
I added a second entry to my database that backs the DataGrid and 
I still
see the same problem, but now when I click a sort (etc) to get it 
to show

only the first item shows.
plb

Paul Logasa Bogen II wrote:
  
Sure, no problem, I didn't want to spam the list with too much 
info if I

didn't need to.
I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded
Firefox) under Debian i686 and Debian x86_64

I am using Wicket 1.3.4 and the inMethod DataGrid is the current 
SVN code

under the 1.3.x branch.

plb

Matej Knopp wrote:


We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II 
[EMAIL PROTECTED]

wrote:

  

Howdy,

First of I'd like to say that I think Wicket is fantastic and 
after

trying
GWT and Thinwire, I finally have found a framework that is open,
supported,
mature, and lets me program how I want to. However, I am 
currently

having a
strange problem. I have a ModalWindow which is shown after an 
AjaxLink

is
clicked on a WebPage. On the panel used as the content for the
ModalWindow
is a DataGrid control. The Model and DataSource appear correct 
when I
inspect them in a debugger, yet the DataGrid does not show any 
contents

for
the  cells. It does show the correct number of rows, but the 
cells are
blank. Once I resize, or move the ModalWindow the contents 
magically

show.
Additionally, clicking a header to sort the rows or clicking a 
row to

select
it also causes the cells content to show. I think the problem 
is the
DataGrid's update isn't triggered between creation and the 
first time I
manipulate the DataGrid or the ModalWindow. Is there someway I 
can

force the
DataGrid to redraw when I show the Modal? update() doesn't work.

Thanks,
Paul Logasa Bogen II

- 


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]





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

Re: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-25 Thread Matej Knopp
Could you create a quickstart project that demonstrates the behavior
and send it to me directly (there's no issue tracker for grid yet)?

-Matej

On Fri, Jul 25, 2008 at 5:34 AM, Paul Logasa Bogen II [EMAIL PROTECTED] wrote:
 These are the primary involved java source files, let me know if you'd like
 to see any others.
 plb

 CollectionDataModel.java -- http://pastebin.ca/1082263
 CollectionDataSource.java -- http://pastebin.ca/1082264
 LoadPanel.java -- http://pastebin.ca/1082266


 Paul Logasa Bogen II wrote:

 I added a second entry to my database that backs the DataGrid and I still
 see the same problem, but now when I click a sort (etc) to get it to show
 only the first item shows.
 plb

 Paul Logasa Bogen II wrote:

 Sure, no problem, I didn't want to spam the list with too much info if I
 didn't need to.
 I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded
 Firefox) under Debian i686 and Debian x86_64

 I am using Wicket 1.3.4 and the inMethod DataGrid is the current SVN code
 under the 1.3.x branch.

 plb

 Matej Knopp wrote:

 We use grid in modal window all the time. Can you be more specific
 about the setup (browser, grid version, wicket version)?

 -Matej

 On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II [EMAIL PROTECTED]
 wrote:


 Howdy,

 First of I'd like to say that I think Wicket is fantastic and after
 trying
 GWT and Thinwire, I finally have found a framework that is open,
 supported,
 mature, and lets me program how I want to. However, I am currently
 having a
 strange problem. I have a ModalWindow which is shown after an AjaxLink
 is
 clicked on a WebPage. On the panel used as the content for the
 ModalWindow
 is a DataGrid control. The Model and DataSource appear correct when I
 inspect them in a debugger, yet the DataGrid does not show any contents
 for
 the  cells. It does show the correct number of rows, but the cells are
 blank. Once I resize, or move the ModalWindow the contents magically
 show.
 Additionally, clicking a header to sort the rows or clicking a row to
 select
 it also causes the cells content to show. I think the problem is the
 DataGrid's update isn't triggered between creation and the first time I
 manipulate the DataGrid or the ModalWindow. Is there someway I can
 force the
 DataGrid to redraw when I show the Modal? update() doesn't work.

 Thanks,
 Paul Logasa Bogen II

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



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



Re: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-25 Thread Paul Logasa Bogen II
I went ahead and created a bare minimal project to illustrate the 
behavior, but It doesn't occur in the minimal project. I've gone over 
everything and I just can't seem to figure out where a difference that 
matters would be. I checked the generated source that Firefox renders 
and the information is in the source. And no JavaScript exceptions are 
thrown. I'm going to go ahead and give it a try in IE to see if it is 
some weird interaction between Firefox and the specifics of my code.


plb

Matej Knopp wrote:

Could you create a quickstart project that demonstrates the behavior
and send it to me directly (there's no issue tracker for grid yet)?

-Matej

On Fri, Jul 25, 2008 at 5:34 AM, Paul Logasa Bogen II [EMAIL PROTECTED] wrote:
  

These are the primary involved java source files, let me know if you'd like
to see any others.
plb

CollectionDataModel.java -- http://pastebin.ca/1082263
CollectionDataSource.java -- http://pastebin.ca/1082264
LoadPanel.java -- http://pastebin.ca/1082266


Paul Logasa Bogen II wrote:


I added a second entry to my database that backs the DataGrid and I still
see the same problem, but now when I click a sort (etc) to get it to show
only the first item shows.
plb

Paul Logasa Bogen II wrote:
  

Sure, no problem, I didn't want to spam the list with too much info if I
didn't need to.
I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded
Firefox) under Debian i686 and Debian x86_64

I am using Wicket 1.3.4 and the inMethod DataGrid is the current SVN code
under the 1.3.x branch.

plb

Matej Knopp wrote:


We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II [EMAIL PROTECTED]
wrote:

  

Howdy,

First of I'd like to say that I think Wicket is fantastic and after
trying
GWT and Thinwire, I finally have found a framework that is open,
supported,
mature, and lets me program how I want to. However, I am currently
having a
strange problem. I have a ModalWindow which is shown after an AjaxLink
is
clicked on a WebPage. On the panel used as the content for the
ModalWindow
is a DataGrid control. The Model and DataSource appear correct when I
inspect them in a debugger, yet the DataGrid does not show any contents
for
the  cells. It does show the correct number of rows, but the cells are
blank. Once I resize, or move the ModalWindow the contents magically
show.
Additionally, clicking a header to sort the rows or clicking a row to
select
it also causes the cells content to show. I think the problem is the
DataGrid's update isn't triggered between creation and the first time I
manipulate the DataGrid or the ModalWindow. Is there someway I can
force the
DataGrid to redraw when I show the Modal? update() doesn't work.

Thanks,
Paul Logasa Bogen II

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





-
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: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-25 Thread Paul Logasa Bogen II
I looks correct in IE6. I also tried disabling my CSS, but that didn't 
help either.

plb

Paul Logasa Bogen II wrote:
I went ahead and created a bare minimal project to illustrate the 
behavior, but It doesn't occur in the minimal project. I've gone over 
everything and I just can't seem to figure out where a difference that 
matters would be. I checked the generated source that Firefox renders 
and the information is in the source. And no JavaScript exceptions are 
thrown. I'm going to go ahead and give it a try in IE to see if it is 
some weird interaction between Firefox and the specifics of my code.


plb

Matej Knopp wrote:

Could you create a quickstart project that demonstrates the behavior
and send it to me directly (there's no issue tracker for grid yet)?

-Matej

On Fri, Jul 25, 2008 at 5:34 AM, Paul Logasa Bogen II [EMAIL PROTECTED] 
wrote:
 
These are the primary involved java source files, let me know if 
you'd like

to see any others.
plb

CollectionDataModel.java -- http://pastebin.ca/1082263
CollectionDataSource.java -- http://pastebin.ca/1082264
LoadPanel.java -- http://pastebin.ca/1082266


Paul Logasa Bogen II wrote:
   
I added a second entry to my database that backs the DataGrid and I 
still
see the same problem, but now when I click a sort (etc) to get it 
to show

only the first item shows.
plb

Paul Logasa Bogen II wrote:
 
Sure, no problem, I didn't want to spam the list with too much 
info if I

didn't need to.
I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded
Firefox) under Debian i686 and Debian x86_64

I am using Wicket 1.3.4 and the inMethod DataGrid is the current 
SVN code

under the 1.3.x branch.

plb

Matej Knopp wrote:
   

We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II 
[EMAIL PROTECTED]

wrote:

 

Howdy,

First of I'd like to say that I think Wicket is fantastic and after
trying
GWT and Thinwire, I finally have found a framework that is open,
supported,
mature, and lets me program how I want to. However, I am currently
having a
strange problem. I have a ModalWindow which is shown after an 
AjaxLink

is
clicked on a WebPage. On the panel used as the content for the
ModalWindow
is a DataGrid control. The Model and DataSource appear correct 
when I
inspect them in a debugger, yet the DataGrid does not show any 
contents

for
the  cells. It does show the correct number of rows, but the 
cells are
blank. Once I resize, or move the ModalWindow the contents 
magically

show.
Additionally, clicking a header to sort the rows or clicking a 
row to

select
it also causes the cells content to show. I think the problem is 
the
DataGrid's update isn't triggered between creation and the first 
time I

manipulate the DataGrid or the ModalWindow. Is there someway I can
force the
DataGrid to redraw when I show the Modal? update() doesn't work.

Thanks,
Paul Logasa Bogen II

- 


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]





-
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: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-25 Thread Paul Logasa Bogen II
I have a version of my code without my DB stuff that exhibits the 
problem still. If anyone else is interested (other than Matej) let me 
know and I can send you a copy or post it to the web.

plb

Paul Logasa Bogen II wrote:
I looks correct in IE6. I also tried disabling my CSS, but that didn't 
help either.

plb

Paul Logasa Bogen II wrote:
I went ahead and created a bare minimal project to illustrate the 
behavior, but It doesn't occur in the minimal project. I've gone over 
everything and I just can't seem to figure out where a difference 
that matters would be. I checked the generated source that Firefox 
renders and the information is in the source. And no JavaScript 
exceptions are thrown. I'm going to go ahead and give it a try in IE 
to see if it is some weird interaction between Firefox and the 
specifics of my code.


plb

Matej Knopp wrote:

Could you create a quickstart project that demonstrates the behavior
and send it to me directly (there's no issue tracker for grid yet)?

-Matej

On Fri, Jul 25, 2008 at 5:34 AM, Paul Logasa Bogen II [EMAIL PROTECTED] 
wrote:
 
These are the primary involved java source files, let me know if 
you'd like

to see any others.
plb

CollectionDataModel.java -- http://pastebin.ca/1082263
CollectionDataSource.java -- http://pastebin.ca/1082264
LoadPanel.java -- http://pastebin.ca/1082266


Paul Logasa Bogen II wrote:
  
I added a second entry to my database that backs the DataGrid and 
I still
see the same problem, but now when I click a sort (etc) to get it 
to show

only the first item shows.
plb

Paul Logasa Bogen II wrote:

Sure, no problem, I didn't want to spam the list with too much 
info if I

didn't need to.
I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded
Firefox) under Debian i686 and Debian x86_64

I am using Wicket 1.3.4 and the inMethod DataGrid is the current 
SVN code

under the 1.3.x branch.

plb

Matej Knopp wrote:
  

We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II 
[EMAIL PROTECTED]

wrote:



Howdy,

First of I'd like to say that I think Wicket is fantastic and 
after

trying
GWT and Thinwire, I finally have found a framework that is open,
supported,
mature, and lets me program how I want to. However, I am currently
having a
strange problem. I have a ModalWindow which is shown after an 
AjaxLink

is
clicked on a WebPage. On the panel used as the content for the
ModalWindow
is a DataGrid control. The Model and DataSource appear correct 
when I
inspect them in a debugger, yet the DataGrid does not show any 
contents

for
the  cells. It does show the correct number of rows, but the 
cells are
blank. Once I resize, or move the ModalWindow the contents 
magically

show.
Additionally, clicking a header to sort the rows or clicking a 
row to

select
it also causes the cells content to show. I think the problem 
is the
DataGrid's update isn't triggered between creation and the 
first time I

manipulate the DataGrid or the ModalWindow. Is there someway I can
force the
DataGrid to redraw when I show the Modal? update() doesn't work.

Thanks,
Paul Logasa Bogen II

- 


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]





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



Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-24 Thread Paul Logasa Bogen II

Howdy,

First of I'd like to say that I think Wicket is fantastic and after 
trying GWT and Thinwire, I finally have found a framework that is open, 
supported, mature, and lets me program how I want to. However, I am 
currently having a strange problem. I have a ModalWindow which is shown 
after an AjaxLink is clicked on a WebPage. On the panel used as the 
content for the ModalWindow is a DataGrid control. The Model and 
DataSource appear correct when I inspect them in a debugger, yet the 
DataGrid does not show any contents for the  cells. It does show the 
correct number of rows, but the cells are blank. Once I resize, or move 
the ModalWindow the contents magically show. Additionally, clicking a 
header to sort the rows or clicking a row to select it also causes the 
cells content to show. I think the problem is the DataGrid's update 
isn't triggered between creation and the first time I manipulate the 
DataGrid or the ModalWindow. Is there someway I can force the DataGrid 
to redraw when I show the Modal? update() doesn't work.


Thanks,
Paul Logasa Bogen II

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



Re: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-24 Thread Matej Knopp
We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II [EMAIL PROTECTED] 
wrote:
 Howdy,

 First of I'd like to say that I think Wicket is fantastic and after trying
 GWT and Thinwire, I finally have found a framework that is open, supported,
 mature, and lets me program how I want to. However, I am currently having a
 strange problem. I have a ModalWindow which is shown after an AjaxLink is
 clicked on a WebPage. On the panel used as the content for the ModalWindow
 is a DataGrid control. The Model and DataSource appear correct when I
 inspect them in a debugger, yet the DataGrid does not show any contents for
 the  cells. It does show the correct number of rows, but the cells are
 blank. Once I resize, or move the ModalWindow the contents magically show.
 Additionally, clicking a header to sort the rows or clicking a row to select
 it also causes the cells content to show. I think the problem is the
 DataGrid's update isn't triggered between creation and the first time I
 manipulate the DataGrid or the ModalWindow. Is there someway I can force the
 DataGrid to redraw when I show the Modal? update() doesn't work.

 Thanks,
 Paul Logasa Bogen II

 -
 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: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-24 Thread Paul Logasa Bogen II
Sure, no problem, I didn't want to spam the list with too much info if I 
didn't need to.
I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded 
Firefox) under Debian i686 and Debian x86_64


I am using Wicket 1.3.4 and the inMethod DataGrid is the current SVN 
code under the 1.3.x branch.


plb

Matej Knopp wrote:

We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II [EMAIL PROTECTED] 
wrote:
  

Howdy,

First of I'd like to say that I think Wicket is fantastic and after trying
GWT and Thinwire, I finally have found a framework that is open, supported,
mature, and lets me program how I want to. However, I am currently having a
strange problem. I have a ModalWindow which is shown after an AjaxLink is
clicked on a WebPage. On the panel used as the content for the ModalWindow
is a DataGrid control. The Model and DataSource appear correct when I
inspect them in a debugger, yet the DataGrid does not show any contents for
the  cells. It does show the correct number of rows, but the cells are
blank. Once I resize, or move the ModalWindow the contents magically show.
Additionally, clicking a header to sort the rows or clicking a row to select
it also causes the cells content to show. I think the problem is the
DataGrid's update isn't triggered between creation and the first time I
manipulate the DataGrid or the ModalWindow. Is there someway I can force the
DataGrid to redraw when I show the Modal? update() doesn't work.

Thanks,
Paul Logasa Bogen II

-
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: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-24 Thread Paul Logasa Bogen II
I added a second entry to my database that backs the DataGrid and I 
still see the same problem, but now when I click a sort (etc) to get it 
to show only the first item shows.

plb

Paul Logasa Bogen II wrote:
Sure, no problem, I didn't want to spam the list with too much info if 
I didn't need to.
I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded 
Firefox) under Debian i686 and Debian x86_64


I am using Wicket 1.3.4 and the inMethod DataGrid is the current SVN 
code under the 1.3.x branch.


plb

Matej Knopp wrote:

We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II [EMAIL PROTECTED] 
wrote:
 

Howdy,

First of I'd like to say that I think Wicket is fantastic and after 
trying
GWT and Thinwire, I finally have found a framework that is open, 
supported,
mature, and lets me program how I want to. However, I am currently 
having a
strange problem. I have a ModalWindow which is shown after an 
AjaxLink is
clicked on a WebPage. On the panel used as the content for the 
ModalWindow

is a DataGrid control. The Model and DataSource appear correct when I
inspect them in a debugger, yet the DataGrid does not show any 
contents for

the  cells. It does show the correct number of rows, but the cells are
blank. Once I resize, or move the ModalWindow the contents magically 
show.
Additionally, clicking a header to sort the rows or clicking a row 
to select

it also causes the cells content to show. I think the problem is the
DataGrid's update isn't triggered between creation and the first time I
manipulate the DataGrid or the ModalWindow. Is there someway I can 
force the

DataGrid to redraw when I show the Modal? update() doesn't work.

Thanks,
Paul Logasa Bogen II

-
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: Strange behavior with inMethod DataGrid inside a Panel inside a ModalWindow

2008-07-24 Thread Paul Logasa Bogen II
These are the primary involved java source files, let me know if you'd 
like to see any others.

plb

CollectionDataModel.java -- http://pastebin.ca/1082263
CollectionDataSource.java -- http://pastebin.ca/1082264
LoadPanel.java -- http://pastebin.ca/1082266


Paul Logasa Bogen II wrote:
I added a second entry to my database that backs the DataGrid and I 
still see the same problem, but now when I click a sort (etc) to get 
it to show only the first item shows.

plb

Paul Logasa Bogen II wrote:
Sure, no problem, I didn't want to spam the list with too much info 
if I didn't need to.
I'm using Firefox 3.0.1 under WinXP and Iceweasel 3.0.1 (rebranded 
Firefox) under Debian i686 and Debian x86_64


I am using Wicket 1.3.4 and the inMethod DataGrid is the current SVN 
code under the 1.3.x branch.


plb

Matej Knopp wrote:

We use grid in modal window all the time. Can you be more specific
about the setup (browser, grid version, wicket version)?

-Matej

On Thu, Jul 24, 2008 at 10:56 PM, Paul Logasa Bogen II 
[EMAIL PROTECTED] wrote:
 

Howdy,

First of I'd like to say that I think Wicket is fantastic and after 
trying
GWT and Thinwire, I finally have found a framework that is open, 
supported,
mature, and lets me program how I want to. However, I am currently 
having a
strange problem. I have a ModalWindow which is shown after an 
AjaxLink is
clicked on a WebPage. On the panel used as the content for the 
ModalWindow

is a DataGrid control. The Model and DataSource appear correct when I
inspect them in a debugger, yet the DataGrid does not show any 
contents for

the  cells. It does show the correct number of rows, but the cells are
blank. Once I resize, or move the ModalWindow the contents 
magically show.
Additionally, clicking a header to sort the rows or clicking a row 
to select

it also causes the cells content to show. I think the problem is the
DataGrid's update isn't triggered between creation and the first 
time I
manipulate the DataGrid or the ModalWindow. Is there someway I can 
force the

DataGrid to redraw when I show the Modal? update() doesn't work.

Thanks,
Paul Logasa Bogen II

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



  1   2   >