Re: gmap2 and helper classes / methods?

2008-11-13 Thread Martin Funk
2008/11/12 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]

 Hi

 I seem to be lacking some helper methods for finding out if a glatlng are
 in a gbounds etc.. Are there someone out there who has implemented anything
 or do I need to roll my own, and if the latter I guess I should provide a
 patch?

go ahead and commit something,
I'll be happy to unclutter.

mf



 --
 -Wicket for love

 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]




Wicket with GWT

2008-11-13 Thread nitingupta183

Hi All,

I am working on a web application which makes use of GWT. I have not used
GWT RPC majorly. We have made use of the JSON feeds and have used GWT just
as a front end technology with almost no say in how we are transporting data
between browser and the server.

Now we are growing the application and more and more modules have to be
added. There are now clear requirements which has forced us to think of
using another web development framework. Got to know about Wicket and I am
really impressed by seeing some presentations.

My Question:

Can I make use of Wicket and GWt together?

The need to do is : Use of GWT ( GWT-Ext) widgets  use of Wicket to manage
flow, sessions etc.

Transport: So far we have relied on the JSON feeds. I think it will continue
in the future as well. Newer data transports can be developed using forms in
Wicket. I.e. a combination of these two is going to be there for a
foreseeable future.

Suggestions/Links/References are heartedly welcome.

Regards,
Nitin
-- 
View this message in context: 
http://www.nabble.com/Wicket-with-GWT-tp20476682p20476682.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: What is best practice for overriding settings in ModalWindow modal.css file?

2008-11-13 Thread Nino Saturnino Martinez Vazquez Wael
It's not something wicket related, you can override all css classes by 
providing a more specific one...


Like if you have this:

.wicketmodalwindowstyle {
width:5em;
}

then you can override it by doing so in your css:

.myhappystyle .wicketmodalwindowstyle{
width:4em;
}

So above will override whenever it's within the class.. Or at least 
something like above...





shetc wrote:

Hi Nino,

Thanks for responding! I'm still going through the newbie stage so I'm not
quite sure what
your are suggesting. Further hints would be most appreciated.

Steve

  


--
-Wicket for love

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: on click on a link in a listview works with td but but not with div or span

2008-11-13 Thread Michael Sparer

I don't quite get what you're trying to achieve. A table inside a table cell?
That shouldn't be a problem if you add/replace your components inside the
table cell and not the row. But what I see in your markup is that you're
nesting a div inside a tr - and that's not allowed. Maybe your browser gets
confused with that one ...



miro wrote:
 
 my component hirearchy 
batchInfoContainer
 batchInfos  (listview)
batchInfo(link)
   batchStatusImg 
   name
   date
 html
 code
   div 
 style=width:100%;height:556;overflow:auto;
 wicket:id=batchInfoContainer
   table  
 border=1 width=100% wicket:id=batchInfos
   
 tr wicket:id=batchInfo
   
 td width=15
   
  
   
 /td
   
 td  width=50
   
 label 
 wicket:id=name/label
   
 /td
   
 td width=35
   
 label 
 wicket:id=date/label
   
 /td
   
 /tr
   /table
   /div
   /code
  
 the code above works for onclick but the problem is i open a new table
 inside   batchInfos  so i am  creating a new table for each listitem 
 which  creates tables  with different sizes for each item, to avoid this 
 i tried with div and span for batchinfos but onclick is not working , any
 ideas how to resolve this i tried in both ie and firefox 
 
 here is something what i want but this does not work
 
   div 
 style=width:100%;height:556;overflow:auto;
 wicket:id=batchInfoContainer
   table 
   
 tr wicket:id=batchInfos
   
 div wicket:id=batchInfo
   
 td width=15
   
  
   
 /td
   
 td  width=50
   
 label 
 wicket:id=name/label
   
 /td
   
 td width=35
   
 label 
 wicket:id=date/label
   
 /td
   
 /div
   
 /tr
   /table
   

RE: OFF TOPIC - all-in-one wysiwyg website package?

2008-11-13 Thread Stefan Lindner
Take a look at Joomla 1.5 (www.joomla.org). If you have a linux box with 
Apache/php/MySql the Joomla installation is just to unzip the distribution and 
run a litte menu driven install program. Administration is easy, plugins for 
nearly every purpose are available. 3 designs are part of the base package, 
more skins and designs can be installed by the administrator.

Good luck!

Stefan

-Ursprüngliche Nachricht-
Von: Jeremy Thomerson [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 13. November 2008 03:49
An: users@wicket.apache.org
Betreff: OFF TOPIC - all-in-one wysiwyg website package?

This is off-topic, but I figured there couldn't be a better pool of people
to ask.  I have several friends and family members that want to set up small
websites for their businesses or hobbies.  Of course, then they'll want to
customize them and make them look like this or like that.  And add a page,
and edit a page, etc.  You've probably been in the same spot - you're the
computer guy in the family - obviously I can't build them something custom
(we're talking free).  And I don't want to maintain it for them forever,
etc...

So - do you know of any good website packages out there?  I'm not even sure
what the right name would be.  But it would need to have these requirements:

   - Total non-technical control over adding and editing pages / content
   (wysiwyg)
   - Control looks by using themes that can be downloaded or maybe editing
   CSS
   - Possibly plugins for things like RSS feeds / contact pages / and/or
   e-commerce stores
   - Can be any language - I have a server to put it on, so I'm not adverse
   to PHP / Python / MySQL / etc...
   - Preferably I unzip a copy of it to a directory for them, give them
   access to the admin (maybe setup a MySQL DB for them), and I'm DONE!

I've even thought of trying to build this out of BRIX, but I'm not sure
that's the right answer, plus then there wouldn't be any plugins already
available.

Any tips?

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

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



Re: Wicket with GWT

2008-11-13 Thread Johan Compagner
Personally i dont see an integration at all between GWT an Wicket.
Both are ui techs that do things completely different.

Give us an example how  you see flow (setResponsePage()) in wicket and
what GWT then should do

On 11/13/08, nitingupta183 [EMAIL PROTECTED] wrote:

 Hi All,

 I am working on a web application which makes use of GWT. I have not used
 GWT RPC majorly. We have made use of the JSON feeds and have used GWT just
 as a front end technology with almost no say in how we are transporting data
 between browser and the server.

 Now we are growing the application and more and more modules have to be
 added. There are now clear requirements which has forced us to think of
 using another web development framework. Got to know about Wicket and I am
 really impressed by seeing some presentations.

 My Question:

 Can I make use of Wicket and GWt together?

 The need to do is : Use of GWT ( GWT-Ext) widgets  use of Wicket to manage
 flow, sessions etc.

 Transport: So far we have relied on the JSON feeds. I think it will continue
 in the future as well. Newer data transports can be developed using forms in
 Wicket. I.e. a combination of these two is going to be there for a
 foreseeable future.

 Suggestions/Links/References are heartedly welcome.

 Regards,
 Nitin
 --
 View this message in context:
 http://www.nabble.com/Wicket-with-GWT-tp20476682p20476682.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: page refresh cleans my page

2008-11-13 Thread jWeekend

Miro,

Take a look at HybridUrlCodingStrategy.

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



miro wrote:
 
 I have page with search and several links which sort data etc for all
 these actions i am using ajax  and any of this action will change the page
 data  now if i ckick on  browsers refersh button all changes are lost how
 to handle refresh ?
 

-- 
View this message in context: 
http://www.nabble.com/page-refresh-cleans-my-page-tp20474951p20477243.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: on click on a link in a listview works with td but but not with div or span

2008-11-13 Thread miro

the problem with this is
div
style=width:100%;height:556;overflow:auto; wicket:id=batchInfoContainer
table 
border=1 width=100% wicket:id=batchInfos

   
tr wicket:id=batchInfo

   
td width=15

   

   
/td

   
td  width=50

   
label wicket:id=name/label

   
/td

   
td width=35

   
label wicket:id=date/label

   
/td

   
/tr
/table
/div 


batchInfos  is a listview so If i my listitem are 4 all the html  for
batchInfos gets repeated so creating a new table for each list item which  
means different tables sizes for each listitem and i want to avoid that and
one table  and tr for batchinfos which menas each listitem will be in a new
row and all listitems are in one table , how  to have this ?

Michael Sparer wrote:
 
 
 I don't quite get what you're trying to achieve. A table inside a table
 cell? That shouldn't be a problem if you add/replace your components
 inside the table cell and not the row. But what I see in your markup is
 that you're nesting a div inside a tr - and that's not allowed. Maybe your
 browser gets confused with that one ...
 
 
 
 miro wrote:
 
 my component hirearchy 
batchInfoContainer
 batchInfos  (listview)
batchInfo(link)
   batchStatusImg 
   name
   date
 html
 code
  div 
 style=width:100%;height:556;overflow:auto;
 wicket:id=batchInfoContainer
  table  
 border=1 width=100% wicket:id=batchInfos
  
 tr wicket:id=batchInfo
  
 td width=15
  
  
  
 /td
  
 td  width=50
  
 label 
 wicket:id=name/label
  
 /td
  
 td width=35
  
 label 
 wicket:id=date/label
  
 /td
  
 /tr
  /table
  /div
   /code
  
 the code above works for onclick but the problem is i open a new table
 inside   batchInfos  so i am  creating a new table for each listitem 
 which  creates tables  with different sizes for each item, to avoid this 
 i tried with div and span for batchinfos but onclick is not working , any
 ideas how to resolve this i tried in both ie and firefox 
 
 here is something what i want but this 

Re: Pretty url for tabs

2008-11-13 Thread pixologe

Hi,

I had exactly the same use case and solved it as follows - works like charm
(unfortunately I cannot share the code):

extend StatelessTab (each instance to be constructed with its pageparameter
value

extend StatelessTabbedPanel,
constructor with the pageparameter key
override newLink to return a bookmarkablepagelink for each tab
override onbeforerender to set the selected tab dependent on the page's
pageparameter

perhaps you'd also want to adopt pageparameters of the previous request when
switching tabs when generating the links.

hope this helps, cheers :)


rmoskal wrote:
 
 I'm familiar with the a lot of the strategies that make for nicer urls in
 Wicket, but am at a loss for how to make the urls for a tabpanel
 friendlier.
 
 Instead of /Home:1:1, /Home:2:1, etc.
 
 I'd like to have  /Home:Account:1, /Home:Alerts:1, etc.
 
 It would be nice to lose the last bit on the right, but I could live with
 it if it messes with wickets state maintaining ability.
 
 Has anyone had a client pester them for this?
 
 Thanks and regards,
 
 Robert Moskal
 Brooklyn, USA
 

-- 
View this message in context: 
http://www.nabble.com/Pretty-url-for-tabs-tp20451052p20477380.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: Wicket with GWT

2008-11-13 Thread nitingupta183

By integration I meant that if I can make use of the server side features of
the Wicket  integrate the widgets of GWT just like someone would integrate
YUI with Wicket pages.

Both technologies are great. Just thinking of a possible marriage for a
faster, better app. Any issues seen in this?

By the way I know wicket only from the surface as of now.

Regards,
Nitin


Johan Compagner wrote:
 
 Personally i dont see an integration at all between GWT an Wicket.
 Both are ui techs that do things completely different.
 
 Give us an example how  you see flow (setResponsePage()) in wicket and
 what GWT then should do
 
 On 11/13/08, nitingupta183 [EMAIL PROTECTED] wrote:

 Hi All,

 I am working on a web application which makes use of GWT. I have not used
 GWT RPC majorly. We have made use of the JSON feeds and have used GWT
 just
 as a front end technology with almost no say in how we are transporting
 data
 between browser and the server.

 Now we are growing the application and more and more modules have to be
 added. There are now clear requirements which has forced us to think of
 using another web development framework. Got to know about Wicket and I
 am
 really impressed by seeing some presentations.

 My Question:

 Can I make use of Wicket and GWt together?

 The need to do is : Use of GWT ( GWT-Ext) widgets  use of Wicket to
 manage
 flow, sessions etc.

 Transport: So far we have relied on the JSON feeds. I think it will
 continue
 in the future as well. Newer data transports can be developed using forms
 in
 Wicket. I.e. a combination of these two is going to be there for a
 foreseeable future.

 Suggestions/Links/References are heartedly welcome.

 Regards,
 Nitin
 --
 View this message in context:
 http://www.nabble.com/Wicket-with-GWT-tp20476682p20476682.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/Wicket-with-GWT-tp20476682p20477386.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: on click on a link in a listview works with td but but not with div or span

2008-11-13 Thread Michael Sparer

Ah, alright. batchInfos is the listview, so you get a new table for each
listitem and that's not what you want. Either apply batchInfos to the tr
or use wicket:container i.e.
[table]
  [wicket:container wicket:id=batchInfos]
[tr wicket:id=batchInfo]




miro wrote:
 
 the problem with this is
 div
 style=width:100%;height:556;overflow:auto;
 wicket:id=batchInfoContainer
 table 
 border=1 width=100% wicket:id=batchInfos
   
  
 tr wicket:id=batchInfo
   
  
 td width=15
   
  
   
  
 /td
   
  
 td  width=50
   
  
 label wicket:id=name/label
   
  
 /td
   
  
 td width=35
   
  
 label wicket:id=date/label
   
  
 /td
   
  
 /tr
 /table
 /div 
 
 
 batchInfos  is a listview so If i my listitem are 4 all the html  for
 batchInfos gets repeated so creating a new table for each list item which  
 means different tables sizes for each listitem and i want to avoid that
 and one table  and tr for batchinfos which menas each listitem will be in
 a new row and all listitems are in one table , how  to have this ?
 
 Michael Sparer wrote:
 
 
 I don't quite get what you're trying to achieve. A table inside a table
 cell? That shouldn't be a problem if you add/replace your components
 inside the table cell and not the row. But what I see in your markup is
 that you're nesting a div inside a tr - and that's not allowed. Maybe
 your browser gets confused with that one ...
 
 
 
 miro wrote:
 
 my component hirearchy 
batchInfoContainer
 batchInfos  (listview)
batchInfo(link)
   batchStatusImg 
   name
   date
 html
 code
 div 
 style=width:100%;height:556;overflow:auto;
 wicket:id=batchInfoContainer
 table  
 border=1 width=100% wicket:id=batchInfos
 
 tr wicket:id=batchInfo
 
 td width=15
 
  
 
 /td
 
 td  width=50
 
 label 
 wicket:id=name/label
 
 /td
 
 td width=35
 
 label 
 wicket:id=date/label
 
 /td
 
 /tr
 /table
 /div
   /code
  
 the code above works for onclick but the problem is i open a new table
 inside   

Re: Pretty url for tabs

2008-11-13 Thread pixologe

Well, when I think of it the word exactly is not right - of course, there's
no page versioning and no colons here, since bookmarkablepagelinks are
used... this thing works the stateless way when switching tabs. But this way
you can have nice urls like [...]/yourPage/yourTabname/


pixologe wrote:
 
 I had exactly the same use case 
 



-- 
View this message in context: 
http://www.nabble.com/Pretty-url-for-tabs-tp20451052p20477547.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]



Ajax Response breaks down if CheckGroupSelector is added to AjaxFallbackDefaultDataTable

2008-11-13 Thread Esko Suomi

.which is not desired. I have a test case which is something like this:


   tester.clickLink(form:group:table:rows:1:cells:8:cell:delete, true);
   tester.assertComponentOnAjaxResponse(form:group:table);


group is CheckGroup, table is AjaxFallbackDefaultDataTable and delete is 
AjaxFallbackLink. The code for delete link which is in its own column 
looks like this:



   columns.add(new AbstractColumnMyObject(new Model(Edit)) {
  
   public void populateItem(ItemICellPopulatorMyObject item, 
String id, IModelMyObject model) {

   Fragment f = new Fragment(id, editlink, getPage());
  
   LinkMyObject delete = new 
AjaxFallbackLinkMyObject(delete, model) {

   @Override
   public void onClick(AjaxRequestTarget art) {
   getAdPersister().delete(getModelObject());
   if (art != null) art.addComponent(table);
   }
   };
   delete.add(new Label(label, delete));
   delete.add(new SimpleAttributeModifier(onclick, return 
confirm('are you sure?');));

   f.add(delete);
   item.add(f);
   }
  
   });



and its fragment's markup looks like this:


   wicket:fragment wicket:id=editlink
   a wicket:id=linkwicket:component 
wicket:id=label/wicket:component/a
   a wicket:id=deletewicket:component 
wicket:id=label/wicket:component/a

   /wicket:fragment


The snippets above works if CheckGroupSelector isn't present. What I 
wanted to do was to add a checkbox to each row as new column and a 
select all checkbox to the new column's header so first I added this:



   columns.add(new AbstractColumnMyObject(new Model(Controls)) {
   public void populateItem(ItemICellPopulatorMyObject item,
   String id, IModelMyObject model) {
   Fragment f = new Fragment(id, checkboxfragment, getPage());
   f.add(new Check(check, new Model(false)));
   item.add(f);
   }
   });


Markup for the fragment is


   wicket:fragment wicket:id=checkboxfragment
   input type=checkbox wicket:id=check /
   /wicket:fragment


I also added the components to hierarchy like so:


   CheckGroup myGroup = new CheckGroup(group, new ArrayList());
   form = new Form(form);
   table = newTable(); // this method creates the entire table
   myGroup.add(table);
   form.add(myGroup);


With that everything still works so I added the header override like so:


   columns.add(new AbstractColumnMyObject(new Model(Controls)) {
  
   @Override

   public Component? getHeader(String componentId) {
   Fragment f = new Fragment(componentId, checkboxfragment, 
getPage());

   f.add(new CheckGroupSelector(check));
   return f;
   }

   public void populateItem(ItemICellPopulatorMyObject item,
   String id, IModelMyObject model) {
   Fragment f = new Fragment(id, checkboxfragment, getPage());
   f.add(new Check(check, new Model(false)));
   item.add(f);
   }
   });


and now that I run the test case it now gives me the following exception 
on the line tester.assertComponentOnAjaxResponse(form:group:table);



   junit.framework.AssertionFailedError: Component wasn't found in the 
AJAX response



Any ideas how I can get this to work?

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



Re: CSS navigation menu autolink

2008-11-13 Thread Pierre Goiffon

No answers...

The question is how to make automatic linking have an effect on the A 
tag and its container LI tag, knowing that both of them are part of a 
custom wicket component.


Anyone ?


[EMAIL PROTECTED] wrote:

Hello all,

I'm really new in the object world in general and using Wicket 
particularly, so please excuse if I'm missing something... I've 
googled around but maybe I didn't use the good keywords.



So here's my question !

I'm building a navigation menu for my web application. There are 3 
different levels, the higher one is linking to different Wicket pages. 
My top level menu is html coded like this :


ul
liMenu Item 1/li
li class=currentMenu Item 2/li
liMenu Item 3/li
/ul

Notice the class=current on the selected page.

I've already created the following code (see below), but was wondering 
if there are any means to use the Wicket autolink feature ? It would 
be far more simplier... The difficulty I see is to modify the li tag 
on the selected link ? Thanks for advices !




// LayoutAuthenticated.html
...
ul wicket:id=menu1a
li wicket:id=menu1aItemaLibellé menu1/a/li
/ul
...



// LayoutAuthenticated.java

protected MenuItem menu1aOpt1;
protected MenuItem menu1aOpt2;
protected MenuItem menu1aOpt3;

public LayoutAuthenticated() {
...
ListMenuItem menu1aList = new ArrayListMenuItem();
menu1aList.add(menu1aOpt1 = new MenuItem(menu1aItem, true, 
menu1a.Opt1, Opt1.class));
menu1aList.add(menu1aOpt2 = new MenuItem(menu1aItem, true, 
menu1a.Opt2, Opt2.class));
menu1aList.add(menu1aOpt3 = new MenuItem(menu1aItem, true, 
menu1a.Opt3, Opt3.class));

add(new ListViewMenuItem(menu1a, menu1aList) {
@Override
protected void populateItem(ListItemMenuItem item) {
item.add(item.getModelObject());
}
});
...
}



// MenuItem.html

wicket:panel
li wicket:id=menuItema wicket:id=linkspan wicket:id=label 
//a/li

/wicket:panel



// MenuItem.java

private String keyLabel;
private Class lienClass;
private WebMarkupContainer menuItem;
private BookmarkablePageLinkWithoutDisabledMarkup link;

public MenuItem(String wicketId, boolean isActive, String 
keyLabel, Class lienClass) {

super(wicketId);

setLienClass(lienClass);
setKeyLabel(keyLabel);

setRenderBodyOnly(true);
add(menuItem = new WebMarkupContainer(menuItem));
menuItem.add(link = new 
BookmarkablePageLinkWithoutDisabledMarkup(link, lienClass));

Label label;
link.add(label = new Label(label, new 
ResourceModel(keyLabel)));

label.setRenderBodyOnly(true);
}

public void setLienClass(Class lienClass) {
this.lienClass = lienClass;
}

public void setKeyLabel(String keyLabel) {
this.keyLabel = keyLabel;
}

public void setActive() {
menuItem.add(new SimpleAttributeModifier(class,));
link.setEnabled(true);
}

public void setInActive() {
menuItem.add(new SimpleAttributeModifier(class,current));
link.setEnabled(false);
}



// BookmarkablePageLinkWithoutDisabledMarkup.java
// (just to keep my a tag on selected links)

public C extends Page 
BookmarkablePageLinkWithoutDisabledMarkup(String id,

ClassC pageClass) {
super(id, pageClass);
}

@Override
protected void disableLink(ComponentTag tag) {
tag.remove(href);
}



// Opt1.java

public class Opt1 extends LayoutAuthenticated {
public Opt1() {
menu1aOpt1.setInActive();
}
}



// Opt2.java

public class Opt2 extends LayoutAuthenticated {
public Opt2() {
menu1aOpt2.setInActive();
}
}



// Opt3.java

public class Opt3 extends LayoutAuthenticated {
public Opt3() {
menu1aOpt3.setInActive();
}
}



// Wicket application init()
// (don't need the default em tags around the selected link label)

...
getMarkupSettings().setDefaultBeforeDisabledLink();
getMarkupSettings().setDefaultAfterDisabledLink();
...


-
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: Wicket with GWT

2008-11-13 Thread jWeekend

Nitin, 

I have spoken to several GWT experts about this as the idea does at first
seem very attractive. Although it is technically feasible (with some
significant effort to make a _decent_ integration of the two frameworks), we
have never managed to come up with a compelling use-case that would make it
worthwhile. Can you give a concrete example of an application/use-case where
we would benefit from this.

Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk 
OO, Wicket, JPA, Java, Swing, Spring training, consulting and devolpment



nitingupta183 wrote:
 
 By integration I meant that if I can make use of the server side features
 of the Wicket  integrate the widgets of GWT just like someone would
 integrate YUI with Wicket pages.
 
 Both technologies are great. Just thinking of a possible marriage for a
 faster, better app. Any issues seen in this?
 
 By the way I know wicket only from the surface as of now.
 
 Regards,
 Nitin
 
 
 Johan Compagner wrote:
 
 Personally i dont see an integration at all between GWT an Wicket.
 Both are ui techs that do things completely different.
 
 Give us an example how  you see flow (setResponsePage()) in wicket and
 what GWT then should do
 
 On 11/13/08, nitingupta183 [EMAIL PROTECTED] wrote:

 Hi All,

 I am working on a web application which makes use of GWT. I have not
 used
 GWT RPC majorly. We have made use of the JSON feeds and have used GWT
 just
 as a front end technology with almost no say in how we are transporting
 data
 between browser and the server.

 Now we are growing the application and more and more modules have to be
 added. There are now clear requirements which has forced us to think of
 using another web development framework. Got to know about Wicket and I
 am
 really impressed by seeing some presentations.

 My Question:

 Can I make use of Wicket and GWt together?

 The need to do is : Use of GWT ( GWT-Ext) widgets  use of Wicket to
 manage
 flow, sessions etc.

 Transport: So far we have relied on the JSON feeds. I think it will
 continue
 in the future as well. Newer data transports can be developed using
 forms in
 Wicket. I.e. a combination of these two is going to be there for a
 foreseeable future.

 Suggestions/Links/References are heartedly welcome.

 Regards,
 Nitin
 --
 View this message in context:
 http://www.nabble.com/Wicket-with-GWT-tp20476682p20476682.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/Wicket-with-GWT-tp20476682p20478665.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: Meet the Wicket community: Bruno Borges and Jeremy Thomerson

2008-11-13 Thread Michael Sparer

following the WIA blog should be a prerequisite to get permission to post on
this list anyway ;-)


Martijn Dashorst wrote:
 
 While spending a whopping week in the Big Easy (New Orleans) eating
 gumbo, burgers and fried seafood, and attending ApacheCon US I was in
 the fortunate circumstances to meet with a lot of great folks. Amongst
 these folks were long time Wicket supporters Bruno Borges and Jeremy
 Thomerson. I already had sent interviews to these guys (and Bruno was
 very quick to answer) so all we needed to do was socialize and enjoy
 the beer.
 
 You can get to know these guys a bit better too: their interviews are
 available online in my continuing series of interviews with the Wicket
 community:
 
 http://wicketinaction.com/2008/11/meet-the-wicket-community-jeremy-thomerson/
 http://wicketinaction.com/2008/10/meet-the-wicket-community-bruno-borges/
 
 Enjoy the interviews and don't hesitate to follow up with questions—I
 know both are reading the blog too :)
 
 Martijn
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


-
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: 
http://www.nabble.com/Meet-the-Wicket-community%3A-Bruno-Borges-and-Jeremy-Thomerson-tp20469125p20480072.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]



Wicket MOdalWindow with changes

2008-11-13 Thread Edi

hello,

in my wicket page, i have one 

combo and button(AjaxLink).

when i click the button, i am calling the modalwindow (popup). and in that
page, i am getting values and storing into database. after closing the
modalwindow (popup), i want to update the combo values, i.e., already saved
values in popup, will affect the combo, when i close the popup.

Please advise.
thanks and regards,
Edi 


-- 
View this message in context: 
http://www.nabble.com/Wicket-MOdalWindow-with-changes-tp20480547p20480547.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: Progress Bar

2008-11-13 Thread Francisco Diaz Trepat - gmail
your voice in the video?

On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 You could also just do the js with an texttemplate, that way it should be
 somewhat the same:)

 I wrote something on it on my blog...


 http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/

 If you have any questions just ask...

 Francisco Diaz Trepat - gmail wrote:

 Hi nino, I'm on it. Very simple at first, English default text and
 javascript function parameters for other values.
 But I think latter on it could bring all text from server, although it
 could
 increase traffic unnecessarily.

 f(t)

 On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael 
 [EMAIL PROTECTED] wrote:



 Francisco, feel free to provide a patch :)

 Francisco Diaz Trepat - gmail wrote:



 Could you be more specific?
 You send me the Wicket internationalization link.

 The word progress, of Progress Bar, doesn't even exist in the page.

 And finally I found that it is not possible through regular (framework)
 means to i18n the Progress Bar due to the fact that the text I referred
 to
 is inside (hardcoded) the JavaScript file profress.js

 f(t)

 On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak
 [EMAIL PROTECTED] [EMAIL PROTECTED] 
 [EMAIL PROTECTED] [EMAIL PROTECTED]
 [EMAIL PROTECTED] [EMAIL PROTECTED] 
 [EMAIL PROTECTED][EMAIL PROTECTED]
 





 wrote:








 http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html

 On Wed, 12 Nov 2008 12:37:07 -0300, Francisco Diaz Trepat - gmail
 [EMAIL PROTECTED] said:




 Hi all, I am using the progress bar found at extensions.
 Is it possible to translate the words of the message that appear at
 the
 status (Upload Starting... and 34% finished, 71.3M of 209.7M at
 5.9M/s;
 23
 seconds) ??

 Or put my own version of messages?

 f(t)




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









 --
 -Wicket for love

 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]








 --
 -Wicket for love

 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: Wicket with GWT

2008-11-13 Thread Nitin Gupta
Hi Cemal,

I have following use cases in my mind:

I want to use Wicket for all the server side goodies like Session, web flow
etc. At the same time, I want to embed certain GWT or GWT-Ext widgets in the
Wicket pages because they are really cool and would take a considerable
effort for any developer to implement them in javascript.

I don't use or want to use RPC. We make use of our custom data feeds.

If the above combination can work then we can have a traditional multi-page
web application with each page having great looking widgets and animations.

What I want to achieve can also be achieved if I don't use Wicket. Wicket
usage is desired for the server side goodies that it can provide to
individual page.

Regards,
Nitin

-Original Message-
From: jWeekend [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 13, 2008 4:32 PM
To: users@wicket.apache.org
Subject: Re: Wicket with GWT


Nitin, 

I have spoken to several GWT experts about this as the idea does at first
seem very attractive. Although it is technically feasible (with some
significant effort to make a _decent_ integration of the two frameworks), we
have never managed to come up with a compelling use-case that would make it
worthwhile. Can you give a concrete example of an application/use-case where
we would benefit from this.

Regards - Cemal
http://www.jWeekend.co.uk http://jWeekend.co.uk 
OO, Wicket, JPA, Java, Swing, Spring training, consulting and devolpment



nitingupta183 wrote:
 
 By integration I meant that if I can make use of the server side features
 of the Wicket  integrate the widgets of GWT just like someone would
 integrate YUI with Wicket pages.
 
 Both technologies are great. Just thinking of a possible marriage for a
 faster, better app. Any issues seen in this?
 
 By the way I know wicket only from the surface as of now.
 
 Regards,
 Nitin
 
 
 Johan Compagner wrote:
 
 Personally i dont see an integration at all between GWT an Wicket.
 Both are ui techs that do things completely different.
 
 Give us an example how  you see flow (setResponsePage()) in wicket and
 what GWT then should do
 
 On 11/13/08, nitingupta183 [EMAIL PROTECTED] wrote:

 Hi All,

 I am working on a web application which makes use of GWT. I have not
 used
 GWT RPC majorly. We have made use of the JSON feeds and have used GWT
 just
 as a front end technology with almost no say in how we are transporting
 data
 between browser and the server.

 Now we are growing the application and more and more modules have to be
 added. There are now clear requirements which has forced us to think of
 using another web development framework. Got to know about Wicket and I
 am
 really impressed by seeing some presentations.

 My Question:

 Can I make use of Wicket and GWt together?

 The need to do is : Use of GWT ( GWT-Ext) widgets  use of Wicket to
 manage
 flow, sessions etc.

 Transport: So far we have relied on the JSON feeds. I think it will
 continue
 in the future as well. Newer data transports can be developed using
 forms in
 Wicket. I.e. a combination of these two is going to be there for a
 foreseeable future.

 Suggestions/Links/References are heartedly welcome.

 Regards,
 Nitin
 --
 View this message in context:
 http://www.nabble.com/Wicket-with-GWT-tp20476682p20476682.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/Wicket-with-GWT-tp20476682p20478665.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]



[ANNOUNCE] Apache Wicket 1.4 release candidate 1

2008-11-13 Thread Frank Bille
The Apache Wicket team is proud to present the first release candidate of
Apache Wicket 1.4.  This is the first Wicket version with java 1.5 as
minimum requirement.

Eager people click here to download the distribution, others can read
further:

* http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1

We thank you for your patience and support.

The Wicket Team

- Apache Wicket

Apache Wicket is a component oriented Java web application framework. With
proper mark-up/logic separation, a POJO data model, and a refreshing lack of
XML, Apache Wicket makes developing web-apps simple and enjoyable again.
Swap the boilerplate, complex debugging and brittle code for powerful,
reusable components written with plain Java and HTML.

You can find out more about Apache Wicket on our website:

* http://wicket.apache.org

- This release

The Apache Wicket team is proud to announce the availability of the third
milestone release of our first java 1.5 Wicket version: Apache Wicket
1.4-m3. This is the first release with java 1.5 as a minimum. Almost
everything has been converted to java 1.5. If you find something missing,
please help us and send a message to the dev@ or user@ list.

- Migrating from 1.3

If you are coming from Wicket 1.3, you really want to read our migration
guide, found on the wiki:

* http://cwiki.apache.org/WICKET/migrate-14.html

h3. Downloading the release

You can download the release from the official Apache mirror system, and you
can find it through the following link:

* http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1/

For the Maven and Ivy fans out there: update your pom's to the following,
and everything will be downloaded automatically:

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.4-rc1/version
/dependency

Substitute the artifact ID with the projects of your liking to get the other
projects.

Please note that we don't prescribe a Logging implementation for SLF4J. You
need to specify yourself which one you prefer. Read more about SLF4J here:
http://slf4j.org

- Validating the release

The release has been signed by Frank Bille, your release manager for today.
The public key can be found in the KEYS file in the download area. Download
the KEYS file only from the Apache website.

* http://www.apache.org/dist/wicket/1.4-rc1/KEYS

Instructions on how to validate the release can be found here:

* http://www.apache.org/dev/release-signing.html#check-integrity

- Reporting bugs

In case you do encounter a bug, we would appreciate a report in our JIRA:

* http://issues.apache.org/jira/browse/WICKET

- The distribution

In the distribution you will find a README. The README contains instructions
on how to build from source yourself. You also find a CHANEGELOG-1.4 which
contains a list of all things that have been fixed, added and/or removed
since the first release in the 1.4 branch.

- Release Notes - Wicket - Version 1.4-RC1

** Sub-task
* [WICKET-1624] - ServletWebRequest.getRelativePathPrefixToContextRoot()
double decodes servlet path
* [WICKET-1805] - Allow to change charset in StringRequestTarget: change
CharSet used by the OutStream as well

** Bug
* [WICKET-550] - Use WebRequestEncoder everywhere a query string is
constructed
* [WICKET-861] - NumberFormatException with
UrlCompressingWebRequestProcessor in WicketTester
* [WICKET-1120] - Problem closing a ModalWindow when used through an
IFrame
* [WICKET-1180] - Converters : final vs non final
* [WICKET-1220] - Component.visitParents visits the calling component as
well
* [WICKET-1311] - Improper HTML escaping for most wicket components and
extensions
* [WICKET-1376] - Using AbstractAjaxTimerBehavior and mounting that page
gives exception
* [WICKET-1425] - appendToInit() method is not called in class
DatePicker
* [WICKET-1436] - Unable to use properties file when generating XML
files
* [WICKET-1496] - DataTable.html does not validate (HTML
4.01/XHTML-Strict)
* [WICKET-1535] - ExternalLink JavaScript not working in FF 3
* [WICKET-1565] - AbstractTransformerBehavior can't be added to a page
* [WICKET-1582] - WicketTester executeAjaxEvent onclick generating
non-AJAX response
* [WICKET-1583] - NPE in EnclosureResolver
* [WICKET-1627] - AbstractRequestTargetUrlCodingStrategy improper user
of URLEncoder.encode
* [WICKET-1634] - ClassName needs conversion from Path to dotted
notation in AutoLinkResolver
* [WICKET-1648] - AbstractRequestTargetUrlCodingStrategy(line 174)
throws confusing exception. It would be better redirect to 404-page in this
case.
* [WICKET-1652] - Hard-coded quotes in xml prologue
* [WICKET-1704] - ResourceStreamRequestTarget.configure set wrong
ContentLength for non-ascii characters
* [WICKET-1719] - StringResourceModel may fail to format numbers using
MessageFormat
* [WICKET-1728] - remove obsolete check from LocalizedImageResource
* [WICKET-1730] - RfcCompliantEmailAddressValidator 

authenticatedWebSession class not found

2008-11-13 Thread francesco dicarlo
Hi, i'm using wicket 1.3.4 and i was connecting my wicket application with
JAAS and an LDAP server.

The class i wanted to use AuthenticatedWebSession is not present in the
1.3.4 jar nor 1.3.5 .

Is there another package that contains this class?

Frank


Re: OFF TOPIC - all-in-one wysiwyg website package?

2008-11-13 Thread Richard Allen
What about just starting with Google Sites:
http://www.google.com/sites/overview.html ?

It's free and easy. Good for a static website, which sounds like what you
are looking to produce.

-Richard

On Thu, Nov 13, 2008 at 4:05 AM, Stefan Lindner [EMAIL PROTECTED] wrote:

 Take a look at Joomla 1.5 (www.joomla.org). If you have a linux box with
 Apache/php/MySql the Joomla installation is just to unzip the distribution
 and run a litte menu driven install program. Administration is easy, plugins
 for nearly every purpose are available. 3 designs are part of the base
 package, more skins and designs can be installed by the administrator.

 Good luck!

 Stefan

 -Ursprüngliche Nachricht-
 Von: Jeremy Thomerson [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 13. November 2008 03:49
 An: users@wicket.apache.org
 Betreff: OFF TOPIC - all-in-one wysiwyg website package?

 This is off-topic, but I figured there couldn't be a better pool of people
 to ask.  I have several friends and family members that want to set up
 small
 websites for their businesses or hobbies.  Of course, then they'll want to
 customize them and make them look like this or like that.  And add a page,
 and edit a page, etc.  You've probably been in the same spot - you're the
 computer guy in the family - obviously I can't build them something
 custom
 (we're talking free).  And I don't want to maintain it for them forever,
 etc...

 So - do you know of any good website packages out there?  I'm not even sure
 what the right name would be.  But it would need to have these
 requirements:

   - Total non-technical control over adding and editing pages / content
   (wysiwyg)
   - Control looks by using themes that can be downloaded or maybe editing
   CSS
   - Possibly plugins for things like RSS feeds / contact pages / and/or
   e-commerce stores
   - Can be any language - I have a server to put it on, so I'm not adverse
   to PHP / Python / MySQL / etc...
   - Preferably I unzip a copy of it to a directory for them, give them
   access to the admin (maybe setup a MySQL DB for them), and I'm DONE!

 I've even thought of trying to build this out of BRIX, but I'm not sure
 that's the right answer, plus then there wouldn't be any plugins already
 available.

 Any tips?

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

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




Test the http status code from WicketTester

2008-11-13 Thread Magnus Forsberg
Hi all,
I have a case where I need to assert a certain http status code from a
Wicket page. The status code is set by throwing an
AbortWithWebErrorCodeException since I want to display an error
message.

I have tried checking the
WicketTester#getServletResponse().getStatus() but it remains on 200
although my exception tries to set it to 400.

Wicket version is 1.3.5.

Anyone experienced anything similar?

Brgds,
Magnus Forsberg

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



Re: OFF TOPIC - all-in-one wysiwyg website package?

2008-11-13 Thread Nick Heudecker
I've used Wordpress for this a number of times.  Easy to customize and
extend.



On Thu, Nov 13, 2008 at 6:10 AM, Richard Allen [EMAIL PROTECTED]wrote:

 What about just starting with Google Sites:
 http://www.google.com/sites/overview.html ?

 It's free and easy. Good for a static website, which sounds like what you
 are looking to produce.

 -Richard

 On Thu, Nov 13, 2008 at 4:05 AM, Stefan Lindner [EMAIL PROTECTED]
 wrote:

  Take a look at Joomla 1.5 (www.joomla.org). If you have a linux box with
  Apache/php/MySql the Joomla installation is just to unzip the
 distribution
  and run a litte menu driven install program. Administration is easy,
 plugins
  for nearly every purpose are available. 3 designs are part of the base
  package, more skins and designs can be installed by the administrator.
 
  Good luck!
 
  Stefan
 
  -Ursprüngliche Nachricht-
  Von: Jeremy Thomerson [mailto:[EMAIL PROTECTED]
  Gesendet: Donnerstag, 13. November 2008 03:49
  An: users@wicket.apache.org
  Betreff: OFF TOPIC - all-in-one wysiwyg website package?
 
  This is off-topic, but I figured there couldn't be a better pool of
 people
  to ask.  I have several friends and family members that want to set up
  small
  websites for their businesses or hobbies.  Of course, then they'll want
 to
  customize them and make them look like this or like that.  And add a
 page,
  and edit a page, etc.  You've probably been in the same spot - you're the
  computer guy in the family - obviously I can't build them something
  custom
  (we're talking free).  And I don't want to maintain it for them forever,
  etc...
 
  So - do you know of any good website packages out there?  I'm not even
 sure
  what the right name would be.  But it would need to have these
  requirements:
 
- Total non-technical control over adding and editing pages / content
(wysiwyg)
- Control looks by using themes that can be downloaded or maybe editing
CSS
- Possibly plugins for things like RSS feeds / contact pages / and/or
e-commerce stores
- Can be any language - I have a server to put it on, so I'm not
 adverse
to PHP / Python / MySQL / etc...
- Preferably I unzip a copy of it to a directory for them, give them
access to the admin (maybe setup a MySQL DB for them), and I'm DONE!
 
  I've even thought of trying to build this out of BRIX, but I'm not sure
  that's the right answer, plus then there wouldn't be any plugins already
  available.
 
  Any tips?
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 




-- 
Nick Heudecker
Professional Wicket Training  Consulting
http://www.systemmobile.com

Eventful - Intelligent Event Management
http://www.eventfulhq.com


Re: Wicket with GWT

2008-11-13 Thread Ladislav Thon

 At the same time, I want to embed certain GWT or GWT-Ext widgets in the
 Wicket pages because they are really cool and would take a considerable
 effort for any developer to implement them in javascript.


Sounds like an idea I also had before: using GWT to create rich JavaScript
components embeddable in any kind of HTML page (be it static, Wicket
generated or whatever). Not really a Wicket question, but still.

One can think of using GWT to produce highly optimized JavaScript which
exports some API to plain JavaScript you write -- gwt-exporter
http://code.google.com/p/gwt-exporter/ might be useful to do this. Maybe it
is possible to create standard GWT application consisting only of your
library and a few lines of code to actually export the API (which should
prevent GWT compiler from optimizing your library out :-) ). Not tested
that, though.

Hope that helps.

LT


Re: OFF TOPIC - all-in-one wysiwyg website package?

2008-11-13 Thread Johan Compagner
Where is the Wicket solution!

On Thu, Nov 13, 2008 at 3:48 AM, Jeremy Thomerson [EMAIL PROTECTED]
 wrote:

 This is off-topic, but I figured there couldn't be a better pool of people
 to ask.  I have several friends and family members that want to set up
 small
 websites for their businesses or hobbies.  Of course, then they'll want to
 customize them and make them look like this or like that.  And add a page,
 and edit a page, etc.  You've probably been in the same spot - you're the
 computer guy in the family - obviously I can't build them something
 custom
 (we're talking free).  And I don't want to maintain it for them forever,
 etc...

 So - do you know of any good website packages out there?  I'm not even sure
 what the right name would be.  But it would need to have these
 requirements:

   - Total non-technical control over adding and editing pages / content
   (wysiwyg)
   - Control looks by using themes that can be downloaded or maybe editing
   CSS
   - Possibly plugins for things like RSS feeds / contact pages / and/or
   e-commerce stores
   - Can be any language - I have a server to put it on, so I'm not adverse
   to PHP / Python / MySQL / etc...
   - Preferably I unzip a copy of it to a directory for them, give them
   access to the admin (maybe setup a MySQL DB for them), and I'm DONE!

 I've even thought of trying to build this out of BRIX, but I'm not sure
 that's the right answer, plus then there wouldn't be any plugins already
 available.

 Any tips?

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



Re: OFF TOPIC - all-in-one wysiwyg website package?

2008-11-13 Thread Richard Allen
Brix (http://code.google.com/p/brix-cms/). But it's new and not as feature
rich as something like Joomla.

On Thu, Nov 13, 2008 at 9:26 AM, Johan Compagner [EMAIL PROTECTED]wrote:

 Where is the Wicket solution!



Re: authenticatedWebSession class not found

2008-11-13 Thread Pasquale Fersini
Hi Frank,
there is a package (wicket-auth-roles) that you must add to your pom file.
Search with google a valid repository.

Bye,
Pas.

2008/11/13 francesco dicarlo [EMAIL PROTECTED]

 Hi, i'm using wicket 1.3.4 and i was connecting my wicket application with
 JAAS and an LDAP server.

 The class i wanted to use AuthenticatedWebSession is not present in the
 1.3.4 jar nor 1.3.5 .

 Is there another package that contains this class?

 Frank



Re: Wicket with GWT

2008-11-13 Thread Richard Allen
If ExtJS essentially gives you what you want in the way of widgets, why not
look into integration of ExtJS and Wicket? In the near future, we will be
migrating our applications that use ExtJS to Wicket. There has already been
some work done in this area. See the following links.

ExtJS 2.2: http://code.google.com/p/wicket-ext/
ExtJS 2.0: http://www.wickettools.org/index.php/extjs-integration

-Richard


On Thu, Nov 13, 2008 at 8:16 AM, Ladislav Thon [EMAIL PROTECTED] wrote:

 
  At the same time, I want to embed certain GWT or GWT-Ext widgets in the
  Wicket pages because they are really cool and would take a considerable
  effort for any developer to implement them in javascript.


 Sounds like an idea I also had before: using GWT to create rich JavaScript
 components embeddable in any kind of HTML page (be it static, Wicket
 generated or whatever). Not really a Wicket question, but still.

 One can think of using GWT to produce highly optimized JavaScript which
 exports some API to plain JavaScript you write -- gwt-exporter
 http://code.google.com/p/gwt-exporter/ might be useful to do this. Maybe
 it
 is possible to create standard GWT application consisting only of your
 library and a few lines of code to actually export the API (which should
 prevent GWT compiler from optimizing your library out :-) ). Not tested
 that, though.

 Hope that helps.

 LT



Re: Wicket with GWT

2008-11-13 Thread Richard Allen
Also, can you share what you get from Wicket that you don't get from GWT?
That would be useful for those who venture on this list considering GWT
versus Wicket.

Thanks,
Richard

On Thu, Nov 13, 2008 at 9:53 AM, Richard Allen [EMAIL PROTECTED]wrote:

 If ExtJS essentially gives you what you want in the way of widgets, why not
 look into integration of ExtJS and Wicket? In the near future, we will be
 migrating our applications that use ExtJS to Wicket. There has already been
 some work done in this area. See the following links.

 ExtJS 2.2: http://code.google.com/p/wicket-ext/
 ExtJS 2.0: http://www.wickettools.org/index.php/extjs-integration

 -Richard



 On Thu, Nov 13, 2008 at 8:16 AM, Ladislav Thon [EMAIL PROTECTED] wrote:

 
  At the same time, I want to embed certain GWT or GWT-Ext widgets in the
  Wicket pages because they are really cool and would take a considerable
  effort for any developer to implement them in javascript.


 Sounds like an idea I also had before: using GWT to create rich JavaScript
 components embeddable in any kind of HTML page (be it static, Wicket
 generated or whatever). Not really a Wicket question, but still.

 One can think of using GWT to produce highly optimized JavaScript which
 exports some API to plain JavaScript you write -- gwt-exporter
 http://code.google.com/p/gwt-exporter/ might be useful to do this. Maybe
 it
 is possible to create standard GWT application consisting only of your
 library and a few lines of code to actually export the API (which should
 prevent GWT compiler from optimizing your library out :-) ). Not tested
 that, though.

 Hope that helps.

 LT





Re: OFF TOPIC - all-in-one wysiwyg website package?

2008-11-13 Thread Gwyn Evans
I'd suggest taking a look at CityDesk -
(http://www.fogcreek.com/CityDesk/), which doesn't require any
server-side support.  It's a Windows program that generates a site and
transfers it to any web server automatically, using FTP or file copy.
You can setup the site look  feel, etc, in 'design mode', switch that
off then pass the site over to someone who can then easily add/update
it using standard Windows functionality.  The starter edition's free
and supports up to 50 pages on a site, which would cover most small
sites.  It's not actively developed, but that doesn't mean it doesn't
work  might be what's needed!

/Gwyn

On Thu, Nov 13, 2008 at 2:48 AM, Jeremy Thomerson
[EMAIL PROTECTED] wrote:
 This is off-topic, but I figured there couldn't be a better pool of people
 to ask.  I have several friends and family members that want to set up small
 websites for their businesses or hobbies.  Of course, then they'll want to
 customize them and make them look like this or like that.  And add a page,
 and edit a page, etc.  You've probably been in the same spot - you're the
 computer guy in the family - obviously I can't build them something custom
 (we're talking free).  And I don't want to maintain it for them forever,
 etc...

 So - do you know of any good website packages out there?  I'm not even sure
 what the right name would be.  But it would need to have these requirements:

   - Total non-technical control over adding and editing pages / content
   (wysiwyg)
   - Control looks by using themes that can be downloaded or maybe editing
   CSS
   - Possibly plugins for things like RSS feeds / contact pages / and/or
   e-commerce stores
   - Can be any language - I have a server to put it on, so I'm not adverse
   to PHP / Python / MySQL / etc...
   - Preferably I unzip a copy of it to a directory for them, give them
   access to the admin (maybe setup a MySQL DB for them), and I'm DONE!

 I've even thought of trying to build this out of BRIX, but I'm not sure
 that's the right answer, plus then there wouldn't be any plugins already
 available.

 Any tips?

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


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



Re: What is best practice for overriding settings in ModalWindow modal.css file?

2008-11-13 Thread shetc

Thanks Nino -- the solution was even easier than what you suggested but you 
pointed me in the right direction. I was so focused on Wicket that I forgot
the plain
ole CSS solution :wistle:
-- 
View this message in context: 
http://www.nabble.com/What-is-best-practice-for-overriding-settings-in-ModalWindow-modal.css-file--tp20467689p20481651.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: Ajax Response breaks down if CheckGroupSelector is added to AjaxFallbackDefaultDataTable

2008-11-13 Thread Igor Vaynberg
try repainting the form instead of the table

-igor

On Thu, Nov 13, 2008 at 2:13 AM, Esko Suomi [EMAIL PROTECTED] wrote:
 .which is not desired. I have a test case which is something like this:


   tester.clickLink(form:group:table:rows:1:cells:8:cell:delete, true);
   tester.assertComponentOnAjaxResponse(form:group:table);


 group is CheckGroup, table is AjaxFallbackDefaultDataTable and delete is
 AjaxFallbackLink. The code for delete link which is in its own column looks
 like this:


   columns.add(new AbstractColumnMyObject(new Model(Edit)) {
 public void populateItem(ItemICellPopulatorMyObject item,
 String id, IModelMyObject model) {
   Fragment f = new Fragment(id, editlink, getPage());
 LinkMyObject delete = new
 AjaxFallbackLinkMyObject(delete, model) {
   @Override
   public void onClick(AjaxRequestTarget art) {
   getAdPersister().delete(getModelObject());
   if (art != null) art.addComponent(table);
   }
   };
   delete.add(new Label(label, delete));
   delete.add(new SimpleAttributeModifier(onclick, return
 confirm('are you sure?');));
   f.add(delete);
   item.add(f);
   }
 });


 and its fragment's markup looks like this:


   wicket:fragment wicket:id=editlink
   a wicket:id=linkwicket:component
 wicket:id=label/wicket:component/a
   a wicket:id=deletewicket:component
 wicket:id=label/wicket:component/a
   /wicket:fragment


 The snippets above works if CheckGroupSelector isn't present. What I wanted
 to do was to add a checkbox to each row as new column and a select all
 checkbox to the new column's header so first I added this:


   columns.add(new AbstractColumnMyObject(new Model(Controls)) {
   public void populateItem(ItemICellPopulatorMyObject item,
   String id, IModelMyObject model) {
   Fragment f = new Fragment(id, checkboxfragment, getPage());
   f.add(new Check(check, new Model(false)));
   item.add(f);
   }
   });


 Markup for the fragment is


   wicket:fragment wicket:id=checkboxfragment
   input type=checkbox wicket:id=check /
   /wicket:fragment


 I also added the components to hierarchy like so:


   CheckGroup myGroup = new CheckGroup(group, new ArrayList());
   form = new Form(form);
   table = newTable(); // this method creates the entire table
   myGroup.add(table);
   form.add(myGroup);


 With that everything still works so I added the header override like so:


   columns.add(new AbstractColumnMyObject(new Model(Controls)) {
 @Override
   public Component? getHeader(String componentId) {
   Fragment f = new Fragment(componentId, checkboxfragment,
 getPage());
   f.add(new CheckGroupSelector(check));
   return f;
   }

   public void populateItem(ItemICellPopulatorMyObject item,
   String id, IModelMyObject model) {
   Fragment f = new Fragment(id, checkboxfragment, getPage());
   f.add(new Check(check, new Model(false)));
   item.add(f);
   }
   });


 and now that I run the test case it now gives me the following exception on
 the line tester.assertComponentOnAjaxResponse(form:group:table);


   junit.framework.AssertionFailedError: Component wasn't found in the AJAX
 response


 Any ideas how I can get this to work?

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



authenticatedWebApplication error with jaas

2008-11-13 Thread francesco dicarlo
hi i've switched my wicket application from webapplication to
authenticatedwebapplication with jaas authentication on jboss.

now it doesn't start giving me errors on filter in web.xml telling me that
must be a subclass of webapplication.

How must i declare now the web.xml in order to run
authenticatedwebapplication?

here the log

ERROR [[/sisco]] Exception starting filter wicket.sisco
org.apache.wicket.WicketRuntimeException: Application class
it.eurosoft.WicketApplication must be a subclass of WebApplication

and the web.xml


filter
filter-namewicket.sisco/filter-name

filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class
init-param
param-nameapplicationClassName/param-name
param-valueit.eurosoft.WicketApplication/param-value
/init-param


Per-user, event-aware page/component caching

2008-11-13 Thread Tremelune

We have many components that require heavy operations to gather the necessary
data, and I was wondering if there was a way to cache the Wicket objects
that have pulled the data.

I have seen similar questions come up before, and the common answer was to
simply cache the data being pulled, and not the Wicket objects. Because we
have components pulling data from different places in different ways, this
would be like putting a padlock on my TV and guitar instead of locking the
door to my apartment. It also means that, if I got a new stereo, I'd have to
remember to handle that new case as well, instead of it being handled by the
door lock automagically. My last example in this unusual metaphor would be
my iPod: It's too cheap to explicitly handle, but it's nice to have the lock
on the front door take care of it anyway.

My particular app would benefit from a per-user cache based on the way data
is pulled. Pages are different for each user, but once they view the page,
data rarely changes. I imagine this would be as easy as stuffing something
in the Wicket session. It would stagnate with the HTTP session naturally.

My app would also need a few hooks or event listeners to trigger a clear.
For instance, if a user deletes a Horse from his Barn, I would want the
BarnPanel to know it needs to refresh on the next rendering.

Is there anything like this that exists in Wicket? Or pieces I could use to
build it? I think it would be very handy.
-- 
View this message in context: 
http://www.nabble.com/Per-user%2C-event-aware-page-component-caching-tp20481886p20481886.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: [ANNOUNCE] Apache Wicket 1.4 release candidate 1

2008-11-13 Thread Jörn Zaefferer
The following subprojects are incompatible with Wicket 1.4 RC1 and
therefore block us from migrating: wicket-ioc (only 1.3.5 available)
and wicket-spring-annot (only 1.3.5 available).

wicket-spring-annot needs to change its usage of MetaDataKey in
SpringComponentInjector (constructor doesn't accept any arguments
anymore) and wicket-ioc needs to be recompiled using the JDK's
ConcurrentHashMap instead of wicket.util.concurrent.

Jörn

On Thu, Nov 13, 2008 at 3:06 PM, Frank Bille [EMAIL PROTECTED] wrote:
 The Apache Wicket team is proud to present the first release candidate of
 Apache Wicket 1.4.  This is the first Wicket version with java 1.5 as
 minimum requirement.

 Eager people click here to download the distribution, others can read
 further:

 * http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1

 We thank you for your patience and support.

 The Wicket Team

 - Apache Wicket

 Apache Wicket is a component oriented Java web application framework. With
 proper mark-up/logic separation, a POJO data model, and a refreshing lack of
 XML, Apache Wicket makes developing web-apps simple and enjoyable again.
 Swap the boilerplate, complex debugging and brittle code for powerful,
 reusable components written with plain Java and HTML.

 You can find out more about Apache Wicket on our website:

 * http://wicket.apache.org

 - This release

 The Apache Wicket team is proud to announce the availability of the third
 milestone release of our first java 1.5 Wicket version: Apache Wicket
 1.4-m3. This is the first release with java 1.5 as a minimum. Almost
 everything has been converted to java 1.5. If you find something missing,
 please help us and send a message to the dev@ or user@ list.

 - Migrating from 1.3

 If you are coming from Wicket 1.3, you really want to read our migration
 guide, found on the wiki:

 * http://cwiki.apache.org/WICKET/migrate-14.html

 h3. Downloading the release

 You can download the release from the official Apache mirror system, and you
 can find it through the following link:

 * http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1/

 For the Maven and Ivy fans out there: update your pom's to the following,
 and everything will be downloaded automatically:

 dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.4-rc1/version
 /dependency

 Substitute the artifact ID with the projects of your liking to get the other
 projects.

 Please note that we don't prescribe a Logging implementation for SLF4J. You
 need to specify yourself which one you prefer. Read more about SLF4J here:
 http://slf4j.org

 - Validating the release

 The release has been signed by Frank Bille, your release manager for today.
 The public key can be found in the KEYS file in the download area. Download
 the KEYS file only from the Apache website.

 * http://www.apache.org/dist/wicket/1.4-rc1/KEYS

 Instructions on how to validate the release can be found here:

 * http://www.apache.org/dev/release-signing.html#check-integrity

 - Reporting bugs

 In case you do encounter a bug, we would appreciate a report in our JIRA:

 * http://issues.apache.org/jira/browse/WICKET

 - The distribution

 In the distribution you will find a README. The README contains instructions
 on how to build from source yourself. You also find a CHANEGELOG-1.4 which
 contains a list of all things that have been fixed, added and/or removed
 since the first release in the 1.4 branch.

 - Release Notes - Wicket - Version 1.4-RC1

 ** Sub-task
* [WICKET-1624] - ServletWebRequest.getRelativePathPrefixToContextRoot()
 double decodes servlet path
* [WICKET-1805] - Allow to change charset in StringRequestTarget: change
 CharSet used by the OutStream as well

 ** Bug
* [WICKET-550] - Use WebRequestEncoder everywhere a query string is
 constructed
* [WICKET-861] - NumberFormatException with
 UrlCompressingWebRequestProcessor in WicketTester
* [WICKET-1120] - Problem closing a ModalWindow when used through an
 IFrame
* [WICKET-1180] - Converters : final vs non final
* [WICKET-1220] - Component.visitParents visits the calling component as
 well
* [WICKET-1311] - Improper HTML escaping for most wicket components and
 extensions
* [WICKET-1376] - Using AbstractAjaxTimerBehavior and mounting that page
 gives exception
* [WICKET-1425] - appendToInit() method is not called in class
 DatePicker
* [WICKET-1436] - Unable to use properties file when generating XML
 files
* [WICKET-1496] - DataTable.html does not validate (HTML
 4.01/XHTML-Strict)
* [WICKET-1535] - ExternalLink JavaScript not working in FF 3
* [WICKET-1565] - AbstractTransformerBehavior can't be added to a page
* [WICKET-1582] - WicketTester executeAjaxEvent onclick generating
 non-AJAX response
* [WICKET-1583] - NPE in EnclosureResolver
* [WICKET-1627] - AbstractRequestTargetUrlCodingStrategy improper user
 of URLEncoder.encode
* [WICKET-1634] - ClassName needs conversion from Path 

Re: Re: OFF TOPIC - all-in-one wysiwyg website package?

2008-11-13 Thread bruno . borges
Are you looking for a website package with data retention support (file /  
database / jcr), wysiwyg editor and customizable components?


I suggest you to take a look at Magnolia, Alfresco or OpenCMS. I rather  
prefer Magnolia actually, but the others are not bad though.


Cheers!
Bruno Borges

On Nov 13, 2008 12:56pm, Gwyn Evans [EMAIL PROTECTED] wrote:

I'd suggest taking a look at CityDesk -

(http://www.fogcreek.com/CityDesk/), which doesn't require any

server-side support. It's a Windows program that generates a site and

transfers it to any web server automatically, using FTP or file copy.

You can setup the site look  feel, etc, in 'design mode', switch that

off then pass the site over to someone who can then easily add/update

it using standard Windows functionality. The starter edition's free

and supports up to 50 pages on a site, which would cover most small

sites. It's not actively developed, but that doesn't mean it doesn't

work  might be what's needed!



/Gwyn



On Thu, Nov 13, 2008 at 2:48 AM, Jeremy Thomerson

wrote:

 This is off-topic, but I figured there couldn't be a better pool of  

people


 to ask. I have several friends and family members that want to set up  

small


 websites for their businesses or hobbies. Of course, then they'll want  

to


 customize them and make them look like this or like that. And add a  

page,


 and edit a page, etc. You've probably been in the same spot - you're the

 computer guy in the family - obviously I can't build them something  

custom


 (we're talking free). And I don't want to maintain it for them forever,

 etc...



 So - do you know of any good website packages out there? I'm not even  

sure


 what the right name would be. But it would need to have these  

requirements:




 - Total non-technical control over adding and editing pages / content

 (wysiwyg)

 - Control looks by using themes that can be downloaded or maybe editing

 CSS

 - Possibly plugins for things like RSS feeds / contact pages / and/or

 e-commerce stores

 - Can be any language - I have a server to put it on, so I'm not adverse

 to PHP / Python / MySQL / etc...

 - Preferably I unzip a copy of it to a directory for them, give them

 access to the admin (maybe setup a MySQL DB for them), and I'm DONE!



 I've even thought of trying to build this out of BRIX, but I'm not sure

 that's the right answer, plus then there wouldn't be any plugins already

 available.



 Any tips?



 --

 Jeremy Thomerson

 http://www.wickettraining.com





-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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





Re: Per-user, event-aware page/component caching

2008-11-13 Thread Igor Vaynberg
you can simply stick a panel or page into session. alternatively you
can override ipagefactory and implement a cache infront of that for
bookmarkable pages.

as far as events, etc, you would have to visit all cached things in
cache and do whatever it is you need to do. wicket cant help you here
because the cache implementation is purely your own.

-igor

On Thu, Nov 13, 2008 at 8:28 AM, Tremelune [EMAIL PROTECTED] wrote:

 We have many components that require heavy operations to gather the necessary
 data, and I was wondering if there was a way to cache the Wicket objects
 that have pulled the data.

 I have seen similar questions come up before, and the common answer was to
 simply cache the data being pulled, and not the Wicket objects. Because we
 have components pulling data from different places in different ways, this
 would be like putting a padlock on my TV and guitar instead of locking the
 door to my apartment. It also means that, if I got a new stereo, I'd have to
 remember to handle that new case as well, instead of it being handled by the
 door lock automagically. My last example in this unusual metaphor would be
 my iPod: It's too cheap to explicitly handle, but it's nice to have the lock
 on the front door take care of it anyway.

 My particular app would benefit from a per-user cache based on the way data
 is pulled. Pages are different for each user, but once they view the page,
 data rarely changes. I imagine this would be as easy as stuffing something
 in the Wicket session. It would stagnate with the HTTP session naturally.

 My app would also need a few hooks or event listeners to trigger a clear.
 For instance, if a user deletes a Horse from his Barn, I would want the
 BarnPanel to know it needs to refresh on the next rendering.

 Is there anything like this that exists in Wicket? Or pieces I could use to
 build it? I think it would be very handy.
 --
 View this message in context: 
 http://www.nabble.com/Per-user%2C-event-aware-page-component-caching-tp20481886p20481886.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]



ajax busy indicator never stops in IE

2008-11-13 Thread miro

My  page has IndicatingAjaxLinkWhen user clicks on this  link   the busy
indicator never stops , it works fine in firefox 

here some html

tbody 
wicket:id=auditInfoContainer
style=width:100%;height:556;overflow:auto;   
wicket:container 
wicket:id=auditInfos
tr 
wicket:id=auditInfo  height=10 

td



/td   

td



/td   

td



/td

td



/td

td



/td

td



/td

td



/td

td



/td

td



/td
/tr
/wicket:container 
/tbody
auditInfo   is the link .

I am using wicket 1.3.5  
-- 
View this message in context: 
http://www.nabble.com/ajax-busy-indicator-never-stops-in-IE-tp20485948p20485948.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: Per-user, event-aware page/component caching

2008-11-13 Thread Igor Vaynberg
oh, and of course, if you do this you are on your own as far as
threading goes inside your components.

i still think that instead of doing this implementing a general cache
is a much better approach.

instead of doing
tvdata tv=tvsource.getdata();
musicdata music=musicsource.getdata();

restructure your business logic to work like this:

tvdata tv=((tvresponse)datasource.getdata(new tvrequest(params)).tvdata();
musicdata music=((musicresponse)datasource.getdata(new
musicrequest(params)).musicdata();

this gives you a single point of access from higher tiers (ui,
webservices, foo) and also gives you one place to cache.
architecturally this is much more sound, of course i dont know your
exact situation.

-igor

On Thu, Nov 13, 2008 at 9:40 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:
 you can simply stick a panel or page into session. alternatively you
 can override ipagefactory and implement a cache infront of that for
 bookmarkable pages.

 as far as events, etc, you would have to visit all cached things in
 cache and do whatever it is you need to do. wicket cant help you here
 because the cache implementation is purely your own.

 -igor

 On Thu, Nov 13, 2008 at 8:28 AM, Tremelune [EMAIL PROTECTED] wrote:

 We have many components that require heavy operations to gather the necessary
 data, and I was wondering if there was a way to cache the Wicket objects
 that have pulled the data.

 I have seen similar questions come up before, and the common answer was to
 simply cache the data being pulled, and not the Wicket objects. Because we
 have components pulling data from different places in different ways, this
 would be like putting a padlock on my TV and guitar instead of locking the
 door to my apartment. It also means that, if I got a new stereo, I'd have to
 remember to handle that new case as well, instead of it being handled by the
 door lock automagically. My last example in this unusual metaphor would be
 my iPod: It's too cheap to explicitly handle, but it's nice to have the lock
 on the front door take care of it anyway.

 My particular app would benefit from a per-user cache based on the way data
 is pulled. Pages are different for each user, but once they view the page,
 data rarely changes. I imagine this would be as easy as stuffing something
 in the Wicket session. It would stagnate with the HTTP session naturally.

 My app would also need a few hooks or event listeners to trigger a clear.
 For instance, if a user deletes a Horse from his Barn, I would want the
 BarnPanel to know it needs to refresh on the next rendering.

 Is there anything like this that exists in Wicket? Or pieces I could use to
 build it? I think it would be very handy.
 --
 View this message in context: 
 http://www.nabble.com/Per-user%2C-event-aware-page-component-caching-tp20481886p20481886.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: Pretty url for tabs

2008-11-13 Thread pixologe

ahhh sorry my fault.

of course i meant TabbedPanel and AbstractTab.

Stateless* are the names of the classes I created...

Sorry!


rmoskal wrote:
 
 Thanks, that seems super straight forward as I've come to expect from
 wicket.  Only one thing, there doesn't seem to be a StatelessTabbedPanel
 or a StatelessTab in the distribution.
 
 Regards,
 
 Robert
 
 
 
 pixologe wrote:
 
 Well, when I think of it the word exactly is not right - of course,
 there's no page versioning and no colons here, since
 bookmarkablepagelinks are used... this thing works the stateless way when
 switching tabs. But this way you can have nice urls like
 [...]/yourPage/yourTabname/
 
 
 pixologe wrote:
 
 I had exactly the same use case 
 
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Pretty-url-for-tabs-tp20451052p20486094.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: gmap2 and helper classes / methods?

2008-11-13 Thread Nino Saturnino Martinez Vazquez Wael

Hmmm, I got so far:

   public boolean isWithInBounds(GLatLngBounds bounds, GLatLng point) {

//if (pointlat  maxY  pointlat  minY  pointlng  minX  
pointlng  maxX) { //execute script }
  
  
   if (bounds.getSW().getLat()  point.getLat()

bounds.getSW().getLng()  point.getLng()
bounds.getNE().getLat()  point.getLat()
bounds.getNE().getLng()  point.getLng()) {
   return true;
   }

   return false;
   }

But im pretty sure that it's faulty. When I discovered spartial 
hibernate, which can be used with JPA. And in my case it's just what I 
need. And JTS( http://www.vividsolutions.com/jts/main.htm ) that 
provides more than enough for me... So if anything should be done it 
should be either direct integration between JTS and gmap or helper 
classes that will translate from gmap to JTS... I will think on if this 
could be something that the openlayers integration should support..


Martin Funk wrote:

2008/11/12 Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED]

  

Hi

I seem to be lacking some helper methods for finding out if a glatlng are
in a gbounds etc.. Are there someone out there who has implemented anything
or do I need to roll my own, and if the latter I guess I should provide a
patch?



go ahead and commit something,
I'll be happy to unclutter.

mf

  

--
-Wicket for love

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]





  


--
-Wicket for love

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: Progress Bar

2008-11-13 Thread Nino Saturnino Martinez Vazquez Wael

hehe yes why?

Francisco Diaz Trepat - gmail wrote:

your voice in the video?

On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

You could also just do the js with an texttemplate, that way it should be
somewhat the same:)

I wrote something on it on my blog...


http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/

If you have any questions just ask...

Francisco Diaz Trepat - gmail wrote:



Hi nino, I'm on it. Very simple at first, English default text and
javascript function parameters for other values.
But I think latter on it could bring all text from server, although it
could
increase traffic unnecessarily.

f(t)

On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:



  

Francisco, feel free to provide a patch :)

Francisco Diaz Trepat - gmail wrote:





Could you be more specific?
You send me the Wicket internationalization link.

The word progress, of Progress Bar, doesn't even exist in the page.

And finally I found that it is not possible through regular (framework)
means to i18n the Progress Bar due to the fact that the text I referred
to
is inside (hardcoded) the JavaScript file profress.js

f(t)

On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak
[EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED][EMAIL PROTECTED]
  




  

wrote:







  

http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html

On Wed, 12 Nov 2008 12:37:07 -0300, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] said:






Hi all, I am using the progress bar found at extensions.
Is it possible to translate the words of the message that appear at
the
status (Upload Starting... and 34% finished, 71.3M of 209.7M at
5.9M/s;
23
seconds) ??

Or put my own version of messages?

f(t)




  

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









  

--
-Wicket for love

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]







  

--
-Wicket for love

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]





  


--
-Wicket for love

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: Per-user, event-aware page/component caching

2008-11-13 Thread Nino Saturnino Martinez Vazquez Wael
And if you are using spring it's really easy to inject caching using the 
spring module cache sub project, when using your approach.


Igor Vaynberg wrote:

oh, and of course, if you do this you are on your own as far as
threading goes inside your components.

i still think that instead of doing this implementing a general cache
is a much better approach.

instead of doing
tvdata tv=tvsource.getdata();
musicdata music=musicsource.getdata();

restructure your business logic to work like this:

tvdata tv=((tvresponse)datasource.getdata(new tvrequest(params)).tvdata();
musicdata music=((musicresponse)datasource.getdata(new
musicrequest(params)).musicdata();

this gives you a single point of access from higher tiers (ui,
webservices, foo) and also gives you one place to cache.
architecturally this is much more sound, of course i dont know your
exact situation.

-igor

On Thu, Nov 13, 2008 at 9:40 AM, Igor Vaynberg [EMAIL PROTECTED] wrote:
  

you can simply stick a panel or page into session. alternatively you
can override ipagefactory and implement a cache infront of that for
bookmarkable pages.

as far as events, etc, you would have to visit all cached things in
cache and do whatever it is you need to do. wicket cant help you here
because the cache implementation is purely your own.

-igor

On Thu, Nov 13, 2008 at 8:28 AM, Tremelune [EMAIL PROTECTED] wrote:


We have many components that require heavy operations to gather the necessary
data, and I was wondering if there was a way to cache the Wicket objects
that have pulled the data.

I have seen similar questions come up before, and the common answer was to
simply cache the data being pulled, and not the Wicket objects. Because we
have components pulling data from different places in different ways, this
would be like putting a padlock on my TV and guitar instead of locking the
door to my apartment. It also means that, if I got a new stereo, I'd have to
remember to handle that new case as well, instead of it being handled by the
door lock automagically. My last example in this unusual metaphor would be
my iPod: It's too cheap to explicitly handle, but it's nice to have the lock
on the front door take care of it anyway.

My particular app would benefit from a per-user cache based on the way data
is pulled. Pages are different for each user, but once they view the page,
data rarely changes. I imagine this would be as easy as stuffing something
in the Wicket session. It would stagnate with the HTTP session naturally.

My app would also need a few hooks or event listeners to trigger a clear.
For instance, if a user deletes a Horse from his Barn, I would want the
BarnPanel to know it needs to refresh on the next rendering.

Is there anything like this that exists in Wicket? Or pieces I could use to
build it? I think it would be very handy.
--
View this message in context: 
http://www.nabble.com/Per-user%2C-event-aware-page-component-caching-tp20481886p20481886.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]

  


--
-Wicket for love

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: What is best practice for overriding settings in ModalWindow modal.css file?

2008-11-13 Thread Nino Saturnino Martinez Vazquez Wael

:)

shetc wrote:
Thanks Nino -- the solution was even easier than what you suggested but you 
pointed me in the right direction. I was so focused on Wicket that I forgot

the plain
ole CSS solution :wistle:
  


--
-Wicket for love

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: Wicket upload example in latest snapshot (1.4) has exception

2008-11-13 Thread NickCanada

Apologies  -after a more thorough search of the issue the following thread
addresses the issue:
http://www.nabble.com/FileUpload---need-to-set-a-model-to-get-updateModel-working--td19283571.html#a19312573

from UploadPage.java in the examples:

add(fileUploadField = new FileUploadField(fileInput));

changing the line to something like 

add(fileUploadField = new FileUploadField(fileInput,new Model()));

makes it work

Thanks
-- 
View this message in context: 
http://www.nabble.com/Wicket-upload-example-in-latest-snapshot-%281.4%29-has-exception-tp20469979p20486971.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: Progress Bar

2008-11-13 Thread Francisco Diaz Trepat - gmail
I kind of felt curious to knowing a little bit more about you, so hearing
the video made me wonder...
I got knock down by management on modifying progress.js with templates.
Solution was mandate to remove Status Messages all together.

so css visibility: hidden added to the status class.

wupb-uploadStatus {
visibility: hidden;
}

Sad, but true.

On another topic I'm currently working on perfecting a Modeless Window
extension of the current Modal window.

f(t)

On Thu, Nov 13, 2008 at 3:39 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

 hehe yes why?


 Francisco Diaz Trepat - gmail wrote:

 your voice in the video?

 On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael 
 [EMAIL PROTECTED] wrote:



 You could also just do the js with an texttemplate, that way it should be
 somewhat the same:)

 I wrote something on it on my blog...



 http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/

 If you have any questions just ask...

 Francisco Diaz Trepat - gmail wrote:



 Hi nino, I'm on it. Very simple at first, English default text and
 javascript function parameters for other values.
 But I think latter on it could bring all text from server, although it
 could
 increase traffic unnecessarily.

 f(t)

 On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael 
 [EMAIL PROTECTED] wrote:





 Francisco, feel free to provide a patch :)

 Francisco Diaz Trepat - gmail wrote:





 Could you be more specific?
 You send me the Wicket internationalization link.

 The word progress, of Progress Bar, doesn't even exist in the page.

 And finally I found that it is not possible through regular
 (framework)
 means to i18n the Progress Bar due to the fact that the text I
 referred
 to
 is inside (hardcoded) the JavaScript file profress.js

 f(t)

 On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak
 [EMAIL PROTECTED] [EMAIL PROTECTED] 
 [EMAIL PROTECTED] [EMAIL PROTECTED]
 
 [EMAIL PROTECTED] [EMAIL PROTECTED]
 [EMAIL PROTECTED][EMAIL PROTECTED]
 
 [EMAIL PROTECTED] [EMAIL PROTECTED]
 [EMAIL PROTECTED][EMAIL PROTECTED]
 
 [EMAIL PROTECTED][EMAIL PROTECTED]
 [EMAIL PROTECTED][EMAIL PROTECTED]
 






 wrote:










 http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html

 On Wed, 12 Nov 2008 12:37:07 -0300, Francisco Diaz Trepat - gmail
 [EMAIL PROTECTED] said:






 Hi all, I am using the progress bar found at extensions.
 Is it possible to translate the words of the message that appear at
 the
 status (Upload Starting... and 34% finished, 71.3M of 209.7M at
 5.9M/s;
 23
 seconds) ??

 Or put my own version of messages?

 f(t)






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











 --
 -Wicket for love

 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]









 --
 -Wicket for love

 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]








 --
 -Wicket for love

 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: Progress Bar

2008-11-13 Thread Nino Saturnino Martinez Vazquez Wael



Francisco Diaz Trepat - gmail wrote:

I kind of felt curious to knowing a little bit more about you, so hearing
the video made me wonder...
  

So now you know :)

I got knock down by management on modifying progress.js with templates.
Solution was mandate to remove Status Messages all together.
  
so css visibility: hidden added to the status class.


wupb-uploadStatus {
visibility: hidden;
}

Sad, but true.
  

Yeah but also simple..

On another topic I'm currently working on perfecting a Modeless Window
extension of the current Modal window.
  

Okay interesting..

f(t)

On Thu, Nov 13, 2008 at 3:39 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:

  

hehe yes why?


Francisco Diaz Trepat - gmail wrote:



your voice in the video?

On Thu, Nov 13, 2008 at 3:29 AM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:



  

You could also just do the js with an texttemplate, that way it should be
somewhat the same:)

I wrote something on it on my blog...



http://ninomartinez.wordpress.com/2008/09/09/apache-wicket-javascript-integration/

If you have any questions just ask...

Francisco Diaz Trepat - gmail wrote:





Hi nino, I'm on it. Very simple at first, English default text and
javascript function parameters for other values.
But I think latter on it could bring all text from server, although it
could
increase traffic unnecessarily.

f(t)

On Wed, Nov 12, 2008 at 4:43 PM, Nino Saturnino Martinez Vazquez Wael 
[EMAIL PROTECTED] wrote:





  

Francisco, feel free to provide a patch :)

Francisco Diaz Trepat - gmail wrote:







Could you be more specific?
You send me the Wicket internationalization link.

The word progress, of Progress Bar, doesn't even exist in the page.

And finally I found that it is not possible through regular
(framework)
means to i18n the Progress Bar due to the fact that the text I
referred
to
is inside (hardcoded) the JavaScript file profress.js

f(t)

On Wed, Nov 12, 2008 at 3:00 PM, Pointbreak
[EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED] [EMAIL PROTECTED]

[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED][EMAIL PROTECTED]
  


  

[EMAIL PROTECTED] [EMAIL PROTECTED]
[EMAIL PROTECTED][EMAIL PROTECTED]

[EMAIL PROTECTED][EMAIL PROTECTED]
[EMAIL PROTECTED][EMAIL PROTECTED]
  





  

wrote:









  

http://cwiki.apache.org/WICKET/everything-about-wicket-internationalization.html

On Wed, 12 Nov 2008 12:37:07 -0300, Francisco Diaz Trepat - gmail
[EMAIL PROTECTED] said:








Hi all, I am using the progress bar found at extensions.
Is it possible to translate the words of the message that appear at
the
status (Upload Starting... and 34% finished, 71.3M of 209.7M at
5.9M/s;
23
seconds) ??

Or put my own version of messages?

f(t)






  

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











  

--
-Wicket for love

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]









  

--
-Wicket for love

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]







  

--
-Wicket for love

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]





  


--
-Wicket for love

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: authenticatedWebApplication error with jaas

2008-11-13 Thread bruno . borges

Show us the code that declares your WicketApplication class.

Specially the import header and the public class ...  line.

Regards,
Bruno

On Nov 13, 2008 2:24pm, francesco dicarlo [EMAIL PROTECTED] wrote:

hi i've switched my wicket application from webapplication to

authenticatedwebapplication with jaas authentication on jboss.



now it doesn't start giving me errors on filter in web.xml telling me that

must be a subclass of webapplication.



How must i declare now the web.xml in order to run

authenticatedwebapplication?



here the log



ERROR [[/sisco]] Exception starting filter wicket.sisco

org.apache.wicket.WicketRuntimeException: Application class

it.eurosoft.WicketApplication must be a subclass of WebApplication



and the web.xml







wicket.sisco



org.apache.wicket.protocol.http.WicketFilter



applicationClassName

it.eurosoft.WicketApplication





Setting a button press on hitting the enter key from the keyboard

2008-11-13 Thread vishy_sb

I have a form inside a modal window. The form has a textfield field and a
button in it. I want to set the focus on the button when I enter something
in the textfield. I tried adding the following behaviour to the textfield
but it is not working. 

textfield.add(new AbstractBehavior(){

private static final long serialVersionUID = 1L;
   
@Override
public void onComponentTag(Component component, ComponentTag 
tag) {
tag.put(onkeydown,
if(event.keyCode==13){searchButton.click();return false;});
}
}); 

Also can someone suggest a way to hook up the button in the form with the
Enter key on the keyboard so that whenever I input something in the
textfield and hit the enter key the onClick() or onSubmit() event of the
button gets fired???
 
Any help will be greatly appreciated.

Thanks,
vishy
-- 
View this message in context: 
http://www.nabble.com/Setting-a-button-press-on-hitting-the-enter-key-from-the-keyboard-tp20488048p20488048.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: Per-user, event-aware page/component caching

2008-11-13 Thread Jeremy Thomerson
Yeah - don't stick panels or pages in session - you'll have weird bugs come
up, and won't get much help here because it's not really a good idea to
share components between threads.

Much better is to create a caching data model - that's what really needs to
be cached anyway - the data for the component, not the component itself.
Use a caching service in your service layer that gives you the reusability
of a cache elsewhere in your app.


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

On Thu, Nov 13, 2008 at 11:45 AM, Igor Vaynberg [EMAIL PROTECTED]wrote:

 oh, and of course, if you do this you are on your own as far as
 threading goes inside your components.

 i still think that instead of doing this implementing a general cache
 is a much better approach.

 instead of doing
 tvdata tv=tvsource.getdata();
 musicdata music=musicsource.getdata();

 restructure your business logic to work like this:

 tvdata tv=((tvresponse)datasource.getdata(new tvrequest(params)).tvdata();
 musicdata music=((musicresponse)datasource.getdata(new
 musicrequest(params)).musicdata();

 this gives you a single point of access from higher tiers (ui,
 webservices, foo) and also gives you one place to cache.
 architecturally this is much more sound, of course i dont know your
 exact situation.

 -igor

 On Thu, Nov 13, 2008 at 9:40 AM, Igor Vaynberg [EMAIL PROTECTED]
 wrote:
  you can simply stick a panel or page into session. alternatively you
  can override ipagefactory and implement a cache infront of that for
  bookmarkable pages.
 
  as far as events, etc, you would have to visit all cached things in
  cache and do whatever it is you need to do. wicket cant help you here
  because the cache implementation is purely your own.
 
  -igor
 
  On Thu, Nov 13, 2008 at 8:28 AM, Tremelune [EMAIL PROTECTED]
 wrote:
 
  We have many components that require heavy operations to gather the
 necessary
  data, and I was wondering if there was a way to cache the Wicket objects
  that have pulled the data.
 
  I have seen similar questions come up before, and the common answer was
 to
  simply cache the data being pulled, and not the Wicket objects. Because
 we
  have components pulling data from different places in different ways,
 this
  would be like putting a padlock on my TV and guitar instead of locking
 the
  door to my apartment. It also means that, if I got a new stereo, I'd
 have to
  remember to handle that new case as well, instead of it being handled by
 the
  door lock automagically. My last example in this unusual metaphor would
 be
  my iPod: It's too cheap to explicitly handle, but it's nice to have the
 lock
  on the front door take care of it anyway.
 
  My particular app would benefit from a per-user cache based on the way
 data
  is pulled. Pages are different for each user, but once they view the
 page,
  data rarely changes. I imagine this would be as easy as stuffing
 something
  in the Wicket session. It would stagnate with the HTTP session
 naturally.
 
  My app would also need a few hooks or event listeners to trigger a
 clear.
  For instance, if a user deletes a Horse from his Barn, I would want the
  BarnPanel to know it needs to refresh on the next rendering.
 
  Is there anything like this that exists in Wicket? Or pieces I could use
 to
  build it? I think it would be very handy.
  --
  View this message in context:
 http://www.nabble.com/Per-user%2C-event-aware-page-component-caching-tp20481886p20481886.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: [ANNOUNCE] Apache Wicket 1.4 release candidate 1

2008-11-13 Thread Jörn Zaefferer
Sorry, I didn't. Looks like its all there, thanks!

Jörn

On Thu, Nov 13, 2008 at 6:20 PM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
 Did you read the migration guide?

 Martijn

 On Thu, Nov 13, 2008 at 5:49 PM, Jörn Zaefferer
 [EMAIL PROTECTED] wrote:
 The following subprojects are incompatible with Wicket 1.4 RC1 and
 therefore block us from migrating: wicket-ioc (only 1.3.5 available)
 and wicket-spring-annot (only 1.3.5 available).

 wicket-spring-annot needs to change its usage of MetaDataKey in
 SpringComponentInjector (constructor doesn't accept any arguments
 anymore) and wicket-ioc needs to be recompiled using the JDK's
 ConcurrentHashMap instead of wicket.util.concurrent.

 Jörn

 On Thu, Nov 13, 2008 at 3:06 PM, Frank Bille [EMAIL PROTECTED] wrote:
 The Apache Wicket team is proud to present the first release candidate of
 Apache Wicket 1.4.  This is the first Wicket version with java 1.5 as
 minimum requirement.

 Eager people click here to download the distribution, others can read
 further:

 * http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1

 We thank you for your patience and support.

 The Wicket Team

 - Apache Wicket

 Apache Wicket is a component oriented Java web application framework. With
 proper mark-up/logic separation, a POJO data model, and a refreshing lack of
 XML, Apache Wicket makes developing web-apps simple and enjoyable again.
 Swap the boilerplate, complex debugging and brittle code for powerful,
 reusable components written with plain Java and HTML.

 You can find out more about Apache Wicket on our website:

 * http://wicket.apache.org

 - This release

 The Apache Wicket team is proud to announce the availability of the third
 milestone release of our first java 1.5 Wicket version: Apache Wicket
 1.4-m3. This is the first release with java 1.5 as a minimum. Almost
 everything has been converted to java 1.5. If you find something missing,
 please help us and send a message to the dev@ or user@ list.

 - Migrating from 1.3

 If you are coming from Wicket 1.3, you really want to read our migration
 guide, found on the wiki:

 * http://cwiki.apache.org/WICKET/migrate-14.html

 h3. Downloading the release

 You can download the release from the official Apache mirror system, and you
 can find it through the following link:

 * http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1/

 For the Maven and Ivy fans out there: update your pom's to the following,
 and everything will be downloaded automatically:

 dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.4-rc1/version
 /dependency

 Substitute the artifact ID with the projects of your liking to get the other
 projects.

 Please note that we don't prescribe a Logging implementation for SLF4J. You
 need to specify yourself which one you prefer. Read more about SLF4J here:
 http://slf4j.org

 - Validating the release

 The release has been signed by Frank Bille, your release manager for today.
 The public key can be found in the KEYS file in the download area. Download
 the KEYS file only from the Apache website.

 * http://www.apache.org/dist/wicket/1.4-rc1/KEYS

 Instructions on how to validate the release can be found here:

 * http://www.apache.org/dev/release-signing.html#check-integrity

 - Reporting bugs

 In case you do encounter a bug, we would appreciate a report in our JIRA:

 * http://issues.apache.org/jira/browse/WICKET

 - The distribution

 In the distribution you will find a README. The README contains instructions
 on how to build from source yourself. You also find a CHANEGELOG-1.4 which
 contains a list of all things that have been fixed, added and/or removed
 since the first release in the 1.4 branch.

 - Release Notes - Wicket - Version 1.4-RC1

 ** Sub-task
* [WICKET-1624] - ServletWebRequest.getRelativePathPrefixToContextRoot()
 double decodes servlet path
* [WICKET-1805] - Allow to change charset in StringRequestTarget: change
 CharSet used by the OutStream as well

 ** Bug
* [WICKET-550] - Use WebRequestEncoder everywhere a query string is
 constructed
* [WICKET-861] - NumberFormatException with
 UrlCompressingWebRequestProcessor in WicketTester
* [WICKET-1120] - Problem closing a ModalWindow when used through an
 IFrame
* [WICKET-1180] - Converters : final vs non final
* [WICKET-1220] - Component.visitParents visits the calling component as
 well
* [WICKET-1311] - Improper HTML escaping for most wicket components and
 extensions
* [WICKET-1376] - Using AbstractAjaxTimerBehavior and mounting that page
 gives exception
* [WICKET-1425] - appendToInit() method is not called in class
 DatePicker
* [WICKET-1436] - Unable to use properties file when generating XML
 files
* [WICKET-1496] - DataTable.html does not validate (HTML
 4.01/XHTML-Strict)
* [WICKET-1535] - ExternalLink JavaScript not working in FF 3
* [WICKET-1565] - AbstractTransformerBehavior can't be added to a page
* [WICKET-1582] - 

Re: Re: Per-user, event-aware page/component caching

2008-11-13 Thread bruno . borges

What you could actually do, is implement a Component Pool.

Take a look at the Commons-Pool project and then, role your own pool. :-)

Combine a pool with an application or a session and good luck!

Apache Commons Pool Project
http://commons.apache.org/pool/

Regards,
Bruno

On Nov 13, 2008 5:43pm, Jeremy Thomerson [EMAIL PROTECTED] wrote:
Yeah - don't stick panels or pages in session - you'll have weird bugs  

come


up, and won't get much help here because it's not really a good idea to

share components between threads.



Much better is to create a caching data model - that's what really needs  

to


be cached anyway - the data for the component, not the component itself.

Use a caching service in your service layer that gives you the reusability

of a cache elsewhere in your app.





--

Jeremy Thomerson

http://www.wickettraining.com



On Thu, Nov 13, 2008 at 11:45 AM, Igor Vaynberg wrote:



 oh, and of course, if you do this you are on your own as far as

 threading goes inside your components.



 i still think that instead of doing this implementing a general cache

 is a much better approach.



 instead of doing

 tvdata tv=tvsource.getdata();

 musicdata music=musicsource.getdata();



 restructure your business logic to work like this:



 tvdata tv=((tvresponse)datasource.getdata(new  

tvrequest(params)).tvdata();


 musicdata music=((musicresponse)datasource.getdata(new

 musicrequest(params)).musicdata();



 this gives you a single point of access from higher tiers (ui,

 webservices, foo) and also gives you one place to cache.

 architecturally this is much more sound, of course i dont know your

 exact situation.



 -igor



 On Thu, Nov 13, 2008 at 9:40 AM, Igor Vaynberg

 wrote:

  you can simply stick a panel or page into session. alternatively you

  can override ipagefactory and implement a cache infront of that for

  bookmarkable pages.

 

  as far as events, etc, you would have to visit all cached things in

  cache and do whatever it is you need to do. wicket cant help you here

  because the cache implementation is purely your own.

 

  -igor

 

  On Thu, Nov 13, 2008 at 8:28 AM, Tremelune

 wrote:

 

  We have many components that require heavy operations to gather the

 necessary

  data, and I was wondering if there was a way to cache the Wicket  

objects


  that have pulled the data.

 

  I have seen similar questions come up before, and the common answer  

was


 to

  simply cache the data being pulled, and not the Wicket objects.  

Because


 we

  have components pulling data from different places in different ways,

 this

  would be like putting a padlock on my TV and guitar instead of  

locking


 the

  door to my apartment. It also means that, if I got a new stereo, I'd

 have to

  remember to handle that new case as well, instead of it being  

handled by


 the

  door lock automagically. My last example in this unusual metaphor  

would


 be

  my iPod: It's too cheap to explicitly handle, but it's nice to have  

the


 lock

  on the front door take care of it anyway.

 

  My particular app would benefit from a per-user cache based on the  

way


 data

  is pulled. Pages are different for each user, but once they view the

 page,

  data rarely changes. I imagine this would be as easy as stuffing

 something

  in the Wicket session. It would stagnate with the HTTP session

 naturally.

 

  My app would also need a few hooks or event listeners to trigger a

 clear.

  For instance, if a user deletes a Horse from his Barn, I would want  

the


  BarnPanel to know it needs to refresh on the next rendering.

 

  Is there anything like this that exists in Wicket? Or pieces I could  

use


 to

  build it? I think it would be very handy.

  --

  View this message in context:

  

http://www.nabble.com/Per-user%2C-event-aware-page-component-caching-tp20481886p20481886.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: Setting a button press on hitting the enter key from the keyboard

2008-11-13 Thread vishy_sb

Thanks for the reply Nino.

I was able to get it to work using the thread at
http://www.nabble.com/IE7-ignores-AjaxButton-onSubmit-when-I-use-the-keyboard-enter-key-td20234862.html#a20236544

Thanks for the help though,
vishy


Nino.Martinez wrote:
 
 Checkout the wicket input events project..:
 
 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events
 
 vishy_sb wrote:
 I have a form inside a modal window. The form has a textfield field and a
 button in it. I want to set the focus on the button when I enter
 something
 in the textfield. I tried adding the following behaviour to the textfield
 but it is not working. 

 textfield.add(new AbstractBehavior(){

  private static final long serialVersionUID = 1L;
 
  @Override
  public void onComponentTag(Component component, ComponentTag
 tag) {
  tag.put(onkeydown,
 if(event.keyCode==13){searchButton.click();return false;});
  }
  }); 

 Also can someone suggest a way to hook up the button in the form with the
 Enter key on the keyboard so that whenever I input something in the
 textfield and hit the enter key the onClick() or onSubmit() event of the
 button gets fired???
  
 Any help will be greatly appreciated.

 Thanks,
 vishy
   
 
 -- 
 -Wicket for love
 
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Setting-a-button-press-on-hitting-the-enter-key-from-the-keyboard-tp20488048p20489286.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]



AW: [ANNOUNCE] Apache Wicket 1.4 release candidate 1

2008-11-13 Thread Bosten, Marcus
... you are my heros 

Best Regards,
Marcus

- Originalnachricht -
Von: [EMAIL PROTECTED] [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]; users@wicket.apache.org 
users@wicket.apache.org; Apache Wicket Development [EMAIL PROTECTED]
Gesendet: Thu Nov 13 15:06:51 2008
Betreff: [ANNOUNCE] Apache Wicket 1.4 release candidate 1

The Apache Wicket team is proud to present the first release candidate of
Apache Wicket 1.4.  This is the first Wicket version with java 1.5 as
minimum requirement.

Eager people click here to download the distribution, others can read
further:

* http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1

We thank you for your patience and support.

The Wicket Team

- Apache Wicket

Apache Wicket is a component oriented Java web application framework. With
proper mark-up/logic separation, a POJO data model, and a refreshing lack of
XML, Apache Wicket makes developing web-apps simple and enjoyable again.
Swap the boilerplate, complex debugging and brittle code for powerful,
reusable components written with plain Java and HTML.

You can find out more about Apache Wicket on our website:

* http://wicket.apache.org

- This release

The Apache Wicket team is proud to announce the availability of the third
milestone release of our first java 1.5 Wicket version: Apache Wicket
1.4-m3. This is the first release with java 1.5 as a minimum. Almost
everything has been converted to java 1.5. If you find something missing,
please help us and send a message to the dev@ or user@ list.

- Migrating from 1.3

If you are coming from Wicket 1.3, you really want to read our migration
guide, found on the wiki:

* http://cwiki.apache.org/WICKET/migrate-14.html

h3. Downloading the release

You can download the release from the official Apache mirror system, and you
can find it through the following link:

* http://www.apache.org/dyn/closer.cgi/wicket/1.4-rc1/

For the Maven and Ivy fans out there: update your pom's to the following,
and everything will be downloaded automatically:

dependency
groupIdorg.apache.wicket/groupId
artifactIdwicket/artifactId
version1.4-rc1/version
/dependency

Substitute the artifact ID with the projects of your liking to get the other
projects.

Please note that we don't prescribe a Logging implementation for SLF4J. You
need to specify yourself which one you prefer. Read more about SLF4J here:
http://slf4j.org

- Validating the release

The release has been signed by Frank Bille, your release manager for today.
The public key can be found in the KEYS file in the download area. Download
the KEYS file only from the Apache website.

* http://www.apache.org/dist/wicket/1.4-rc1/KEYS

Instructions on how to validate the release can be found here:

* http://www.apache.org/dev/release-signing.html#check-integrity

- Reporting bugs

In case you do encounter a bug, we would appreciate a report in our JIRA:

* http://issues.apache.org/jira/browse/WICKET

- The distribution

In the distribution you will find a README. The README contains instructions
on how to build from source yourself. You also find a CHANEGELOG-1.4 which
contains a list of all things that have been fixed, added and/or removed
since the first release in the 1.4 branch.

- Release Notes - Wicket - Version 1.4-RC1

** Sub-task
* [WICKET-1624] - ServletWebRequest.getRelativePathPrefixToContextRoot()
double decodes servlet path
* [WICKET-1805] - Allow to change charset in StringRequestTarget: change
CharSet used by the OutStream as well

** Bug
* [WICKET-550] - Use WebRequestEncoder everywhere a query string is
constructed
* [WICKET-861] - NumberFormatException with
UrlCompressingWebRequestProcessor in WicketTester
* [WICKET-1120] - Problem closing a ModalWindow when used through an
IFrame
* [WICKET-1180] - Converters : final vs non final
* [WICKET-1220] - Component.visitParents visits the calling component as
well
* [WICKET-1311] - Improper HTML escaping for most wicket components and
extensions
* [WICKET-1376] - Using AbstractAjaxTimerBehavior and mounting that page
gives exception
* [WICKET-1425] - appendToInit() method is not called in class
DatePicker
* [WICKET-1436] - Unable to use properties file when generating XML
files
* [WICKET-1496] - DataTable.html does not validate (HTML
4.01/XHTML-Strict)
* [WICKET-1535] - ExternalLink JavaScript not working in FF 3
* [WICKET-1565] - AbstractTransformerBehavior can't be added to a page
* [WICKET-1582] - WicketTester executeAjaxEvent onclick generating
non-AJAX response
* [WICKET-1583] - NPE in EnclosureResolver
* [WICKET-1627] - AbstractRequestTargetUrlCodingStrategy improper user
of URLEncoder.encode
* [WICKET-1634] - ClassName needs conversion from Path to dotted
notation in AutoLinkResolver
* [WICKET-1648] - AbstractRequestTargetUrlCodingStrategy(line 174)
throws confusing exception. It would be better redirect to 404-page in this
case.
* [WICKET-1652] - Hard-coded 

Label with AjaxSelfUpdatingTimerBehavior not refreshing

2008-11-13 Thread a_godin

I'm trying something very simple ... I have a form with many panels and in
one of those panels, I want the current date and time to be refreshed
periodically.

final Label msgStatutTransfert = new Label(msgStatutTransfert, new
Date().toString());
msgStatutTransfert.setOutputMarkupId(true);
msgStatutTransfert.add(new
AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
frmInfosTransfert.add(msgStatutTransfert); // one of my panels

When the page loads, it puts the current date in the label but then it
doesn't reshesh ... I looked at the debug info ... here's what I get

?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
id=InfosTransferts_frmInfosTransfert_msgStatutTransfert ![CDATA[Thu Nov
13 16:09:53 EST 2008]]/componentevaluate![CDATA[setTimeout(var
wcall=wicketAjaxGet('/ADHO/app/?wicket:interface=:3:InfosTransferts:frmInfosTransfert:msgStatutTransfert:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true',
function() { }, function() { });, 1000);]]/evaluate/ajax-response
INFO: Response parsed. Now invoking steps...
INFO: Response processed successfully.
INFO: Invoking post-call handler(s)...
INFO: 
INFO: Initiating Ajax GET request on
/ADHO/app/?wicket:interface=:3:InfosTransferts:frmInfosTransfert:msgStatutTransfert:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=0.9564825826726502
INFO: Invoking pre-call handler(s)...
INFO: Received ajax response (572 characters)
INFO: 

Any clue what I'm forgetting ?  I'm using wicket-1.2.6 ...
-- 
View this message in context: 
http://www.nabble.com/Label-with-AjaxSelfUpdatingTimerBehavior-not-refreshing-tp20490454p20490454.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: Label with AjaxSelfUpdatingTimerBehavior not refreshing

2008-11-13 Thread Jeremy Thomerson
Yes - you're not understanding models.  You created a Label with a static
String - the current time at the time of creation.  You need to use a model,
which is a data finder  something like:

new Label(msgStatutTransfert, new AbstractReadOnlyModelDate() {
 public Date getObject() {
  return new Date();
 }
});

Also, read: http://cwiki.apache.org/WICKET/working-with-wicket-models.html
and buy Wicket in Action.

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

On Thu, Nov 13, 2008 at 3:58 PM, a_godin [EMAIL PROTECTED] wrote:


 I'm trying something very simple ... I have a form with many panels and in
 one of those panels, I want the current date and time to be refreshed
 periodically.

final Label msgStatutTransfert = new Label(msgStatutTransfert, new
 Date().toString());
msgStatutTransfert.setOutputMarkupId(true);
msgStatutTransfert.add(new
 AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
frmInfosTransfert.add(msgStatutTransfert); // one of my panels

 When the page loads, it puts the current date in the label but then it
 doesn't reshesh ... I looked at the debug info ... here's what I get

 ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 id=InfosTransferts_frmInfosTransfert_msgStatutTransfert ![CDATA[Thu Nov
 13 16:09:53 EST 2008]]/componentevaluate![CDATA[setTimeout(var

 wcall=wicketAjaxGet('/ADHO/app/?wicket:interface=:3:InfosTransferts:frmInfosTransfert:msgStatutTransfert:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true',
 function() { }, function() { });, 1000);]]/evaluate/ajax-response
 INFO: Response parsed. Now invoking steps...
 INFO: Response processed successfully.
 INFO: Invoking post-call handler(s)...
 INFO:
 INFO: Initiating Ajax GET request on

 /ADHO/app/?wicket:interface=:3:InfosTransferts:frmInfosTransfert:msgStatutTransfert:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=0.9564825826726502
 INFO: Invoking pre-call handler(s)...
 INFO: Received ajax response (572 characters)
 INFO:

 Any clue what I'm forgetting ?  I'm using wicket-1.2.6 ...
 --
 View this message in context:
 http://www.nabble.com/Label-with-AjaxSelfUpdatingTimerBehavior-not-refreshing-tp20490454p20490454.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: Label with AjaxSelfUpdatingTimerBehavior not refreshing

2008-11-13 Thread Bruno Borges
The problem is not just about understanding models. It's deeper than that.

You have to understand that Wicket architecture is -hardly-speaking- like
Java Swing. Objects that you create, will live just like a JButton, JPanel,
whatever.

Label msgStatutTransfert = new Label(msgStatutTransfert, new
Date().toString());

Here, you create a Label object, and you want an Ajax Update Event to change
the date. Well, that will never happen, because in nowhere you are actually
updating the 'msgStatusTransfert' object's value. It was created containing
an instance of a String (imutable object) from the toString() method of a
Date instance.

Being more specific (like Swing):
  Imagine that you create an instance of JButton(new Date().toString()); and
add that to a JFrame. Will that value update by itself after calling
myJFrame.repaint();? No. Only if you override the repaint() method and
before calling super.repaint(), you code something like
myButton.setValue(new Date().toString());

Understand that, and you will easily - and hopefully quickly - understand
why we use Models.

Have fun with Wicket!

Cheers,
Bruno Borges
blog.brunoborges.com.br
+55 21 76727099

The glory of great men should always be
measured by the means they have used to
acquire it.
- Francois de La Rochefoucauld


On Thu, Nov 13, 2008 at 9:13 PM, Jeremy Thomerson [EMAIL PROTECTED]
 wrote:

 Yes - you're not understanding models.  You created a Label with a static
 String - the current time at the time of creation.  You need to use a
 model,
 which is a data finder  something like:

 new Label(msgStatutTransfert, new AbstractReadOnlyModelDate() {
 public Date getObject() {
  return new Date();
 }
 });

 Also, read: http://cwiki.apache.org/WICKET/working-with-wicket-models.html
 and buy Wicket in Action.

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

 On Thu, Nov 13, 2008 at 3:58 PM, a_godin [EMAIL PROTECTED]
 wrote:

 
  I'm trying something very simple ... I have a form with many panels and
 in
  one of those panels, I want the current date and time to be refreshed
  periodically.
 
 final Label msgStatutTransfert = new Label(msgStatutTransfert,
 new
  Date().toString());
 msgStatutTransfert.setOutputMarkupId(true);
 msgStatutTransfert.add(new
  AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
 frmInfosTransfert.add(msgStatutTransfert); // one of my panels
 
  When the page loads, it puts the current date in the label but then it
  doesn't reshesh ... I looked at the debug info ... here's what I get
 
  ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
  id=InfosTransferts_frmInfosTransfert_msgStatutTransfert ![CDATA[Thu
 Nov
  13 16:09:53 EST 2008]]/componentevaluate![CDATA[setTimeout(var
 
 
 wcall=wicketAjaxGet('/ADHO/app/?wicket:interface=:3:InfosTransferts:frmInfosTransfert:msgStatutTransfert:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true',
  function() { }, function() { });, 1000);]]/evaluate/ajax-response
  INFO: Response parsed. Now invoking steps...
  INFO: Response processed successfully.
  INFO: Invoking post-call handler(s)...
  INFO:
  INFO: Initiating Ajax GET request on
 
 
 /ADHO/app/?wicket:interface=:3:InfosTransferts:frmInfosTransfert:msgStatutTransfert:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=0.9564825826726502
  INFO: Invoking pre-call handler(s)...
  INFO: Received ajax response (572 characters)
  INFO:
 
  Any clue what I'm forgetting ?  I'm using wicket-1.2.6 ...
  --
  View this message in context:
 
 http://www.nabble.com/Label-with-AjaxSelfUpdatingTimerBehavior-not-refreshing-tp20490454p20490454.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: Label with AjaxSelfUpdatingTimerBehavior not refreshing

2008-11-13 Thread Bruno Borges
Jeremy, I forgot to ask you: how many beers is Martijn giving to you to
promote the book? I want that deal too!

cheers,
Bruno Borges
blog.brunoborges.com.br
+55 21 76727099

The glory of great men should always be
measured by the means they have used to
acquire it.
- Francois de La Rochefoucauld


On Thu, Nov 13, 2008 at 9:28 PM, Bruno Borges [EMAIL PROTECTED]wrote:

 The problem is not just about understanding models. It's deeper than that.

 You have to understand that Wicket architecture is -hardly-speaking- like
 Java Swing. Objects that you create, will live just like a JButton, JPanel,
 whatever.

 Label msgStatutTransfert = new Label(msgStatutTransfert, new
 Date().toString());

 Here, you create a Label object, and you want an Ajax Update Event to
 change the date. Well, that will never happen, because in nowhere you are
 actually updating the 'msgStatusTransfert' object's value. It was created
 containing an instance of a String (imutable object) from the toString()
 method of a Date instance.

 Being more specific (like Swing):
   Imagine that you create an instance of JButton(new Date().toString());
 and add that to a JFrame. Will that value update by itself after calling
 myJFrame.repaint();? No. Only if you override the repaint() method and
 before calling super.repaint(), you code something like
 myButton.setValue(new Date().toString());

 Understand that, and you will easily - and hopefully quickly - understand
 why we use Models.

 Have fun with Wicket!

 Cheers,
 Bruno Borges
 blog.brunoborges.com.br
 +55 21 76727099

 The glory of great men should always be
 measured by the means they have used to
 acquire it.
 - Francois de La Rochefoucauld



 On Thu, Nov 13, 2008 at 9:13 PM, Jeremy Thomerson 
 [EMAIL PROTECTED] wrote:

 Yes - you're not understanding models.  You created a Label with a static
 String - the current time at the time of creation.  You need to use a
 model,
 which is a data finder  something like:

 new Label(msgStatutTransfert, new AbstractReadOnlyModelDate() {
 public Date getObject() {
  return new Date();
 }
 });

 Also, read:
 http://cwiki.apache.org/WICKET/working-with-wicket-models.html
 and buy Wicket in Action.

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

 On Thu, Nov 13, 2008 at 3:58 PM, a_godin [EMAIL PROTECTED]
 wrote:

 
  I'm trying something very simple ... I have a form with many panels and
 in
  one of those panels, I want the current date and time to be refreshed
  periodically.
 
 final Label msgStatutTransfert = new Label(msgStatutTransfert,
 new
  Date().toString());
 msgStatutTransfert.setOutputMarkupId(true);
 msgStatutTransfert.add(new
  AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
 frmInfosTransfert.add(msgStatutTransfert); // one of my panels
 
  When the page loads, it puts the current date in the label but then it
  doesn't reshesh ... I looked at the debug info ... here's what I get
 
  ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
  id=InfosTransferts_frmInfosTransfert_msgStatutTransfert ![CDATA[Thu
 Nov
  13 16:09:53 EST 2008]]/componentevaluate![CDATA[setTimeout(var
 
 
 wcall=wicketAjaxGet('/ADHO/app/?wicket:interface=:3:InfosTransferts:frmInfosTransfert:msgStatutTransfert:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true',
  function() { }, function() { });, 1000);]]/evaluate/ajax-response
  INFO: Response parsed. Now invoking steps...
  INFO: Response processed successfully.
  INFO: Invoking post-call handler(s)...
  INFO:
  INFO: Initiating Ajax GET request on
 
 
 /ADHO/app/?wicket:interface=:3:InfosTransferts:frmInfosTransfert:msgStatutTransfert:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=0.9564825826726502
  INFO: Invoking pre-call handler(s)...
  INFO: Received ajax response (572 characters)
  INFO:
 
  Any clue what I'm forgetting ?  I'm using wicket-1.2.6 ...
  --
  View this message in context:
 
 http://www.nabble.com/Label-with-AjaxSelfUpdatingTimerBehavior-not-refreshing-tp20490454p20490454.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: Label with AjaxSelfUpdatingTimerBehavior not refreshing

2008-11-13 Thread Jeremy Thomerson
So far we're even on beers purchased - so I guess not enough!  I'm thinking
about adding Buy Wicket in Action to my signature to help reduce my
chances of carpal tunnel.



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

On Thu, Nov 13, 2008 at 5:30 PM, Bruno Borges [EMAIL PROTECTED]wrote:

 Jeremy, I forgot to ask you: how many beers is Martijn giving to you to
 promote the book? I want that deal too!

 cheers,
 Bruno Borges
 blog.brunoborges.com.br
 +55 21 76727099

 The glory of great men should always be
 measured by the means they have used to
 acquire it.
 - Francois de La Rochefoucauld


 On Thu, Nov 13, 2008 at 9:28 PM, Bruno Borges [EMAIL PROTECTED]
 wrote:

  The problem is not just about understanding models. It's deeper than
 that.
 
  You have to understand that Wicket architecture is -hardly-speaking- like
  Java Swing. Objects that you create, will live just like a JButton,
 JPanel,
  whatever.
 
  Label msgStatutTransfert = new Label(msgStatutTransfert, new
  Date().toString());
 
  Here, you create a Label object, and you want an Ajax Update Event to
  change the date. Well, that will never happen, because in nowhere you are
  actually updating the 'msgStatusTransfert' object's value. It was created
  containing an instance of a String (imutable object) from the toString()
  method of a Date instance.
 
  Being more specific (like Swing):
Imagine that you create an instance of JButton(new Date().toString());
  and add that to a JFrame. Will that value update by itself after calling
  myJFrame.repaint();? No. Only if you override the repaint() method and
  before calling super.repaint(), you code something like
  myButton.setValue(new Date().toString());
 
  Understand that, and you will easily - and hopefully quickly - understand
  why we use Models.
 
  Have fun with Wicket!
 
  Cheers,
  Bruno Borges
  blog.brunoborges.com.br
  +55 21 76727099
 
  The glory of great men should always be
  measured by the means they have used to
  acquire it.
  - Francois de La Rochefoucauld
 
 
 
  On Thu, Nov 13, 2008 at 9:13 PM, Jeremy Thomerson 
  [EMAIL PROTECTED] wrote:
 
  Yes - you're not understanding models.  You created a Label with a
 static
  String - the current time at the time of creation.  You need to use a
  model,
  which is a data finder  something like:
 
  new Label(msgStatutTransfert, new AbstractReadOnlyModelDate() {
  public Date getObject() {
   return new Date();
  }
  });
 
  Also, read:
  http://cwiki.apache.org/WICKET/working-with-wicket-models.html
  and buy Wicket in Action.
 
  --
  Jeremy Thomerson
  http://www.wickettraining.com
 
  On Thu, Nov 13, 2008 at 3:58 PM, a_godin [EMAIL PROTECTED]
  wrote:
 
  
   I'm trying something very simple ... I have a form with many panels
 and
  in
   one of those panels, I want the current date and time to be refreshed
   periodically.
  
  final Label msgStatutTransfert = new
 Label(msgStatutTransfert,
  new
   Date().toString());
  msgStatutTransfert.setOutputMarkupId(true);
  msgStatutTransfert.add(new
   AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
  frmInfosTransfert.add(msgStatutTransfert); // one of my panels
  
   When the page loads, it puts the current date in the label but then it
   doesn't reshesh ... I looked at the debug info ... here's what I get
  
   ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
   id=InfosTransferts_frmInfosTransfert_msgStatutTransfert
 ![CDATA[Thu
  Nov
   13 16:09:53 EST 2008]]/componentevaluate![CDATA[setTimeout(var
  
  
 
 wcall=wicketAjaxGet('/ADHO/app/?wicket:interface=:3:InfosTransferts:frmInfosTransfert:msgStatutTransfert:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=true',
   function() { }, function() { });,
 1000);]]/evaluate/ajax-response
   INFO: Response parsed. Now invoking steps...
   INFO: Response processed successfully.
   INFO: Invoking post-call handler(s)...
   INFO:
   INFO: Initiating Ajax GET request on
  
  
 
 /ADHO/app/?wicket:interface=:3:InfosTransferts:frmInfosTransfert:msgStatutTransfert:-1:IUnversionedBehaviorListenerwicket:behaviorId=0wicket:ignoreIfNotActive=truerandom=0.9564825826726502
   INFO: Invoking pre-call handler(s)...
   INFO: Received ajax response (572 characters)
   INFO:
  
   Any clue what I'm forgetting ?  I'm using wicket-1.2.6 ...
   --
   View this message in context:
  
 
 http://www.nabble.com/Label-with-AjaxSelfUpdatingTimerBehavior-not-refreshing-tp20490454p20490454.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]
  
  
 
 
 



Page references and serialization

2008-11-13 Thread Cristiano Kliemann
Hi!

Some questions about Wicket serialization...

Let's say I have two pages, A and B, and page B holds a reference to page A.
First, an instance of page A is rendered and gets serialized by Wicket. Then
the user clicks on a button that creates an instance of page B, sets a
reference to the current page A and executes setCurrentPage using page B as
the response page, like the following:

PageB b = new PageB();
b.setPageA(this);
setResponsePage(b);

The first question is: when the page B gets serialized, Wicket serializes
the instance of page A again, right? If several of my pages need to hold
references to other pages, the page store gets very big. I know that Wicket
must serialize the same instance again because one of its attributes might
have been changed.

In my application, sometimes I need to hold references to the page that
originated certain operations. Later, the user has the option to go back to
that page. The 'problem' is that the originated page gets serialized all the
time, and I don't need that. It gets worse when I have a chain of
references.

So, another question is: what's the best way to reference another page
without serializing it again? I know I can hold the page's page map, id and
version and get the instance on demand. Is it a good solution? Is there
someting ready for that?

Thanks
Cristiano


Beta invite: try Wicket 1.4RC1 on EC2

2008-11-13 Thread swashbuck1r

Congrats to the Wicket team for releasing the 1.4 RC today.

If any Wicket developers are interested in playing around with the new
version of Wicket on EC2, I've added 10 invites to the Stax private beta for
Wicket users on this list to use.  We've also deployed a new Stax
application template for Wicket to get you up and running faster.  This link
will give you more info about Stax, and let you signup.

http://www.stax.net/?inviteCode=wicketcool
http://www.stax.net/?inviteCode=wicketcool 

This is out first template for the Wicket community, so let us know if
there's anything you'd like to see added to it to smooth out the getting
started expereince.

-Spike (Founder, Stax Networks)
-- 
View this message in context: 
http://www.nabble.com/Beta-invite%3A-try-Wicket-1.4RC1-on-EC2-tp20493826p20493826.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: Page references and serialization

2008-11-13 Thread James Carman
Do the pages you need to go back to need to be the exact same
instances (do you need that exact state)?

On Thu, Nov 13, 2008 at 9:20 PM, Cristiano Kliemann
[EMAIL PROTECTED] wrote:
 Hi!

 Some questions about Wicket serialization...

 Let's say I have two pages, A and B, and page B holds a reference to page A.
 First, an instance of page A is rendered and gets serialized by Wicket. Then
 the user clicks on a button that creates an instance of page B, sets a
 reference to the current page A and executes setCurrentPage using page B as
 the response page, like the following:

 PageB b = new PageB();
 b.setPageA(this);
 setResponsePage(b);

 The first question is: when the page B gets serialized, Wicket serializes
 the instance of page A again, right? If several of my pages need to hold
 references to other pages, the page store gets very big. I know that Wicket
 must serialize the same instance again because one of its attributes might
 have been changed.

 In my application, sometimes I need to hold references to the page that
 originated certain operations. Later, the user has the option to go back to
 that page. The 'problem' is that the originated page gets serialized all the
 time, and I don't need that. It gets worse when I have a chain of
 references.

 So, another question is: what's the best way to reference another page
 without serializing it again? I know I can hold the page's page map, id and
 version and get the instance on demand. Is it a good solution? Is there
 someting ready for that?

 Thanks
 Cristiano


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



Re: OFF TOPIC - all-in-one wysiwyg website package?

2008-11-13 Thread Cristina

Hi Jeremy,

I believe Webnode (http://www.webnode.com/en/) may be what you're looking
for... It's far superior than Synthasite, which is already quite good. Both
are perfect tools for almost static sites as they support contact forms,
as well as a number of interactive widgets.

Both also offer professional quality, fully customizable templates, but
Webnode's are really beautiful and their CSS code is open.

Hope this helps,

Cristina



Jeremy Thomerson-5 wrote:
 
 
 [...]
- Total non-technical control over adding and editing pages / content
(wysiwyg)
- Control looks by using themes that can be downloaded or maybe editing
CSS
- Possibly plugins for things like RSS feeds / contact pages / and/or
e-commerce stores
- Can be any language - I have a server to put it on, so I'm not
 adverse
to PHP / Python / MySQL / etc...
- Preferably I unzip a copy of it to a directory for them, give them
access to the admin (maybe setup a MySQL DB for them), and I'm DONE!
 
 I've even thought of trying to build this out of BRIX, but I'm not sure
 that's the right answer, plus then there wouldn't be any plugins already
 available.
 
 Any tips?
 
 -- 
 Jeremy Thomerson
 http://www.wickettraining.com
 
 

-- 
View this message in context: 
http://www.nabble.com/OFF-TOPIC---all-in-one-wysiwyg-website-package--tp20473904p20494410.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: combining target.addComponent and javascript

2008-11-13 Thread Timo Rantalaiho
On Tue, 11 Nov 2008, Steve Swinsburg wrote:
 No I don't have the normal markup of the panel in the HTML as I didn't  
 really want to create it then hide it. So I just have the placeholder  
 tag. Then clicking the button is meant to replace the contents of the  
 placeholder tag with the actual content. And that works. I just can't  
 seem to get this to fire in the right order.

OK, how about you put style=display: none either in the
panel markup or in an AttributeModifier? So that when it's
visible in the Wicket sense (in the markup) it's not visible
to the browser.

This might have some problems still, it seems like it's been
tried before

  
http://www.google.fi/search?q=wicket+attributemodifier+style+display%3A+noneie=utf-8oe=utf-8aq=trls=com.ubuntu:en-US:unofficialclient=firefox-a

Best wishes,
Timo

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

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



How can I use I18N in panel before add panel to a page?

2008-11-13 Thread Anders
Hi,

I writed my own wicket panel component, and this component contains a label.
I use Component's getString() to set label's model, like:

  *//constructor*
*  public InvoiceWaferDataSetPanel(String id, InvoiceWaferDataSet dataSet)
  {
super(id);
setModel(new CompoundPropertyModel(dataSet));
...
add(new Label(subTotal, getString(subTotal)).add(new
AttributeModifier(style, true, new Model(dataSet.getSize() 
1?:display:none;
...
  }*

but below is warning message from wicket:

*[Localizer] Tried to retrieve a localized string for a component that has
not yet been added to the page. This can sometimes lead to an invalid or no
localized resource returned. Make sure you are not calling
Component#getString() inside your Component's constructor. Offending
component: [MarkupContainer [Component id = dataSet, page = No Page, path
= dataSet.InvoiceWaferDataSetPanel]]*

I defined I18N string in application properties file, like:
subTotal = Sub Total

Can anyone tell me how to solve this problem?

-- 
−−
~Mia は 最高!~
−−


Re: How can I use I18N in panel before add panel to a page?

2008-11-13 Thread Jeremy Thomerson
Use StringResourceModel.

2008/11/13 Anders [EMAIL PROTECTED]

 Hi,

 I writed my own wicket panel component, and this component contains a
 label.
 I use Component's getString() to set label's model, like:

  *//constructor*
 *  public InvoiceWaferDataSetPanel(String id, InvoiceWaferDataSet dataSet)
  {
super(id);
setModel(new CompoundPropertyModel(dataSet));
 ...
add(new Label(subTotal, getString(subTotal)).add(new
 AttributeModifier(style, true, new Model(dataSet.getSize() 
 1?:display:none;
 ...
  }*

 but below is warning message from wicket:

 *[Localizer] Tried to retrieve a localized string for a component that has
 not yet been added to the page. This can sometimes lead to an invalid or no
 localized resource returned. Make sure you are not calling
 Component#getString() inside your Component's constructor. Offending
 component: [MarkupContainer [Component id = dataSet, page = No Page, path
 = dataSet.InvoiceWaferDataSetPanel]]*

 I defined I18N string in application properties file, like:
 subTotal = Sub Total

 Can anyone tell me how to solve this problem?

 --
 −−
 ~Mia は 最高!~
 −−




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


Re: How can I use I18N in panel before add panel to a page?

2008-11-13 Thread Anders
Thank you, Jeremy.

2008/11/14 Jeremy Thomerson [EMAIL PROTECTED]

 Use StringResourceModel.

 2008/11/13 Anders [EMAIL PROTECTED]

  Hi,
 
  I writed my own wicket panel component, and this component contains a
  label.
  I use Component's getString() to set label's model, like:
 
   *//constructor*
  *  public InvoiceWaferDataSetPanel(String id, InvoiceWaferDataSet
 dataSet)
   {
 super(id);
 setModel(new CompoundPropertyModel(dataSet));
  ...
 add(new Label(subTotal, getString(subTotal)).add(new
  AttributeModifier(style, true, new Model(dataSet.getSize() 
  1?:display:none;
  ...
   }*
 
  but below is warning message from wicket:
 
  *[Localizer] Tried to retrieve a localized string for a component that
 has
  not yet been added to the page. This can sometimes lead to an invalid or
 no
  localized resource returned. Make sure you are not calling
  Component#getString() inside your Component's constructor. Offending
  component: [MarkupContainer [Component id = dataSet, page = No Page,
 path
  = dataSet.InvoiceWaferDataSetPanel]]*
 
  I defined I18N string in application properties file, like:
  subTotal = Sub Total
 
  Can anyone tell me how to solve this problem?
 
  --
  −−
  ~Mia は 最高!~
  −−
 



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




-- 
−−
~Mia は 最高!~
−−


Re: authenticatedWebApplication error with jaas

2008-11-13 Thread francesco dicarlo
package it.eurosoft;

import it.eurosoft.gui.module.login.LoginBase;
import it.eurosoft.gui.module.pratiche.PraticheBase;
import it.eurosoft.mapping.convenzioni.Convenzione;
import it.eurosoft.util.MySession;

import java.util.Locale;

import org.apache.wicket.Application;
import org.apache.wicket.Page;
import org.apache.wicket.Request;
import org.apache.wicket.Response;
import org.apache.wicket.Session;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;

import wicket.authentication.AuthenticatedWebApplication;
import wicket.authentication.AuthenticatedWebSession;
import wicket.markup.html.WebPage;

/**
 * Application object for your web application. If you want to run this
application without deploying, run the Start class.
 *
 * @see wicket.myproject.Start#main(String[])
 */
public class WicketApplication extends AuthenticatedWebApplication
{
/**
 * Constructor
 */
public WicketApplication()
{
//Session session =
HibernateUtil.getSessionFactory().getCurrentSession();
//session.beginTransaction();
}
public MySession newSession(AuthenticatedWebApplication request,
Response response) {
// TODO Auto-generated method stub
MySession mys=new MySession(request);
return (mys);
}



/**
 * @see wicket.Application#getHomePage()
 */
public Class getHomePage()
{
return LoginBase.class;
}

 public void init() {
try {
getMarkupSettings().setStripWicketTags(true);

Locale locale = Locale.getDefault();
System.out.println(Country:  + locale.getCountry());
System.out.println(Language:  + locale.getLanguage());



//this.addComponentInstantiationListener(new
SpringComponentInjector(((WebApplication)this)));


} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
 }
@Override
protected Class? extends WebPage getSignInPageClass() {
// TODO Auto-generated method stub
return null;

}
@Override
protected Class? extends AuthenticatedWebSession getWebSessionClass()
{
// TODO Auto-generated method stub
return MySession.class;
}
}


2008/11/13 [EMAIL PROTECTED]

 Show us the code that declares your WicketApplication class.

 Specially the import header and the public class ...  line.

 Regards,
 Bruno

 On Nov 13, 2008 2:24pm, francesco dicarlo [EMAIL PROTECTED] wrote:

 hi i've switched my wicket application from webapplication to

 authenticatedwebapplication with jaas authentication on jboss.



 now it doesn't start giving me errors on filter in web.xml telling me that

 must be a subclass of webapplication.



 How must i declare now the web.xml in order to run

 authenticatedwebapplication?



 here the log



 ERROR [[/sisco]] Exception starting filter wicket.sisco

 org.apache.wicket.WicketRuntimeException: Application class

 it.eurosoft.WicketApplication must be a subclass of WebApplication



 and the web.xml







 wicket.sisco



 org.apache.wicket.protocol.http.WicketFilter



 applicationClassName

 it.eurosoft.WicketApplication