AjaxLazyLoadPanel in Beta3 is very lazy

2007-10-30 Thread SantiagoA

I have a Problem with the ALLP.
I have a Table with some Radios in it and an ALLP on the same Site.
So, if I click a Radio in the Table, the ALLP will be refreshed with detail
Description of the Element clicked in the Table.
My Problem is, that there is more functonality in the Page, which is blocked
until the ALLP has completed the work and has loaded the Panel.
Maybe i got it wrong, but shouldn´t the ALLP load the Panel to show in
background while the functionality will work on the Page beside(submits by
buttons, other updates via Ajax, etc.)  ???

BTW, the beta4 has brought an errors. When updated to beta4 I get a
"Task.error" (working with Eclipse Europa) whatever that means. Changing
back to beta3 solved that issue.
-- 
View this message in context: 
http://www.nabble.com/AjaxLazyLoadPanel-in-Beta3-is-very-lazy-tf4717010.html#a13484179
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: POM problems in trunk?

2007-10-30 Thread Tauren Mills
I just updated from svn again and I'm still having this problem.  I've
checked out the entire wicket trunk including jdk-1.4 and jdk-1.5.  I
just updated and did the following:

cd wicket/jdk-1.4/wicket
mvn install -Dmaven.test.skip=true

But this complains of dependencies missing versions.  It works fine if
I add versions to portlet-api and portals-bridges-common.

Perhaps I'm not doing something I need to do with maven. I am fairly new to it.

I've got it working by editing the POM to include versions.  But it
would be nice to not have to do this.  How do others make this work?
Any suggestions?

Tauren


On 10/11/07, John Patterson <[EMAIL PROTECTED]> wrote:
> Have you checked out the entire wicket source tree - that contains
> jdk14, jdk15 etc?  If not then maybe the individual poms cannot find
> the parent pom that defines those version variables.
>
> On 11 Oct 2007, at 22:46, Tauren Mills wrote:
>
> > I just updated wicket, wicket-extensions and wicket-examples from
> > trunk. When I tried to run mvn install eclipse:eclpise, I got errors
> > stating that there were dependencies missing versions.  So I added
> > versions to the pom.xml for wicket and wicket-examples. Now mvn runs.
> >
> > Am I doing something wrong, or do the pom.xml files in trunk need
> > versions?  Changing them to contain version params did the trick, but
> > should it work without them?
> >
> > wicket/pom.xml:
> >
> >   
> >   javax.portlet
> >   portlet-api
> >   1.0
> >   provided
> >   true
> >   
> >   
> >   org.apache.portals.bridges
> >   portals-bridges-common
> >   1.0.3
> >   provided
> >   true
> >   
> >
> > wicket-examples/pom.xml:
> >
> >   
> >   javax.portlet
> >   portlet-api
> >   1.0
> >   provided
> >   
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



ModalWindow does not close

2007-10-30 Thread Cristi Manole
Hello,

I have a problem with ModalWindow.

No matter what I do I cannot manage to close it. Although the method for
closing it IS INDEED called (and then the focus set to the element that
triggered it), the window is still displayed on screen.

I managed to track down what's preventing it from closing (by removing the
script from html) and it's this javascript:


http://www.moneyrulz.com:9080/theworld/javascript/ssm.js
[which is called by
http://www.moneyrulz.com:9080/theworld/javascript/ssmItems.js]

Any ideas why?

Tks in advance.
Cristi Manole


Wicket wiki password reset

2007-10-30 Thread jweekend

The  http://jweekend.co.uk/dev/LWUGReg/ London Wicket Users Group  entry on
the  http://cwiki.apache.org/WICKET/community-meetups.html wiki meetups page 
(good idea, BTW) was out of date and since my username (jweekend)/password
didn't get me in to fix it, gerolf kindly did it for us.  
I have requested a 
http://cwiki.apache.org/confluence/forgotuserpassword.action password reset 
for my wiki account but received nothing from Apache. I also visited 
http://cwiki.apache.org/confluence/forgotuserpassword.action
http://cwiki.apache.org/confluence/administrators.action  to contact the
administrators (as suggested if there is no reply to the reset request
received) but there is no way of actually getting through to them (all
"mailto"s are hidden) AFAICS.
Does anybody have admin rights and can help to get a new password sent to
the email address associated  to my wiki account?

Regards - Cemal
http://jWeekend.co.uk jWeekend.co.uk 
-- 
View this message in context: 
http://www.nabble.com/Wicket-wiki-password-reset-tf4717117.html#a13484463
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: POM problems in trunk?

2007-10-30 Thread Tauren Mills
Ahh, your right.  I'm doing this within eclipse and for some reason
was just assuming I was getting all of trunk.  But I think I'm just
updating all the projects, not updating the root.  Now that you
mention it, I'm sure it will work.

Thanks!


On 10/30/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> Do a install from the root
>
> your parent pom is not up to date in the local repo
>
> Martijn
>
> On 10/30/07, Tauren Mills <[EMAIL PROTECTED]> wrote:
> > I just updated from svn again and I'm still having this problem.  I've
> > checked out the entire wicket trunk including jdk-1.4 and jdk-1.5.  I
> > just updated and did the following:
> >
> > cd wicket/jdk-1.4/wicket
> > mvn install -Dmaven.test.skip=true
> >
> > But this complains of dependencies missing versions.  It works fine if
> > I add versions to portlet-api and portals-bridges-common.
> >
> > Perhaps I'm not doing something I need to do with maven. I am fairly new to 
> > it.
> >
> > I've got it working by editing the POM to include versions.  But it
> > would be nice to not have to do this.  How do others make this work?
> > Any suggestions?
> >
> > Tauren
> >
> >
> > On 10/11/07, John Patterson <[EMAIL PROTECTED]> wrote:
> > > Have you checked out the entire wicket source tree - that contains
> > > jdk14, jdk15 etc?  If not then maybe the individual poms cannot find
> > > the parent pom that defines those version variables.
> > >
> > > On 11 Oct 2007, at 22:46, Tauren Mills wrote:
> > >
> > > > I just updated wicket, wicket-extensions and wicket-examples from
> > > > trunk. When I tried to run mvn install eclipse:eclpise, I got errors
> > > > stating that there were dependencies missing versions.  So I added
> > > > versions to the pom.xml for wicket and wicket-examples. Now mvn runs.
> > > >
> > > > Am I doing something wrong, or do the pom.xml files in trunk need
> > > > versions?  Changing them to contain version params did the trick, but
> > > > should it work without them?
> > > >
> > > > wicket/pom.xml:
> > > >
> > > >   
> > > >   javax.portlet
> > > >   portlet-api
> > > >   1.0
> > > >   provided
> > > >   true
> > > >   
> > > >   
> > > >   org.apache.portals.bridges
> > > >   portals-bridges-common
> > > >   1.0.3
> > > >   provided
> > > >   true
> > > >   
> > > >
> > > > wicket-examples/pom.xml:
> > > >
> > > >   
> > > >   javax.portlet
> > > >   portlet-api
> > > >   1.0
> > > >   provided
> > > >   
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: POM problems in trunk?

2007-10-30 Thread Martijn Dashorst
Do a install from the root

your parent pom is not up to date in the local repo

Martijn

On 10/30/07, Tauren Mills <[EMAIL PROTECTED]> wrote:
> I just updated from svn again and I'm still having this problem.  I've
> checked out the entire wicket trunk including jdk-1.4 and jdk-1.5.  I
> just updated and did the following:
>
> cd wicket/jdk-1.4/wicket
> mvn install -Dmaven.test.skip=true
>
> But this complains of dependencies missing versions.  It works fine if
> I add versions to portlet-api and portals-bridges-common.
>
> Perhaps I'm not doing something I need to do with maven. I am fairly new to 
> it.
>
> I've got it working by editing the POM to include versions.  But it
> would be nice to not have to do this.  How do others make this work?
> Any suggestions?
>
> Tauren
>
>
> On 10/11/07, John Patterson <[EMAIL PROTECTED]> wrote:
> > Have you checked out the entire wicket source tree - that contains
> > jdk14, jdk15 etc?  If not then maybe the individual poms cannot find
> > the parent pom that defines those version variables.
> >
> > On 11 Oct 2007, at 22:46, Tauren Mills wrote:
> >
> > > I just updated wicket, wicket-extensions and wicket-examples from
> > > trunk. When I tried to run mvn install eclipse:eclpise, I got errors
> > > stating that there were dependencies missing versions.  So I added
> > > versions to the pom.xml for wicket and wicket-examples. Now mvn runs.
> > >
> > > Am I doing something wrong, or do the pom.xml files in trunk need
> > > versions?  Changing them to contain version params did the trick, but
> > > should it work without them?
> > >
> > > wicket/pom.xml:
> > >
> > >   
> > >   javax.portlet
> > >   portlet-api
> > >   1.0
> > >   provided
> > >   true
> > >   
> > >   
> > >   org.apache.portals.bridges
> > >   portals-bridges-common
> > >   1.0.3
> > >   provided
> > >   true
> > >   
> > >
> > > wicket-examples/pom.xml:
> > >
> > >   
> > >   javax.portlet
> > >   portlet-api
> > >   1.0
> > >   provided
> > >   
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

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



Re: ModalWindow does not close

2007-10-30 Thread Matej Knopp
No idea. The javascript has nothing to do with wicket.

-Matej

On 10/30/07, Cristi Manole <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a problem with ModalWindow.
>
> No matter what I do I cannot manage to close it. Although the method for
> closing it IS INDEED called (and then the focus set to the element that
> triggered it), the window is still displayed on screen.
>
> I managed to track down what's preventing it from closing (by removing the
> script from html) and it's this javascript:
>
>
> http://www.moneyrulz.com:9080/theworld/javascript/ssm.js
> [which is called by
> http://www.moneyrulz.com:9080/theworld/javascript/ssmItems.js]
>
> Any ideas why?
>
> Tks in advance.
> Cristi Manole
>

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



Re: AjaxLazyLoadPanel in Beta3 is very lazy

2007-10-30 Thread Johan Compagner
The AjaxLazyLoadingPanel will block other request to it
The only thing it does is that it will show the page already and that the
heavy part
is then loaded so that the users do see progress.

The user can fill in stuff or do other stuff pure clientside. If the users
does make
a server call then that server call will block until the lazy load is done.
Because only
1 request can touch the page at the same time.

johan



On 10/30/07, SantiagoA <[EMAIL PROTECTED]> wrote:
>
>
> I have a Problem with the ALLP.
> I have a Table with some Radios in it and an ALLP on the same Site.
> So, if I click a Radio in the Table, the ALLP will be refreshed with
> detail
> Description of the Element clicked in the Table.
> My Problem is, that there is more functonality in the Page, which is
> blocked
> until the ALLP has completed the work and has loaded the Panel.
> Maybe i got it wrong, but shouldn´t the ALLP load the Panel to show in
> background while the functionality will work on the Page beside(submits by
> buttons, other updates via Ajax, etc.)  ???
>
> BTW, the beta4 has brought an errors. When updated to beta4 I get a
> "Task.error" (working with Eclipse Europa) whatever that means. Changing
> back to beta3 solved that issue.
> --
> View this message in context:
> http://www.nabble.com/AjaxLazyLoadPanel-in-Beta3-is-very-lazy-tf4717010.html#a13484179
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Wicket wiki password reset

2007-10-30 Thread jweekend

Password now reset, thanks Martijn.


jweekend wrote:
> 
> The  http://jweekend.co.uk/dev/LWUGReg/ London Wicket Users Group  entry
> on the  http://cwiki.apache.org/WICKET/community-meetups.html wiki meetups
> page  (good idea, BTW) was out of date and since my username
> (jweekend)/password didn't get me in to fix it, gerolf kindly did it for
> us.  
> I have requested a 
> http://cwiki.apache.org/confluence/forgotuserpassword.action password
> reset  for my wiki account but received nothing from Apache. I also
> visited  http://cwiki.apache.org/confluence/forgotuserpassword.action
> http://cwiki.apache.org/confluence/administrators.action  to contact the
> administrators (as suggested if there is no reply to the reset request
> received) but there is no way of actually getting through to them (all
> "mailto"s are hidden) AFAICS.
> Does anybody have admin rights and can help to get a new password sent to
> the email address associated  to my wiki account?
> 
> Regards - Cemal
>  http://jWeekend.co.uk jWeekend.co.uk 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-wiki-password-reset-tf4717117.html#a13488293
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Setting up Wicket with Tomcat

2007-10-30 Thread Alexander Landsnes Keül
After much sweat and tears I've finally been able to get web.xml to load 
properly in tomcat, however I'm having a bit of issues actually starting the 
Web app. What I've got is the very bare bones of a wicket application. Just a 
class extending WebApplication, and StartPage.java/html. Startpage.html only 
prints "Hello", so the wicket code itself ought to be clean, had much more 
complicated wickets with the embedded Jetty plugin.

They belong to the package no.unique.ansatt.presentation, my web.xml looks as 
follows: 


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/TR/xmlschema-1/";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
version="2.4">
Ansatt

WicketFilter

org.apache.wicket.protocol.http.WicketFilter

applicationClassName

no.unique.ansatt.presentation.StartPage




WicketFilter
/ansatt/*




Now, the problem is where should I build the output? I've tried pretty much all 
the combinations I can think of, and currently it's built to:
- ansatt/target/WEB-INF/web.xml
- ansatt/target/WEB-INF/classes/no/unique/ansatt

Here's my ansatt.xml in $CATALINA/localhost


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



Re: Setting up Wicket with Tomcat

2007-10-30 Thread Frank Bille
On 10/30/07, Alexander Landsnes Keül <[EMAIL PROTECTED]>
wrote:
>
> 
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/TR/xmlschema-1/";
> xsi:schemaLocation="
> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
> version="2.4">
> Ansatt
> 
> WicketFilter
> org.apache.wicket.protocol.http.WicketFilter
> 
> 
> applicationClassName
> 
> no.unique.ansatt.presentation.StartPage
>

no.unique.ansatt.presentation.StartPage?

Is this what you mean?
Don't you mean something like:


applicationClassName
no.unique.ansatt.presentation.AnsattApplication




I'm not entirely sure what you are asking about, but have Kent Tong has a
free tutorial on setting up an environment with wicket, eclipse and tomcat:
http://www.agileskills2.org/EWDW/index.html

Frank


Re: Is Beta5 coming soon? Beta4 has caused these issues for us....

2007-10-30 Thread Al Maw

Chris Lintz wrote:

Any chance of getting a Beta5 out soon.   As luck would have it, Beta4 to say
the least has been frustrating for us.

So far beta4 has caused these problems in our app (all stuff that worked in
Beta3)

1) AJAXLink is broke when using the Crypted URL encoding strategy.
2) StringResourceModel change on toString() method (this is fine, we
refactored and are now using getString() )
3) UpdateFeedback gone -
http://www.nabble.com/1.3.0-beta4%3A-updateFeedback%28%29-gone--tf4707707.html
4) Pages are stateful now because of -
http://www.nabble.com/Stateless-page-creating-session-tf4604432.html#a13147396

Any chance of getting a Wicket beta5 out with at least the stateless page
fix?   We have a high traffic site so the thought of generating some where
in the neighborhood of hundreds of thousands session IDs on disk for pages
as simple as a WebMarkupcontainer and a Label is very scary thought.


Additionally, the maven 2 quickstart is broken because it uses the wrong 
version of slf4j-log4j (which results in a NoSuchMethodError). Easy to 
fix if you know how, but not good that you should have to. ;-(


+1 on getting beta 5 out ASAP.

Al

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



TabbedPanel

2007-10-30 Thread DRE

Hoping someone can help me out here  I've just started using Wicket and
this is what I'm trying to do:

I've got a main page that has a header, body, and footer where the body
should be used as a wicket child.  In the header I have a TabbedPanel.  When
I click on a tab I want the contents to appear in the body(not right below
the tabin the header.)  It looks all pretty and the tabs work  it's
just that when I click on the tab I want "This is Tab #1" to be displayed in
the body.   I've tried using  but to no avail. Thanks in
advance .

Code:

PanelPage.html


  
Title goes here

  
  
  

  
[tabbed panel will be
here] 
  
  
   
This is the Body

   
  

 

  
  




PanelPage.java

public class PanelPage extends WebPage 
{

public PanelPage() 
{  

final List tabs=new ArrayList();

tabs.add(new AbstractTab(new Model("My Home Page")) 
{
  public Panel getPanel(String panelId) 
  {
 return new TabPanel1(panelId);  
  } 
});

tabs.add(new AbstractTab(new Model("Leads"))   
{
 public Panel getPanel(String panelId) 
  { 
return new TabPanel2(panelId); 
  }
});
   
   
final TabbedPanel panel = new TabbedPanel("tabs", tabs);
class TabTitleModel extends Model 
{
  public Object getObject(Component comp) 
   { 
return ((ITab)
tabs.get(panel.getSelectedTab())).getTitle().getObject(null);
   }
}
add(new Label("title", new TabTitleModel()));  
add(panel);


add(new Label("footer", "This is in the footer"));  
  

}
  

}

TabbedPanel.html


 
 
  

  #  [[tab title]]   
  
 
 
 



 [panel]




TabPanel1.html




This is Tab #1





TabPanel1.java

package wicket.panel.panels;

import wicket.markup.html.panel.Panel;

public class TabPanel1 extends Panel
{
private static final long serialVersionUID = 1L;

public TabPanel1(String id) 
{
super(id);
}

}
-- 
View this message in context: 
http://www.nabble.com/TabbedPanel-tf4719265.html#a13491072
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Is Beta5 coming soon? Beta4 has caused these issues for us....

2007-10-30 Thread Johan Compagner
+1
i hope that i can close more issues tonight and the comming nights.
so that the issues are down a little bit when beta5 is released.

johan



On 10/29/07, Frank Bille <[EMAIL PROTECTED]> wrote:
>
> Well, I have time on sunday to build the release. What do the other devs
> think?
>
> Frank
>
>
> On 10/29/07, Chris Lintz <[EMAIL PROTECTED]> wrote:
> >
> >
> > Any chance of getting a Beta5 out soon.   As luck would have it, Beta4
> to
> > say
> > the least has been frustrating for us.
> >
> > So far beta4 has caused these problems in our app (all stuff that worked
> > in
> > Beta3)
> >
> > 1) AJAXLink is broke when using the Crypted URL encoding strategy.
> > 2) StringResourceModel change on toString() method (this is fine, we
> > refactored and are now using getString() )
> > 3) UpdateFeedback gone -
> >
> >
> http://www.nabble.com/1.3.0-beta4%3A-updateFeedback%28%29-gone--tf4707707.html
> > 4) Pages are stateful now because of -
> >
> >
> http://www.nabble.com/Stateless-page-creating-session-tf4604432.html#a13147396
> >
> > Any chance of getting a Wicket beta5 out with at least the stateless
> page
> > fix?   We have a high traffic site so the thought of generating some
> where
> > in the neighborhood of hundreds of thousands session IDs on disk for
> pages
> > as simple as a WebMarkupcontainer and a Label is very scary thought.
> >
> >
> >
> >
> > chris
> > --
> > View this message in context:
> >
> http://www.nabble.com/Is-Beta5-coming-soon---Beta4-has-caused-these-issues-for-us-tf4713647.html#a13473915
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


how to remove 'choose one' from dropdownlist?

2007-10-30 Thread raybristol

how to remove 'choose one' from dropdownlist? I can use the dropdownlist
alright, populate data etc. but wicket always put a 'choose one' option on
the top, I wonder if I can get rid of it?

Many thanks!
-- 
View this message in context: 
http://www.nabble.com/how-to-remove-%27choose-one%27-from-dropdownlist--tf4719338.html#a13491271
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Setting up Wicket with Tomcat

2007-10-30 Thread Igor Vaynberg
or just use the damn archetype to create a properly configured project
in the first place, thats why we have it... :)
http://wicket.apache.org/quickstart.html

-igor


On 10/30/07, Frank Bille <[EMAIL PROTECTED]> wrote:
> On 10/30/07, Alexander Landsnes Keül <[EMAIL PROTECTED]>
> wrote:
> >
> > 
> > http://java.sun.com/xml/ns/j2ee";
> > xmlns:xsi="http://www.w3.org/TR/xmlschema-1/";
> > xsi:schemaLocation="
> > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";
> > version="2.4">
> > Ansatt
> > 
> > WicketFilter
> > org.apache.wicket.protocol.http.WicketFilter
> > 
> > 
> > applicationClassName
> > 
> > no.unique.ansatt.presentation.StartPage
> >
>
> no.unique.ansatt.presentation.StartPage?
>
> Is this what you mean?
> Don't you mean something like:
>
> 
> applicationClassName
> no.unique.ansatt.presentation.AnsattApplication
> 
> 
>
>
> I'm not entirely sure what you are asking about, but have Kent Tong has a
> free tutorial on setting up an environment with wicket, eclipse and tomcat:
> http://www.agileskills2.org/EWDW/index.html
>
> Frank
>

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



Re: TabbedPanel

2007-10-30 Thread Igor Vaynberg
see here for an example:

http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TabbedPanelPage

-igor


On 10/30/07, DRE <[EMAIL PROTECTED]> wrote:
>
> Hoping someone can help me out here  I've just started using Wicket and
> this is what I'm trying to do:
>
> I've got a main page that has a header, body, and footer where the body
> should be used as a wicket child.  In the header I have a TabbedPanel.  When
> I click on a tab I want the contents to appear in the body(not right below
> the tabin the header.)  It looks all pretty and the tabs work  it's
> just that when I click on the tab I want "This is Tab #1" to be displayed in
> the body.   I've tried using  but to no avail. Thanks in
> advance .
>
> Code:
>
> PanelPage.html
>
> 
>   
> Title goes here
> 
>   
>
>   
>
>   
> [tabbed panel will be
> here]
>   
>
>   
> This is the Body
> 
>   
>
>   
> 
>   
>
>   
> 
>
>
>
> PanelPage.java
>
> public class PanelPage extends WebPage
> {
>
> public PanelPage()
> {
>
> final List tabs=new ArrayList();
>
> tabs.add(new AbstractTab(new Model("My Home Page"))
> {
>   public Panel getPanel(String panelId)
>   {
>  return new TabPanel1(panelId);
>   }
> });
>
> tabs.add(new AbstractTab(new Model("Leads"))
> {
>  public Panel getPanel(String panelId)
>   {
> return new TabPanel2(panelId);
>   }
> });
>
>
> final TabbedPanel panel = new TabbedPanel("tabs", tabs);
> class TabTitleModel extends Model
> {
>   public Object getObject(Component comp)
>{
> return ((ITab)
> tabs.get(panel.getSelectedTab())).getTitle().getObject(null);
>}
> }
> add(new Label("title", new TabTitleModel()));
> add(panel);
>
> add(new Label("footer", "This is in the footer"));
>
> }
>
>
> }
>
> TabbedPanel.html
>
> 
>  
>  
>   
> 
>   #  [[tab title]]
>   
>  
>  
>
>
> 
>
>  [panel]
>
> 
>
>
> TabPanel1.html
>
> 
> 
> 
> This is Tab #1
> 
> 
> 
>
>
> TabPanel1.java
>
> package wicket.panel.panels;
>
> import wicket.markup.html.panel.Panel;
>
> public class TabPanel1 extends Panel
> {
> private static final long serialVersionUID = 1L;
>
> public TabPanel1(String id)
> {
> super(id);
> }
>
> }
> --
> View this message in context: 
> http://www.nabble.com/TabbedPanel-tf4719265.html#a13491072
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: how to remove 'choose one' from dropdownlist?

2007-10-30 Thread Igor Vaynberg
put an option into your model, that way it will be selected... or
override getdefaultchoice() and return ""

-igor


On 10/30/07, raybristol <[EMAIL PROTECTED]> wrote:
>
> how to remove 'choose one' from dropdownlist? I can use the dropdownlist
> alright, populate data etc. but wicket always put a 'choose one' option on
> the top, I wonder if I can get rid of it?
>
> Many thanks!
> --
> View this message in context: 
> http://www.nabble.com/how-to-remove-%27choose-one%27-from-dropdownlist--tf4719338.html#a13491271
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: how to remove 'choose one' from dropdownlist?

2007-10-30 Thread Bruno Borges
Try with setRequired(true) and set the model with the first option from your
choices.



-- 
Bruno Borges
blog.brunoborges.com.br
+55 1185657739

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

On 10/30/07, raybristol <[EMAIL PROTECTED]> wrote:
>
>
> how to remove 'choose one' from dropdownlist? I can use the dropdownlist
> alright, populate data etc. but wicket always put a 'choose one' option on
> the top, I wonder if I can get rid of it?
>
> Many thanks!
> --
> View this message in context:
> http://www.nabble.com/how-to-remove-%27choose-one%27-from-dropdownlist--tf4719338.html#a13491271
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: How to manage multiple versions of data?

2007-10-30 Thread Johan Compagner
using long transactions would be pretty horrible :(
long transactions should be avoided like the plague at all cost.
Especially with certain databases (like Microsofts or Sybase variants)

i would do it how igors proposes. Have multiply rows for the same data
with 1 row that is live and another row (with maybe the editting userid as
data so that you know what to get the next time)

The problem is can there be more then 1 person editting data? Are they
editting there own set? or is there only 2 rows
of the same data at 1 time?  (live and edit)

johan



On 10/29/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> On 10/29/07, Tauren Mills <[EMAIL PROTECTED]> wrote:
> > I have a wicket/hibernate/spring project that manages a set of live
> > data.  Users of the system view the live version of the data.
> > Currently, administrative CRUD alters the live data as well.  Changes
> > by an admin are immediately reflected on the site to users.
> >
> > But a new set of features is going to require that administrators
> > should be able to make updates and changes without affecting the live
> > data.  Once they are satisfied with the changes they have made, they
> > can save/publish the "working data" to be "live data" on the site.
> >
> > The modification/editing of this data can take a fair amount of time,
> > perhaps several days.  Thus, I can't just put the working data into
> > the session and then save it to the DB a few minutes later when the
> > editing is done.  The working data needs to be able to persist as well
> > as the live data.
> >
> > Also, I'm reluctant to just make copies of all the data from the live
> > version to the working version, because there are certain aspects of
> > the live data that can be altered by the users.  The users don't
> > actually edit the basic data, but additional information is attached
> > to the data as the user uses it.  If the admin is editing data and it
> > takes a few days, the copy of the data could get stale as users use
> > it.  Then I'd have data synchronization issues to deal with.
> >
> > I would google for patterns or techniques to deal with this type of
> > situation, but I'm not sure what to even search for.  Has anyone had
> > to deal with anything similar?  Any advice or suggestions?  Or even
> > keywords to search for?
>
> No real experience with this myself, but start with 'long transactions'?
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: IE DownloadLink problems

2007-10-30 Thread Johan Compagner
please make a case for this in jira. (with that patch)

On 10/29/07, wheleph <[EMAIL PROTECTED]> wrote:
>
>
>
> wheleph wrote:
> >
> > Content-Disposition attachment; filename=%D0%A1 ...
> > I wonder what encoding is it?
> >
>
> It's url encoding. I used URLCodec from commons-codec
> (http://commons.apache.org/codec/) package to encode file name for IE but
> for FF I still need Base64 or Q-encoding. That's why I need to detect the
> type of user's browser and send appropriately encoded file name (see the
> snippet below). I think it would be nice improvement for DownloadLink to
> perform the encoding of file name internally.
>
> [code]
>WebResponse r = (WebResponse) requestCycle.getResponse();
>WebClientInfo clientInfo = (WebClientInfo)
> requestCycle.getClientInfo();
>final String userAgent = clientInfo.getUserAgent();
>logger.info("userAgent: " + userAgent);
>
>StringEncoder codec = null;
>if (userAgent.indexOf("MSIE") != -1) {
>codec = new URLCodec();
>} else {
>codec = new BCodec();
>}
>final String name = ecoFile.getName();
>String encodedName = null;
>try {
>encodedName = codec.encode(name);
>} catch (EncoderException e) {
>encodedName = ecoFile.getName();
>final String message = "Error while encoding name " + name
> + " with codec
> " + codec;  logger.warn(message, e);
>}
>r.setAttachmentHeader(encodedName);
>
>// copy byte stream from file to response...
> [/code]
>
> wheleph
> --
> View this message in context:
> http://www.nabble.com/IE-DownloadLink-problems-tf4697141.html#a13462367
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


interframe communication

2007-10-30 Thread aldous

The application I'm working on uses frames and a tree view / results view
layout.  I've implemented LinkTree in frame one.  When the link is clicked,
I need to refresh frame two based on information stored in the tree node.

I've overridden onNodeLinkClicked in my LinkTree derived class, and I am
able to successfully handle the event and retrieve the model of interest.  I
would like to now get a handle to the other frame (from within my class) and
refresh the page using the data from the node.

The following snippet shows my handler and demonstrates the kind of call I
would like to make.

public class CategoryTree extends LinkTree
{
@Override
protected void onNodeLinkClicked(TreeNode node, BaseTree tree,
AjaxRequestTarget target)
{
DefaultMutableTreeNode n = (DefaultMutableTreeNode)node;

if (n.getUserObject() instanceof EcCategoryTreeNode)
{
EcCategoryTreeNode ec = 
(EcCategoryTreeNode)n.getUserObject();

   /*
*  getDesiredBookmarkablePage and renderPage are not
real functions.  They
*  merely demonstrate what I'd like to be able to
do.
*/
   getDesiredBookmarkablePage().renderPage(new
Pro_Search(ec));

}   
super.onNodeLinkClicked(node, tree, target);
}
...
}

What's the best "wicket" pattern to use to accomplish what I'm attempting
here?  I was hoping for something other than custom javascript in the parent
frame, etc.
-- 
View this message in context: 
http://www.nabble.com/interframe-communication-tf4719446.html#a13491606
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: How to manage multiple versions of data?

2007-10-30 Thread Eelco Hillenius
> using long transactions would be pretty horrible :(
> long transactions should be avoided like the plague at all cost.
> Especially with certain databases (like Microsofts or Sybase variants)

I never really used them myself, so that's entirely possible :-)

> i would do it how igors proposes. Have multiply rows for the same data
> with 1 row that is live and another row (with maybe the editting userid as
> data so that you know what to get the next time)

Yeah, that's a workable idea. The problem then is cleaning up the
entries that never were finished, and just the fact that you're
polluting your data model with administrative data. But it might be
the best solution.

Eelco

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



Re: Is Beta5 coming soon? Beta4 has caused these issues for us....

2007-10-30 Thread Frank Bille
On 10/30/07, Johan Compagner <[EMAIL PROTECTED]> wrote:
>
> +1
> i hope that i can close more issues tonight and the comming nights.
> so that the issues are down a little bit when beta5 is released.
>
> johan


johan++


Re: TabbedPanel

2007-10-30 Thread DRE

Thanks for you response  that link is actually where I got started,
however, if you notice when you click the tabs the panel is displayed right
below.  When I click my tabs I want the panel to be displayed in the body in
place of the 

Any help would be greatly appreciated.



igor.vaynberg wrote:
> 
> see here for an example:
> 
> http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TabbedPanelPage
> 
> -igor
> 
> 
> On 10/30/07, DRE <[EMAIL PROTECTED]> wrote:
>>
>> Hoping someone can help me out here  I've just started using Wicket
>> and
>> this is what I'm trying to do:
>>
>> I've got a main page that has a header, body, and footer where the body
>> should be used as a wicket child.  In the header I have a TabbedPanel. 
>> When
>> I click on a tab I want the contents to appear in the body(not right
>> below
>> the tabin the header.)  It looks all pretty and the tabs work 
>> it's
>> just that when I click on the tab I want "This is Tab #1" to be displayed
>> in
>> the body.   I've tried using  but to no avail. Thanks
>> in
>> advance .
>>
>> Code:
>>
>> PanelPage.html
>>
>> 
>>   
>> Title goes here
>> 
>>   
>>
>>   
>>
>>   
>> [tabbed panel will be
>> here]
>>   
>>
>>   
>> This is the Body
>> 
>>   
>>
>>   
>> 
>>   
>>
>>   
>> 
>>
>>
>>
>> PanelPage.java
>>
>> public class PanelPage extends WebPage
>> {
>>
>> public PanelPage()
>> {
>>
>> final List tabs=new ArrayList();
>>
>> tabs.add(new AbstractTab(new Model("My Home Page"))
>> {
>>   public Panel getPanel(String panelId)
>>   {
>>  return new TabPanel1(panelId);
>>   }
>> });
>>
>> tabs.add(new AbstractTab(new Model("Leads"))
>> {
>>  public Panel getPanel(String panelId)
>>   {
>> return new TabPanel2(panelId);
>>   }
>> });
>>
>>
>> final TabbedPanel panel = new TabbedPanel("tabs", tabs);
>> class TabTitleModel extends Model
>> {
>>   public Object getObject(Component comp)
>>{
>> return ((ITab)
>> tabs.get(panel.getSelectedTab())).getTitle().getObject(null);
>>}
>> }
>> add(new Label("title", new TabTitleModel()));
>> add(panel);
>>
>> add(new Label("footer", "This is in the footer"));
>>
>> }
>>
>>
>> }
>>
>> TabbedPanel.html
>>
>> 
>>  
>>  
>>   
>> 
>>   #  [[tab title]]
>>   
>>  
>>  
>>
>>
>> 
>>
>>  [panel]
>>
>> 
>>
>>
>> TabPanel1.html
>>
>> 
>> 
>> 
>> This is Tab #1
>> 
>> 
>> 
>>
>>
>> TabPanel1.java
>>
>> package wicket.panel.panels;
>>
>> import wicket.markup.html.panel.Panel;
>>
>> public class TabPanel1 extends Panel
>> {
>> private static final long serialVersionUID = 1L;
>>
>> public TabPanel1(String id)
>> {
>> super(id);
>> }
>>
>> }
>> --
>> View this message in context:
>> http://www.nabble.com/TabbedPanel-tf4719265.html#a13491072
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TabbedPanel-tf4719265.html#a13492383
Sent from the Wicket - User mailing list archive at Nabble.com.


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



BUG: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-10-30 Thread Francisco Diaz Trepat - gmail
Hi a cowerker here might have found something here. We have fix the issue by
replacing the *Wicket.replaceOuterHtml* function.

Could this be a BUG?

I have forwarded the initial message that explains the behavior.

Here is the code that fixed our problem:

f(t)



//

// Hack that demonstrates a possible fix for a problem with Gecko based
browsers.
// The problem happens in this line:
//var fragment = range.createContextualFragment(text);
// If there are many subpanels, the range uncorrectly parses the content,
resulting
// in a fragment that contains many childs instead of one.
// The first child is the first subpanel, and the rest are the other
subpanels,
// which are incorrectly hang at the same level as the main panel, instead
of being
// childs of it.

function replaceWicketReplaceOuterHtml() {
  Wicket.replaceOuterHtml = function(element, text) {
if (Wicket.Browser.isIE()) {
  Wicket.replaceOuterHtmlIE(element, text);
} else if (Wicket.Browser.isSafari() || Wicket.Browser.isOpera()) {
  Wicket.replaceOuterHtmlSafari(element, text);
} else /* GECKO */ {
  // create range and fragment
  var range = element.ownerDocument.createRange();
  range.selectNode(element);
  var fragment = range.createContextualFragment(text);

  // The following code seems useless, and then is commented out
// get the elements to be added
//var elements = new Array();
//for (var i = 0; i < fragment.childNodes.length; ++i)
//elements.push(fragment.childNodes[i]);

  // move additional subnodes to the correct place in the dom
  if (fragment.childNodes.length > 1) {
// the for clause intentionally starts from 1,
// to fix only the wrongly hanging subnodes.
for (var i = 1; i < fragment.childNodes.length; ++i) {
  var otherNode = fragment.childNodes[i];

  fragment.childNodes[0].childNodes[0].appendChild(otherNode);
}
  }

  element.parentNode.replaceChild(fragment, element);
}
  }
}

window.setTimeout(replaceWicketReplaceOuterHtml, 1000);
//



-- Forwarded message --
From: Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
Date: Oct 23, 2007 10:27 PM
Subject: Re: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex
Scenario)
To: users@wicket.apache.org

Thanks Matej, I will but further ahead. I'll try to see what is going on
with more detail by using FIREBUG toolbar or something of the sort.




If everything else fails I'll provide a QuickStart.


Thanks,
f(t)

On 10/23/07, Matej Knopp <[EMAIL PROTECTED]> wrote:
>
> Can you provide a quickstart?
>
> -Matej
>
> On 10/23/07, Francisco Diaz Trepat - gmail
> <[EMAIL PROTECTED]> wrote:
> > Hi. I'm going to try to explain the best that I can and without posting
> code
> > at first the issue that is happening.
> >
> > I have the following panels A and C. A has two instances of B nested
> inside
> > of it. C is empty:
> >
> > [
> >
> > ==PANEL-A==
> >
> > [
> >
> > ==PANEL-B1==
> >
> > ]
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> >
> > [
> > ==PANEL-C==
> > ]
> >
> > What happens is that on another Panel that represent the Page content,
> lets
> > call it ContentPanel I need to toggle between panels A and C with the
> click
> > of an Ajax Link.
> >
> > The first state is with panel C that it is empty (actually with lots of
> > HiddenFields, but empty visually). On click I need to Show the A panel
> that
> > has viewable content. Finally on another click I need to go back to the
> > original state of C panel.
> >
> > So far so good. The issue is as follows:
> >
> > The problem happens on Firefox only (latest version 2.0.0.8) (on IE 6
> and 7
> > it is not an issue as everything works fine).
> >
> > What happens is that I click on the link, and panel A shows perfectly.
> But
> > when I click again to put the C panel back, the A panel gets Partially
> > removed, that is panel A's first panel B instance B1 gets removed, but
> B2 is
> > not removed and it is still visible, plus I get the C panel, as C panel
> > doesn't have viewable content it doesn't add to the visual problem.
> *Ej*:
> >
> > [
> >
> > ==PANEL-A==
> >
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> > [
> > ==PANEL-C==
> > ]
> >
> > Now If I click again, I get Panel A with "2 instances of B2" as panel B2
> was
> > not removed.
> > [
> >
> > ==PANEL-A==
> >
> > [
> >
> > ==PANEL-B1==
> >
> > ]
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > [
> >
> > ==PANEL-B2==
> >
> > ]
> >
> > ]
> >
> > So and so forth every click and click, I get panel A partially removed
> and
> > when added again I have another instance of B2 as it is never removed.
> >
> >
> >
> > Any Ideas?
> >
> > thanks,
> >
> > f(t)
> >
>
> --

Re: TabbedPanel

2007-10-30 Thread Igor Vaynberg
right, and that is just now how markup inheritance or tabbed panel
works. you are way off base.

if that is what you need then instead of using wicket:child/markup
inheritance you should use replace/replaceWith() methods to put the
right panel in, and instead of using a tabbed panel you would use
something that just generates a list of links that call the
replace/replaceWith() methods...

-igor


On 10/30/07, DRE <[EMAIL PROTECTED]> wrote:
>
> Thanks for you response  that link is actually where I got started,
> however, if you notice when you click the tabs the panel is displayed right
> below.  When I click my tabs I want the panel to be displayed in the body in
> place of the 
>
> Any help would be greatly appreciated.
>
>
>
> igor.vaynberg wrote:
> >
> > see here for an example:
> >
> > http://wicketstuff.org/wicket13/compref/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.compref.TabbedPanelPage
> >
> > -igor
> >
> >
> > On 10/30/07, DRE <[EMAIL PROTECTED]> wrote:
> >>
> >> Hoping someone can help me out here  I've just started using Wicket
> >> and
> >> this is what I'm trying to do:
> >>
> >> I've got a main page that has a header, body, and footer where the body
> >> should be used as a wicket child.  In the header I have a TabbedPanel.
> >> When
> >> I click on a tab I want the contents to appear in the body(not right
> >> below
> >> the tabin the header.)  It looks all pretty and the tabs work 
> >> it's
> >> just that when I click on the tab I want "This is Tab #1" to be displayed
> >> in
> >> the body.   I've tried using  but to no avail. Thanks
> >> in
> >> advance .
> >>
> >> Code:
> >>
> >> PanelPage.html
> >>
> >> 
> >>   
> >> Title goes here
> >> 
> >>   
> >>
> >>   
> >>
> >>   
> >> [tabbed panel will be
> >> here]
> >>   
> >>
> >>   
> >> This is the Body
> >> 
> >>   
> >>
> >>   
> >> 
> >>   
> >>
> >>   
> >> 
> >>
> >>
> >>
> >> PanelPage.java
> >>
> >> public class PanelPage extends WebPage
> >> {
> >>
> >> public PanelPage()
> >> {
> >>
> >> final List tabs=new ArrayList();
> >>
> >> tabs.add(new AbstractTab(new Model("My Home Page"))
> >> {
> >>   public Panel getPanel(String panelId)
> >>   {
> >>  return new TabPanel1(panelId);
> >>   }
> >> });
> >>
> >> tabs.add(new AbstractTab(new Model("Leads"))
> >> {
> >>  public Panel getPanel(String panelId)
> >>   {
> >> return new TabPanel2(panelId);
> >>   }
> >> });
> >>
> >>
> >> final TabbedPanel panel = new TabbedPanel("tabs", tabs);
> >> class TabTitleModel extends Model
> >> {
> >>   public Object getObject(Component comp)
> >>{
> >> return ((ITab)
> >> tabs.get(panel.getSelectedTab())).getTitle().getObject(null);
> >>}
> >> }
> >> add(new Label("title", new TabTitleModel()));
> >> add(panel);
> >>
> >> add(new Label("footer", "This is in the footer"));
> >>
> >> }
> >>
> >>
> >> }
> >>
> >> TabbedPanel.html
> >>
> >> 
> >>  
> >>  
> >>   
> >> 
> >>   #  [[tab title]]
> >>   
> >>  
> >>  
> >>
> >>
> >> 
> >>
> >>  [panel]
> >>
> >> 
> >>
> >>
> >> TabPanel1.html
> >>
> >> 
> >> 
> >> 
> >> This is Tab #1
> >> 
> >> 
> >> 
> >>
> >>
> >> TabPanel1.java
> >>
> >> package wicket.panel.panels;
> >>
> >> import wicket.markup.html.panel.Panel;
> >>
> >> public class TabPanel1 extends Panel
> >> {
> >> private static final long serialVersionUID = 1L;
> >>
> >> public TabPanel1(String id)
> >> {
> >> super(id);
> >> }
> >>
> >> }
> >> --
> >> View this message in context:
> >> http://www.nabble.com/TabbedPanel-tf4719265.html#a13491072
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/TabbedPanel-tf4719265.html#a13492383
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Dynamically changing CSS

2007-10-30 Thread Cristi Manole
Hello,

I have a checkbox in an Ajax table (wrote by Igor).

On one column i add a panel which contains a checkbox and a link.

When the user selects the checkbox I would like that specific table row to
be displayed with a different background color.

How am I to do that? I didn't manage to understand how to get the row id
(although that is probably trivial) and how to change the css (I'm thinking
of doing that through javascript, with  appendJavascript method, but on
which element to call it?)

Thanks in advance.


Security message when using popup dialog

2007-10-30 Thread hillj2

I'm using wicket's popup dialog and it works just fine, but when deploy my
app to our test server, which sits behind a proxy using SSL, I get a
security message from IE saying "This page contains both secure and
nonsecure items" whenever I open the popup.  I've traced it to a 404 error
which is returning from a request to SERVLET_PATH/://0.  I have no idea
where this request is coming from or what resource "://0" is supposed to
refer to.  This request doesn't appear to get made when I run it on my local
machine (of course I'm not using SSL, but I also don't ever see this request
get made to my local webserver).

Any idea what this path is supposed to be or where it's getting called from? 
This is wicket 1.3 beta2.

Thanks.

Joel
-- 
View this message in context: 
http://www.nabble.com/Security-message-when-using-popup-dialog-tf4720449.html#a13494917
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Dynamically changing CSS

2007-10-30 Thread Jon Laidler

You could use CSS. Set the class for the table row to be highlighted (eg ..tr
class="trcolor"), add a style to the page to set the color of the table row
class (eg .trcolor {color: red} ). Then get wicket to change the style color
through CSS when the checkbox is selected.



Cristi Manole wrote:
> 
> Hello,
> 
> I have a checkbox in an Ajax table (wrote by Igor).
> 
> On one column i add a panel which contains a checkbox and a link.
> 
> When the user selects the checkbox I would like that specific table row to
> be displayed with a different background color.
> 
> How am I to do that? I didn't manage to understand how to get the row id
> (although that is probably trivial) and how to change the css (I'm
> thinking
> of doing that through javascript, with  appendJavascript method, but on
> which element to call it?)
> 
> Thanks in advance.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dynamically-changing-CSS-tf4721192.html#a13498438
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: BUG: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex Scenario)

2007-10-30 Thread Matej Knopp

Sorry, I'm not sure I follow.

there is some code in replaceOuterHtml that seems redundant so it could 
be like this:


Wicket.replaceOuterHtml = function(element, text) { 

if (Wicket.Browser.isIE()) {
Wicket.replaceOuterHtmlIE(element, text);   
} else if (Wicket.Browser.isSafari() || Wicket.Browser.isOpera()) {
Wicket.replaceOuterHtmlSafari(element, text);   
} else /* GECKO */ {
// create range and fragment
var range = element.ownerDocument.createRange();
range.selectNode(element);
var fragment = range.createContextualFragment(text);

element.parentNode.replaceChild(fragment, element);
}   
}   

Still I'm not sure what the problem is that your code solves. Can you 
please provide me a html file where the replaceOuterHtml call fails?


-Matej


Francisco Diaz Trepat - gmail  wrote / napísal(a):

Hi a cowerker here might have found something here. We have fix the issue by
replacing the *Wicket.replaceOuterHtml* function.

Could this be a BUG?

I have forwarded the initial message that explains the behavior.

Here is the code that fixed our problem:

f(t)



//

// Hack that demonstrates a possible fix for a problem with Gecko based
browsers.
// The problem happens in this line:
//var fragment = range.createContextualFragment(text);
// If there are many subpanels, the range uncorrectly parses the content,
resulting
// in a fragment that contains many childs instead of one.
// The first child is the first subpanel, and the rest are the other
subpanels,
// which are incorrectly hang at the same level as the main panel, instead
of being
// childs of it.

function replaceWicketReplaceOuterHtml() {
  Wicket.replaceOuterHtml = function(element, text) {
if (Wicket.Browser.isIE()) {
  Wicket.replaceOuterHtmlIE(element, text);
} else if (Wicket.Browser.isSafari() || Wicket.Browser.isOpera()) {
  Wicket.replaceOuterHtmlSafari(element, text);
} else /* GECKO */ {
  // create range and fragment
  var range = element.ownerDocument.createRange();
  range.selectNode(element);
  var fragment = range.createContextualFragment(text);

  // The following code seems useless, and then is commented out
// get the elements to be added
//var elements = new Array();
//for (var i = 0; i < fragment.childNodes.length; ++i)
//elements.push(fragment.childNodes[i]);

  // move additional subnodes to the correct place in the dom
  if (fragment.childNodes.length > 1) {
// the for clause intentionally starts from 1,
// to fix only the wrongly hanging subnodes.
for (var i = 1; i < fragment.childNodes.length; ++i) {
  var otherNode = fragment.childNodes[i];

  fragment.childNodes[0].childNodes[0].appendChild(otherNode);
}
  }

  element.parentNode.replaceChild(fragment, element);
}
  }
}

window.setTimeout(replaceWicketReplaceOuterHtml, 1000);
//



-- Forwarded message --
From: Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]>
Date: Oct 23, 2007 10:27 PM
Subject: Re: Ajax Panel Replacement Issue on Fireforx only (Kind of Complex
Scenario)
To: users@wicket.apache.org

Thanks Matej, I will but further ahead. I'll try to see what is going on
with more detail by using FIREBUG toolbar or something of the sort.




If everything else fails I'll provide a QuickStart.


Thanks,
f(t)

On 10/23/07, Matej Knopp <[EMAIL PROTECTED]> wrote:

Can you provide a quickstart?

-Matej

On 10/23/07, Francisco Diaz Trepat - gmail
<[EMAIL PROTECTED]> wrote:

Hi. I'm going to try to explain the best that I can and without posting

code

at first the issue that is happening.

I have the following panels A and C. A has two instances of B nested

inside

of it. C is empty:

[

==PANEL-A==

[

==PANEL-B1==

]

[

==PANEL-B2==

]

]


[
==PANEL-C==
]

What happens is that on another Panel that represent the Page content,

lets

call it ContentPanel I need to toggle between panels A and C with the

click

of an Ajax Link.

The first state is with panel C that it is empty (actually with lots of
HiddenFields, but empty visually). On click I need to Show the A panel

that

has viewable content. Finally on another click I need to go back to the
original state of C panel.

So far so good. The issue is as follows:

The problem happens on Firefox only (latest version 2.0.0.8) (on IE 6

and 7

it is not an issue as everything works fine).

What happens is that I click on the link, and panel A shows perfectly.

But

when I click again to put the C panel back, the A panel gets Partially
removed, that is panel A's first panel B instance B1 gets removed, but

B2 is

not removed and it is s

Wicket Session Management?

2007-10-30 Thread Pen

I have a few question regarding the wicket usage. we are trying to Implement
wicket as our next MVC framework, Can please someone answer the questions
below

- about session support - wicket stores the render state of most renderer's
in session for different users of the systems. This means large/very large
sessions that need to be supported, means memory crunch, performance
degradation and implementing the failover at production level really hard.

- Also it looks like wicket  requires code changes when more pages are added
and each page needs to have separate handler and it can not be done in
configuration file. This may become an issue when number of pages increase
in future.

Dummy


-- 
View this message in context: 
http://www.nabble.com/Wicket-Session-Management--tf4721575.html#a13498748
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Dynamically changing CSS

2007-10-30 Thread Cristi Manole
Tks a lot for your reply, but how do I do "get wicket to change the style 
color" of that speciffic row, exactly? that part I don't know... :(


- Original Message - 
From: "Jon Laidler" <[EMAIL PROTECTED]>

To: 
Sent: Tuesday, October 30, 2007 11:51 PM
Subject: Re: Dynamically changing CSS




You could use CSS. Set the class for the table row to be highlighted (eg 
..tr
class="trcolor"), add a style to the page to set the color of the table 
row
class (eg .trcolor {color: red} ). Then get wicket to change the style 
color

through CSS when the checkbox is selected.



Cristi Manole wrote:


Hello,

I have a checkbox in an Ajax table (wrote by Igor).

On one column i add a panel which contains a checkbox and a link.

When the user selects the checkbox I would like that specific table row 
to

be displayed with a different background color.

How am I to do that? I didn't manage to understand how to get the row id
(although that is probably trivial) and how to change the css (I'm
thinking
of doing that through javascript, with  appendJavascript method, but on
which element to call it?)

Thanks in advance.




--
View this message in context: 
http://www.nabble.com/Dynamically-changing-CSS-tf4721192.html#a13498438

Sent from the Wicket - User mailing list archive at Nabble.com.


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




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



Just 1 hour to introduce Wicket (Friday)

2007-10-30 Thread jweekend

A development team I did some work with (in a top 5 investment bank) today
asked me to give them a 1 hour intro to Wicket on Friday morning. I have
been telling them it's the way to go for a while and they have finally
"found" an opportunity. I want to make sure I use that hour to best effect,
for them and for Wicket. 

The goal is to give them enough of an intro to painlessly get started on
their evaluation, armed with some high-level understanding of how to do
things in Wicket.

They have not used Wicket at all but they all have good web-app experience
and some have a lot of Swing experience too (in fact we were working on a
pretty powerful Swing framework for Credit Risk apps when I was there a
couple of years ago). They will probably want to use Wicket for some
internal support/monitoring/maintenance apps to start with.

So ... what do you think I must NOT omit in my 1 hour talk.

I will unfortunately not be able to help out with their upcoming projects,
but I'd quite like to help them make the right choice of web-framework
anyway because they're nice people and they deserve to give Wicket a good
chance.

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

PS I expect to be asked to do this (or similar) for at least 2 other banking
project teams in London and 1 software house over the next few months. It
seems that more and more people I have been telling Wicket about are
gradually becoming receptive to the idea of starting upcoming new projects
with something smarter than their existing frameworks.
-- 
View this message in context: 
http://www.nabble.com/Just-1-hour-to-introduce-Wicket-%28Friday%29-tf4721724.html#a13499281
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Just 1 hour to introduce Wicket (Friday)

2007-10-30 Thread Nick Heudecker
The ONE thing you must not omit is telling them that I provide Wicket
consulting.  :)

On 10/30/07, jweekend <[EMAIL PROTECTED]> wrote:
>
>
> A development team I did some work with (in a top 5 investment bank) today
> asked me to give them a 1 hour intro to Wicket on Friday morning. I have
> been telling them it's the way to go for a while and they have finally
> "found" an opportunity. I want to make sure I use that hour to best
> effect,
> for them and for Wicket.
>
> The goal is to give them enough of an intro to painlessly get started on
> their evaluation, armed with some high-level understanding of how to do
> things in Wicket.
>
> They have not used Wicket at all but they all have good web-app experience
> and some have a lot of Swing experience too (in fact we were working on a
> pretty powerful Swing framework for Credit Risk apps when I was there a
> couple of years ago). They will probably want to use Wicket for some
> internal support/monitoring/maintenance apps to start with.
>
> So ... what do you think I must NOT omit in my 1 hour talk.
>
> I will unfortunately not be able to help out with their upcoming projects,
> but I'd quite like to help them make the right choice of web-framework
> anyway because they're nice people and they deserve to give Wicket a good
> chance.
>
> Regards - Cemal
> http://jWeekend.co.uk jWeekend.co.uk
>
> PS I expect to be asked to do this (or similar) for at least 2 other
> banking
> project teams in London and 1 software house over the next few months. It
> seems that more and more people I have been telling Wicket about are
> gradually becoming receptive to the idea of starting upcoming new projects
> with something smarter than their existing frameworks.
> --
> View this message in context:
> http://www.nabble.com/Just-1-hour-to-introduce-Wicket-%28Friday%29-tf4721724.html#a13499281
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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


Re: Wicket Session Management?

2007-10-30 Thread Matej Knopp

Pen  wrote / napísal(a):

I have a few question regarding the wicket usage. we are trying to Implement
wicket as our next MVC framework, Can please someone answer the questions
below


Hi


- about session support - wicket stores the render state of most renderer's
in session for different users of the systems. This means large/very large
sessions that need to be supported, means memory crunch, performance
degradation and implementing the failover at production level really hard.
Wicket doesn't store a render state of renderer's (have no clue what 
that might be). Wicket stores a component tree of last page in session.


Btw. this doesn't even sound like a question, it sounds like stating 
facts, not to mention that the facts are based on wrong assumtptions.


Very large sessions? I've seen a model 2 application with sessions over 
a megabyte. Usually a wicket page is (unless it's a big one - with lot 
of components) around 30kb (of course this is very relative, this just 
reflects my experience with most of my wicket based projects). I don't 
think a 30kb session results in performance degradation or makes 
implementing failover difficult.




- Also it looks like wicket  requires code changes when more pages are added
and each page needs to have separate handler and it can not be done in
configuration file. This may become an issue when number of pages increase
in future.



What handler? What configuration file? Page has a class that implements 
the logic (probably what you mean by "handler"). How is this related to 
a config file? Wicket doesn't need any config file. There's no external 
plumbing. I fail to see how this results in an issue with increased page 
numbers, as the pages are completely independent.


Also I'm kinda missing a question mark in this question again, which 
make it seem like a statement (wrong again as far as I can tell). I'm 
not sure if that was intended.


-Matej


Dummy





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



Re: Just 1 hour to introduce Wicket (Friday)

2007-10-30 Thread jweekend

Nick,
In fact that's why someone from jWeekend first wrote to you in May when you
were coming to the UK. I can imagine that there'll be lots to do in 2008/9
for jWeekend and Wicket end-users.
In the meantime, after I tell them about you, what else must I NOT omit ?
;-)
Regards - Cemal
http://jWeekend.co.uk jWeekend.co.uk 

 

Nick Heudecker wrote:
> 
> The ONE thing you must not omit is telling them that I provide Wicket
> consulting.  :)
> 
> On 10/30/07, jweekend <[EMAIL PROTECTED]> wrote:
>>
>>
>> A development team I did some work with (in a top 5 investment bank)
>> today
>> asked me to give them a 1 hour intro to Wicket on Friday morning. I have
>> been telling them it's the way to go for a while and they have finally
>> "found" an opportunity. I want to make sure I use that hour to best
>> effect,
>> for them and for Wicket.
>>
>> The goal is to give them enough of an intro to painlessly get started on
>> their evaluation, armed with some high-level understanding of how to do
>> things in Wicket.
>>
>> They have not used Wicket at all but they all have good web-app
>> experience
>> and some have a lot of Swing experience too (in fact we were working on a
>> pretty powerful Swing framework for Credit Risk apps when I was there a
>> couple of years ago). They will probably want to use Wicket for some
>> internal support/monitoring/maintenance apps to start with.
>>
>> So ... what do you think I must NOT omit in my 1 hour talk.
>>
>> I will unfortunately not be able to help out with their upcoming
>> projects,
>> but I'd quite like to help them make the right choice of web-framework
>> anyway because they're nice people and they deserve to give Wicket a good
>> chance.
>>
>> Regards - Cemal
>> http://jWeekend.co.uk jWeekend.co.uk
>>
>> PS I expect to be asked to do this (or similar) for at least 2 other
>> banking
>> project teams in London and 1 software house over the next few months. It
>> seems that more and more people I have been telling Wicket about are
>> gradually becoming receptive to the idea of starting upcoming new
>> projects
>> with something smarter than their existing frameworks.
>> --
>> View this message in context:
>> http://www.nabble.com/Just-1-hour-to-introduce-Wicket-%28Friday%29-tf4721724.html#a13499281
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Nick Heudecker
> Professional Wicket Training & Consulting
> http://www.systemmobile.com
> 
> Eventful - Intelligent Event Management
> http://www.eventfulhq.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Just-1-hour-to-introduce-Wicket-%28Friday%29-tf4721724.html#a13499552
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: EqualInputValidator inside WizardStep

2007-10-30 Thread Eelco Hillenius
On 10/29/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> hrm, i think a good solution to this would be to create a fresh inner
> form for every new step. so the outer form contains the wizard
> buttons, and an inner form contains the user's panel.
>
> i think for now you can do that yourself, simply embed a form into
> your step's panel and add the validator to that, be sure to let us
> know if that works.
>
> eelco what do you think?

That's not a bad idea. You could also directly get the form by calling
getForm or by overriding newForm on the wizard class. But nested forms
like this has it's elegance... just never though of it before.

Eelco

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



Re: How to manage multiple versions of data?

2007-10-30 Thread Tauren Mills
Thanks for the ideas everyone.  I do like Igor's suggestion of reusing
the same tables and having a "live" flag, as I'd hate to have an
entire extra set of duplicate tables.  However, since this approach
duplicates data, there are still some issues that I'm not sure how to
best deal with.

Let me explain the use case in more detail.  The users of the system
are referees of soccer games.  They need to be able to view their
schedule of matches.  A match includes a game number, date, time, home
team, away team, location, a center referee, and two linesmen.  The
users do not modify any of the main data elements associated with a
match.  But they can accept or reject matches, and that acceptance
information is associated with a match and the referee.

Administrators will be scheduling all of the matches, assigning
referees to matches, etc.  There could be several administrators.
There are many changes and updates that happen on a regular basis to
already published schedules.  Sometimes entire fields are closed due
to bad conditions, and all of the matches have to be moved elsewhere.
 The updating of data can take hours or days depending upon if the
admin is waiting on information.

Updated data should not be released one match at a time, but all
changes should go live at once.  There are many business reasons for
this that and I don't want to try to explain them all.  They mainly
involve publishing incomplete data, schedule reviews, and approvals
prior to publishing.  Creating and modifying these schedules can take
a lot of trial and error, moving matches around and trying to get
everything to work well for all parties involved.  It wouldn't be good
if referees looked at their schedules when a match was in a state of
flux and then didn't check the schedule again. Lastly, when a batch of
changes is completed, referees could be notified of the changes all at
once, not one match change at a time.

So, given this scenario, a live record Match #100 could have
CenterReferee accept the game, Linesman1 reject it, and Linesman2 not
yet respond.  Meanwhile, if there is a non-live duplicate of Match
#100, then that acceptance information would need to be associated
with it as well.  But the acceptance information could change after
the non-live record is created.

I suppose when a non-live match is saved that already has a live
version (thus making it the new live record), the attached information
to the existing live record could be copied to the non-live record,
then deleted, and the non-live record becomes live.  But to me, this
just seems hacky and prone to fail.  Kind of like data synchronization
systems always seem to get screwed up at times.  Maybe it is the
only/best/simplest solution though. I also need to think about how to
purge old edit data that isn't saved.

I think that I could make due with only a live and edit versions of
the data (just 2 rows of the same data at a time).  I don't think I
need to keep track of multiple versions.  It would be nice to be able
to support multiple "batch edit sessions" that are each distinct from
the others.  But that would get *really* complex...

Although, it would be nice if the admin could save just a certain set
of matches (say all 1st Division games, but leave all 2nd Division
games in edit mode).  That way, the admin could work on everything,
and publish sets of changes as he completes them instead of waiting
until all changes are done.  This should still be doable with just a
live and edit version of the data records.

After writing this, I have a much better sense of how to do it.  But
I'd still like to hear any other ideas.  Are there some patterns or
solutions that I should look into that could help with this?  I don't
think long transactions are the way to go for this.  Database
partitioning (which doesn't really solve this problem but is a great
idea for large datasets) isn't needed yet, as the amount of data will
be manageable.

Thanks again!
Tauren


On 10/30/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > using long transactions would be pretty horrible :(
> > long transactions should be avoided like the plague at all cost.
> > Especially with certain databases (like Microsofts or Sybase variants)
>
> I never really used them myself, so that's entirely possible :-)
>
> > i would do it how igors proposes. Have multiply rows for the same data
> > with 1 row that is live and another row (with maybe the editting userid as
> > data so that you know what to get the next time)
>
> Yeah, that's a workable idea. The problem then is cleaning up the
> entries that never were finished, and just the fact that you're
> polluting your data model with administrative data. But it might be
> the best solution.
>
> Eelco
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscrib

Re: Security message when using popup dialog

2007-10-30 Thread Martijn Dashorst
look in the source of the page, and possibly try to capture the
headers. This will help us in discovering what goes wrong.

And please check if you have images without a src attribute or an
empty src attribute. That seems to cause problems too (though possibly
not this one).

Martijn

On 10/30/07, hillj2 <[EMAIL PROTECTED]> wrote:
>
> I'm using wicket's popup dialog and it works just fine, but when deploy my
> app to our test server, which sits behind a proxy using SSL, I get a
> security message from IE saying "This page contains both secure and
> nonsecure items" whenever I open the popup.  I've traced it to a 404 error
> which is returning from a request to SERVLET_PATH/://0.  I have no idea
> where this request is coming from or what resource "://0" is supposed to
> refer to.  This request doesn't appear to get made when I run it on my local
> machine (of course I'm not using SSL, but I also don't ever see this request
> get made to my local webserver).
>
> Any idea what this path is supposed to be or where it's getting called from?
> This is wicket 1.3 beta2.
>
> Thanks.
>
> Joel
> --
> View this message in context: 
> http://www.nabble.com/Security-message-when-using-popup-dialog-tf4720449.html#a13494917
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/

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



Re: Wicket Session Management?

2007-10-30 Thread Pen

Thanks Matej for your quick reply, these are stupid questions asked by the
team members, who are resisting to implement Wicket. Trying to come up with
some issues.

So basically you are telling that session management is not a issue at all
in wicket, that's good.


Thanks Again!

Dummy


Matej Knopp-2 wrote:
> 
> Pen  wrote / napísal(a):
>> I have a few question regarding the wicket usage. we are trying to
>> Implement
>> wicket as our next MVC framework, Can please someone answer the questions
>> below
> 
> Hi
>> 
>> - about session support - wicket stores the render state of most
>> renderer's
>> in session for different users of the systems. This means large/very
>> large
>> sessions that need to be supported, means memory crunch, performance
>> degradation and implementing the failover at production level really
>> hard.
> Wicket doesn't store a render state of renderer's (have no clue what 
> that might be). Wicket stores a component tree of last page in session.
> 
> Btw. this doesn't even sound like a question, it sounds like stating 
> facts, not to mention that the facts are based on wrong assumtptions.
> 
> Very large sessions? I've seen a model 2 application with sessions over 
> a megabyte. Usually a wicket page is (unless it's a big one - with lot 
> of components) around 30kb (of course this is very relative, this just 
> reflects my experience with most of my wicket based projects). I don't 
> think a 30kb session results in performance degradation or makes 
> implementing failover difficult.
> 
>> 
>> - Also it looks like wicket  requires code changes when more pages are
>> added
>> and each page needs to have separate handler and it can not be done in
>> configuration file. This may become an issue when number of pages
>> increase
>> in future.
>> 
> 
> What handler? What configuration file? Page has a class that implements 
> the logic (probably what you mean by "handler"). How is this related to 
> a config file? Wicket doesn't need any config file. There's no external 
> plumbing. I fail to see how this results in an issue with increased page 
> numbers, as the pages are completely independent.
> 
> Also I'm kinda missing a question mark in this question again, which 
> make it seem like a statement (wrong again as far as I can tell). I'm 
> not sure if that was intended.
> 
> -Matej
> 
>> Dummy
>> 
>> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wicket-Session-Management--tf4721575.html#a13500318
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Just 1 hour to introduce Wicket (Friday)

2007-10-30 Thread Scott Swank
1. All code is Java, which enables end-to-end refactoring and gives
you clean html.

2. Composition enables reuse.  When I took a panel and moved it from a
tab on a page to a modalwindow on the page by changing a couple of
lines of code it made a big impact.

3. Components have session state.  Hence the content of the session is
determined by what components are on the page -- and further the
session is cleaned out as components leave scope.  (And if state is
kept in url parameters then session is not used, in case anyone
complains about session size.  State must be somewhere, no?)

4. Simple AJAX and nice integration with JS libraries such as Dojo.

5. i18n: resource bundles, component-level, page-level, application-level

6. Behaviors: What about a tab-order-preserving behavior to keep
tabbing between fields from multiple panels sensible?  That's
(relatively) easy.  What about a content-copying behavior to copy the
purchaser's first/last name from the first item to all other items?
That's easy too.  This is because everything is Java, including how
components act and how state (models) are maintained.

I would focus on 1, 2 & 3; then give a quick look at some code that
shows 4, then just mention 5 & 6.

- Scott




On 10/30/07, jweekend <[EMAIL PROTECTED]> wrote:
>
> Nick,
> In fact that's why someone from jWeekend first wrote to you in May when you
> were coming to the UK. I can imagine that there'll be lots to do in 2008/9
> for jWeekend and Wicket end-users.
> In the meantime, after I tell them about you, what else must I NOT omit ?
> ;-)
> Regards - Cemal
> http://jWeekend.co.uk jWeekend.co.uk
>
>
>
> Nick Heudecker wrote:
> >
> > The ONE thing you must not omit is telling them that I provide Wicket
> > consulting.  :)
> >
> > On 10/30/07, jweekend <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> A development team I did some work with (in a top 5 investment bank)
> >> today
> >> asked me to give them a 1 hour intro to Wicket on Friday morning. I have
> >> been telling them it's the way to go for a while and they have finally
> >> "found" an opportunity. I want to make sure I use that hour to best
> >> effect,
> >> for them and for Wicket.
> >>
> >> The goal is to give them enough of an intro to painlessly get started on
> >> their evaluation, armed with some high-level understanding of how to do
> >> things in Wicket.
> >>
> >> They have not used Wicket at all but they all have good web-app
> >> experience
> >> and some have a lot of Swing experience too (in fact we were working on a
> >> pretty powerful Swing framework for Credit Risk apps when I was there a
> >> couple of years ago). They will probably want to use Wicket for some
> >> internal support/monitoring/maintenance apps to start with.
> >>
> >> So ... what do you think I must NOT omit in my 1 hour talk.
> >>
> >> I will unfortunately not be able to help out with their upcoming
> >> projects,
> >> but I'd quite like to help them make the right choice of web-framework
> >> anyway because they're nice people and they deserve to give Wicket a good
> >> chance.
> >>
> >> Regards - Cemal
> >> http://jWeekend.co.uk jWeekend.co.uk
> >>
> >> PS I expect to be asked to do this (or similar) for at least 2 other
> >> banking
> >> project teams in London and 1 software house over the next few months. It
> >> seems that more and more people I have been telling Wicket about are
> >> gradually becoming receptive to the idea of starting upcoming new
> >> projects
> >> with something smarter than their existing frameworks.
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Just-1-hour-to-introduce-Wicket-%28Friday%29-tf4721724.html#a13499281
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > Nick Heudecker
> > Professional Wicket Training & Consulting
> > http://www.systemmobile.com
> >
> > Eventful - Intelligent Event Management
> > http://www.eventfulhq.com
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Just-1-hour-to-introduce-Wicket-%28Friday%29-tf4721724.html#a13499552
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Scott Swank
reformed mathematician

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



Re: Just 1 hour to introduce Wicket (Friday)

2007-10-30 Thread jweekend

Scott,

That's a powerful and well made argument. Thank you, I'm in!
 
I was going to show a simple-arithmetic-test panel (a simple captcha
replacement mechanism developed because I can never make out the Wicket
ones) and how that can be reused. This went down well at our first 
http://jweekend.co.uk/dev/LWUGReg/ London Wicket User Group  (LWUG) event.
We used instances of the same component on both the jWeekend "contact
us/preview your message" page and on the "LWUG registration confirmation"
page.

I always show-off markup-inheritance because I like it!

The quality and helpfulness of this forum must get a big mention and also
the Wicket examples and gradually improving quality/organisation of the
docs/wiki. And,  http://manning.com/dashorst/ Wicket In Action .

I'll probably not go too deeply into state (concerns) in 1 hour (except that
if they're worried, they're being presumptuous and premature ;-) but I'll
certainly mention/describe detachable models.

A simple Ajax component is a must (I may borrow the AjaxOnOffToggleLink
example  http://herebebeasties.com Al Maw  built in front of the audience at
another LWUG), which also includes a bit of i18n but that may not be key for
this audience).

I agree that "behaviours" is an essential topic, but I doubt I can do them,
as well as all the above (and a mvn archetype/quickstart/eclipse demo),
justice  in 1 hour. I may draw a class diagram to show the general concepts
and mention behaviours.

Integration with Ajax libraries is not something I have played with yet, but
agree it would be cool. While we're on the topic, 
http://dhtmlx.com/docs/products/dhtmlxTreeGrid/samples/drag_n_drop/treeGrid_drag.html
this 'd be nice as a Wicket component.

I'll probably also run down a more comprehensive list of things Wicket let's
you do easily and well (IoC, security, bookmarkable pages etc...) without
any detail at all, just so they know what is in the box.

Nick also mentioned the 
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook
phonebook app  - another good idea.

Gerolf mentioned "Xavier's slides for the talk at javazone'07" which I may
dig out too.

Not bad for an hour, but there are probably even more "essentials" that need
to be mentioned at least. What have we missed?

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





Scott Swank wrote:
> 
> 1. All code is Java, which enables end-to-end refactoring and gives
> you clean html.
> 
> 2. Composition enables reuse.  When I took a panel and moved it from a
> tab on a page to a modalwindow on the page by changing a couple of
> lines of code it made a big impact.
> 
> 3. Components have session state.  Hence the content of the session is
> determined by what components are on the page -- and further the
> session is cleaned out as components leave scope.  (And if state is
> kept in url parameters then session is not used, in case anyone
> complains about session size.  State must be somewhere, no?)
> 
> 4. Simple AJAX and nice integration with JS libraries such as Dojo.
> 
> 5. i18n: resource bundles, component-level, page-level, application-level
> 
> 6. Behaviors: What about a tab-order-preserving behavior to keep
> tabbing between fields from multiple panels sensible?  That's
> (relatively) easy.  What about a content-copying behavior to copy the
> purchaser's first/last name from the first item to all other items?
> That's easy too.  This is because everything is Java, including how
> components act and how state (models) are maintained.
> 
> I would focus on 1, 2 & 3; then give a quick look at some code that
> shows 4, then just mention 5 & 6.
> 
> - Scott
> 
> 
> 
> 
> On 10/30/07, jweekend <[EMAIL PROTECTED]> wrote:
>>
>> Nick,
>> In fact that's why someone from jWeekend first wrote to you in May when
>> you
>> were coming to the UK. I can imagine that there'll be lots to do in
>> 2008/9
>> for jWeekend and Wicket end-users.
>> In the meantime, after I tell them about you, what else must I NOT omit ?
>> ;-)
>> Regards - Cemal
>> http://jWeekend.co.uk jWeekend.co.uk
>>
>>
>>
>> Nick Heudecker wrote:
>> >
>> > The ONE thing you must not omit is telling them that I provide Wicket
>> > consulting.  :)
>> >
>> > On 10/30/07, jweekend <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> A development team I did some work with (in a top 5 investment bank)
>> >> today
>> >> asked me to give them a 1 hour intro to Wicket on Friday morning. I
>> have
>> >> been telling them it's the way to go for a while and they have finally
>> >> "found" an opportunity. I want to make sure I use that hour to best
>> >> effect,
>> >> for them and for Wicket.
>> >>
>> >> The goal is to give them enough of an intro to painlessly get started
>> on
>> >> their evaluation, armed with some high-level understanding of how to
>> do
>> >> things in Wicket.
>> >>
>> >> They have not used Wicket at all but they all have good web-app
>> >> experience
>> >> and some have a lot of Swing experience too (in fact we were working
>> on

Re: Dynamically changing CSS

2007-10-30 Thread Timo Rantalaiho
On Wed, 31 Oct 2007, Cristi Manole wrote:
> Tks a lot for your reply, but how do I do "get wicket to change the style 
> color" of that speciffic row, exactly? that part I don't know... :(

Something like 

final Component row = ...
row.add(new AttribubuteModifier("class", true, new
AbstractReadOnlyModel() {
public Object getObjext() {
if (isSelected(row)) {
return "trhighlight";
}
return "trdefault";
}
});

or if you don't want to change the style attribute by default,
you can only enable the attributemodifier as needed

row.add(new AttribubuteModifier("class", true, new
AbstractReadOnlyModel() {
public Object getObjext() {
return "trhighlight";
}
}

@Override
public boolean isEnabled() {
return isSelected(row);
}
});

Best wishes,

Timo

-- 
Timo Rantalaiho   
Reaktor Innovations Oyhttp://www.ri.fi/ >

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



YUI vs Wicket AutoComplete

2007-10-30 Thread John Patterson

Hi,

I want to use an auto complete component on stateless pages and in  
theory there should not be a problem with this.  Currently the wicket  
implementation uses the AJAX behaviour functionality which 


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



Re: YUI vs Wicket AutoComplete

2007-10-30 Thread Eelco Hillenius
> I want to use an auto complete component on stateless pages and in
> theory there should not be a problem with this.  Currently the wicket
> implementation uses the AJAX behaviour functionality which

...

waiting for the next episode :-)

Eelco

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



Re: Just 1 hour to introduce Wicket (Friday)

2007-10-30 Thread Jan Kriesten

hi cemal,

> Not bad for an hour, but there are probably even more "essentials" that need
> to be mentioned at least. What have we missed?

i find a key selling point to customers that you can easily run unit-tests on
your projects - especially if the customers are in banking business. also,
wicket's secure by default, so that might count, too. :-)

when i did my presentation, it came out that presenting a more complex example
showed the 'big picture' with wicket. so you might not want to implement a small
ajax-component but show an integrated one and show how it's implemented and
(re)used in the application, same for behaviours (e.g.
JavascriptEventConfirmation in onclick). This saves you presentation time and
you get a bigger 'ah!'.

best regards, --- jan.



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