Re: How to report a bug on wicket-contrib-jasperreport?

2007-12-10 Thread Martijn Dashorst
rather use thhe tracker at wicketstuff.org
http://wicketstuff.org/jira/secure/BrowseProject.jspa

Though the project itself is not listed.

Martijn

On Dec 11, 2007 6:29 AM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

> You can just use the normal Wicket bug tracker for this (JIRA at
> http://issues.apache.org/jira/browse/WICKET).
>
> Eelco
>
> On Dec 10, 2007 10:41 AM, Luciano <[EMAIL PROTECTED]> wrote:
> >
> > I found a little bug in  wicket-contrib-jasperreport code using a recent
> > JasperReports version (2.0.2 in my application, but the problem is there
> > also with previous releases) with Wicket 1.3.
> > The problem is in class JRResource not being Serializable and is
> determined
> > by the call to JasperFillManager.fillReport(report, params, dataSource)
> > that change the reportParameters (it's an HashMap) variable adding not
> > serializable objects to it.
> > A simple solution is replacing the code in  getReportParameters()
> avoiding
> > to return directly the variable:
> > public Map getReportParameters()
> > {
> > //modified for jasperreport 2.0.2 serialization problem
> > return new HashMap(reportParameters);
> > }
> > How would like to report this as a bug on Wicket Stuff Jira but there I
> can'
> > found the wicket-contrib-jasperreport project.
> > Any other way?
> >
> > Luciano
> > --
> > View this message in context:
> http://www.nabble.com/How-to-report-a-bug-on-wicket-contrib-jasperreport--tp14258880p14258880.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-rc1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/


Re: How to report a bug on wicket-contrib-jasperreport?

2007-12-10 Thread Eelco Hillenius
Btw, if you have an interest in this project, you are more than
welcome to help maintain it. If you give us a sourceforge id, we can
give you write access for that project.

Cheers,

Eelco


On Dec 10, 2007 9:29 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> You can just use the normal Wicket bug tracker for this (JIRA at
> http://issues.apache.org/jira/browse/WICKET).
>
> Eelco
>
>
> On Dec 10, 2007 10:41 AM, Luciano <[EMAIL PROTECTED]> wrote:
> >
> > I found a little bug in  wicket-contrib-jasperreport code using a recent
> > JasperReports version (2.0.2 in my application, but the problem is there
> > also with previous releases) with Wicket 1.3.
> > The problem is in class JRResource not being Serializable and is determined
> > by the call to JasperFillManager.fillReport(report, params, dataSource)
> > that change the reportParameters (it's an HashMap) variable adding not
> > serializable objects to it.
> > A simple solution is replacing the code in  getReportParameters() avoiding
> > to return directly the variable:
> > public Map getReportParameters()
> > {
> > //modified for jasperreport 2.0.2 serialization problem
> > return new HashMap(reportParameters);
> > }
> > How would like to report this as a bug on Wicket Stuff Jira but there I can'
> > found the wicket-contrib-jasperreport project.
> > Any other way?
> >
> > Luciano
> > --
> > View this message in context: 
> > http://www.nabble.com/How-to-report-a-bug-on-wicket-contrib-jasperreport--tp14258880p14258880.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

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



Re: How to report a bug on wicket-contrib-jasperreport?

2007-12-10 Thread Eelco Hillenius
You can just use the normal Wicket bug tracker for this (JIRA at
http://issues.apache.org/jira/browse/WICKET).

Eelco

On Dec 10, 2007 10:41 AM, Luciano <[EMAIL PROTECTED]> wrote:
>
> I found a little bug in  wicket-contrib-jasperreport code using a recent
> JasperReports version (2.0.2 in my application, but the problem is there
> also with previous releases) with Wicket 1.3.
> The problem is in class JRResource not being Serializable and is determined
> by the call to JasperFillManager.fillReport(report, params, dataSource)
> that change the reportParameters (it's an HashMap) variable adding not
> serializable objects to it.
> A simple solution is replacing the code in  getReportParameters() avoiding
> to return directly the variable:
> public Map getReportParameters()
> {
> //modified for jasperreport 2.0.2 serialization problem
> return new HashMap(reportParameters);
> }
> How would like to report this as a bug on Wicket Stuff Jira but there I can'
> found the wicket-contrib-jasperreport project.
> Any other way?
>
> Luciano
> --
> View this message in context: 
> http://www.nabble.com/How-to-report-a-bug-on-wicket-contrib-jasperreport--tp14258880p14258880.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Checkbox tree component

2007-12-10 Thread Benjamin Keil


Doug Leeper wrote:
> 
> When does this occur?
> - the first time the page is displayed
> - after you do some user interaction?  if so, are you using Ajax in the
> user interaction?
> 

This happens on the initial loading of the page, and I tried setting the
CheckType to Ajax and to Regular.  It happens in both cases (except you get
CheckBoxTree$2 instead of $3).

-- 
View this message in context: 
http://www.nabble.com/Checkbox-tree-component-tp13433102p14267352.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: Create button to open popup Window.

2007-12-10 Thread Christian Alejandro Marquez Grabia
Hi

Maybe you should look at this example using Modal Windows

http://www.wicket-library.com/wicket-examples/ajax/modal-window.1

Cheers,
Chris

On 12/10/07, Karen Schaper <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am very new to wicket.  My background is with jsp.
>
> I'd like to add a button that will open a popup window that contains
> mulitple checkboxes.  The user will select a few checkboxes and then those
> choices will be listed back on the main page ( using ajax??)
>
> Right now I'm trying to figure out how in wicket to have my button open a
> popup window.  I don't want to submit the form but have some type of
> onclick
> event.
>
> Any insight is greatly appreciated.
>
> Thanks
>
> Karen
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Checkbox tree component

2007-12-10 Thread Doug Leeper

When does this occur?
- the first time the page is displayed
- after you do some user interaction?  if so, are you using Ajax in the user
interaction?
-- 
View this message in context: 
http://www.nabble.com/Checkbox-tree-component-tp13433102p14262616.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]



Create button to open popup Window.

2007-12-10 Thread Karen Schaper
Hi,

I am very new to wicket.  My background is with jsp.

I'd like to add a button that will open a popup window that contains
mulitple checkboxes.  The user will select a few checkboxes and then those
choices will be listed back on the main page ( using ajax??)

Right now I'm trying to figure out how in wicket to have my button open a
popup window.  I don't want to submit the form but have some type of onclick
event.

Any insight is greatly appreciated.

Thanks

Karen


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



Re: Wicket behind a front-end proxy

2007-12-10 Thread Jeremy Levy
I am pretty sure my configuration is correct as per the documentation
however I am having the following problem:

My configuration is as follows: Apache 2.2 (mod_proxy_jk) -- Tomcat
5.5(JBoss embedded)

My Wicket application filter is mapped to /* and my WAR file is deployed
within a context of /web therefore URL's look like
http://pabst:8080/web/mypage  or
http://pabst:8080/web/?x=TFx*mXM8oGdr1hAFT5*lkAetc..
using the CryptedUrlWebRequestCodingStrategy.

Here is my Apache virtual host configuration for mod_proxy running  on
"tiger" proxing to "pabst" :


ServerName tiger

DocumentRoot /opt/www/

ProxyRequests Off

Order deny,allow
Allow from all


RewriteEngine on

#HACK to fix home page context issue
RewriteRule ^/web(.*) $1 [R=302,NC]

ProxyPass / ajp://10.0.0.1:8009/web/
ProxyPassReverse / ajp://10.0.0.1:8009/web/
ProxyPassReverseCookiePath  /web /
ProxyPreserveHost On

RewriteLog "/var/log/httpd/rewrite.log"
RewriteLogLevel 2



This works just fine, however without the rewrite rule mentioned above the
site redirects to /web/[page] under some circumstances.  As far as I can
tell it happens when you click on a link that requires authorization,
RestartResponseAtInterceptPageException is thrown and it attempts redirect
to the InterceptPage but the ProxyPassReverse rule isn't applied.  It also
seems to happen when ever Application.getHomePage() is called, but I can't
confirm that.  One last thing and I'm not sure if it matters but
getHomePage() is returning a page that is an "Authenticated" web page, I do
this because this way the URL doesn't change from the logged in home page
versus the unauthenticated home page.

For the people who aren't having problems with this, are you using Tomcat?

Any help is appreciated.

j


On Dec 9, 2007 3:18 AM, Frank Bille <[EMAIL PROTECTED]> wrote:

> If you read[1], it say what you need to do (and which version of Apache
> httpd you need to use).
>
> Frank
>
> [1]: http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html
>
>
> On Dec 9, 2007 8:15 AM, sshark <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I am trying the same but it does not seems to work.What I want is to be
> > able
> > to access Wicket application using the URL *
> http://www.someapps.com*instead
> > of *http://myapps.com/wicketapps*. I am using Apache 1.3. Should I be
> > using
> > Apache 2.x instead? Please advise. Thanks
> >
> > My configuration is
> >
> > 
> >DocumentRoot /home/vocanic/apps_vocanic_net
> >ServerAlias www.myapps.com
> >JkMount /* vocanic_1
> > 
> >
> > 
> >ServerAlias www.someapps.com
> >   ProxyPass / http://localhost:10012/wicketapps
> >   ProxyPassReverse  / http://localhost:10012/wicketapps
> >   #ProxyPassReverseCookiePath /citibank-survey / #not supported in
> Apache
> > 1.3
> > 
> >
> > /lim/
> >
> > p.s. I tried to post this message in reply to the topic "Re: Wicket
> behind
> > a
> > front-end proxy" in Nabble but it was rejected. The error was, I quoted,
> >
> > *This message was created automatically by mail delivery software.
> >
> > A message that you sent could not be delivered to one or more of its
> > recipients. This is a permanent error. The following address(es) failed:
> >
> >  users@wicket.apache.org
> >   SMTP error from remote mail server after end of data:
> >   host mx1.eu.apache.org [192.87.106.230]: 552 spam score (5.0) exceeded
> > threshold**
> > *
> >
> > Can anyone shed someone light here? Thanks
> >
>


Re: enclosures and dataview

2007-12-10 Thread Igor Vaynberg
heh, you see...all those hacks like calling isvisible inside
getrowcount() were to avoid all these extra calls to size()...so more
hacks to avoid other hacks, etc.

we need to rethink how the whole size() thing is dealt with

-igor


On Dec 10, 2007 10:41 AM, Michael Sparer <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm using a DataView along with a AjaxPagingNavigator inside a
> wicket:enclosure tag. I wanted to display the whole stuff only if the
> item-count of the items that will be displayed in the DataView is greater
> than 0.
>
> I wanted to avoid by all means (well it would have been the last resort
> actually :-)) to call the DataProvider's size-method as this would make an
> unnecessary database query. Fortunately the DataView provides a method
> getRowCount() which should give me exactly the number I need, and write it
> to its iternal cache.
>
> So I overrode the DataView's isVisible method like that
>
> public boolean isVisible() {
> return getRowCount() > 0;
> }
>
> Unfortunately getRowCount() calls isVisible() internally which then leads to
> an infinite loop. To keep it short, I ended up with a filthy hack by
> implementing a custom subclass of DataView that went like that in the
> constructor:
>
> private boolean _initActive = false;
> private int _rowCount;
>
> public MyDataView() {
>super(...);
>_initActive = true;
>_rowCount = getRowCount();
>_initActive = false;
> }
>
> public boolean isVisible() {
>return _initActive || _rowCount > 0;
> }
>
> My question: As empty PagingNavigators/Dataviews often don't look nice, I
> can imagine that keeping them invisible if they're empty is a common
> scenario. Wouldn't it be nice to have a convenience method in DataView or
> PagingNavigator for that?
>
> Or am I missing an obvious way to do this?
>
>
> -
> Michael Sparer
> http://talk-on-tech.blogspot.com
> --
> View this message in context: 
> http://www.nabble.com/enclosures-and-dataview-tp14258879p14258879.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Checkbox tree component

2007-12-10 Thread Benjamin Keil


Doug Leeper wrote:
> 
> Could you post the stacktrace?
> 

Here it is:

WicketMessage: The component(s) below failed to render. A common problem is
that you have added a component in code but forgot to reference it in the
markup (thus the component will never be rendered).

1. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:1:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
2. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:2:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
3. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:3:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
4. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:4:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
5. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:5:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
6. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:6:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
7. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:7:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
8. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:8:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
9. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:9:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
10. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:10:nodeComponent:checkbox.CheckBoxTree$3,
isVisible = true, isVersioned = false]]
11. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:11:nodeComponent:checkbox.CheckBoxTree$3,
isVisible = true, isVersioned = false]]
12. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:12:nodeComponent:checkbox.CheckBoxTree$3,
isVisible = true, isVersioned = false]]
13. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:13:nodeComponent:checkbox.CheckBoxTree$3,
isVisible = true, isVersioned = false]]
14. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:14:nodeComponent:checkbox.CheckBoxTree$3,
isVisible = true, isVersioned = false]]
15. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:15:nodeComponent:checkbox.CheckBoxTree$3,
isVisible = true, isVersioned = false]]
16. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:16:nodeComponent:checkbox.CheckBoxTree$3,
isVisible = true, isVersioned = false]]

Root cause:

org.apache.wicket.WicketRuntimeException: The component(s) below failed to
render. A common problem is that you have added a component in code but
forgot to reference it in the markup (thus the component will never be
rendered).

1. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:1:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
2. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:2:nodeComponent:checkbox.CheckBoxTree$3, isVisible
= true, isVersioned = false]]
3. [MarkupContainer [Component id = checkbox, page =
lumina.im.presentation.wicket.AdministrateContentScannerDocumentSource, path
= 0:propsForm:groupTree:i:3:nodeComponent:checkbox.CheckBoxTree$3, i

How to report a bug on wicket-contrib-jasperreport?

2007-12-10 Thread Luciano

I found a little bug in  wicket-contrib-jasperreport code using a recent
JasperReports version (2.0.2 in my application, but the problem is there
also with previous releases) with Wicket 1.3.
The problem is in class JRResource not being Serializable and is determined
by the call to JasperFillManager.fillReport(report, params, dataSource) 
that change the reportParameters (it's an HashMap) variable adding not
serializable objects to it.
A simple solution is replacing the code in  getReportParameters() avoiding
to return directly the variable:
public Map getReportParameters()
{
//modified for jasperreport 2.0.2 serialization problem
return new HashMap(reportParameters);
}
How would like to report this as a bug on Wicket Stuff Jira but there I can'
found the wicket-contrib-jasperreport project.
Any other way?

Luciano 
-- 
View this message in context: 
http://www.nabble.com/How-to-report-a-bug-on-wicket-contrib-jasperreport--tp14258881p14258881.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]



How to report a bug on wicket-contrib-jasperreport?

2007-12-10 Thread Luciano

I found a little bug in  wicket-contrib-jasperreport code using a recent
JasperReports version (2.0.2 in my application, but the problem is there
also with previous releases) with Wicket 1.3.
The problem is in class JRResource not being Serializable and is determined
by the call to JasperFillManager.fillReport(report, params, dataSource) 
that change the reportParameters (it's an HashMap) variable adding not
serializable objects to it.
A simple solution is replacing the code in  getReportParameters() avoiding
to return directly the variable:
public Map getReportParameters()
{
//modified for jasperreport 2.0.2 serialization problem
return new HashMap(reportParameters);
}
How would like to report this as a bug on Wicket Stuff Jira but there I can'
found the wicket-contrib-jasperreport project.
Any other way?

Luciano 
-- 
View this message in context: 
http://www.nabble.com/How-to-report-a-bug-on-wicket-contrib-jasperreport--tp14258880p14258880.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]



enclosures and dataview

2007-12-10 Thread Michael Sparer

Hi, 

I'm using a DataView along with a AjaxPagingNavigator inside a
wicket:enclosure tag. I wanted to display the whole stuff only if the
item-count of the items that will be displayed in the DataView is greater
than 0.

I wanted to avoid by all means (well it would have been the last resort
actually :-)) to call the DataProvider's size-method as this would make an
unnecessary database query. Fortunately the DataView provides a method
getRowCount() which should give me exactly the number I need, and write it
to its iternal cache.

So I overrode the DataView's isVisible method like that

public boolean isVisible() {
return getRowCount() > 0;
}

Unfortunately getRowCount() calls isVisible() internally which then leads to
an infinite loop. To keep it short, I ended up with a filthy hack by
implementing a custom subclass of DataView that went like that in the
constructor:

private boolean _initActive = false;
private int _rowCount;

public MyDataView() {
   super(...);
   _initActive = true;
   _rowCount = getRowCount();
   _initActive = false;
}

public boolean isVisible() {
   return _initActive || _rowCount > 0;
}

My question: As empty PagingNavigators/Dataviews often don't look nice, I
can imagine that keeping them invisible if they're empty is a common
scenario. Wouldn't it be nice to have a convenience method in DataView or
PagingNavigator for that?

Or am I missing an obvious way to do this?


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/enclosures-and-dataview-tp14258879p14258879.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: components by property expressions

2007-12-10 Thread Alex Objelean

A solution can be:

use IVisitor on the form to traverse all the children, and find the one
which have markupId == "loginName".

I am curious, why do you need this?

Regards, 
Alex.


Istvan De wrote:
> 
> Hi!
> 
> When I use CompoundPropertyModels, I can automatically wire together my 
> model with the components.
> 
> However, now what I need to do is to find the corresponding Component by 
> a property expression. How to do this? Eg. if there is a CPM attached to 
> my form, with a model object of a User, I need to find out what 
> Component is bound to the "loginName" field of the model.
> 
> How to achieve this?
> 
> Best regards,
> Istvan
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/components-by-property-expressions-tp14250406p14255679.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: SortableListView or wicketstuff-jquery

2007-12-10 Thread Andrew Moore

OK,
I've stripped it down to a really basic list and got it working. I'll have
to have a play and see at which point it stopped working.

Thanks, pointing me at the scripaculous code helped.


Ryan Sonnek-2 wrote:
> 
> I use the sortable list view in my app.  what issues are you having?
> 
> just an FYI, that the sortable list view uses scriptaculous, so if you
> can get it to work with "basic" scriptaculous, it'll work with the
> sortable list view.  for some reason, the scriptaculous sortable
> library works great with lists (ol, ul), but not so well with table
> rows.  maybe the next version will improve this...
> 
> On Dec 10, 2007 7:53 AM, wicket user <[EMAIL PROTECTED]> wrote:
>> You can find the it here
>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery
>>
>> and the examples here
>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery-examples
>>
>> I am using it, the examples will give you the idea.
>>
>> regards
>> dipu
>>
>>
>>
>>
>> On Dec 10, 2007 12:43 PM, Andrew Moore <[EMAIL PROTECTED]> wrote:
>>
>> >
>> > At the moment for a page I'm using the PagableListView to display data
>> and
>> > some images. What I ideally want is the ability to drag and drop the
>> > ordering of the items in the list.
>> >
>> > Before having a go at doing this myself I thought I'd have a look to
>> see
>> > if
>> > there are any components out there already that do this.
>> >
>> > I've seem the SortableListView in wicket stuff, but haven't got it to
>> work
>> > (just nothing is dragable), but I've not seen any examples.
>> >
>> > I've also heard that wicketstuff-jquery has something similar, but
>> haven't
>> > even found the code for that on the wicketstuff site.
>> >
>> > Has anybody used either of these to do drag and drop lists, and if so,
>> do
>> > you have any working examples?
>> > Or has anyone else created a similar drag and drop list that I could
>> take
>> >  a
>> > look at?
>> >
>> > Thanks
>> > Andrew
>> > --
>> > View this message in context:
>> >
>> http://www.nabble.com/SortableListView-or-wicketstuff-jquery-tp14252086p14252086.html
>> > Sent from the Wicket - User mailing list archive at Nabble.com.
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/SortableListView-or-wicketstuff-jquery-tp14252086p14254170.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: SortableListView or wicketstuff-jquery

2007-12-10 Thread Ryan Sonnek
I use the sortable list view in my app.  what issues are you having?

just an FYI, that the sortable list view uses scriptaculous, so if you
can get it to work with "basic" scriptaculous, it'll work with the
sortable list view.  for some reason, the scriptaculous sortable
library works great with lists (ol, ul), but not so well with table
rows.  maybe the next version will improve this...

On Dec 10, 2007 7:53 AM, wicket user <[EMAIL PROTECTED]> wrote:
> You can find the it here
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery
>
> and the examples here
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery-examples
>
> I am using it, the examples will give you the idea.
>
> regards
> dipu
>
>
>
>
> On Dec 10, 2007 12:43 PM, Andrew Moore <[EMAIL PROTECTED]> wrote:
>
> >
> > At the moment for a page I'm using the PagableListView to display data and
> > some images. What I ideally want is the ability to drag and drop the
> > ordering of the items in the list.
> >
> > Before having a go at doing this myself I thought I'd have a look to see
> > if
> > there are any components out there already that do this.
> >
> > I've seem the SortableListView in wicket stuff, but haven't got it to work
> > (just nothing is dragable), but I've not seen any examples.
> >
> > I've also heard that wicketstuff-jquery has something similar, but haven't
> > even found the code for that on the wicketstuff site.
> >
> > Has anybody used either of these to do drag and drop lists, and if so, do
> > you have any working examples?
> > Or has anyone else created a similar drag and drop list that I could take
> >  a
> > look at?
> >
> > Thanks
> > Andrew
> > --
> > View this message in context:
> > http://www.nabble.com/SortableListView-or-wicketstuff-jquery-tp14252086p14252086.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

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



Re: Dynamic Combo box with adding list

2007-12-10 Thread Nino Saturnino Martinez Vazquez Wael

add it to your list..?

Edi wrote:

hi,

i have one empty combo box. how can i add one item in combo box at run time?

please let me know.

THANKS

  


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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



Re: SortableListView or wicketstuff-jquery

2007-12-10 Thread wicket user
You can find the it here
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery

and the examples here
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-jquery-examples

I am using it, the examples will give you the idea.

regards
dipu



On Dec 10, 2007 12:43 PM, Andrew Moore <[EMAIL PROTECTED]> wrote:

>
> At the moment for a page I'm using the PagableListView to display data and
> some images. What I ideally want is the ability to drag and drop the
> ordering of the items in the list.
>
> Before having a go at doing this myself I thought I'd have a look to see
> if
> there are any components out there already that do this.
>
> I've seem the SortableListView in wicket stuff, but haven't got it to work
> (just nothing is dragable), but I've not seen any examples.
>
> I've also heard that wicketstuff-jquery has something similar, but haven't
> even found the code for that on the wicketstuff site.
>
> Has anybody used either of these to do drag and drop lists, and if so, do
> you have any working examples?
> Or has anyone else created a similar drag and drop list that I could take
>  a
> look at?
>
> Thanks
> Andrew
> --
> View this message in context:
> http://www.nabble.com/SortableListView-or-wicketstuff-jquery-tp14252086p14252086.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]
>
>


SortableListView or wicketstuff-jquery

2007-12-10 Thread Andrew Moore

At the moment for a page I'm using the PagableListView to display data and
some images. What I ideally want is the ability to drag and drop the
ordering of the items in the list.

Before having a go at doing this myself I thought I'd have a look to see if
there are any components out there already that do this.

I've seem the SortableListView in wicket stuff, but haven't got it to work
(just nothing is dragable), but I've not seen any examples.

I've also heard that wicketstuff-jquery has something similar, but haven't
even found the code for that on the wicketstuff site.

Has anybody used either of these to do drag and drop lists, and if so, do
you have any working examples?
Or has anyone else created a similar drag and drop list that I could take  a
look at?

Thanks
Andrew
-- 
View this message in context: 
http://www.nabble.com/SortableListView-or-wicketstuff-jquery-tp14252086p14252086.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: Redirect After Exception

2007-12-10 Thread Advanced Technology®
Thanks Dipu,
It was my falt, I was using "setResponsePage(newPage)" but it was not
working because of bug on my code.

2007/12/10, wicket user <[EMAIL PROTECTED]>:
>
> are you looking to redirect to a different page on catching an exception ?
> if thats is the case can you please try this in your catch
> try{
>  // do things
> }
> catch (Exception e)
> {
> throw new RestartResponseAtInterceptPageException(new
> YourInterceptPage());
> }
>
> regards
> dipu
>
>
> On Dec 10, 2007 10:31 AM, Advanced Technology(R) <[EMAIL PROTECTED]>
> wrote:
>
> > Hi, All
> > I am having problems redirecting after throwing and cathing an Exception
> > inside the request.
> > Could someone give me some lights to solve this.
> >
> >
> > AT
> >
>



-- 
AT(R)


Dynamic Combo box with adding list

2007-12-10 Thread Edi

hi,

i have one empty combo box. how can i add one item in combo box at run time?

please let me know.

THANKS

-- 
View this message in context: 
http://www.nabble.com/Dynamic-Combo-box-with-adding-list-tp14250648p14250648.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: Redirect After Exception

2007-12-10 Thread wicket user
are you looking to redirect to a different page on catching an exception ?
if thats is the case can you please try this in your catch
try{
 // do things
}
catch (Exception e)
{
throw new RestartResponseAtInterceptPageException(new
YourInterceptPage());
}

regards
dipu


On Dec 10, 2007 10:31 AM, Advanced Technology(R) <[EMAIL PROTECTED]> wrote:

> Hi, All
> I am having problems redirecting after throwing and cathing an Exception
> inside the request.
> Could someone give me some lights to solve this.
>
>
> AT
>


Redirect After Exception

2007-12-10 Thread Advanced Technology®
Hi, All
I am having problems redirecting after throwing and cathing an Exception
inside the request.
Could someone give me some lights to solve this.


AT


components by property expressions

2007-12-10 Thread Istvan De

Hi!

When I use CompoundPropertyModels, I can automatically wire together my 
model with the components.


However, now what I need to do is to find the corresponding Component by 
a property expression. How to do this? Eg. if there is a CPM attached to 
my form, with a model object of a User, I need to find out what 
Component is bound to the "loginName" field of the model.


How to achieve this?

Best regards,
Istvan

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



Re: How to add filtering to AjaxFallbackDefaultDataTable

2007-12-10 Thread Vincenzo Vitale
Hi,

I tried to use the FilterForm adding a TextFilter instead of the normal
TextField but then I had problems with the bindings between the FilterText
and the filter field on my (java) page... so actually I renounced and I just
put a normal Form with just a text field and in the submit implementation of
the search button I set the filter value(s) in my data provider.

So this is not exactly the answer to your questions but maybe it can help...


Here some code:

In my BaseListPage (then extended by different specific ListPages):

   /**
 * Creates the filter form and adds it to the page.
 *
 * @param accountDataProvider The dataprovider to use.
 * @param dataView the data view to use for this filter form.
 */
private Form createFilterForm(
final AccountDataProvider accountDataProvider,
final DataView dataView) {
keyFilter = new ApiKey();
keyFilter.setKey("");
accountDataProvider.setFilterState(keyFilter);
keyFilterModel = new BoundCompoundPropertyModel(keyFilter);

Form returnedFilterForm = new Form("filterForm", keyFilterModel);

key = new TextField("filterByKey");
keyFilterModel.bind(key, "key");

returnedFilterForm.add(key);

cancelFilterButton = new ImageButton("cancelFilterButton") {

/**
 *
 */
private static final long serialVersionUID =
-6964798131219341486L;

@Override
public void onSubmit() {
keyFilter.setKey("");
dataView.setCurrentPage(0);
setResponsePage(getPage());
}

};
cancelFilterButton.add(key);
returnedFilterForm.add(cancelFilterButton);

filterButton = new ImageButton("filterButton") {

/**
 *
 */
private static final long serialVersionUID =
-6964798131219341486L;

@Override
public void onSubmit() {
dataView.setCurrentPage(0);
setResponsePage(getPage());
}

};
returnedFilterForm.add(key);
returnedFilterForm.add(filterButton);
return returnedFilterForm;
}


And then the dataprovider structure:

public abstract class AccountDataProvider extends SortableDataProvider
implements IFilterStateLocator {

/** Service that will be used to retrieve the list of accounts */
protected AccountService accountService;

/**
 * Reuse the key entity to store filter information.
 */
private ApiKey keyFilter;

public AccountDataProvider(
AccountService accountService) {
this.accountService = accountService;
}

/**
 * Retrieves the accounts from the database considering the
filterFielmodel
 * passed.
 *
 * @param first offset for the first row of data to retrieve
 * @param count number of rows to retrieve
 * @param The filter model to be used.
 * @return A collection of accounts.
 */
protected Collection retrieveAccounts(
int first, int count, ApiKey keyFilter) {

SortParam sp = getSort();
QueryParam queryParam =
new QueryParam(first, count, sp.getProperty(),
sp.isAscending());

Collection accounts = null;
accounts = accountService.find(queryParam, keyFilter);
return accounts;
}

/**
 * Gets total number of items in the collection taking into account the
 * filter value currently set.
 *
 * @return total item count
 */
public int size() {
return accountService.count(keyFilter);
}

public ApiKey getFilterState() {
return keyFilter;
}

public void setFilterState(Object state) {
keyFilter = (ApiKey) state;
}

}

and:

public class BusinessAccountDataProvider extends AccountDataProvider {

/**
 * Eclipse Generated Id.
 */
private static final long serialVersionUID = -2177966069711283834L;

public BusinessAccountDataProvider(
BusinessAccountService
businessAccountService) {
super(businessAccountService);

// set the default sort
setSort("contactName", true);
}

/**
 * Gets an iterator for the subset of accounts.
 *
 * @param first offset for the first row of data to retrieve
 * @param count number of rows to retrieve
 * @return iterator capable of iterating over {first, first+count}
accounts
 */
public Iterator iterator(int first, int
count) {
SortParam sp = getSort();

Collection accounts =
(Collection) retrieveAccounts(first,
count,
getFilterState());
Collection accountAdapters =
new ArrayList();

// Vincenzo Vitale(vita) Jul 13, 2007 10:00:10 AM: Constructing the
list
// of adapters.
for (Iterator iter = accounts.iterator(); iter
.hasN

Re: Tabbing from one AjaxEditableLabel to the next

2007-12-10 Thread Niels van Kampenhout

Johan Compagner wrote:

I think you need some javascript hacking because there is no input
field yet that could be targetted and what is the next one? Labels
dont really have a tab sequence or maybe if you use the labelfor
property somehow?

Of course this could be somehow also coded in the wicket component,
for example you set what the next one should become, and the textfield
listens for a tab (and maybe shift tab) and then does its call to the
next


I was hoping someone had already done exactly that ;-)

I'll give it a try.

Thanks

Niels


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