Help regarding FriendlyUrlMapper

2009-01-08 Thread Nilesh More
Hi, 

I want to use the FriendlyUrlMapper for getting the url content in a
variable.

I have searched it on Google but not getting the correct solution still

Does anybody know about this?

 

 

Nilesh N. More

 


"Legal Disclaimer: This electronic message and all contents contain information 
from Cybage Software Private Limited which may be privileged, confidential, or 
otherwise protected from disclosure. The information is intended to be for the 
addressee(s) only. If you are not an addressee, any disclosure, copy, 
distribution, or use of the contents of this message is strictly prohibited. If 
you have received this electronic message in error please notify the sender by 
reply e-mail to and destroy the original message and all copies. Cybage has 
taken every reasonable precaution to minimize the risk of malicious content in 
the mail, but is not liable for any damage you may sustain as a result of any 
malicious content in this e-mail. You should carry out your own malicious 
content checks before opening the e-mail or attachment."
www.cybage.com 




Get all sessions

2009-01-08 Thread Eunice

Hi,

Is there any methods or functions in wicket that can give me

numbers of users/sessions that is currently active and viewing/opening a
page?

I've been googling and read on the API, still cannot get any clues and
unable to work it out..

Can i get number of sessions from my application by using ISessionStore or

HttpSessions, since the session will be keep in HttpSessions..

I do really appreciate your reply..

Eunice
-- 
View this message in context: 
http://www.nabble.com/Get-all-sessions-tp21367229p21367229.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: Gant like component in wicket

2009-01-08 Thread lizz

Yes I know but this should be displayed in a wicket web page and the number
of tasks types is not static (it is based on the page datamodel
(CompundPropertyModel), so I think i need a wicket component for generating
the html when the page is created).


lizz wrote:
> 
> Has anyone made a gant like chart component in wicket?
> I want to create a "gantlike component" where all the tasks are links and
> are of html input type button. You should be able to click on them to
> display specific information for that task and change the "task button"
> background color based on some criteria. (I.e. make all the tasks that is
> within a sertain time period red.) There will be more than one "task
> button" per task type (or row). 
> 
> Thought about using a list in a list (Property list view). But not really
> sure ow to position the the task buttons (the row) since they need a
> specific position and width.
> 
>  
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Gant-like-component-in-wicket-tp21366378p21366761.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: Gant like component in wicket

2009-01-08 Thread Martin Makundi
Hi!

I have done a somewhat similar looking element with divs. All you need
is to tell the div its starting point, width and height and color, and
you get exactly what you want. If you want it to be clickable you just
put a link anchor around it (

**
Martin

2009/1/9 lizz :
>
> I would also like scroll bars to appear in both directions since I have a lot
> of tasks.
> Th horisontal scrollbar should only be below the taskbutton "column" so the
> task names on the left hand side stays in a fixed position.
> See http://www.java2s.com/Code/Java/Chart/JFreeChartGanttDemo1.htm
> for a jfreechart gant chart example. (I only want scrollbars below the white
> chart since the list of task names on the left hand side should be visible
> when scrolling horisontally). The vertical scroll bar should be on the right
> hand side of the white chart section but this scrolbar should scroll both
> task names on the left and task list (white section) on the right (both
> columns).
>
> The jfreechart demo:
>  http://www.nabble.com/file/p21366613/JFreeChartGanttDemo1.png
> --
> View this message in context: 
> http://www.nabble.com/Gant-like-component-in-wicket-tp21366378p21366613.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: Gant like component in wicket

2009-01-08 Thread lizz

I would also like scroll bars to appear in both directions since I have a lot
of tasks.
Th horisontal scrollbar should only be below the taskbutton "column" so the
task names on the left hand side stays in a fixed position.
See http://www.java2s.com/Code/Java/Chart/JFreeChartGanttDemo1.htm
for a jfreechart gant chart example. (I only want scrollbars below the white
chart since the list of task names on the left hand side should be visible
when scrolling horisontally). The vertical scroll bar should be on the right
hand side of the white chart section but this scrolbar should scroll both
task names on the left and task list (white section) on the right (both
columns).

The jfreechart demo:
  http://www.nabble.com/file/p21366613/JFreeChartGanttDemo1.png 
-- 
View this message in context: 
http://www.nabble.com/Gant-like-component-in-wicket-tp21366378p21366613.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: UML Diagram of Wicket structure

2009-01-08 Thread Martin Makundi
If it ain't broken, don't try to fix it...

2009/1/8 Igor Vaynberg :
> well, its either
>
> IStringResourceLoader and a StringResourceLoader as the default
> implementation - and there usually is just the default
>
> or
>
> StringResourceLoader and StringResourceLoaderImpl or 
> DefaultStringResourceLoader
>
> i dont much care either way, but the first is shorter :)
>
> -igor
>
> On Thu, Jan 8, 2009 at 10:24 AM, Curtis Cooley
>  wrote:
>> Eyal Golan wrote:
>>> Actually it is. Thanks.
>>> I want to show it to some friends whom are learning with me a course in OOD.
>>>
>>>
>> Hopefully whoever is teaching the course will provide a better way to
>> name interfaces than starting them all with I :(
>>
>>
>>
>> Confidential/Privileged information may be contained in this email. If you 
>> are not the intended recipient, please do not copy, distribute or use it for 
>> any purpose, nor disclose its contents to any other person. Please notify 
>> the sender immediately if you receive this in error.
>>
>>
>> -
>> 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: Gant like component in wicket

2009-01-08 Thread lizz



lizz wrote:
> 
> I would also like scroll bars to appear in both directions since I have a
> lot of tasks.
> Th horisontal scrollbar should only be below the taskbutton "column" so
> the task names on the left hand side stays in a fixed x position and are
> always visible.
> See http://www.java2s.com/Code/Java/Chart/JFreeChartGanttDemo1.htm
> for a jfreechart gant chart example. The vertical scroll bar should be on
> the right hand side of the white chart section but this one should scroll
> both task names on the left and task list (white section) on the right (ie
> both task name and task "column")
> 
> 
> lizz wrote:
>> 
>> Has anyone made a gant like chart component in wicket?
>> I want to create a "gantlike component" where all the tasks are links and
>> are of html input type button. You should be able to click on them to
>> display specific information for that task and change the "task button"
>> background color based on some criteria. (I.e. make all the tasks that is
>> within a sertain time period red.) There will be more than one "task
>> button" per task type (or row). 
>> 
>> Thought about using a list in a list (Property list view). But not really
>> sure ow to position the the task buttons (the row) since they need a
>> specific position and width.
>> 
>>  
>> 
>> 
> 
> 
http://www.nabble.com/file/p21366424/JFreeChartGanttDemo1.png 
-- 
View this message in context: 
http://www.nabble.com/Gant-like-component-in-wicket-tp21366378p21366424.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: Gant like component in wicket

2009-01-08 Thread lizz

I would also like scroll bars to appear in both directions since I have a lot
of tasks.
Th horisontal scrollbar should only be below the taskbutton "column" so the
task names on the left hand side stays in a fixed x position and are always
visible.
See http://www.java2s.com/Code/Java/Chart/JFreeChartGanttDemo1.htm
for a jfreechart gant chart example. The vertical scroll bar should be on
the right hand side of the white chart section but this one should scroll
both task names on the left and task list (white section) on the right (ie
both task name and task "column")


lizz wrote:
> 
> Has anyone made a gant like chart component in wicket?
> I want to create a "gantlike component" where all the tasks are links and
> are of html input type button. You should be able to click on them to
> display specific information for that task and change the "task button"
> background color based on some criteria. (I.e. make all the tasks that is
> within a sertain time period red.) There will be more than one "task
> button" per task type (or row). 
> 
> Thought about using a list in a list (Property list view). But not really
> sure ow to position the the task buttons (the row) since they need a
> specific position and width.
> 
>  
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Gant-like-component-in-wicket-tp21366378p21366402.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



Gant like component in wicket

2009-01-08 Thread lizz

Has anyone made a gant like chart component in wicket?
I want to create a "gantlike component" where all the tasks are links and
are of html input type button. You should be able to click on them to
display specific information for that task and change the "task button"
background color based on some criteria. (I.e. make all the tasks that is
within a sertain time period red.) There will be more than one "task button"
per task type (or row). 

Thought about using a list in a list (Property list view). But not really
sure ow to position the the task buttons (the row) since they need a
specific position and width.

 

-- 
View this message in context: 
http://www.nabble.com/Gant-like-component-in-wicket-tp21366378p21366378.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



"Gant chart" as a wicket component

2009-01-08 Thread lizz

Hi,
Has anyone made a gant like chart using
-- 
View this message in context: 
http://www.nabble.com/%22Gant-chart%22-as-a-wicket-component-tp21366137p21366137.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 to implement "isIE6()" java method?

2009-01-08 Thread Igor Vaynberg
see requestcycle#getclientinfo()

-igor

On Thu, Jan 8, 2009 at 4:02 PM, metalotus  wrote:
>
> I have a custom compoent that will return different markup based on browser
> version. How do I check this? I need to do the check on the server-side and
> not with javascript.
>
> Thanks for advice. I am aware of ClientProperties but don't know how to use
> it.
> --
> View this message in context: 
> http://www.nabble.com/How-to-implement-%22isIE6%28%29%22-java-method--tp21363773p21363773.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



How to implement "isIE6()" java method?

2009-01-08 Thread metalotus

I have a custom compoent that will return different markup based on browser
version. How do I check this? I need to do the check on the server-side and
not with javascript.

Thanks for advice. I am aware of ClientProperties but don't know how to use
it.
-- 
View this message in context: 
http://www.nabble.com/How-to-implement-%22isIE6%28%29%22-java-method--tp21363773p21363773.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: AJAX readyState property equivalent

2009-01-08 Thread Igor Vaynberg
see iajaxcalldecorator

-igor

On Thu, Jan 8, 2009 at 2:41 PM, Ryan O'Hara  wrote:
> I was just wondering if there is an equivalent to the AJAX
> xmlHttp.readyState.  I'm interested in display a "Loading..." message to the
> user while waiting for the response.  Thanks in advance.
>
> Ryan
>
>
> -
> 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



AJAX readyState property equivalent

2009-01-08 Thread Ryan O'Hara
I was just wondering if there is an equivalent to the AJAX  
xmlHttp.readyState.  I'm interested in display a "Loading..." message  
to the user while waiting for the response.  Thanks in advance.


Ryan


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



Re: Sorting a column populated through pupulateItem method...

2009-01-08 Thread Jeremy Thomerson
PS - DBObjectDetachableModel is my own model wrapper - you could use plain
Model, but I'd suggest looking at:
http://wicketinaction.com/2008/09/building-a-smart-entitymodel/

On Thu, Jan 8, 2009 at 4:00 PM, Jeremy Thomerson
wrote:

> What kind of data provider are you giving it?  Couldn't you implement your
> own ISortableDataProvider?
>
> ISortableDataProvider dp = new SortableDataProvider() {
> public Iterator iterator(int first, int count)
> {
> // TODO Auto-generated method stub
> // use this property to determine if that's the column
> selected.  then sort by it
> getSort().getProperty();
> return null;
> }
> public IModel model(Post object) {
> return new DBObjectDetachableModel(object);
> }
> public int size() {
> // TODO Auto-generated method stub
> return 0;
> }
> };
>
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
> On Thu, Jan 8, 2009 at 3:32 PM, nitinkc  wrote:
>
>>
>> As I had mentioned, the column values are not representative of the values
>> of
>> any property so that would not work
>>
>>
>> asfernandes wrote:
>> >
>> > nitinkc wrote:
>> >> I have a requirement to sort a column of a Datatable which does not
>> have
>> >> any
>> >> property values. Sorting property columns is easy using the
>> >> getSortProperty() method. However in this case, I am populating the
>> >> values
>> >> in the column using the
>> >>
>> >> populateItem(org.apache.wicket.markup.repeater.Item cellItem,
>> >> java.lang.String componentId,
>> >> org.apache.wicket.model.IModel rowModel)
>> >>
>> >> method. The column values are generated using additional logic in this
>> >> method and are not representative of any property value. Any ideas??
>> >>
>> > The second parameter of PropertyColumn constructor is the property used
>> > for sorting.
>> >
>> >
>> > Adriano
>> >
>> >
>> > -
>> > 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/Sorting-a-column-populated-through-pupulateItem-method...-tp21337870p21361414.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
>>
>>
>
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Sorting a column populated through pupulateItem method...

2009-01-08 Thread Jeremy Thomerson
What kind of data provider are you giving it?  Couldn't you implement your
own ISortableDataProvider?

ISortableDataProvider dp = new SortableDataProvider() {
public Iterator iterator(int first, int count) {
// TODO Auto-generated method stub
// use this property to determine if that's the column
selected.  then sort by it
getSort().getProperty();
return null;
}
public IModel model(Post object) {
return new DBObjectDetachableModel(object);
}
public int size() {
// TODO Auto-generated method stub
return 0;
}
};


-- 
Jeremy Thomerson
http://www.wickettraining.com

On Thu, Jan 8, 2009 at 3:32 PM, nitinkc  wrote:

>
> As I had mentioned, the column values are not representative of the values
> of
> any property so that would not work
>
>
> asfernandes wrote:
> >
> > nitinkc wrote:
> >> I have a requirement to sort a column of a Datatable which does not have
> >> any
> >> property values. Sorting property columns is easy using the
> >> getSortProperty() method. However in this case, I am populating the
> >> values
> >> in the column using the
> >>
> >> populateItem(org.apache.wicket.markup.repeater.Item cellItem,
> >> java.lang.String componentId,
> >> org.apache.wicket.model.IModel rowModel)
> >>
> >> method. The column values are generated using additional logic in this
> >> method and are not representative of any property value. Any ideas??
> >>
> > The second parameter of PropertyColumn constructor is the property used
> > for sorting.
> >
> >
> > Adriano
> >
> >
> > -
> > 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/Sorting-a-column-populated-through-pupulateItem-method...-tp21337870p21361414.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: Sorting a column populated through pupulateItem method...

2009-01-08 Thread nitinkc

As I had mentioned, the column values are not representative of the values of
any property so that would not work


asfernandes wrote:
> 
> nitinkc wrote:
>> I have a requirement to sort a column of a Datatable which does not have
>> any
>> property values. Sorting property columns is easy using the
>> getSortProperty() method. However in this case, I am populating the
>> values
>> in the column using the 
>>
>> populateItem(org.apache.wicket.markup.repeater.Item cellItem,
>> java.lang.String componentId,
>> org.apache.wicket.model.IModel rowModel)
>>
>> method. The column values are generated using additional logic in this
>> method and are not representative of any property value. Any ideas??
>>   
> The second parameter of PropertyColumn constructor is the property used 
> for sorting.
> 
> 
> Adriano
> 
> 
> -
> 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/Sorting-a-column-populated-through-pupulateItem-method...-tp21337870p21361414.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: AjaxCheckBox not working

2009-01-08 Thread Serkan Camurcuoglu
did you call setOutputMarkupId(true) and setOutputMarkupPlaceHolderTag(true) on 
your panel? setOutputMarkupId(true) is required for the panel to have an id, 
and setOutputMarkupPlaceHolderTag(true) is required if it will be initially 
invisible..


-Original Message-
From: wicketworker [mailto:siva.mad...@gmail.com]
Sent: Thu 1/8/2009 10:22 PM
To: users@wicket.apache.org
Subject: AjaxCheckBox not working
 

I am trying to display a panel when the user clicks on the check box. Ajax
request is getting fired and response is not getting processed by the
browsder with an error.


INFO: Received ajax response (2681 characters)
INFO: 


INFO: Response parsed. Now invoking steps...
ERROR: Component with id [[preReleasePanel2b]] a was not found while trying
to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you are
trying to update.
INFO: Response processed successfully.

I can clearly see that preReleasePanel2b is there in the response, can
anyone please tell me why i am getting this error.



-- 
View this message in context: 
http://www.nabble.com/AjaxCheckBox-not-working-tp21360165p21360165.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: Sorting a column populated through pupulateItem method...

2009-01-08 Thread Adriano dos Santos Fernandes

nitinkc wrote:

I have a requirement to sort a column of a Datatable which does not have any
property values. Sorting property columns is easy using the
getSortProperty() method. However in this case, I am populating the values
in the column using the 


populateItem(org.apache.wicket.markup.repeater.Item cellItem,
java.lang.String componentId,
org.apache.wicket.model.IModel rowModel)

method. The column values are generated using additional logic in this
method and are not representative of any property value. Any ideas??
  
The second parameter of PropertyColumn constructor is the property used 
for sorting.



Adriano


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



AjaxCheckBox not working

2009-01-08 Thread wicketworker

I am trying to display a panel when the user clicks on the check box. Ajax
request is getting fired and response is not getting processed by the
browsder with an error.


INFO: Received ajax response (2681 characters)
INFO: 


INFO: Response parsed. Now invoking steps...
ERROR: Component with id [[preReleasePanel2b]] a was not found while trying
to perform markup update. Make sure you called
component.setOutputMarkupId(true) on the component whose markup you are
trying to update.
INFO: Response processed successfully.

I can clearly see that preReleasePanel2b is there in the response, can
anyone please tell me why i am getting this error.



-- 
View this message in context: 
http://www.nabble.com/AjaxCheckBox-not-working-tp21360165p21360165.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



ResourceLink question

2009-01-08 Thread Alex Objelean

Is there any reason why ResourceLink class in wicket 1.4 is a generic class,
since the parameter  isn't used at all? 




-- 
View this message in context: 
http://www.nabble.com/ResourceLink-question-tp21359819p21359819.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: UML Diagram of Wicket structure

2009-01-08 Thread Igor Vaynberg
well, its either

IStringResourceLoader and a StringResourceLoader as the default
implementation - and there usually is just the default

or

StringResourceLoader and StringResourceLoaderImpl or DefaultStringResourceLoader

i dont much care either way, but the first is shorter :)

-igor

On Thu, Jan 8, 2009 at 10:24 AM, Curtis Cooley
 wrote:
> Eyal Golan wrote:
>> Actually it is. Thanks.
>> I want to show it to some friends whom are learning with me a course in OOD.
>>
>>
> Hopefully whoever is teaching the course will provide a better way to
> name interfaces than starting them all with I :(
>
>
>
> Confidential/Privileged information may be contained in this email. If you 
> are not the intended recipient, please do not copy, distribute or use it for 
> any purpose, nor disclose its contents to any other person. Please notify the 
> sender immediately if you receive this in error.
>
>
> -
> 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: UML Diagram of Wicket structure

2009-01-08 Thread Jonathan Locke


I is a little weird at first (unless you used to work for Microsoft)
and i don't generally do any "hungarian" at all these days, but this one
little notational "deviation" allows a few nice things (and you can take it
or leave it):

 - interfaces can be rapidly found with control-shift-t in eclipse by typing
"i"
 - resolves naming conflicts with annotations and classes without
compromises
 - code reads faster and more clearly because it makes functionality
immediately clear (you know when you can implement without seeing the class
definition so you can see the design better)

while it wasn't the most popular decision (and believe me, i do see both
sides of the issue because naming is very important to me when coding), it
does have some modest benefits and at the least (to me, anyway) it's simply
not an important issue. six of one. half dozen of the other. you do get used
to it.


Curtis Cooley-2 wrote:
> 
> Eyal Golan wrote:
>> Actually it is. Thanks.
>> I want to show it to some friends whom are learning with me a course in
>> OOD.
>>
>>   
> Hopefully whoever is teaching the course will provide a better way to
> name interfaces than starting them all with I :(
> 
> 
> 
> Confidential/Privileged information may be contained in this email. If you
> are not the intended recipient, please do not copy, distribute or use it
> for any purpose, nor disclose its contents to any other person. Please
> notify the sender immediately if you receive this in error.
> 
> 
> -
> 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/UML-Diagram-of-Wicket-structure-tp21354861p21358642.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: Wicket Not Using Custom Model Comparitor: Very Puzzling Behavior

2009-01-08 Thread Jeremy Thomerson
https://issues.apache.org/jira/browse/WICKET

On Thu, Jan 8, 2009 at 12:49 PM, walnutmon wrote:

>
> Well, I'd imagine your way is the right way, since my way doesn't work
> Though it works when I use the wicket tester.  This is most likely a bug,
> but I am not keen on how to submit bugs and so on to the wicket developers.
>
>
> Martin Makundi wrote:
> >
> > I did not know of this.. I have always used the IChoiceRenderer's
> > getIdValue to distinguish between dropdown elements.. I have never
> > overridden the modelcomparator.
> >
> > I wonder... which way is the right way :)
> >
> > **
> > Martin
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Wicket-Not-Using-Custom-Model-Comparitor%3A-Very-Puzzling-Behavior-tp21357902p21358346.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
>
>


-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: Wicket Not Using Custom Model Comparitor: Very Puzzling Behavior

2009-01-08 Thread walnutmon

Well, I'd imagine your way is the right way, since my way doesn't work
Though it works when I use the wicket tester.  This is most likely a bug,
but I am not keen on how to submit bugs and so on to the wicket developers.


Martin Makundi wrote:
> 
> I did not know of this.. I have always used the IChoiceRenderer's
> getIdValue to distinguish between dropdown elements.. I have never
> overridden the modelcomparator.
> 
> I wonder... which way is the right way :)
> 
> **
> Martin
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Not-Using-Custom-Model-Comparitor%3A-Very-Puzzling-Behavior-tp21357902p21358346.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: Wicket Not Using Custom Model Comparitor: Very Puzzling Behavior

2009-01-08 Thread Martin Makundi
I did not know of this.. I have always used the IChoiceRenderer's
getIdValue to distinguish between dropdown elements.. I have never
overridden the modelcomparator.

I wonder... which way is the right way :)

**
Martin

2009/1/8 walnutmon :
>
> I have dropdowns that are filled with domain objects, and sometimes the
> objects are not equivalent literally, but should be treated as such.  I
> created a subclass of the DropDownChoice...
>
> class RelaxedComparisonDropDown extends DropDownChoice
>{ ...constructor...
>   @Override
>protected IModelComparator getModelComparator(){
>return new IModelComparator() {
>public boolean compare(Component arg0, Object arg1){
>DomainMember member =
> (DomainMember)arg0.getModelObject();
>DomainMember member1 = (DomainMember)arg1;
>return member.getIdent().equals(member1.getIdent());
> }};   }}
>
> I then use this object in place of the drop down choice on my page.  This
> doesn't work.  However, what's more puzzling is that when I test that page
> it works just fine.  As a final test I placed a system.out in the compare
> function.  The s.out gets called when running the test but not when the
> application is deployed on my local server.
>
> Very very odd.  I'm pretty much baffled, I hope someone can guide me in the
> right direction.
> --
> View this message in context: 
> http://www.nabble.com/Wicket-Not-Using-Custom-Model-Comparitor%3A-Very-Puzzling-Behavior-tp21357902p21357902.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



Wicket Not Using Custom Model Comparitor: Very Puzzling Behavior

2009-01-08 Thread walnutmon

I have dropdowns that are filled with domain objects, and sometimes the
objects are not equivalent literally, but should be treated as such.  I
created a subclass of the DropDownChoice...

class RelaxedComparisonDropDown extends DropDownChoice
{ ...constructor...
   @Override
protected IModelComparator getModelComparator(){
return new IModelComparator() {
public boolean compare(Component arg0, Object arg1){
DomainMember member =
(DomainMember)arg0.getModelObject();
DomainMember member1 = (DomainMember)arg1;
return member.getIdent().equals(member1.getIdent());
}};   }}

I then use this object in place of the drop down choice on my page.  This
doesn't work.  However, what's more puzzling is that when I test that page
it works just fine.  As a final test I placed a system.out in the compare
function.  The s.out gets called when running the test but not when the
application is deployed on my local server.

Very very odd.  I'm pretty much baffled, I hope someone can guide me in the
right direction.
-- 
View this message in context: 
http://www.nabble.com/Wicket-Not-Using-Custom-Model-Comparitor%3A-Very-Puzzling-Behavior-tp21357902p21357902.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: UML Diagram of Wicket structure

2009-01-08 Thread Curtis Cooley
Eyal Golan wrote:
> Actually it is. Thanks.
> I want to show it to some friends whom are learning with me a course in OOD.
>
>   
Hopefully whoever is teaching the course will provide a better way to
name interfaces than starting them all with I :(



Confidential/Privileged information may be contained in this email. If you are 
not the intended recipient, please do not copy, distribute or use it for any 
purpose, nor disclose its contents to any other person. Please notify the 
sender immediately if you receive this in error.

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

Re: UML Diagram of Wicket structure

2009-01-08 Thread Eyal Golan
Actually it is. Thanks.
I want to show it to some friends whom are learning with me a course in OOD.

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Thu, Jan 8, 2009 at 6:39 PM, Peter Thomas  wrote:

> On Thu, Jan 8, 2009 at 9:42 PM, Eyal Golan  wrote:
>
> > Hi,
> > A few months ago someone sent a link that had a nice class diagram of
> > Wicket.
> > Can anyone point me there? I think it was a presentation about Wicket but
> > not sure.
>
>
> This one?  I think it is quite old though...
>
> http://spider.bg/~aquarius/dl/Wicket%20Components%200.1.png
>
>
>
> >
> > OR,
> > Does anyone have a detailed Wicket class diagram?
> >
> > Thanks
> >
> >
> > Eyal Golan
> > egola...@gmail.com
> >
> > Visit: http://jvdrums.sourceforge.net/
> > LinkedIn: http://www.linkedin.com/in/egolan74
> >
> > P  Save a tree. Please don't print this e-mail unless it's really
> necessary
> >
>


Multiple Copies of One Wicket App

2009-01-08 Thread Sean W

Greetings,

I am trying to set up a single WAR (web app) that can use as many as 200
different databases depending on the request path.

Normally we have:
/ContextPath/WicketServlet/BookmarkablePage

I am trying to make:
/ContextPath/FileName/WicketServlet/BookmarkablePage

Where FileName is a configuration file on the server containing database
connection info.

Is there a way to pass this "FileName" to wicket's Application object? Is it
possible to use WicketFilter for this? I'm having trouble finding relevant
examples. Any help or alternate approaches would be helpful. 

Thanks!

FYI: I currently have a 1-web app, 1-servlet, 1-application setup. I
basically need to make a couple hundred seemingly-independent copies of the
same program (more multiple clients) using most efficient method.
-- 
View this message in context: 
http://www.nabble.com/Multiple-Copies-of-One-Wicket-App-tp21355510p21355510.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: UML Diagram of Wicket structure

2009-01-08 Thread Peter Thomas
On Thu, Jan 8, 2009 at 9:42 PM, Eyal Golan  wrote:

> Hi,
> A few months ago someone sent a link that had a nice class diagram of
> Wicket.
> Can anyone point me there? I think it was a presentation about Wicket but
> not sure.


This one?  I think it is quite old though...

http://spider.bg/~aquarius/dl/Wicket%20Components%200.1.png



>
> OR,
> Does anyone have a detailed Wicket class diagram?
>
> Thanks
>
>
> Eyal Golan
> egola...@gmail.com
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>
> P  Save a tree. Please don't print this e-mail unless it's really necessary
>


Re: Back button + dataview problem

2009-01-08 Thread Jeremy Thomerson
Right - don't make your DAO serializable - the proxy thing should work.
Like Igor said, try a different container (run it up in Jetty with the
quickstart if you can - that should be quick and easy).

Let us know the results.  If it still happens, let us see the code where you
define the category dao.


-- 
Jeremy Thomerson
http://www.wickettraining.com


On Thu, Jan 8, 2009 at 9:58 AM, quizzical  wrote:

>
> But if I have understood the docs
> http://cwiki.apache.org/WICKET/spring.html
> here  on the spring - annot project then categoryDao should be injected
> with
> a serializable proxy which can get a categoryDao from spring when needed
> and
> drop it when serialized.
>
>
>
> Serkan Camurcuoglu-3 wrote:
> >
> > so categoryDao implements java.io.Serializable but it cannot be
> > serialized?
> >
> >
> > quizzical wrote:
> >> Thanks, that seems to be the problem, I'm getting
> >> NotSerializableException,
> >> the offending objects are injected using @SpringBean, which I thought
> >> injected a proxy. I've read the docs online for spring-annot and I can't
> >> see
> >> why this should be happening.
> >>
> >> I'm running glassfish and the log has this to say about the error:
> >>
> >> 'Cannot serialize session attribute categoryDao for session'
> >>
> >> Where categoryDao is the injected variable.
> >>
> >> Any idea what I'm doing wrong?
> >> Cheers
> >>
> >>
> >>
> >> Serkan Camurcuoglu-3 wrote:
> >>
> >>> did you check your logs, if you are getting NotSerializableExceptions
> in
> >>> the background you may get page expired errors with back button..
> >>>
> >>>
> >>> quizzical wrote:
> >>>
>  Hi everyone,
> 
>  I'm in the process of writing an example ecommerce app to get to know
>  wicket
>  and am really enjoying the experience.. At the moment I'm working on a
>  page
>  which allows you to browse through a list of items in a database.
> 
>  For the list of items I created a panel which uses a DataView with a
>  SortableDataProvider and some orderByLinks, I also created a panel for
>  viewing the available categories which controls the data the DataView
>  is
>  working on.
> 
>  Everything works fine going forwards, I'm running into problems with
>  the
>  back button. If I click on any of the links in these panels, then
> click
>  the
>  back button, then try and click another link I get a 'page expired'
>  error
>  page.
> 
>  Do I need to addStateChange on one of my components? If so which one,
> I
>  can't find much info about Change and how it is meant to be used.
> 
>  If this is a simple problem and someone can answer my question easily
>  then I
>  will be very happy :) I have had a look through the forums but I
>  couldn't
>  find anything that helped me, it is possible of course that I was
> using
>  the
>  wrong terms. If there is not enough information here then let me know
>  and
>  I
>  will write a test case and post that.
> 
>  Cheers very much
>  Alex
> 
> 
> >>> -
> >>> 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/Back-button-%2B-dataview-problem-tp21348923p21354606.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: Twenty Six Wicket Tricks

2009-01-08 Thread Jonathan Locke


thanks. will think about it.


Gwyn wrote:
> 
> Not sure if it qualifies as enough of a topic, but would some form of
> overview/comparison/"when to use" syummary of the various URL coding
> strategies be worth considering?
> 
> /Gwyn
> 
> On Mon, Jan 5, 2009 at 8:37 AM, Jonathan Locke 
> wrote:
>>
>>
>> well, i got bored enough over the break to sink some hours into
>> this and i'm liking what happened pretty well now. any other really
>> ugly problems people want neat solutions to? ;-)
>>
>>
>> Jonathan Locke wrote:
>>>
>>>
>>> yes.  this is a good one, but it might be too big for the book...
>>> although i've been pondering the possibility of something more
>>> general which is more in the neighborhood of "arbitrarily-
>>> driven component factories" (where property editors and
>>> bean editors are specializations).
>>>
>>> for property/bean editors you may want to take a look
>>> at will faler's "wicket-rad" which does this already.
>>> although i don't know if it's as ideal as it could be yet,
>>> i think he'd like some help with it seems open to working
>>> with people.
>>>
>>>   jon
>>>
>>>
>>> walnutmon wrote:

 A component that takes some domain object, and for every property
 dynamically loads an appropriate form element.

 @Test
 {
 private class DomainObject{
 List prop1s;
 Boolean prop2;
 }
 panel = new DynamicPropertyPanel(new DomainObject());
 assertComponent("panel:form:formElement:0", DropDownChoice.class);
 assertComponent("panel:form:formElement:1", Checkbox.class);

 //test customization
 panel = new DynamicPropertyPanel(new DomainObject());
 panel.setProperty("prop1s", RadioGroup.class);
 assertComponent("panel:form:formElement:0", RadioGroup.class);
 assertComponent("panel:form:formElement:1", Checkbox.class);
 }

 My company would purchase several copies of the book if I recommended
 to
 do so; which I would.

 Jonathan Locke wrote:
>
> Well, over the break here I've started something I swore I would never
> do again (well, two things, if you include the JavaOne talk I'm
> working
> on). I'm writing a (hopefully relatively short) book. It's called
> "Twenty-Six Wicket Tricks". Each trick in the book (lettered from A-Z)
> demonstrates something that people typically want to do and in the
> process builds a reusable and educational component. I've got 13
> tricks
> coded up now and ideas for a handful more, but if there are any
> requests
> out there, please let me know. I'd also be interested in getting some
> idea how many people would be interested in this book (would provide
> some fuel for me to get it done). It does not cover any of the same
> ground as Wicket in Action (which you should buy if you have not
> already!), BTW. It's more of a companion to that book.
>
> Happy Holidays!
>
> Best,
>
>Jonathan
>
>
>


>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21287125.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/Twenty-Six-Wicket-Tricks-tp21214357p21355450.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: trouble controlling visibility of dataview

2009-01-08 Thread Peter Thomas
On Thu, Jan 8, 2009 at 9:34 PM, Igor Vaynberg wrote:

> override onbeforerender, do some check there, and call setvisible()
>
> -igor


Thanks Igor, I will try that.


>
>
> On Thu, Jan 8, 2009 at 5:47 AM, Peter Thomas  wrote:
> > On Sat, Jan 3, 2009 at 8:46 PM, Peter Thomas 
> wrote:
> >
> >> Hi,
> >>
> >> I am using a DataView and I was trying to override isVisible() and use
> >> "this.getRowCount()" to decide if the table should be rendered or not.
>  But
> >> this results in a stack overflow because DataView#getRowCount()
> internally
> >> calls isVisibleInHierarchy().
> >
> >
> > *bump* - I just found through a Nabble search that this had come up
> earlier:
> >
> > http://www.nabble.com/enclosures-and-dataview-td14258879.html#a14258879
> >
> > I just raised a JIRA issue:
> > https://issues.apache.org/jira/browse/WICKET-2012
> >
> >
> >>
> >>
> >> The use case is trying to hide a table header row when there are no
> search
> >> results.  The implementation of getRowCount() in AbstractPageableView
> >> (Wicket 1.3.5) starts like this:
> >>
> >> if (!isVisibleInHierarchy())
> >> {
> >> return 0;
> >> }
> >>
> >> Was wondering - is that part really necessary?  I wanted to use an
> >> enclosure but that also results in isVisible() calls all over the place.
> >> The only way I could work around this for now is by using a separate web
> >> markup container for hiding the table header row.
> >>
> >> How can I hide a DataView if the data size is zero?  I could call size()
> on
> >> the IDataProvider but I think the DataView has some logic to cache the
> >> size.  What am I missing?
> >>
> >> Thanks,
> >>
> >> Peter.
> >>
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


UML Diagram of Wicket structure

2009-01-08 Thread Eyal Golan
Hi,
A few months ago someone sent a link that had a nice class diagram of
Wicket.
Can anyone point me there? I think it was a presentation about Wicket but
not sure.

OR,
Does anyone have a detailed Wicket class diagram?

Thanks


Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: trouble controlling visibility of dataview

2009-01-08 Thread Igor Vaynberg
override onbeforerender, do some check there, and call setvisible()

-igor

On Thu, Jan 8, 2009 at 5:47 AM, Peter Thomas  wrote:
> On Sat, Jan 3, 2009 at 8:46 PM, Peter Thomas  wrote:
>
>> Hi,
>>
>> I am using a DataView and I was trying to override isVisible() and use
>> "this.getRowCount()" to decide if the table should be rendered or not.  But
>> this results in a stack overflow because DataView#getRowCount() internally
>> calls isVisibleInHierarchy().
>
>
> *bump* - I just found through a Nabble search that this had come up earlier:
>
> http://www.nabble.com/enclosures-and-dataview-td14258879.html#a14258879
>
> I just raised a JIRA issue:
> https://issues.apache.org/jira/browse/WICKET-2012
>
>
>>
>>
>> The use case is trying to hide a table header row when there are no search
>> results.  The implementation of getRowCount() in AbstractPageableView
>> (Wicket 1.3.5) starts like this:
>>
>> if (!isVisibleInHierarchy())
>> {
>> return 0;
>> }
>>
>> Was wondering - is that part really necessary?  I wanted to use an
>> enclosure but that also results in isVisible() calls all over the place.
>> The only way I could work around this for now is by using a separate web
>> markup container for hiding the table header row.
>>
>> How can I hide a DataView if the data size is zero?  I could call size() on
>> the IDataProvider but I think the DataView has some logic to cache the
>> size.  What am I missing?
>>
>> Thanks,
>>
>> Peter.
>>
>

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



Re: Back button + dataview problem

2009-01-08 Thread quizzical

But if I have understood the docs  http://cwiki.apache.org/WICKET/spring.html
here  on the spring - annot project then categoryDao should be injected with
a serializable proxy which can get a categoryDao from spring when needed and
drop it when serialized.



Serkan Camurcuoglu-3 wrote:
> 
> so categoryDao implements java.io.Serializable but it cannot be
> serialized?
> 
> 
> quizzical wrote:
>> Thanks, that seems to be the problem, I'm getting
>> NotSerializableException,
>> the offending objects are injected using @SpringBean, which I thought
>> injected a proxy. I've read the docs online for spring-annot and I can't
>> see
>> why this should be happening.
>>
>> I'm running glassfish and the log has this to say about the error: 
>>
>> 'Cannot serialize session attribute categoryDao for session'
>>
>> Where categoryDao is the injected variable.
>>
>> Any idea what I'm doing wrong? 
>> Cheers
>>
>>
>>
>> Serkan Camurcuoglu-3 wrote:
>>   
>>> did you check your logs, if you are getting NotSerializableExceptions in 
>>> the background you may get page expired errors with back button..
>>>
>>>
>>> quizzical wrote:
>>> 
 Hi everyone,

 I'm in the process of writing an example ecommerce app to get to know
 wicket
 and am really enjoying the experience.. At the moment I'm working on a
 page
 which allows you to browse through a list of items in a database.

 For the list of items I created a panel which uses a DataView with a
 SortableDataProvider and some orderByLinks, I also created a panel for
 viewing the available categories which controls the data the DataView
 is
 working on.

 Everything works fine going forwards, I'm running into problems with
 the
 back button. If I click on any of the links in these panels, then click
 the
 back button, then try and click another link I get a 'page expired'
 error
 page.

 Do I need to addStateChange on one of my components? If so which one, I
 can't find much info about Change and how it is meant to be used.

 If this is a simple problem and someone can answer my question easily
 then I
 will be very happy :) I have had a look through the forums but I
 couldn't
 find anything that helped me, it is possible of course that I was using
 the
 wrong terms. If there is not enough information here then let me know
 and
 I
 will write a test case and post that.

 Cheers very much
 Alex
   
   
>>> -
>>> 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/Back-button-%2B-dataview-problem-tp21348923p21354606.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: Back button + dataview problem

2009-01-08 Thread Igor Vaynberg
it shouldnt be happening. try deploying on something other then
glassfish like tomcat to see if its still happening.

-igor

On Thu, Jan 8, 2009 at 7:28 AM, quizzical  wrote:
>
> Thanks, that seems to be the problem, I'm getting NotSerializableException,
> the offending objects are injected using @SpringBean, which I thought
> injected a proxy. I've read the docs online for spring-annot and I can't see
> why this should be happening.
>
> I'm running glassfish and the log has this to say about the error:
>
> 'Cannot serialize session attribute categoryDao for session'
>
> Where categoryDao is the injected variable.
>
> Any idea what I'm doing wrong?
> Cheers
>
>
>
> Serkan Camurcuoglu-3 wrote:
>>
>> did you check your logs, if you are getting NotSerializableExceptions in
>> the background you may get page expired errors with back button..
>>
>>
>> quizzical wrote:
>>> Hi everyone,
>>>
>>> I'm in the process of writing an example ecommerce app to get to know
>>> wicket
>>> and am really enjoying the experience.. At the moment I'm working on a
>>> page
>>> which allows you to browse through a list of items in a database.
>>>
>>> For the list of items I created a panel which uses a DataView with a
>>> SortableDataProvider and some orderByLinks, I also created a panel for
>>> viewing the available categories which controls the data the DataView is
>>> working on.
>>>
>>> Everything works fine going forwards, I'm running into problems with the
>>> back button. If I click on any of the links in these panels, then click
>>> the
>>> back button, then try and click another link I get a 'page expired' error
>>> page.
>>>
>>> Do I need to addStateChange on one of my components? If so which one, I
>>> can't find much info about Change and how it is meant to be used.
>>>
>>> If this is a simple problem and someone can answer my question easily
>>> then I
>>> will be very happy :) I have had a look through the forums but I couldn't
>>> find anything that helped me, it is possible of course that I was using
>>> the
>>> wrong terms. If there is not enough information here then let me know and
>>> I
>>> will write a test case and post that.
>>>
>>> Cheers very much
>>> Alex
>>>
>>
>>
>> -
>> 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/Back-button-%2B-dataview-problem-tp21348923p21354022.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: Wicketstuff/dojo Examples

2009-01-08 Thread Jeremy Thomerson
It's moved to the 1.3.X branch because it wasn't 1.4 compatible:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3.x/wicketstuff-dojo-examples/


-- 
Jeremy Thomerson
http://www.wickettraining.com

On Thu, Jan 8, 2009 at 9:15 AM, lizz  wrote:

>
> I dont find the source code for the example there...
> I am looking for the complete source code for the
> "Orderable List with scroll" example...
>
>
> Dipu-3 wrote:
> >
> > i think its in there
> >
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-1.1
> >
> > regards
> > dipu
> >
> >
> > On Thu, Jan 8, 2009 at 2:58 PM, lizz 
> wrote:
> >>
> >> I dont find the source code at
> >>
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-examples
> >> anymore.
> >> Where can I find the source for the wicketstuff/dojo examples now?
> >>
> >>
> >> Stefan Lindner wrote:
> >>>
> >>> Where can I find the source for the wicketstuff/dojo examples? I do not
> >>> mean the code snipplets like the ones at
> >>>
> http://wicketstuff.org/confluence/display/STUFFWIKI/Simple+Dojo+D%27n%27
> >>> D+tutorial?
> >>>
> >>> The repositories that are mentiones all around the page contain only
> >>> source for the wicket-doje-integration etself. not for the examples.
> And
> >>> it would speed up the learning if I could start from a working demo
> >>> application (where to put the js-code in html etc.)
> >>>
> >>> I Have tried som veriants (

Re: Back button + dataview problem

2009-01-08 Thread Serkan Camurcuoglu

so categoryDao implements java.io.Serializable but it cannot be serialized?


quizzical wrote:

Thanks, that seems to be the problem, I'm getting NotSerializableException,
the offending objects are injected using @SpringBean, which I thought
injected a proxy. I've read the docs online for spring-annot and I can't see
why this should be happening.

I'm running glassfish and the log has this to say about the error: 


'Cannot serialize session attribute categoryDao for session'

Where categoryDao is the injected variable.

Any idea what I'm doing wrong? 
Cheers




Serkan Camurcuoglu-3 wrote:
  
did you check your logs, if you are getting NotSerializableExceptions in 
the background you may get page expired errors with back button..



quizzical wrote:


Hi everyone,

I'm in the process of writing an example ecommerce app to get to know
wicket
and am really enjoying the experience.. At the moment I'm working on a
page
which allows you to browse through a list of items in a database.

For the list of items I created a panel which uses a DataView with a
SortableDataProvider and some orderByLinks, I also created a panel for
viewing the available categories which controls the data the DataView is
working on.

Everything works fine going forwards, I'm running into problems with the
back button. If I click on any of the links in these panels, then click
the
back button, then try and click another link I get a 'page expired' error
page.

Do I need to addStateChange on one of my components? If so which one, I
can't find much info about Change and how it is meant to be used.

If this is a simple problem and someone can answer my question easily
then I
will be very happy :) I have had a look through the forums but I couldn't
find anything that helped me, it is possible of course that I was using
the
wrong terms. If there is not enough information here then let me know and
I
will write a test case and post that.

Cheers very much
Alex
  
  

-
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: Back button + dataview problem

2009-01-08 Thread quizzical

Thanks, that seems to be the problem, I'm getting NotSerializableException,
the offending objects are injected using @SpringBean, which I thought
injected a proxy. I've read the docs online for spring-annot and I can't see
why this should be happening.

I'm running glassfish and the log has this to say about the error: 

'Cannot serialize session attribute categoryDao for session'

Where categoryDao is the injected variable.

Any idea what I'm doing wrong? 
Cheers



Serkan Camurcuoglu-3 wrote:
> 
> did you check your logs, if you are getting NotSerializableExceptions in 
> the background you may get page expired errors with back button..
> 
> 
> quizzical wrote:
>> Hi everyone,
>>
>> I'm in the process of writing an example ecommerce app to get to know
>> wicket
>> and am really enjoying the experience.. At the moment I'm working on a
>> page
>> which allows you to browse through a list of items in a database.
>>
>> For the list of items I created a panel which uses a DataView with a
>> SortableDataProvider and some orderByLinks, I also created a panel for
>> viewing the available categories which controls the data the DataView is
>> working on.
>>
>> Everything works fine going forwards, I'm running into problems with the
>> back button. If I click on any of the links in these panels, then click
>> the
>> back button, then try and click another link I get a 'page expired' error
>> page.
>>
>> Do I need to addStateChange on one of my components? If so which one, I
>> can't find much info about Change and how it is meant to be used.
>>
>> If this is a simple problem and someone can answer my question easily
>> then I
>> will be very happy :) I have had a look through the forums but I couldn't
>> find anything that helped me, it is possible of course that I was using
>> the
>> wrong terms. If there is not enough information here then let me know and
>> I
>> will write a test case and post that.
>>
>> Cheers very much
>> Alex
>>   
> 
> 
> -
> 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/Back-button-%2B-dataview-problem-tp21348923p21354022.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



Wicket + NetBeans Platform (Platform, not IDE!)

2009-01-08 Thread Fabrizio Giudici

Comments welcome...

http://netbeans.dzone.com/articles/using-netbeans-platform-server

--
Fabrizio Giudici - Java Architect, Project Manager
Tidalwave s.a.s. - "We make Java work. Everywhere."
weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog
fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941


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



Re: Wicketstuff/dojo Examples

2009-01-08 Thread lizz

I dont find the source code for the example there... 
I am looking for the complete source code for the 
"Orderable List with scroll" example...


Dipu-3 wrote:
> 
> i think its in there
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-1.1
> 
> regards
> dipu
> 
> 
> On Thu, Jan 8, 2009 at 2:58 PM, lizz  wrote:
>>
>> I dont find the source code at
>> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-examples
>> anymore.
>> Where can I find the source for the wicketstuff/dojo examples now?
>>
>>
>> Stefan Lindner wrote:
>>>
>>> Where can I find the source for the wicketstuff/dojo examples? I do not
>>> mean the code snipplets like the ones at
>>> http://wicketstuff.org/confluence/display/STUFFWIKI/Simple+Dojo+D%27n%27
>>> D+tutorial?
>>>
>>> The repositories that are mentiones all around the page contain only
>>> source for the wicket-doje-integration etself. not for the examples. And
>>> it would speed up the learning if I could start from a working demo
>>> application (where to put the js-code in html etc.)
>>>
>>> I Have tried som veriants (

scroll pane - panel with scroll bars - jquery

2009-01-08 Thread lizz

Has anyone implemented a panel with scrollbars (like the swing scrollpane)?
Preferably using jquery.
I have a list and want scroll bars to appear in both directions if the
content is wider/taller than the "visible area". I also have a component to
the left of this "scroll pane" that should listen to scroll events and
change when the vertical scroll bar is being scrolled so I cant use the css
overflow attribute. 


I should be quite similar to the dojo example
Orderable List with scroll 
in http://wicketstuff.org/wicketdojo13/
except i want scroll bars in both directions and i would like to use jquery. 

(Cant find the complete source code for this dojo example so I would
appreciate if anyone could tell me where to find it too...)
-- 
View this message in context: 
http://www.nabble.com/scroll-pane---panel-with-scroll-bars---jquery-tp21353712p21353712.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: Wicketstuff/dojo Examples

2009-01-08 Thread Dipu
i think its in there
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-1.1

regards
dipu


On Thu, Jan 8, 2009 at 2:58 PM, lizz  wrote:
>
> I dont find the source code at
> https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-examples
> anymore.
> Where can I find the source for the wicketstuff/dojo examples now?
>
>
> Stefan Lindner wrote:
>>
>> Where can I find the source for the wicketstuff/dojo examples? I do not
>> mean the code snipplets like the ones at
>> http://wicketstuff.org/confluence/display/STUFFWIKI/Simple+Dojo+D%27n%27
>> D+tutorial?
>>
>> The repositories that are mentiones all around the page contain only
>> source for the wicket-doje-integration etself. not for the examples. And
>> it would speed up the learning if I could start from a working demo
>> application (where to put the js-code in html etc.)
>>
>> I Have tried som veriants (

Re: Wicketstuff/dojo Examples

2009-01-08 Thread lizz

I dont find the source code at
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-dojo-examples
anymore.
Where can I find the source for the wicketstuff/dojo examples now?


Stefan Lindner wrote:
> 
> Where can I find the source for the wicketstuff/dojo examples? I do not
> mean the code snipplets like the ones at
> http://wicketstuff.org/confluence/display/STUFFWIKI/Simple+Dojo+D%27n%27
> D+tutorial?
> 
> The repositories that are mentiones all around the page contain only
> source for the wicket-doje-integration etself. not for the examples. And
> it would speed up the learning if I could start from a working demo
> application (where to put the js-code in html etc.)
> 
> I Have tried som veriants (

Re: trouble controlling visibility of dataview

2009-01-08 Thread Peter Thomas
On Sat, Jan 3, 2009 at 8:46 PM, Peter Thomas  wrote:

> Hi,
>
> I am using a DataView and I was trying to override isVisible() and use
> "this.getRowCount()" to decide if the table should be rendered or not.  But
> this results in a stack overflow because DataView#getRowCount() internally
> calls isVisibleInHierarchy().


*bump* - I just found through a Nabble search that this had come up earlier:

http://www.nabble.com/enclosures-and-dataview-td14258879.html#a14258879

I just raised a JIRA issue:
https://issues.apache.org/jira/browse/WICKET-2012


>
>
> The use case is trying to hide a table header row when there are no search
> results.  The implementation of getRowCount() in AbstractPageableView
> (Wicket 1.3.5) starts like this:
>
> if (!isVisibleInHierarchy())
> {
> return 0;
> }
>
> Was wondering - is that part really necessary?  I wanted to use an
> enclosure but that also results in isVisible() calls all over the place.
> The only way I could work around this for now is by using a separate web
> markup container for hiding the table header row.
>
> How can I hide a DataView if the data size is zero?  I could call size() on
> the IDataProvider but I think the DataView has some logic to cache the
> size.  What am I missing?
>
> Thanks,
>
> Peter.
>


Re: FormComponent cookie persistent issue

2009-01-08 Thread Serkan Camurcuoglu

Murat have you tried it with tomcat, maybe it's jetty's bug?



Murat Yücel wrote:

Well i have create a jira issue on this problem. Hopefully someone  from the
wicket team will
have the time to fix this in a near future.
https://issues.apache.org/jira/browse/WICKET-2011

/Murat

2009/1/7 jWeekend 

  

Murat,

I tried (using the Start class) as soon as you sent your quickstart and
witnessed the same result you did.
I have not looked into the reason it behaves as it does or differently with
a non-root context.

Regards - Cemal
http://www.jWeekend.com jWeekend



Murat Yücel-2 wrote:


Hi Serkan

I am using the Start.java located in the test folder to startup the
project.
The context path is removed there.
When I add a context path, then it is working fine. Both cookies is
created
with path /myproject.

But the problem exist if you remove the context path. This is the way i
run
it on my server and i guess that
this should also work for wicket. Can you confirm that you have the same
problem when removing the context
path.

/Murat

2009/1/7 Serkan Camurcuoglu 

  

is your application deployed to the root context (e.g. / ) ? Because


your


working cookie path is / while the cookie path that is not working is
something like /homepage/wicket:interface/:0: . In my setup (I'm
using
the quickstart project that you sent) the path of my cookie is always
/myproject which is the context path of the application. Can you repeat
the
same behavior using your own quickstart project? I suggest you to use
wireshark or live http headers firefox plugin to check the http headers
to
see what's going on..




Murat Yücel wrote:



Hi Serkan

I must have seen wrong before. I am getting the same thing as you have
described. The expire date is one month in the future.
The only difference is in the path variable. If you clear your cookies
and
type something in the input fields when mount is enabled.
Are you then able to see them again when you press the login button?

I have attached some screenshots of the cookie and the webpage I see
with
and without mount.

/Murat

2009/1/7 Serkan Camurcuoglu >


   In my case (when using mounted home page), when setting cookies,
   the expire time is automatically set as one month from current
   date, and when clearing cookies the expire time is it is set as
   01.01.1970.. It's really strange that the expire time is current
   time on your system..




   Murat Yücel wrote:

   Hi Serkan

   I am using firefox 3.1 beta2, but i dont think that this is a
   browser
   related issue, because i am seeing the same behavior in IE7.
   The cookies are created for both FF and IE. The problem is
   that they get a
   expire date set to current time, which means that they
   are not available anymore. If i remove the mount they will get
   a expire date
   in the future and the typed value will stay in the input
   field.

   For example with mount i type admin in the first input field
   and password in
   the second. Press the login link and i see that the
   input fields are reset. If i remove the mount and do the same,
   admin and
   password will stay in the input fields.

   /Murat

   2009/1/6 Serkan Camurcuoglu mailto:serkan.camurcuo...@telenity.com>>


   Hi Murat,
   It seems to work both ways in my setup. I'm using Firefox
   3.0. It
   successfully saves the username and password when I check
   the remember me
   checkbox, and clears them when I uncheck it. Did you check
   the host, path
   and the values of the cookies in your browser?




   Murat Yücel wrote:


   Hi again

   Did anyone had the time to look at the attached project?
   Are you guys seeing the same behaviour?

   /Murat

   2008/12/31 Murat Yücel mailto:kodeperke...@gmail.com>>




   Hi Cemal

   Thanks for the response. I have attached the
  

project.


   If you uncomment this line:
   mountBookmarkablePage("homepage", HomePage.class);

   in WicketApplication.java, then you can see the
   difference in the
   behaviour.

   /Murat

   2008/12/31 jWeekend mailto:jweekend_for...@cabouge.com>>





   Murat,

   It is OK, just delete the target folder and
   zip it up before sending
   your
   quickstart project to this list.

   Regards - Cemal
   http://www.jWeekend.co.uk jWeekend



   Murat Yücel-2 wrote:



   By the way i am using wicket 1.3.5. I dont
   know if you need other
   information?
 

Re: Back button + dataview problem

2009-01-08 Thread Serkan Camurcuoglu
did you check your logs, if you are getting NotSerializableExceptions in 
the background you may get page expired errors with back button..



quizzical wrote:

Hi everyone,

I'm in the process of writing an example ecommerce app to get to know wicket
and am really enjoying the experience.. At the moment I'm working on a page
which allows you to browse through a list of items in a database.

For the list of items I created a panel which uses a DataView with a
SortableDataProvider and some orderByLinks, I also created a panel for
viewing the available categories which controls the data the DataView is
working on.

Everything works fine going forwards, I'm running into problems with the
back button. If I click on any of the links in these panels, then click the
back button, then try and click another link I get a 'page expired' error
page.

Do I need to addStateChange on one of my components? If so which one, I
can't find much info about Change and how it is meant to be used.

If this is a simple problem and someone can answer my question easily then I
will be very happy :) I have had a look through the forums but I couldn't
find anything that helped me, it is possible of course that I was using the
wrong terms. If there is not enough information here then let me know and I
will write a test case and post that.

Cheers very much
Alex
  



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



Re: Twenty Six Wicket Tricks

2009-01-08 Thread Martin Makundi
Here's one good article:
http://talk-on-tech.blogspot.com/2008/12/wicket-neat-url-encoding-strategy-and.html

2009/1/8 Gwyn Evans :
> Not sure if it qualifies as enough of a topic, but would some form of
> overview/comparison/"when to use" syummary of the various URL coding
> strategies be worth considering?
>
> /Gwyn
>
> On Mon, Jan 5, 2009 at 8:37 AM, Jonathan Locke  
> wrote:
>>
>>
>> well, i got bored enough over the break to sink some hours into
>> this and i'm liking what happened pretty well now. any other really
>> ugly problems people want neat solutions to? ;-)
>>
>>
>> Jonathan Locke wrote:
>>>
>>>
>>> yes.  this is a good one, but it might be too big for the book...
>>> although i've been pondering the possibility of something more
>>> general which is more in the neighborhood of "arbitrarily-
>>> driven component factories" (where property editors and
>>> bean editors are specializations).
>>>
>>> for property/bean editors you may want to take a look
>>> at will faler's "wicket-rad" which does this already.
>>> although i don't know if it's as ideal as it could be yet,
>>> i think he'd like some help with it seems open to working
>>> with people.
>>>
>>>   jon
>>>
>>>
>>> walnutmon wrote:

 A component that takes some domain object, and for every property
 dynamically loads an appropriate form element.

 @Test
 {
 private class DomainObject{
 List prop1s;
 Boolean prop2;
 }
 panel = new DynamicPropertyPanel(new DomainObject());
 assertComponent("panel:form:formElement:0", DropDownChoice.class);
 assertComponent("panel:form:formElement:1", Checkbox.class);

 //test customization
 panel = new DynamicPropertyPanel(new DomainObject());
 panel.setProperty("prop1s", RadioGroup.class);
 assertComponent("panel:form:formElement:0", RadioGroup.class);
 assertComponent("panel:form:formElement:1", Checkbox.class);
 }

 My company would purchase several copies of the book if I recommended to
 do so; which I would.

 Jonathan Locke wrote:
>
> Well, over the break here I've started something I swore I would never
> do again (well, two things, if you include the JavaOne talk I'm working
> on). I'm writing a (hopefully relatively short) book. It's called
> "Twenty-Six Wicket Tricks". Each trick in the book (lettered from A-Z)
> demonstrates something that people typically want to do and in the
> process builds a reusable and educational component. I've got 13 tricks
> coded up now and ideas for a handful more, but if there are any requests
> out there, please let me know. I'd also be interested in getting some
> idea how many people would be interested in this book (would provide
> some fuel for me to get it done). It does not cover any of the same
> ground as Wicket in Action (which you should buy if you have not
> already!), BTW. It's more of a companion to that book.
>
> Happy Holidays!
>
> Best,
>
>Jonathan
>
>
>


>>>
>>>
>>
>> --
>> View this message in context: 
>> http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21287125.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
>
>

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



Re: Empty List

2009-01-08 Thread Piotr Jakubowski

I was thinking about, but I have to manually override the isVisible method of
every ListView I create (or create my own class that extends the ListView). 
Maybe ListView should by default have the isVisibility method defined so it
returns true if the list is empty? :) Just a humble suggestions for wicket
enhancement :) 

Martijn Dashorst wrote:
> 
> see wicket:enclosure [1]
> 
> Martijn
> 
> [1] http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html
> 
> On Thu, Jan 8, 2009 at 1:15 PM, Piotr Jakubowski  wrote:
>>
>> Hello,
>> As I recently discovered XHTML specification does not allow empty lists.
>> So
>> the markup like   is invalid. So there appears a problem with
>> ListViews, because when the list passed to the ListView constructor
>> happen
>> to be empty we end up with invalid markup.
>>
>> Of course there is workaround like (let's say that we have the ListView
>> with
>> wicket:id="myList")
>> 
>>
>>
>> 
>> But it is neither very elegant nor convenient. It is not very appealing
>> to
>> me to seek for every list in the project and add this line.
>>
>> Do you have any other suggestion of doing this?
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Empty-List-tp21350751p21350751.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
>>
>>
> 
> 
> 
> -- 
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.3.4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> 
> -
> 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/Empty-List-tp21350751p21351128.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: Empty List

2009-01-08 Thread Martijn Dashorst
see wicket:enclosure [1]

Martijn

[1] http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html

On Thu, Jan 8, 2009 at 1:15 PM, Piotr Jakubowski  wrote:
>
> Hello,
> As I recently discovered XHTML specification does not allow empty lists. So
> the markup like   is invalid. So there appears a problem with
> ListViews, because when the list passed to the ListView constructor happen
> to be empty we end up with invalid markup.
>
> Of course there is workaround like (let's say that we have the ListView with
> wicket:id="myList")
> 
>
>
> 
> But it is neither very elegant nor convenient. It is not very appealing to
> me to seek for every list in the project and add this line.
>
> Do you have any other suggestion of doing this?
>
>
> --
> View this message in context: 
> http://www.nabble.com/Empty-List-tp21350751p21350751.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
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

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



Empty List

2009-01-08 Thread Piotr Jakubowski

Hello,
As I recently discovered XHTML specification does not allow empty lists. So
the markup like   is invalid. So there appears a problem with
ListViews, because when the list passed to the ListView constructor happen
to be empty we end up with invalid markup. 

Of course there is workaround like (let's say that we have the ListView with
wicket:id="myList")




But it is neither very elegant nor convenient. It is not very appealing to
me to seek for every list in the project and add this line. 

Do you have any other suggestion of doing this?


-- 
View this message in context: 
http://www.nabble.com/Empty-List-tp21350751p21350751.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



Back button + dataview problem

2009-01-08 Thread quizzical

Hi everyone,

I'm in the process of writing an example ecommerce app to get to know wicket
and am really enjoying the experience.. At the moment I'm working on a page
which allows you to browse through a list of items in a database.

For the list of items I created a panel which uses a DataView with a
SortableDataProvider and some orderByLinks, I also created a panel for
viewing the available categories which controls the data the DataView is
working on.

Everything works fine going forwards, I'm running into problems with the
back button. If I click on any of the links in these panels, then click the
back button, then try and click another link I get a 'page expired' error
page.

Do I need to addStateChange on one of my components? If so which one, I
can't find much info about Change and how it is meant to be used.

If this is a simple problem and someone can answer my question easily then I
will be very happy :) I have had a look through the forums but I couldn't
find anything that helped me, it is possible of course that I was using the
wrong terms. If there is not enough information here then let me know and I
will write a test case and post that.

Cheers very much
Alex
-- 
View this message in context: 
http://www.nabble.com/Back-button-%2B-dataview-problem-tp21348923p21348923.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: Twenty Six Wicket Tricks

2009-01-08 Thread Gwyn Evans
Not sure if it qualifies as enough of a topic, but would some form of
overview/comparison/"when to use" syummary of the various URL coding
strategies be worth considering?

/Gwyn

On Mon, Jan 5, 2009 at 8:37 AM, Jonathan Locke  wrote:
>
>
> well, i got bored enough over the break to sink some hours into
> this and i'm liking what happened pretty well now. any other really
> ugly problems people want neat solutions to? ;-)
>
>
> Jonathan Locke wrote:
>>
>>
>> yes.  this is a good one, but it might be too big for the book...
>> although i've been pondering the possibility of something more
>> general which is more in the neighborhood of "arbitrarily-
>> driven component factories" (where property editors and
>> bean editors are specializations).
>>
>> for property/bean editors you may want to take a look
>> at will faler's "wicket-rad" which does this already.
>> although i don't know if it's as ideal as it could be yet,
>> i think he'd like some help with it seems open to working
>> with people.
>>
>>   jon
>>
>>
>> walnutmon wrote:
>>>
>>> A component that takes some domain object, and for every property
>>> dynamically loads an appropriate form element.
>>>
>>> @Test
>>> {
>>> private class DomainObject{
>>> List prop1s;
>>> Boolean prop2;
>>> }
>>> panel = new DynamicPropertyPanel(new DomainObject());
>>> assertComponent("panel:form:formElement:0", DropDownChoice.class);
>>> assertComponent("panel:form:formElement:1", Checkbox.class);
>>>
>>> //test customization
>>> panel = new DynamicPropertyPanel(new DomainObject());
>>> panel.setProperty("prop1s", RadioGroup.class);
>>> assertComponent("panel:form:formElement:0", RadioGroup.class);
>>> assertComponent("panel:form:formElement:1", Checkbox.class);
>>> }
>>>
>>> My company would purchase several copies of the book if I recommended to
>>> do so; which I would.
>>>
>>> Jonathan Locke wrote:

 Well, over the break here I've started something I swore I would never
 do again (well, two things, if you include the JavaOne talk I'm working
 on). I'm writing a (hopefully relatively short) book. It's called
 "Twenty-Six Wicket Tricks". Each trick in the book (lettered from A-Z)
 demonstrates something that people typically want to do and in the
 process builds a reusable and educational component. I've got 13 tricks
 coded up now and ideas for a handful more, but if there are any requests
 out there, please let me know. I'd also be interested in getting some
 idea how many people would be interested in this book (would provide
 some fuel for me to get it done). It does not cover any of the same
 ground as Wicket in Action (which you should buy if you have not
 already!), BTW. It's more of a companion to that book.

 Happy Holidays!

 Best,

Jonathan



>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Twenty-Six-Wicket-Tricks-tp21214357p21287125.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



Wicket-Jasper report

2009-01-08 Thread freak182

Hello,

I made a small utility based on wicket-contrib-jasper. The feature of this
tools is that the jasper report is now paging using PageableListView or
QueryDataProvider. And display in embeded pdf format.

Anyone is free to enhance this and distribute.

Thanks.
http://www.nabble.com/file/p21348858/wicket-jasper.zip wicket-jasper.zip 
-- 
View this message in context: 
http://www.nabble.com/Wicket-Jasper-report-tp21348858p21348858.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: FormComponent cookie persistent issue

2009-01-08 Thread Murat Yücel
Well i have create a jira issue on this problem. Hopefully someone  from the
wicket team will
have the time to fix this in a near future.
https://issues.apache.org/jira/browse/WICKET-2011

/Murat

2009/1/7 jWeekend 

>
> Murat,
>
> I tried (using the Start class) as soon as you sent your quickstart and
> witnessed the same result you did.
> I have not looked into the reason it behaves as it does or differently with
> a non-root context.
>
> Regards - Cemal
> http://www.jWeekend.com jWeekend
>
>
>
> Murat Yücel-2 wrote:
> >
> > Hi Serkan
> >
> > I am using the Start.java located in the test folder to startup the
> > project.
> > The context path is removed there.
> > When I add a context path, then it is working fine. Both cookies is
> > created
> > with path /myproject.
> >
> > But the problem exist if you remove the context path. This is the way i
> > run
> > it on my server and i guess that
> > this should also work for wicket. Can you confirm that you have the same
> > problem when removing the context
> > path.
> >
> > /Murat
> >
> > 2009/1/7 Serkan Camurcuoglu 
> >
> >> is your application deployed to the root context (e.g. / ) ? Because
> your
> >> working cookie path is / while the cookie path that is not working is
> >> something like /homepage/wicket:interface/:0: . In my setup (I'm
> >> using
> >> the quickstart project that you sent) the path of my cookie is always
> >> /myproject which is the context path of the application. Can you repeat
> >> the
> >> same behavior using your own quickstart project? I suggest you to use
> >> wireshark or live http headers firefox plugin to check the http headers
> >> to
> >> see what's going on..
> >>
> >>
> >>
> >>
> >> Murat Yücel wrote:
> >>
> >>> Hi Serkan
> >>>
> >>> I must have seen wrong before. I am getting the same thing as you have
> >>> described. The expire date is one month in the future.
> >>> The only difference is in the path variable. If you clear your cookies
> >>> and
> >>> type something in the input fields when mount is enabled.
> >>> Are you then able to see them again when you press the login button?
> >>>
> >>> I have attached some screenshots of the cookie and the webpage I see
> >>> with
> >>> and without mount.
> >>>
> >>> /Murat
> >>>
> >>> 2009/1/7 Serkan Camurcuoglu  >>> serkan.camurcuo...@telenity.com>>
> >>>
> >>>
> >>>In my case (when using mounted home page), when setting cookies,
> >>>the expire time is automatically set as one month from current
> >>>date, and when clearing cookies the expire time is it is set as
> >>>01.01.1970.. It's really strange that the expire time is current
> >>>time on your system..
> >>>
> >>>
> >>>
> >>>
> >>>Murat Yücel wrote:
> >>>
> >>>Hi Serkan
> >>>
> >>>I am using firefox 3.1 beta2, but i dont think that this is a
> >>>browser
> >>>related issue, because i am seeing the same behavior in IE7.
> >>>The cookies are created for both FF and IE. The problem is
> >>>that they get a
> >>>expire date set to current time, which means that they
> >>>are not available anymore. If i remove the mount they will get
> >>>a expire date
> >>>in the future and the typed value will stay in the input
> >>>field.
> >>>
> >>>For example with mount i type admin in the first input field
> >>>and password in
> >>>the second. Press the login link and i see that the
> >>>input fields are reset. If i remove the mount and do the same,
> >>>admin and
> >>>password will stay in the input fields.
> >>>
> >>>/Murat
> >>>
> >>>2009/1/6 Serkan Camurcuoglu  >>>>
> >>>
> >>>
> >>>Hi Murat,
> >>>It seems to work both ways in my setup. I'm using Firefox
> >>>3.0. It
> >>>successfully saves the username and password when I check
> >>>the remember me
> >>>checkbox, and clears them when I uncheck it. Did you check
> >>>the host, path
> >>>and the values of the cookies in your browser?
> >>>
> >>>
> >>>
> >>>
> >>>Murat Yücel wrote:
> >>>
> >>>
> >>>Hi again
> >>>
> >>>Did anyone had the time to look at the attached project?
> >>>Are you guys seeing the same behaviour?
> >>>
> >>>/Murat
> >>>
> >>>2008/12/31 Murat Yücel  >>>>
> >>>
> >>>
> >>>
> >>>
> >>>Hi Cemal
> >>>
> >>>Thanks for the response. I have attached the
> project.
> >>>
> >>>If you uncomment this line:
> >>>mountBookmarkablePage("homepage", HomePage.class);
> >>>
> >>>in WicketApplication.java, then you can see the
> >>>difference in the
> >>>behaviour.
> >>>
> >>> 

Re: From which Maven repository can I find the wicket-contrib-jasperreports JAR file(s)?

2009-01-08 Thread Martin Grigorov
Browse in http://wicketstuff.org/maven/repository

El mié, 07-01-2009 a las 21:56 -0800, noon escribió:
> Is there a Maven2 repository where I can download the
> wicket-contrib-jasperreports JAR files?
> 
> http://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-contrib-jasperreports


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



Re: URL fragment has unmatched key/value pairs

2009-01-08 Thread Uwe Schäfer

francisco treacy schrieb:

dear francisco


(i even had Fragment: admin, Fragment: bank-account , and things of the sort)


i´ve seen this too. for instance on hybrid encoding, if you mount a page 
to /foo, /foo/bar/ will bring this error, while /foo/bar/baz wont, 
because it means bar=baz in parameters.


i think you cannot do anything against someone playing with urls from 
outside.
unfortunately, i also see some instances of this with urls, i don´t 
think were generated by guessing:


URL fragment has unmatched key/value pair: 
resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event


can anyone confirm that?

cu uwe

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