Re: Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread Edward Zarecor
Hmm, I took a working example that replaces a panel using an AJAX link
and altered the HTML to match what you have and, hey presto, after
clicking the link I have two versions of the panel content.  Reload
and I have one again.

I don't have the code in front of me, but I'll take a look again
tomorrow at what precisely is happening.

You should look at the HTML after the AJAX link has been clicked to
try to determine what is happening to the DOM.

In any event, I think "table fragment" as panel is a bad idea.

Ed.

On Fri, Jun 25, 2010 at 5:36 PM, jammyjohn  wrote:
>
> Ed,
>
> Thanks for your reply. I already tried this. But still the problem exists.
> :(
>
> setResponsePage(getPage(this)) seems to be the work around for this issue.
> But the problem is, the other inputfields that have values on this page are
> lost when the panel is re-rendered.
>
> I am not sure how to solve this issue.
>
> Thanks
> J.
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Panel-re-rendered-twice-when-the-data-is-fetched-tp2268924p2268991.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
>
>

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



Re: Panel re-rendered twice, when the data is pulled in.

2010-06-25 Thread Edward Zarecor
I believe the cause -- and I've reproduced locally -- is this HTML:

 

Don't dump content into the 

Try changing this to







And see if it fixes the issue.

Ed.



On Fri, Jun 25, 2010 at 4:37 PM, jammyjohn  wrote:
>
> Hi,
>
> The page loads address panel with couple of text fields . When the search is
> made for a particular address id, the address panel is rendered twice (one
> panel with the data, the second panel without the data). Not sure  how to
> avoid re-rendering of panel twice,
>
> setResponsePage(getPage()) can be a solution, but I dont want the whole page
> to be refreshed as I am using 4 panels in my page.
>
> The code is as below. Not sure if there is a problem in the way the markup
> is structured.  Appreciate your help in this regard.
>
> /AddressPanel.html***/
>
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
>
> http://www.w3.org/1999/xhtml";
> xmlns:wicket="http://wicket.sourceforge.net/"; xml:lang="en"     lang="en">
>        
>                
>                                        
>                                                Adr1:
>                                                 type='text' wicket:id="address" size='30'
> maxlength='45'/>
>                                        
>                                        
>                                                Adr2:
>                                                 type='text' wicket:id="address2" size='30'
> maxlength='45'/>
>                                        
>                 
>        
> 
>
> /AddressPanel.java***/
>
> public class AddressPanel extends Panel {
>
>        public AddressPanel(String id, IModel model) {
>            super(id);
>
>           setDefaultModel(new CompoundPropertyModel(model));
>            add(new RequiredTextField("address"));
>            add(new
> TextField("address2").setConvertEmptyInputStringToNull(false));
>    }
>
> }
>
> /* java file that instantiates the panel */
>
> final  Panel shipAddressPanel = new AddressPanel("shipperAddressPanel", new
> Model(address.getShipAddress()));
>                shipAddressPanel.setOutputMarkupId(true);
>                mawbForm.add(shipAddressPanel);
>
>                add(mawbForm);
>
> final TextField shipIdTf =  new TextField("shipperId", new
> PropertyModel(dtomodel, "shipperId"));
>                shipIdTf.setOutputMarkupId(true);
>                mawbForm.add(shipIdTf);
>
>
>                shipIdTf.add(new AjaxFormComponentUpdatingBehavior("onBlur"){
>                        private static final long serialVersionUID = 1L;
>                       �...@override
>                        protected void onUpdate(AjaxRequestTarget target) {
>                                Shipper shipper=
> shipDao.loadShipAddress(Long.parseLong(shipIdTf.getDefaultModelObjectAsString()))
>                                Address address = new Address();
>                                address.setShipAddress(shipper);
>                                
> shipAddressPanel.setDefaultModelObject(address.getShipAddress());
>                                target.addComponent(shipAddressPanel);
>                        }
>
>        });
>
>
>
>
>
>
> /* the template that calls the panel ***/
>
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
>
> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
> 
> 
>
> 
> 
> 
>                                                         border='1' cellpadding='1' cellspacing=''>
>                                                
>                                                
>                                                                 class='instrLabelColor' colspan="2"
> align='center'>SHIP From:
>                                                                         type='text' wicket:id="shipperId" />
>                                                                 
>
>                                                         
>                                                         wicket:id="shipperAddressPanel">
>                                                
>                                                
>                                        
>                                        
>
> 
> 
> 
>
> Thanks
> J
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Panel-re-rendered-twice-when-the-data-is-pulled-in-tp2268924p2268924.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
>
>

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



Re: Get data from main application

2010-06-25 Thread Edward Zarecor
Do you mean that App1 will redirect to something like
http://wickethost/WicketApp/homepage?myArgument=theValue

If so, see:

http://wicketbyexample.com/api/wicket/1.4.6/org/apache/wicket/PageParameters.html

If not, please clarify the use case.

Ed.


On Fri, Jun 25, 2010 at 3:17 PM, d2marcelo  wrote:
>
> Hello,
>
> I'm building a webapp in wicket which will be a redirect from other webapp.
> The other webapp will send me a string ,  what is the best way to get this
> string from the wicket application? and how to do it?
>
> Thanks a lot,
>
> Marcelo
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Get-data-from-main-application-tp2268839p2268839.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
>
>

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



Re: Markup Inheritance example with Ajax?

2010-06-25 Thread Edward Zarecor
What you are trying to accomplish doesn't require markup inheritance.

You can use a panel and replace it with an Ajax link.

That panel could be nested within wicket children participating in
markup inheritance, but that's another matter.  The panel should be
the component added to the AjaxRequestTarget.

Ed.


On Fri, Jun 25, 2010 at 1:29 PM, heapifyman  wrote:
>
> Hello all,
>
> I would like to extend the Markup Inheritance example
> (http://wicket.apache.org/examplemarkupinheritance.html) by replacing
> the content part of the page (i.e. the wicket:child) using Ajax.
>
> I tried to replace the BookmarkablePageLink on the BasePage with an
> AjaxLink but this does not seem to work because one cannot add a WebPage
> (e.g. Page1 in the example) to the target in the onClick() method.
>
> Is there a way in Wicket to have a BasePage with header, content and
> footer and replace the content by using Ajax?
>
> I'd appreciate if anyone could point me to some example or documentation.
>
> Best regards,
> philip
>
>

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



Re: [Wicketstuff / Inmethod-Grid] A handful of patches

2010-06-07 Thread Edward Zarecor
I'm pretty familiar with Jira and have upgraded a couple of instances
because of the same vulnerability.  If I could be of help getting Jira back
on-line, let me know.

Thanks.

Ed.


On Mon, Jun 7, 2010 at 1:22 PM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> Hi Matej
>
> I have a couple of patches too (adding the delete column and
> dropdownproperty column).. And one or two bug reports as well..
>
> 2010/6/7 Matej Knopp :
> > Hi,
> >
> > I'm too busy to review the patches now, also they didn't get through
> > as the mailing list doesn't allow attachments.
> >
> > Perhaps when JIRA works on wicket stuff again you can create issues in
> > grid project and attache the patches there.
> >
> > -Matej
> >
> >
> > On Mon, Jun 7, 2010 at 5:48 PM, Charles Deal 
> wrote:
> >> We've been using the grid for quite some time now and have accumulated a
> few
> >> changes to the codebase.  I'd like to submit them for other users to
> review
> >> and discuss, in the hopes that they will make it into the wicketstuff
> >> codebase in the future.  The following are brief descriptions of the
> >> attached files.
> >>
> >> inmethodgrid-script.patch
> >> This patch simply adds a resize event to the grid.  We noticed that when
> the
> >> browser was resized, the grid wouldn't resize until the user attempted
> to
> >> scroll.
> >>
> >> inmethodgrid-columns.patch
> >> Some small changes to facilitate more code reuse.
> >>
> >> inmethodgrid-form.patch
> >> Move the header and toolbars into the form.  This allows the header to
> >> determine the form automatically so that, for example, when sorting a
> grid,
> >> the behavior can submit the form to retain any transient changes to the
> >> grid.
> >>
> >> inmethodgrid-gridbehavior.patch
> >> Refactor the AjaxFormSubmitBahvior implementation into its own class to
> be
> >> used by custom behaviors.  Altered the code to use the new class.
> >>
> >> inmethodgrid-insert.patch
> >> Add support for adding rows to the grid.
> >>
> >> As I said, my team have been successfully using (almost all of) these
> >> patches since at least June 2008.  The script patch is the only one that
> is
> >> a recent change.  I'd appreciate some feedback and if no objections are
> >> made, I'd like to get these patches into the scm.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-07 Thread Edward Zarecor
So it seems that Tomcat is unable to set a cookie to store the session id
for the problematic domain as it will append it to the URL when all else
fails -- you may also be able to configure this as the default behavior.

Look at the differences between the hostname configurations comparing a
working server and a non-working server.

Ed.


On Mon, Jun 7, 2010 at 11:22 AM, Bryan Montgomery  wrote:

> Thanks - this is still puzzling me. This is a virtual machine. I did just
> try the war on another virtual machine and it worked as expected. I think
> I'm about to rebuild the server.
>
> I don't have any clustering, and not using apache, just hitting tomcat
> directly. One thing I noticed from the profiling on IE8 is that on the
> servers that worked normally, the postbacks had the jsessionid appended to
> the url. The non-working server is missing that so I'm doing a little bit
> of
> digging to see if I can find a reason why that may be happening.
>
> Cheers - Bryan.
>
> On Fri, Jun 4, 2010 at 7:33 PM, Igor Vaynberg  >wrote:
>
> > right, sounds like the session is being lost and the page is being
> > rerendered fresh.
> >
> > -igor
> >
> > On Fri, Jun 4, 2010 at 1:46 PM, Scott Swank 
> wrote:
> > > Do you have apache or a load balancer or anything else in the network?
> > >  Is there maybe a simple difference in your httpd.conf pertaining to
> > > sessions?
> > >
> > > On Fri, Jun 4, 2010 at 1:32 PM, Bryan Montgomery 
> > wrote:
> > >> Thanks for the ideas. Still no joy.
> > >>
> > >> The behavior is consistent between three different clients, all
> running
> > >> different versions of IE (6,7 and 8).
> > >> I was able to use the debugging feature built in to IE 8 to see that
> the
> > >> wicket ajax javascript was gettting called. At some point in that
> > process it
> > >> lost the value of the field and it got set to an empty field.
> > >>
> > >> I have the feeling that there is something different with the
> > environment on
> > >> this particular server - but I have no idea what at this point.
> > >>
> > >> On Fri, Jun 4, 2010 at 1:32 PM, gnul  wrote:
> > >>
> > >>> >
> > >>> > Essentially, part of the process generates dynamic web forms based
> on
> > xml
> > >>> > configuration files. We noticed that on one of our servers when we
> > >>> deployed
> > >>> > the war file that the fields would not hold their values, and as
> soon
> > as
> > >>> you
> > >>> > tabbed out, the entry would disappear. Taking the same war file and
> > >>> > deploying it to another server the form acts as expected.
> > >>> >
> > >>>
> > >>> If it works on one server, but not the other, and they are configured
> > >>> the same (meaning same appserver/tomcat version, same jvm, same
> > >>> user/group/perms, etc.), the first thing I do is "clean" the
> appserver
> > >>> and do a fresh deploy.
> > >>>
> > >>> For example, say you are deploying to /var/lib/tomcat/webapps/, I
> > >>> would shutdown both tomcats, remove the exploded directories (e.g.
> > >>> myapp.war => myapp/ ) and re-deploy the war files to each server.  I
> > >>> would also clean out tomcat's temp directory (e.g.
> > >>> /var/cache/tomcat5/temp), then restart them both.
> > >>>
> > >>>  -gnul
> > >>>
> > >>> -
> > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > >>> For additional commands, e-mail: users-h...@wicket.apache.org
> > >>>
> > >>>
> > >>
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional commands, e-mail: users-h...@wicket.apache.org
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>


Re: [announce] Release Wicket 1.4.9

2010-05-28 Thread Edward Zarecor
If it's of any use, I put together a very, very simple 2D Quickstart for my
own edification.  I've deployed, exercised and un-deployed builds of
application using Wicket 1.4.8 and 1.4.9 to Weblogic 10.

In the former case I do not see, via YourKit, the Java2D Disposer thread
holding a reference to the WicketApplication in ThreadLocalMap
inheritableThreadLocals after the application has been undeployed, in the
latter I do not.  In the 1.4.8 test the only reference to WicketApplication
is to the Class, not an instance as I'm seeing in the 1.4.9 case.

Ed.


On Tue, May 25, 2010 at 7:21 AM, James Carman wrote:

> It is *not* a theoretical objection.  Please see:
>
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6489540
>
> This is a real problem that Sun (now Oracle I guess) has identified
> and is "working on".
>
> On Mon, May 24, 2010 at 5:20 PM, Alex Objelean 
> wrote:
> >
> > I don't want to insist to much, I'm not absurd, but we are technical
> people.
> > Don't you think that any theorem should be proven? The least we can
> achieve
> > is to learn a new thing about how ITL are related to memory leaks.
> >
> > I know it isn't easy to prove, but aren't there enough tools to help us?
> Is
> > it really that hard to make a simple example with a worst case scenario
> to
> > check if the presumption is indeed valid? I know it is much simpler to do
> > nothing to avoid potential problems, but still do you find it a good way
> to
> > deal with problems? Don't you believe in presumption of innocence
> principle?
> >
> > I don't want to bother the community, if there won't anybody willing to
> > prove the problem, eventually I will spend some time to bust the myth...
> >
> > Alex
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/announce-Release-Wicket-1-4-9-tp2228179p2229213.html
> > Sent from the Wicket - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: How to save binary files?

2010-05-28 Thread Edward Zarecor
This looks like an issue with your Java installation, which you could verify
with a simple standalone test, e.g.,

public static void main(String[] args) { // create file as in Wicket.. }

Ed.


On Fri, May 28, 2010 at 11:12 AM, Alex Zeit  wrote:

> Dear All,
> I am a bit confused where the error is: Is it Ubuntu Tomcat configuration
> or
> there is a specific approach to save files from Wicket.
> My Application generates several binary files. After files generated I want
> to pack them in zip archive and allow user to download them.
> Is it possible to do this in Wicket? If so where should I save those files
> and how?
> Should I get temp filestore folder?
> While trying to write files to disk I am getting the following error:
> May 28, 2010 10:50:08 AM java.util.prefs.FileSystemPreferences$2 run
> WARNING: Couldn't create user preferences directory. User preferences are
> unusable.
> May 28, 2010 10:50:08 AM java.util.prefs.FileSystemPreferences$2 run
> WARNING: java.io.IOException: No such file or directory
>
> Thanks a lot in advance,
> Alex
>


Re: Help me speed up my Wicket

2010-05-20 Thread Edward Zarecor
 Rewinding this thread.  Comments and suggestion in-line.


> The problem is that it renders very slowly in browsers.
>
> The reason is not directly network speed but it is the VERY heavy
> markup. Each table cell has 3 ajax components and the ajax call
> functions are loong.
>
>
So you're doing ~60 network round trips for the calender component alone, if
I understand correctly, and you don't think the issue is network related.  I
find that hard to believe.  If you disable JavaScript in your browser or use
some other method for preventing the Ajax from executing, does it still
render slowly -- assuming it will render at all with Ajax disabled.


> I have tested to strip away all ajax calls and it renders pretty OK.
> Now what I am thinking is that is there a way to shorten the wicket
> ajax call urls?
>
>
> Note that stripping away the Ajax calls strips away the round trips, not
just the mark up.  I believe the round trips are the real issue.

>
> Any practical suggestions?
>
>
> I think you should pre-compute the initial state of your calender on page
load, all the work done in ~1 round trip, and use Ajax to handle changes
that must be reflected dynamically.  Maybe I don't understand your use case
well enough, is there some reason you could not do what I suggest?


 Ed.


Re: warp persist, guice & wicket: use warp persist during wicket application startup to load db objects

2010-05-13 Thread Edward Zarecor
I think this questions was resolved on the Guice list.  Correct me if I'm
wrong.  This is the thread:

http://groups.google.com/group/google-guice/browse_thread/thread/78ffb08353f4dcf

The thread was somewhat messy, so the upshot is:

A good worked example of persistence outside the context of a
request/response cycle is available via the JWeekend LegUp DataInitializer
Class.

Get a Wicket/Guice/Warp archetype from here:

http://jweekend.co.uk/dev/LegUp


If the data you are loading isn't changing, you could load it on start up
and detach your hibernate objects or cache the data in any number of other
ways so that it is still available after the loading session has closed.
WorkManager, 
http://code.google.com/p/warp-persist/wiki/WorkManager,
would
be the appropriate way to load data outside of Request/Response cycle in a
web application.

Also see this:
http://www.wideplay.com/transactionsemantics,
see the section on "Custom
Units of Work."

Ed.

On Thu, May 13, 2010 at 12:09 PM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> Maybe mark your servlet listener as transactional?
>
> 2010/5/11 Christoph Grün :
> > Hi all,
> >
> >  I am using Wicket together with Guice and Warp Persist/Servlet.
> >
> > I have registered the PersistenceService in the contextInitialized
> method.
> > However, I would like to do some data loading from the database when
> wicket
> > starts, and like to access Hibernate Daos. I am getting the error:
> >
> >  org.hibernate.HibernateException: No session currently bound to
> execution
> > context
> >
> >at
> >
> org.hibernate.context.ManagedSessionContext.currentSession(ManagedSessionCon
> > text.java:50)
> >
> >at
> >
> org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.j
> > ava:591)
> >
> >at
> > com.wideplay.warp.hibernate.SessionProvider.get(SessionProvider.java:42)
> >
> >at
> > com.wideplay.warp.hibernate.SessionProvider.get(SessionProvider.java:32)
> >
> >  Using Hibernate from an HTTP request is no problem. How can I configure
> > Warp to use it directly from WicketApplication, so that I can load the
> > database objects and use them for incoming HTTP requests?
> >
> > Thanks a lot, Christoph
> >
> >  public class Init extends WarpServletContextListener {
> >
> >
> >
> >@Override
> >
> >public void contextInitialized(ServletContextEvent event) {
> >
> >super.contextInitialized(event);
> >
> >INJ.getInstance(PersistenceService.class).start();
> >
> >event.getServletContext().setAttribute("injector", INJ);
> >
> >}
> >
> >
> >
> >@Override
> >
> >public void contextDestroyed(ServletContextEvent event) {
> >
> >super.contextDestroyed(event);
> >
> >}
> >
> >
> >
> >
> >
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Back-button friendly ajax wizard navigation

2010-04-21 Thread Edward Zarecor
Since you are changing the DOM dynamically using Ajax, the browser --
correctly I would say -- isn't considering this a page change, so the
back button should take you back to the page prior to the wizard.

The browser history will be immutable from JavaScript, so that's not an option.

To achieve the user experience you want, I think the best alternative
is to validate your fields via Ajax onblur, but move between wizard
steps using a form submit.

Hope this helps.

Ed.

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



Re: My first WiQuery app does not work

2010-03-30 Thread Edward Zarecor
Did you use component instantiation listener as suggested or just stop
extending WiQueryWebApplication?

Ed.

Typed by thumb

On Mar 30, 2010 3:05 PM, "David Chang"  wrote:

Julie,

Thanks for asking. The code is in the beggining of this thread. For that, I
copied the Hello World example from wiquery site.

If I make my wicket application extend WiQueryWebApplication, then
everything is working fine.

Thanks, David



--- On Tue, 3/30/10, julien roche AKA indiana_jules 
wrote:

> From: julien r...
> Date: Tuesday, March 30, 2010, 2:50 PM

> Hi,
>
> That's really odd. Can we see your code ?
>
> Thanks
>
> Julien Roche
>
>
> On Tue, M...


Re: Using SetResponsePage in Session

2010-03-13 Thread Edward Zarecor
I would check if the user already exists in the session, but send the
redirect from a Page.  You can refactor the redirection code into a base
class and extend as required.

Ed.

On Mar 13, 2010 2:04 PM, "Nishant Neeraj" 
wrote:

The use case is like this.

You have logged-in in a browser's tab and in another tab, you click on a
moderate-comment mail that automatically logs you in as another user, and
takes you to the comments-moderation page of the application.

Now, at this point, I want to ask the user if he wants to switch account.
[The way Google does if you are signing-in in two tabs as different users]

So, instead of comment-moderation page, I want to take user to "Do want to
switch account?" page (if another user is already logged-in in another tab).
Depending on the users decision I will either invalidate the old session and
log-in as new user or will just take the user to already logged in session's
home page.

The thing is, I wanted to do this all the time. Whenever I am calling
MySession.get().setUser(UserVO uvo), I want to check if there already exists
a different userVO in the same session. If so, the end user must be
notified.

Thanks
Nishant

On Sat, Mar 13, 2010 at 7:24 PM, Edward Zarecor wrote:


> What's the use case? Session events won't always occur within the
> context of a RequestCycle, s...
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Using SetResponsePage in Session

2010-03-13 Thread Edward Zarecor
What's the use case?  Session events won't always occur within the
context of a RequestCycle, say, expiry.

Even If the use case is related to a request something like this might
be cleaner:

YourPage

  if (getYourApp().getYourSession().isWhatever())
  {
  RequestCycle.get().setRedirect(true);
  RequestCycle.get().setResponsePage(SomePage.class);
  } else { 

Ed.

On Sat, Mar 13, 2010 at 7:06 AM, Nishant Neeraj
 wrote:
> Hi,
>
> In my custom session, I have a method which, on certain condition, wants to
> redirect the request to some page, other than the original.
> This is what I am doing, in the method:
>
> RequestCycle.get().setRedirect(true);
> RequestCycle.get().setResponsePage(SomePage.class);
>
> But the response continues to land on the originally requested page
> requested page.
>
> Is there any way to do this without invalidating the session?
>
> Thanks
> Nishant
>

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



Re: deployment problem

2010-03-05 Thread Edward Zarecor
Then there's probably another version of Spring on your classpath, perhaps
provided by Tomcat.  A case for jwhich.

Ed.

On Mar 5, 2010 1:48 PM, "bonomat"  wrote:


jes, it is in there i think: i found this one:
spring-core-3.0.1.RELEASE.jar

--
View this message in context:
http://old.nabble.com/deployment-problem-tp27797485p27797706.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: RE: How can i know when a users redirects to other page

2010-03-01 Thread Edward Zarecor
Would on session expiry be a better place to handle this?  Implementation
would be simple and you could avoid ever needing to regenerate a file if
that is useful to you.  It also naturally handles the case where a user
doesn't leave the page.

Ed.

On Mar 1, 2010 10:09 AM, "Martin Asenov"  wrote:

The use case is that I generate a file located in a temp folder that appears
on page under a download link. I want to delete the file when the user goes
in another page.

Regards,
Martin


-Original Message-
From: Riyad Kalla [mailto:rka...@gmail.com]
Sent: Monday, March 01, 201...
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


Re: Wicket Google Translation Localizer

2010-01-28 Thread Edward Zarecor
I think Martin's idea is that in the absence of a localized properties
file localization via a call to google translate would be attempted.

I think there are likely to be more problems the benefits with this
design.  To wit, http://tinyurl.com/y8nvx2x.

Perhaps a shell script to localize your base properties files followed
by manual intervention, correction.

Ed.

On Thu, Jan 28, 2010 at 11:28 AM, Victor Dolirio Ferreira Barbosa
 wrote:
> There the default properties file for this purpose. Just make a properties
> file without locale info in this name, like this example:
>
> +
>  |- Application_en_US.properties
>  |- Application_pt_BR.properties
>  |- Application.properties
>
> The last file is used if no other is found for the current locale.
>
> On Thu, Jan 28, 2010 at 2:15 PM, Martin Makundi <
> martin.maku...@koodaripalvelut.com> wrote:
>
>> Hi!
>>
>> I wonder, has anybody implemented a wicket stringresource localizer
>> that if localized property is not found for the selected language, it
>> would attempt to translate it using the default language?
>>
>> **
>> Martin
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> --
> []s,
> Victor Dolirio
>

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



Re: Image Bundler For Apache Wicket

2010-01-26 Thread Edward Zarecor
Do the comments in the inspiration design document about localization
also apply to your Wicket ImageBundle implementation?  If Wicket's
built in image handling functions as a "locale-specific factory" does
image localization work as expected with bundles?

Ed.


On Tue, Jan 26, 2010 at 12:23 PM, Andrew Lombardi
 wrote:
> This is very very cool.
>
> Congrats Anantha!
>
> On Jan 26, 2010, at 9:07 AM, Anantha Kumaran wrote:
>
>> i will try to put it in the google appspot later. Here is the source code of
>> a sample http://github.com/ananthakumaran/imagebundler-wicket
>>
>> On Tue, Jan 26, 2010 at 7:20 AM, Riyad Kalla  wrote:
>>
>>> Very cool Anantha, do you have a site online that uses the bundler that we
>>> could take a peek at as a running example?
>>>
>>> On Tue, Jan 26, 2010 at 7:42 AM, Anantha Kumaran
>>> wrote:
>>>
 http://ananthakumaran.github.com/imagebundler-wicket

>>>
>
>
> To our success!
>
> Mystic Coders, LLC | Code Magic | www.mysticcoders.com
>
> ANDREW LOMBARDI | and...@mysticcoders.com
> 2321 E 4th St. Ste C-128, Santa Ana CA 92705
> ofc: 714-816-4488
> fax: 714-782-6024
> cell: 714-697-8046
> linked-in: http://www.linkedin.com/in/andrewlombardi
> twitter: http://www.twitter.com/kinabalu
>
> Eco-Tip: Printing e-mails is usually a waste.
>
> 
> This message is for the named person's use only. You must not, directly or 
> indirectly, use,
>  disclose, distribute, print, or copy any part of this message if you are not 
> the intended recipient.
> 
>
>

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



Re: Image name changing in dev server

2010-01-19 Thread Edward Zarecor
I notice that you are using capitalized extensions.  Are local and dev
instances on different operating systems?  Is the extension of the
file jpg or JPG?

My stab in the dark is that in dev you get a broken image because
neither the localized or non-localized images are found.  You are
seeing that the name has been changed and are mis-diagnosing the root
cause.  This is just a stab in the dark

Ed.

On Tue, Jan 19, 2010 at 2:07 PM,   wrote:
> We do not need any naming rules. Thats why I am confused.
>
> My code is this inside a reating view.
>
> Image image = new Image("circle"+i, "/images/circlegray.JPG")
>
> In local enviornment it works fine but in Dev Server image name is changed
> with us local appended.
>
> Thanks and Regards,
> Vandana Goel
>
>
>
> Pedro Santos 
> 01/19/2010 01:58 PM
> Please respond to
> users@wicket.apache.org
>
>
> To
> users@wicket.apache.org
> cc
>
> Subject
> Re: Image name changing in dev server
>
>
>
>
>
>
> You can use an ResourceReference to implement any naming rule you need.
>
> On Tue, Jan 19, 2010 at 4:51 PM,  wrote:
>
>> Is it expected behaviour in wicket. Why wicket is changing the name of
> the
>> image ?
>>
>> Thanks and Regards,
>> Vandana Goel
>>
>>
>>
>> Igor Vaynberg 
>> 01/19/2010 01:31 PM
>> Please respond to
>> users@wicket.apache.org
>>
>>
>> To
>> users@wicket.apache.org
>> cc
>>
>> Subject
>> Re: Image name changing in dev server
>>
>>
>>
>>
>>
>>
>> even though the name of the image is changed to _en_US the original
>> image should still be tried if wicket cannot find the more specific
>> one. please debug and see where it goes wrong.
>>
>> -igor
>>
>> On Tue, Jan 19, 2010 at 9:49 AM,   wrote:
>> > All our other images works fine in dev server. In local environment
>> image
>> > in wizard also works but not in dev.
>> >
>> > The name of image is change from circlegray.JPG to
> circlegray_en_US.JPG.
>> > Its happening in wizard component only.
>> >
>> > Our environment is Websphere 6.1 and we are using Wicket Servlet.
>> >
>> > Any help will be appreciated.
>> >
>> > Thanks and Regards,
>> > Vandana Goel
>> >
>> >
>> >
>> > Notice: This communication, including any attachments, is intended
>> solely
>> > for the use of the individual or entity to which it is addressed. This
>> > communication may contain information that is protected from
> disclosure
>> > under State and/or Federal law. Please notify the sender immediately
> if
>> > you have received this communication in error and delete this email
> from
>> > your system. If you are not the intended recipient, you are requested
>> not
>> > to disclose, copy, distribute or take any action in reliance on the
>> > contents of this information.
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>>
>>
>>
>> Notice: This communication, including any attachments, is intended
> solely
>> for the use of the individual or entity to which it is addressed. This
>> communication may contain information that is protected from disclosure
>> under State and/or Federal law. Please notify the sender immediately if
>> you have received this communication in error and delete this email from
>> your system. If you are not the intended recipient, you are requested
> not
>> to disclose, copy, distribute or take any action in reliance on the
>> contents of this information.
>>
>
>
>
> --
> Pedro Henrique Oliveira dos Santos
>
>
>
>
>
> Notice: This communication, including any attachments, is intended solely
> for the use of the individual or entity to which it is addressed. This
> communication may contain information that is protected from disclosure
> under State and/or Federal law. Please notify the sender immediately if
> you have received this communication in error and delete this email from
> your system. If you are not the intended recipient, you are requested not
> to disclose, copy, distribute or take any action in reliance on the
> contents of this information.

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



Re: Session Invalidate

2009-12-15 Thread Edward Zarecor
>
> For some more context: Wicket isn't really touching the authentication
> process (which is why I wonder if this has anything to do with wicket). I'm
> using declarative security through the deployment descriptor and web.xml to
> handle the authentication and authorization (for now). The user logs in
> through a static page with a form which posts to j_security_check and if
> successful, redirects to the app.
>
> Any ideas on what I could be doing wrong?
>
> Thanks!
>
> Zak
>

If your pages or application aren't enforcing authentication or
authorization, invalidating the session as you do won't prevent your
pages from rendering.

Check out this example:
http://www.wicket-library.com/wicket-examples/authorization/

Ultimately, you'll probably want to role you own session and add
methods to the your application to return the login page and the
unauthorized page, etc.


Ed.

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



Re: wicket on Weblogic 10.3.1

2009-11-24 Thread Edward Zarecor
When you start up what ports and addresses does Weblogic say it's listening on:

grep for "is now listening"

I'd recommend capturing the headers with live headers or something
similar and seeing what differs between access via localhost and
127.0.0.1.

That those differ suggests a DNS/hosts issue to me.

Ed.

On Tue, Nov 24, 2009 at 9:06 AM, zoltan luspai  wrote:
> I'm going directly to weblogic, which is running locally all configured to
> default, it is all on the same host, no apache and no proxies in between.
>
> Z
>
>
>
> Edward Zarecor wrote:
>
>> Are you using Apache with the Weblogic plugin?
>>
>> If so, do you see the same behavior if you go directly against Weblogic?
>>
>> Can you confirm that subsequent requests are actually being handled by
>> the app server?
>>
>> I ask because we've seen cases where URL mangling caused requests that
>> should have mapped to our wicket app not being properly proxied by the
>> Weblogic plugin.  The result was an Apache error as it couldn't handle
>> the request itself and wasn't forwarding it.
>>
>> Ed.
>>
>> On Tue, Nov 24, 2009 at 4:11 AM, zoltan luspai  wrote:
>>
>>>
>>> Hi All,
>>>
>>>
>>> Anybody has experience with wicket running on Weblogic 10.3.1? Any hints
>>> about?
>>>
>>> I'm having some problem with that wicket pages does not seem to handle
>>> page
>>> events properly, for example the first render of the page is fine, but if
>>> I
>>> click on a button that does not seem to go to the next page. Sorry for
>>> being
>>> foggy here; the thing is being investigated now...
>>>
>>>
>>> Thanks,
>>>
>>> Zoltan
>>>
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: wicket on Weblogic 10.3.1

2009-11-24 Thread Edward Zarecor
Are you using Apache with the Weblogic plugin?

If so, do you see the same behavior if you go directly against Weblogic?

Can you confirm that subsequent requests are actually being handled by
the app server?

I ask because we've seen cases where URL mangling caused requests that
should have mapped to our wicket app not being properly proxied by the
Weblogic plugin.  The result was an Apache error as it couldn't handle
the request itself and wasn't forwarding it.

Ed.

On Tue, Nov 24, 2009 at 4:11 AM, zoltan luspai  wrote:
> Hi All,
>
>
> Anybody has experience with wicket running on Weblogic 10.3.1? Any hints
> about?
>
> I'm having some problem with that wicket pages does not seem to handle page
> events properly, for example the first render of the page is fine, but if I
> click on a button that does not seem to go to the next page. Sorry for being
> foggy here; the thing is being investigated now...
>
>
> Thanks,
>
> Zoltan
>
>
> -
> 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: Posting A Form To NonWicket

2009-11-20 Thread Edward Zarecor
Is there a requirement to process the data in any way before
submitting to the remote application?  Why wouldn't you just use an
HTML form with the appropriate action pointing to the remote host?
Wicket may not need to know about this form.

Ed.


On Fri, Nov 20, 2009 at 12:14 PM, Balaji C  wrote:
> I've a wicket form with input elements. I would like to post this form to a
> non-wicket url. Is it possible to post this form from submit event of wicket
> button? I google and couldn't find any clear solution. Any help is
> appreciated. If any other alternative, please let me know. Thanks.
>

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



Re: request scoped variables

2009-11-19 Thread Edward Zarecor
If it's called so many time per request that you are concerned about
performance why not associate the frequently used user details with
the session.

If numerous components are using the same model you could look to
refactor so that they use the same instance.

Ed.

On Thu, Nov 19, 2009 at 5:50 PM, Douglas Ferguson
 wrote:
> I am maintaining an app that is written in wicket.
>
> When a user logs in the userId is stored on the session.
> There is a method on the session object that returns a 
> UserAccountLoadableDetachable.
> This loadable detachable is created every time the method is called.
>
> My thought was that I could share it across the request.
>
> D/
>
>
> On Nov 19, 2009, at 3:53 PM, Igor Vaynberg wrote:
>
>> whats the usecase for a request-scoped variable?
>>
>> you can have a transient field on the page that you null in ondetach()...
>>
>> otherwise you can access httpservletrequest and use attributes.
>>
>> -igor
>>
>> On Thu, Nov 19, 2009 at 1:51 PM, Douglas Ferguson
>>  wrote:
>>> is there a best practice for request scoped variables in wicket?
>>>
>>> D/
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

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



Re: Is wicket really compatible with Tomcat?

2009-10-06 Thread Edward Zarecor
There are a number of equally plausible conclusions ;)

A quick google didn't turn up anything more recent.  Has anyone seen more
recent data?

Ed.


On Tue, Oct 6, 2009 at 3:02 PM, nino martinez wael <
nino.martinez.w...@gmail.com> wrote:

> And that survey from netcraft are really old. So numbers are probably
> higher
> for jetty.
>
>


Re: Passing parameters from markup to panels

2009-09-07 Thread Edward Zarecor
You don't need multiple versions of the panel, you simply need a constructor
that takes an argument, the number of items you want to include.  This
doesn't fully fulfill your use case as your site-devs or portal-devs cannot
pass that argument in.
You could arrange that using iframes and passed parameters.

Ed.

On Mon, Sep 7, 2009 at 7:10 PM, Chris Colman
wrote:

> When my web designer guy wants control over whether he wants to place
> either 10 songs or 50 songs into the 'top of the charts' panel I
> consider that to be something that should definitely not be something we
> have to make separate .java panel classes and markup to achieve.
>
> To have to get a programmer to adjust code to change the number of items
> displayed in a list would be the subject of thunderous laughter in any
> desktop app development environment - but yet I see that web app
> development changes all the rules about what's funny and what's not =)
>
> In every other aspect of OO coding since 1990 a scenario like this would
> cause a big light bulb in my head to go off and the word
> 'parameterization' would start blinking at me incessantly.
>
> We programmer propeller heads can do all the smarts on the Java side to
> use a single 'SongChartPanel' to display any number of songs from a list
> based on a single parameter - so long as we can get that parameter
> somehow. It's still MVC because NO code exists in the presentation layer
> - only a parameter is now able to be passed in.
>
> The value of that parameter is not considered code. Setting up a
> parameter  is something a web design guy can 'understand' (they set
> parameter/attribute values on HTML tags all day long) and it's something
> that directly affects the presentation side that he would want control
> over. That gives him power.
>
> Without this power I have to get the programmers to create a different
> panel and markup for each different song chart panel even though the
> code will be exactly the same except for the terminating condition of a
> for loop. That's not OO and it's not reusability. It would be funny if
> it wasn't true!
>
> Let's say we make
>
> SongChartTop10Panel and SongChartTop50Panel
>
> (with .java and .html markup for each)
>
> Now he says he wants to make a top 20 list for one page and a top 40
> list for another page... the inefficiency and non OO nature of this
> approach becomes apparent.
>
> If a simple parameter were able to be passed to the panel we could reuse
> that panel code to show anywhere from 1 to n songs.
>
> Please don't confuse a parameter (numbers, identifiers etc.,) with logic
> (algorithms, conditional statements etc.,). No one is suggesting we put
> logic into the presentation layer - the pain of JSP is much too firmly
> burnt into my brain to ever step away from MVC again ;)
>
>
> > -Original Message-
> > From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
> > Sent: Tuesday, 8 September 2009 8:19 AM
> > To: users@wicket.apache.org
> > Subject: Re: Passing parameters from markup to panels
> >
> > Put simply, no.  In Wicket, this is considered code.  And code goes in
> > Java
> > files.  Configure it in the YourPage.java file - where you have access
> to
> > data sources, session attributes, the user, etc
> >
> > --
> > Jeremy Thomerson
> > http://www.wickettraining.com
> >
> >
> >
> > On Mon, Sep 7, 2009 at 5:09 PM, Chris Colman
> > wrote:
> >
> > > I apologize in advance if there is a completely obvious solution to
> this
> > > that I have missed...
> > >
> > > Is it possible to "pass in" parameters to a panel via the markup?
> > >
> > > Eg., Let's say that there are number of different ways that a
> particular
> > > panel could be rendered and that these ways are largely determined
> by
> > > the choice of data source or perhaps even the amount of data to
> display
> > > (from a collection for example).
> > >
> > > Now let's say that I wanted to provide some level of control over
> which
> > > data source is chosen by allowing the user to pass in an extra
> > > 'parameter' in the markup when declaring the panel in the source
> markup
> > > like:
> > >
> > > 
> > >
> > > So for example we might have a panel that displays the 'top 10
> songs' or
> > > the 'top 50 songs' on a music site. The panel is exactly the same in
> > > each instance but the markup container that uses that panel can
> control
> > > how many songs are displayed via specification of an extra parameter
> > > ('count' in the following example).
> > >
> > > Eg.,
> > >
> > > One page could have a lot of space and so decide to show the top 50:
> > >
> > > 
> > >
> > > However another page that is more dense might only have room to
> display
> > > the top 10 songs
> > >
> > > 
> > >
> > > But in each case the markup and code for the panel itself does not
> need
> > > to change.
> > >
> > >
> -
> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > > For additional 

Re: Question regarding file uploading

2009-09-04 Thread Edward Zarecor
See BlobImageResource.

http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/image/resource/BlobImageResource.html

Ed.


On Fri, Sep 4, 2009 at 10:18 AM, Daniel Dominik Holúbek <
dankodo...@gmail.com> wrote:

> yes,but what i can't imagine is how to retrieve those objects from db.
> what to use? Resource? ResourceReference?
>
>
> On Fri, Sep 4, 2009 at 4:15 PM, Edward Zarecor 
> wrote:
>
>> Google your database of choice and blob (binary large objects), e.g.,
>> postgres blob; oracle blob, etc.
>>
>> Ed.
>>
>>
>> On Fri, Sep 4, 2009 at 10:11 AM, Daniel Dominik Holúbek <
>> dankodo...@gmail.com> wrote:
>>
>> > thanks,and can you give me a hint on storing images in database?
>> > i can't quite imagine that :)
>> >
>> > On Fri, Sep 4, 2009 at 9:34 AM, Igor Vaynberg > > >wrote:
>> >
>> > > store the uploaded images in a permanent store such as a database or a
>> > > dir on the server.
>> > >
>> > > -igor
>> > >
>> > > On Fri, Sep 4, 2009 at 12:25 AM, Daniel Dominik
>> > > Holúbek wrote:
>> > > > Hello,i've got just one question.
>> > > > I would like to make a photo gallery, and thus I need to let users
>> > upload
>> > > > their images.
>> > > > But if I redeploy my webapp afterwards, would I loose those images?
>> > > > If yes, is there any workaround?
>> > > >
>> > > > Thanks :)
>> > > >
>> > > > --
>> > > > -danoh-
>> > > >
>> > >
>> > > -
>> > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> > > For additional commands, e-mail: users-h...@wicket.apache.org
>> > >
>> > >
>> >
>> >
>> > --
>> > -danoh-
>> >
>>
>
>
>
> --
> -danoh-
>


Re: Question regarding file uploading

2009-09-04 Thread Edward Zarecor
Google your database of choice and blob (binary large objects), e.g.,
postgres blob; oracle blob, etc.

Ed.


On Fri, Sep 4, 2009 at 10:11 AM, Daniel Dominik Holúbek <
dankodo...@gmail.com> wrote:

> thanks,and can you give me a hint on storing images in database?
> i can't quite imagine that :)
>
> On Fri, Sep 4, 2009 at 9:34 AM, Igor Vaynberg  >wrote:
>
> > store the uploaded images in a permanent store such as a database or a
> > dir on the server.
> >
> > -igor
> >
> > On Fri, Sep 4, 2009 at 12:25 AM, Daniel Dominik
> > Holúbek wrote:
> > > Hello,i've got just one question.
> > > I would like to make a photo gallery, and thus I need to let users
> upload
> > > their images.
> > > But if I redeploy my webapp afterwards, would I loose those images?
> > > If yes, is there any workaround?
> > >
> > > Thanks :)
> > >
> > > --
> > > -danoh-
> > >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
> >
> >
>
>
> --
> -danoh-
>


Re: Quick model/user/session question

2009-08-25 Thread Edward Zarecor
There's no connection pool size defined.  Is the default pool size for dbcp
1?

Ed.

On Aug 25, 2009 5:29 PM, "Dane Laverty"  wrote:

I'm using dbcp, as per below. I'll try switching over to c3p0 and see if
that helps.

   
   
   
   
   
   


On Tue, Aug 25, 2009 at 2:25 PM, Martijn Dashorst <

martijn.dasho...@gmail.com> wrote: > Do you use a connection pool? e.g.
datasource definition in yo...


Re: disable back button

2009-08-24 Thread Edward Zarecor
There was a prior discussion about this:

http://www.nabble.com/Double-submit-issue---disabling-HTML-submit-button-causes-form-posting-to-be-cancelled-td22698742.html

Ed.

On Mon, Aug 24, 2009 at 2:52 PM, fachhoch  wrote:

>
> what I mean by double submit is user submits a form goes to next page then
> uses the browsers back button  to come back to the previous page and
> resubmits the same form i can avoid this If I can   disbale back button
>
> MartinM wrote:
> >
> > You can disable double sumit just by using a full-screen "busy
> indicator":
> >
> >
> http://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html
> >
> > **
> > Martin
> >
> > 2009/8/24 tubin gen :
> >> I want to disable back and forward button , Is there a way to do this
> >> using
> >> wicket ?  I donot want user to submit the same page twice so if user
> >> clicks
> >> on back button i  would like to take him to home page,   can I do this ?
> >> and can I tell wicket to add no cahce headers to all my pages  using
> >> Application  class ?
> >>
> >
> > -
> > 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://www.nabble.com/disable-back-button-tp25121020p25121529.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: setResponsePage() Not Working

2009-08-11 Thread Edward Zarecor
On Tue, Aug 11, 2009 at 12:23 PM, Jeff Longland wrote:

> In my quest to solve this problem, I'm mounting all my pages using
> HybridUrlCodingStrategy to see if that will negate the extra ?wicket
> param in the URL.  Worked fine on GlassFish, but as soon as I moved it
> over to Sun App Server 7 I got:


Have you tried creating the simplest possible quickstart, say, two pages,
one link and seeing if you can replicate the issue?  If you cannot, you'll
know it is something in your app.  If you can, you're 90 percent done
opening a Jira issue.  setResponsePage is so fundamental that it's hard to
believe it is the issue.

Ed.


markup inheritance redirect issue

2009-06-12 Thread Edward Zarecor
We're integrating a third party web-based authentication service that
requires that we redirect from Wicket and then handle a redirect back from
the service.

The API requires passing in the raw  HTTPServletRequest and
HTTPServletResponse.

Our page hierarchy looks like this:

   BasePage
  AuthenticatedBasePage
   UserHomePage

Within the AuthenticatedBasePage we check to see if the user in the session
is null and, if so, execute the following:

   authenticator.authenticate(getHttpServletRequest(),
getHttpServletResponse());

Within this code the redirect is done in the typical way:
response.sendRedirect("http://foo.com";);

The issue we are seeing is that upon returning from the redirect back to our
application we get the following duplication on the initial landing page:

header
footer
header
body
footer

Upon reloading with F5 we get:

header
body
footer

So my assumption is that some output is getting committed to the response
before we redirect.  However, calling getResponse().reset() prior to the
redirect doesn't fix the issue.

This worked before we did some significant refactoring, so I suspect
something in our super page classes is causing this.  Any idea what we
should look for here?

Thanks.

Ed.


Re: [OT] wicket users around the world

2008-12-12 Thread Edward Zarecor
Cambridge, MA -- but willing to relocate to Rome or Lisbon in a pinch ;)

On Fri, Dec 12, 2008 at 9:54 AM, Steve Swinsburg
 wrote:
> Even more off topic:
>
> Despite popular belief, Koala's are not bears - both are mammals but only
> the Koala is a marsupial ;)
>
> -steve
>
>
>
> On 12 Dec 2008, at 14:35, trames wrote:
>
>>
>> Toledo is nowhere near Australia or Austria although I think there are
>> some
>> kangaroos hopping around in our great zoo - and a koala bear. Our symphony
>> orchestra plays a mean Mozart too!  :)
>>
>

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



Re: Wicket integration with good charts api

2008-12-09 Thread Edward Zarecor
Looks like a difference between the version of your JVM and the
compiler used to compile ofc4j.

> java.lang.UnsupportedClassVersionError: (ofc4j/model/elements/BarChart) bad
> major version at offset=6

Ed.

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



Re: [Announce] The Wicket Reflex Game:)

2008-09-25 Thread Edward Zarecor
Fun.  There seems to be a condition that causes subsequent clicks to not be
scored.  In any event, not all successful clicks seem to get counted -- not
sour grapes, I promise.

Ed.

On Thu, Sep 25, 2008 at 4:09 PM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> Thanks:)
>
> One really need to be carefull with removing behaviors etc..
>
>
> Maarten Bosteels wrote:
>
>> When you click a cell just after the "high score form" appears, the
>> whole page freezes up.
>>
>> Otherwise I had some fun :-)
>>
>> Maarten
>>
>> On Thu, Sep 25, 2008 at 8:58 PM, Nino Saturnino Martinez Vazquez Wael
>> <[EMAIL PROTECTED]> wrote:
>>
>>
>>> I did not like the fact that you guys filled the highscore so quickly:).
>>> I've put up a new version, with one level more. And now you can
>>> potentially
>>> get 40 points over the 40 ticks. Highscore increased to 10 spaces.
>>>
>>> And I tried to see if putting a veil over the box could fix the behavior
>>> error you get if clicking like a maniac.
>>>
>>> So try again:) It should be a LOT harder to reach around the 40 points.
>>> There is a surprise for you :)
>>>
>>> http://wicketgames.ninosbox.thruhere.net/
>>>
>>> Nino Saturnino Martinez Vazquez Wael wrote:
>>>
>>>
 Hi

 I've done a small game using Wicket and Ajax, consider it an ajax show
 case for wicket.. It's in a prototype state, I used a few hours
 yesterday on
 it..

 The game it self lasts about 20 seconds depending on latency etc. And
 you
 can get 20 points by clicking small boxes. I want to see your name on
 the
 highscore:)

 http://wicketgames.ninosbox.thruhere.net/


 Im hosting it on my own box as you see (
 http://wicketgames.ninosbox.thruhere.net/ ) , so responses could be
 slow
 it's a p3 500 mhz running other stuff aswell..



>>> --
>>> -Wicket for love
>>>
>>> Nino Martinez Wael
>>> Java Specialist @ Jayway DK
>>> http://www.jayway.dk
>>> +45 2936 7684
>>>
>>>
>>> -
>>> 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]
>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [Announce] The Wicket Reflex Game:)

2008-09-25 Thread Edward Zarecor
Fun.  There seems to be a condition that causes subsequent clicks to not be
scored.  In any event, not all successful clicks seem to get counted -- not
sour grapes, I promise.

Ed.

On Thu, Sep 25, 2008 at 4:09 PM, Nino Saturnino Martinez Vazquez Wael <
[EMAIL PROTECTED]> wrote:

> Thanks:)
>
> One really need to be carefull with removing behaviors etc..
>
>
> Maarten Bosteels wrote:
>
>> When you click a cell just after the "high score form" appears, the
>> whole page freezes up.
>>
>> Otherwise I had some fun :-)
>>
>> Maarten
>>
>> On Thu, Sep 25, 2008 at 8:58 PM, Nino Saturnino Martinez Vazquez Wael
>> <[EMAIL PROTECTED]> wrote:
>>
>>
>>> I did not like the fact that you guys filled the highscore so quickly:).
>>> I've put up a new version, with one level more. And now you can
>>> potentially
>>> get 40 points over the 40 ticks. Highscore increased to 10 spaces.
>>>
>>> And I tried to see if putting a veil over the box could fix the behavior
>>> error you get if clicking like a maniac.
>>>
>>> So try again:) It should be a LOT harder to reach around the 40 points.
>>> There is a surprise for you :)
>>>
>>> http://wicketgames.ninosbox.thruhere.net/
>>>
>>> Nino Saturnino Martinez Vazquez Wael wrote:
>>>
>>>
 Hi

 I've done a small game using Wicket and Ajax, consider it an ajax show
 case for wicket.. It's in a prototype state, I used a few hours
 yesterday on
 it..

 The game it self lasts about 20 seconds depending on latency etc. And
 you
 can get 20 points by clicking small boxes. I want to see your name on
 the
 highscore:)

 http://wicketgames.ninosbox.thruhere.net/


 Im hosting it on my own box as you see (
 http://wicketgames.ninosbox.thruhere.net/ ) , so responses could be
 slow
 it's a p3 500 mhz running other stuff aswell..



>>> --
>>> -Wicket for love
>>>
>>> Nino Martinez Wael
>>> Java Specialist @ Jayway DK
>>> http://www.jayway.dk
>>> +45 2936 7684
>>>
>>>
>>> -
>>> 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]
>>
>>
>>
>
> --
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Panel based wizard properties question

2008-09-22 Thread Edward Zarecor
Looking at the abracadabra example using property file style localization
messages, http://www.wicket-library.com/wicket-examples, to wit:

confirmation.content=You are about to create user '${firstName}
${lastName}', for \
department '${department}' and user name '${userName}'. Are you sure you
want to \
do this? I mean, are you really you want to allow
'${userName}' \
on this system? If you are, please press finish to complete.

Does property variable expansion support collections?  For example:

confirmation.content=You are about to create users \
 \
'${firstName} ${lastName}' \
 \

I suspect I know the answer as the example doesn't list the roles a user was
assigned in the wizard, but thought someone might know for certain.

Thanks.

Ed.


Re: cross session leakage

2008-09-11 Thread Edward Zarecor
Look at the fisheye tab in Jira.

Ed.

On Thu, Sep 11, 2008 at 10:37 AM, Weaver, Scott <[EMAIL PROTECTED]>wrote:

> Thanks Martijn.  The comments/description really doesn't tell me much, I
> will see if looking at the code changes tells me more.
>
> Thanks again,
> -scott
>
> > -Original Message-
> > From: Martijn Dashorst [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 11, 2008 9:22 AM
> > To: users@wicket.apache.org
> > Subject: Re: cross session leakage
> >
> > afaik http://issues.apache.org/jira/browse/WICKET-1409
> >
> > On Thu, Sep 11, 2008 at 3:35 PM, Weaver, Scott
> > <[EMAIL PROTECTED]> wrote:
> > > Yes I to would like to know the cause also as we have had this happen
> > more than once in our production environment, five or six times that I
> > know (through trouble tickets).
> > >
> > > -scott
> > >
> > >> -Original Message-
> > >> From: Edward [mailto:[EMAIL PROTECTED]
> > >> Sent: Wednesday, September 10, 2008 4:44 PM
> > >> To: users@wicket.apache.org
> > >> Subject: cross session leakage
> > >>
> > >>
> > >> 1.3.4 says it fixed cross session leakage due to a dangling thread
> > >> local
> > >> in exceptional circumstances... but I don't see an actual but
> > >> identified
> > >> in the release notes.  What exactly was fixed and what was the
> > >> exceptional circumstance?
> > >>
> > >> Thanks,
> > >>
> > >> Edward
> > >>
> > >>
> > >>
> > >> 
> > -
> > >> 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]
> > >
> > >
> >
> >
> >
> > --
> > Become a Wicket expert, learn from the best: http://wicketinaction.com
> > Apache Wicket 1.3.4 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
> >
> > -
> > 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]
>
>


Wizard question

2008-08-29 Thread Edward Zarecor
I'm relatively new to wicket and have question about the wizard
implementation.

It seems all the steps added to the Wizard in its constructor are themselves
constructed when init is called on the Wizard.  What I would like to do is
have a mechanism for dynamically changing the second step in my wizard so
that an arbitrarily sized editable list is displayed.

Say step one was "How many events would you like to create," step two would
be a list that corresponded in size to the answer provided in step one.

What's the best way to approach this?

I'm using 1.3.3 and a panel style wizard.

Thanks.

Ed.