Re: Feedback next to each input field on form

2012-06-27 Thread Martin Grigorov
See 
http://code.google.com/p/londonwicket/downloads/detail?name=LondonWicket-FormsWithFlair.pdfcan=2q=

On Wed, Jun 27, 2012 at 2:23 AM, srinash avisrid...@gmail.com wrote:
 can someone help me with this.

 thank you


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Feedback-next-to-each-input-field-on-form-tp4649886p4650242.html
 Sent from the Users forum 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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: SecurePackageResourceGuard question

2012-06-27 Thread Martin Grigorov
Hi,

Read http://wicketinaction.com/2011/07/wicket-1-5-mounting-resources/
You can create a custom impl of ResourceReference that just returns
your resource.

On Wed, Jun 27, 2012 at 2:24 AM, mlabs mlabs@gmail.com wrote:
 I have implemented a ByteArrayResource and I'm not sure what sort of resource
 reference to use to reference it. I tried PackageResourceReference and
 SharedResourceReference but these things seem to be hooked into the
 SecurePackageResourceGuard mechanism...  and the url I use to reference my
 resource is along the lines of bar?foo=5322 .. I generated and unique... so
 even when I add a pattern like '+*bar*' it still seems to fail and try to
 auto-create a resource.. and that doesn't work.
 Not understanding resources and references at this point

 any hints?

 TIA

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/SecurePackageResourceGuard-question-tp4650243.html
 Sent from the Users forum 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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Wicket Stuff Examples!?

2012-06-27 Thread chris polzer
Hello everybody,

I woul dlike to know if there is a Demo application hosted out there
featuring the wicket stuff examples?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Stuff-Examples-tp4650248.html
Sent from the Users forum 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 Stuff Examples!?

2012-06-27 Thread Martin Grigorov
Hi,

The only app I know of is Inmethod-Grid:
http://www.wicket-library.com/inmethod-grid/
Since a long time I'd like to create a project that combines all other
example projects using the new Servlet3 features but I have no time to
do it :-/

On Wed, Jun 27, 2012 at 12:04 PM, chris polzer
christian.pol...@googlemail.com wrote:
 Hello everybody,

 I woul dlike to know if there is a Demo application hosted out there
 featuring the wicket stuff examples?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-Stuff-Examples-tp4650248.html
 Sent from the Users forum 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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Wicket Stuff Examples!?

2012-06-27 Thread Rafał Krupiński

On 27.06.2012 11:04, chris polzer wrote:

Hello everybody,

I woul dlike to know if there is a Demo application hosted out there
featuring the wicket stuff examples?


You mean other than Live Wicket Examples at http://wicketstuff.org/ ?

Rafał



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



Re: Wicket Stuff Examples!?

2012-06-27 Thread chris polzer
Yes, 

I was searching for the Jquery Datatable. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Stuff-Examples-tp4650248p4650251.html
Sent from the Users forum 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 Stuff Examples!?

2012-06-27 Thread Martin Grigorov
Just download the .war from Maven repos and deploy it locally. Or
clone the project locally and run 'mvn jetty:run' for the examples.

On Wed, Jun 27, 2012 at 1:38 PM, chris polzer
christian.pol...@googlemail.com wrote:
 Yes,

 I was searching for the Jquery Datatable.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Wicket-Stuff-Examples-tp4650248p4650251.html
 Sent from the Users forum 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




-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Feedback next to each input field on form

2012-06-27 Thread lucast
Hi srinash,
Since you have mentioned you have the wicket cookbook, I would suggest that
you implement the example step, by step.
Also, go to  http://www.packtpub.com/apache-wicket-cookbook/book apache
wicket cookbook website  and download the code for each example.

Once you have downloaded the sample code, you will have a working example
and the instructions from the book.

If you still have problems with feedback for each field, then post a
question again.

I know that the examples from the book are in wicket 1.4 and I had some
trouble with some examples running on wicket 1.5, make sure they work on the
wicket version you are running.

I hope that helps,
Lucas

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Feedback-next-to-each-input-field-on-form-tp4649886p4650253.html
Sent from the Users forum 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 Page constructor getting called twice

2012-06-27 Thread Ian Marshall
Hello Nick and Martin,

Thank you for your replies.

I have added the following code in my subclassed WebApplication#init()
method, to be called when my application's RuntimeConfigurationType is
RuntimeConfigurationType.DEVELOPMENT:


I find no resultant


entry in my logs (created by EmptySrcAttributeCheckFilter). Thanks for
pointing out EmptySrcAttributeCheckFilter; I never knew it existed, and I
use it in development mode from now on. I have also searched my HTML for
empty src attributes, but I can find none.

I believe that I have found the reason for my subclassed WebPage constructor
being called twice. Whilst returning from the exernal web site, my browser
shows the dialog



It is my clicking of the Continue button which causes the 2nd call to the
WebPage constructor. The 1st call is already made when the dialog appears.

Thank you again for your help and tip, and have a good day,

Ian



Martin Grigorov-4 wrote
 
 Right,can lead to such behavior.
 Newer versions of Wicket (1.5+) have a preconfigured IResponseFilter
 which notifies you about such problem in DEV mode.
 You can also use CSS like: a[src = ] {color:red;} to see them easily.
 
 No matter what is the configured render strategy Wicket will call the
 page's constructor just once.
 _to_buffer strategy renders the page in the first request and save the
 html in a temporary place and just writes the plain html in the second
 request's response.
 
 
 On Mon, Jun 25, 2012 at 9:53 PM, Nick Heudecker lt;nheudecker@gt; wrote:
 I've only seen this type of behavior if I have an empty   
 element or something similar.



 On Mon, Jun 25, 2012 at 11:45 AM, Ian Marshall
 lt;IanMarshall.UK@gt;wrote:

 Hello All,

 My web application uses the default request cycle render strategy
 IRequestCycleSettings.RenderStrategy.REDIRECT_TO_BUFFER.

 An external web site calls a web page on my web application using a URL
 with
 page parameters (all of which I set before I hand over to the external
 web
 site). I find that the relevant WebPage constructor gets called twice
 during
 the request-response process, which I presume is expected behaviour:
 once
 to
 handle the action part of the request, again to handle the render part
 of
 the request.

 In the past, I bypassed this issue by showing an option with an OK
 button
 for action, so it didn't matter if the page constructor was called
 twice;
 no
 persistence code got executed until the user clicked OK subsequently.

 Now, however, I need to act on the request from the external web site
 straight away, in order to ensure that the database is updated before
 the
 user moves to another page without clicking OK (or away from my
 application altogether). Currently, I code this to happen in the page's
 constructor, so my database persistence code get called twice too. Not
 good,
 especially with Google App Engine, which does not like rapid updating of
 the
 same persistent entity group.

 My question is: is there a (simple) way for me to know whether my page
 is
 being constructed during the action part of the request as opposed to
 the
 render part of the request?

 (I have a work-around in mind, which is to store relevant details in the
 session, and use a check on these to prevent a second database
 persistence
 operation for the same data, but I would have thought that a simpler,
 more
 direct solution exists.)

 Any hints would be greatly appreciated.


 MY DEVELOPMENT ENVIRONMENT
 Web framework:     Wicket 1.5.7
 Java:              1.6.0_33; Java HotSpot(TM) Client VM 20.8-b03
 Web server system: Google App Engine for Java version 1.6.6
 Operating system:  Microsoft Windows XP Home Edition version 2002 SP3
                   (version 5.1 running on x86; Cp1252; en_GB) (nb)
 IDE:               NetBeans IDE 7.1.2 (Build 201204101705)


 Ian Marshall

 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Wicket-Page-constructor-getting-called-twice-tp4650225.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscribe@.apache
 For additional commands, e-mail: users-help@.apache


 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Page-constructor-getting-called-twice-tp4650225p4650254.html
Sent from the Users forum 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: AjaxEditableLabel in Wicket 6.0.x

2012-06-27 Thread Martin Grigorov
Hi,

There was a problem in -beta2 which is fixed in 6.0-SNAPSHOT.

On Wed, Jun 27, 2012 at 3:24 PM, Alexander Blum
alexander.b...@gmail.com wrote:
 Hi,

 I am developing a web application where I use AjaxEditableLabels which work
 fine in Wicket 1.5.x. I tried upgrading to Wicket 6.0.x to play with
 websockets, but found out that AjaxEditableLabel and AjaxEditableMultiLabel
 stopped working (I tried multiple browsers on multiple devices).
 Breakpoints in onModelChanging or onModelChanged fail to trigger and the
 model is not updated. I tried searching the web to see if this is a known
 problem, but either I am bad at searching or nobody else seems to be having
 problems with it.
 You can see it on the samples page by comparing the 1.5.7 sample with the
 6.0.x one:
 http://www.wicket-library.com/wicket-examples/ajax/editable-label
 http://www.wicket-library.com/wicket-examples-6.0.x/ajax/editable-label

 I know 6.0.x is still a beta, but is it a known problem that Ajax is broken
 or am I doing something wrong?

 Alex



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: AjaxEditableLabel in Wicket 6.0.x

2012-06-27 Thread Alexander Blum
2012/6/27 Martin Grigorov mgrigo...@apache.org

 Hi,

 There was a problem in -beta2 which is fixed in 6.0-SNAPSHOT.


 I guess I will have to clone the git repository and compile it myself or
wait for a new release tarball.
Thanks a lot!


Wicket 1.5.7: Links not working in WebSphere 6.1? Wrong redirection?

2012-06-27 Thread Jörn Gersdorf
Hi all,

I have an application developped using Wicket 1.5.7. The app has a logout
link setting the response page in the onClick() callback to some other page
NotLoggedIn (see code below). This is working fine when the app is
deployed to Tomcat 6.0 which I'm using in development mode.

But it fails utterly when the application is being deployed to WebSphere
6.1 with a 404 due to strange redirections:

Server interaction in WebSphere 6.1:

   1) Client requests /xyz/?0-1.ILinkListener-logout
   2) Server answers with 302 to
/xyz/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn
3) Client requests
/xyz/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn
4) Server answers with 302 to /xyz/de.xyz.pages.nonsecure.NotLoggedIn?0
(which is wrong! this doesn't exist!)
5) Client requests /xyz/de.xyz.pages.nonsecure.NotLoggedIn?0
6) Server answers with 404

As comparison Server interaction in Tomcat (working):

   1) Client requests /xyz/?0-1.ILinkListener-logout
   2) Server answers with 302 to
/xyz/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn
   3) Client requests
xyz/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn
   4) Server answers with 302 to
/xyz/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn?0
   5) Client requests
/pms/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn?0
   6) Server answers with 200 etc.

This is the code for setting up the logout link including the original
redirect to NotLoggedIn.class:

  add(new LinkString(logout, Model.of(Logout)) {
@Override
public void onClick() {
  getSession().invalidate();
  setResponsePage(NotLoggedIn.class);
}
  });

I'm using WicketFilter in my web.xml, where the filter mapping is
configured as follows:

  filter-mapping
filter-namewicketFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping

Thanks for any help!

Best regards,
Jörn


Ajax does not update my webcontainer

2012-06-27 Thread lang
I have a screen with a part for existings users and a part for new users. One
can switch by clicking a link 3
in the existingUserthere is a link for changing to newUser (and vv)
Initial i show both parts in orde to see any reaction but it does no react
at all
I my dos box i see:
 behavior not enabled; ignore call. Behavior
org.apache.wicket.ajax.markup.html.AjaxLink$1@10e5e03 at component [
[Component id = bestaandeGebruiker]]
I have no idea what to do

 
  trtd colspan=2div # wicket:message key=nieuweGebruiker /
/div/td/tr
  trtd colspan=2wicket:message
key=wachtwoordVergeten//td/tr
  
  
 
  trtd colspan=2div # wicket:message key=bestaandeGebruiker /
/div/td/tr
  tr class=inputLine 
  tdlabel for=wachtwoordwicket:message key=wachtwoord2
//label/td
  td class=verplicht*/td
  tdinput wicket:id=wachtwoord2 class=inputLine type=password
size=15//td 
  /tr  
==
 
@SuppressWarnings(rawtypes)
private AjaxLink nieuweGebruikerLink() {
AjaxLink nieuweGebruiker = new AjaxLink(nieuweGebruiker){
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
System.out.println(nieuweGebruikerLink);
newUserSetVisible(true);
target.add(newUser);
target.add(existingUser);
}
};  
return nieuweGebruiker;
}
@SuppressWarnings(rawtypes)
private AjaxLinkVoid bestaandeGebruiker() {
@SuppressWarnings(unchecked)
AjaxLinkVoid bestaandeGebruiker = new 
AjaxLink(bestaandeGebruiker){
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
System.out.println(bestaandeGebruiker);
newUserSetVisible(false);   
target.add(newUser);
target.add(existingUser);   
}
};  
return bestaandeGebruiker;
}   
private void newUserSetVisible(boolean show){
newUser.setVisible(show);
existingUser.setVisible(!show); 
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-does-not-update-my-webcontainer-tp4650259.html
Sent from the Users forum 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 1.5.7: Links not working in WebSphere 6.1? Wrong redirection?

2012-06-27 Thread Andrew Geery
Use the Wicket servlet, not the filter:

http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-Websphere-6-1-td2309401.html

https://cwiki.apache.org/WICKET/websphere.html

Andrew

On Wed, Jun 27, 2012 at 8:40 AM, Jörn Gersdorf jo...@gersdorf.info wrote:

 Hi all,

 I have an application developped using Wicket 1.5.7. The app has a logout
 link setting the response page in the onClick() callback to some other page
 NotLoggedIn (see code below). This is working fine when the app is
 deployed to Tomcat 6.0 which I'm using in development mode.

 But it fails utterly when the application is being deployed to WebSphere
 6.1 with a 404 due to strange redirections:

 Server interaction in WebSphere 6.1:

   1) Client requests /xyz/?0-1.ILinkListener-logout
   2) Server answers with 302 to
 /xyz/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn
 3) Client requests
 /xyz/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn
 4) Server answers with 302 to /xyz/de.xyz.pages.nonsecure.NotLoggedIn?0
 (which is wrong! this doesn't exist!)
 5) Client requests /xyz/de.xyz.pages.nonsecure.NotLoggedIn?0
 6) Server answers with 404

 As comparison Server interaction in Tomcat (working):

   1) Client requests /xyz/?0-1.ILinkListener-logout
   2) Server answers with 302 to
 /xyz/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn
   3) Client requests
 xyz/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn
   4) Server answers with 302 to
 /xyz/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn?0
   5) Client requests
 /pms/wicket/bookmarkable/de.xyz.pages.nonsecure.NotLoggedIn?0
   6) Server answers with 200 etc.

 This is the code for setting up the logout link including the original
 redirect to NotLoggedIn.class:

  add(new LinkString(logout, Model.of(Logout)) {
@Override
public void onClick() {
  getSession().invalidate();
  setResponsePage(NotLoggedIn.class);
}
  });

 I'm using WicketFilter in my web.xml, where the filter mapping is
 configured as follows:

  filter-mapping
filter-namewicketFilter/filter-name
url-pattern/*/url-pattern
  /filter-mapping

 Thanks for any help!

 Best regards,
 Jörn



Re: AjaxEditableLabel in Wicket 6.0.x

2012-06-27 Thread Martin Grigorov
Just use the snapshot repository.
You can see it at the bottom of the produced pom.xml for a quickstart
for 6.0-SNAPSHOT.

On Wed, Jun 27, 2012 at 3:37 PM, Alexander Blum
alexander.b...@gmail.com wrote:
 2012/6/27 Martin Grigorov mgrigo...@apache.org

 Hi,

 There was a problem in -beta2 which is fixed in 6.0-SNAPSHOT.


  I guess I will have to clone the git repository and compile it myself or
 wait for a new release tarball.
 Thanks a lot!



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



Re: Ajax does not update my webcontainer

2012-06-27 Thread Andrea Del Bene
Component corresponding to id=bestaandeGebruiker is not enabled or is 
invisible. That's why you get message behavior not enabled

I have a screen with a part for existings users and a part for new users. One
can switch by clicking a link 3
in the existingUserthere is a link for changing to newUser (and vv)
Initial i show both parts in orde to see any reaction but it does no react
at all
I my dos box i see:
  behavior not enabled; ignore call. Behavior
org.apache.wicket.ajax.markup.html.AjaxLink$1@10e5e03 at component [
[Component id = bestaandeGebruiker]]
I have no idea what to do

  
   trtd colspan=2div # wicket:message key=nieuweGebruiker /

/div/td/tr
   trtd colspan=2wicket:message
key=wachtwoordVergeten//td/tr
   
   
  
   trtd colspan=2div # wicket:message key=bestaandeGebruiker /

/div/td/tr
   tr class=inputLine
   tdlabel for=wachtwoordwicket:message key=wachtwoord2
//label/td
   td class=verplicht*/td
   tdinput wicket:id=wachtwoord2 class=inputLine type=password
size=15//td
   /tr
==
  
	@SuppressWarnings(rawtypes)

private AjaxLink nieuweGebruikerLink() {
AjaxLink nieuweGebruiker = new AjaxLink(nieuweGebruiker){
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
System.out.println(nieuweGebruikerLink);
newUserSetVisible(true);
target.add(newUser);
target.add(existingUser);
}
};  
return nieuweGebruiker;
}
@SuppressWarnings(rawtypes)
private AjaxLinkVoid bestaandeGebruiker() {
@SuppressWarnings(unchecked)
AjaxLinkVoid bestaandeGebruiker = new 
AjaxLink(bestaandeGebruiker){
private static final long serialVersionUID = 1L;
@Override
public void onClick(AjaxRequestTarget target) {
System.out.println(bestaandeGebruiker);
newUserSetVisible(false);   
target.add(newUser);
target.add(existingUser);   
}
};  
return bestaandeGebruiker;
}   
private void newUserSetVisible(boolean show){
newUser.setVisible(show);
existingUser.setVisible(!show); 
}


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-does-not-update-my-webcontainer-tp4650259.html
Sent from the Users forum mailing list archive at Nabble.com.

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





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



Adding Cookie in 1.5.5

2012-06-27 Thread wicket user
Hi, 

I was trying to add a cookie 
 getWebRequestCycle().getWebResponse().addCookie() 

but couldnt find getWebRequestCycle() in 1.5.5. 

i found getRequestCycle() but did not find addCookie in getResponse(). 

Please suggest how to add/get cookie in 1.5.5 

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Adding-Cookie-in-1-5-5-tp4650265.html
Sent from the Users forum 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



AW: Adding Cookie in 1.5.5

2012-06-27 Thread Jan Riehn
Hey,

there is an open issue: https://issues.apache.org/jira/browse/WICKET-4358

the hint 
((HttpServletResponse)bufferedWebResponse.getContainerResponse()).addCookie( 
cookie );  works.


Best regards,

Jan

Von: wicket user [samd...@live.com]
Gesendet: Mittwoch, 27. Juni 2012 19:49
An: users@wicket.apache.org
Betreff: Adding Cookie in 1.5.5

Hi,

I was trying to add a cookie
 getWebRequestCycle().getWebResponse().addCookie()

but couldnt find getWebRequestCycle() in 1.5.5.

i found getRequestCycle() but did not find addCookie in getResponse().

Please suggest how to add/get cookie in 1.5.5

Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Adding-Cookie-in-1-5-5-tp4650265.html
Sent from the Users forum mailing list archive at Nabble.com.

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

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



Ajax hide/show does not work

2012-06-27 Thread lang
I do not understand this. I made a panel that must be hidden on click or show
up on another
Hiding works the first time then never again. SHow never works
What do i wrong??
==
html
head
titleWicket Examples - upload/title
link rel=stylesheet type=text/css href=style.css/
/head
body

Test


# Show 1 br/
# Show 2 br/

div wicket:id=panel1 style=background-color: green;
Kijk eens naar Panel1
/div

div wicket:id=panel2 style=background-color: yellow;
Je kijkt naar panel2
/div

/body
/html

final WebMarkupContainer panel1 = new WebMarkupContainer(panel1);
private boolean toon1;

public HidePage(){

add(panel1);
panel1.setVisible(false);
panel1.setOutputMarkupId(true);

add(toon1());
}
private AjaxLink toon1() {  
AjaxLink link1 = new AjaxLink(link1){
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
System.out.println(link 1 +!toon1);
panel1.setVisible(true);
target.add(panel1);
}
};  
return link1;
}
private AjaxLink toon2() {  
AjaxLink link2 = new AjaxLink(link2){
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
System.out.println(link 2 +!toon2);
panel1.setVisible(false);
target.add(panel1);
}
};  
return link2;
}
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-hide-show-does-not-work-tp4650267.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Ajax hide/show does not work

2012-06-27 Thread Andrea Del Bene

Hi,

try setOutputMarkupPlaceholderTag instead of setOutputMarkupId.

I do not understand this. I made a panel that must be hidden on click or show
up on another
Hiding works the first time then never again. SHow never works
What do i wrong??
==
html
head
 titleWicket Examples - upload/title
 link rel=stylesheet type=text/css href=style.css/
/head
body

Test


# Show 1 br/
# Show 2 br/

div wicket:id=panel1 style=background-color: green;
Kijk eens naar Panel1
/div

div wicket:id=panel2 style=background-color: yellow;
Je kijkt naar panel2
/div

/body
/html

final WebMarkupContainer panel1 = new WebMarkupContainer(panel1);
private boolean toon1;

public HidePage(){

add(panel1);
panel1.setVisible(false);
panel1.setOutputMarkupId(true);

add(toon1());
}
private AjaxLink toon1() {  
AjaxLink link1 = new AjaxLink(link1){
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
System.out.println(link 1 +!toon1);
panel1.setVisible(true);
target.add(panel1);
}
};  
return link1;
}
private AjaxLink toon2() {  
AjaxLink link2 = new AjaxLink(link2){
private static final long serialVersionUID = 1L;
public void onClick(AjaxRequestTarget target) {
System.out.println(link 2 +!toon2);
panel1.setVisible(false);
target.add(panel1);
}
};  
return link2;
}
}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajax-hide-show-does-not-work-tp4650267.html
Sent from the Users forum mailing list archive at Nabble.com.

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





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



Re: Feedback next to each input field on form

2012-06-27 Thread srinash
Thank you for your replies. Let me take a look at the code.



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Feedback-next-to-each-input-field-on-form-tp4649886p4650269.html
Sent from the Users forum 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