Re: Listview in a listview refresh with AjaxLink don't work

2009-11-15 Thread pieter claassen
Hi Pedro,


Here it is.

So, I basically move the question up or down the array.

public void moveQuestionUp(QuestionBase question) {
int idx = questions.indexOf(question);
if (idx  0) {
questions.remove(question);
questions.add(idx - 1, question);
}
}

I think that the listview is being redrawn in HTML but the matrix of
data underlying it (that I retrieve here in the main page)

ListListQuestionBase rows =
QuestionProcessor.getQuestionMatrix(templateWebModel.getEntity().getQuestions(),true);

does not get refreshed. I think I need to find a way to reload the
data for the listview, from within my panel on a page.

Cheers,
Pieter




On Sun, Nov 15, 2009 at 12:14 AM, Pedro Santos pedros...@gmail.com wrote:
 Can you send the moveQuestionUp implementation?

 On Sat, Nov 14, 2009 at 9:03 PM, pieter claassen pieter.claas...@gmail.com
 wrote:

 I am trying to follow wicket in action advice P263 but

 I have a ListView in a ListView with a panel added to my inner
 listview. On that panel, I have  an AjaxLink and I want to move items
 in the order of the listview around. But to display them, I need to
 refresh my matrix. Nothing seems to work. Any tips or references.

 QuestionEditPanel.html
 =
        wicket:extend
            div id=document
                span wicket:id=parent
                    div wicket:id=rows
                        span wicket:id=row
                            span wicket:id=question /
                        /span
                    /div
                /span
            /div
        /wicket:extend

 QuestionEditPanel.java
 ==

        final WebMarkupContainer parent=new WebMarkupContainer(parent);
        add(parent);
        parent.setOutputMarkupId(true);
        ListListQuestionBase rows =

 QuestionProcessor.getQuestionMatrix(templateWebModel.getEntity().getQuestions(),true);
        ListView rowslistview = new ListView(rows, rows) {

           �...@override
            protected void populateItem(ListItem item) {
                ListQuestionBase row = (ListQuestionBase)
 item.getModelObject();
                ListView rowlistview = new ListView(row, row) {

                   �...@override
                    protected void populateItem(ListItem item) {
                        final QuestionBase question = (QuestionBase)
 item.getModelObject();
                        item.setModel(new CompoundPropertyModel(question));
                        EditableQuestionPanel questionpanel=new
 EditableQuestionPanel(question, new
 QuestionBaseWebModel(question),templateWebModel,parent);
                        item.add(questionpanel);
 


 and then on my EditableQuestionPanel.java I have :

 AjaxLink up = new AjaxLink(up) {

           �...@override
            public void onClick(AjaxRequestTarget target) {
                target.addComponent(parent);
                Template template = templatemodel.getEntity();
                template.moveQuestionUp(question);
                tf.store(template);
            }
        };
 --
 Pieter Claassen
 musmato.com

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




 --
 Pedro Henrique Oliveira dos Santos




-- 
Pieter Claassen
musmato.com

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



Listview in a listview refresh with AjaxLink don't work

2009-11-15 Thread pieter claassen
Hi Pedro,

Here it is.

So, I basically move the question up or down the array.

   public void moveQuestionUp(QuestionBase question) {
       int idx = questions.indexOf(question);
       if (idx  0) {
           questions.remove(question);
           questions.add(idx - 1, question);
       }
   }

I think that the listview is being redrawn in HTML but the matrix of
data underlying it (that I retrieve here in the main page)

ListListQuestionBase rows =
QuestionProcessor.getQuestionMatrix(templateWebModel.getEntity().getQuestions(),true);

does not get refreshed. I think I need to find a way to reload the
data for the listview, from within my panel on a page.

Cheers,
Pieter




On Sun, Nov 15, 2009 at 12:14 AM, Pedro Santos pedros...@gmail.com wrote:
 Can you send the moveQuestionUp implementation?

 On Sat, Nov 14, 2009 at 9:03 PM, pieter claassen pieter.claas...@gmail.com
 wrote:

 I am trying to follow wicket in action advice P263 but

 I have a ListView in a ListView with a panel added to my inner
 listview. On that panel, I have  an AjaxLink and I want to move items
 in the order of the listview around. But to display them, I need to
 refresh my matrix. Nothing seems to work. Any tips or references.

 QuestionEditPanel.html
 =
        wicket:extend
            div id=document
                span wicket:id=parent
                    div wicket:id=rows
                        span wicket:id=row
                            span wicket:id=question /
                        /span
                    /div
                /span
            /div
        /wicket:extend

 QuestionEditPanel.java
 ==

        final WebMarkupContainer parent=new WebMarkupContainer(parent);
        add(parent);
        parent.setOutputMarkupId(true);
        ListListQuestionBase rows =

 QuestionProcessor.getQuestionMatrix(templateWebModel.getEntity().getQuestions(),true);
        ListView rowslistview = new ListView(rows, rows) {

           �...@override
            protected void populateItem(ListItem item) {
                ListQuestionBase row = (ListQuestionBase)
 item.getModelObject();
                ListView rowlistview = new ListView(row, row) {

                   �...@override
                    protected void populateItem(ListItem item) {
                        final QuestionBase question = (QuestionBase)
 item.getModelObject();
                        item.setModel(new CompoundPropertyModel(question));
                        EditableQuestionPanel questionpanel=new
 EditableQuestionPanel(question, new
 QuestionBaseWebModel(question),templateWebModel,parent);
                        item.add(questionpanel);
 


 and then on my EditableQuestionPanel.java I have :

 AjaxLink up = new AjaxLink(up) {

           �...@override
            public void onClick(AjaxRequestTarget target) {
                target.addComponent(parent);
                Template template = templatemodel.getEntity();
                template.moveQuestionUp(question);
                tf.store(template);
            }
        };
 --
 Pieter Claassen
 musmato.com

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




 --
 Pedro Henrique Oliveira dos Santos


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



Exception handling

2009-11-15 Thread Wojtek

Hi there,
I'd like to find out how the development mechanism of exception handling 
works.
It displays  stacktrace from exception thrown, so it means it has access 
to the Exception object.
I would like to implement similar feature, to display at least the 
message from the exception to the end user.
Could you tell me how to do it or point the name of class shown where 
the exception is thrown in development mode?

BTW. I know how to set internal exception page :)

Regards,
Wojtek

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



Re: Exception handling

2009-11-15 Thread Jeremy Thomerson
In your application:

@Override
public RequestCycle newRequestCycle(Request request, Response response)
{
return new WebRequestCycle(this, (WebRequest) request, response) {
@Override
public Page onRuntimeException(Page page, RuntimeException e) {
return super.onRuntimeException(page, e);
}
};
}


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



2009/11/15 Wojtek zabia...@gmail.com

 Hi there,
 I'd like to find out how the development mechanism of exception handling
 works.
 It displays  stacktrace from exception thrown, so it means it has access to
 the Exception object.
 I would like to implement similar feature, to display at least the message
 from the exception to the end user.
 Could you tell me how to do it or point the name of class shown where the
 exception is thrown in development mode?
 BTW. I know how to set internal exception page :)

 Regards,
 Wojtek

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




Re: Intellij9 integration

2009-11-15 Thread Peter Ertl
Never felt like I need additional support for wicket. After all it's 95% in 
type-safe java code. Keeping wicket:id's in sync is no rocket science once you 
get the idea :-)

Am 15.11.2009 um 00:38 schrieb Nick Heudecker:

 What do you mean that the current one shows up?  I haven't updated
 WicketForge to work with IDEA 9 because I'm not on IDEA 9.
 
 Feel free to submit patches.  Right now WicketForge does everything I need
 it to do, so unless I start using Wicket more often or it doesn't meet my
 needs, I'm not really inclined to spend my limited free time on it.
 
 On Sat, Nov 14, 2009 at 3:12 PM, Alex Rass a...@itbsllc.com wrote:
 
 You have a point, but I've been using Idea for... 6+ years now.
 These guys are very sales oriented.
 They added GWT support as a point release, like it was a no big deal.
 When they see there's a demand - they move on it.
 And if they can add a new popular framework for the launch - they just may,
 to make it sell better. They are in a war with Eclipse and we got that and
 it's better has been their selling angle.
 
 But if someone wants to make the wicketidea plugin actually work - that'd
 be
 cool too :)  Current one barely shows up and is VERY sensitive.
 
 
 -Original Message-
 From: Andreas Petersson [mailto:andr...@petersson.at]
 Sent: Saturday, November 14, 2009 5:00 PM
 To: users@wicket.apache.org
 Subject: Re: Intellij9 integration
 
 i think getting official support for wicket in idea is too late. the
 roadmap was published about 6 months ago, for example at
 http://blogs.jetbrains.com/idea/2009/05/maia-eap-is-finally-here/
 and there is already a beta version available at
 http://www.jetbrains.com/idea/nextversion/index.html
 
 but maybe it is the right time to give wicketforge some polish. my
 suggestions for enhancements, since it should be possible to better
 develop plugins since it is open source now.
 *) validation of propertymodels/CPM like idea does for expression
 Language for jsp. ability to ctrl-click to the corresponding getter and
 find usages of those getters
 *) support for find usages for wicket:ids
 *) central facet for wicket, to control its settings.
 *) ability to turn off the non-serializable field in serializable
 class warning in components for fields that are injected.
 
 br
 andreas
 
 


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



Re: Exception handling

2009-11-15 Thread Wojtek

That's exactly what I need. Thanks a lot.
Regards,
Wojtek


Jeremy Thomerson pisze:

In your application:

@Override
public RequestCycle newRequestCycle(Request request, Response response)
{
return new WebRequestCycle(this, (WebRequest) request, response) {
@Override
public Page onRuntimeException(Page page, RuntimeException e) {
return super.onRuntimeException(page, e);
}
};
}


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



2009/11/15 Wojtek zabia...@gmail.com

  

Hi there,
I'd like to find out how the development mechanism of exception handling
works.
It displays  stacktrace from exception thrown, so it means it has access to
the Exception object.
I would like to implement similar feature, to display at least the message
from the exception to the end user.
Could you tell me how to do it or point the name of class shown where the
exception is thrown in development mode?
BTW. I know how to set internal exception page :)

Regards,
Wojtek

-
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



WicketStuff ObjectAutoComplete, Textfield size?

2009-11-15 Thread Jerouris
Hello to the list,

I'm trying to use ObjectAutoCompleteBuilder, in order to build a
AutoCompleteTextField.
The problem I'm having is that the TextField size is fixed, no matter what.

I tried using ObjectAutoCompleteBuilder#width(), but the width only goes to
the suggestion list div.
Any help?


Wicket Stuff YUI 2.7+

2009-11-15 Thread Corbin, James
I am considering using some of the Wicket YUI integration that is in the
Wicket Stuff project.

 

I also noticed that the implementation seems to only support YUI 2.5.x.
Is this a dead project or are there any plans to updated it to use YUI
2.7?

 

If not, I only need a few components in the implementation, so I might
attempt to update the YUI support for the few I need to 2.7 (locally of
course)

 

J.D.

 

J.D. Corbin | IQNavigator, Inc. | Technology 6465 Greenwood Village
Blvd, Suite 800, Centennial, CO  80111 | Office 303.563.1503 | Mobile
303.912.0958 | www.iqnavigator.com | jcor...@iqnavigator.com

 



Re: ajax autocomplete

2009-11-15 Thread nino martinez wael
Okay, I got bashed off thread by this guy, but never mind.

I guess he should make very certain his download are not corrupt. And when
he is sure, he should submit a jira issue. Could it have something todo if
he are running the server in chinese locale or something todo with
internalization or?

regards Nino

2009/11/13 McIlwee, Craig craig.mcil...@openroadsconsulting.com

 Allow me to translate:

 He tries auto complete example locally (under tomcat in windows) but isn't
 presented with any auto complete suggestions.  The example works for him
 online.

 (I think... took a few reads)

 Craig
  _

 From: nino martinez wael [mailto:nino.martinez.w...@gmail.com]
 To: users@wicket.apache.org
 Sent: Wed, 11 Nov 2009 18:49:59 -0500
 Subject: Re: ajax autocomplete

 Please try to ask the question again, try to restructure the sentences? I
  cant understand what you wrote (not to be rude).

  2009/11/11 hxysun hxy...@163.com

   hi,
   I have a question:I run wicket-examples-1.4.3 in tomcat 6.0.20 windows
   sys,findig Auto-Complete TestField Example not enable,no down-list
   automaticly.but
   http://wicketstuff.org/wicket14/ajax/ is ok.I downloaded exampes of
 other
   version running on my pc,it is same.So,I think maybe it lost datas in my
   pc.Who can help me?
   Thinks!
   Java He.
   11-11 2009
  




Wicket stuff YUI: DragNDrop

2009-11-15 Thread Pierre Goupil
Good evening,

Is there any way to reject a drag, possibly via AJAX, using wicketstuff YUI?
The code suggests me that no, but any hint would be welcome.

Regards,

Pierre



-- 
Rien de grand ne s'est accompli dans le monde sans passion.

(G.W.F. Hegel, philosophe allemand)


Re: Listview in a listview refresh with AjaxLink don't work

2009-11-15 Thread wicketnewuser

I don't see your up link in the html markup. Doesn't look like you have
enough info here. If you are moving your question row up are you updating
the list for the listview. Also you are updating questionpanel with ajax
target . I think it would have to be your listview. I would use
ajaxsubmitlink as you might want to save the content or questionpanel when
moving your question up or down. Can you please post all relevent code if
this doesn't help

pieter claassen-2 wrote:
 
 I am trying to follow wicket in action advice P263 but
 
 I have a ListView in a ListView with a panel added to my inner
 listview. On that panel, I have  an AjaxLink and I want to move items
 in the order of the listview around. But to display them, I need to
 refresh my matrix. Nothing seems to work. Any tips or references.
 
 QuestionEditPanel.html
 =
 wicket:extend
 div id=document
 
 div wicket:id=rows
 
 
 
 /div
 
 /div
 /wicket:extend
 
 QuestionEditPanel.java
 ==
 
 final WebMarkupContainer parent=new WebMarkupContainer(parent);
 add(parent);
 parent.setOutputMarkupId(true);
 ListListQuestionBase rows =
 QuestionProcessor.getQuestionMatrix(templateWebModel.getEntity().getQuestions(),true);
 ListView rowslistview = new ListView(rows, rows) {
 
 @Override
 protected void populateItem(ListItem item) {
 ListQuestionBase row = (ListQuestionBase)
 item.getModelObject();
 ListView rowlistview = new ListView(row, row) {
 
 @Override
 protected void populateItem(ListItem item) {
 final QuestionBase question = (QuestionBase)
 item.getModelObject();
 item.setModel(new
 CompoundPropertyModel(question));
 EditableQuestionPanel questionpanel=new
 EditableQuestionPanel(question, new
 QuestionBaseWebModel(question),templateWebModel,parent);
 item.add(questionpanel);
 
 
 
 and then on my EditableQuestionPanel.java I have :
 
 AjaxLink up = new AjaxLink(up) {
 
 @Override
 public void onClick(AjaxRequestTarget target) {
 target.addComponent(parent);
 Template template = templatemodel.getEntity();
 template.moveQuestionUp(question);
 tf.store(template);
 }
 };
 -- 
 Pieter Claassen
 musmato.com
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 

-- 
View this message in context: 
http://old.nabble.com/Listview-in-a-listview-refresh-with-AjaxLink-don%27t-work-tp26354774p26362678.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: Intellij9 integration

2009-11-15 Thread Alex Rass
Would be good if it told you about unmentioned wicket:ids from the html so
you didn't have to wait till you run.
Or if you are declaring a component that it can't find in html.

Jumping back and forth between code and html d/n seem to work for me.

Entirely too much typing for my taste! Idea is REALLY good at minimizing on
that.

Bunch of templates can be written for Wicket programmers to simplify typical
stuff.

But yes, a lot of things in IJ work already because wicket isn't a stretch
for java.


-Original Message-
From: Peter Ertl [mailto:pe...@gmx.org] 
Sent: Sunday, November 15, 2009 10:08 AM
To: users@wicket.apache.org
Subject: Re: Intellij9 integration

Never felt like I need additional support for wicket. After all it's 95% in
type-safe java code. Keeping wicket:id's in sync is no rocket science once
you get the idea :-)

Am 15.11.2009 um 00:38 schrieb Nick Heudecker:

 What do you mean that the current one shows up?  I haven't updated
 WicketForge to work with IDEA 9 because I'm not on IDEA 9.
 
 Feel free to submit patches.  Right now WicketForge does everything I need
 it to do, so unless I start using Wicket more often or it doesn't meet my
 needs, I'm not really inclined to spend my limited free time on it.
 
 On Sat, Nov 14, 2009 at 3:12 PM, Alex Rass a...@itbsllc.com wrote:
 
 You have a point, but I've been using Idea for... 6+ years now.
 These guys are very sales oriented.
 They added GWT support as a point release, like it was a no big deal.
 When they see there's a demand - they move on it.
 And if they can add a new popular framework for the launch - they just
may,
 to make it sell better. They are in a war with Eclipse and we got that
and
 it's better has been their selling angle.
 
 But if someone wants to make the wicketidea plugin actually work - that'd
 be
 cool too :)  Current one barely shows up and is VERY sensitive.
 
 
 -Original Message-
 From: Andreas Petersson [mailto:andr...@petersson.at]
 Sent: Saturday, November 14, 2009 5:00 PM
 To: users@wicket.apache.org
 Subject: Re: Intellij9 integration
 
 i think getting official support for wicket in idea is too late. the
 roadmap was published about 6 months ago, for example at
 http://blogs.jetbrains.com/idea/2009/05/maia-eap-is-finally-here/
 and there is already a beta version available at
 http://www.jetbrains.com/idea/nextversion/index.html
 
 but maybe it is the right time to give wicketforge some polish. my
 suggestions for enhancements, since it should be possible to better
 develop plugins since it is open source now.
 *) validation of propertymodels/CPM like idea does for expression
 Language for jsp. ability to ctrl-click to the corresponding getter and
 find usages of those getters
 *) support for find usages for wicket:ids
 *) central facet for wicket, to control its settings.
 *) ability to turn off the non-serializable field in serializable
 class warning in components for fields that are injected.
 
 br
 andreas
 
 


-
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: Wicket stuff YUI: DragNDrop

2009-11-15 Thread Ernesto Reinaldo Barreiro
What do you mean by reject via AJAX? AFAIR YUI drag-drop work based on CSS
class and on the server side you can do whatever you want (e.g. repaint the
whole component and display a message telling your dragged element is not
valid because...).

Best,

Ernesto

On Sun, Nov 15, 2009 at 8:10 PM, Pierre Goupil goupilpie...@gmail.comwrote:

 Good evening,

 Is there any way to reject a drag, possibly via AJAX, using wicketstuff
 YUI?
 The code suggests me that no, but any hint would be welcome.

 Regards,

 Pierre



 --
 Rien de grand ne s'est accompli dans le monde sans passion.

 (G.W.F. Hegel, philosophe allemand)



RE: Modal window (1.4.1) and IE - Slow load times

2009-11-15 Thread Ed _

Not too many. but is heavy on javascript.

Ed

 From: jcar...@carmanconsulting.com
 Date: Sat, 14 Nov 2009 20:47:53 -0500
 Subject: Re: Modal window (1.4.1) and IE - Slow load times
 To: users@wicket.apache.org
 
 Does your page have a lot of links on it?
 
 On Sat, Nov 14, 2009 at 6:36 PM, Ed _ ed_b...@hotmail.com wrote:
 
  Hi,
 
  I am using version 1.4.1 of wickets. P
 
  Contents of a Modal Window take extremely long time upto 10-20 sec to load 
  on Internet Explorer 8.
 
   FireFox or Chrome on the same machine are really fast. with load times of 
  2-3 sec on a slow connection.
 
  Any one else seen this issue or has suggestion around fixing it.
 
  thanks,
 
  Ed
 
  _
  Windows 7: It works the way you want. Learn more.
  http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
  
_
Bing brings you maps, menus, and reviews organized in one place.
http://www.bing.com/search?q=restaurantsform=MFESRPpubl=WLHMTAGcrea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1

Firefox: Hitting enter button in ModalWindow

2009-11-15 Thread Stefan Lindner
I have an AjaxLink

HTML:   a wicket:id=linkimg/a

JAVA:   new AjaxLinkMyClass(link, model){
@Override
public void onClick(AjaxRequestTarget target) {
// open a ModalWindow
}
}

That opens a ModalWindow. The ModalWindow has a Page as it#s content.
When the model window is displayed and I press the enter key, the
AjaxLink's onClick method is calles again. This results in another
ModalWindow to show up and so on.

Of course I could save the ModalWindow#s state (open or not) and do
something like

JAVA:   new AjaxLinkMyClass(link, model){
@Override
public void onClick(AjaxRequestTarget target) {
if (!windowIsOpen)
// open a ModalWindow
}
}

But isn't there a better solution? This happens only in Firefox. Not in
IE or Chrome oder Safari.

Stefan

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



RE: Firefox: Hitting enter button in ModalWindow

2009-11-15 Thread Stefan Lindner
When I klick into the open ModalWindow, the ModalWindow taktes the focus and 
the opening link's onClick isn't called anymore. How can I manage to set the 
Focus at the ModalWindow?

-Ursprüngliche Nachricht-
Von: Stefan Lindner [mailto:lind...@visionet.de] 
Gesendet: Sonntag, 15. November 2009 22:13
An: users@wicket.apache.org
Betreff: Firefox: Hitting enter button in ModalWindow

I have an AjaxLink

HTML:   a wicket:id=linkimg/a

JAVA:   new AjaxLinkMyClass(link, model){
@Override
public void onClick(AjaxRequestTarget target) {
// open a ModalWindow
}
}

That opens a ModalWindow. The ModalWindow has a Page as it#s content.
When the model window is displayed and I press the enter key, the
AjaxLink's onClick method is calles again. This results in another
ModalWindow to show up and so on.

Of course I could save the ModalWindow#s state (open or not) and do
something like

JAVA:   new AjaxLinkMyClass(link, model){
@Override
public void onClick(AjaxRequestTarget target) {
if (!windowIsOpen)
// open a ModalWindow
}
}

But isn't there a better solution? This happens only in Firefox. Not in
IE or Chrome oder Safari.

Stefan

-
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



Newbie help with tabs example please

2009-11-15 Thread Walt Parkman
Hello,
I have described my problem at http://waltparkman.wikidot.com/wicket-tabs
I am hoping a Wicket expert can give me some direction.
Thanks


Re: Intellij9 integration

2009-11-15 Thread Nick Heudecker
From my experience, WicketForge already displays a warning if the components
can't be located in the HTML or Java code.  Toggling between Java and HTML
also works fine for me.  You can either submit a bug report or a patch.

Also, feel free to submit a patch with templates you'd like to see added to
WF.  I'm getting ready to release 0.5.7 this week.

On Sun, Nov 15, 2009 at 11:49 AM, Alex Rass a...@itbsllc.com wrote:

 Would be good if it told you about unmentioned wicket:ids from the html
 so
 you didn't have to wait till you run.
 Or if you are declaring a component that it can't find in html.

 Jumping back and forth between code and html d/n seem to work for me.

 Entirely too much typing for my taste! Idea is REALLY good at minimizing on
 that.

 Bunch of templates can be written for Wicket programmers to simplify
 typical
 stuff.

 But yes, a lot of things in IJ work already because wicket isn't a stretch
 for java.


 -Original Message-
 From: Peter Ertl [mailto:pe...@gmx.org]
 Sent: Sunday, November 15, 2009 10:08 AM
 To: users@wicket.apache.org
 Subject: Re: Intellij9 integration

 Never felt like I need additional support for wicket. After all it's 95% in
 type-safe java code. Keeping wicket:id's in sync is no rocket science once
 you get the idea :-)

 Am 15.11.2009 um 00:38 schrieb Nick Heudecker:

  What do you mean that the current one shows up?  I haven't updated
  WicketForge to work with IDEA 9 because I'm not on IDEA 9.
 
  Feel free to submit patches.  Right now WicketForge does everything I
 need
  it to do, so unless I start using Wicket more often or it doesn't meet my
  needs, I'm not really inclined to spend my limited free time on it.
 
  On Sat, Nov 14, 2009 at 3:12 PM, Alex Rass a...@itbsllc.com wrote:
 
  You have a point, but I've been using Idea for... 6+ years now.
  These guys are very sales oriented.
  They added GWT support as a point release, like it was a no big deal.
  When they see there's a demand - they move on it.
  And if they can add a new popular framework for the launch - they just
 may,
  to make it sell better. They are in a war with Eclipse and we got that
 and
  it's better has been their selling angle.
 
  But if someone wants to make the wicketidea plugin actually work -
 that'd
  be
  cool too :)  Current one barely shows up and is VERY sensitive.
 
 
  -Original Message-
  From: Andreas Petersson [mailto:andr...@petersson.at]
  Sent: Saturday, November 14, 2009 5:00 PM
  To: users@wicket.apache.org
  Subject: Re: Intellij9 integration
 
  i think getting official support for wicket in idea is too late. the
  roadmap was published about 6 months ago, for example at
  http://blogs.jetbrains.com/idea/2009/05/maia-eap-is-finally-here/
  and there is already a beta version available at
  http://www.jetbrains.com/idea/nextversion/index.html
 
  but maybe it is the right time to give wicketforge some polish. my
  suggestions for enhancements, since it should be possible to better
  develop plugins since it is open source now.
  *) validation of propertymodels/CPM like idea does for expression
  Language for jsp. ability to ctrl-click to the corresponding getter and
  find usages of those getters
  *) support for find usages for wicket:ids
  *) central facet for wicket, to control its settings.
  *) ability to turn off the non-serializable field in serializable
  class warning in components for fields that are injected.
 
  br
  andreas
 
 




setting PageExpiredErrorPage not working

2009-11-15 Thread Jason Novotny


Hi,

   I'm using Wicket-1.4.3 and just trying to set the expired page to my 
home page in my Application class like so:


   IApplicationSettings settings = getApplicationSettings();
   settings.setPageExpiredErrorPage(getHomePage());

In addition, I'm using the HttpsRequestCycleProcessor in production and  
I see that I still get stack traces like these if for instance a user 
comes back to the page after the session expires and clicks on an AjaxLink


org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered 
page in session [pagemap=null,componentPath=20:header:logout,versionNumber=0]
at 
org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:197)
at 
org.apache.wicket.protocol.https.HttpsRequestCycleProcessor.resolve(HttpsRequestCycleProcessor.java:172)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1310)


   What can I do to handle these exceptions cleanly?

   Thanks, Jason

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



Re: AjaxLink and component visibility

2009-11-15 Thread bgooren

Hi,

The answer to your question is simple: component replacement over ajax needs
to be able to find the old component so it can be replaced with new
content. Since you set panel B to be invisible, it simply is not in the
page, and therefore cannot be replaced.

Simple solution: if you want to replace an invisible component through AJAX,
use 
http://wicket.apache.org/docs/1.4/org/apache/wicket/Component.html#setOutputMarkupPlaceholderTag(boolean)
Component#setOutputMarkupPlaceholderTag . This will output an HTML tag which
can be replaced by an AJAX call.

Ofcourse you should also call setOutputMarkupId(true) so wicket generates an
id with which it can locate the placeholder.

Bas


Ed_ wrote:
 
 
 Trying to build a shopping cart - Panel B . Which is hidden till an item
 is selected. Items are stored in the session.
 
 I am trying to get  (shipping cart )Panel B to show up when I click an
 Ajax link, viz in Panel C
 
 
 Both the Panels are under a parent panel A.
 
 
 When I fist get to the page Panel B is hidden - I am using
 B.setVisibility(false).
 
 When I click the link in Panel C. I am construction a new PanelB and call
 a method in panelA to replace the oldB with the newB
 
 method on PanelA.updateShopping cart(){
  oldB.replaceWith(newB)
 newB.setVisibility(true);
 }
 I can't get B to show up unless I do a page reload. 
 
 Once B is on the page though clicking the links in Panel C - keeps
 updating it just fine.
 
 
 Ideas on what I am messing up in getting the shopping cart to show up for
 the first item to be added, I want to avoid a page reload when the first
 item is added and stick with the ajax behavoir.
 
 thx!
 
 
 
 _
 Bing brings you maps, menus, and reviews organized in one place.
 http://www.bing.com/search?q=restaurantsform=MFESRPpubl=WLHMTAGcrea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1
 

-- 
View this message in context: 
http://old.nabble.com/AjaxLink-and-component-visibility-tp26365175p26365902.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: Modal window (1.4.1) and IE - Slow load times

2009-11-15 Thread James Carman
I had some trouble with slow load times for modal windows.  Have you
tried upgrading to 1.4.3 to see if they fixed it?  I seem to remember
them putting something in there to address the issue.

On Sun, Nov 15, 2009 at 4:08 PM, Ed _ ed_b...@hotmail.com wrote:

 Not too many. but is heavy on javascript.

 Ed

 From: jcar...@carmanconsulting.com
 Date: Sat, 14 Nov 2009 20:47:53 -0500
 Subject: Re: Modal window (1.4.1) and IE - Slow load times
 To: users@wicket.apache.org

 Does your page have a lot of links on it?

 On Sat, Nov 14, 2009 at 6:36 PM, Ed _ ed_b...@hotmail.com wrote:
 
  Hi,
 
  I am using version 1.4.1 of wickets. P
 
  Contents of a Modal Window take extremely long time upto 10-20 sec to load 
  on Internet Explorer 8.
 
   FireFox or Chrome on the same machine are really fast. with load times of 
  2-3 sec on a slow connection.
 
  Any one else seen this issue or has suggestion around fixing it.
 
  thanks,
 
  Ed
 
  _
  Windows 7: It works the way you want. Learn more.
  http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2

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


 _
 Bing brings you maps, menus, and reviews organized in one place.
 http://www.bing.com/search?q=restaurantsform=MFESRPpubl=WLHMTAGcrea=TEXT_MFESRP_Local_MapsMenu_Resturants_1x1

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