[Wicket-user] Testing repeaters

2007-03-15 Thread Daniele Dellafiore
Hi. I am trying to make a test to check the content of a DataTable
that is in a WebPage.
I can get the table with page.get("table");
where "table" is of course the path to my table component in the page.

How can I access a cell in the table? What is the path for, say, cell 1,1?
Or there are other way using tester?

Till now I am using httpunit to test tables but I would like to test
the wicket component by itself and, more over, the WebPage stays in a
Modal Window and I do not know how to test a page in a modal window
via httpunit.

PS: also to know how to test a model window would be very useful.

 Thanks.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Image loading

2007-02-20 Thread Daniele Dellafiore
Just to clarify, this code works:

WebMarkupContainer image = new WebMarkupContainer("image") {
public void onComponentTag(ComponentTag tag) {
super.onComponentTag(tag);
tag.put("src", uriString);
}
};

Where "uriString" variable is the same as in code I have posted before.

On 2/20/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> On 2/20/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> > Hi, I am getting crazy on loading an image from a file saved on a
> > "custom" folder on the server.
> > The folder layout is such that we have: "web/WEB_INF". My image files
> > are in "web/upload" for no particular reason, I can put them anywhere
> > I want.
> >
> > Depiste this, I cannot figure out how to load images! Examples are
> > related to files that are in source folders (and I cannot do this) and
> > other examples just create a custom BufferedImage.
> >
> > I have tried with this code:
> >
> >
> > final String uriString = "/upload/" + pathname;
> > File file = new File("");
> > BufferedDynamicImageResource resource = new 
> > BufferedDynamicImageResource();
> > try {
> > file = new File(".", uriString);
> > BufferedImage image = ImageIO.read(file);
> > resource.setImage(image);
> > } catch (IOException ex) {
> > LogFactory.getLog(getClass()).info("pathname " + 
> > pathname);
> > LogFactory.getLog(getClass()).info("IO Exception: " 
> > + file);
> > }
> >
>
> Sorry, email sent before was completed.
>
> I am not able to find out resources and I am wondering if I am
> following the right wicket way to load images.
> See that I am not trying to load this way images for buttons or such,
> this images are part of my archive but they are not stored in the DB,
> just saved directly on the file system.
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Image loading

2007-02-20 Thread Daniele Dellafiore
On 2/20/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> Hi, I am getting crazy on loading an image from a file saved on a
> "custom" folder on the server.
> The folder layout is such that we have: "web/WEB_INF". My image files
> are in "web/upload" for no particular reason, I can put them anywhere
> I want.
>
> Depiste this, I cannot figure out how to load images! Examples are
> related to files that are in source folders (and I cannot do this) and
> other examples just create a custom BufferedImage.
>
> I have tried with this code:
>
>
> final String uriString = "/upload/" + pathname;
> File file = new File("");
> BufferedDynamicImageResource resource = new 
> BufferedDynamicImageResource();
> try {
> file = new File(".", uriString);
> BufferedImage image = ImageIO.read(file);
> resource.setImage(image);
> } catch (IOException ex) {
> LogFactory.getLog(getClass()).info("pathname " + 
> pathname);
> LogFactory.getLog(getClass()).info("IO Exception: " + 
> file);
> }
>

Sorry, email sent before was completed.

I am not able to find out resources and I am wondering if I am
following the right wicket way to load images.
See that I am not trying to load this way images for buttons or such,
this images are part of my archive but they are not stored in the DB,
just saved directly on the file system.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Image loading

2007-02-20 Thread Daniele Dellafiore
Hi, I am getting crazy on loading an image from a file saved on a
"custom" folder on the server.
The folder layout is such that we have: "web/WEB_INF". My image files
are in "web/upload" for no particular reason, I can put them anywhere
I want.

Depiste this, I cannot figure out how to load images! Examples are
related to files that are in source folders (and I cannot do this) and
other examples just create a custom BufferedImage.

I have tried with this code:


final String uriString = "/upload/" + pathname;
File file = new File("");
BufferedDynamicImageResource resource = new 
BufferedDynamicImageResource();
try {
file = new File(".", uriString);
BufferedImage image = ImageIO.read(file);
resource.setImage(image);
} catch (IOException ex) {
LogFactory.getLog(getClass()).info("pathname " + 
pathname);
LogFactory.getLog(getClass()).info("IO Exception: " + 
file);
}

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Getting the size of the client

2007-01-31 Thread Daniele Dellafiore
I will try to understand better how things works.
What I really need is to get the new browser size after a search form
has been submitted so I can try to send the size properties in the
search form  (as you do in thee postback form) and then update the
ClientProperties in... some way.

This would be a specific solution and maybe does not really need the
ClientProperties to handle browser size cause I will have direct
access to the form submitted value.

If I have correctly understood, what you suggest is a more general
solution where I could put some javascript in the main template page
of my webapp that continuously send information about changes. Such a
solution would send a lot of event from client to server and the most
will not be considered... this is the way a swing app works but maybe
it is "too much" for a webapp, isn't it?

Anyway, I will investigate on the problem in next days and let you know.

Thanks for support.

On 1/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> On 1/31/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> > ok, my project is using 1.3 shapshot in fact i can get the browser
> > size properties.
> > However, like you said, properties are refreshed just at the beginning
> > of the session.
> > I have tried to include the code found in BrowserInfoPage all in the
> > 1.3 snapshot quickstart project: I have inserted:
> >
> > 1) 

Re: [Wicket-user] Getting the size of the client

2007-01-31 Thread Daniele Dellafiore
ok, my project is using 1.3 shapshot in fact i can get the browser
size properties.
However, like you said, properties are refreshed just at the beginning
of the session.
I have tried to include the code found in BrowserInfoPage all in the
1.3 snapshot quickstart project: I have inserted:

1) 

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
great!

of course the change is only in the trunk. I see on jira that you
marked it for 1.3 as well as for 2.0.
As far as i know, trunk will go in 2.0. There will be a 1.3?

My options right now are to build trunk and try to port my app from
1.2 to 2.0. But if exists a 1.3 branch I guess it should be easier to
port my 1.2 app, isn't it? My problem is that I do not know if 1.3
exists and will be a release or if you will go directly to 2.0.

Thanks.

On 1/31/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> I added the functionality, see: 
> http://issues.apache.org/jira/browse/WICKET-248
>
> You can use the example 'hellobrowser' from wicket-examples to track
> what is going on and test whether it works for you.
>
> Eelco
>
>
> On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> > I will be very happy to do that but I need some help cause I am really
> > a wicket newbie.
> >
> > I am watching WebRequestCycle.newClientInfo() and WebClientInfo.init()
> > that, I suppose, get all the info we should need.
> >
> > First, the BROWSER_WAS_POLLED_KEY metadata key is never used in the
> > #init() and so far it is the only difference I can expect in #init()
> > after getGatherExtendedBrowserInfo() is checked to be true, I think I
> > am missing something or I am watching in the wrong places.
> >
> > Any advice?
> >
> > I will fill the jira report tomorrow.
> >
> > On 1/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> > > hmm thought we already had that, guess we need to add it
> > >
> > > feel free to file a jira issue for this, and def feel free to create a 
> > > patch
> > > :)
> > >
> > >
> > > -igor
> > >
> > >
> > > On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> > > > thanks for quick reply.
> > > >
> > > > With this method I receive just the desktop window size and bit depth
> > > > (i.e. 1280*800*24 for me) but what I need is the size of the browser
> > > > window.
> > > >
> > > > On 1/30/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > > > >  pasted from eelco's reply to another thread ===
> > > > > Just FYI, in case you need to know whether your client supports
> > > > > JavaScript, can be determined with:
> > > > >
> > > > >
> > > ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()
> > > > >
> > > > > which works (best) when you do:
> > > > >
> > > > >
> > > getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
> > > > >
> > > > > in your application's init method.
> > > > > ===
> > > > >
> > > > > if you set gatherextendedbrowserinfo(true) that will also give you the
> > > > > window size in clientinfo properties
> > > > >
> > > > > -igor
> > > > >
> > > > >
> > > > >
> > > > > On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > Hi, I need to change the number of column in a table upon the client
> > > page
> > > > > size.
> > > > > >
> > > > > > How do I get the size of the browser page? Consider that I receive a
> > > > > > request from a simple search form and I have to compute the number 
> > > > > > of
> > > > > > column after that request.
> > > > > >
> > > > > > Is there a "wicket" way to get the size of the page?
> > > > > > The only other way is to get via javascript the size and manually 
> > > > > > put
> > > > > > it in the search request. This code will go in html so it could just
> > > > > > be a temporary solution.
> > > > > >
> > > > > > Thanks.
> > > > > >
> > > > > >
> > > > >
> > > -
> > > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > share
> > > > > your
> > > > > > opinions on IT & business topics through brief surveys - and earn 
> > >

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
I will be very happy to do that but I need some help cause I am really
a wicket newbie.

I am watching WebRequestCycle.newClientInfo() and WebClientInfo.init()
that, I suppose, get all the info we should need.

First, the BROWSER_WAS_POLLED_KEY metadata key is never used in the
#init() and so far it is the only difference I can expect in #init()
after getGatherExtendedBrowserInfo() is checked to be true, I think I
am missing something or I am watching in the wrong places.

Any advice?

I will fill the jira report tomorrow.

On 1/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> hmm thought we already had that, guess we need to add it
>
> feel free to file a jira issue for this, and def feel free to create a patch
> :)
>
>
> -igor
>
>
> On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> > thanks for quick reply.
> >
> > With this method I receive just the desktop window size and bit depth
> > (i.e. 1280*800*24 for me) but what I need is the size of the browser
> > window.
> >
> > On 1/30/07, Igor Vaynberg < [EMAIL PROTECTED]> wrote:
> > >  pasted from eelco's reply to another thread ===
> > > Just FYI, in case you need to know whether your client supports
> > > JavaScript, can be determined with:
> > >
> > >
> ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()
> > >
> > > which works (best) when you do:
> > >
> > >
> getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
> > >
> > > in your application's init method.
> > > ===========
> > >
> > > if you set gatherextendedbrowserinfo(true) that will also give you the
> > > window size in clientinfo properties
> > >
> > > -igor
> > >
> > >
> > >
> > > On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hi, I need to change the number of column in a table upon the client
> page
> > > size.
> > > >
> > > > How do I get the size of the browser page? Consider that I receive a
> > > > request from a simple search form and I have to compute the number of
> > > > column after that request.
> > > >
> > > > Is there a "wicket" way to get the size of the page?
> > > > The only other way is to get via javascript the size and manually put
> > > > it in the search request. This code will go in html so it could just
> > > > be a temporary solution.
> > > >
> > > > Thanks.
> > > >
> > > >
> > >
> -
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> share
> > > your
> > > > opinions on IT & business topics through brief surveys - and earn cash
> > > >
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > ___
> > > > Wicket-user mailing list
> > > > Wicket-user@lists.sourceforge.net
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> > >
> -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > > opinions on IT & business topics through brief surveys - and earn cash
> > >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@

Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
to be complete, this are the info i receive with java 1.5 under ubuntu
linux, running under maven 2 jetty plugin (6.1) and with firefox
2.0.0.1

On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> thanks for quick reply.
>
> With this method I receive just the desktop window size and bit depth
> (i.e. 1280*800*24 for me) but what I need is the size of the browser
> window.
>
> On 1/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> >  pasted from eelco's reply to another thread ===
> > Just FYI, in case you need to know whether your client supports
> > JavaScript, can be determined with:
> >
> > ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()
> >
> > which works (best) when you do:
> >
> > getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
> >
> > in your application's init method.
> > ===
> >
> > if you set gatherextendedbrowserinfo(true) that will also give you the
> > window size in clientinfo properties
> >
> > -igor
> >
> >
> >
> > On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi, I need to change the number of column in a table upon the client page
> > size.
> > >
> > > How do I get the size of the browser page? Consider that I receive a
> > > request from a simple search form and I have to compute the number of
> > > column after that request.
> > >
> > > Is there a "wicket" way to get the size of the page?
> > > The only other way is to get via javascript the size and manually put
> > > it in the search request. This code will go in html so it could just
> > > be a temporary solution.
> > >
> > > Thanks.
> > >
> > >
> > -
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > your
> > > opinions on IT & business topics through brief surveys - and earn cash
> > >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > ___
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> >
> >
> > -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
thanks for quick reply.

With this method I receive just the desktop window size and bit depth
(i.e. 1280*800*24 for me) but what I need is the size of the browser
window.

On 1/30/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>  pasted from eelco's reply to another thread ===
> Just FYI, in case you need to know whether your client supports
> JavaScript, can be determined with:
>
> ((WebClientInfo)getSession().getClientInfo()).getProperties().isJavaEnabled()
>
> which works (best) when you do:
>
> getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
>
> in your application's init method.
> ===
>
> if you set gatherextendedbrowserinfo(true) that will also give you the
> window size in clientinfo properties
>
> -igor
>
>
>
> On 1/30/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> >
> > Hi, I need to change the number of column in a table upon the client page
> size.
> >
> > How do I get the size of the browser page? Consider that I receive a
> > request from a simple search form and I have to compute the number of
> > column after that request.
> >
> > Is there a "wicket" way to get the size of the page?
> > The only other way is to get via javascript the size and manually put
> > it in the search request. This code will go in html so it could just
> > be a temporary solution.
> >
> > Thanks.
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Getting the size of the client

2007-01-30 Thread Daniele Dellafiore
Hi, I need to change the number of column in a table upon the client page size.

How do I get the size of the browser page? Consider that I receive a
request from a simple search form and I have to compute the number of
column after that request.

Is there a "wicket" way to get the size of the page?
The only other way is to get via javascript the size and manually put
it in the search request. This code will go in html so it could just
be a temporary solution.

Thanks.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to get desired DataTable layout

2007-01-16 Thread Daniele Dellafiore
I want to provide different views of my data. Ajaxified table is good
for multiple-columns view where columns are "name" "title" "address"
and so on.
The layout I have with the use of a GridView is such that each cell
have all informations, so in cell 1,1 displays the entry number 1 with
the picture and below a label with "name, title, address" on multiple
lines. Cell 1,2 have the second entry and so on.
In DataTable a single entry data are spaned over the row. What I want
is that all data of a single entry stay in a single cell.

What I expect is to tell my view how many columns I have and a row is
created when there is no more column available. This is what a
GridView already does.

What I want is to obtain an ajaxified component that wraps a GridView
like the AjaxFallbackDefaultDataTable does with DataGridView
inheriting from DataTable. In this way I Can obtain the ajax-behavior
when changing pages and resorting data.

On 1/16/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> i dont get what you are trying to describe, can you try again?
>
> are you trying to ajaxify the gridview?
> use datatable to show non-tabular data?
>
> -igor
>
>
>
> On 1/16/07, Daniele Dellafiore <[EMAIL PROTECTED]> wrote:
> >
> > Hi. I am using a AjaxFallbackDefaultDataTable to display some search
> > results and this is good for typical multiple-columns layout.
> > I want results also to be displayed in a "grid" layout, where a whole
> > single result stays in a single cell (an image and a text label
> > below).
> >
> > I can't figure out how to do with a DataTable but I can do this with a
> > GridView but I want the ajaxified version... So I have explored the
> > various options wicket offers to display data and I have  some
> > problems.
> > Before starting, I have noticed an error the wiki here:
> > http://cwiki.apache.org/WICKET/tables-and-grids.html
> > maybe this informations are just out of date?
> >
> > Back to the problem: DataTable wraps a DataGridView, so my question is:
> > there is a way to obtain my desired layout with a DataGridView and so
> > from a DataTable? Or, have I to use GridView instead?
> >
> > I have tried to build a solution following the second way, making a
> > sort of DataTable that wraps a GridView, the code is taken from
> > original DataTable. This was simple, both GridView and DataGridView
> > extends BaseDataView and there are just some different methods
> > (setRows instead of setRowsPerPage...)
> > Problems arise when I try to make the ajaxified version due to the
> > fact that a lot of components used by AjaxFallbackDefaultDataTable
> > make direct use of DataTable... This difficoulties to me seem related
> > to the fact that inheritance is often used where probably would have
> > given more power to user that wanted to extends funcionality and
> > behavior of existing classes. Maybe this is just an impression due to
> > the fact I am new to wicket...
> >
> > Any advice is welcome, thanks.
> >
> >
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > ___
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to get desired DataTable layout

2007-01-16 Thread Daniele Dellafiore
Hi. I am using a AjaxFallbackDefaultDataTable to display some search
results and this is good for typical multiple-columns layout.
I want results also to be displayed in a "grid" layout, where a whole
single result stays in a single cell (an image and a text label
below).

I can't figure out how to do with a DataTable but I can do this with a
GridView but I want the ajaxified version... So I have explored the
various options wicket offers to display data and I have  some
problems.
Before starting, I have noticed an error the wiki here:
http://cwiki.apache.org/WICKET/tables-and-grids.html
maybe this informations are just out of date?

Back to the problem: DataTable wraps a DataGridView, so my question is:
there is a way to obtain my desired layout with a DataGridView and so
from a DataTable? Or, have I to use GridView instead?

I have tried to build a solution following the second way, making a
sort of DataTable that wraps a GridView, the code is taken from
original DataTable. This was simple, both GridView and DataGridView
extends BaseDataView and there are just some different methods
(setRows instead of setRowsPerPage...)
Problems arise when I try to make the ajaxified version due to the
fact that a lot of components used by AjaxFallbackDefaultDataTable
make direct use of DataTable... This difficoulties to me seem related
to the fact that inheritance is often used where probably would have
given more power to user that wanted to extends funcionality and
behavior of existing classes. Maybe this is just an impression due to
the fact I am new to wicket...

Any advice is welcome, thanks.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Architectural issues using Borders for page layout

2006-12-27 Thread Daniele Dellafiore

hi, I am new to wicket, I have just done some examples tutorial starting
from the QuickStart app.

I am beginning to build a real webapp and I am wondering about the "main"
layout structure

I have done the Navomatic example and I am wondering if a good way is to use
borders to define the structure of the page (I need a simple header, footer,
navigation, body layout).

In the navomatic example I have a add(NavomaticBorder()) in each page and if
I want a page body with some wicket component I have to add them to
navomaticInstance and not to the page (I have tried adding the ajax counter
for example... it does not comes for free, counter is showed but click does
not increment, ajax error...)

Back to main problem, this create some architecture issues (replication and
non-standard add method). I could create a template page that incapsulate
the "navomatic layout" and with a custom add method that uses that... but is
this a good way to do things?

Thanks for advices.
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user