AW: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread Hans Lesmeister
Hi,

panel.getPage() gives you the current page which you can reload i.e. with
setResponsePage()

Cheers 
Hans

-Ursprüngliche Nachricht-
Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] 
Gesendet: Mittwoch, 20. Juni 2012 07:54
An: users@wicket.apache.org
Betreff: How to reload a Wicket-page from Wicket-panel.

Hi,

I want to reload Wicket-page from a Wicket-panel.

The scenario is like :

1) I have a SignInPanel. I am adding this panel in different pages, lets for
example say PageA, PageB, PageC etc.

2) Now when user is in PageA, and user signs in from SignInPanel. I want the
contents of PageA to change as per user's data. For this i need to reload
PageA. 

3) Step (2) is applicable for PageB, PageC and all other pages which holds
this SignInPanel.

But i am not able to access the Page instance from within the SignInPanel. 
One approach i have thought of, is to pass the Page class to the constructor
of SignInPanel while initializing it. And i can use this Page class to
reload the particular page.

Can anyone suggest me of a cleaner approach to acheive this.

Thanks,




-
Regards,

Vaibhav Gupta
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from-
Wicket-panel-tp4650097.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: AW: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread vaibhav2012
Hi Hans,

I have already tried this, but it doesn't work.
SignInPanel is a seperate class which extends 
*org.apache.wicket.markup.html.panel.Panel*, and it is having its seperate
markup.
I am adding this SignInPanel as a Component in different wicket pages, as
mentioned in the scenario in my original question.

SignInPanel has a form, and from onSubmit() of that form, i want to reload
the page which holds this SignInPanel.
I used this.getPage() in SignInPanel's constructor, but it gives this
exception *org.apache.wicket.WicketRuntimeException: No Page found for
component [SignInPanel [Component id = signInPanel]]*

Can u suggest some other way?

Thanks,



-
Regards,

Vaibhav Gupta
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from-Wicket-panel-tp4650097p4650099.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: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread Hans Lesmeister
Please post your code

-Ursprüngliche Nachricht-
Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] 
Gesendet: Mittwoch, 20. Juni 2012 08:20
An: users@wicket.apache.org
Betreff: Re: AW: How to reload a Wicket-page from Wicket-panel.

Hi Hans,

I have already tried this, but it doesn't work.
SignInPanel is a seperate class which extends
*org.apache.wicket.markup.html.panel.Panel*, and it is having its seperate
markup.
I am adding this SignInPanel as a Component in different wicket pages, as
mentioned in the scenario in my original question.

SignInPanel has a form, and from onSubmit() of that form, i want to reload
the page which holds this SignInPanel.
I used this.getPage() in SignInPanel's constructor, but it gives this
exception *org.apache.wicket.WicketRuntimeException: No Page found for
component [SignInPanel [Component id = signInPanel]]*

Can u suggest some other way?

Thanks,



-
Regards,

Vaibhav Gupta
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from-
Wicket-panel-tp4650097p4650099.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: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread Hans Lesmeister
 I used this.getPage() in SignInPanel's constructor

In the constructor, the page is not yet set (See onInitialize and
onConfigure)


-Ursprüngliche Nachricht-
Von: vaibhav2012 [mailto:vaibhav.bit2...@gmail.com] 
Gesendet: Mittwoch, 20. Juni 2012 08:20
An: users@wicket.apache.org
Betreff: Re: AW: How to reload a Wicket-page from Wicket-panel.

Hi Hans,

I have already tried this, but it doesn't work.
SignInPanel is a seperate class which extends
*org.apache.wicket.markup.html.panel.Panel*, and it is having its seperate
markup.
I am adding this SignInPanel as a Component in different wicket pages, as
mentioned in the scenario in my original question.

SignInPanel has a form, and from onSubmit() of that form, i want to reload
the page which holds this SignInPanel.
I used this.getPage() in SignInPanel's constructor, but it gives this
exception *org.apache.wicket.WicketRuntimeException: No Page found for
component [SignInPanel [Component id = signInPanel]]*

Can u suggest some other way?

Thanks,



-
Regards,

Vaibhav Gupta
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from-
Wicket-panel-tp4650097p4650099.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: Verifying image HREF with Wicket tester

2012-06-20 Thread Martin Grigorov
Yes, this should be improved.
Please create a ticket with a test case.

On Wed, Jun 20, 2012 at 12:21 AM, Alec Swan alecs...@gmail.com wrote:
 I had to make sure that my img element had a closing /img

 The problem is that
 org.apache.wicket.util.tester.TagTester#createTagByAttribute requires
 the img element to be closed, i.e. img/ or img/img. Otherwise
 closeTag variable is never set and the loop does not exit.

 Seems like a bug to me, isn't it?

 On Tue, Jun 19, 2012 at 1:18 PM, Martin Grigorov mgrigo...@apache.org wrote:
 Fire the debugger and see what happens.

 On Tue, Jun 19, 2012 at 8:56 PM, Alec Swan alecs...@gmail.com wrote:
 Martin, if there was a problem with repeater wouldn't I have had
 multiple myPanel components? Yet, tester.getTagByWicketId(myPanel)
 works.

 On Tue, Jun 19, 2012 at 9:46 AM, Alec Swan alecs...@gmail.com wrote:
 getTagByWicketId(..) JavaDoc says that if there are multiple
 components with this wicket:id it will return the first one. Besides,
 we only have one cell in the table, so there should be only one
 myImage element.

 On Tue, Jun 19, 2012 at 9:37 AM, Martin Grigorov mgrigo...@apache.org 
 wrote:
 On Tue, Jun 19, 2012 at 6:26 PM, Alec Swan alecs...@gmail.com wrote:
 Martin, this method works fine on the top page elements but not on the
 nested panel's elements. I need to get the HREF attribute of
 myForm:rows:1:cols:2:myPanel:myImage on the top page.

 '2' is the component id of an item inside a repeater.
 That means you have several components with id 'myImage'


 THIS WORKS: tester.getTagByWicketId(myForm)
 THIS WORKS: tester.getTagByWicketId(rows)
 THIS WORKS: tester.getTagByWicketId(myPanel)

 THIS DOES NOT WORK: tester.getTagByWicketId(myImage)
 THIS DOES NOT WORK: tester.getTagByWicketId(myPanel:myImage)

 Thoughts?

 Thanks,

 Alec

 On Tue, Jun 19, 2012 at 8:42 AM, Martin Grigorov mgrigo...@apache.org 
 wrote:
 See #getTagBy*** methods.
 This way you get a TagTester and then you can check the attributes.

 On Tue, Jun 19, 2012 at 5:39 PM, Alec Swan alecs...@gmail.com wrote:
 Hello,

 How can I access and verify the HREF attribute of an Image with 
 WicketTester?

 Thanks,

 Alec

 -
 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


 -
 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


 -
 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


 -
 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: How to reload a Wicket-page from Wicket-panel.

2012-06-20 Thread vaibhav2012
Hi Hans,

Thanks for the information. Its working :).

-
Regards,

Vaibhav Gupta
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-reload-a-Wicket-page-from-Wicket-panel-tp4650097p4650103.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: DynamicImageResource in ajax panel

2012-06-20 Thread vineet semwal
try new noncachingimage(id,  dynamicmodelfortheresource())

On Wed, Jun 20, 2012 at 7:01 AM, mlabs mlabs@gmail.com wrote:
 I have a panel that I update via ajax.
 In that panel is an Image.
 The Image uses a DynamicWebResource, whose getImageData() method produces a
 PNG file.
 The getImageData() override gets called the first time the page renders but
 upon subsequent refreshes of the panel via ajax, it does not... so my image
 doesn't get updated.
 I've tried marking it as non-cacheable and I also tried invalidating it...
 but nothing seems to cause the getImageData() override to be called again...

 any ideas what I might be doing wrong?

 TIA


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/DynamicImageResource-in-ajax-panel-tp4650094.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




-- 
thanks,

Vineet Semwal

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



Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Hi,
 
I have embed/include a wicket page in a third party jsp site ( with iframe )
and  on form submit the jsp sending the values to iframe through post
method.

I need to get those values in wicket page, I have used pageparameters and
getRequest().getPostParameters().getParameterNames() but no luck.

Please can you help me on this.
 

Code : 
Third Party Jsp

form action=http://localhost:8080/abc; name=myform target=my-iframe
method=POST 
input type=text name=name id=text/input
input type=hidden name=memberId id=memberId 
value=1234/
input type=hidden name=firstName id=firstName 
value=ram/
input type=hidden name=lastName id=lastName 
value=babu/
input type=hidden name=parenttoken 
id=parenttoken value=123456/
input type=submit name=sumbit /
/form
 iframe height=410 width=100% frameBorder=1 name=my-iframe

src=http://localhost:8081/abc;/iframe


Kind regards
Rambabu

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106.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: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
This should just work...
Can you show us the java (wicket) code ?
Also check with Firebug/Dev tools that the post data is actually sent.

On Wed, Jun 20, 2012 at 11:12 AM, ramlael grambab...@gmail.com wrote:
 Hi,

 I have embed/include a wicket page in a third party jsp site ( with iframe )
 and  on form submit the jsp sending the values to iframe through post
 method.

 I need to get those values in wicket page, I have used pageparameters and
 getRequest().getPostParameters().getParameterNames() but no luck.

 Please can you help me on this.


 Code :
 Third Party Jsp

 form action=http://localhost:8080/abc; name=myform target=my-iframe
 method=POST 
                        input type=text name=name id=text/input
                        input type=hidden name=memberId id=memberId 
 value=1234/
                        input type=hidden name=firstName id=firstName 
 value=ram/
                        input type=hidden name=lastName id=lastName 
 value=babu/
                        input type=hidden name=parenttoken 
 id=parenttoken value=123456/
                        input type=submit name=sumbit /
 /form
  iframe height=410 width=100% frameBorder=1 name=my-iframe
                                                
 src=http://localhost:8081/abc;/iframe


 Kind regards
 Rambabu

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106.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: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
HI

JSP and Wikcet Iframe running on different server. 

The JAVA Code
public class abc extends WebPage {

public abc(final PageParameters parameters) {
logger.debug(+ +
parameters.getIndexedCount());
logger.debug(++getRequest().getPostParameters().getParameterNames());
}

}

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650108.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: Properly share data model in TabbedPanel

2012-06-20 Thread nunofaria11
So are you suggesting that I create a form inside each tab-panel? Or a form
that includes the whole TabbedPanel?

2012/6/20 Sven Meier [via Apache Wicket] 
ml-node+s1842946n4650096...@n4.nabble.com

   when I click a submit button the data gets refreshed inside the model
   and I can see the changes when I switch tabs, but only then
   In the second panel there is nothing special, only an AjaxSubmitLink
   that repaints a WebMarkupContainer.

 TabbedPanel uses links by default, so form values are lost when you
 switch tabs.

 You can use SubmitLinks instead, see TabbedPanel#newLink().

 Sven

 On 06/20/2012 12:37 AM, nunofaria11 wrote:

  That is indeed a useful link. Thank you...
  However, I still get the same behavior
 
  Here is what I have:
 
  public class HomePage extends WebPage {
 
   private static final long serialVersionUID = 1L;
   private ArrayListGPSCoord  coords = new ArrayListGPSCoord();
 
   public HomePage() {
   final ArrayList tabsList = new ArrayList();
   final PropertyModelArrayListGPSCoord  model = new
 PropertyModelArrayListGPSCoord(this, coords);
   tabsList.add(new AbstractTab(new ModelString(City Chooser))
 {
 
   @Override
   public WebMarkupContainer getPanel(String string) {
   return new CitiesPanel(string, model);
   }
   });
 
   tabsList.add(new AbstractTab(new ModelString(Map Tab)) {
 
   @Override
   public WebMarkupContainer getPanel(String string) {
   CoordsPanel panel = new CoordsPanel(string, model);
   return panel;
   }
   });
 
   TabbedPanel tabbedPanel = new TabbedPanel(tabs, tabsList);
   add(tabbedPanel);
   }
  }
 
  Something weird happens though: in my second panel (CoordsPanel), when I
 click a submit button the data gets refreshed inside the model and I can
 see the changes when I switch tabs, but only then - and it is still the
 only way I can perform changes in the model.
 
  In the second panel there is nothing special, only an AjaxSubmitLink
 that repaints a WebMarkupContainer. Does that have any impact in the
 TabbedPanel?
 
 
  A 19/06/2012, às 21:39, Martin Grigorov-4 [via Apache Wicket] escreveu:
 
  it sounds like you are using static models.
  read about dynamic models at:
  https://cwiki.apache.org/WICKET/working-with-wicket-models.html
  On Tue, Jun 19, 2012 at 11:36 PM, nunofaria11[hidden email]  wrote:
 
  By doesn't work I meant the data (inside the model) that was supposed
 to
  change does not change.
 
  2012/6/19 Martin Grigorov-4 [via Apache Wicket]
  [hidden email]
 
  On Tue, Jun 19, 2012 at 11:26 PM, nunofaria11[hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650084i=0
  wrote:
  Hi, I am trying to properly share a model between tabs in a
 TabbedPanel.
  I've been trying to pass the model to the Panels returned in the
  getPanel
  hook (below), but it seems not to work.
  Doesn't work doesn't explain much.
  Give us more information/code.
 
 
 
  tabs.add(new AbstractTab(new Model(Title)) {
 
 
 @Override
 
 public WebMarkupContainer getPanel(String panelId) {
 
   return new MyPanel(panelId, model);
 }
 
  });
 
  TabbedPanel tabbedPanel = new TabbedPanel(tabs, tabs);
 
 
 
  Can someone point me to an example where this is done?
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Properly-share-data-model-in-TabbedPanel-tp4650082.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
 
 -
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650084i=1
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650084i=2
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650084i=3
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650084i=4
 
 
 
  --
If you reply to this email, your message will be added to the
 discussion
  below:
 
 
  .
  NAML
 http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

 
 
 
  --
  Nuno Faria
 
 
  --
  View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Properly-share-data-model-in-TabbedPanel-tp4650082p4650085.html
  Sent from the Users forum mailing list 

Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread vineet semwal
you forgot to do super(parameters) in constructors

On Wed, Jun 20, 2012 at 1:58 PM, ramlael grambab...@gmail.com wrote:
 HI

 JSP and Wikcet Iframe running on different server.

 The JAVA Code
 public class abc extends WebPage {

 public abc(final PageParameters parameters) {
 logger.debug(+ +
 parameters.getIndexedCount());
 logger.debug(++getRequest().getPostParameters().getParameterNames());
        }

 }

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650108.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




-- 
thanks,

Vineet Semwal

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
PageParameters contain only the GET parameters.
Calling super(parameters) only helps to use page.getPageParameters() later.

getRequest().getPostParameters().getParameterNames() is the right way
to read POST params in this case.
As I said check that the browser actually sends them.

On Wed, Jun 20, 2012 at 11:30 AM, vineet semwal
vineetsemwa...@gmail.com wrote:
 you forgot to do super(parameters) in constructors

 On Wed, Jun 20, 2012 at 1:58 PM, ramlael grambab...@gmail.com wrote:
 HI

 JSP and Wikcet Iframe running on different server.

 The JAVA Code
 public class abc extends WebPage {

 public abc(final PageParameters parameters) {
 logger.debug(+ +
 parameters.getIndexedCount());
 logger.debug(++getRequest().getPostParameters().getParameterNames());
        }

 }

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650108.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




 --
 thanks,

 Vineet Semwal

 -
 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: Verifying image HREF with Wicket tester

2012-06-20 Thread Carl-Eric Menzel
On Tue, 19 Jun 2012 15:21:17 -0600
Alec Swan alecs...@gmail.com wrote:

 I had to make sure that my img element had a closing /img
 
 The problem is that
 org.apache.wicket.util.tester.TagTester#createTagByAttribute requires
 the img element to be closed, i.e. img/ or img/img. Otherwise
 closeTag variable is never set and the loop does not exit.
 
 Seems like a bug to me, isn't it?

A lone open img tag wouldn't be valid XHTML. Does our HTML5 support
include support for non-wellformed documents?

Carl-Eric

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



Re: Ajaxbutton, updating forms, broken persistence: strange, seemingly unrelated behaviour

2012-06-20 Thread lucast
Thank you, Sven.

In my code I was not calling LoadableDetachableModel.detach() after
persisting objects to the database. Something I should have done.

As for the new events mechanism, I just had a look at the Migration to
Wicket 1.5 and it looks like it's just what I need. The example from the
wicket-example page is clear and concise. This will indeed untangle my
code as you rightly put it.

I shall read the Migration to Wicket 1.5 document as up until now I was more
concern of having my code up and running and charging ahead with having my
1.4 code working on 1.5.

Thanks for your help,
Lucas

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Ajaxbutton-updating-forms-broken-persistence-strange-seemingly-unrelated-behaviour-tp4650049p4650112.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: Properly share data model in TabbedPanel

2012-06-20 Thread Martin Grigorov
You need to update the value of coors somehow before going to the next tab.
As Sven explained clicking on the tab wont submit the form inside a tab panel.
You can submit the form in a tab panel explicitly with its own button.
You can wrap the tabbed panel in a form and use a SubmitLink to switch
between the tabs.

On Wed, Jun 20, 2012 at 11:28 AM, nunofaria11 nunofari...@gmail.com wrote:
 So are you suggesting that I create a form inside each tab-panel? Or a form
 that includes the whole TabbedPanel?

 2012/6/20 Sven Meier [via Apache Wicket] 
 ml-node+s1842946n4650096...@n4.nabble.com

   when I click a submit button the data gets refreshed inside the model
   and I can see the changes when I switch tabs, but only then
   In the second panel there is nothing special, only an AjaxSubmitLink
   that repaints a WebMarkupContainer.

 TabbedPanel uses links by default, so form values are lost when you
 switch tabs.

 You can use SubmitLinks instead, see TabbedPanel#newLink().

 Sven

 On 06/20/2012 12:37 AM, nunofaria11 wrote:

  That is indeed a useful link. Thank you...
  However, I still get the same behavior
 
  Here is what I have:
 
  public class HomePage extends WebPage {
 
       private static final long serialVersionUID = 1L;
       private ArrayListGPSCoord  coords = new ArrayListGPSCoord();
 
       public HomePage() {
           final ArrayList tabsList = new ArrayList();
           final PropertyModelArrayListGPSCoord  model = new
 PropertyModelArrayListGPSCoord(this, coords);
           tabsList.add(new AbstractTab(new ModelString(City Chooser))
 {
 
               @Override
               public WebMarkupContainer getPanel(String string) {
                   return new CitiesPanel(string, model);
               }
           });
 
           tabsList.add(new AbstractTab(new ModelString(Map Tab)) {
 
               @Override
               public WebMarkupContainer getPanel(String string) {
                   CoordsPanel panel = new CoordsPanel(string, model);
                   return panel;
               }
           });
 
           TabbedPanel tabbedPanel = new TabbedPanel(tabs, tabsList);
           add(tabbedPanel);
       }
  }
 
  Something weird happens though: in my second panel (CoordsPanel), when I
 click a submit button the data gets refreshed inside the model and I can
 see the changes when I switch tabs, but only then - and it is still the
 only way I can perform changes in the model.
 
  In the second panel there is nothing special, only an AjaxSubmitLink
 that repaints a WebMarkupContainer. Does that have any impact in the
 TabbedPanel?
 
 
  A 19/06/2012, às 21:39, Martin Grigorov-4 [via Apache Wicket] escreveu:
 
  it sounds like you are using static models.
  read about dynamic models at:
  https://cwiki.apache.org/WICKET/working-with-wicket-models.html
  On Tue, Jun 19, 2012 at 11:36 PM, nunofaria11[hidden email]  wrote:
 
  By doesn't work I meant the data (inside the model) that was supposed
 to
  change does not change.
 
  2012/6/19 Martin Grigorov-4 [via Apache Wicket]
  [hidden email]
 
  On Tue, Jun 19, 2012 at 11:26 PM, nunofaria11[hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650084i=0
  wrote:
  Hi, I am trying to properly share a model between tabs in a
 TabbedPanel.
  I've been trying to pass the model to the Panels returned in the
  getPanel
  hook (below), but it seems not to work.
  Doesn't work doesn't explain much.
  Give us more information/code.
 
 
 
  tabs.add(new AbstractTab(new Model(Title)) {
 
 
             @Override
 
             public WebMarkupContainer getPanel(String panelId) {
 
               return new MyPanel(panelId, model);
             }
 
  });
 
  TabbedPanel tabbedPanel = new TabbedPanel(tabs, tabs);
 
 
 
  Can someone point me to an example where this is done?
 
 
  --
  View this message in context:
 
 http://apache-wicket.1842946.n4.nabble.com/Properly-share-data-model-in-TabbedPanel-tp4650082.html
  Sent from the Users forum mailing list archive at Nabble.com.
 
 
 -
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650084i=1
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650084i=2
 
 
 
  --
  Martin Grigorov
  jWeekend
  Training, Consulting, Development
  http://jWeekend.com
 
  -
  To unsubscribe, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650084i=3
  For additional commands, e-mail: [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4650084i=4
 
 
 
  --
    If you reply to this email, your message will be added to the
 discussion
  below:
 
 
  .
  NAML
 

Re: Verifying image HREF with Wicket tester

2012-06-20 Thread Martin Grigorov
On Wed, Jun 20, 2012 at 11:34 AM, Carl-Eric Menzel
cmen...@wicketbuch.de wrote:
 On Tue, 19 Jun 2012 15:21:17 -0600
 Alec Swan alecs...@gmail.com wrote:

 I had to make sure that my img element had a closing /img

 The problem is that
 org.apache.wicket.util.tester.TagTester#createTagByAttribute requires
 the img element to be closed, i.e. img/ or img/img. Otherwise
 closeTag variable is never set and the loop does not exit.

 Seems like a bug to me, isn't it?

 A lone open img tag wouldn't be valid XHTML. Does our HTML5 support
 include support for non-wellformed documents?

Yes.


 Carl-Eric

 -
 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: Properly share data model in TabbedPanel

2012-06-20 Thread nunofaria11
Worked like a charm. Thank you everyone.
And for future users who bump into this thread, solved it with this...

TabbedPanel tabbedPanel = new TabbedPanel(tabs, tabs) {

@Override
protected WebMarkupContainer newLink(String linkId, final int
index) {
return new SubmitLink(linkId) {

@Override
public void onSubmit() {
setSelectedTab(index);
}
};
}
};

2012/6/20 Martin Grigorov-4 [via Apache Wicket] 
ml-node+s1842946n4650114...@n4.nabble.com

 You need to update the value of coors somehow before going to the next
 tab.
 As Sven explained clicking on the tab wont submit the form inside a tab
 panel.
 You can submit the form in a tab panel explicitly with its own button.
 You can wrap the tabbed panel in a form and use a SubmitLink to switch
 between the tabs.

 On Wed, Jun 20, 2012 at 11:28 AM, nunofaria11 [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=4650114i=0
 wrote:

  So are you suggesting that I create a form inside each tab-panel? Or a
 form
  that includes the whole TabbedPanel?
 
  2012/6/20 Sven Meier [via Apache Wicket] 
  [hidden email] http://user/SendEmail.jtp?type=nodenode=4650114i=1
 
when I click a submit button the data gets refreshed inside the
 model
and I can see the changes when I switch tabs, but only then
In the second panel there is nothing special, only an AjaxSubmitLink
that repaints a WebMarkupContainer.
 
  TabbedPanel uses links by default, so form values are lost when you
  switch tabs.
 
  You can use SubmitLinks instead, see TabbedPanel#newLink().
 
  Sven
 
  On 06/20/2012 12:37 AM, nunofaria11 wrote:
 
   That is indeed a useful link. Thank you...
   However, I still get the same behavior
  
   Here is what I have:
  
   public class HomePage extends WebPage {
  
private static final long serialVersionUID = 1L;
private ArrayListGPSCoord  coords = new ArrayListGPSCoord();
  
public HomePage() {
final ArrayList tabsList = new ArrayList();
final PropertyModelArrayListGPSCoord  model = new
  PropertyModelArrayListGPSCoord(this, coords);
tabsList.add(new AbstractTab(new ModelString(City
 Chooser))
  {
  
@Override
public WebMarkupContainer getPanel(String string) {
return new CitiesPanel(string, model);
}
});
  
tabsList.add(new AbstractTab(new ModelString(Map Tab)) {
  
@Override
public WebMarkupContainer getPanel(String string) {
CoordsPanel panel = new CoordsPanel(string, model);
return panel;
}
});
  
TabbedPanel tabbedPanel = new TabbedPanel(tabs, tabsList);
add(tabbedPanel);
}
   }
  
   Something weird happens though: in my second panel (CoordsPanel),
 when I
  click a submit button the data gets refreshed inside the model and I
 can
  see the changes when I switch tabs, but only then - and it is still the
  only way I can perform changes in the model.
  
   In the second panel there is nothing special, only an AjaxSubmitLink
  that repaints a WebMarkupContainer. Does that have any impact in the
  TabbedPanel?
  
  
   A 19/06/2012, às 21:39, Martin Grigorov-4 [via Apache Wicket]
 escreveu:
  
   it sounds like you are using static models.
   read about dynamic models at:
   https://cwiki.apache.org/WICKET/working-with-wicket-models.html
   On Tue, Jun 19, 2012 at 11:36 PM, nunofaria11[hidden email]
  wrote:
  
   By doesn't work I meant the data (inside the model) that was
 supposed
  to
   change does not change.
  
   2012/6/19 Martin Grigorov-4 [via Apache Wicket]
   [hidden email]
  
   On Tue, Jun 19, 2012 at 11:26 PM, nunofaria11[hidden email]
  http://user/SendEmail.jtp?type=nodenode=4650084i=0
   wrote:
   Hi, I am trying to properly share a model between tabs in a
  TabbedPanel.
   I've been trying to pass the model to the Panels returned in the
   getPanel
   hook (below), but it seems not to work.
   Doesn't work doesn't explain much.
   Give us more information/code.
  
  
  
   tabs.add(new AbstractTab(new Model(Title)) {
  
  
  @Override
  
  public WebMarkupContainer getPanel(String panelId) {
  
return new MyPanel(panelId, model);
  }
  
   });
  
   TabbedPanel tabbedPanel = new TabbedPanel(tabs, tabs);
  
  
  
   Can someone point me to an example where this is done?
  
  
   --
   View this message in context:
  
 
 http://apache-wicket.1842946.n4.nabble.com/Properly-share-data-model-in-TabbedPanel-tp4650082.html
   Sent from the Users forum mailing list archive at Nabble.com.
  
  
  -
   To unsubscribe, e-mail: [hidden email]
  

Support for native Web Socket in Wicket 6.0

2012-06-20 Thread Martin Grigorov
Hi,

A new experimental module has been added to Wicket 6 - Wicket Native WebSocket.
This module adds support for using HTML5 WebSockets as you may use
Ajax in your Wicket applications.
All you have to do is to add a WebSocketBehavior to your page and from
there on you can receive messages from the clients and push messages
back to them.

At https://cwiki.apache.org/confluence/x/0vSoAQ you may find the
documentation and a link to a demo application.
If something is not clear feel free to ask your question in the
mailing lists and we will improve the documentation.

The Wicket team

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



Re: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Yes... the post values are submitted. I have checked in firefox debugger

Parametersapplication/x-www-form-urlencoded
firstName   ram
lastNamebabu
memberId1234
name
parenttoken 123456
sumbit  Submit Query

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650120.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: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
Create a quickstart and attach it to a ticket in Jira.

On Wed, Jun 20, 2012 at 12:25 PM, ramlael grambab...@gmail.com wrote:
 Yes... the post values are submitted. I have checked in firefox debugger

 Parametersapplication/x-www-form-urlencoded
 firstName       ram
 lastName        babu
 memberId        1234
 name
 parenttoken     123456
 sumbit  Submit Query

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650120.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: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Hi, I didn't get you.. what r u saying.. shall I add all the pages to JIRA?

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650122.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: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
Just a small demo application. This is what we call a 'quickstart'.
http://wicket.apache.org/start/quickstart.html

On Wed, Jun 20, 2012 at 12:32 PM, ramlael grambab...@gmail.com wrote:
 Hi, I didn't get you.. what r u saying.. shall I add all the pages to JIRA?

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650122.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



Check component onSubmit behavior selects all

2012-06-20 Thread nunofaria11
Hi

I have a problem when submitting a form that has a ListView with a group of
Check components. Everything seems to work fine (checkgroupselector, the
selected collection model gets updated) - but when I submit the form that
contains the checkgroup (in my case, jump between a tab in a TabbedPanel and
go back to the first tab) all Check components appear selected.



...

protected void populateItem(ListItem item) {


final MyClass object = item.getModelObject();

IModel objectModel = item.getModel();


Check check = new Check(check, *objectModel*);

item.add(check);

...




I believe this has something to do with the *objectModel* being added to the
Check component - when submitting somehow the model for selected items sees
the attaching to the Check as a selection behavior.

Does anyone has any directions?

--
Nuno Faria


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Check-component-onSubmit-behavior-selects-all-tp4650124.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: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
Hey... I solved the problem..


I have changed the form action action=http://localhost:8080/abc; to
action=http://localhost:8080/abc/;   (added '/'  after abc)... now its
working fine.


thank you very much.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650125.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: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread Martin Grigorov
Good!

What is the value of url-mapping for WicketFilter in your web.xml ?

On Wed, Jun 20, 2012 at 1:29 PM, ramlael grambab...@gmail.com wrote:
 Hey... I solved the problem..


 I have changed the form action action=http://localhost:8080/abc; to
 action=http://localhost:8080/abc/;   (added '/'  after abc)... now its
 working fine.


 thank you very much.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650125.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: Not getting the Post Parameter values in Iframe (wicket Page)

2012-06-20 Thread ramlael
org.apache.wicket.protocol.http.WicketFilter

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Not-getting-the-Post-Parameter-values-in-Iframe-wicket-Page-tp4650106p4650127.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 6.0 WebSocket question: client API

2012-06-20 Thread Martin Grigorov
Hi Pierre,

Take a look at 
https://github.com/martin-g/wicket-native-websocket-example/blob/master/src/main/resources/org/apache/wicket/websocket/jetty/example/client.js

There is Wicket.WebSocket object which basically wraps native
window.WebSocket just to be able to intercept the calls and send
messages with Wicket.Event's PubSub.

You can use native window.WebSocket as well.

I'm working on a simplification which will create/open a single WS
connection for all WebSocketBehaviors you may have in your page. I
don't see why someone would need more than one websocket connection
per page. This way we/you can create components which use
WebSocketBehavior internally and use the default connection.

For example currently you need to do:
var ws = new Wicket.WebSocket();
ws.send('some text');

with the default connection it may look like:
WebSocketTextLink uses WebSocketBehavior to setup the connection and
to have the callback (#onTextMessage()), and additionally it will
register 'click' event listener for the link to read the text somehow
and send it with : Wicket.WebSocket.send(loadText())
Note that this way you don't care about creating the websocket at all
(new Wicket.WebSocket()). This will be done for you. You will just
need to provide a way to read the text that should be send.

I'll add some documentation about the client side API in the Wiki page soon.

On Wed, Jun 20, 2012 at 3:08 PM, Pierre Goupil goupilpie...@gmail.com wrote:
 Good afternoon,

 Thanks for the WebSocket support in Wicket 6.0, that's very good news to
 hear.

 But I have a couple of questions, though. Firstly, how am I supposed to
 send a message from the client-side? Am I supposed to use the plain-vanilla
 WebSocket API? For instance, would this do the trick:

 ---

 var ws = new WebSocket(ws://localhost:9998/echo);
 ws.onopen = function() {
      ws.send(Message to send);
 }

 --
  ?

 Or is there any other (more Wicket-way) of providing the server with a
 message?

 Secondly, how am I supposed to get the URL to provide to the client-side?
 Is there a #renderHead() method which could give it to me, like for the
 DefaultAjaxBehavior? I'm sorry I can't test it for the moment, so I'm just
 asking here.

 OK, thanks in advance guys!

 Regards,

 Pierre Goupil


 --
 Si tu penses que la violence ne résout rien, c'est que tu n'as pas tapé
 assez fort.



-- 
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 6.0 WebSocket question: client API

2012-06-20 Thread Pierre Goupil
Great! Thanks a lot!

Regards,

Pierre



On Wed, Jun 20, 2012 at 2:31 PM, Martin Grigorov mgrigo...@apache.orgwrote:

 Hi Pierre,

 Take a look at
 https://github.com/martin-g/wicket-native-websocket-example/blob/master/src/main/resources/org/apache/wicket/websocket/jetty/example/client.js

 There is Wicket.WebSocket object which basically wraps native
 window.WebSocket just to be able to intercept the calls and send
 messages with Wicket.Event's PubSub.

 You can use native window.WebSocket as well.

 I'm working on a simplification which will create/open a single WS
 connection for all WebSocketBehaviors you may have in your page. I
 don't see why someone would need more than one websocket connection
 per page. This way we/you can create components which use
 WebSocketBehavior internally and use the default connection.

 For example currently you need to do:
 var ws = new Wicket.WebSocket();
 ws.send('some text');

 with the default connection it may look like:
 WebSocketTextLink uses WebSocketBehavior to setup the connection and
 to have the callback (#onTextMessage()), and additionally it will
 register 'click' event listener for the link to read the text somehow
 and send it with : Wicket.WebSocket.send(loadText())
 Note that this way you don't care about creating the websocket at all
 (new Wicket.WebSocket()). This will be done for you. You will just
 need to provide a way to read the text that should be send.

 I'll add some documentation about the client side API in the Wiki page
 soon.

 On Wed, Jun 20, 2012 at 3:08 PM, Pierre Goupil goupilpie...@gmail.com
 wrote:
  Good afternoon,
 
  Thanks for the WebSocket support in Wicket 6.0, that's very good news to
  hear.
 
  But I have a couple of questions, though. Firstly, how am I supposed to
  send a message from the client-side? Am I supposed to use the
 plain-vanilla
  WebSocket API? For instance, would this do the trick:
 
  ---
 
  var ws = new WebSocket(ws://localhost:9998/echo);
  ws.onopen = function() {
   ws.send(Message to send);
  }
 
  --
   ?
 
  Or is there any other (more Wicket-way) of providing the server with a
  message?
 
  Secondly, how am I supposed to get the URL to provide to the client-side?
  Is there a #renderHead() method which could give it to me, like for the
  DefaultAjaxBehavior? I'm sorry I can't test it for the moment, so I'm
 just
  asking here.
 
  OK, thanks in advance guys!
 
  Regards,
 
  Pierre Goupil
 
 
  --
  Si tu penses que la violence ne résout rien, c'est que tu n'as pas tapé
  assez fort.



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




-- 
Si tu penses que la violence ne résout rien, c'est que tu n'as pas tapé
assez fort.


Re: Verifying image HREF with Wicket tester

2012-06-20 Thread Carl-Eric Menzel
In this case, yes, I think.

Carl-Eric

On Wed, 20 Jun 2012 09:27:27 -0600
Alec Swan alecs...@gmail.com wrote:

 So, this is a bug, right?
 
 On Wed, Jun 20, 2012 at 2:36 AM, Martin Grigorov
 mgrigo...@apache.org wrote:
  On Wed, Jun 20, 2012 at 11:34 AM, Carl-Eric Menzel
  cmen...@wicketbuch.de wrote:
  On Tue, 19 Jun 2012 15:21:17 -0600
  Alec Swan alecs...@gmail.com wrote:
 
  I had to make sure that my img element had a closing /img
 
  The problem is that
  org.apache.wicket.util.tester.TagTester#createTagByAttribute
  requires the img element to be closed, i.e. img/ or
  img/img. Otherwise closeTag variable is never set and the
  loop does not exit.
 
  Seems like a bug to me, isn't it?
 
  A lone open img tag wouldn't be valid XHTML. Does our HTML5
  support include support for non-wellformed documents?
 
  Yes.
 
 
  Carl-Eric
 
  -
  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
 
 
 -
 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



Sync up sessions

2012-06-20 Thread wicket user
Hi,

we are using Wicket as a Presentation layer, so we need to sync up with the
Session of the Business Layer framework, we kept this in the same WAR. 


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134.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: validation without form

2012-06-20 Thread srinash
form
textfield 
select box 
 submit (for these 2 fields after validation) 
/form

The form above is the outer form. There is no inner form, only one form the
outer form. 

Can a link be used to validate the user input fields.

Please let me know
Thanks

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/validation-without-form-tp4649992p4650135.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: Sync up sessions

2012-06-20 Thread Thomas Götz
Great! And what would be your question, please? ;) 

   -Tom 




Am Mittwoch, 20. Juni 2012 um 18:25 schrieb wicket user:

 Hi,
 
 we are using Wicket as a Presentation layer, so we need to sync up with the
 Session of the Business Layer framework, we kept this in the same WAR. 
 
 
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134.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: Sync up sessions

2012-06-20 Thread Igor Vaynberg
what do you mean by sync up?

you want to retrieve http session inside wicket code?

((HttpServletRequest)getRequestCycle().getRequest().getContainerRequest()).getSession()

-igor

On Wed, Jun 20, 2012 at 10:57 AM, wicket user samd...@live.com wrote:
 how can we sync up the session with the existing session of the business
 layer framework .

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134p4650137.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: Sync up sessions

2012-06-20 Thread wicket user
Yes taking Wicket Session and Spring Session and maintaining one session
across layers (presentation and business layers)

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134p4650141.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: Sync up sessions

2012-06-20 Thread Igor Vaynberg
wicket stores its Session object in the http session. so im not sure
what you need to sync up, both wicket and spring have access to the
same http session object.

-igor


On Wed, Jun 20, 2012 at 2:46 PM, wicket user samd...@live.com wrote:
 Yes taking Wicket Session and Spring Session and maintaining one session
 across layers (presentation and business layers)

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Sync-up-sessions-tp4650134p4650141.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