Re: Hibernate session (from Spring bean) during wicketapplication startup

2010-05-24 Thread Igor Vaynberg
pull the platformtransactionmanager out and start a transaction
manually, or use @transactional annotation on some bean managed by
spring.

-igor

On Mon, May 24, 2010 at 10:53 PM, pieter claassen  wrote:
> I try to bootstrap my MySQL database during the wicket application strartup
> but get the following error with a bootstrap method in my
> wicketapplication.java. How should I best get  hold of a transaction during
> my wicket startup or if this is not possible, what is the most appropriate
> alternative?
>
> Rgds,
> Pieter
>
>
> SEVERE: Exception starting filter wicket-spring-hibernate
> org.hibernate.HibernateException: No Hibernate Session bound to thread, and
> configuration does not allow creation of non-transactional one here
>        at
> org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:63)
>        at
> org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:591)
>        at
> com.musmato.dao.application.AbstractBaseFactory.getSession(AbstractBaseFactory.java:24)
>        at
> com.musmato.dao.application.AbstractBaseFactory.getAll(AbstractBaseFactory.java:54)
>        at
> com.musmato.logic.users.UserTools.getUserbyUsername(UserTools.java:18)
>

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



Hibernate session (from Spring bean) during wicketapplication startup

2010-05-24 Thread pieter claassen
I try to bootstrap my MySQL database during the wicket application strartup
but get the following error with a bootstrap method in my
wicketapplication.java. How should I best get  hold of a transaction during
my wicket startup or if this is not possible, what is the most appropriate
alternative?

Rgds,
Pieter


SEVERE: Exception starting filter wicket-spring-hibernate
org.hibernate.HibernateException: No Hibernate Session bound to thread, and
configuration does not allow creation of non-transactional one here
at
org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:63)
at
org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:591)
at
com.musmato.dao.application.AbstractBaseFactory.getSession(AbstractBaseFactory.java:24)
at
com.musmato.dao.application.AbstractBaseFactory.getAll(AbstractBaseFactory.java:54)
at
com.musmato.logic.users.UserTools.getUserbyUsername(UserTools.java:18)


Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Jeremy Thomerson
On Mon, May 24, 2010 at 4:20 PM, Alex Objelean wrote:

>
> I don't want to insist to much, I'm not absurd, but we are technical
> people.
> Don't you think that any theorem should be proven? The least we can achieve
> is to learn a new thing about how ITL are related to memory leaks.
>
> I know it isn't easy to prove, but aren't there enough tools to help us? Is
> it really that hard to make a simple example with a worst case scenario to
> check if the presumption is indeed valid? I know it is much simpler to do
> nothing to avoid potential problems, but still do you find it a good way to
> deal with problems? Don't you believe in presumption of innocence
> principle?
>
> I don't want to bother the community, if there won't anybody willing to
> prove the problem, eventually I will spend some time to bust the myth...
>
>
I'd be happy to see you bust it.  But, like you said - we are technical
people - which is why we can postulate certain things without writing a
complex test case to prove them.
-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Alex Objelean

I don't want to insist to much, I'm not absurd, but we are technical people.
Don't you think that any theorem should be proven? The least we can achieve
is to learn a new thing about how ITL are related to memory leaks. 

I know it isn't easy to prove, but aren't there enough tools to help us? Is
it really that hard to make a simple example with a worst case scenario to
check if the presumption is indeed valid? I know it is much simpler to do
nothing to avoid potential problems, but still do you find it a good way to
deal with problems? Don't you believe in presumption of innocence principle? 

I don't want to bother the community, if there won't anybody willing to
prove the problem, eventually I will spend some time to bust the myth...

Alex 

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/announce-Release-Wicket-1-4-9-tp2228179p2229213.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Martijn Dashorst
I find the argument: a thread started outside the control of the
programmer by the JRE or a library to do some processing (e.g.
rendering an image), which inherits Wicket's thread local, causing a
leak of our thread locals rather convincing. The result would be
redeploy problems, ultimately causing the dreaded OutOfMemoryError:
permgen. Is this hard to prove? Sure it is, therefore I don't need
proof to see if this is worse than the (limited) convenience of
InheritableThreadLocal.

Martijn

On Mon, May 24, 2010 at 10:46 PM, Alex Objelean  wrote:
>
> When comparing a small feature (but still feature) proven by an use case
> (limited but still an use case) and a NON problem proven only with
> theoretical presumption (with also very limited use case), would you still
> choose reverting it? Same question for all who voted against it...
>
> Alex
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/announce-Release-Wicket-1-4-9-tp2228179p2229159.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.8

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



Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Alex Objelean

When comparing a small feature (but still feature) proven by an use case
(limited but still an use case) and a NON problem proven only with
theoretical presumption (with also very limited use case), would you still
choose reverting it? Same question for all who voted against it...

Alex
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/announce-Release-Wicket-1-4-9-tp2228179p2229159.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Spring security + remember me question

2010-05-24 Thread Altuğ Bilgin Altıntaş
Hi all;

I am using wicket + spring 3.0 + spring security 3.0

Problem is : Spring security authenticate the user via cookie (remember-me
service) but AuthenticatedWebSession couldn't understand this and populate
login panel. How can i solve it ?

Thanks

Regards.
Altug.


Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Jeremy Thomerson
On Mon, May 24, 2010 at 3:24 PM, Alex Objelean wrote:

>
> Hi Jeremy!
> Thanks for the effort put in this release. Though there is a lot of
> discussion around WICKET-2846, instead of deciding to revert it in the next
> release, I would rather suggest to take the chance for those who voted for
> reverting it to prove that it is indeed the issue.
>
> I am still skeptical about the problem and I think that reverting a non
> could create a precedent which would encourage users to do the same without
> needing to prove nothing in the problem.
>
> Thanks!
> Alex
>

Thanks for your input - please also add it to the vote (vote for reverting
2846) thread.  The community is overwhelmingly saying that they want it
reverted.  I am still +0 for it - meaning I don't care.  While you're right
that nobody has proven that it *creates* a bug, we do know that it will
exacerbate an existing bug that you may already have.  That doesn't really
bother me as much as some say that it should.  But, I also see very little
benefit to the InheritableThreadLocal since it really only serves a very
small subset of cases.  If it was more advantageous to a wider set of use
cases, I'd be in favor of keeping it.

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


Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Alex Objelean

Hi Jeremy!
Thanks for the effort put in this release. Though there is a lot of
discussion around WICKET-2846, instead of deciding to revert it in the next
release, I would rather suggest to take the chance for those who voted for
reverting it to prove that it is indeed the issue.  

I am still skeptical about the problem and I think that reverting a non
could create a precedent which would encourage users to do the same without
needing to prove nothing in the problem.  

Thanks!
Alex 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/announce-Release-Wicket-1-4-9-tp2228179p2229134.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: load file from web-inf

2010-05-24 Thread fachhoch

am  I doing right it  to load a file from web-inf folder ?

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/load-file-from-web-inf-tp2229067p2229079.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Clear URL parameters

2010-05-24 Thread andres.santana

How setRedirect(true) affects WebSession?

-
--
arsh
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Clear-URL-parameters-tp2228705p2229073.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



load file from web-inf

2010-05-24 Thread fachhoch

Mine is wicket application ,In one of my page I am trying to load a file
which is in my web-inf folder.


here the code
InputStream 
inputStream=WebApplication.get().getServletContext().getResourceAsStream("/WEB-INF/downlods/HelpManual.pdf");


the inputstream is always null what am I doing  wrong ?

-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/load-file-from-web-inf-tp2229067p2229067.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



JS and CSS issues with Panel or WebMarkupContainer

2010-05-24 Thread taygolf

Hey guys,

I have a webpage that contains several panels. Some of these panels have
WebMarkupContainers that allow the user to add stuff to a listview and be
refreshed without refreshing the page.

My problem is applying JS and CSS to the data in the WebMarkupContainer. I
am trying to use sweetTitles to give me tooltips for this data.

I have to refresh the page and it works fine but without refreshing it is
like the CSS and the JS can not communicate with the data in the
WebMarkupConatiner.

I know I am doing something wrong but I can not figure it out.

I have made a small example with a Customer already added to the listView
inside the WebMarkupContainer. I get the same results with this code. The JS
and CSS do not work on the hoverover.

I have tried adding the JS and CSS to the MarkupContainer, Panel, and the
webpage with no luck. I get the same results no mater what.

Here is the code. Any help would be much appreciated. In this example I am
adding the tooltip to the POC.


public class HoverPanel extends Panel {

ProjectData pd;

public HoverPanel(String id, final ProjectData pdata) {
  super(id);
  
  add(JavascriptPackageResource.getHeaderContribution(HoverPanel.class,
"addEvent.js"));
  add(JavascriptPackageResource.getHeaderContribution(HoverPanel.class,
"sweetTitles.js"));
  add(CSSPackageResource.getHeaderContribution(HoverPanel.class,
"sweetTitles.css"));
  
  pd = pdata;
  List customerList = new ArrayList();
  CustomerData cd = new CustomerData();
  cd.setId(1234);
  cd.setName("Customer 1");

  //create poc for customer
  List pocList = new ArrayList();
  POCData poc = new POCData();
  poc.setId(10);
  poc.setName("Peterson, Tracy");
  poc.setPhone("555-555-");
  poc.setTitle("Big Shot");
  poc.setEmail("em...@something.com");
  poc.setCustPocId(3);
  pocList.add(poc);

  cd.setPOCList(pocList);
  customerList.add(cd);
  pd.setCustomerList(customerList);
  
  //create container to hold listview
  final WebMarkupContainer listContainer = new
WebMarkupContainer("theContainer");
  listContainer.setOutputMarkupId(true);
  listContainer.setVisible(true);
  listContainer.setOutputMarkupPlaceholderTag(true);
  add(listContainer);
  
  //get Customer List
  IModel> custList =  new
LoadableDetachableModel>() {
  protected List load() {
  return pd.getCustomerList();
  }
  };
 
  //create listview of customers
  ListView lv = new ListView("rows",
custList) {
public void populateItem(final ListItem item)
{
final int index = item.getIndex();
item.add(new AttributeModifier("class", true, new
AbstractReadOnlyModel()
{
public String getObject()
{
return (index % 2 == 1) ? "even" : "odd";
}
}));
item.add(new AttributeModifier("height", true, new
Model("20")));

//create modal and ajax link to edit customers
final ModalWindow editmodal;
editmodal = new ModalWindow("editmodal");
editmodal.setInitialHeight(350);
editmodal.setInitialWidth(600);
editmodal.setResizable(true);
editmodal.setPageMapName("CustomerEdit");
editmodal.setCookieName("CustomerEdit");
editmodal.setTitle("Update Customer");
editmodal.setPageCreator(new ModalWindow.PageCreator() {
public Page createPage() {
return new CustomerPopup(item.getIndex(), "update",
editmodal, pd);
}
});
editmodal.setWindowClosedCallback(new 
ModalWindow.WindowClosedCallback()
{
public void onClose(AjaxRequestTarget target) {
target.addComponent(listContainer);
}
});
AjaxFallbackLink custlink = new
AjaxFallbackLink("hoverlink") {
public void onClick(AjaxRequestTarget target) { 
editmodal.show(target);
}
};
   //do not allow them to close the modal window by clicking 
the X
editmodal.setCloseButtonCallback(new 
ModalWindow.CloseButtonCallback(){
  public boolean 
onCloseButtonClicked(AjaxRequestTarget target)

RE: [announce] wicketstuff-core 1.4.7 released

2010-05-24 Thread Stefan Lindner
Great, Michael! Thank you!
 
Stefan



Von: Michael O'Cleirigh [mailto:michael.ocleir...@rivulet.ca]
Gesendet: Mo 24.05.2010 17:48
An: users@wicket.apache.org
Betreff: [announce] wicketstuff-core 1.4.7 released



Hello,

Based on the positive reception for a 1.4.7 wicketstuff-core release, 4
positive votes (3 + mine) and no negative,  I promoted the staged
release into the sonatype repository and filed the ticket for central
sync up.

The sync up has now occurred and the 1.4.7 artifacts are available
through maven central (http://repo2.maven.org/maven2/org/wicketstuff).

Tag:
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.7

To use in Maven:


 org.wicketstuff
 ${module}
 1.4.7


The module names come from what is defined in each module's POM (so each
module directory/pom.xml that produces a jar artifact).

Regards,

Mike






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





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

Re: Clear URL parameters

2010-05-24 Thread andres.santana

Does redirect affects a Custom Session? I mean using setRedirect(true) works
but something I set in the WebSession is lost.

-
--
arsh
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Clear-URL-parameters-tp2228705p2228758.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



[announce] wicketstuff-core 1.4.7 released

2010-05-24 Thread Michael O'Cleirigh

Hello,

Based on the positive reception for a 1.4.7 wicketstuff-core release, 4 
positive votes (3 + mine) and no negative,  I promoted the staged 
release into the sonatype repository and filed the ticket for central 
sync up.


The sync up has now occurred and the 1.4.7 artifacts are available 
through maven central (http://repo2.maven.org/maven2/org/wicketstuff).


Tag: 
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/tags/wicketstuff-core-1.4.7


To use in Maven:


org.wicketstuff
${module}
1.4.7


The module names come from what is defined in each module's POM (so each 
module directory/pom.xml that produces a jar artifact).


Regards,

Mike






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



Re: AjaxRequestTarget + add component

2010-05-24 Thread Jeremy Thomerson
On Mon, May 24, 2010 at 10:33 AM, Ivoneta  wrote:

>
> Hi.
>
> I have two panels inside a webPage.
> In the first Panel I have a form with a ajax button. When I submitted de
> form the two panels should be replace and target.
>
> In the code I replace the firstPanel, them I add to te target this:
> target.addComponent(panel);
> I do the same for the second panel.
> So, I have two "target.addComponent(panel)"; , and I get an error (Null
> pointer exception).
>
> I wonder if it's not possible have two  "target.addComponent(panel)" in the
> same place?
>
>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/AjaxRequestTarget-add-component-tp2228735p2228735.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
Please post the NPE stack trace, as well as what version of Wicket you are
using.  It would be good to post the code from your ajax button, too.

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


RE: Wicket Dynamic Navigation

2010-05-24 Thread vp143

Unfortunately my knowledge of German is non-existent. Thanks for your reply
though.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Dynamic-Navigation-tp2228587p2228741.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



AjaxRequestTarget + add component

2010-05-24 Thread Ivoneta

Hi.

I have two panels inside a webPage.
In the first Panel I have a form with a ajax button. When I submitted de
form the two panels should be replace and target.
 
In the code I replace the firstPanel, them I add to te target this: 
target.addComponent(panel);
I do the same for the second panel.
So, I have two "target.addComponent(panel)"; , and I get an error (Null
pointer exception).

I wonder if it's not possible have two  "target.addComponent(panel)" in the
same place?




-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AjaxRequestTarget-add-component-tp2228735p2228735.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



RE: Wicket Dynamic Navigation

2010-05-24 Thread Kai Mutz
I have read a solution for this in a german wicket book called "Praxisbuch
Wicket" which you can use as a starting point. But I do not know how good
your German is.

http://www.hanser.de/buch.asp?isbn=978-3-446-41909-4

vp143  wrote:
> I forgot to mention that I require the HTML markup to be like the
> following:
>
> 
> Category 1
> Category 2
> 
>   
># Category 2 - Sub category 1 
># Category 2 - Sub category 2 
>   
> 
> 



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



Re: Clear URL parameters

2010-05-24 Thread Mauro Ciancio
Have you tried setRedirect(true)?

Cheers.

On Mon, May 24, 2010 at 12:13 PM, andres.santana
 wrote:
>
> A non-wicket application redirects to my wicket application with an URL full
> of parameters: for example
> http://mypc/myapp/auth?param1=value1¶m2=value. I receive this request in
> an intermediate page, and then I want to redirect to another page using
> setResponsePage(), but the URL keeps all this parameters, and I want to have
> a clear URL. I've mounted the page but it never removes URL parameters...
> Any ideas?
>
> -
> --
> arsh
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Clear-URL-parameters-tp2228705p2228705.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Mauro Ciancio 

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



Clear URL parameters

2010-05-24 Thread andres.santana

A non-wicket application redirects to my wicket application with an URL full
of parameters: for example 
http://mypc/myapp/auth?param1=value1¶m2=value. I receive this request in
an intermediate page, and then I want to redirect to another page using
setResponsePage(), but the URL keeps all this parameters, and I want to have
a clear URL. I've mounted the page but it never removes URL parameters...
Any ideas?

-
--
arsh
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Clear-URL-parameters-tp2228705p2228705.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: Wicket Dynamic Navigation

2010-05-24 Thread vp143

I forgot to mention that I require the HTML markup to be like the following:


Category 1
Category 2


 # Category 2 - Sub category 1 
 # Category 2 - Sub category 2 



-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Dynamic-Navigation-tp2228587p2228687.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: AutocompleteTextField behaviours

2010-05-24 Thread Katherine
I'm sorry Vineet, I've read your previous message unattentively and used 
AjaxEventBehavior("onkeyup").


ajaxformcomponentupdatingbehavior("onkeyup") and
ajaxformcomponentupdatingbehavior("onchange") work perfect!

Huge thanks for you help

* Katherine  [Mon, 24 May 2010 18:32:11 +0400]:
I tried onkeyup event at the beginning, but there is also not 

everything

fine :(
there is a delay for 1 character, my searchfield ModelObject is
filled by this character only when the next is pressed.
I think AutocompletTextField also uses this event to fill in the 

object

and call its getchoices.

* vineet semwal  [Mon, 24 May 2010 

19:17:22

+0530]:
> sorry i realized the previous idea is bad because to even read the
> formcomponent input you will require either
> formcomponentupdatingbehavior
> or a ajax submitting behavior to fire .
> you just wanted to update label when key is pressed so just add
> ajaxformcomponentupdatingbehavior with
> onkeyup event to your autocompletetextfield ,it will work...
>
> 2010/5/24 Katherine 
>
> > Thanks for idea, but unfortunately onrequest is a final method.
> > I tried to add my Label to the target used in respond method, but
> nothing
> > happens in this case :(.
> >
> > * vineet semwal  [Mon, 24 May 2010
> 14:28:46
> > +0530]:
> >
> >  you can add your own autocompletebehavior in
> >>
> > autocompletetextfield,there
> >
> >> you
> >> can do the label update in onrequest if the size is greater than
what
> >> you
> >> want,you will also have to write a dao method that returns the
count
> >>
> > of
> >
> >> items returned so that you can
> >> check with the size you want.
> >>
> >> 2010/5/24 Katherine 
> >>
> >> > There is no problem in how many items returned, the problem I
need
> >>
> > to
> >
> >> > notify user, that there are N items in general.
> >> > So I just need a possibility to update Label by ajax after
> >>
> > getChoices
> >
> >> got
> >> > number of items.
> >> >
> >> > * vineet semwal  [Mon, 24 May 2010
> >> 13:19:47
> >> > +0530]:
> >> >
> >> >  one way is to make sure that not more than n numbers of rows 

are

> >> >> returned
> >> >> from your dao itself
> >> >> where n is the maximum number of  choices you want to process 

in

> >> >> getchoices() but it may be not what you want.
> >> >>
> >> >>
> >> >> 2010/5/24 Katherine 
> >> >>
> >> >> >
> >> >> > As I've wrote there is no AjaxRequestTarget in getChoices 

that

> >> means
> >> >> > AjaxRequestTarget.get() returns null there.
> >> >> >
> >> >> >
> >> >> > * Gerolf Seitz  [Sun, 23 May 2010
> >>
> > 20:50:58
> >
> >> >> +0200]:
> >> >> >
> >> >> >  AjaxRequestTarget.get() returns the current
AjaxRequestTarget,
> >>
> > if
> >
> >> >> >>
> >> >> > there
> >> >> >
> >> >> >> is
> >> >> >> one,
> >> >> >> otherwise it returns null.
> >> >> >> use that in the getChoices callback and you should be fine.
> >> >> >>
> >> >> >> On Sun, May 23, 2010 at 8:17 PM, Katherine

> >> >> wrote:
> >> >> >>
> >> >> >> > Hello,
> >> >> >> >
> >> >> >> > Can anybody help newbie with following question:
> >> >> >> >   I'm using AutocompletText field with
> >> >> >> > AjaxFormComponentUpdatingBehavior("onchange"), which
catches
> >> >> >>
> >> >> > onchange
> >> >> >
> >> >> >> event,
> >> >> >> > when user selects item from the list.
> >> >> >> >   It appeared so that sometimes I get too many items for
> >> >> >>
> >> >> > DropDownList,
> >> >> >
> >> >> >> and
> >> >> >> > I don't want it to hang and I need to update a warning
label
> >>
> > in
> >
> >> >> case
> >> >> >> there
> >> >> >> > are too many items for the DropDownList.
> >> >> >> >   That's why I need to make a check after each character 

is

> >> >> inputed.
> >> >> >> That
> >> >> >> > is well done in getChoices method, but in that method I
don't
> >> >>
> >> > have
> >> >
> >> >> >> > AjaxRequestTarget to update the label.
> >> >> >> >   And when I use OnChangeAjaxBehavior everything is good
with
> >> >> >>
> >> >> > updating
> >> >> >
> >> >> >> > label, but it doesn't catch the event when item from
> >> DropDownList
> >> >> is
> >> >> >> > selected.
> >> >> >> >   I can't use bot AjaxFormComponentUpdatingBehavior and
> >> >> >> > OnChangeAjaxBehavior because the last one extend the 

first.

> >> >> >> >   Is there a possibility to handle my problem?  Or may be
it
> >>
> > is
> >
> >> >> >> already
> >> >> >> > solved, but I wasn't able to find the solution, so will 

be

> >> >> greatfull
> >> >> >> for the
> >> >> >> > link.
> >> >> >> >   I'm using wicket 1.3.7
> >> >> >> >
> >> >> >> >   Big thanks in advance!
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >
> >> >>
> >> >
> >>
> >
-
> >
> >> >
> >> >> >
> >> >> >> > To unsubscribe, e-mail: 

users-unsubscr...@wicket.apache.org

> >> >> >> > For additional commands, e-mail:
users-h...@wicket.apache.org
> >> >> >> >
> >> >> >> >
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Kather

Re: Push Ajax, Streaming Ajax.

2010-05-24 Thread victordenisov

Thanks, I'll check it.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Push-Ajax-Streaming-Ajax-tp2228563p2228652.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



Re: AutocompleteTextField behaviours

2010-05-24 Thread Katherine
I tried onkeyup event at the beginning, but there is also not everything 
fine :(
   there is a delay for 1 character, my searchfield ModelObject is 
filled by this character only when the next is pressed.
I think AutocompletTextField also uses this event to fill in the object 
and call its getchoices.


* vineet semwal  [Mon, 24 May 2010 19:17:22 
+0530]:

sorry i realized the previous idea is bad because to even read the
formcomponent input you will require either
formcomponentupdatingbehavior
or a ajax submitting behavior to fire .
you just wanted to update label when key is pressed so just add
ajaxformcomponentupdatingbehavior with
onkeyup event to your autocompletetextfield ,it will work...

2010/5/24 Katherine 

> Thanks for idea, but unfortunately onrequest is a final method.
> I tried to add my Label to the target used in respond method, but
nothing
> happens in this case :(.
>
> * vineet semwal  [Mon, 24 May 2010
14:28:46
> +0530]:
>
>  you can add your own autocompletebehavior in
>>
> autocompletetextfield,there
>
>> you
>> can do the label update in onrequest if the size is greater than 

what

>> you
>> want,you will also have to write a dao method that returns the 

count

>>
> of
>
>> items returned so that you can
>> check with the size you want.
>>
>> 2010/5/24 Katherine 
>>
>> > There is no problem in how many items returned, the problem I 

need

>>
> to
>
>> > notify user, that there are N items in general.
>> > So I just need a possibility to update Label by ajax after
>>
> getChoices
>
>> got
>> > number of items.
>> >
>> > * vineet semwal  [Mon, 24 May 2010
>> 13:19:47
>> > +0530]:
>> >
>> >  one way is to make sure that not more than n numbers of rows are
>> >> returned
>> >> from your dao itself
>> >> where n is the maximum number of  choices you want to process in
>> >> getchoices() but it may be not what you want.
>> >>
>> >>
>> >> 2010/5/24 Katherine 
>> >>
>> >> >
>> >> > As I've wrote there is no AjaxRequestTarget in getChoices that
>> means
>> >> > AjaxRequestTarget.get() returns null there.
>> >> >
>> >> >
>> >> > * Gerolf Seitz  [Sun, 23 May 2010
>>
> 20:50:58
>
>> >> +0200]:
>> >> >
>> >> >  AjaxRequestTarget.get() returns the current 

AjaxRequestTarget,

>>
> if
>
>> >> >>
>> >> > there
>> >> >
>> >> >> is
>> >> >> one,
>> >> >> otherwise it returns null.
>> >> >> use that in the getChoices callback and you should be fine.
>> >> >>
>> >> >> On Sun, May 23, 2010 at 8:17 PM, Katherine 



>> >> wrote:
>> >> >>
>> >> >> > Hello,
>> >> >> >
>> >> >> > Can anybody help newbie with following question:
>> >> >> >   I'm using AutocompletText field with
>> >> >> > AjaxFormComponentUpdatingBehavior("onchange"), which 

catches

>> >> >>
>> >> > onchange
>> >> >
>> >> >> event,
>> >> >> > when user selects item from the list.
>> >> >> >   It appeared so that sometimes I get too many items for
>> >> >>
>> >> > DropDownList,
>> >> >
>> >> >> and
>> >> >> > I don't want it to hang and I need to update a warning 

label

>>
> in
>
>> >> case
>> >> >> there
>> >> >> > are too many items for the DropDownList.
>> >> >> >   That's why I need to make a check after each character is
>> >> inputed.
>> >> >> That
>> >> >> > is well done in getChoices method, but in that method I 

don't

>> >>
>> > have
>> >
>> >> >> > AjaxRequestTarget to update the label.
>> >> >> >   And when I use OnChangeAjaxBehavior everything is good 

with

>> >> >>
>> >> > updating
>> >> >
>> >> >> > label, but it doesn't catch the event when item from
>> DropDownList
>> >> is
>> >> >> > selected.
>> >> >> >   I can't use bot AjaxFormComponentUpdatingBehavior and
>> >> >> > OnChangeAjaxBehavior because the last one extend the first.
>> >> >> >   Is there a possibility to handle my problem?  Or may be 

it

>>
> is
>
>> >> >> already
>> >> >> > solved, but I wasn't able to find the solution, so will be
>> >> greatfull
>> >> >> for the
>> >> >> > link.
>> >> >> >   I'm using wicket 1.3.7
>> >> >> >
>> >> >> >   Big thanks in advance!
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >>
>> >
>>
> 

-

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

users-h...@wicket.apache.org

>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Katherine.
>> >> >
>> >> > --
>> >> > Самые низкие цены на недвижимость. http://domoteka.ru/
>> >> >
>> >> >
>> >> >
>> >>
>> >
>>
> 

-

>
>> >
>> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >
>> >
>> > --
>> > Katherine.
>> >
>> > --
>> > Самые низкие цены на недвижимость. http://domoteka.ru/
>> >
>> >
>>
> 

-

>
>> > To unsubscribe, e-mail: users-unsubs

Re: Push Ajax, Streaming Ajax.

2010-05-24 Thread Rodolfo Hansen
Have you looked into wicketstuff-push?

I'm looking for help in including HTML5 support...  patches welcome. :)


On Mon, 2010-05-24 at 06:28 -0700, victordenisov wrote:

> I want to create streaming or push ajax. How can I do this with Wicket?




Push Ajax, Streaming Ajax.

2010-05-24 Thread victordenisov

I want to create streaming or push ajax. How can I do this with Wicket?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Push-Ajax-Streaming-Ajax-tp2228563p2228563.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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



RE: WICKET-2882 Enclosures issue

2010-05-24 Thread Chris Colman
>Fixed in 1.4.x.  Can you try a snapshot build and verify?

I built a snapshot and tested it. It works beautifully! Thanks for
fixing this one.

Regards,
Chris

>
>--
>Jeremy Thomerson
>http://www.wickettraining.com
>
>
>
>On Sun, May 23, 2010 at 10:03 PM, Chris Colman
>> wrote:
>
>> >> > > Ditto bro! I'm very keen to migrate from 1.4.1 up to the
latest
>> >> 1.9.x.
>> >> > >
>> >> > >
>> >> > WHOA!  You guys must be working pretty hard in "submarine mode".
I
>> >> mean,
>> >> > Igor's only working on 1.5.x and I thought he was on the
bleeding
>> edge
>> >> :)
>> >>
>> >> Yeah, whoops! I meant to say 1.4.9 ... (I had intended to keep our
>> >> covert 1.9.x development a secret but it's all out now! We're
working
>> on
>> >> advanced features like a neural interface where you stick
electrodes
>> >> into your cranial and merely think of the UI you desire and the
>> wicket
>> >> code is generated for you automatically.)
>> >
>> >
>> >Sounds great!
>>
>> Yeah, but we're having trouble getting beta testers - that whole
>> electrodes in the brain kinda scares them off :)
>>
>> >But back to a serious note, if nobody else works on that
>> >issue soon, I'll try to look at it this week.
>>
>> That would be most appreciated Jeremy, thanks!
>>
>> >
>> >Jeremy
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>

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



Re: AutocompleteTextField behaviours

2010-05-24 Thread vineet semwal
a typo in previous post ,
formcomponentupdatingbehavior or a *formsubmitting* behavior to fire .

2010/5/24 vineet semwal 

> sorry i realized the previous idea is bad because to even read the
> formcomponent input you will require either  formcomponentupdatingbehavior
> or a ajax submitting behavior to fire .
> you just wanted to update label when key is pressed so just add
> ajaxformcomponentupdatingbehavior with
> onkeyup event to your autocompletetextfield ,it will work...
>
>
> 2010/5/24 Katherine 
>
>> Thanks for idea, but unfortunately onrequest is a final method.
>> I tried to add my Label to the target used in respond method, but nothing
>> happens in this case :(.
>>
>> * vineet semwal  [Mon, 24 May 2010 14:28:46
>> +0530]:
>>
>>  you can add your own autocompletebehavior in
>>>
>> autocompletetextfield,there
>>
>>> you
>>> can do the label update in onrequest if the size is greater than what
>>> you
>>> want,you will also have to write a dao method that returns the count
>>>
>> of
>>
>>> items returned so that you can
>>> check with the size you want.
>>>
>>> 2010/5/24 Katherine 
>>>
>>> > There is no problem in how many items returned, the problem I need
>>>
>> to
>>
>>> > notify user, that there are N items in general.
>>> > So I just need a possibility to update Label by ajax after
>>>
>> getChoices
>>
>>> got
>>> > number of items.
>>> >
>>> > * vineet semwal  [Mon, 24 May 2010
>>> 13:19:47
>>> > +0530]:
>>> >
>>> >  one way is to make sure that not more than n numbers of rows are
>>> >> returned
>>> >> from your dao itself
>>> >> where n is the maximum number of  choices you want to process in
>>> >> getchoices() but it may be not what you want.
>>> >>
>>> >>
>>> >> 2010/5/24 Katherine 
>>> >>
>>> >> >
>>> >> > As I've wrote there is no AjaxRequestTarget in getChoices that
>>> means
>>> >> > AjaxRequestTarget.get() returns null there.
>>> >> >
>>> >> >
>>> >> > * Gerolf Seitz  [Sun, 23 May 2010
>>>
>> 20:50:58
>>
>>> >> +0200]:
>>> >> >
>>> >> >  AjaxRequestTarget.get() returns the current AjaxRequestTarget,
>>>
>> if
>>
>>> >> >>
>>> >> > there
>>> >> >
>>> >> >> is
>>> >> >> one,
>>> >> >> otherwise it returns null.
>>> >> >> use that in the getChoices callback and you should be fine.
>>> >> >>
>>> >> >> On Sun, May 23, 2010 at 8:17 PM, Katherine 
>>> >> wrote:
>>> >> >>
>>> >> >> > Hello,
>>> >> >> >
>>> >> >> > Can anybody help newbie with following question:
>>> >> >> >   I'm using AutocompletText field with
>>> >> >> > AjaxFormComponentUpdatingBehavior("onchange"), which catches
>>> >> >>
>>> >> > onchange
>>> >> >
>>> >> >> event,
>>> >> >> > when user selects item from the list.
>>> >> >> >   It appeared so that sometimes I get too many items for
>>> >> >>
>>> >> > DropDownList,
>>> >> >
>>> >> >> and
>>> >> >> > I don't want it to hang and I need to update a warning label
>>>
>> in
>>
>>> >> case
>>> >> >> there
>>> >> >> > are too many items for the DropDownList.
>>> >> >> >   That's why I need to make a check after each character is
>>> >> inputed.
>>> >> >> That
>>> >> >> > is well done in getChoices method, but in that method I don't
>>> >>
>>> > have
>>> >
>>> >> >> > AjaxRequestTarget to update the label.
>>> >> >> >   And when I use OnChangeAjaxBehavior everything is good with
>>> >> >>
>>> >> > updating
>>> >> >
>>> >> >> > label, but it doesn't catch the event when item from
>>> DropDownList
>>> >> is
>>> >> >> > selected.
>>> >> >> >   I can't use bot AjaxFormComponentUpdatingBehavior and
>>> >> >> > OnChangeAjaxBehavior because the last one extend the first.
>>> >> >> >   Is there a possibility to handle my problem?  Or may be it
>>>
>> is
>>
>>> >> >> already
>>> >> >> > solved, but I wasn't able to find the solution, so will be
>>> >> greatfull
>>> >> >> for the
>>> >> >> > link.
>>> >> >> >   I'm using wicket 1.3.7
>>> >> >> >
>>> >> >> >   Big thanks in advance!
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >>
>>> >> >
>>> >>
>>> >
>>>
>> -
>>
>>> >
>>> >> >
>>> >> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> >> >> > For additional commands, e-mail: users-h...@wicket.apache.org
>>> >> >> >
>>> >> >> >
>>> >> >>
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > --
>>> >> > Katherine.
>>> >> >
>>> >> > --
>>> >> > Самые низкие цены на недвижимость. http://domoteka.ru/
>>> >> >
>>> >> >
>>> >> >
>>> >>
>>> >
>>>
>> -
>>
>>> >
>>> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> >> > For additional commands, e-mail: users-h...@wicket.apache.org
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > Katherine.
>>> >
>>> > --
>>> > Самые низкие цены на недвижимость. http://domoteka.ru/
>>> >
>>> >
>>>
>> -
>>
>>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> > For additional commands, e-mail: users-h...@wic

Wicket Dynamic Navigation

2010-05-24 Thread Vishal Popat
Hi,

 

I am looking to build a 1-2 level left navigation where the first level is a
list of categories and the 2nd is a list of optional sub categories. 

 

I have tried various ways of designing this in wicket such as a DataView for
level 1 and another DataView for level 2 which is inside a wicket enclosure.
The problem I encountered here is that level 2 component already exists when
it come to outputting the 2nd item in level 1.

 

Any thoughts on design or an example (as I have yet been unable to find one)
would be greatly appreciated.

 

Regards

 

Vishal



Re: AutocompleteTextField behaviours

2010-05-24 Thread vineet semwal
sorry i realized the previous idea is bad because to even read the
formcomponent input you will require either  formcomponentupdatingbehavior
or a ajax submitting behavior to fire .
you just wanted to update label when key is pressed so just add
ajaxformcomponentupdatingbehavior with
onkeyup event to your autocompletetextfield ,it will work...

2010/5/24 Katherine 

> Thanks for idea, but unfortunately onrequest is a final method.
> I tried to add my Label to the target used in respond method, but nothing
> happens in this case :(.
>
> * vineet semwal  [Mon, 24 May 2010 14:28:46
> +0530]:
>
>  you can add your own autocompletebehavior in
>>
> autocompletetextfield,there
>
>> you
>> can do the label update in onrequest if the size is greater than what
>> you
>> want,you will also have to write a dao method that returns the count
>>
> of
>
>> items returned so that you can
>> check with the size you want.
>>
>> 2010/5/24 Katherine 
>>
>> > There is no problem in how many items returned, the problem I need
>>
> to
>
>> > notify user, that there are N items in general.
>> > So I just need a possibility to update Label by ajax after
>>
> getChoices
>
>> got
>> > number of items.
>> >
>> > * vineet semwal  [Mon, 24 May 2010
>> 13:19:47
>> > +0530]:
>> >
>> >  one way is to make sure that not more than n numbers of rows are
>> >> returned
>> >> from your dao itself
>> >> where n is the maximum number of  choices you want to process in
>> >> getchoices() but it may be not what you want.
>> >>
>> >>
>> >> 2010/5/24 Katherine 
>> >>
>> >> >
>> >> > As I've wrote there is no AjaxRequestTarget in getChoices that
>> means
>> >> > AjaxRequestTarget.get() returns null there.
>> >> >
>> >> >
>> >> > * Gerolf Seitz  [Sun, 23 May 2010
>>
> 20:50:58
>
>> >> +0200]:
>> >> >
>> >> >  AjaxRequestTarget.get() returns the current AjaxRequestTarget,
>>
> if
>
>> >> >>
>> >> > there
>> >> >
>> >> >> is
>> >> >> one,
>> >> >> otherwise it returns null.
>> >> >> use that in the getChoices callback and you should be fine.
>> >> >>
>> >> >> On Sun, May 23, 2010 at 8:17 PM, Katherine 
>> >> wrote:
>> >> >>
>> >> >> > Hello,
>> >> >> >
>> >> >> > Can anybody help newbie with following question:
>> >> >> >   I'm using AutocompletText field with
>> >> >> > AjaxFormComponentUpdatingBehavior("onchange"), which catches
>> >> >>
>> >> > onchange
>> >> >
>> >> >> event,
>> >> >> > when user selects item from the list.
>> >> >> >   It appeared so that sometimes I get too many items for
>> >> >>
>> >> > DropDownList,
>> >> >
>> >> >> and
>> >> >> > I don't want it to hang and I need to update a warning label
>>
> in
>
>> >> case
>> >> >> there
>> >> >> > are too many items for the DropDownList.
>> >> >> >   That's why I need to make a check after each character is
>> >> inputed.
>> >> >> That
>> >> >> > is well done in getChoices method, but in that method I don't
>> >>
>> > have
>> >
>> >> >> > AjaxRequestTarget to update the label.
>> >> >> >   And when I use OnChangeAjaxBehavior everything is good with
>> >> >>
>> >> > updating
>> >> >
>> >> >> > label, but it doesn't catch the event when item from
>> DropDownList
>> >> is
>> >> >> > selected.
>> >> >> >   I can't use bot AjaxFormComponentUpdatingBehavior and
>> >> >> > OnChangeAjaxBehavior because the last one extend the first.
>> >> >> >   Is there a possibility to handle my problem?  Or may be it
>>
> is
>
>> >> >> already
>> >> >> > solved, but I wasn't able to find the solution, so will be
>> >> greatfull
>> >> >> for the
>> >> >> > link.
>> >> >> >   I'm using wicket 1.3.7
>> >> >> >
>> >> >> >   Big thanks in advance!
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >>
>> >
>>
> -
>
>> >
>> >> >
>> >> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> >> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >> >> >
>> >> >> >
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Katherine.
>> >> >
>> >> > --
>> >> > Самые низкие цены на недвижимость. http://domoteka.ru/
>> >> >
>> >> >
>> >> >
>> >>
>> >
>>
> -
>
>> >
>> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >
>> >
>> > --
>> > Katherine.
>> >
>> > --
>> > Самые низкие цены на недвижимость. http://domoteka.ru/
>> >
>> >
>>
> -
>
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>>
>>
>
>
> --
> Katherine.
>
> --
> Internet Explorer 8 - ускоритель интернета! http://ie.rambler.ru/
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apa

Fwd: Panel isn't displayed

2010-05-24 Thread Rubén khanser
SOLVED! It was a problem with wicket:head and unresolved .js URI

-- Mensaje reenviado --
De: Rubén khanser 
Fecha: 24 de mayo de 2010 12:37
Asunto: Panel isn't displayed
Para: users@wicket.apache.org



Hi,

I run on wicket 1.3.5 and I'm having a strange issue. When I request a
specific panel nothing comes to display however I get on the DEBUG messages
that the panel ended the request for page and there aren't any errors being
throwed in my app. The last page where I clicked is still on screen and from
now on the links won't work and I will have to restart the navigation. The
last DEBUG lines I have are these:

(I am deleting some client's informatio :) )

12:31:51,664 DEBUG  [btpool0-0] org.apache.wicket.Page 690298|
jfeo9uvvw...@127.0.0.1 - ending request for page [Page class =
some.package.SomePage, id = 14, version = 0, ajax = 4], request [method =
POST, protocol = HTTP/1.1, requestURL = http://localhost:9090/someProject/,
contentType = application/x-www-form-urlencoded; charset=UTF-8,
contentLength = 2332, contextPath = /someProject, pathInfo = null,
requestURI = /someProject/, servletPath = /, pathTranslated = null]

Any ideas will be welcome :)


Thanks


Re: AutocompleteTextField behaviours

2010-05-24 Thread Katherine

Thanks for idea, but unfortunately onrequest is a final method.
I tried to add my Label to the target used in respond method, but 
nothing happens in this case :(.


* vineet semwal  [Mon, 24 May 2010 14:28:46 
+0530]:
you can add your own autocompletebehavior in 

autocompletetextfield,there

you
can do the label update in onrequest if the size is greater than what
you
want,you will also have to write a dao method that returns the count 

of

items returned so that you can
check with the size you want.

2010/5/24 Katherine 

> There is no problem in how many items returned, the problem I need 

to

> notify user, that there are N items in general.
> So I just need a possibility to update Label by ajax after 

getChoices

got
> number of items.
>
> * vineet semwal  [Mon, 24 May 2010
13:19:47
> +0530]:
>
>  one way is to make sure that not more than n numbers of rows are
>> returned
>> from your dao itself
>> where n is the maximum number of  choices you want to process in
>> getchoices() but it may be not what you want.
>>
>>
>> 2010/5/24 Katherine 
>>
>> >
>> > As I've wrote there is no AjaxRequestTarget in getChoices that
means
>> > AjaxRequestTarget.get() returns null there.
>> >
>> >
>> > * Gerolf Seitz  [Sun, 23 May 2010 

20:50:58

>> +0200]:
>> >
>> >  AjaxRequestTarget.get() returns the current AjaxRequestTarget, 

if

>> >>
>> > there
>> >
>> >> is
>> >> one,
>> >> otherwise it returns null.
>> >> use that in the getChoices callback and you should be fine.
>> >>
>> >> On Sun, May 23, 2010 at 8:17 PM, Katherine 
>> wrote:
>> >>
>> >> > Hello,
>> >> >
>> >> > Can anybody help newbie with following question:
>> >> >   I'm using AutocompletText field with
>> >> > AjaxFormComponentUpdatingBehavior("onchange"), which catches
>> >>
>> > onchange
>> >
>> >> event,
>> >> > when user selects item from the list.
>> >> >   It appeared so that sometimes I get too many items for
>> >>
>> > DropDownList,
>> >
>> >> and
>> >> > I don't want it to hang and I need to update a warning label 

in

>> case
>> >> there
>> >> > are too many items for the DropDownList.
>> >> >   That's why I need to make a check after each character is
>> inputed.
>> >> That
>> >> > is well done in getChoices method, but in that method I don't
>>
> have
>
>> >> > AjaxRequestTarget to update the label.
>> >> >   And when I use OnChangeAjaxBehavior everything is good with
>> >>
>> > updating
>> >
>> >> > label, but it doesn't catch the event when item from
DropDownList
>> is
>> >> > selected.
>> >> >   I can't use bot AjaxFormComponentUpdatingBehavior and
>> >> > OnChangeAjaxBehavior because the last one extend the first.
>> >> >   Is there a possibility to handle my problem?  Or may be it 

is

>> >> already
>> >> > solved, but I wasn't able to find the solution, so will be
>> greatfull
>> >> for the
>> >> > link.
>> >> >   I'm using wicket 1.3.7
>> >> >
>> >> >   Big thanks in advance!
>> >> >
>> >> >
>> >> >
>> >>
>> >
>>
> 

-

>
>> >
>> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> >
>> > --
>> > Katherine.
>> >
>> > --
>> > Самые низкие цены на недвижимость. http://domoteka.ru/
>> >
>> >
>> >
>>
> 

-

>
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>>
>>
>
>
> --
> Katherine.
>
> --
> Самые низкие цены на недвижимость. http://domoteka.ru/
>
> 

-

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






--
Katherine.

--
Internet Explorer 8 - ускоритель интернета! http://ie.rambler.ru/

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



Panel isn't displayed

2010-05-24 Thread Rubén khanser
Hi,

I run on wicket 1.3.5 and I'm having a strange issue. When I request a
specific panel nothing comes to display however I get on the DEBUG messages
that the panel ended the request for page and there aren't any errors being
throwed in my app. The last page where I clicked is still on screen and from
now on the links won't work and I will have to restart the navigation. The
last DEBUG lines I have are these:

(I am deleting some client's informatio :) )

12:31:51,664 DEBUG  [btpool0-0] org.apache.wicket.Page 690298|
jfeo9uvvw...@127.0.0.1 - ending request for page [Page class =
some.package.SomePage, id = 14, version = 0, ajax = 4], request [method =
POST, protocol = HTTP/1.1, requestURL = http://localhost:9090/someProject/,
contentType = application/x-www-form-urlencoded; charset=UTF-8,
contentLength = 2332, contextPath = /someProject, pathInfo = null,
requestURI = /someProject/, servletPath = /, pathTranslated = null]

Any ideas will be welcome :)


Thanks


Re: Loading and/or accessing file resources trouble

2010-05-24 Thread Ioannis Mavroukakis
Well the advice to use PackageResource for example

http://apache-wicket.1842946.n4.nabble.com/How-to-read-the-properties-file-in-wicket-td1855403.html

I was expecting some nice clean way in wicket to provide access to a file 
deployed alongside the rest of the classes, my bad.

Y.

On 23 May 2010, at 20:50, Igor Vaynberg wrote:

> what is that have to do with wicket?
> 
> -igor
> 
> On Sun, May 23, 2010 at 11:05 AM, Ioannis Mavroukakis
>  wrote:
>> Hello fellow Wicketers.
>> 
>> Apologies if this question has been answered  before, but taking a stroll 
>> through the list archives didn't dispel my confusion. I am using db4o for a 
>> trivial
>> site I am building, and I am trying to figure out what is the canonical 
>> Wicket way to obtain a File reference to the DB file, the location of which 
>> will have to be
>> outside the war deployment path.
>> 
>> Thanks in advance,
>> 
>> Yiannis
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> __
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> __



Re: AutocompleteTextField behaviours

2010-05-24 Thread vineet semwal
you can add your own autocompletebehavior in autocompletetextfield,there you
can do the label update in onrequest if the size is greater than what you
want,you will also have to write a dao method that returns the count of
items returned so that you can
check with the size you want.

2010/5/24 Katherine 

> There is no problem in how many items returned, the problem I need to
> notify user, that there are N items in general.
> So I just need a possibility to update Label by ajax after getChoices got
> number of items.
>
> * vineet semwal  [Mon, 24 May 2010 13:19:47
> +0530]:
>
>  one way is to make sure that not more than n numbers of rows are
>> returned
>> from your dao itself
>> where n is the maximum number of  choices you want to process in
>> getchoices() but it may be not what you want.
>>
>>
>> 2010/5/24 Katherine 
>>
>> >
>> > As I've wrote there is no AjaxRequestTarget in getChoices that means
>> > AjaxRequestTarget.get() returns null there.
>> >
>> >
>> > * Gerolf Seitz  [Sun, 23 May 2010 20:50:58
>> +0200]:
>> >
>> >  AjaxRequestTarget.get() returns the current AjaxRequestTarget, if
>> >>
>> > there
>> >
>> >> is
>> >> one,
>> >> otherwise it returns null.
>> >> use that in the getChoices callback and you should be fine.
>> >>
>> >> On Sun, May 23, 2010 at 8:17 PM, Katherine 
>> wrote:
>> >>
>> >> > Hello,
>> >> >
>> >> > Can anybody help newbie with following question:
>> >> >   I'm using AutocompletText field with
>> >> > AjaxFormComponentUpdatingBehavior("onchange"), which catches
>> >>
>> > onchange
>> >
>> >> event,
>> >> > when user selects item from the list.
>> >> >   It appeared so that sometimes I get too many items for
>> >>
>> > DropDownList,
>> >
>> >> and
>> >> > I don't want it to hang and I need to update a warning label in
>> case
>> >> there
>> >> > are too many items for the DropDownList.
>> >> >   That's why I need to make a check after each character is
>> inputed.
>> >> That
>> >> > is well done in getChoices method, but in that method I don't
>>
> have
>
>> >> > AjaxRequestTarget to update the label.
>> >> >   And when I use OnChangeAjaxBehavior everything is good with
>> >>
>> > updating
>> >
>> >> > label, but it doesn't catch the event when item from DropDownList
>> is
>> >> > selected.
>> >> >   I can't use bot AjaxFormComponentUpdatingBehavior and
>> >> > OnChangeAjaxBehavior because the last one extend the first.
>> >> >   Is there a possibility to handle my problem?  Or may be it is
>> >> already
>> >> > solved, but I wasn't able to find the solution, so will be
>> greatfull
>> >> for the
>> >> > link.
>> >> >   I'm using wicket 1.3.7
>> >> >
>> >> >   Big thanks in advance!
>> >> >
>> >> >
>> >> >
>> >>
>> >
>>
> -
>
>> >
>> >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> >> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >> >
>> >> >
>> >>
>> >
>> >
>> >
>> >
>> > --
>> > Katherine.
>> >
>> > --
>> > Самые низкие цены на недвижимость. http://domoteka.ru/
>> >
>> >
>> >
>>
> -
>
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>>
>>
>
>
> --
> Katherine.
>
> --
> Самые низкие цены на недвижимость. http://domoteka.ru/
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
regards,
Vineet Semwal


Re: AutocompleteTextField behaviours

2010-05-24 Thread Katherine
There is no problem in how many items returned, the problem I need to 
notify user, that there are N items in general.
So I just need a possibility to update Label by ajax after getChoices 
got number of items.


* vineet semwal  [Mon, 24 May 2010 13:19:47 
+0530]:

one way is to make sure that not more than n numbers of rows are
returned
from your dao itself
where n is the maximum number of  choices you want to process in
getchoices() but it may be not what you want.


2010/5/24 Katherine 

>
> As I've wrote there is no AjaxRequestTarget in getChoices that means
> AjaxRequestTarget.get() returns null there.
>
>
> * Gerolf Seitz  [Sun, 23 May 2010 20:50:58
+0200]:
>
>  AjaxRequestTarget.get() returns the current AjaxRequestTarget, if
>>
> there
>
>> is
>> one,
>> otherwise it returns null.
>> use that in the getChoices callback and you should be fine.
>>
>> On Sun, May 23, 2010 at 8:17 PM, Katherine 
wrote:
>>
>> > Hello,
>> >
>> > Can anybody help newbie with following question:
>> >   I'm using AutocompletText field with
>> > AjaxFormComponentUpdatingBehavior("onchange"), which catches
>>
> onchange
>
>> event,
>> > when user selects item from the list.
>> >   It appeared so that sometimes I get too many items for
>>
> DropDownList,
>
>> and
>> > I don't want it to hang and I need to update a warning label in
case
>> there
>> > are too many items for the DropDownList.
>> >   That's why I need to make a check after each character is
inputed.
>> That
>> > is well done in getChoices method, but in that method I don't 

have

>> > AjaxRequestTarget to update the label.
>> >   And when I use OnChangeAjaxBehavior everything is good with
>>
> updating
>
>> > label, but it doesn't catch the event when item from DropDownList
is
>> > selected.
>> >   I can't use bot AjaxFormComponentUpdatingBehavior and
>> > OnChangeAjaxBehavior because the last one extend the first.
>> >   Is there a possibility to handle my problem?  Or may be it is
>> already
>> > solved, but I wasn't able to find the solution, so will be
greatfull
>> for the
>> > link.
>> >   I'm using wicket 1.3.7
>> >
>> >   Big thanks in advance!
>> >
>> >
>> >
>>
> 

-

>
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>
>
>
>
> --
> Katherine.
>
> --
> Самые низкие цены на недвижимость. http://domoteka.ru/
>
>
> 

-

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






--
Katherine.

--
Самые низкие цены на недвижимость. http://domoteka.ru/

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



Re: AutocompleteTextField behaviours

2010-05-24 Thread vineet semwal
one way is to make sure that not more than n numbers of rows are returned
from your dao itself
where n is the maximum number of  choices you want to process in
getchoices() but it may be not what you want.


2010/5/24 Katherine 

>
> As I've wrote there is no AjaxRequestTarget in getChoices that means
> AjaxRequestTarget.get() returns null there.
>
>
> * Gerolf Seitz  [Sun, 23 May 2010 20:50:58 +0200]:
>
>  AjaxRequestTarget.get() returns the current AjaxRequestTarget, if
>>
> there
>
>> is
>> one,
>> otherwise it returns null.
>> use that in the getChoices callback and you should be fine.
>>
>> On Sun, May 23, 2010 at 8:17 PM, Katherine  wrote:
>>
>> > Hello,
>> >
>> > Can anybody help newbie with following question:
>> >   I'm using AutocompletText field with
>> > AjaxFormComponentUpdatingBehavior("onchange"), which catches
>>
> onchange
>
>> event,
>> > when user selects item from the list.
>> >   It appeared so that sometimes I get too many items for
>>
> DropDownList,
>
>> and
>> > I don't want it to hang and I need to update a warning label in case
>> there
>> > are too many items for the DropDownList.
>> >   That's why I need to make a check after each character is inputed.
>> That
>> > is well done in getChoices method, but in that method I don't have
>> > AjaxRequestTarget to update the label.
>> >   And when I use OnChangeAjaxBehavior everything is good with
>>
> updating
>
>> > label, but it doesn't catch the event when item from DropDownList is
>> > selected.
>> >   I can't use bot AjaxFormComponentUpdatingBehavior and
>> > OnChangeAjaxBehavior because the last one extend the first.
>> >   Is there a possibility to handle my problem?  Or may be it is
>> already
>> > solved, but I wasn't able to find the solution, so will be greatfull
>> for the
>> > link.
>> >   I'm using wicket 1.3.7
>> >
>> >   Big thanks in advance!
>> >
>> >
>> >
>>
> -
>
>> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > For additional commands, e-mail: users-h...@wicket.apache.org
>> >
>> >
>>
>
>
>
>
> --
> Katherine.
>
> --
> Самые низкие цены на недвижимость. http://domoteka.ru/
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
regards,
Vineet Semwal


Re: WICKET-2882 Enclosures issue

2010-05-24 Thread Jeremy Thomerson
On Mon, May 24, 2010 at 2:23 AM, Chris Colman
wrote:

> >Fixed in 1.4.x.
>
> Cool! Thanks for such a quick turn around on that one.
>
> > Can you try a snapshot build and verify?
>
> Yes. By snapshot do you mean there is a prebuilt snapshot ready to
> download somewhere or will I need to create my own snapshot from svn and
> build it?
>

You'll need to build it - I'm not sure the status of our automated builds
right now.

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


Re: websession data access

2010-05-24 Thread Jeremy Thomerson
On Mon, May 24, 2010 at 2:18 AM, gmx  wrote:

> Hi,
>
> I'm confused about how I should access objects stored in a WebSession,
> namely when to use
> `synchronized`, as:
>
> - the documentation says the session is not thread safe
>
> - the session example class WiaSession in Wicket In Action guards its User
> object by `synchronized`
>  (just because of the StatelessForm??).
>
>  BUT
>
> - the Wicket wiki example does NOT use `synchronized`...
>  (
> https://cwiki.apache.org/WICKET/custom-websession-storing-objects-in-session.html
> )
>
> - the other session example class CheesrSession in Wicket In Action simply
> contains an ArrayList and
>  not guarded `synchronized`; I see that there's no setter, but ArrayList is
> not thread-safe,
>  either. (AFAIK)
>
>
> Could someone shed a light on these issues?
>
> Thanks,
>
> Aroly
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>
http://apache-wicket.1842946.n4.nabble.com/Wicket-Session-and-threading-tt1854534.html#a1854534

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


RE: WICKET-2882 Enclosures issue

2010-05-24 Thread Chris Colman
>Fixed in 1.4.x.

Cool! Thanks for such a quick turn around on that one.

> Can you try a snapshot build and verify?

Yes. By snapshot do you mean there is a prebuilt snapshot ready to
download somewhere or will I need to create my own snapshot from svn and
build it?

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

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



websession data access

2010-05-24 Thread gmx
Hi,

I'm confused about how I should access objects stored in a WebSession, namely 
when to use
`synchronized`, as:

- the documentation says the session is not thread safe

- the session example class WiaSession in Wicket In Action guards its User 
object by `synchronized`
  (just because of the StatelessForm??).

  BUT

- the Wicket wiki example does NOT use `synchronized`...
  
(https://cwiki.apache.org/WICKET/custom-websession-storing-objects-in-session.html)

- the other session example class CheesrSession in Wicket In Action simply 
contains an ArrayList and
  not guarded `synchronized`; I see that there's no setter, but ArrayList is 
not thread-safe,
  either. (AFAIK)

  
Could someone shed a light on these issues?

Thanks,

Aroly


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



Re: WICKET-2882 Enclosures issue

2010-05-24 Thread Jeremy Thomerson
Fixed in 1.4.x.  Can you try a snapshot build and verify?

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



On Sun, May 23, 2010 at 10:03 PM, Chris Colman  wrote:

> >> > > Ditto bro! I'm very keen to migrate from 1.4.1 up to the latest
> >> 1.9.x.
> >> > >
> >> > >
> >> > WHOA!  You guys must be working pretty hard in "submarine mode".  I
> >> mean,
> >> > Igor's only working on 1.5.x and I thought he was on the bleeding
> edge
> >> :)
> >>
> >> Yeah, whoops! I meant to say 1.4.9 ... (I had intended to keep our
> >> covert 1.9.x development a secret but it's all out now! We're working
> on
> >> advanced features like a neural interface where you stick electrodes
> >> into your cranial and merely think of the UI you desire and the
> wicket
> >> code is generated for you automatically.)
> >
> >
> >Sounds great!
>
> Yeah, but we're having trouble getting beta testers - that whole
> electrodes in the brain kinda scares them off :)
>
> >But back to a serious note, if nobody else works on that
> >issue soon, I'll try to look at it this week.
>
> That would be most appreciated Jeremy, thanks!
>
> >
> >Jeremy
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: [announce] Release Wicket 1.4.9

2010-05-24 Thread Jeremy Thomerson
2010/5/24 Michał Letyński 

> Hi.
> W dniu 2010-05-24 03:59, Jeremy Thomerson pisze:
>
>  ** Improvement
>> * [WICKET-2790] - wicketTester.executeAjaxEvent method does not check
>> if
>> form is multiPart
>>
>>
> Is this improvment a part of 1.4.9 ? Since on jira page this improvment is
> postponed to 1.4.10.
>

Sorry, that is a mistake.  WICKET-2790 is NOT a part of 1.4.9.  It looks
like someone set the "fix version" when they first created the issue rather
than the "affects version".  I've updated JIRA to reflect that it is not in
a fixed version yet.

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